aiware-js 2.49.0 → 2.49.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/js-core.esm.js CHANGED
@@ -1437,7 +1437,7 @@ createScheduledJob(input:{
1437
1437
  }
1438
1438
  `)}),n},[]).join("\r\n")}
1439
1439
  }
1440
- `,l={entityId:t,entityType:e};try{a=yield baseGraphQLApi({query:s,operationName:n,variables:l,graphEndpoint:u,token:d})}catch(e){i=!0}if(a.errors){if(0===(o=a.errors.filter(({message:e})=>e.includes(' does not exist in "AuthPermissionType" enum.')).map(({message:e})=>{var t='Value "',n=e.substring(t.length).indexOf('"');return e.substring(t.length,t.length+n)})).length)throw i=!0,a={},new Error((null==(f=(a.errors||[])[0])?void 0:f.message)||"Error")}else i=!0}const c=a.data||{};return Object.keys(c).map(e=>{var t=e.split("__");return 3===t.length?{fetchedTargetEntityType:t[0],fetchedTargetGroupType:t[1],fetchedTargetAction:t[2],hasPermission:c[e][0].hasPermission}:{fetchedTargetEntityType:t[0],fetchedTargetAction:t[1],hasPermission:c[e][0].hasPermission}}).reduce((e,t)=>{var n=t.fetchedTargetGroupType||t.fetchedTargetEntityType;return t.hasPermission&&(e[n]||(e[n]={}),e[n][t.fetchedTargetAction]=t.hasPermission),e},{})})}function getMyRights(t){return __awaiter$4(this,void 0,void 0,function*(){var e="getMyRights";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getMyRights {\n myRights {\n operations\n }\n }\n ",operationName:e},t))).myRights.operations})}const selectPermissionsByEntity=(t,n,r)=>e=>{return t&&n&&(e=e[namespace$7].permissionsByObject[t])&&e[n]?e[n][r||t]:void 0},selectMyRights=e=>e[namespace$7].rights;var index=Object.freeze({__proto__:null,selectPermissionsByEntity:selectPermissionsByEntity,selectMyRights:selectMyRights});function*fetchObjectPermissions(t){var{entityId:t,entityType:n}=t.payload,i=yield select(selectApiConfigs$2),e=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector),a=yield select(selectIsOLPEnabled),r=yield select(selectPermissionsByEntity(n,t));if(!r||"success"!==r.status&&"pending"!==r.status){yield put(actions$6.fetchObjectPermissionsStarted({entityId:t,entityType:n}));try{let r={};if(a)r=yield call$j(getObjectPermissions,e,o,{entityType:n,entityId:t});else{let e=yield select(selectMyRights);if("success"!==e.status&&"pending"!==e.status){yield put(actions$6.fetchMyRightsStarted);try{var s=yield call$j(getMyRights,i);yield put(actions$6.fetchMyRightsSucceeded(s)),e=yield select(selectMyRights)}catch(e){throw yield put(actions$6.fetchMyRightsFailed),e}}else"pending"===e.status&&(yield take([actions$6.fetchMyRightsFailed,actions$6.fetchMyRightsSucceeded]),e=yield select(selectMyRights));const l=e["myRights"];getPermissionTypesToQuery(n).forEach(n=>{var{action:e,resource:t}=n.targetActions.reduce((e,t)=>(e.action[t.targetAction]=convertPermissionsToRights(t.resource||n.targetObjectType,t.targetAction,l),e.resource=t.resource,e),{action:{}});r[t||n.targetObjectType]=e})}yield put(actions$6.fetchObjectPermissionsSucceeded({entityId:t,entityType:n,permissions:r}))}catch(e){actions$6.fetchObjectPermissionsFailed({entityId:t,entityType:n})}}}function*watchPermissionsStart(){yield takeEvery$1(actions$6.fetchObjectPermissionsStart.type,fetchObjectPermissions)}function*rootSaga$2(){yield all$2([watchPermissionsStart()])}function getPermissionsModule(){return{id:namespace$7,reducerMap:{[namespace$7]:permissionsReducer},sagas:[rootSaga$2],initialActions:[]}}const useOrganizationPermissions=e=>{const t=react$1.exports.useRef(),n=useDispatch(),r=null==(o=useSelector(userSelector$2).organization)?void 0:o.organizationId,i=useSelector(selectPermissionsByEntity(EAuthResourceType.Organization,String(r),e));react$1.exports.useEffect(()=>{!r||i&&"failure"!==i.status&&"idle"!==i.status&&t.current===r||(t.current=r,n(actions$6.fetchObjectPermissionsStart({entityType:EAuthResourceType.Organization,entityId:String(r)})))},[n,r,i]);var o=react$1.exports.useCallback(e=>{return!isPermissionLoading(i)&&hasPermission(i,e)},[i]);return{permissions:i,hasPermission:o}},nameSpace$1="@helpPanel",updateSelectedTab=createAction(nameSpace$1+"/UPDATE_SELECTED_TAB",function(e,t){return{payload:{selectedTabId:e,tabLink:t}}}),setCustomKnowledgeBaseUrl=createAction(nameSpace$1+"/SET_CUSTOM_KNOWLEDGE_BASE_URL",function(e){return{payload:{url:e}}}),setCustomDocsUrl=createAction(nameSpace$1+"/SET_CUSTOM_DOCS_URL",function(e){return{payload:{url:e}}}),initialState$7={selectedTabId:0,tabLink:"https://support.veritone.com/",customKnowledgeBaseUrl:"",customDocsUrl:""},getTabLinkReducer=createReducer(initialState$7,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$6="helpPanel",helpCenterSelectedTabIdSelector=e=>null!=e&&e[namespace$6]?e[namespace$6].selectedTabId:0,customDocsUrlSelector=e=>null!=e&&e[namespace$6]?e[namespace$6].customDocsUrl:"",customKnowledgeBaseUrlSelector=e=>null!=e&&e[namespace$6]?e[namespace$6].customKnowledgeBaseUrl:"";function getHelpPanelModule(){return{id:"help",reducerMap:{[namespace$6]: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$m=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$m()["classes"];const[n,r]=react$1.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$m()["classes"];const[n,r]=react$1.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$1(){var e=useSelector(initialConfigSelector),t=useSelector(customKnowledgeBaseUrlSelector),n=useSelector(customDocsUrlSelector),r=useSelector(helpCenterSelectedTabIdSelector),i=useSelector(e=>null==e?void 0:e.panels),o=useStyles$m()["classes"],[a]=react$1.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$F,alt:"icon",draggable:"false"})}))]}))}))}))}))}))}))}))}var PermissionChangedAction,WidgetsStatus,index_esm$3=Object.freeze({__proto__:null,HelpCenterPanel:HelpCenter$1,customDocsUrlSelector:customDocsUrlSelector,customKnowledgeBaseUrlSelector:customKnowledgeBaseUrlSelector,helpCenterSelectedTabIdSelector:helpCenterSelectedTabIdSelector,setCustomDocsUrl:setCustomDocsUrl,setCustomKnowledgeBaseUrl:setCustomKnowledgeBaseUrl,updateSelectedTab:updateSelectedTab});class DataCenter{openImporterPanel(){store$7.dispatch(mountPanel$1({panelId:"DATA_CENTER_IMPORTER",microFrontend:{name:"DATA_CENTER_IMPORTER",config:{name:"Local Importer"}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"large",zIndex:1e3,dimmed:0}}))}}class AiwareSDKHelpers{isURLValid(e=""){let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}unmountAllPanel(){store$7.dispatch(unmountAllPanel(""))}}!function(e){e.GRANTED="granted",e.REVOKED="revoked"}(PermissionChangedAction=PermissionChangedAction||{});class SdkEventsManager extends AiwareSDKHelpers{constructor(){super(...arguments),this.events=new Map}on(e,n){if(!SdkEvents[e])throw new SdkError(`Unknown event type: \`${e}\``);this.events.set(e,function(e,...t){n(e,...t)})}off(e){this.events.delete(e)}dispatch(e,t,...n){this.events.has(e)&&this.events.get(e)(t,...n)}createError(e){return new SdkError(e)}}class SdkError extends Error{constructor(e,t="error"){super("[AiwareJS SDK error]: "+e),this.type="error",this.type=t}}const sdkEventManager=new SdkEventsManager;class HelpCenter extends AiwareSDKHelpers{constructor({actions:e}){super(),this.CUSTOM_HELP_PANEL_ID="CUSTOM_HELP_PANEL_ID",this.actions=e}getPanelConfig(){return{helpPanelMicroFrontend:{name:"HELP_PANEL",config:{name:"Help panel",dataId:"helpDataId",type:"SIMPLE_PANEL"}},helpPanelConfig:{panelId:this.CUSTOM_HELP_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,size:"large",header:{divider:!0,title:"HELP CENTER",actions:[{iconUrl:img$X,action:{type:"OPEN_HELP_LINK"}}]}}}}mountHelpPanel(){var{helpPanelMicroFrontend:e,helpPanelConfig:t}=this.getPanelConfig();store$7.dispatch(mountPanel$1({panelId:this.CUSTOM_HELP_PANEL_ID,microFrontend:e,panelConfig:t}))}panels(){return(null===store$7||void 0===store$7?void 0:store$7.getState()).panels}isCustomHelpPanelOpen(){return!!this.panels().find(e=>e.panelId===this.CUSTOM_HELP_PANEL_ID)}handleCustomDocsUrl(e){this.isURLValid(e)&&(store$7.dispatch(this.actions.setCustomDocsUrlAction(e)),store$7.dispatch(this.actions.updateSelectedTabAction(1,"")))}handleCustomKnowledgeBaseUrl(e){this.isURLValid(e)&&(store$7.dispatch(this.actions.setCustomKnowledgeBaseUrlAction(e)),store$7.dispatch(this.actions.updateSelectedTabAction(0,"")))}openDocsPanel(e,t=!0){var n;e&&!this.isURLValid(e)?(n=new SdkError("Can not open the custom url! The url should be valid and start with http or https"),console.error(n.message),store$7.dispatch(this.actions.updateSelectedTabAction(1,""))):this.isCustomHelpPanelOpen()||(t&&this.unmountAllPanel(),this.mountHelpPanel(),e)?this.handleCustomDocsUrl(e):store$7.dispatch(this.actions.updateSelectedTabAction(1,""))}openKnowledgeBasePanel(e){var t;e&&!this.isURLValid(e)?(t=new SdkError("Can not open the custom url! The url should be valid and start with http or https"),console.error(t.message),store$7.dispatch(this.actions.updateSelectedTabAction(0,""))):this.isCustomHelpPanelOpen()||(this.unmountAllPanel(),this.mountHelpPanel(),e)?this.handleCustomKnowledgeBaseUrl(e):store$7.dispatch(this.actions.updateSelectedTabAction(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"),e.knowledgeBaseURL&&e.knowledgeBaseUrl&&e.knowledgeBaseURL!==e.knowledgeBaseUrl||e.knowledgeBaseURL&&!e.knowledgeBaseUrl?(console.info("@aiware/js: knowledgeBaseURL is deprecated and scheduled to be removed in v3. Please use knowledgeBaseUrl instead."),Object.assign(Object.assign({},e),{knowledgeBaseUrl:e.knowledgeBaseURL})):e}const WIDGETS_FEATURE_KEY="widgets",initialState$6=(!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:mountWidgetAction,mountWidgetSuccess,mountWidgetError,unmountWidget:unmountWidgetAction,unmountWidgetSuccess,unmountWidgetFailure,triggerWidgetCallback,triggerWidgetCallbackSuccess}}=createSlice({name:WIDGETS_FEATURE_KEY,initialState:initialState$6,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}}}),mountWidgetListenerFactory=l=>function*(){let a;const s={};yield takeEvery$1(mountWidgetAction.type,function*(e){try{var{widgetConfig:t={},widgetName:n,elementId:r}=null==e?void 0:e.payload,i=(yield call$j(l,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$1,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$7},{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(unmountWidgetAction.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(e){return{id:name,reducerMap:{[name]:reducer},sagas:[mountWidgetListenerFactory(e)],initialActions:[]}}const mountWidget=(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$7.dispatch(mountWidgetAction({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n},unmountWidget=e=>(store$7.dispatch(unmountWidgetAction(e)),!0);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:[]}}function handleEvents(n){function r(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){r(e),n.on.call(n,e,t)},off:function(e){r(e),n.off.call(n,e)}}}const useStyles$1$3=makeStyles()(e=>({sdkSnackbarContainer:{"& svg":{fill:"white"}}}));function CustomSnackbar(){const n=useDispatch(),[e,t]=react$1.exports.useState([]),[r,i]=react$1.exports.useState(!1),[o,a]=react$1.exports.useState(void 0),{message:s,duration:l}=useSelector(snackbarSelector);var c=useStyles$1$3()["classes"],u=(react$1.exports.useEffect(()=>{null!==s&&void 0!==s&&s.content&&t(e=>[...e,s])},[s]),react$1.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)}const useStyles$l=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$1.exports.useState(null),[n,r]=react$1.exports.useState(0);var i=useSelector(userSelector$2),o=useStyles$l()["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(null==e?void 0:e.name)>(null==t?void 0:t.name)?1:(null==e?void 0:e.name)<(null==t?void 0:t.name)?-1:0}),f=u.findIndex(e=>e.id===s);useInterval(()=>{t(e=>e&&e-1)},e&&n<3?1e3:null),react$1.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:null==(d=u[0])?void 0:d.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};function ApplicationDialogPreLoader(){var e=useSelector(authSelector);return null!=(e=null==e?void 0:e.user)&&e.token?jsxRuntime.exports.jsx(ApplicationDialog,{}):null}const ThemeInitializer=()=>(useTheme(),null),AppBarPreLoader=({store:e,onLoad:t})=>{var n=useSelector(authSelector);return null!=(n=null==n?void 0:n.user)&&n.token&&setTimeout(()=>{t(),e.addModules([getAppbarPanelModule()])},0),null},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 Preloader=({store:e})=>{const[t,n]=react$1.exports.useState(!1);return jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsxs(AIWareThemeProvider$1,{children:[jsxRuntime.exports.jsx(SupportCenterPixel,{}),jsxRuntime.exports.jsx(Provider$2,Object.assign({store:e},{children:jsxRuntime.exports.jsxs(AIWareIntlProvider,{children:[t&&jsxRuntime.exports.jsx(ApplicationDialogPreLoader,{}),!t&&jsxRuntime.exports.jsx(AppBarPreLoader,{store:e,onLoad:()=>{n(!0)}}),jsxRuntime.exports.jsx(CustomSnackbar,{})]})})),!t&&jsxRuntime.exports.jsx(ThemeInitializer,{})]})})};class RateLimiter{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}}const rateLimiter=new RateLimiter,createAuthHelpers=t=>({updateToken(e){e?t.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{t.dispatch(logout$1())},1e3)):t.dispatch(logout$1())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&t.dispatch(updateActivityStatus$1())}}),helpCenter=()=>{var e=new HelpCenter({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}},dataCenter=()=>{var e=new DataCenter;return{openImporterPanel:e.openImporterPanel.bind(e)}},unmountPanel=t=>e=>(t.dispatch(unmountPanel$1(e)),!0),hidePanel=t=>e=>(t.dispatch(hidePanel$1(e)),!0),mountPanel=o=>(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:r}=e;o.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 o.addModule(r),n},mountPanelForResponse=t=>e=>mountPanelForResponse$1(e,t),attachSdkToWindow=e=>{var{init:e,store:t,aiwareEvents:n,registrySet:r}=e;!window||void 0!==window.aiware&&0!==Object.keys(window.aiware).length||(window.aiware={init:e,store:t,auth:createAuthHelpers(t),helpCenter:helpCenter(),dataCenter:dataCenter(),on:n.on,off:n.off,hidePanel:hidePanel(t),unmountPanel:unmountPanel(t),mountPanel:mountPanel(t),mountPanelForResponse:mountPanelForResponse(t),registry:r.registry,registryLookup:r.registryLookup,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,unmountWidget:unmountWidget,version:"sdk_release_version",commit:"3931899c9",releaseDate:"sdk_release_date"})},checkAndDecodeBase64String=t=>{if(null==t||!t.trim())return t;try{return window.btoa(window.atob(t))==t?window.atob(t):t}catch(e){return t}},bootstrapSdk=e=>{var t=(null==e?void 0:e.registry)||{},n=(null==e?void 0:e.registryLookup)||Promise.resolve(null),r=handleEvents(sdkEventManager),i=store$7.getState(),n=(null!=i&&i.widgets||(store$7.addModules([getWidgetsModule(n),getPanelsModule(t,n),getDataModule(),getConfigModule(),getAuthModule(sdkEventManager),getPermissionsModule(),getSnackbarModule()]),(i=getElement("aiWARE")).classList.add("aiware-el"),t=client$1.createRoot(i),"_auth"===window.name?handleImplicitRedirect(window.location.hash,window.opener):t.render(jsxRuntime.exports.jsx(Preloader,{store:store$7}))),(e,t)=>{var n;"idle"===store$7.getState().configs.status&&((e=validateConfig(e))?(n=e["authToken"],n=checkAndDecodeBase64String(n||""),store$7.dispatch(getInitConfig(Object.assign(Object.assign({},e),{authToken:n,onComplete:t})))):console.error("@aiware/js initialization failed. Please pass valid configuration object."))});return attachSdkToWindow({init:n,store:store$7,aiwareEvents:r,registrySet:e}),{store:store$7,aiwareEvents:r,init:n}};var Et=Object.create,Ye=Object.defineProperty,bt=Object.getOwnPropertyDescriptor,gt=Object.getOwnPropertyNames,yt=Object.getPrototypeOf,wt=Object.prototype.hasOwnProperty,Lt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Pt=(t,n,r,i)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let e of gt(n))wt.call(t,e)||e===r||Ye(t,e,{get:()=>n[e],enumerable:!(i=bt(n,e))||i.enumerable});return t},St=(e,t,n)=>(n=null!=e?Et(yt(e)):{},Pt(!t&&e&&e.__esModule?n:Ye(n,"default",{value:e,enumerable:!0}),e)),je=Lt((e,t)=>{var n,r;r=function(e){function t(e){var t=o.get(e),n=void 0===t?e.size:t<1073741824?t+1:0;if(e.has(n))if(e.size<536870912)for(;e.has(n);)n=Math.floor(1073741824*Math.random());else{if(e.size>s)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(n);)n=Math.floor(Math.random()*s)}return i(e,n)}function n(e){var t=r(e);return e.add(t),t}var r,i,o,a,s=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,l=new WeakMap;i=function(e,t){return a.set(e,t),t},o=a=l,r=t;e.addUniqueNumber=n,e.generateUniqueNumber=t},"object"==typeof(n=e)&&typeof t<"u"?r(e):"function"==typeof define&&define.amd?define(["exports"],r):r((n=typeof globalThis<"u"?globalThis:n||self).fastUniqueNumbers={})}),M$1=(St(je()),"object"==("u"<typeof window?"undefined":typeof window)),I$1={setTimeout:M$1?setTimeout.bind(window):setTimeout,clearTimeout:M$1?clearTimeout.bind(window):clearTimeout,setInterval:M$1?setInterval.bind(window):setInterval,clearInterval:M$1?clearInterval.bind(window):clearInterval};function it(e){I$1.setTimeout=e.setTimeout,I$1.clearTimeout=e.clearTimeout,I$1.setInterval=e.setInterval,I$1.clearInterval=e.clearInterval}var Q$1={},Ae=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,Q$1[e]=Q$1[e]||[],Q$1[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){e.storageArea===window.localStorage&&e.key.substring(0,this.name.length)===this.name&&null!==e.newValue&&(e=JSON.parse(e.newValue),this.mc.port2.postMessage(e))}postMessage(e){if(this.closed)throw new Error("InvalidStateError");let t=JSON.stringify(e),n=this.name+":"+String(Date.now())+String(Math.random());window.localStorage.setItem(n,t),I$1.setTimeout(()=>{window.localStorage.removeItem(n)},500),Q$1[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){var e;this.closed||(this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage),e=Q$1[this.name].indexOf(this),Q$1[this.name].splice(e,1))}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},st="u"<typeof window?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:Ae;function ot(t=0){return new Promise(e=>I$1.setTimeout(e,t))}function Te(){return Math.random().toString(36).substring(2)}var Ie=class{options;channel;token=Te();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return!(this.reApply=!0);let n=!(this.isApplying=!0),e=e=>{var{token:e,action:t}=e.data;e!==this.token&&(0===t&&e>this.token&&(n=!0),1===t)&&(n=!0)};this.channel.addEventListener("message",e);try{return this.sendAction(0),await ot(this.options.responseTime),this.channel.removeEventListener("message",e),this.isApplying=!1,n?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let i=!1,o=null;return new Promise(t=>{let n=()=>{if(!i){i=!0;try{I$1.clearInterval(o)}catch{}var e=this.intervals.indexOf(o);0<=e&&this.intervals.splice(e,1),this.channel.removeEventListener("message",r),t()}},r=(o=I$1.setInterval(()=>{this.apply().then(()=>{this.isLeader&&n()})},this.options.fallbackInterval),this.intervals.push(o),e=>{e=e.data.action;2===e&&this.apply().then(()=>{this.isLeader&&n()})});this.channel.addEventListener("message",r)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;var e=e=>{e=e.data.action;0===e&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership(),this.deferred)}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>I$1.clearInterval(e))}catch{}}}},Ee=class{channel;options;elector;token=Te();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){var t=e["channelName"];this.options=e,this.channel=new st(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new Ie(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{var{action:e,token:t,data:n}=e.data;switch(e){case 3:this.registry.set(t,2);break;case 4:this.registry.delete(t);break;case 5:this.idle(t);break;case 6:this.active(t);break;case 7:this.prompt(t);break;case 8:this.start(t);break;case 9:this.reset(t);break;case 10:this.activate(t);break;case 11:this.pause(t);break;case 12:this.resume(t);break;case 13:this.options.onMessage(n)}}),this.send(3)}get isLeader(){if(this.elector)return this.elector.isLeader;throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.')}prompt(e=this.token){this.registry.set(e,0);var t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);var t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);var t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},at=M$1?document:null,xe=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function ct(t,n){let r;function e(...e){r&&clearTimeout(r),r=setTimeout(()=>{t(...e),r=null},n)}return e.cancel=function(){clearTimeout(r)},e}function be(n,r){let i=0;return function(...e){var t=(new Date).getTime();if(!(t-i<r))return i=t,n(...e)}}var v$1=()=>Date.now(),Z=2147483647;function se({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:L=at,events:N=xe,timers:D=void 0,immediateEvents:r=[],onPresenceChange:F=()=>{},onPrompt:V=()=>{},onIdle:H=()=>{},onActive:B=()=>{},onAction:U=()=>{},onMessage:i=()=>{},debounce:o=0,throttle:a=0,eventsThrottle:z=200,startOnMount:s=!0,startManually:l=!1,stopOnIdle:W=!1,crossTab:c=!1,name:G="idle-timer",syncTimers:u=0,leaderElection:q=!1,disabled:d=!1}={}){let K=react$1.exports.useRef(v$1()),Y=react$1.exports.useRef(v$1()),p=react$1.exports.useRef(null),f=react$1.exports.useRef(null),h=react$1.exports.useRef(0),m=react$1.exports.useRef(0),g=react$1.exports.useRef(0),y=react$1.exports.useRef(0),$=react$1.exports.useRef(!1),v=react$1.exports.useRef(!1),x=react$1.exports.useRef(!1),b=react$1.exports.useRef(!0),Q=react$1.exports.useRef(!1),C=react$1.exports.useRef(null),S=react$1.exports.useRef(null),w=react$1.exports.useRef(e),_=react$1.exports.useRef(0),X=(react$1.exports.useEffect(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(Z<=e)throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${Z}.`);if(Z<=t)throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${Z}.`);if(Z<=n)throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${Z}.`);if(e<=n)throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);n?(w.current=e-n,_.current=n):(w.current=e,_.current=t),b.current||l||d||($.current&&(E.current(null,P),S.current)&&S.current.active(),M())},[e,t,n,l,d]),react$1.exports.useRef(W)),J=(react$1.exports.useEffect(()=>{X.current=W},[W]),react$1.exports.useRef(r)),ee=react$1.exports.useRef(L),te=react$1.exports.useRef([...new Set([...N,...r]).values()]),T=react$1.exports.useRef(d),ne=(react$1.exports.useEffect(()=>{T.current=d,b.current||(d?me():l||M())},[d]),react$1.exports.useRef(F)),re=(react$1.exports.useEffect(()=>{ne.current=F},[F]),react$1.exports.useRef(V)),ie=(react$1.exports.useEffect(()=>{re.current=V},[V]),react$1.exports.useRef(H)),E=(react$1.exports.useEffect(()=>{ie.current=H},[H]),react$1.exports.useRef(B)),oe=(react$1.exports.useEffect(()=>{E.current=B},[B]),react$1.exports.useRef(U)),j=(react$1.exports.useEffect(()=>{oe.current=U},[U]),react$1.exports.useRef(i)),I=(react$1.exports.useEffect(()=>{j.current=i},[i]),react$1.exports.useMemo(()=>{var e=(e,t)=>oe.current(e,t);return 0<o?ct(e,o):0<a?be(e,a):e},[a,o])),ae=react$1.exports.useRef(),R=(react$1.exports.useEffect(()=>{c&&u&&(ae.current=be(()=>{S.current.active()},u))},[c,u]),()=>{null!==C.current&&(I$1.clearTimeout(C.current),C.current=null)}),O=(e,t=!0)=>{R(),C.current=I$1.setTimeout(ue,e||w.current),t&&(f.current=v$1())},se=e=>{v.current||$.current||(re.current(e,P),ne.current({type:"active",prompted:!0},P)),y.current=0,g.current=v$1(),v.current=!0,O(_.current,!1)},le=()=>{R(),$.current||(ie.current(null,P),ne.current({type:"idle"},P)),$.current=!0,p.current=v$1(),X.current?k():v.current&&(g.current=0,v.current=!1)},ce=e=>{R(),($.current||v.current)&&(E.current(e,P),ne.current({type:"active",prompted:!1},P)),v.current=!1,g.current=0,$.current=!1,h.current+=v$1()-p.current,m.current+=v$1()-p.current,A(),O()},ue=e=>{var t;if(!$.current)return I.cancel&&I.cancel(),t=v$1()-f.current,w.current+_.current<t||!(0<_.current)||v.current?void(S.current?S.current.idle():le()):void(S.current?S.current.prompt():se(e));S.current?S.current.active():ce(e)},de=e=>{var t;s||f.current||(f.current=v$1(),E.current(null,P)),I(e,P),v.current||(R(),!$.current&&J.current.includes(e.type)||(t=v$1()-f.current,$.current&&!W)||!$.current&&t>=w.current?ue(e):(x.current=!1,y.current=0,g.current=0,O(),c&&u&&ae.current()))},pe=react$1.exports.useRef(de),A=(react$1.exports.useEffect(()=>{var e=Q.current;e&&k(),pe.current=0<z?be(de,z):de,e&&A()},[z,a,o,oe,c,u]),()=>{M$1&&ee.current&&(Q.current||(te.current.forEach(e=>{ee.current.addEventListener(e,pe.current,{capture:!0,passive:!0})}),Q.current=!0))}),k=(e=!1)=>{M$1&&ee.current&&(Q.current||e)&&(te.current.forEach(e=>{ee.current.removeEventListener(e,pe.current,{capture:!0})}),Q.current=!1)},M=react$1.exports.useCallback(e=>!T.current&&(R(),A(),$.current=!1,v.current=!1,x.current=!1,y.current=0,g.current=0,S.current&&!e&&S.current.start(),O(),!0),[C,$,T,w,S]),fe=react$1.exports.useCallback(e=>!T.current&&(R(),A(),Y.current=v$1(),h.current+=v$1()-p.current,m.current+=v$1()-p.current,h.current=0,$.current=!1,v.current=!1,x.current=!1,y.current=0,g.current=0,S.current&&!e&&S.current.reset(),l||O(),!0),[C,$,w,l,T,S]),he=react$1.exports.useCallback(e=>!T.current&&(R(),A(),($.current||v.current)&&ce(),$.current=!1,v.current=!1,x.current=!1,y.current=0,g.current=0,Y.current=v$1(),S.current&&!e&&S.current.activate(),O(),!0),[C,$,v,T,w,S]),me=react$1.exports.useCallback((e=!1)=>!T.current&&!x.current&&(y.current=_e(),x.current=!0,k(),R(),S.current&&!e&&S.current.pause(),!0),[C,T,S]),ge=react$1.exports.useCallback((e=!1)=>!(T.current||!x.current||(x.current=!1,v.current||A(),$.current||O(y.current),g.current&&(g.current=v$1()),S.current&&!e&&S.current.resume(),0)),[C,w,T,y,S]),ye=react$1.exports.useCallback((e,t)=>(S.current?(t&&j.current(e,P),S.current.message(e)):t&&j.current(e,P),!0),[i]),$e=react$1.exports.useCallback(()=>$.current,[$]),ve=react$1.exports.useCallback(()=>v.current,[v]),Ce=react$1.exports.useCallback(()=>S.current?S.current.isLeader:null,[S]),Se=react$1.exports.useCallback(()=>S.current?S.current.isLastActive:null,[S]),we=react$1.exports.useCallback(()=>S.current?S.current.token:null,[S]),_e=react$1.exports.useCallback(()=>{var e,t;return x.current?y.current:(t=y.current||_.current+w.current,e=f.current?v$1()-f.current:0,(t=Math.floor(t-e))<0?0:Math.abs(t))},[w,_,v,y,f]),Te=react$1.exports.useCallback(()=>Math.round(v$1()-Y.current),[Y]),je=react$1.exports.useCallback(()=>Math.round(v$1()-K.current),[K]),Ie=react$1.exports.useCallback(()=>p.current?new Date(p.current):null,[p]),Re=react$1.exports.useCallback(()=>f.current?new Date(f.current):null,[f]),Oe=react$1.exports.useCallback(()=>$.current?Math.round(v$1()-p.current+h.current):Math.round(h.current),[p,h]),Ae=react$1.exports.useCallback(()=>$.current?Math.round(v$1()-p.current+m.current):Math.round(m.current),[p,m]),ke=react$1.exports.useCallback(()=>{var e=Math.round(Te()-Oe());return 0<=e?e:0},[p,h]),Me=react$1.exports.useCallback(()=>{var e=Math.round(je()-Ae());return 0<=e?e:0},[p,h]),P=(react$1.exports.useEffect(()=>{if(0<o&&0<a)throw new Error("❌ onAction can either be throttled or debounced, not both.");D&&it(D);let e=()=>{S.current&&S.current.close(),I.cancel&&I.cancel(),R(),k(!0)};return M$1&&window.addEventListener("beforeunload",e),()=>{M$1&&window.removeEventListener("beforeunload",e),S.current&&S.current.close(),I.cancel&&I.cancel(),R(),k(!0)}},[]),react$1.exports.useEffect(()=>{S.current&&S.current.close(),S.current=c?new Ee({channelName:G,leaderElection:q,onPrompt:()=>{se()},onIdle:()=>{le()},onActive:()=>{ce()},onMessage:e=>{j.current(e,P)},start:M,reset:fe,activate:he,pause:me,resume:ge}):null},[c,G,q,re,ie,E,j,M,fe,me,ge]),react$1.exports.useEffect(()=>{b.current||(R(),k(!0)),l||d||(s?M:A)()},[l,s,d,b]),react$1.exports.useEffect(()=>{var e;b.current||(e=[...new Set([...N,...r]).values()],k(),te.current=e,ee.current=L,J.current=r,l)||d||(s?M:A)()},[L,JSON.stringify(N),JSON.stringify(r),b,d,l,s]),react$1.exports.useEffect(()=>{b.current&&(b.current=!1)},[b]),{message:ye,start:M,reset:fe,activate:he,pause:me,resume:ge,isIdle:$e,isPrompted:ve,isLeader:Ce,isLastActiveTab:Se,getTabId:we,getRemainingTime:_e,getElapsedTime:Te,getTotalElapsedTime:je,getLastIdleTime:Ie,getLastActiveTime:Re,getIdleTime:Oe,getTotalIdleTime:Ae,getActiveTime:ke,getTotalActiveTime:Me,setOnPresenceChange:e=>{F=e,ne.current=e},setOnPrompt:e=>{V=e,re.current=e},setOnIdle:e=>{H=e,ie.current=e},setOnActive:e=>{B=e,E.current=e},setOnAction:e=>{U=e,oe.current=e},setOnMessage:e=>{i=e,j.current=e}});return P}var match$1,version$1,set$1$1,get$1,store$5,STATE$1,$location$1,defer$1,channel$1,port$1,toggle$1,node$1,promise$1,then$1,queue$3,flush$1,notify$1$1,Internal$1,OwnPromiseCapability$1,PromiseWrapper$1,nativeThen$1,ge=react$1.exports.createContext(null),tinycolor$1=(ge.Consumer,{exports:{}}),tinycolor=(!function(e){function u(e,t){var n;return t=t||{},(e=e||"")instanceof u?e:this instanceof u?(n=function(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;"string"==typeof e&&(e=function(e){e=e.replace(S,"").replace(w,"").toLowerCase();var t,n=!1;if(R[e])e=R[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=P.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=P.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=P.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=P.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=P.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=P.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=P.hex8.exec(e))return{r:g(t[1]),g:g(t[2]),b:g(t[3]),a:x(t[4]),format:n?"name":"hex8"};if(t=P.hex6.exec(e))return{r:g(t[1]),g:g(t[2]),b:g(t[3]),format:n?"name":"hex"};if(t=P.hex4.exec(e))return{r:g(t[1]+""+t[1]),g:g(t[2]+""+t[2]),b:g(t[3]+""+t[3]),a:x(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=P.hex3.exec(e))return{r:g(t[1]+""+t[1]),g:g(t[2]+""+t[2]),b:g(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(b(e.r)&&b(e.g)&&b(e.b)?(t=function(e,t,n){return{r:255*h(e,255),g:255*h(t,255),b:255*h(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):b(e.h)&&b(e.s)&&b(e.v)?(r=$(e.s),i=$(e.v),t=function(e,t,n){e=6*h(e,360),t=h(t,100),n=h(n,100);var r=C.floor(e),e=e-r,i=n*(1-t),o=n*(1-e*t),e=n*(1-(1-e)*t),t=r%6;return{r:255*[n,o,i,i,e,n][t],g:255*[e,n,n,o,i,i][t],b:255*[i,i,e,n,n,o][t]}}(e.h,r,i),a=!0,s="hsv"):b(e.h)&&b(e.s)&&b(e.l)&&(r=$(e.s),o=$(e.l),t=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}e=h(e,360),t=h(t,100),n=h(n,100),0===t?r=i=o=n:(r=a(t=2*n-(n=n<.5?n*(1+t):n+t-n*t),n,e+1/3),i=a(t,n,e),o=a(t,n,e-1/3));return{r:255*r,g:255*i,b:255*o}}(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a"))&&(n=e.a);return n=f(n),{ok:a,format:e.format||s,r:E(255,j(t.r,0)),g:E(255,j(t.g,0)),b:E(255,j(t.b,0)),a:n}}(e),this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=T(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=T(this._r)),this._g<1&&(this._g=T(this._g)),this._b<1&&(this._b=T(this._b)),this._ok=n.ok,void(this._tc_id=_++)):new u(e,t)}function r(e,t,n){e=h(e,255),t=h(t,255),n=h(n,255);var r,i=j(e,t,n),o=E(e,t,n),a=(i+o)/2;if(i==o)r=l=0;else{var s=i-o,l=.5<a?s/(2-i-o):s/(i+o);switch(i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:l,l:a}}function i(e,t,n){e=h(e,255),t=h(t,255),n=h(n,255);var r,i=j(e,t,n),o=E(e,t,n),a=i,s=i-o,l=0===i?0:s/i;if(i==o)r=0;else{switch(i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:l,v:a}}function t(e,t,n,r){e=[y(T(e).toString(16)),y(T(t).toString(16)),y(T(n).toString(16))];return r&&e[0].charAt(0)==e[0].charAt(1)&&e[1].charAt(0)==e[1].charAt(1)&&e[2].charAt(0)==e[2].charAt(1)?e[0].charAt(0)+e[1].charAt(0)+e[2].charAt(0):e.join("")}function o(e,t,n,r){return[y(v(r)),y(T(e).toString(16)),y(T(t).toString(16)),y(T(n).toString(16))].join("")}function n(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.s-=t/100,e.s=m(e.s),u(e)}function a(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.s+=t/100,e.s=m(e.s),u(e)}function s(e){return u(e).desaturate(100)}function l(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.l+=t/100,e.l=m(e.l),u(e)}function c(e,t){t=0===t?0:t||10;e=u(e).toRgb();return e.r=j(0,E(255,e.r-T(-t/100*255))),e.g=j(0,E(255,e.g-T(-t/100*255))),e.b=j(0,E(255,e.b-T(-t/100*255))),u(e)}function d(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.l-=t/100,e.l=m(e.l),u(e)}function p(e,t){e=u(e).toHsl(),t=(e.h+t)%360;return e.h=t<0?360+t:t,u(e)}function L(e){e=u(e).toHsl();return e.h=(e.h+180)%360,u(e)}function N(e){var t=u(e).toHsl(),n=t.h;return[u(e),u({h:(n+120)%360,s:t.s,l:t.l}),u({h:(n+240)%360,s:t.s,l:t.l})]}function D(e){var t=u(e).toHsl(),n=t.h;return[u(e),u({h:(n+90)%360,s:t.s,l:t.l}),u({h:(n+180)%360,s:t.s,l:t.l}),u({h:(n+270)%360,s:t.s,l:t.l})]}function F(e){var t=u(e).toHsl(),n=t.h;return[u(e),u({h:(n+72)%360,s:t.s,l:t.l}),u({h:(n+216)%360,s:t.s,l:t.l})]}function V(e,t,n){t=t||6,n=n||30;var r=u(e).toHsl(),i=360/n,o=[u(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(u(r));return o}function H(e,t){t=t||6;for(var e=u(e).toHsv(),n=e.h,r=e.s,i=e.v,o=[],a=1/t;t--;)o.push(u({h:n,s:r,v:i})),i=(i+a)%1;return o}function f(e){return e=parseFloat(e),e=isNaN(e)||e<0||1<e?1:e}function h(e,t){"string"==typeof(n=e)&&-1!=n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var n="string"==typeof(n=e)&&-1!=n.indexOf("%");return e=E(t,j(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),C.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function m(e){return E(1,j(0,e))}function g(e){return parseInt(e,16)}function y(e){return 1==e.length?"0"+e:""+e}function $(e){return e=e<=1?100*e+"%":e}function v(e){return C.round(255*parseFloat(e)).toString(16)}function x(e){return g(e)/255}function b(e){return P.CSS_UNIT.exec(e)}var C,S,w,_,T,E,j,I,R,O,A,k,M,P;C=Math,S=/^\s+/,w=/\s+$/,_=0,T=C.round,E=C.min,j=C.max,I=C.random,u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,e=e.b/255,t=t<=.03928?t/12.92:C.pow((.055+t)/1.055,2.4),n=n<=.03928?n/12.92:C.pow((.055+n)/1.055,2.4),e=e<=.03928?e/12.92:C.pow((.055+e)/1.055,2.4);return.2126*t+.7152*n+.0722*e},setAlpha:function(e){return this._a=f(e),this._roundA=T(100*this._a)/100,this},toHsv:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=i(this._r,this._g,this._b),t=T(360*e.h),n=T(100*e.s),e=T(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+e+"%)":"hsva("+t+", "+n+"%, "+e+"%, "+this._roundA+")"},toHsl:function(){var e=r(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=r(this._r,this._g,this._b),t=T(360*e.h),n=T(100*e.s),e=T(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+e+"%)":"hsla("+t+", "+n+"%, "+e+"%, "+this._roundA+")"},toHex:function(e){return t(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t=this._r,n=this._g,r=this._b,i=this._a;return t=[y(T(t).toString(16)),y(T(n).toString(16)),y(T(r).toString(16)),y(v(i))],e&&t[0].charAt(0)==t[0].charAt(1)&&t[1].charAt(0)==t[1].charAt(1)&&t[2].charAt(0)==t[2].charAt(1)&&t[3].charAt(0)==t[3].charAt(1)?t[0].charAt(0)+t[1].charAt(0)+t[2].charAt(0)+t[3].charAt(0):t.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:T(this._r),g:T(this._g),b:T(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+T(this._r)+", "+T(this._g)+", "+T(this._b)+")":"rgba("+T(this._r)+", "+T(this._g)+", "+T(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:T(100*h(this._r,255))+"%",g:T(100*h(this._g,255))+"%",b:T(100*h(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+T(100*h(this._r,255))+"%, "+T(100*h(this._g,255))+"%, "+T(100*h(this._b,255))+"%)":"rgba("+T(100*h(this._r,255))+"%, "+T(100*h(this._g,255))+"%, "+T(100*h(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&O[t(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t="#"+o(this._r,this._g,this._b,this._a),n=t;return"progid:DXImageTransform.Microsoft.gradient("+(this._gradientType?"GradientType = 1, ":"")+"startColorstr="+t+",endColorstr="+(n=e?"#"+o((t=u(e))._r,t._g,t._b,t._a):n)+")"},toString:function(e){var t=!!e,n=(e=e||this._format,!1),r=this._a<1&&0<=this._a;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),(n="hsv"===e?this.toHsvString():n)||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return u(this.toString())},_applyModification:function(e,t){e=e.apply(null,[this].concat([].slice.call(t)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(l,arguments)},brighten:function(){return this._applyModification(c,arguments)},darken:function(){return this._applyModification(d,arguments)},desaturate:function(){return this._applyModification(n,arguments)},saturate:function(){return this._applyModification(a,arguments)},greyscale:function(){return this._applyModification(s,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(V,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination(H,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(N,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},u.fromRatio=function(e,t){if("object"==typeof e){var n,r={};for(n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:$(e[n]));e=r}return u(e,t)},u.equals=function(e,t){return!(!e||!t)&&u(e).toRgbString()==u(t).toRgbString()},u.random=function(){return u.fromRatio({r:I(),g:I(),b:I()})},u.mix=function(e,t,n){n=0===n?0:n||50;e=u(e).toRgb(),t=u(t).toRgb(),n/=100;return u({r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b,a:(t.a-e.a)*n+e.a})},u.readability=function(e,t){e=u(e),t=u(t);return(C.max(e.getLuminance(),t.getLuminance())+.05)/(C.min(e.getLuminance(),t.getLuminance())+.05)},u.isReadable=function(e,t,n){var r=u.readability(e,t),i=!1,e=function(e){var t;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),e=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==e&&"large"!==e&&(e="small");return{level:t,size:e}}(n);switch(e.level+e.size){case"AAsmall":case"AAAlarge":i=4.5<=r;break;case"AAlarge":i=3<=r;break;case"AAAsmall":i=7<=r}return i},u.mostReadable=function(e,t,n){for(var r,i=null,o=0,a=(n=n||{}).includeFallbackColors,s=n.level,l=n.size,c=0;c<t.length;c++)o<(r=u.readability(e,t[c]))&&(o=r,i=u(t[c]));return u.isReadable(e,i,{level:s,size:l})||!a?i:(n.includeFallbackColors=!1,u.mostReadable(e,["#fff","#000"],n))},R=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},O=u.hexNames=function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n}(R),k="[\\s|\\(]+("+(A="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",M="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",P={CSS_UNIT:new RegExp(A),rgb:new RegExp("rgb"+k),rgba:new RegExp("rgba"+M),hsl:new RegExp("hsl"+k),hsla:new RegExp("hsla"+M),hsv:new RegExp("hsv"+k),hsva:new RegExp("hsva"+M),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/},e.exports?e.exports=u:window.tinycolor=u}(tinycolor$1),tinycolor$1.exports),commonjsGlobal$1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check$1=function(e){return e&&e.Math==Math&&e},global$g=check$1("object"==typeof globalThis&&globalThis)||check$1("object"==typeof window&&window)||check$1("object"==typeof self&&self)||check$1("object"==typeof commonjsGlobal$1&&commonjsGlobal$1)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$1={},fails$e=function(e){try{return!!e()}catch(e){return!0}},descriptors$1=!fails$e(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),functionBindNative$1=!fails$e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3$1=functionBindNative$1,call$e=Function.prototype.call,functionCall$1=NATIVE_BIND$3$1?call$e.bind(call$e):function(){return call$e.apply(call$e,arguments)},objectPropertyIsEnumerable$1={},$propertyIsEnumerable$1={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$1=Object.getOwnPropertyDescriptor,NASHORN_BUG$1=getOwnPropertyDescriptor$2$1&&!$propertyIsEnumerable$1.call({1:2},1),createPropertyDescriptor$3=(objectPropertyIsEnumerable$1.f=NASHORN_BUG$1?function(e){return!!(e=getOwnPropertyDescriptor$2$1(this,e))&&e.enumerable}:$propertyIsEnumerable$1,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2$1=functionBindNative$1,FunctionPrototype$2$1=Function.prototype,call$d=FunctionPrototype$2$1.call,uncurryThisWithBind$1=NATIVE_BIND$2$1&&FunctionPrototype$2$1.bind.bind(call$d,call$d),functionUncurryThis$1=NATIVE_BIND$2$1?uncurryThisWithBind$1:function(e){return function(){return call$d.apply(e,arguments)}},uncurryThis$f=functionUncurryThis$1,toString$3=uncurryThis$f({}.toString),stringSlice$1$1=uncurryThis$f("".slice),classofRaw$2$1=function(e){return stringSlice$1$1(toString$3(e),8,-1)},fails$b=fails$e,classof$6=classofRaw$2$1,$Object$4=Object,split$1=functionUncurryThis$1("".split),indexedObject$1=fails$b(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$6(e)?split$1(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$4$1=function(e){return null==e},isNullOrUndefined$3$1=isNullOrUndefined$4$1,$TypeError$d=TypeError,requireObjectCoercible$3=function(e){if(isNullOrUndefined$3$1(e))throw $TypeError$d("Can't call method on "+e);return e},IndexedObject$1=indexedObject$1,requireObjectCoercible$2$1=requireObjectCoercible$3,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$2$1(e))},documentAll$2$1="object"==typeof document&&document.all,IS_HTMLDDA$1=void 0===documentAll$2$1&&void 0!==documentAll$2$1,documentAll_1$1={all:documentAll$2$1,IS_HTMLDDA:IS_HTMLDDA$1},$documentAll$1$1=documentAll_1$1,documentAll$1$1=$documentAll$1$1.all,isCallable$k=$documentAll$1$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1$1}:function(e){return"function"==typeof e},isCallable$j=isCallable$k,$documentAll$2=documentAll_1$1,documentAll$3=$documentAll$2.all,isObject$9=$documentAll$2.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$j(e)||e===documentAll$3}:function(e){return"object"==typeof e?null!==e:isCallable$j(e)},global$f$1=global$g,isCallable$i=isCallable$k,aFunction$1=function(e){return isCallable$i(e)?e:void 0},getBuiltIn$7$1=function(e,t){return arguments.length<2?aFunction$1(global$f$1[e]):global$f$1[e]&&global$f$1[e][t]},objectIsPrototypeOf$1=functionUncurryThis$1({}.isPrototypeOf),engineUserAgent$1="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$e$1=global$g,userAgent$3$1=engineUserAgent$1,process$4$1=global$e$1.process,Deno$1$1=global$e$1.Deno,versions$1=process$4$1&&process$4$1.versions||Deno$1$1&&Deno$1$1.version,v8$1=versions$1&&versions$1.v8,engineV8Version$1=version$1=!(version$1=v8$1?0<(match$1=v8$1.split("."))[0]&&match$1[0]<4?1:+(match$1[0]+match$1[1]):version$1)&&userAgent$3$1&&(!(match$1=userAgent$3$1.match(/Edge\/(\d+)/))||74<=match$1[1])&&(match$1=userAgent$3$1.match(/Chrome\/(\d+)/))?+match$1[1]:version$1,V8_VERSION$1$1=engineV8Version$1,fails$a$1=fails$e,symbolConstructorDetection$1=!!Object.getOwnPropertySymbols&&!fails$a$1(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$1&&V8_VERSION$1$1<41}),useSymbolAsUid$1=symbolConstructorDetection$1&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6$1=getBuiltIn$7$1,isCallable$h$1=isCallable$k,isPrototypeOf$2$1=objectIsPrototypeOf$1,$Object$3$1=Object,isSymbol$2$1=useSymbolAsUid$1?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6$1("Symbol");return isCallable$h$1(t)&&isPrototypeOf$2$1(t.prototype,$Object$3$1(e))},$String$4=String,tryToString$4$1=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$g$1=isCallable$k,tryToString$3$1=tryToString$4$1,$TypeError$c$1=TypeError,aCallable$8$1=function(e){if(isCallable$g$1(e))return e;throw $TypeError$c$1(tryToString$3$1(e)+" is not a function")},aCallable$7$1=aCallable$8$1,isNullOrUndefined$2$1=isNullOrUndefined$4$1,getMethod$3$1=function(e,t){return e=e[t],isNullOrUndefined$2$1(e)?void 0:aCallable$7$1(e)},call$c$1=functionCall$1,isCallable$f$1=isCallable$k,isObject$8=isObject$9,$TypeError$b$1=TypeError,ordinaryToPrimitive$1$1=function(e,t){var n,r;if("string"===t&&isCallable$f$1(n=e.toString)&&!isObject$8(r=call$c$1(n,e)))return r;if(isCallable$f$1(n=e.valueOf)&&!isObject$8(r=call$c$1(n,e)))return r;if("string"!==t&&isCallable$f$1(n=e.toString)&&!isObject$8(r=call$c$1(n,e)))return r;throw $TypeError$b$1("Can't convert object to primitive value")},shared$3$1={exports:{}},global$d$1=global$g,defineProperty$6=Object.defineProperty,defineGlobalProperty$3$1=function(t,n){try{defineProperty$6(global$d$1,t,{value:n,configurable:!0,writable:!0})}catch(e){global$d$1[t]=n}return n},defineGlobalProperty$2$1=defineGlobalProperty$3$1,SHARED$1="__core-js_shared__",store$3$1=global$g[SHARED$1]||defineGlobalProperty$2$1(SHARED$1,{}),sharedStore$1=store$3$1,store$2$1=sharedStore$1,requireObjectCoercible$1$1=((shared$3$1.exports=function(e,t){return store$2$1[e]||(store$2$1[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$3),$Object$2$1=Object,toObject$3=function(e){return $Object$2$1(requireObjectCoercible$1$1(e))},toObject$2=toObject$3,hasOwnProperty$1=functionUncurryThis$1({}.hasOwnProperty),hasOwnProperty_1$1=Object.hasOwn||function(e,t){return hasOwnProperty$1(toObject$2(e),t)},uncurryThis$b$1=functionUncurryThis$1,id$1=0,postfix$1=Math.random(),toString$2=uncurryThis$b$1(1..toString),uid$2$1=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$2(++id$1+postfix$1,36)},global$b$1=global$g,shared$2$1=shared$3$1.exports,hasOwn$9=hasOwnProperty_1$1,uid$1$1=uid$2$1,NATIVE_SYMBOL$2=symbolConstructorDetection$1,USE_SYMBOL_AS_UID$2=useSymbolAsUid$1,Symbol$1$1=global$b$1.Symbol,WellKnownSymbolsStore$1=shared$2$1("wks"),createWellKnownSymbol$1=USE_SYMBOL_AS_UID$2?Symbol$1$1.for||Symbol$1$1:Symbol$1$1&&Symbol$1$1.withoutSetter||uid$1$1,wellKnownSymbol$g=function(e){return hasOwn$9(WellKnownSymbolsStore$1,e)||(WellKnownSymbolsStore$1[e]=NATIVE_SYMBOL$2&&hasOwn$9(Symbol$1$1,e)?Symbol$1$1[e]:createWellKnownSymbol$1("Symbol."+e)),WellKnownSymbolsStore$1[e]},call$b$1=functionCall$1,isObject$7$1=isObject$9,isSymbol$1$1=isSymbol$2$1,getMethod$2$1=getMethod$3$1,ordinaryToPrimitive$2=ordinaryToPrimitive$1$1,$TypeError$a$1=TypeError,TO_PRIMITIVE$1=wellKnownSymbol$g("toPrimitive"),toPrimitive$1$1=function(e,t){if(!isObject$7$1(e)||isSymbol$1$1(e))return e;var n=getMethod$2$1(e,TO_PRIMITIVE$1);if(n){if(n=call$b$1(n,e,t=void 0===t?"default":t),!isObject$7$1(n)||isSymbol$1$1(n))return n;throw $TypeError$a$1("Can't convert object to primitive value")}return ordinaryToPrimitive$2(e,t=void 0===t?"number":t)},toPrimitive$2=toPrimitive$1$1,isSymbol$3=isSymbol$2$1,toPropertyKey$2$1=function(e){return e=toPrimitive$2(e,"string"),isSymbol$3(e)?e:e+""},isObject$6$1=isObject$9,document$3$1=global$g.document,EXISTS$1$1=isObject$6$1(document$3$1)&&isObject$6$1(document$3$1.createElement),documentCreateElement$2=function(e){return EXISTS$1$1?document$3$1.createElement(e):{}},createElement$1$1=documentCreateElement$2,ie8DomDefine$1=!descriptors$1&&!fails$e(function(){return 7!=Object.defineProperty(createElement$1$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$9=descriptors$1,call$a$1=functionCall$1,propertyIsEnumerableModule$1=objectPropertyIsEnumerable$1,createPropertyDescriptor$2$1=createPropertyDescriptor$3,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1$1=toPropertyKey$2$1,hasOwn$8$1=hasOwnProperty_1$1,IE8_DOM_DEFINE$1$1=ie8DomDefine$1,$getOwnPropertyDescriptor$1$1=Object.getOwnPropertyDescriptor,objectDefineProperty$1=(objectGetOwnPropertyDescriptor$1.f=DESCRIPTORS$9?$getOwnPropertyDescriptor$1$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$1$1(t),IE8_DOM_DEFINE$1$1)try{return $getOwnPropertyDescriptor$1$1(e,t)}catch(e){}if(hasOwn$8$1(e,t))return createPropertyDescriptor$2$1(!call$a$1(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),v8PrototypeDefineBug$1=descriptors$1&&fails$e(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$5$1=isObject$9,$String$3$1=String,$TypeError$9$1=TypeError,anObject$a=function(e){if(isObject$5$1(e))return e;throw $TypeError$9$1($String$3$1(e)+" is not an object")},DESCRIPTORS$7$1=descriptors$1,IE8_DOM_DEFINE$2=ie8DomDefine$1,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug$1,anObject$9=anObject$a,toPropertyKey$3=toPropertyKey$2$1,$TypeError$8$1=TypeError,$defineProperty$1=Object.defineProperty,$getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,ENUMERABLE$1="enumerable",CONFIGURABLE$1$1="configurable",WRITABLE$1="writable",DESCRIPTORS$6$1=(objectDefineProperty$1.f=DESCRIPTORS$7$1?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,n){var r;return anObject$9(e),t=toPropertyKey$3(t),anObject$9(n),"function"==typeof e&&"prototype"===t&&"value"in n&&WRITABLE$1 in n&&!n[WRITABLE$1]&&(r=$getOwnPropertyDescriptor$2(e,t))&&r[WRITABLE$1]&&(e[t]=n.value,n={configurable:(CONFIGURABLE$1$1 in n?n:r)[CONFIGURABLE$1$1],enumerable:(ENUMERABLE$1 in n?n:r)[ENUMERABLE$1],writable:!1}),$defineProperty$1(e,t,n)}:$defineProperty$1:function(e,t,n){if(anObject$9(e),t=toPropertyKey$3(t),anObject$9(n),IE8_DOM_DEFINE$2)try{return $defineProperty$1(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $TypeError$8$1("Accessors not supported");return"value"in n&&(e[t]=n.value),e},descriptors$1),definePropertyModule$3=objectDefineProperty$1,createPropertyDescriptor$1$1=createPropertyDescriptor$3,createNonEnumerableProperty$4=DESCRIPTORS$6$1?function(e,t,n){return definePropertyModule$3.f(e,t,createPropertyDescriptor$1$1(1,n))}:function(e,t,n){return e[t]=n,e},makeBuiltIn$3$1={exports:{}},DESCRIPTORS$5$1=descriptors$1,hasOwn$7$1=hasOwnProperty_1$1,FunctionPrototype$1$1=Function.prototype,getDescriptor$1=DESCRIPTORS$5$1&&Object.getOwnPropertyDescriptor,EXISTS$2=hasOwn$7$1(FunctionPrototype$1$1,"name"),PROPER$1=EXISTS$2&&"something"===function(){}.name,CONFIGURABLE$2=EXISTS$2&&(!DESCRIPTORS$5$1||getDescriptor$1(FunctionPrototype$1$1,"name").configurable),functionName$1={EXISTS:EXISTS$2,PROPER:PROPER$1,CONFIGURABLE:CONFIGURABLE$2},isCallable$e$1=isCallable$k,store$1$1=sharedStore$1,functionToString$1=functionUncurryThis$1(Function.toString),inspectSource$3$1=(isCallable$e$1(store$1$1.inspectSource)||(store$1$1.inspectSource=function(e){return functionToString$1(e)}),store$1$1.inspectSource),isCallable$d$1=isCallable$k,WeakMap$1$1=global$g.WeakMap,weakMapBasicDetection$1=isCallable$d$1(WeakMap$1$1)&&/native code/.test(String(WeakMap$1$1)),shared$1$1=shared$3$1.exports,uid$3=uid$2$1,keys$1=shared$1$1("keys"),sharedKey$3=function(e){return keys$1[e]||(keys$1[e]=uid$3(e))},hiddenKeys$4={},NATIVE_WEAK_MAP$1=weakMapBasicDetection$1,global$8$1=global$g,isObject$4$1=isObject$9,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$6$1=hasOwnProperty_1$1,shared$4=sharedStore$1,sharedKey$2=sharedKey$3,hiddenKeys$3$1=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED$1="Object already initialized",TypeError$2$1=global$8$1.TypeError,WeakMap$3=global$8$1.WeakMap,enforce$1=function(e){return has$1(e)?get$1(e):set$1$1(e,{})},getterFor$1=function(t){return function(e){if(isObject$4$1(e)&&(e=get$1(e)).type===t)return e;throw TypeError$2$1("Incompatible receiver, "+t+" required")}},has$1=NATIVE_WEAK_MAP$1||shared$4.state?((store$5=shared$4.state||(shared$4.state=new WeakMap$3)).get=store$5.get,store$5.has=store$5.has,store$5.set=store$5.set,set$1$1=function(e,t){if(store$5.has(e))throw TypeError$2$1(OBJECT_ALREADY_INITIALIZED$1);return t.facade=e,store$5.set(e,t),t},get$1=function(e){return store$5.get(e)||{}},function(e){return store$5.has(e)}):(STATE$1=sharedKey$2("state"),hiddenKeys$3$1[STATE$1]=!0,set$1$1=function(e,t){if(hasOwn$6$1(e,STATE$1))throw TypeError$2$1(OBJECT_ALREADY_INITIALIZED$1);return t.facade=e,createNonEnumerableProperty$3(e,STATE$1,t),t},get$1=function(e){return hasOwn$6$1(e,STATE$1)?e[STATE$1]:{}},function(e){return hasOwn$6$1(e,STATE$1)}),internalState$1={set:set$1$1,get:get$1,has:has$1,enforce:enforce$1,getterFor:getterFor$1},uncurryThis$9$1=functionUncurryThis$1,fails$7$1=fails$e,isCallable$c$1=isCallable$k,hasOwn$5$1=hasOwnProperty_1$1,DESCRIPTORS$4$1=descriptors$1,CONFIGURABLE_FUNCTION_NAME$1=functionName$1.CONFIGURABLE,inspectSource$2$1=inspectSource$3$1,InternalStateModule$2=internalState$1,enforceInternalState$1=InternalStateModule$2.enforce,getInternalState$1=InternalStateModule$2.get,$String$2$1=String,defineProperty$5=Object.defineProperty,stringSlice$2=uncurryThis$9$1("".slice),replace$1=uncurryThis$9$1("".replace),join$1=uncurryThis$9$1([].join),CONFIGURABLE_LENGTH$1=DESCRIPTORS$4$1&&!fails$7$1(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE$1=String(String).split("String"),makeBuiltIn$2$1=makeBuiltIn$3$1.exports=function(e,t,n){"Symbol("===stringSlice$2($String$2$1(t),0,7)&&(t="["+replace$1($String$2$1(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!hasOwn$5$1(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$4$1?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH$1&&n&&hasOwn$5$1(n,"arity")&&e.length!==n.arity&&defineProperty$5(e,"length",{value:n.arity});try{n&&hasOwn$5$1(n,"constructor")&&n.constructor?DESCRIPTORS$4$1&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}return n=enforceInternalState$1(e),hasOwn$5$1(n,"source")||(n.source=join$1(TEMPLATE$1,"string"==typeof t?t:"")),e},isCallable$b$1=(Function.prototype.toString=makeBuiltIn$2$1(function(){return isCallable$c$1(this)&&getInternalState$1(this).source||inspectSource$2$1(this)},"toString"),isCallable$k),definePropertyModule$2$1=objectDefineProperty$1,makeBuiltIn$1$1=makeBuiltIn$3$1.exports,defineGlobalProperty$1$1=defineGlobalProperty$3$1,defineBuiltIn$5=function(e,t,n,r){var i=(r=r||{}).enumerable,o=void 0!==r.name?r.name:t;if(isCallable$b$1(n)&&makeBuiltIn$1$1(n,o,r),r.global)i?e[t]=n:defineGlobalProperty$1$1(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:definePropertyModule$2$1.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},objectGetOwnPropertyNames$1={},ceil$1=Math.ceil,floor$1=Math.floor,mathTrunc$1=Math.trunc||function(e){return(0<(e=+e)?floor$1:ceil$1)(e)},trunc$1=mathTrunc$1,toIntegerOrInfinity$2$1=function(e){return(e=+e)!=e||0==e?0:trunc$1(e)},toIntegerOrInfinity$1$1=toIntegerOrInfinity$2$1,max$1=Math.max,min$1$1=Math.min,toAbsoluteIndex$1$1=function(e,t){return(e=toIntegerOrInfinity$1$1(e))<0?max$1(e+t,0):min$1$1(e,t)},toIntegerOrInfinity$3=toIntegerOrInfinity$2$1,min$2=Math.min,toLength$1$1=function(e){return 0<e?min$2(toIntegerOrInfinity$3(e),9007199254740991):0},toLength$2=toLength$1$1,lengthOfArrayLike$2$1=function(e){return toLength$2(e.length)},toIndexedObject$3$1=toIndexedObject$5,toAbsoluteIndex$2=toAbsoluteIndex$1$1,lengthOfArrayLike$1$1=lengthOfArrayLike$2$1,createMethod$1=function(s){return function(e,t,n){var r,i=toIndexedObject$3$1(e),o=lengthOfArrayLike$1$1(i),a=toAbsoluteIndex$2(n,o);if(s&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===t)return s||a||0;return!s&&-1}},arrayIncludes$1={includes:createMethod$1(!0),indexOf:createMethod$1(!1)},uncurryThis$8$1=functionUncurryThis$1,hasOwn$4$1=hasOwnProperty_1$1,toIndexedObject$2$1=toIndexedObject$5,indexOf$1=arrayIncludes$1.indexOf,hiddenKeys$2$1=hiddenKeys$4,push$1=uncurryThis$8$1([].push),objectKeysInternal$1=function(e,t){var n,r=toIndexedObject$2$1(e),i=0,o=[];for(n in r)!hasOwn$4$1(hiddenKeys$2$1,n)&&hasOwn$4$1(r,n)&&push$1(o,n);for(;t.length>i;)hasOwn$4$1(r,n=t[i++])&&!~indexOf$1(o,n)&&push$1(o,n);return o},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal$1,hiddenKeys$1$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols$1=(objectGetOwnPropertyNames$1.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1$1)},{}),getBuiltIn$5$1=(objectGetOwnPropertySymbols$1.f=Object.getOwnPropertySymbols,getBuiltIn$7$1),getOwnPropertyNamesModule$1=objectGetOwnPropertyNames$1,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols$1,anObject$8$1=anObject$a,concat$1=functionUncurryThis$1([].concat),ownKeys$1$1=getBuiltIn$5$1("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule$1.f(anObject$8$1(e)),n=getOwnPropertySymbolsModule$1.f;return n?concat$1(t,n(e)):t},hasOwn$3$1=hasOwnProperty_1$1,ownKeys$2=ownKeys$1$1,getOwnPropertyDescriptorModule$1=objectGetOwnPropertyDescriptor$1,definePropertyModule$1$1=objectDefineProperty$1,copyConstructorProperties$1$1=function(e,t,n){for(var r=ownKeys$2(t),i=definePropertyModule$1$1.f,o=getOwnPropertyDescriptorModule$1.f,a=0;a<r.length;a++){var s=r[a];hasOwn$3$1(e,s)||n&&hasOwn$3$1(n,s)||i(e,s,o(t,s))}},fails$6$1=fails$e,isCallable$a$1=isCallable$k,replacement$1=/#|\.prototype\./,isForced$2$1=function(e,t){return(e=data$1[normalize$1(e)])==POLYFILL$1||e!=NATIVE$1&&(isCallable$a$1(t)?fails$6$1(t):!!t)},normalize$1=isForced$2$1.normalize=function(e){return String(e).replace(replacement$1,".").toLowerCase()},data$1=isForced$2$1.data={},NATIVE$1=isForced$2$1.NATIVE="N",POLYFILL$1=isForced$2$1.POLYFILL="P",isForced_1$1=isForced$2$1,global$7$1=global$g,getOwnPropertyDescriptor$1$1=objectGetOwnPropertyDescriptor$1.f,createNonEnumerableProperty$2$1=createNonEnumerableProperty$4,defineBuiltIn$4=defineBuiltIn$5,defineGlobalProperty$4=defineGlobalProperty$3$1,copyConstructorProperties$2=copyConstructorProperties$1$1,isForced$1$1=isForced_1$1,_export$1=function(e,t){var n,r,i,o=e.target,a=e.global,s=e.stat,l=a?global$7$1:s?global$7$1[o]||defineGlobalProperty$4(o,{}):(global$7$1[o]||{}).prototype;if(l)for(n in t){if(r=t[n],i=e.dontCallGetSet?(i=getOwnPropertyDescriptor$1$1(l,n))&&i.value:l[n],!isForced$1$1(a?n:o+(s?".":"#")+n,e.forced)&&void 0!==i){if(typeof r==typeof i)continue;copyConstructorProperties$2(r,i)}(e.sham||i&&i.sham)&&createNonEnumerableProperty$2$1(r,"sham",!0),defineBuiltIn$4(l,n,r,e)}},engineIsNode$1="undefined"!=typeof process&&"process"==classofRaw$2$1(process),uncurryThis$6$1=functionUncurryThis$1,aCallable$6$1=aCallable$8$1,functionUncurryThisAccessor$1=function(e,t,n){try{return uncurryThis$6$1(aCallable$6$1(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},isCallable$9$1=isCallable$k,$String$1$1=String,$TypeError$7$1=TypeError,aPossiblePrototype$1$1=function(e){if("object"==typeof e||isCallable$9$1(e))return e;throw $TypeError$7$1("Can't set "+$String$1$1(e)+" as a prototype")},uncurryThisAccessor$1=functionUncurryThisAccessor$1,anObject$7$1=anObject$a,aPossiblePrototype$2=aPossiblePrototype$1$1,objectSetPrototypeOf$1=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=uncurryThisAccessor$1(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return anObject$7$1(e),aPossiblePrototype$2(t),r?n(e,t):e.__proto__=t,e}}():void 0),defineProperty$4=objectDefineProperty$1.f,hasOwn$2$1=hasOwnProperty_1$1,TO_STRING_TAG$3=wellKnownSymbol$g("toStringTag"),setToStringTag$3=function(e,t,n){(e=e&&!n?e.prototype:e)&&!hasOwn$2$1(e,TO_STRING_TAG$3)&&defineProperty$4(e,TO_STRING_TAG$3,{configurable:!0,value:t})},makeBuiltIn$4=makeBuiltIn$3$1.exports,defineProperty$3$1=objectDefineProperty$1,defineBuiltInAccessor$1$1=function(e,t,n){return n.get&&makeBuiltIn$4(n.get,t,{getter:!0}),n.set&&makeBuiltIn$4(n.set,t,{setter:!0}),defineProperty$3$1.f(e,t,n)},getBuiltIn$4$1=getBuiltIn$7$1,defineBuiltInAccessor$2=defineBuiltInAccessor$1$1,DESCRIPTORS$3$1=descriptors$1,SPECIES$2$1=wellKnownSymbol$g("species"),setSpecies$1$1=function(e){e=getBuiltIn$4$1(e),DESCRIPTORS$3$1&&e&&!e[SPECIES$2$1]&&defineBuiltInAccessor$2(e,SPECIES$2$1,{configurable:!0,get:function(){return this}})},isPrototypeOf$1$1=objectIsPrototypeOf$1,$TypeError$6$1=TypeError,anInstance$1$1=function(e,t){if(isPrototypeOf$1$1(t,e))return e;throw $TypeError$6$1("Incorrect invocation")},TO_STRING_TAG$2$1=wellKnownSymbol$g("toStringTag"),test$1={},toStringTagSupport$1=(test$1[TO_STRING_TAG$2$1]="z","[object z]"===String(test$1)),TO_STRING_TAG_SUPPORT$1=toStringTagSupport$1,isCallable$8$1=isCallable$k,classofRaw$1$1=classofRaw$2$1,TO_STRING_TAG$1$1=wellKnownSymbol$g("toStringTag"),$Object$1$1=Object,CORRECT_ARGUMENTS$1="Arguments"==classofRaw$1$1(function(){return arguments}()),tryGet$1=function(e,t){try{return e[t]}catch(e){}},classof$4$1=TO_STRING_TAG_SUPPORT$1?classofRaw$1$1:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet$1(e=$Object$1$1(e),TO_STRING_TAG$1$1))?t:CORRECT_ARGUMENTS$1?classofRaw$1$1(e):"Object"==(t=classofRaw$1$1(e))&&isCallable$8$1(e.callee)?"Arguments":t},uncurryThis$5$1=functionUncurryThis$1,fails$5$1=fails$e,isCallable$7$1=isCallable$k,classof$3$1=classof$4$1,inspectSource$1$1=inspectSource$3$1,noop$1=function(){},empty$1=[],construct$1=getBuiltIn$7$1("Reflect","construct"),constructorRegExp$1=/^\s*(?:class|function)\b/,exec$1=uncurryThis$5$1(constructorRegExp$1.exec),INCORRECT_TO_STRING$1=!constructorRegExp$1.exec(noop$1),isConstructorModern$1=function(e){if(!isCallable$7$1(e))return!1;try{return construct$1(noop$1,empty$1,e),!0}catch(e){return!1}},isConstructorLegacy$1=function(e){if(!isCallable$7$1(e))return!1;switch(classof$3$1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$1||!!exec$1(constructorRegExp$1,inspectSource$1$1(e))}catch(e){return!0}},isConstructor$1$1=(isConstructorLegacy$1.sham=!0,!construct$1||fails$5$1(function(){var e;return isConstructorModern$1(isConstructorModern$1.call)||!isConstructorModern$1(Object)||!isConstructorModern$1(function(){e=!0})||e})?isConstructorLegacy$1:isConstructorModern$1),isConstructor$2=isConstructor$1$1,tryToString$2$1=tryToString$4$1,$TypeError$5$1=TypeError,aConstructor$1$1=function(e){if(isConstructor$2(e))return e;throw $TypeError$5$1(tryToString$2$1(e)+" is not a constructor")},anObject$6$1=anObject$a,aConstructor$2=aConstructor$1$1,isNullOrUndefined$1$1=isNullOrUndefined$4$1,SPECIES$1$1=wellKnownSymbol$g("species"),speciesConstructor$1$1=function(e,t){return void 0===(e=anObject$6$1(e).constructor)||isNullOrUndefined$1$1(e=anObject$6$1(e)[SPECIES$1$1])?t:aConstructor$2(e)},NATIVE_BIND$1$1=functionBindNative$1,FunctionPrototype$3=Function.prototype,apply$1$1=FunctionPrototype$3.apply,call$9$1=FunctionPrototype$3.call,functionApply$1="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1$1?call$9$1.bind(apply$1$1):function(){return call$9$1.apply(apply$1$1,arguments)}),classofRaw$3=classofRaw$2$1,uncurryThis$4$1=functionUncurryThis$1,functionUncurryThisClause$1=function(e){if("Function"===classofRaw$3(e))return uncurryThis$4$1(e)},aCallable$5$1=aCallable$8$1,NATIVE_BIND$4=functionBindNative$1,bind$4$1=functionUncurryThisClause$1(functionUncurryThisClause$1.bind),functionBindContext$1=function(e,t){return aCallable$5$1(e),void 0===t?e:NATIVE_BIND$4?bind$4$1(e,t):function(){return e.apply(t,arguments)}},html$2=getBuiltIn$7$1("document","documentElement"),arraySlice$1$1=functionUncurryThis$1([].slice),$TypeError$4$1=TypeError,validateArgumentsLength$1$1=function(e,t){if(e<t)throw $TypeError$4$1("Not enough arguments");return e},userAgent$2$1=engineUserAgent$1,engineIsIos$1=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2$1),global$6$1=global$g,apply$2=functionApply$1,bind$3$1=functionBindContext$1,isCallable$6$1=isCallable$k,hasOwn$1$1=hasOwnProperty_1$1,fails$4$1=fails$e,html$1$1=html$2,arraySlice$2=arraySlice$1$1,createElement$2=documentCreateElement$2,validateArgumentsLength$2=validateArgumentsLength$1$1,IS_IOS$1$1=engineIsIos$1,IS_NODE$3$1=engineIsNode$1,set$2=global$6$1.setImmediate,clear$1=global$6$1.clearImmediate,process$3$1=global$6$1.process,Dispatch$1=global$6$1.Dispatch,Function$1$1=global$6$1.Function,MessageChannel$2=global$6$1.MessageChannel,String$1$1=global$6$1.String,counter$1=0,queue$2$1={},ONREADYSTATECHANGE$1="onreadystatechange",run$1=(fails$4$1(function(){$location$1=global$6$1.location}),function(e){var t;hasOwn$1$1(queue$2$1,e)&&(t=queue$2$1[e],delete queue$2$1[e],t())}),runner$1=function(e){return function(){run$1(e)}},eventListener$1=function(e){run$1(e.data)},globalPostMessageDefer$1=function(e){global$6$1.postMessage(String$1$1(e),$location$1.protocol+"//"+$location$1.host)},task$1$1=(set$2&&clear$1||(set$2=function(e){validateArgumentsLength$2(arguments.length,1);var t=isCallable$6$1(e)?e:Function$1$1(e),n=arraySlice$2(arguments,1);return queue$2$1[++counter$1]=function(){apply$2(t,void 0,n)},defer$1(counter$1),counter$1},clear$1=function(e){delete queue$2$1[e]},IS_NODE$3$1?defer$1=function(e){process$3$1.nextTick(runner$1(e))}:Dispatch$1&&Dispatch$1.now?defer$1=function(e){Dispatch$1.now(runner$1(e))}:MessageChannel$2&&!IS_IOS$1$1?(port$1=(channel$1=new MessageChannel$2).port2,channel$1.port1.onmessage=eventListener$1,defer$1=bind$3$1(port$1.postMessage,port$1)):global$6$1.addEventListener&&isCallable$6$1(global$6$1.postMessage)&&!global$6$1.importScripts&&$location$1&&"file:"!==$location$1.protocol&&!fails$4$1(globalPostMessageDefer$1)?(defer$1=globalPostMessageDefer$1,global$6$1.addEventListener("message",eventListener$1,!1)):defer$1=ONREADYSTATECHANGE$1 in createElement$2("script")?function(e){html$1$1.appendChild(createElement$2("script"))[ONREADYSTATECHANGE$1]=function(){html$1$1.removeChild(this),run$1(e)}}:function(e){setTimeout(runner$1(e),0)}),{set:set$2,clear:clear$1}),Queue$2$1=function(){this.head=null,this.tail=null},queue$1$1=(Queue$2$1.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},Queue$2$1),userAgent$1$1=engineUserAgent$1,engineIsIosPebble$1=/ipad|iphone|ipod/i.test(userAgent$1$1)&&"undefined"!=typeof Pebble,userAgent$4=engineUserAgent$1,engineIsWebosWebkit$1=/web0s(?!.*chrome)/i.test(userAgent$4),global$5$1=global$g,bind$2$1=functionBindContext$1,getOwnPropertyDescriptor$3=objectGetOwnPropertyDescriptor$1.f,macrotask$1=task$1$1.set,Queue$1$1=queue$1$1,IS_IOS$2=engineIsIos$1,IS_IOS_PEBBLE$1=engineIsIosPebble$1,IS_WEBOS_WEBKIT$1=engineIsWebosWebkit$1,IS_NODE$2$1=engineIsNode$1,MutationObserver$1=global$5$1.MutationObserver||global$5$1.WebKitMutationObserver,document$2$1=global$5$1.document,process$2$1=global$5$1.process,Promise$1$1=global$5$1.Promise,queueMicrotaskDescriptor$1=getOwnPropertyDescriptor$3(global$5$1,"queueMicrotask"),microtask$1$1=queueMicrotaskDescriptor$1&&queueMicrotaskDescriptor$1.value,microtask_1$1=(microtask$1$1||(queue$3=new Queue$1$1,flush$1=function(){var e,t;for(IS_NODE$2$1&&(e=process$2$1.domain)&&e.exit();t=queue$3.get();)try{t()}catch(e){throw queue$3.head&&notify$1$1(),e}e&&e.enter()},notify$1$1=IS_IOS$2||IS_NODE$2$1||IS_WEBOS_WEBKIT$1||!MutationObserver$1||!document$2$1?!IS_IOS_PEBBLE$1&&Promise$1$1&&Promise$1$1.resolve?((promise$1=Promise$1$1.resolve(void 0)).constructor=Promise$1$1,then$1=bind$2$1(promise$1.then,promise$1),function(){then$1(flush$1)}):IS_NODE$2$1?function(){process$2$1.nextTick(flush$1)}:(macrotask$1=bind$2$1(macrotask$1,global$5$1),function(){macrotask$1(flush$1)}):(toggle$1=!0,node$1=document$2$1.createTextNode(""),new MutationObserver$1(flush$1).observe(node$1,{characterData:!0}),function(){node$1.data=toggle$1=!toggle$1}),microtask$1$1=function(e){queue$3.head||notify$1$1(),queue$3.add(e)}),microtask$1$1),hostReportErrors$1$1=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},perform$3$1=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},promiseNativeConstructor$1=global$g.Promise,engineIsDeno$1="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,engineIsBrowser$1=!engineIsDeno$1&&!engineIsNode$1&&"object"==typeof window&&"object"==typeof document,global$3$1=global$g,NativePromiseConstructor$3$1=promiseNativeConstructor$1,isCallable$5$1=isCallable$k,isForced$3=isForced_1$1,inspectSource$4=inspectSource$3$1,wellKnownSymbol$9$1=wellKnownSymbol$g,IS_BROWSER$1=engineIsBrowser$1,IS_DENO$2=engineIsDeno$1,V8_VERSION$2=engineV8Version$1,SPECIES$3=(NativePromiseConstructor$3$1&&NativePromiseConstructor$3$1.prototype,wellKnownSymbol$9$1("species")),SUBCLASSING$1=!1,NATIVE_PROMISE_REJECTION_EVENT$1$1=isCallable$5$1(global$3$1.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5$1=isForced$3("Promise",function(){var e=inspectSource$4(NativePromiseConstructor$3$1),t=e!==String(NativePromiseConstructor$3$1);if(!t&&66===V8_VERSION$2)return!0;if(!V8_VERSION$2||V8_VERSION$2<51||!/native code/.test(e)){function n(e){e(function(){},function(){})}if(((e=new NativePromiseConstructor$3$1(function(e){e(1)})).constructor={})[SPECIES$3]=n,!(SUBCLASSING$1=e.then(function(){})instanceof n))return!0}return!t&&(IS_BROWSER$1||IS_DENO$2)&&!NATIVE_PROMISE_REJECTION_EVENT$1$1}),promiseConstructorDetection$1={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$1,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$1,SUBCLASSING:SUBCLASSING$1},newPromiseCapability$2$1={},aCallable$4$1=aCallable$8$1,$TypeError$3$1=TypeError,PromiseCapability$1=function(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw $TypeError$3$1("Bad Promise constructor");n=e,r=t}),this.resolve=aCallable$4$1(n),this.reject=aCallable$4$1(r)},$$9=(newPromiseCapability$2$1.f=function(e){return new PromiseCapability$1(e)},_export$1),IS_NODE$4=engineIsNode$1,global$2$1=global$g,call$8$1=functionCall$1,defineBuiltIn$3$1=defineBuiltIn$5,setPrototypeOf$1=objectSetPrototypeOf$1,setToStringTag$2=setToStringTag$3,setSpecies$2=setSpecies$1$1,aCallable$3$1=aCallable$8$1,isCallable$4$1=isCallable$k,isObject$3$1=isObject$9,anInstance$2=anInstance$1$1,speciesConstructor$2=speciesConstructor$1$1,task$2=task$1$1.set,microtask$2=microtask_1$1,hostReportErrors$2=hostReportErrors$1$1,perform$2$1=perform$3$1,Queue$3=queue$1$1,InternalStateModule$1$1=internalState$1,NativePromiseConstructor$2$1=promiseNativeConstructor$1,PromiseConstructorDetection$1=promiseConstructorDetection$1,newPromiseCapabilityModule$3$1=newPromiseCapability$2$1,PROMISE$1="Promise",FORCED_PROMISE_CONSTRUCTOR$4$1=PromiseConstructorDetection$1.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$2=PromiseConstructorDetection$1.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$1=PromiseConstructorDetection$1.SUBCLASSING,getInternalPromiseState$1=InternalStateModule$1$1.getterFor(PROMISE$1),setInternalState$1=InternalStateModule$1$1.set,NativePromisePrototype$1$1=NativePromiseConstructor$2$1&&NativePromiseConstructor$2$1.prototype,PromiseConstructor$1=NativePromiseConstructor$2$1,PromisePrototype$1=NativePromisePrototype$1$1,TypeError$1$1=global$2$1.TypeError,document$1$1=global$2$1.document,process$1$1=global$2$1.process,newPromiseCapability$1$1=newPromiseCapabilityModule$3$1.f,newGenericPromiseCapability$1=newPromiseCapability$1$1,DISPATCH_EVENT$1=!!(document$1$1&&document$1$1.createEvent&&global$2$1.dispatchEvent),UNHANDLED_REJECTION$1="unhandledrejection",REJECTION_HANDLED$1="rejectionhandled",PENDING$1=0,FULFILLED$1=1,REJECTED$1=2,HANDLED$1=1,UNHANDLED$1=2,isThenable$1=function(e){var t;return!(!isObject$3$1(e)||!isCallable$4$1(t=e.then))&&t},callReaction$1=function(e,t){var n,r,i,o=t.value,a=t.state==FULFILLED$1,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(t.rejection===UNHANDLED$1&&onHandleUnhandled$1(t),t.rejection=HANDLED$1),!0===s?n=o:(u&&u.enter(),n=s(o),u&&(u.exit(),i=!0)),n===e.promise?c(TypeError$1$1("Promise-chain cycle")):(r=isThenable$1(n))?call$8$1(r,n,l,c):l(n)):c(o)}catch(e){u&&!i&&u.exit(),c(e)}},notify$2=function(n,r){n.notified||(n.notified=!0,microtask$2(function(){for(var e,t=n.reactions;e=t.get();)callReaction$1(e,n);n.notified=!1,r&&!n.rejection&&onUnhandled$1(n)}))},dispatchEvent$1=function(e,t,n){var r;DISPATCH_EVENT$1?((r=document$1$1.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),global$2$1.dispatchEvent(r)):r={promise:t,reason:n},!NATIVE_PROMISE_REJECTION_EVENT$2&&(t=global$2$1["on"+e])?t(r):e===UNHANDLED_REJECTION$1&&hostReportErrors$2("Unhandled promise rejection",n)},onUnhandled$1=function(r){call$8$1(task$2,global$2$1,function(){var e=r.facade,t=r.value,n=isUnhandled$1(r);if(n&&(n=perform$2$1(function(){IS_NODE$4?process$1$1.emit("unhandledRejection",t,e):dispatchEvent$1(UNHANDLED_REJECTION$1,e,t)}),r.rejection=IS_NODE$4||isUnhandled$1(r)?UNHANDLED$1:HANDLED$1,n.error))throw n.value})},isUnhandled$1=function(e){return e.rejection!==HANDLED$1&&!e.parent},onHandleUnhandled$1=function(t){call$8$1(task$2,global$2$1,function(){var e=t.facade;IS_NODE$4?process$1$1.emit("rejectionHandled",e):dispatchEvent$1(REJECTION_HANDLED$1,e,t.value)})},bind$1$1=function(t,n,r){return function(e){t(n,e,r)}},internalReject$1=function(e,t,n){e.done||(e.done=!0,(e=n||e).value=t,e.state=REJECTED$1,notify$2(e,!0))},internalResolve$1=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw TypeError$1$1("Promise can't be resolved itself");var r=isThenable$1(e);r?microtask$2(function(){var t={done:!1};try{call$8$1(r,e,bind$1$1(internalResolve$1,t,n),bind$1$1(internalReject$1,t,n))}catch(e){internalReject$1(t,e,n)}}):(n.value=e,n.state=FULFILLED$1,notify$2(n,!1))}catch(e){internalReject$1({done:!1},e,n)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$1&&(PromisePrototype$1=(PromiseConstructor$1=function(e){anInstance$2(this,PromisePrototype$1),aCallable$3$1(e),call$8$1(Internal$1,this);var t=getInternalPromiseState$1(this);try{e(bind$1$1(internalResolve$1,t),bind$1$1(internalReject$1,t))}catch(e){internalReject$1(t,e)}}).prototype,(Internal$1=function(e){setInternalState$1(this,{type:PROMISE$1,done:!1,notified:!1,parent:!1,reactions:new Queue$3,rejection:!1,state:PENDING$1,value:void 0})}).prototype=defineBuiltIn$3$1(PromisePrototype$1,"then",function(e,t){var n=getInternalPromiseState$1(this),r=newPromiseCapability$1$1(speciesConstructor$2(this,PromiseConstructor$1));return n.parent=!0,r.ok=!isCallable$4$1(e)||e,r.fail=isCallable$4$1(t)&&t,r.domain=IS_NODE$4?process$1$1.domain:void 0,n.state==PENDING$1?n.reactions.add(r):microtask$2(function(){callReaction$1(r,n)}),r.promise}),OwnPromiseCapability$1=function(){var e=new Internal$1,t=getInternalPromiseState$1(e);this.promise=e,this.resolve=bind$1$1(internalResolve$1,t),this.reject=bind$1$1(internalReject$1,t)},newPromiseCapabilityModule$3$1.f=newPromiseCapability$1$1=function(e){return e===PromiseConstructor$1||e===PromiseWrapper$1?new OwnPromiseCapability$1(e):newGenericPromiseCapability$1(e)},isCallable$4$1(NativePromiseConstructor$2$1))&&NativePromisePrototype$1$1!==Object.prototype){nativeThen$1=NativePromisePrototype$1$1.then,NATIVE_PROMISE_SUBCLASSING$1||defineBuiltIn$3$1(NativePromisePrototype$1$1,"then",function(e,t){var n=this;return new PromiseConstructor$1(function(e,t){call$8$1(nativeThen$1,n,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1$1.constructor}catch(e){}setPrototypeOf$1&&setPrototypeOf$1(NativePromisePrototype$1$1,PromisePrototype$1)}$$9({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$1},{Promise:PromiseConstructor$1}),setToStringTag$2(PromiseConstructor$1,PROMISE$1,!1),setSpecies$2(PROMISE$1);var iterators$1={},Iterators$4=iterators$1,ITERATOR$5=wellKnownSymbol$g("iterator"),ArrayPrototype$1=Array.prototype,isArrayIteratorMethod$1$1=function(e){return void 0!==e&&(Iterators$4.Array===e||ArrayPrototype$1[ITERATOR$5]===e)},classof$2$1=classof$4$1,getMethod$1$1=getMethod$3$1,isNullOrUndefined$5=isNullOrUndefined$4$1,Iterators$3=iterators$1,ITERATOR$4=wellKnownSymbol$g("iterator"),getIteratorMethod$2$1=function(e){if(!isNullOrUndefined$5(e))return getMethod$1$1(e,ITERATOR$4)||getMethod$1$1(e,"@@iterator")||Iterators$3[classof$2$1(e)]},call$7$1=functionCall$1,aCallable$2$1=aCallable$8$1,anObject$5$1=anObject$a,tryToString$1$1=tryToString$4$1,getIteratorMethod$1$1=getIteratorMethod$2$1,$TypeError$2$1=TypeError,getIterator$1$1=function(e,t){var n=arguments.length<2?getIteratorMethod$1$1(e):t;if(aCallable$2$1(n))return anObject$5$1(call$7$1(n,e));throw $TypeError$2$1(tryToString$1$1(e)+" is not iterable")},call$6$1=functionCall$1,anObject$4$1=anObject$a,getMethod$4=getMethod$3$1,iteratorClose$1$1=function(e,t,n){var r,i;anObject$4$1(e);try{if(!(r=getMethod$4(e,"return"))){if("throw"===t)throw n;return n}r=call$6$1(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return anObject$4$1(r),n},bind$5=functionBindContext$1,call$5$1=functionCall$1,anObject$3$1=anObject$a,tryToString$5=tryToString$4$1,isArrayIteratorMethod$2=isArrayIteratorMethod$1$1,lengthOfArrayLike$3=lengthOfArrayLike$2$1,isPrototypeOf$3=objectIsPrototypeOf$1,getIterator$2=getIterator$1$1,getIteratorMethod$3=getIteratorMethod$2$1,iteratorClose$2=iteratorClose$1$1,$TypeError$1$1=TypeError,Result$1=function(e,t){this.stopped=e,this.result=t},ResultPrototype$1=Result$1.prototype,iterate$2$1=function(e,t,n){function r(e){return o&&iteratorClose$2(o,"normal",e),new Result$1(!0,e)}function i(e){return p?(anObject$3$1(e),m?g(e[0],e[1],r):g(e[0],e[1])):m?g(e,r):g(e)}var o,a,s,l,c,u,d=n&&n.that,p=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),g=bind$5(t,d);if(f)o=e.iterator;else if(h)o=e;else{if(!(n=getIteratorMethod$3(e)))throw $TypeError$1$1(tryToString$5(e)+" is not iterable");if(isArrayIteratorMethod$2(n)){for(a=0,s=lengthOfArrayLike$3(e);a<s;a++)if((l=i(e[a]))&&isPrototypeOf$3(ResultPrototype$1,l))return l;return new Result$1(!1)}o=getIterator$2(e,n)}for(c=(f?e:o).next;!(u=call$5$1(c,o)).done;){try{l=i(u.value)}catch(e){iteratorClose$2(o,"throw",e)}if("object"==typeof l&&l&&isPrototypeOf$3(ResultPrototype$1,l))return l}return new Result$1(!1)},ITERATOR$3=wellKnownSymbol$g("iterator"),SAFE_CLOSING$1=!1;try{var called$1=0,iteratorWithReturn$1={next:function(){return{done:!!called$1++}},return:function(){SAFE_CLOSING$1=!0}};iteratorWithReturn$1[ITERATOR$3]=function(){return this},Array.from(iteratorWithReturn$1,function(){throw 2})}catch(e){}var method$1,activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,checkCorrectnessOfIteration$1$1=function(e,t){if(!t&&!SAFE_CLOSING$1)return!1;var n=!1;try{var r={};r[ITERATOR$3]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},NativePromiseConstructor$1$1=promiseNativeConstructor$1,checkCorrectnessOfIteration$2=checkCorrectnessOfIteration$1$1,FORCED_PROMISE_CONSTRUCTOR$3$1=promiseConstructorDetection$1.CONSTRUCTOR,promiseStaticsIncorrectIteration$1=FORCED_PROMISE_CONSTRUCTOR$3$1||!checkCorrectnessOfIteration$2(function(e){NativePromiseConstructor$1$1.all(e).then(void 0,function(){})}),call$4$1=functionCall$1,aCallable$1$1=aCallable$8$1,newPromiseCapabilityModule$2$1=newPromiseCapability$2$1,perform$1$1=perform$3$1,iterate$1$1=iterate$2$1,$$7=(_export$1({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration$1},{all:function(e){var s=this,t=newPromiseCapabilityModule$2$1.f(s),l=t.resolve,c=t.reject,n=perform$1$1(function(){var r=aCallable$1$1(s.resolve),i=[],o=0,a=1;iterate$1$1(e,function(e){var t=o++,n=!1;a++,call$4$1(r,s,e).then(function(e){n||(n=!0,i[t]=e,--a)||l(i)},c)}),--a||l(i)});return n.error&&c(n.value),t.promise}}),_export$1),FORCED_PROMISE_CONSTRUCTOR$2$1=promiseConstructorDetection$1.CONSTRUCTOR,NativePromiseConstructor$4=promiseNativeConstructor$1,getBuiltIn$1$1=getBuiltIn$7$1,isCallable$3$1=isCallable$k,defineBuiltIn$2$1=defineBuiltIn$5,NativePromisePrototype$2=NativePromiseConstructor$4&&NativePromiseConstructor$4.prototype,call$3$1=($$7({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$1,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable$3$1(NativePromiseConstructor$4)&&(method$1=getBuiltIn$1$1("Promise").prototype.catch,NativePromisePrototype$2.catch!==method$1)&&defineBuiltIn$2$1(NativePromisePrototype$2,"catch",method$1,{unsafe:!0}),functionCall$1),aCallable$9=aCallable$8$1,newPromiseCapabilityModule$1$1=newPromiseCapability$2$1,perform$4=perform$3$1,iterate$3=iterate$2$1,$$5$1=(_export$1({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration$1},{race:function(e){var n=this,r=newPromiseCapabilityModule$1$1.f(n),i=r.reject,t=perform$4(function(){var t=aCallable$9(n.resolve);iterate$3(e,function(e){call$3$1(t,n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}}),_export$1),call$2$1=functionCall$1,newPromiseCapabilityModule$4=newPromiseCapability$2$1,FORCED_PROMISE_CONSTRUCTOR$1$1=promiseConstructorDetection$1.CONSTRUCTOR,anObject$2$1=($$5$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$1},{reject:function(e){var t=newPromiseCapabilityModule$4.f(this);return call$2$1(t.reject,void 0,e),t.promise}}),anObject$a),isObject$2$1=isObject$9,newPromiseCapability$3=newPromiseCapability$2$1,promiseResolve$1$1=function(e,t){return anObject$2$1(e),isObject$2$1(t)&&t.constructor===e?t:((0,(e=newPromiseCapability$3.f(e)).resolve)(t),e.promise)},$$4$1=_export$1,getBuiltIn$8=getBuiltIn$7$1,FORCED_PROMISE_CONSTRUCTOR$6=promiseConstructorDetection$1.CONSTRUCTOR,promiseResolve$2=promiseResolve$1$1,objectDefineProperties=(getBuiltIn$8("Promise"),$$4$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$6},{resolve:function(e){return promiseResolve$2(this,e)}}),{}),internalObjectKeys$2=objectKeysInternal$1,enumBugKeys$1$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys$2(e,enumBugKeys$1$1)},DESCRIPTORS$2$1=descriptors$1,V8_PROTOTYPE_DEFINE_BUG$2=v8PrototypeDefineBug$1,definePropertyModule$4=objectDefineProperty$1,anObject$1$1=anObject$a,toIndexedObject$1$1=toIndexedObject$5,objectKeys$1=objectKeys$2,anObject$b=(objectDefineProperties.f=DESCRIPTORS$2$1&&!V8_PROTOTYPE_DEFINE_BUG$2?Object.defineProperties:function(e,t){anObject$1$1(e);for(var n,r=toIndexedObject$1$1(t),i=objectKeys$1(t),o=i.length,a=0;a<o;)definePropertyModule$4.f(e,n=i[a++],r[n]);return e},anObject$a),definePropertiesModule=objectDefineProperties,enumBugKeys$2=enumBugKeys$3,hiddenKeys$5=hiddenKeys$4,html$3=html$2,documentCreateElement$1=documentCreateElement$2,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html$3.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys$2.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys$2[e]];return NullProtoObject()},objectCreate=(hiddenKeys$5[IE_PROTO$1]=!0,Object.create||function(e,t){var n;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$b(e),n=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,n[IE_PROTO$1]=e):n=NullProtoObject(),void 0===t?n:definePropertiesModule.f(n,t)}),wellKnownSymbol$5$1=wellKnownSymbol$g,create$1=objectCreate,defineProperty$2$1=objectDefineProperty$1.f,UNSCOPABLES=wellKnownSymbol$5$1("unscopables"),ArrayPrototype$2=Array.prototype,addToUnscopables$2=(null==ArrayPrototype$2[UNSCOPABLES]&&defineProperty$2$1(ArrayPrototype$2,UNSCOPABLES,{configurable:!0,value:create$1(null)}),function(e){ArrayPrototype$2[UNSCOPABLES][e]=!0}),correctPrototypeGetter=!fails$e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$a=hasOwnProperty_1$1,isCallable$2$1=isCallable$k,toObject$1$1=toObject$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object$5=Object,ObjectPrototype=$Object$5.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object$5.getPrototypeOf:function(e){var t,e=toObject$1$1(e);return hasOwn$a(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$2$1(t)&&e instanceof t?t.prototype:e instanceof $Object$5?ObjectPrototype:null)},fails$2$1=fails$e,isCallable$1$1=isCallable$k,isObject$1$1=isObject$9,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$1$1=defineBuiltIn$5,ITERATOR$2$1=wellKnownSymbol$g("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,NEW_ITERATOR_PROTOTYPE=([].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0),!isObject$1$1(IteratorPrototype$2)||fails$2$1(function(){var e={};return IteratorPrototype$2[ITERATOR$2$1].call(e)!==e})),iteratorsCore=(isCallable$1$1((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$2$1])||defineBuiltIn$1$1(IteratorPrototype$2,ITERATOR$2$1,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),IteratorPrototype$1=iteratorsCore.IteratorPrototype,create=objectCreate,createPropertyDescriptor$4=createPropertyDescriptor$3,setToStringTag$1$1=setToStringTag$3,Iterators$2=iterators$1,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,n,r){return t+=" Iterator",e.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor$4(+!r,n)}),setToStringTag$1$1(e,t,!1),Iterators$2[t]=returnThis$1,e},$$3$1=_export$1,call$1$1=functionCall$1,FunctionName=functionName$1,isCallable$l=isCallable$k,createIteratorConstructor=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$2=objectSetPrototypeOf$1,setToStringTag$4=setToStringTag$3,createNonEnumerableProperty$1$1=createNonEnumerableProperty$4,defineBuiltIn$6=defineBuiltIn$5,wellKnownSymbol$3$1=wellKnownSymbol$g,Iterators$1$1=iterators$1,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME$2=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$1$1=wellKnownSymbol$3$1("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,n,r,i,o,a){function s(e){if(e===i&&f)return f;if(!BUGGY_SAFARI_ITERATORS&&e in d)return d[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new n(this,e)}}return function(){return new n(this)}}createIteratorConstructor(n,t,r);var l,c,r=t+" Iterator",u=!1,d=e.prototype,p=d[ITERATOR$1$1]||d["@@iterator"]||i&&d[i],f=!BUGGY_SAFARI_ITERATORS&&p||s(i),h="Array"==t&&d.entries||p;if(h&&(h=getPrototypeOf(h.call(new e)))!==Object.prototype&&h.next&&(getPrototypeOf(h)!==IteratorPrototype&&(setPrototypeOf$2?setPrototypeOf$2(h,IteratorPrototype):isCallable$l(h[ITERATOR$1$1])||defineBuiltIn$6(h,ITERATOR$1$1,returnThis)),setToStringTag$4(h,r,!0)),PROPER_FUNCTION_NAME&&i==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME$2?createNonEnumerableProperty$1$1(d,"name",VALUES):(u=!0,f=function(){return call$1$1(p,this)})),i)if(l={values:s(VALUES),keys:o?f:s(KEYS),entries:s(ENTRIES)},a)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in d||defineBuiltIn$6(d,c,l[c]);else $$3$1({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return d[ITERATOR$1$1]!==f&&defineBuiltIn$6(d,ITERATOR$1$1,f,{name:i}),Iterators$1$1[t]=f,l},createIterResultObject$1=function(e,t){return{value:e,done:t}},toIndexedObject$6=toIndexedObject$5,addToUnscopables$1=addToUnscopables$2,Iterators$5=iterators$1,InternalStateModule$3=internalState$1,defineProperty$1$1=objectDefineProperty$1.f,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$1,DESCRIPTORS$1$1=descriptors$1,ARRAY_ITERATOR="Array Iterator",setInternalState$2=InternalStateModule$3.set,getInternalState$2=InternalStateModule$3.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState$2(this,{type:ARRAY_ITERATOR,target:toIndexedObject$6(e),index:0,kind:t})},function(){var e=getInternalState$2(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,createIterResultObject(void 0,!0)):createIterResultObject("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)},"values"),values=Iterators$5.Arguments=Iterators$5.Array;if(addToUnscopables$1("keys"),addToUnscopables$1("values"),addToUnscopables$1("entries"),DESCRIPTORS$1$1&&"values"!==values.name)try{defineProperty$1$1(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$1$1=global$g,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty$5=createNonEnumerableProperty$4,wellKnownSymbol$2$1=wellKnownSymbol$g,ITERATOR$6=wellKnownSymbol$2$1("iterator"),TO_STRING_TAG$4=wellKnownSymbol$2$1("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(e,t){if(e){if(e[ITERATOR$6]!==ArrayValues)try{createNonEnumerableProperty$5(e,ITERATOR$6,ArrayValues)}catch(t){e[ITERATOR$6]=ArrayValues}if(e[TO_STRING_TAG$4]||createNonEnumerableProperty$5(e,TO_STRING_TAG$4,t),DOMIterables[t])for(var n in ArrayIteratorMethods)if(e[n]!==ArrayIteratorMethods[n])try{createNonEnumerableProperty$5(e,n,ArrayIteratorMethods[n])}catch(t){e[n]=ArrayIteratorMethods[n]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$1$1[COLLECTION_NAME]&&global$1$1[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var react={exports:{}},react_production_min={},l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(e){return null!==e&&"object"==typeof e&&"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(e,t,n){this.props=e,this.context=t,this.refs=D,this.updater=n||B}function F(){}function G(e,t,n){this.props=e,this.context=t,this.refs=D,this.updater=n||B}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},F.prototype=E.prototype;var H=G.prototype=new F,I=(H.constructor=G,C(H,E.prototype),H.isPureReactComponent=!0,Array.isArray),J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var r,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)J.call(t,r)&&!L.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:l,type:e,key:o,ref:a,props:i,_owner:K.current}}function N(e,t){return{$$typeof:l,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}function escape$1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}var P=/\/+/g;function Q(e,t){return"object"==typeof e&&null!==e&&null!=e.key?escape$1(""+e.key):t.toString(36)}function R(e,t,r,i,o){var a=!1;if(null===(e="undefined"!=(c=typeof e)&&"boolean"!==c?e:null))a=!0;else switch(c){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case l:case n:a=!0}}if(a)return o=o(a=e),e=""===i?"."+Q(a,0):i,I(o)?(r="",R(o,t,r=null!=e?e.replace(P,"$&/")+"/":r,"",function(e){return e})):null!=o&&(O(o)&&(o=N(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(P,"$&/")+"/")+e)),t.push(o)),1;if(a=0,i=""===i?".":i+":",I(e))for(var s=0;s<e.length;s++){var c,u=i+Q(c=e[s],s);a+=R(c,t,r,u,o)}else if("function"==typeof(u=A(e)))for(e=u.call(e),s=0;!(c=e.next()).done;)a+=R(c=c.value,t,r,u=i+Q(c,s++),o);else if("object"===c)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function S(e,t,n){var r;return null!=e&&(r=0,R(e,e=[],"","",function(e){return t.call(n,e,r++)})),e}function T(t){var e;if(-1===t._status&&((e=(e=t._result)()).then(function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)},function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)}),-1===t._status)&&(t._status=0,t._result=e),1===t._status)return t._result.default;throw t._result}var EMessageTypes,EFrameLinkEvents,U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};react_production_min.Children={map:S,forEach:function(e,t,n){S(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return S(e,function(){t++}),t},toArray:function(e){return S(e,function(e){return e})||[]},only:function(e){if(O(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},react_production_min.Component=E,react_production_min.Fragment=p,react_production_min.Profiler=r,react_production_min.PureComponent=G,react_production_min.StrictMode=q,react_production_min.Suspense=w,react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,react_production_min.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=C({},e.props),i=e.key,o=e.ref,a=e._owner;if(null!=t)for(s in void 0!==t.ref&&(o=t.ref,a=K.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)J.call(t,s)&&!L.hasOwnProperty(s)&&(r[s]=(void 0===t[s]&&void 0!==c?c:t)[s]);var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];r.children=c}return{$$typeof:l,type:e.type,key:i,ref:o,props:r,_owner:a}},react_production_min.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:t,_context:e},e.Consumer=e},react_production_min.createElement=M,react_production_min.createFactory=function(e){var t=M.bind(null,e);return t.type=e,t},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(e){return{$$typeof:v,render:e}},react_production_min.isValidElement=O,react_production_min.lazy=function(e){return{$$typeof:y,_payload:{_status:-1,_result:e},_init:T}},react_production_min.memo=function(e,t){return{$$typeof:x,type:e,compare:void 0===t?null:t}},react_production_min.startTransition=function(e){var t=V.transition;V.transition={};try{e()}finally{V.transition=t}},react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},react_production_min.useCallback=function(e,t){return U.current.useCallback(e,t)},react_production_min.useContext=function(e){return U.current.useContext(e)},react_production_min.useDebugValue=function(){},react_production_min.useDeferredValue=function(e){return U.current.useDeferredValue(e)},react_production_min.useEffect=function(e,t){return U.current.useEffect(e,t)},react_production_min.useId=function(){return U.current.useId()},react_production_min.useImperativeHandle=function(e,t,n){return U.current.useImperativeHandle(e,t,n)},react_production_min.useInsertionEffect=function(e,t){return U.current.useInsertionEffect(e,t)},react_production_min.useLayoutEffect=function(e,t){return U.current.useLayoutEffect(e,t)},react_production_min.useMemo=function(e,t){return U.current.useMemo(e,t)},react_production_min.useReducer=function(e,t,n){return U.current.useReducer(e,t,n)},react_production_min.useRef=function(e){return U.current.useRef(e)},react_production_min.useState=function(e){return U.current.useState(e)},react_production_min.useSyncExternalStore=function(e,t,n){return U.current.useSyncExternalStore(e,t,n)},react_production_min.useTransition=function(){return U.current.useTransition()},react_production_min.version="18.2.0",react.exports=react_production_min,react.exports.createContext({});const filePicker=(e,t)=>window.aiware.mountPanel({panelId:"DATA_CENTER_IMPORTER",microFrontend:{name:"DATA_CENTER_IMPORTER",config:{requestId:e,frameLink:t}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:document.querySelector("#VERITONE_PANEL_ID")?80:0,size:"large",zIndex:1e3}}),errors={childCantSend:{id:"aiware-desktop.frame-link.child-cannot-send",defaultMessage:"Child frame cannot send this type of message",description:"Child frame is not allowed to send this type of message"},parentCantSend:{id:"aiware-desktop.frame-link.parent-cannot-send",defaultMessage:"Desktop App cannot send this type of message to child frame",description:"Desktop App is not allowed to send this type of message"},childAppNotResponding:{id:"aiware-desktop.frame-link.child-heartbeat-check-failed",defaultMessage:"Child frame appears to be frozen",description:"Child app failed to send a heartbeat to report healthy status"},unsupportedUtility:{id:"aiware-desktop.frame-link.unsupported-utility",defaultMessage:"Cannot find the requested utility",description:"Error when child app is requesting a use of unsupported utility"},operationCancelled:{id:"aiware-desktop.frame-link.operation-cancelled",defaultMessage:"Operation cancelled",description:"Error message when the operation requested by child frame is cancelled"}};!function(e){e.getInitContext="getInitContext",e.initContext="initContext",e.updateContext="updateContext",e.reportActivity="reportActivity",e.response="response",e.utility="utility",e.error="error",e.heartbeat="heartbeat"}(EMessageTypes=EMessageTypes||{}),filePicker,(EFrameLinkEvents=EFrameLinkEvents||{}).init="init";var $$2$1=_export$1,$includes=arrayIncludes$1.includes,addToUnscopables=addToUnscopables$2,BROKEN_ON_SPARSE=fails$e(function(){return!Array(1).includes()}),isObject$a=($$2$1({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),addToUnscopables("includes"),isObject$9),classof$1$1=classofRaw$2$1,MATCH$1=wellKnownSymbol$g("match"),isRegexp=function(e){var t;return isObject$a(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$1$1(e))},isRegExp=isRegexp,$TypeError$e=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError$e("The method doesn't accept regular expressions");return e},classof$5=classof$4$1,$String$5=String,toString$1$1=function(e){if("Symbol"===classof$5(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$5(e)},MATCH=wellKnownSymbol$g("match"),correctIsRegexpLogic=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[MATCH]=!1,"/./"[t](n)}catch(e){}}return!1},$$1$1=_export$1,notARegExp=notARegexp,requireObjectCoercible$4=requireObjectCoercible$3,toString$4=toString$1$1,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=functionUncurryThis$1("".indexOf),DESCRIPTORS$8=($$1$1({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString$4(requireObjectCoercible$4(this)),toString$4(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}}),descriptors$1),uncurryThis$e=functionUncurryThis$1,call$f=functionCall$1,fails$c=fails$e,objectKeys=objectKeys$2,getOwnPropertySymbolsModule$2=objectGetOwnPropertySymbols$1,propertyIsEnumerableModule$2=objectPropertyIsEnumerable$1,toObject$4=toObject$3,IndexedObject$2=indexedObject$1,$assign=Object.assign,defineProperty$7=Object.defineProperty,concat$2=uncurryThis$e([].concat),objectAssign=!$assign||fails$c(function(){var e,t,n,r;return!(!DESCRIPTORS$8||1===$assign({b:1},$assign(defineProperty$7({},"a",{enumerable:!0,get:function(){defineProperty$7(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[n])||objectKeys($assign({},t)).join("")!=r})?function(e,t){for(var n=toObject$4(e),r=arguments.length,i=1,o=getOwnPropertySymbolsModule$2.f,a=propertyIsEnumerableModule$2.f;i<r;)for(var s,l=IndexedObject$2(arguments[i++]),c=o?concat$2(objectKeys(l),o(l)):objectKeys(l),u=c.length,d=0;d<u;)s=c[d++],DESCRIPTORS$8&&!call$f(a,l,s)||(n[s]=l[s]);return n}:$assign,assign=objectAssign;function __rest$1(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}function __awaiter$3(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())})}_export$1({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign});const useStyles$2$2=makeStyles()((e,{titleColor:t,logo:n,activeColor:r,onClickLogo:i},o)=>({appBar:{top:0,left:0,right:0,display:"flex",position:"fixed",boxShadow:"none",borderBottom:"0.5px solid "+e.palette.divider,["& ."+o.logo]:{cursor:"pointer","& img":{width:"100%",height:"100%",objectFit:"scale-down",userSelect:"none"}},backgroundColor:e.palette.background.default},menuButton:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0",marginLeft:e.spacing(5)},margin:{marginRight:e.spacing(.4),display:"flex",alignItems:"center"},barIcon:{padding:e.spacing(.8)},iconButton:{padding:0},hamburgerIcon:{padding:e.spacing(1.4),width:32,height:32,WebkitMask:`url("${img$1F}") no-repeat 50% 50%`,backgroundColor:t},appLogo:{display:"inline-block",width:150,height:32,backgroundImage:`url("${n}")`,backgroundRepeat:"no-repeat",backgroundPosition:"left center",cursor:i?"pointer":"default"},title:{fontStyle:"normal !important",fontWeight:600,fontSize:"18px !important",lineHeight:"22px !important",letterSpacing:"0.225px !important",mixBlendMode:"normal",textTransform:"uppercase",color:t+" important",whiteSpace:"nowrap","&:hover":{cursor:"pointer"}},content:{height:"100%",flexGrow:1,display:"flex",flexWrap:"nowrap",flexDirection:"row",alignItems:"center",padding:e.spacing(0,3.2),"& > div":{display:"flex",flexWrap:"nowrap",flexDirection:"row"},["& ."+o.left]:{justifyContent:"flex-start"},["& ."+o.right]:{justifyContent:"flex-end"},["& ."+o.searchBarHolder]:{flexGrow:1},["& ."+o.appLogo]:{userSelect:"none"},["& ."+o.controllers]:{display:"flex",alignItems:"center"}},iconGroup:{display:"flex",justifyContent:"space-between",alignItems:"center"},iconGroupIcon:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},rightActionLabel:{fontWeight:400,fontSize:14,lineHeight:"16px",textDecoration:"none",color:"white",cursor:"pointer",display:"block"},noSelect:{userSelect:"none"},active:{opacity:1},smallOrgAvatar:{width:"30px !important",height:"30px !important",fontSize:"16px !important"},passive:{opacity:.8},icon:{width:"40px !important",height:"40px !important",padding:0,backgroundPosition:"center",backgroundRepeat:"no-repeat"},logo:{},left:{},right:{},searchBarHolder:{},controllers:{},appIcon:{height:"32px",width:"32px",borderRadius:"50%",marginLeft:e.spacing(4.4),"&:hover":{cursor:"pointer"}},applicationIcon:{WebkitMask:`url("${img$17}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},veritoneLogo:{WebkitMask:`url("${img$1E}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openPanel:{backgroundImage:`url("${img$1i}") !important`},notificationIcon:{WebkitMask:`url("${img$9}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},applicationSettingsIcon:{WebkitMask:`url("${img$1x}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},dashboardIcon:{WebkitMask:`url("${img$b}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openNotificationPanel:{backgroundImage:`url(${img$1h}) !important`},orgIcon:{borderRadius:"50%",width:30,height:30,backgroundRepeat:"no-repeat",backgroundPosition:"center"},logoIcon:{WebkitMask:`url("${n}") no-repeat 50% 50%`,backgroundColor:t},helpIcon:{WebkitMask:`url("${img$a}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openHelp:{backgroundImage:`url(${img$1g}) !important`},orgButton:{padding:e.spacing(2)},panelActive:{borderRadius:"50%",backgroundColor:r},notificationBadge:{"& > span":{top:e.spacing(2),right:e.spacing(2)}},appBarSkeleton:{position:"absolute",zIndex:1005,height:55},marginRightSkeleton:{marginRight:e.spacing(4)},leftContainerSkeleton:{display:"flex",alignItems:"center",paddingLeft:e.spacing(5)}})),useStyles$1$2=makeStyles()((e,t,n)=>({popover:{marginTop:18,["& "+n.helpItemText]:{padding:e.spacing(0),fontSize:15},["& "+n.versionWrapper]:{padding:e.spacing(3.2,0),["& "+n.versionText]:{fontSize:12,color:"#757575"}}},helpItemText:{},versionWrapper:{},versionText:{},help:{},barIcon:{padding:e.spacing(.8)},icon:{width:"40px !important",height:"40px !important",padding:e.spacing(0),backgroundPosition:"center",backgroundRepeat:"no-repeat"},helpIcon:{WebkitMask:`url("${img$a}") no-repeat 50% 50%`,backgroundColor:e.palette.background.default,"&:hover":{backgroundColor:e.palette.background.default}},list:{backgroundColor:e.palette.background.default},popoverColor:{backgroundColor:e.palette.background.default}})),Help=({onOpen:t,onClose:e,helpDocLink:n,helpDocCallback:r,supportCallback:i,displaySupportChat:o,displayChatWithSupport:a,desktopIconStyle:s})=>{var l=useStyles$1$2()["classes"];const[c,u]=react$1.exports.useState(null);const d=()=>{u(null),null!=e&&e()};var p=n||r,f=null==(f=window.config)?void 0:f.appVersion;return jsxRuntime.exports.jsxs("div",Object.assign({className:l.help},{children:[jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.KrqRIg",defaultMessage:"Help Center",description:"appbar tooltip: help-center button text"}),"aria-label":"help"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:l.barIcon,onClick:e=>{u(e.currentTarget),null!=t&&t()},"data-veritone-element":"help-button","data-testid":"help-button","aria-label":"help",size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(l.icon,l.helpIcon),style:s})}))})),jsxRuntime.exports.jsx(Popover$1,Object.assign({open:Boolean(c),anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},onClose:d,className:l.popover,classes:{paper:l.popoverColor},disableScrollLock:!0},{children:jsxRuntime.exports.jsxs(List$2,Object.assign({disablePadding:!0,className:l.list},{children:[p&&jsxRuntime.exports.jsxs(ListItemButton$1,Object.assign({onClick:()=>{d(),null!=r&&r(),n&&window.open(n,"_blank")},"data-veritone-element":"show-help-doc-button","data-testid":"show-help-doc-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(AppBarArticleIcon,{})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.MSM3Vh",defaultMessage:"View Help Docs",description:"help tooltip: text for documentation"}),classes:{root:l.helpItemText}})]})),a&&jsxRuntime.exports.jsxs(ListItemButton$1,Object.assign({onClick:()=>{var e,t;null!=(t=null==(e=null==(e=(t=window.document).getElementById)?void 0:e.call(t,"embeddedMessagingConversationButton"))?void 0:e.click)&&t.call(e),null!=i&&i(),sdkEventManager.dispatch(SdkEvents.openSupport),u(null)},"data-veritone-element":"open-chat-with-support-button","data-testid":"app-bar-show-chat-with-support-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(Chat,{fontSize:"small"})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-chat-with-support.MBM3Vh2",defaultMessage:"Chat with Support",description:"help tooltip: salesforce chat with support"}),classes:{root:l.helpItemText}})]})),o&&jsxRuntime.exports.jsxs(ListItemButton$1,Object.assign({onClick:()=>{null!=i&&i(),u(null)},"data-veritone-element":"open-support-chat-button","data-testid":"support-chat-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(AppBarInAppGuidance,{})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.8aLpuV",defaultMessage:"In-App Guidance",description:"help tooltip: text for documentation"}),classes:{root:l.helpItemText}})]})),f&&jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx(ListItem$1,Object.assign({className:l.versionWrapper},{children:jsxRuntime.exports.jsx(ListItemText$1,{primary:f,classes:{primary:l.versionText}})}))]})]}))}))]}))},namespace$5="users",userSelector=e=>null==e?void 0:e.aiWareHeaderBar,rootSelector=e=>e,notificationStatusSelector=e=>null!=e&&e.osNotificationPanel?null==e?void 0:e.osNotificationPanel.status:"",useStyles$k=makeStyles()(e=>({title:{paddingTop:e.spacing(5.5)},contentText:{fontSize:14},dialogActions:{marginBottom:e.spacing(3),paddingRight:e.spacing(5)},signOutButton:{height:34,marginRight:e.spacing(1)},staySignedInButton:{height:34}})),LOGOUT_CALL_LIMIT=1;let logoutCallCounter=0;const RESET_IDLE_TIMER_CALL_LIMIT=1,MINUTES_BEFORE_SESSION_EXPIRATION=3;let timer;const SessionTimeout=e=>{const t=e["test"],n=useDispatch();e=useStyles$k().classes;const r=useSelector(isIdleSelector);var i=useSelector(userSelector$2);const o=useSelector(sessionTokenSelector),a=useSelector(loginUrlSelector),s=useSelector(callLogoutSelector),l=useSelector(clickedLogoutSelector),c=null==i?void 0:i.tokenExpiration,u=useSelector(callResetIdleTimerSelector);i=useSelector(sessionTimeoutSelector)||60;const d=useSelector(reloadPageSelector),p=useSelector(resetIdleTimerCallCounterSelector),[f,h]=react$1.exports.useState(t?5:60),[m,g]=react$1.exports.useState(new Date),[y,$]=react$1.exports.useState(),[v,x]=react$1.exports.useState(),[b,C]=react$1.exports.useState(!1),[S,w]=react$1.exports.useState(!1),_=react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setIsIdle,value:e,ephemeral:!0,contentType:"json"}))},[n]),T=(react$1.exports.useEffect(()=>{n(getSessionTimeout(o))},[]),react$1.exports.useEffect(()=>{d&&window.location.replace("/")},[d]),react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setCallLogout,value:e,ephemeral:!0,contentType:"json"}))},[n])),E=react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setClickedLogout,value:e,ephemeral:!0,contentType:"json"}))},[n]),j=react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setCallResetIdleTimer,value:e,ephemeral:!0,contentType:"json"}))},[n]),I=react$1.exports.useCallback(()=>{logoutCallCounter++,T(!0);var e=l?500:5e3;n(logoutRequest({token:o})),setTimeout(()=>{window.location.href=a+"/#/?redirect="+window.location.href},t?2e3:e)},[T,n,o,a,l]);var R=react$1.exports.useCallback(()=>{logoutCallCounter++,_(!1),setTimeout(()=>{T(!0),E(!0),n(logoutRequest({token:o}))},500),setTimeout(()=>{window.location.href=a+"/#/?redirect="+window.location.href},500)},[T,n,o,a,E,_]);var O=()=>{_(!0),clearInterval(timer),timer=setInterval(()=>{h(e=>e-1)},1e3)},A=()=>{!r&&p<RESET_IDLE_TIMER_CALL_LIMIT&&j(!0)};const k=se(t?{timeout:5e3,onIdle:O,onAction:A,debounce:1e3,crossTab:!0,syncTimers:200}:{timeout:6e4*i,onIdle:O,onAction:A,debounce:i/4*6e4,crossTab:!0,syncTimers:200})["reset"],M=react$1.exports.useCallback(()=>{j(!1),k()},[j]),P=react$1.exports.useCallback(()=>{S&&(n(extendTokenRequest({token:o})),w(!1)),_(!1),M(),clearInterval(timer),setTimeout(()=>{h(t?5:60)},500)},[_,M,S,n,o]);return react$1.exports.useEffect(()=>{setTimeout(()=>{g(new Date)},1e3)},[m]),react$1.exports.useEffect(()=>{var e;c&&((e=new Date(c)).setMinutes(e.getMinutes()-MINUTES_BEFORE_SESSION_EXPIRATION),x(new Date(c)),$(e))},[c]),react$1.exports.useEffect(()=>{v&&v.getTime()<m.getTime()&&C(!0),y&&y.getTime()<m.getTime()&&w(!0)},[v,y,m]),react$1.exports.useEffect(()=>{b?I():S&&_(!0)},[v,y,S,b,I,_]),react$1.exports.useEffect(()=>{s&&logoutCallCounter<LOGOUT_CALL_LIMIT&&I()},[s,I]),react$1.exports.useEffect(()=>{r&&0===f&&(clearInterval(timer),setTimeout(()=>{h(10)},500),I())},[f,I,r]),react$1.exports.useEffect(()=>{!r&&u&&p===RESET_IDLE_TIMER_CALL_LIMIT&&M()},[u,r,p,M]),react$1.exports.useEffect(()=>{r||P()},[r,P]),jsxRuntime.exports.jsx(AIWareThemeProvider$1,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsxs(Dialog$1,Object.assign({open:r&&!l,"aria-labelledby":"session timeout dialog","aria-describedby":"session timeout dialog",disableEscapeKeyDown:!0,maxWidth:"xs","data-test":"session-timeout-dialog"},{children:[jsxRuntime.exports.jsx(DialogTitle$1,Object.assign({id:"session timeout dialog title",className:e.title},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.JEUssf",defaultMessage:"Session Timeout",description:"label session timeout dialog"})})),jsxRuntime.exports.jsx(DialogContent$1,{children:jsxRuntime.exports.jsx(DialogContentText$1,Object.assign({id:"session timeout dialog text",className:e.contentText},{children:s?l?null:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.l85HEz",defaultMessage:"You have been signed due to inactivity or due to your session being expired.",description:"signed out message"}):S?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.bDessH",defaultMessage:"Your session will expire soon. For your security, we'll automatically sign you out in {signOutTimer} seconds. Choose 'Stay Signed In' to continue or 'Sign Out' if you're done.",description:"label for idle warning expiring soon",values:{signOutTimer:f}}):jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.Ca6Qq0",defaultMessage:"You've been inactive for a while. For your security, we'll automatically sign you out in {signOutTimer} seconds. Choose 'Stay Signed In' to continue or 'Sign Out' if you're done.",description:"label for idle warning inactive for a while",values:{signOutTimer:f}})}))}),s?null:jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:e.dialogActions},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:R,color:"primary",variant:"outlined",className:e.signOutButton,"data-test":"sign-out-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.jN92ox",defaultMessage:"Sign Out",description:"label for sign out button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:P,color:"primary",variant:"contained",className:e.staySignedInButton,"data-test":"stay-signed-in-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.WvKhS2",defaultMessage:"Stay Signed In",description:"label for stay signed in button"})}))]}))]}))})})},appBarHeight=55,defaultAppBarZIndex=0,VERITONE_PANEL_ID="VERITONE_PANEL_ID",ORGANIZATION_PANEL_ID="ORGANIZATION_PANEL_ID",NOTIFICATION_PANEL_ID="NOTIFICATION_PANEL_ID",APPLICATION_PANEL_ID="APPLICATION_PANEL_ID",HELP_PANEL_ID="HELP_PANEL_ID",USER_APPLICATION_SETTINGS_PANEL="USER_APPLICATION_SETTINGS_PANEL",NOTIFICATION_BADGE_MAX_COUNT=20,HUB_APP_ID="9B774B0E-A5B1-452C-A0AA-4E2E64EAD2B3",getUserInfo=({appIcon:e="",currentUser:t})=>({appIcon:e,currentUser:null!=t&&t.organization?t:void 0});function NewAppBar({isEnableOrgPanel:e,zIndex:t=defaultAppBarZIndex,leftNav:n,onClickAppbarMenu:r,logoSrc:i,backgroundColor:o="rgb(32.9, 43.1, 47.8)",iconColor:a,title:s,help:l,notification:c=!0,userApplicationSettingsIcon:u,onClickOrgIcon:d,closeButton:p,onCloseSetting:f,onClose:h,onOpenSetting:m,onOpenHelpCenter:g,onOpenNotification:y,onOpenUserApplicationSettings:$,openSetting:v,organization:x={},panels:b=[],unseenCount:C,searchBarMountId:S,textColor:w,rightActions:_=[],applications:T=[],onClickAppSwitchIcon:E,displaySupportChat:j=!0,onDashboardClick:I,showDashboardIcon:R=!1,displayChatWithSupport:O=!0,disableGoHome:L,onClickLogo:A}){var k=tinycolor(o).isDark(),w=w||(k?"#fff":"#000"),k=k?"rgba(255,255,255,0.1)":"rgb(243,245,249)";const M=useStyles$2$2({titleColor:w,logo:i,activeColor:k,onClickLogo:A})["classes"],[P,N]=react$1.exports.useState([]);k=useSelector(userSelector)||{};const[D,F]=react$1.exports.useState(!0);var{appIcon:k,currentUser:V}=getUserInfo(k),H=useSelector(betaFeaturesSelector),B=useSelector(appIdSelector)===HUB_APP_ID;react$1.exports.useEffect(()=>("true"===localStorage.getItem("DEBUG")&&console.log("AppBar mounted"),()=>{"true"===localStorage.getItem("DEBUG")&&console.log("AppBar unmounted")}),[]),react$1.exports.useEffect(()=>{var e=b.map(e=>e.panelId);!e.length&&!P.length||isEqual$5(e,P)||N(e)},[b,P]);a={background:a||void 0};return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(SessionTimeout,{}),jsxRuntime.exports.jsx("div",{style:{height:appBarHeight}}),jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"appbar",className:M.appBar,style:{height:appBarHeight,background:o,zIndex:t}},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:M.menuButton},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-menu","data-testid":"app-bar-menu",className:M.iconButton,onClick:r,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.hamburgerIcon)})}))})),!!k&&""!==k&&jsxRuntime.exports.jsx("div",Object.assign({className:M.margin},{children:jsxRuntime.exports.jsx("img",{className:M.appIcon,src:k,alt:"appIcon"})})),jsxRuntime.exports.jsxs("div",Object.assign({className:M.content,style:{color:w}},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.left,M.noSelect),onClick:L&&!A?void 0:function(){A?A():window.location.href="/"},"data-test":"appbarTitle","data-testid":"appbarTitle"},{children:i?jsxRuntime.exports.jsx("span",{className:M.appLogo}):jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",className:M.title},{children:s}))})),jsxRuntime.exports.jsx("div",{"data-test":"appbarSearch",id:S||"search-bar-id",className:M.searchBarHolder}),jsxRuntime.exports.jsx("div",Object.assign({className:M.right},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:M.controllers},{children:[0<_.length&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.iconGroup,M.noSelect)},{children:_.map(({label:e,onClick:t,isActive:n=!0},r)=>jsxRuntime.exports.jsx("div",Object.assign({className:M.iconGroupIcon},{children:jsxRuntime.exports.jsx("span",{onClick:e=>t?t(e):null,className:classNames(M.rightActionLabel,n?M.active:M.passive),dangerouslySetInnerHTML:{__html:e}})}),"label-"+r))})),R&&jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.dashboard-button",defaultMessage:"aiWARE Dashboard",description:"aiWARE Dashboard label"}),"aria-label":"dashboard"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-dashboard-button",className:M.barIcon,onClick:I,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.dashboardIcon),style:a})}))})),l&&jsxRuntime.exports.jsx("div",Object.assign({"data-test":"app-bar-help-container","data-testid":"app-bar-help-container",className:classNames(M.margin,{[M.panelActive]:P.includes(HELP_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Help,{tooltipTitle:"",helpDocLabel:"View Help Docs",chatWithSupportLabel:"Chat with Support",supportLabel:"In-App Guidance",helpDocCallback:()=>{null!=g&&g()},supportCallback:f,titleColor:w,displaySupportChat:j,displayChatWithSupport:O,desktopIconStyle:a})})),c&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.margin,{[M.panelActive]:P.includes(NOTIFICATION_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.KFXxNr",defaultMessage:"Notifications",description:"appbar tooltip: notification button text"}),"aria-label":"notifications"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:M.barIcon,onClick:y,"data-test":"app-bar-notification-button",size:"large","data-testid":"app-bar-notification-button"},{children:jsxRuntime.exports.jsx(Badge$1,Object.assign({badgeContent:C,max:NOTIFICATION_BADGE_MAX_COUNT,color:"primary","data-test":"app-bar-notification-badge",className:M.notificationBadge},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.notificationIcon,{[M.openNotificationPanel]:null==v?void 0:v.openNotificationPanel}),style:a})}))}))}))})),H&&u&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.margin,{[M.panelActive]:P.includes(USER_APPLICATION_SETTINGS_PANEL)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.application-settings-button",defaultMessage:"Application Settings",description:"appbar tooltip: application settings button text"}),"aria-label":"application-settings"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:M.barIcon,onClick:$,size:"large","data-testid":"app-bar-user-application-settings-button"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.applicationSettingsIcon)})}))}))})),1<T.length&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames({[M.panelActive]:P.includes(APPLICATION_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.3v499g",defaultMessage:"Applications",description:"applications tooltip: text for applications button"}),"aria-label":"applications"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-switch-app-button",className:M.barIcon,onClick:E,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.applicationIcon,{[M.openPanel]:null==v?void 0:v.openAppSwitchPanel}),style:a})}))}))})),(x.imageUrl||x.name)&&e&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.margin,{[M.panelActive]:P.includes(ORGANIZATION_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.7qOwBg",defaultMessage:"Organization",description:"organization tooltip: text for documentation"}),"aria-label":"organization"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-org-button",className:M.barIcon+" "+M.orgButton,onClick:d,size:"large"},{children:x.imageUrl&&D?jsxRuntime.exports.jsx("img",{src:x.imageUrl,className:classNames(M.orgIcon),onError:function(){F(!1)},alt:"org_icon"}):jsxRuntime.exports.jsx(Avatar$1,Object.assign({className:M.smallOrgAvatar,variant:"circular","data-testid":"app-bar-avatar"},{children:getSortName(x.name||"")}))}))}))})),V&&!B&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames({[M.panelActive]:P.includes(VERITONE_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.eOxvvM",defaultMessage:"Utilities",description:"utilities tooltip: text for documentation"}),"aria-label":"utilities"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-setting-button","data-testid":"app-bar-setting-button",className:M.barIcon,onClick:m,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.veritoneLogo,{[M.openPanel]:null==v?void 0:v.openVeritonePanel}),style:a})}))}))})),p&&h&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:h,"data-test":"app-bar-close-button",size:"large","data-testid":"app-bar-close-button"},{children:jsxRuntime.exports.jsx(default_1$6,{htmlColor:w})}))}))})]}))}))]}))]}))]})}const GET_CURRENT_USER=`os-app-bar/${namespace$5}/get current user`,GET_CURRENT_USER_SUCCESS=`os-app-bar/${namespace$5}/get current user success`,GET_CURRENT_USER_FAIL=`os-app-bar/${namespace$5}/get current user fail`,GET_CURRENT_APP_ICON=`os-app-bar/${namespace$5}/get current app icon`,GET_CURRENT_APP_ICON_SUCCESS=`os-app-bar/${namespace$5}/get app icon success`,getCurrentUser=()=>({type:GET_CURRENT_USER}),getCurrentUserFail=()=>({type:GET_CURRENT_USER_FAIL}),getCurrentUserSuccess=e=>({type:GET_CURRENT_USER_SUCCESS,payload:e}),getCurrentAppIcon=({applicationId:e})=>({type:GET_CURRENT_APP_ICON,payload:{applicationId:e}}),getCurrentAppIconSuccess=e=>({type:GET_CURRENT_APP_ICON_SUCCESS,payload:e}),initialState$5={currentUser:{},fetched:!1,fetching:!1,error:!1};function userReducer(e,t){if(void 0===e)return initialState$5;switch(t.type){case GET_CURRENT_USER_FAIL:return Object.assign(Object.assign({},e),{fetching:!1,fetched:!0,error:!0});case GET_CURRENT_USER_SUCCESS:return Object.assign(Object.assign({},e),{currentUser:t.payload,fetching:!1,fetched:!0,error:!1});case GET_CURRENT_APP_ICON_SUCCESS:return Object.assign(Object.assign({},e),{appIcon:t.payload});default:return e}}const nameSpace="aiWareHeaderBar",BOOTING="APP_BAR/booting",BOOTED="APP_BAR/booted",onBooted=()=>({type:BOOTED}),getApplicationInfo=(t,n,r)=>__awaiter$3(void 0,void 0,void 0,function*(){var e=`
1440
+ `,l={entityId:t,entityType:e};try{a=yield baseGraphQLApi({query:s,operationName:n,variables:l,graphEndpoint:u,token:d})}catch(e){i=!0}if(a.errors){if(0===(o=a.errors.filter(({message:e})=>e.includes(' does not exist in "AuthPermissionType" enum.')).map(({message:e})=>{var t='Value "',n=e.substring(t.length).indexOf('"');return e.substring(t.length,t.length+n)})).length)throw i=!0,a={},new Error((null==(f=(a.errors||[])[0])?void 0:f.message)||"Error")}else i=!0}const c=a.data||{};return Object.keys(c).map(e=>{var t=e.split("__");return 3===t.length?{fetchedTargetEntityType:t[0],fetchedTargetGroupType:t[1],fetchedTargetAction:t[2],hasPermission:c[e][0].hasPermission}:{fetchedTargetEntityType:t[0],fetchedTargetAction:t[1],hasPermission:c[e][0].hasPermission}}).reduce((e,t)=>{var n=t.fetchedTargetGroupType||t.fetchedTargetEntityType;return t.hasPermission&&(e[n]||(e[n]={}),e[n][t.fetchedTargetAction]=t.hasPermission),e},{})})}function getMyRights(t){return __awaiter$4(this,void 0,void 0,function*(){var e="getMyRights";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getMyRights {\n myRights {\n operations\n }\n }\n ",operationName:e},t))).myRights.operations})}const selectPermissionsByEntity=(t,n,r)=>e=>{return t&&n&&(e=e[namespace$7].permissionsByObject[t])&&e[n]?e[n][r||t]:void 0},selectMyRights=e=>e[namespace$7].rights;var index=Object.freeze({__proto__:null,selectPermissionsByEntity:selectPermissionsByEntity,selectMyRights:selectMyRights});function*fetchObjectPermissions(t){var{entityId:t,entityType:n}=t.payload,i=yield select(selectApiConfigs$2),e=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector),a=yield select(selectIsOLPEnabled),r=yield select(selectPermissionsByEntity(n,t));if(!r||"success"!==r.status&&"pending"!==r.status){yield put(actions$6.fetchObjectPermissionsStarted({entityId:t,entityType:n}));try{let r={};if(a)r=yield call$j(getObjectPermissions,e,o,{entityType:n,entityId:t});else{let e=yield select(selectMyRights);if("success"!==e.status&&"pending"!==e.status){yield put(actions$6.fetchMyRightsStarted);try{var s=yield call$j(getMyRights,i);yield put(actions$6.fetchMyRightsSucceeded(s)),e=yield select(selectMyRights)}catch(e){throw yield put(actions$6.fetchMyRightsFailed),e}}else"pending"===e.status&&(yield take([actions$6.fetchMyRightsFailed,actions$6.fetchMyRightsSucceeded]),e=yield select(selectMyRights));const l=e["myRights"];getPermissionTypesToQuery(n).forEach(n=>{var{action:e,resource:t}=n.targetActions.reduce((e,t)=>(e.action[t.targetAction]=convertPermissionsToRights(t.resource||n.targetObjectType,t.targetAction,l),e.resource=t.resource,e),{action:{}});r[t||n.targetObjectType]=e})}yield put(actions$6.fetchObjectPermissionsSucceeded({entityId:t,entityType:n,permissions:r}))}catch(e){actions$6.fetchObjectPermissionsFailed({entityId:t,entityType:n})}}}function*watchPermissionsStart(){yield takeEvery$1(actions$6.fetchObjectPermissionsStart.type,fetchObjectPermissions)}function*rootSaga$2(){yield all$2([watchPermissionsStart()])}function getPermissionsModule(){return{id:namespace$7,reducerMap:{[namespace$7]:permissionsReducer},sagas:[rootSaga$2],initialActions:[]}}const useOrganizationPermissions=e=>{const t=react$1.exports.useRef(),n=useDispatch(),r=null==(o=useSelector(userSelector$2).organization)?void 0:o.organizationId,i=useSelector(selectPermissionsByEntity(EAuthResourceType.Organization,String(r),e));react$1.exports.useEffect(()=>{!r||i&&"failure"!==i.status&&"idle"!==i.status&&t.current===r||(t.current=r,n(actions$6.fetchObjectPermissionsStart({entityType:EAuthResourceType.Organization,entityId:String(r)})))},[n,r,i]);var o=react$1.exports.useCallback(e=>{return!isPermissionLoading(i)&&hasPermission(i,e)},[i]);return{permissions:i,hasPermission:o}},nameSpace$1="@helpPanel",updateSelectedTab=createAction(nameSpace$1+"/UPDATE_SELECTED_TAB",function(e,t){return{payload:{selectedTabId:e,tabLink:t}}}),setCustomKnowledgeBaseUrl=createAction(nameSpace$1+"/SET_CUSTOM_KNOWLEDGE_BASE_URL",function(e){return{payload:{url:e}}}),setCustomDocsUrl=createAction(nameSpace$1+"/SET_CUSTOM_DOCS_URL",function(e){return{payload:{url:e}}}),initialState$7={selectedTabId:0,tabLink:"https://support.veritone.com/",customKnowledgeBaseUrl:"",customDocsUrl:""},getTabLinkReducer=createReducer(initialState$7,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$6="helpPanel",helpCenterSelectedTabIdSelector=e=>null!=e&&e[namespace$6]?e[namespace$6].selectedTabId:0,customDocsUrlSelector=e=>null!=e&&e[namespace$6]?e[namespace$6].customDocsUrl:"",customKnowledgeBaseUrlSelector=e=>null!=e&&e[namespace$6]?e[namespace$6].customKnowledgeBaseUrl:"";function getHelpPanelModule(){return{id:"help",reducerMap:{[namespace$6]: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$m=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$m()["classes"];const[n,r]=react$1.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$m()["classes"];const[n,r]=react$1.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$1(){var e=useSelector(initialConfigSelector),t=useSelector(customKnowledgeBaseUrlSelector),n=useSelector(customDocsUrlSelector),r=useSelector(helpCenterSelectedTabIdSelector),i=useSelector(e=>null==e?void 0:e.panels),o=useStyles$m()["classes"],[a]=react$1.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$F,alt:"icon",draggable:"false"})}))]}))}))}))}))}))}))}))}var PermissionChangedAction,WidgetsStatus,index_esm$3=Object.freeze({__proto__:null,HelpCenterPanel:HelpCenter$1,customDocsUrlSelector:customDocsUrlSelector,customKnowledgeBaseUrlSelector:customKnowledgeBaseUrlSelector,helpCenterSelectedTabIdSelector:helpCenterSelectedTabIdSelector,setCustomDocsUrl:setCustomDocsUrl,setCustomKnowledgeBaseUrl:setCustomKnowledgeBaseUrl,updateSelectedTab:updateSelectedTab});class DataCenter{openImporterPanel(){store$7.dispatch(mountPanel$1({panelId:"DATA_CENTER_IMPORTER",microFrontend:{name:"DATA_CENTER_IMPORTER",config:{name:"Local Importer"}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"large",zIndex:1e3,dimmed:0}}))}}class AiwareSDKHelpers{isURLValid(e=""){let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}unmountAllPanel(){store$7.dispatch(unmountAllPanel(""))}}!function(e){e.GRANTED="granted",e.REVOKED="revoked"}(PermissionChangedAction=PermissionChangedAction||{});class SdkEventsManager extends AiwareSDKHelpers{constructor(){super(...arguments),this.events=new Map}on(e,n){if(!SdkEvents[e])throw new SdkError(`Unknown event type: \`${e}\``);this.events.set(e,function(e,...t){n(e,...t)})}off(e){this.events.delete(e)}dispatch(e,t,...n){this.events.has(e)&&this.events.get(e)(t,...n)}createError(e){return new SdkError(e)}}class SdkError extends Error{constructor(e,t="error"){super("[AiwareJS SDK error]: "+e),this.type="error",this.type=t}}const sdkEventManager=new SdkEventsManager;class HelpCenter extends AiwareSDKHelpers{constructor({actions:e}){super(),this.CUSTOM_HELP_PANEL_ID="CUSTOM_HELP_PANEL_ID",this.actions=e}getPanelConfig(){return{helpPanelMicroFrontend:{name:"HELP_PANEL",config:{name:"Help panel",dataId:"helpDataId",type:"SIMPLE_PANEL"}},helpPanelConfig:{panelId:this.CUSTOM_HELP_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,size:"large",header:{divider:!0,title:"HELP CENTER",actions:[{iconUrl:img$X,action:{type:"OPEN_HELP_LINK"}}]}}}}mountHelpPanel(){var{helpPanelMicroFrontend:e,helpPanelConfig:t}=this.getPanelConfig();store$7.dispatch(mountPanel$1({panelId:this.CUSTOM_HELP_PANEL_ID,microFrontend:e,panelConfig:t}))}panels(){return(null===store$7||void 0===store$7?void 0:store$7.getState()).panels}isCustomHelpPanelOpen(){return!!this.panels().find(e=>e.panelId===this.CUSTOM_HELP_PANEL_ID)}handleCustomDocsUrl(e){this.isURLValid(e)&&(store$7.dispatch(this.actions.setCustomDocsUrlAction(e)),store$7.dispatch(this.actions.updateSelectedTabAction(1,"")))}handleCustomKnowledgeBaseUrl(e){this.isURLValid(e)&&(store$7.dispatch(this.actions.setCustomKnowledgeBaseUrlAction(e)),store$7.dispatch(this.actions.updateSelectedTabAction(0,"")))}openDocsPanel(e,t=!0){var n;e&&!this.isURLValid(e)?(n=new SdkError("Can not open the custom url! The url should be valid and start with http or https"),console.error(n.message),store$7.dispatch(this.actions.updateSelectedTabAction(1,""))):this.isCustomHelpPanelOpen()||(t&&this.unmountAllPanel(),this.mountHelpPanel(),e)?this.handleCustomDocsUrl(e):store$7.dispatch(this.actions.updateSelectedTabAction(1,""))}openKnowledgeBasePanel(e){var t;e&&!this.isURLValid(e)?(t=new SdkError("Can not open the custom url! The url should be valid and start with http or https"),console.error(t.message),store$7.dispatch(this.actions.updateSelectedTabAction(0,""))):this.isCustomHelpPanelOpen()||(this.unmountAllPanel(),this.mountHelpPanel(),e)?this.handleCustomKnowledgeBaseUrl(e):store$7.dispatch(this.actions.updateSelectedTabAction(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"),e.knowledgeBaseURL&&e.knowledgeBaseUrl&&e.knowledgeBaseURL!==e.knowledgeBaseUrl||e.knowledgeBaseURL&&!e.knowledgeBaseUrl?(console.info("@aiware/js: knowledgeBaseURL is deprecated and scheduled to be removed in v3. Please use knowledgeBaseUrl instead."),Object.assign(Object.assign({},e),{knowledgeBaseUrl:e.knowledgeBaseURL})):e}const WIDGETS_FEATURE_KEY="widgets",initialState$6=(!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:mountWidgetAction,mountWidgetSuccess,mountWidgetError,unmountWidget:unmountWidgetAction,unmountWidgetSuccess,unmountWidgetFailure,triggerWidgetCallback,triggerWidgetCallbackSuccess}}=createSlice({name:WIDGETS_FEATURE_KEY,initialState:initialState$6,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}}}),mountWidgetListenerFactory=l=>function*(){let a;const s={};yield takeEvery$1(mountWidgetAction.type,function*(e){try{var{widgetConfig:t={},widgetName:n,elementId:r}=null==e?void 0:e.payload,i=(yield call$j(l,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$1,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$7},{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(unmountWidgetAction.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(e){return{id:name,reducerMap:{[name]:reducer},sagas:[mountWidgetListenerFactory(e)],initialActions:[]}}const mountWidget=(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$7.dispatch(mountWidgetAction({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n},unmountWidget=e=>(store$7.dispatch(unmountWidgetAction(e)),!0);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:[]}}function handleEvents(n){function r(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){r(e),n.on.call(n,e,t)},off:function(e){r(e),n.off.call(n,e)}}}const useStyles$1$3=makeStyles()(e=>({sdkSnackbarContainer:{"& svg":{fill:"white"}}}));function CustomSnackbar(){const n=useDispatch(),[e,t]=react$1.exports.useState([]),[r,i]=react$1.exports.useState(!1),[o,a]=react$1.exports.useState(void 0),{message:s,duration:l}=useSelector(snackbarSelector);var c=useStyles$1$3()["classes"],u=(react$1.exports.useEffect(()=>{null!==s&&void 0!==s&&s.content&&t(e=>[...e,s])},[s]),react$1.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)}const useStyles$l=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$1.exports.useState(null),[n,r]=react$1.exports.useState(0);var i=useSelector(userSelector$2),o=useStyles$l()["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(null==e?void 0:e.name)>(null==t?void 0:t.name)?1:(null==e?void 0:e.name)<(null==t?void 0:t.name)?-1:0}),f=u.findIndex(e=>e.id===s);useInterval(()=>{t(e=>e&&e-1)},e&&n<3?1e3:null),react$1.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:null==(d=u[0])?void 0:d.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};function ApplicationDialogPreLoader(){var e=useSelector(authSelector);return null!=(e=null==e?void 0:e.user)&&e.token?jsxRuntime.exports.jsx(ApplicationDialog,{}):null}const ThemeInitializer=()=>(useTheme(),null),AppBarPreLoader=({store:e,onLoad:t})=>{var n=useSelector(authSelector);return null!=(n=null==n?void 0:n.user)&&n.token&&setTimeout(()=>{t(),e.addModules([getAppbarPanelModule()])},0),null},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 Preloader=({store:e})=>{const[t,n]=react$1.exports.useState(!1);return jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsxs(AIWareThemeProvider$1,{children:[jsxRuntime.exports.jsx(SupportCenterPixel,{}),jsxRuntime.exports.jsx(Provider$2,Object.assign({store:e},{children:jsxRuntime.exports.jsxs(AIWareIntlProvider,{children:[t&&jsxRuntime.exports.jsx(ApplicationDialogPreLoader,{}),!t&&jsxRuntime.exports.jsx(AppBarPreLoader,{store:e,onLoad:()=>{n(!0)}}),jsxRuntime.exports.jsx(CustomSnackbar,{})]})})),!t&&jsxRuntime.exports.jsx(ThemeInitializer,{})]})})};class RateLimiter{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}}const rateLimiter=new RateLimiter,createAuthHelpers=t=>({updateToken(e){e?t.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{t.dispatch(logout$1())},1e3)):t.dispatch(logout$1())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&t.dispatch(updateActivityStatus$1())}}),helpCenter=()=>{var e=new HelpCenter({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}},dataCenter=()=>{var e=new DataCenter;return{openImporterPanel:e.openImporterPanel.bind(e)}},unmountPanel=t=>e=>(t.dispatch(unmountPanel$1(e)),!0),hidePanel=t=>e=>(t.dispatch(hidePanel$1(e)),!0),mountPanel=o=>(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:r}=e;o.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 o.addModule(r),n},mountPanelForResponse=t=>e=>mountPanelForResponse$1(e,t),attachSdkToWindow=e=>{var{init:e,store:t,aiwareEvents:n,registrySet:r}=e;!window||void 0!==window.aiware&&0!==Object.keys(window.aiware).length||(window.aiware={init:e,store:t,auth:createAuthHelpers(t),helpCenter:helpCenter(),dataCenter:dataCenter(),on:n.on,off:n.off,hidePanel:hidePanel(t),unmountPanel:unmountPanel(t),mountPanel:mountPanel(t),mountPanelForResponse:mountPanelForResponse(t),registry:r.registry,registryLookup:r.registryLookup,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,unmountWidget:unmountWidget,version:"sdk_release_version",commit:"f24069d1f",releaseDate:"sdk_release_date"})},checkAndDecodeBase64String=t=>{if(null==t||!t.trim())return t;try{return window.btoa(window.atob(t))==t?window.atob(t):t}catch(e){return t}},bootstrapSdk=e=>{var t=(null==e?void 0:e.registry)||{},n=(null==e?void 0:e.registryLookup)||Promise.resolve(null),r=handleEvents(sdkEventManager),i=store$7.getState(),n=(null!=i&&i.widgets||(store$7.addModules([getWidgetsModule(n),getPanelsModule(t,n),getDataModule(),getConfigModule(),getAuthModule(sdkEventManager),getPermissionsModule(),getSnackbarModule()]),(i=getElement("aiWARE")).classList.add("aiware-el"),t=client$1.createRoot(i),"_auth"===window.name?handleImplicitRedirect(window.location.hash,window.opener):t.render(jsxRuntime.exports.jsx(Preloader,{store:store$7}))),(e,t)=>{var n;"idle"===store$7.getState().configs.status&&((e=validateConfig(e))?(n=e["authToken"],n=checkAndDecodeBase64String(n||""),store$7.dispatch(getInitConfig(Object.assign(Object.assign({},e),{authToken:n,onComplete:t})))):console.error("@aiware/js initialization failed. Please pass valid configuration object."))});return attachSdkToWindow({init:n,store:store$7,aiwareEvents:r,registrySet:e}),{store:store$7,aiwareEvents:r,init:n}};var Et=Object.create,Ye=Object.defineProperty,bt=Object.getOwnPropertyDescriptor,gt=Object.getOwnPropertyNames,yt=Object.getPrototypeOf,wt=Object.prototype.hasOwnProperty,Lt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Pt=(t,n,r,i)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let e of gt(n))wt.call(t,e)||e===r||Ye(t,e,{get:()=>n[e],enumerable:!(i=bt(n,e))||i.enumerable});return t},St=(e,t,n)=>(n=null!=e?Et(yt(e)):{},Pt(!t&&e&&e.__esModule?n:Ye(n,"default",{value:e,enumerable:!0}),e)),je=Lt((e,t)=>{var n,r;r=function(e){function t(e){var t=o.get(e),n=void 0===t?e.size:t<1073741824?t+1:0;if(e.has(n))if(e.size<536870912)for(;e.has(n);)n=Math.floor(1073741824*Math.random());else{if(e.size>s)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(n);)n=Math.floor(Math.random()*s)}return i(e,n)}function n(e){var t=r(e);return e.add(t),t}var r,i,o,a,s=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,l=new WeakMap;i=function(e,t){return a.set(e,t),t},o=a=l,r=t;e.addUniqueNumber=n,e.generateUniqueNumber=t},"object"==typeof(n=e)&&typeof t<"u"?r(e):"function"==typeof define&&define.amd?define(["exports"],r):r((n=typeof globalThis<"u"?globalThis:n||self).fastUniqueNumbers={})}),M$1=(St(je()),"object"==("u"<typeof window?"undefined":typeof window)),I$1={setTimeout:M$1?setTimeout.bind(window):setTimeout,clearTimeout:M$1?clearTimeout.bind(window):clearTimeout,setInterval:M$1?setInterval.bind(window):setInterval,clearInterval:M$1?clearInterval.bind(window):clearInterval};function it(e){I$1.setTimeout=e.setTimeout,I$1.clearTimeout=e.clearTimeout,I$1.setInterval=e.setInterval,I$1.clearInterval=e.clearInterval}var Q$1={},Ae=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,Q$1[e]=Q$1[e]||[],Q$1[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){e.storageArea===window.localStorage&&e.key.substring(0,this.name.length)===this.name&&null!==e.newValue&&(e=JSON.parse(e.newValue),this.mc.port2.postMessage(e))}postMessage(e){if(this.closed)throw new Error("InvalidStateError");let t=JSON.stringify(e),n=this.name+":"+String(Date.now())+String(Math.random());window.localStorage.setItem(n,t),I$1.setTimeout(()=>{window.localStorage.removeItem(n)},500),Q$1[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){var e;this.closed||(this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage),e=Q$1[this.name].indexOf(this),Q$1[this.name].splice(e,1))}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},st="u"<typeof window?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:Ae;function ot(t=0){return new Promise(e=>I$1.setTimeout(e,t))}function Te(){return Math.random().toString(36).substring(2)}var Ie=class{options;channel;token=Te();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return!(this.reApply=!0);let n=!(this.isApplying=!0),e=e=>{var{token:e,action:t}=e.data;e!==this.token&&(0===t&&e>this.token&&(n=!0),1===t)&&(n=!0)};this.channel.addEventListener("message",e);try{return this.sendAction(0),await ot(this.options.responseTime),this.channel.removeEventListener("message",e),this.isApplying=!1,n?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let i=!1,o=null;return new Promise(t=>{let n=()=>{if(!i){i=!0;try{I$1.clearInterval(o)}catch{}var e=this.intervals.indexOf(o);0<=e&&this.intervals.splice(e,1),this.channel.removeEventListener("message",r),t()}},r=(o=I$1.setInterval(()=>{this.apply().then(()=>{this.isLeader&&n()})},this.options.fallbackInterval),this.intervals.push(o),e=>{e=e.data.action;2===e&&this.apply().then(()=>{this.isLeader&&n()})});this.channel.addEventListener("message",r)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;var e=e=>{e=e.data.action;0===e&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership(),this.deferred)}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>I$1.clearInterval(e))}catch{}}}},Ee=class{channel;options;elector;token=Te();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){var t=e["channelName"];this.options=e,this.channel=new st(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new Ie(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{var{action:e,token:t,data:n}=e.data;switch(e){case 3:this.registry.set(t,2);break;case 4:this.registry.delete(t);break;case 5:this.idle(t);break;case 6:this.active(t);break;case 7:this.prompt(t);break;case 8:this.start(t);break;case 9:this.reset(t);break;case 10:this.activate(t);break;case 11:this.pause(t);break;case 12:this.resume(t);break;case 13:this.options.onMessage(n)}}),this.send(3)}get isLeader(){if(this.elector)return this.elector.isLeader;throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.')}prompt(e=this.token){this.registry.set(e,0);var t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);var t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);var t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},at=M$1?document:null,xe=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function ct(t,n){let r;function e(...e){r&&clearTimeout(r),r=setTimeout(()=>{t(...e),r=null},n)}return e.cancel=function(){clearTimeout(r)},e}function be(n,r){let i=0;return function(...e){var t=(new Date).getTime();if(!(t-i<r))return i=t,n(...e)}}var v$1=()=>Date.now(),Z=2147483647;function se({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:L=at,events:N=xe,timers:D=void 0,immediateEvents:r=[],onPresenceChange:F=()=>{},onPrompt:V=()=>{},onIdle:H=()=>{},onActive:B=()=>{},onAction:U=()=>{},onMessage:i=()=>{},debounce:o=0,throttle:a=0,eventsThrottle:z=200,startOnMount:s=!0,startManually:l=!1,stopOnIdle:W=!1,crossTab:c=!1,name:G="idle-timer",syncTimers:u=0,leaderElection:q=!1,disabled:d=!1}={}){let K=react$1.exports.useRef(v$1()),Y=react$1.exports.useRef(v$1()),p=react$1.exports.useRef(null),f=react$1.exports.useRef(null),h=react$1.exports.useRef(0),m=react$1.exports.useRef(0),g=react$1.exports.useRef(0),y=react$1.exports.useRef(0),$=react$1.exports.useRef(!1),v=react$1.exports.useRef(!1),x=react$1.exports.useRef(!1),b=react$1.exports.useRef(!0),Q=react$1.exports.useRef(!1),C=react$1.exports.useRef(null),S=react$1.exports.useRef(null),w=react$1.exports.useRef(e),_=react$1.exports.useRef(0),X=(react$1.exports.useEffect(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(Z<=e)throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${Z}.`);if(Z<=t)throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${Z}.`);if(Z<=n)throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${Z}.`);if(e<=n)throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);n?(w.current=e-n,_.current=n):(w.current=e,_.current=t),b.current||l||d||($.current&&(E.current(null,P),S.current)&&S.current.active(),M())},[e,t,n,l,d]),react$1.exports.useRef(W)),J=(react$1.exports.useEffect(()=>{X.current=W},[W]),react$1.exports.useRef(r)),ee=react$1.exports.useRef(L),te=react$1.exports.useRef([...new Set([...N,...r]).values()]),T=react$1.exports.useRef(d),ne=(react$1.exports.useEffect(()=>{T.current=d,b.current||(d?me():l||M())},[d]),react$1.exports.useRef(F)),re=(react$1.exports.useEffect(()=>{ne.current=F},[F]),react$1.exports.useRef(V)),ie=(react$1.exports.useEffect(()=>{re.current=V},[V]),react$1.exports.useRef(H)),E=(react$1.exports.useEffect(()=>{ie.current=H},[H]),react$1.exports.useRef(B)),oe=(react$1.exports.useEffect(()=>{E.current=B},[B]),react$1.exports.useRef(U)),j=(react$1.exports.useEffect(()=>{oe.current=U},[U]),react$1.exports.useRef(i)),I=(react$1.exports.useEffect(()=>{j.current=i},[i]),react$1.exports.useMemo(()=>{var e=(e,t)=>oe.current(e,t);return 0<o?ct(e,o):0<a?be(e,a):e},[a,o])),ae=react$1.exports.useRef(),R=(react$1.exports.useEffect(()=>{c&&u&&(ae.current=be(()=>{S.current.active()},u))},[c,u]),()=>{null!==C.current&&(I$1.clearTimeout(C.current),C.current=null)}),O=(e,t=!0)=>{R(),C.current=I$1.setTimeout(ue,e||w.current),t&&(f.current=v$1())},se=e=>{v.current||$.current||(re.current(e,P),ne.current({type:"active",prompted:!0},P)),y.current=0,g.current=v$1(),v.current=!0,O(_.current,!1)},le=()=>{R(),$.current||(ie.current(null,P),ne.current({type:"idle"},P)),$.current=!0,p.current=v$1(),X.current?k():v.current&&(g.current=0,v.current=!1)},ce=e=>{R(),($.current||v.current)&&(E.current(e,P),ne.current({type:"active",prompted:!1},P)),v.current=!1,g.current=0,$.current=!1,h.current+=v$1()-p.current,m.current+=v$1()-p.current,A(),O()},ue=e=>{var t;if(!$.current)return I.cancel&&I.cancel(),t=v$1()-f.current,w.current+_.current<t||!(0<_.current)||v.current?void(S.current?S.current.idle():le()):void(S.current?S.current.prompt():se(e));S.current?S.current.active():ce(e)},de=e=>{var t;s||f.current||(f.current=v$1(),E.current(null,P)),I(e,P),v.current||(R(),!$.current&&J.current.includes(e.type)||(t=v$1()-f.current,$.current&&!W)||!$.current&&t>=w.current?ue(e):(x.current=!1,y.current=0,g.current=0,O(),c&&u&&ae.current()))},pe=react$1.exports.useRef(de),A=(react$1.exports.useEffect(()=>{var e=Q.current;e&&k(),pe.current=0<z?be(de,z):de,e&&A()},[z,a,o,oe,c,u]),()=>{M$1&&ee.current&&(Q.current||(te.current.forEach(e=>{ee.current.addEventListener(e,pe.current,{capture:!0,passive:!0})}),Q.current=!0))}),k=(e=!1)=>{M$1&&ee.current&&(Q.current||e)&&(te.current.forEach(e=>{ee.current.removeEventListener(e,pe.current,{capture:!0})}),Q.current=!1)},M=react$1.exports.useCallback(e=>!T.current&&(R(),A(),$.current=!1,v.current=!1,x.current=!1,y.current=0,g.current=0,S.current&&!e&&S.current.start(),O(),!0),[C,$,T,w,S]),fe=react$1.exports.useCallback(e=>!T.current&&(R(),A(),Y.current=v$1(),h.current+=v$1()-p.current,m.current+=v$1()-p.current,h.current=0,$.current=!1,v.current=!1,x.current=!1,y.current=0,g.current=0,S.current&&!e&&S.current.reset(),l||O(),!0),[C,$,w,l,T,S]),he=react$1.exports.useCallback(e=>!T.current&&(R(),A(),($.current||v.current)&&ce(),$.current=!1,v.current=!1,x.current=!1,y.current=0,g.current=0,Y.current=v$1(),S.current&&!e&&S.current.activate(),O(),!0),[C,$,v,T,w,S]),me=react$1.exports.useCallback((e=!1)=>!T.current&&!x.current&&(y.current=_e(),x.current=!0,k(),R(),S.current&&!e&&S.current.pause(),!0),[C,T,S]),ge=react$1.exports.useCallback((e=!1)=>!(T.current||!x.current||(x.current=!1,v.current||A(),$.current||O(y.current),g.current&&(g.current=v$1()),S.current&&!e&&S.current.resume(),0)),[C,w,T,y,S]),ye=react$1.exports.useCallback((e,t)=>(S.current?(t&&j.current(e,P),S.current.message(e)):t&&j.current(e,P),!0),[i]),$e=react$1.exports.useCallback(()=>$.current,[$]),ve=react$1.exports.useCallback(()=>v.current,[v]),Ce=react$1.exports.useCallback(()=>S.current?S.current.isLeader:null,[S]),Se=react$1.exports.useCallback(()=>S.current?S.current.isLastActive:null,[S]),we=react$1.exports.useCallback(()=>S.current?S.current.token:null,[S]),_e=react$1.exports.useCallback(()=>{var e,t;return x.current?y.current:(t=y.current||_.current+w.current,e=f.current?v$1()-f.current:0,(t=Math.floor(t-e))<0?0:Math.abs(t))},[w,_,v,y,f]),Te=react$1.exports.useCallback(()=>Math.round(v$1()-Y.current),[Y]),je=react$1.exports.useCallback(()=>Math.round(v$1()-K.current),[K]),Ie=react$1.exports.useCallback(()=>p.current?new Date(p.current):null,[p]),Re=react$1.exports.useCallback(()=>f.current?new Date(f.current):null,[f]),Oe=react$1.exports.useCallback(()=>$.current?Math.round(v$1()-p.current+h.current):Math.round(h.current),[p,h]),Ae=react$1.exports.useCallback(()=>$.current?Math.round(v$1()-p.current+m.current):Math.round(m.current),[p,m]),ke=react$1.exports.useCallback(()=>{var e=Math.round(Te()-Oe());return 0<=e?e:0},[p,h]),Me=react$1.exports.useCallback(()=>{var e=Math.round(je()-Ae());return 0<=e?e:0},[p,h]),P=(react$1.exports.useEffect(()=>{if(0<o&&0<a)throw new Error("❌ onAction can either be throttled or debounced, not both.");D&&it(D);let e=()=>{S.current&&S.current.close(),I.cancel&&I.cancel(),R(),k(!0)};return M$1&&window.addEventListener("beforeunload",e),()=>{M$1&&window.removeEventListener("beforeunload",e),S.current&&S.current.close(),I.cancel&&I.cancel(),R(),k(!0)}},[]),react$1.exports.useEffect(()=>{S.current&&S.current.close(),S.current=c?new Ee({channelName:G,leaderElection:q,onPrompt:()=>{se()},onIdle:()=>{le()},onActive:()=>{ce()},onMessage:e=>{j.current(e,P)},start:M,reset:fe,activate:he,pause:me,resume:ge}):null},[c,G,q,re,ie,E,j,M,fe,me,ge]),react$1.exports.useEffect(()=>{b.current||(R(),k(!0)),l||d||(s?M:A)()},[l,s,d,b]),react$1.exports.useEffect(()=>{var e;b.current||(e=[...new Set([...N,...r]).values()],k(),te.current=e,ee.current=L,J.current=r,l)||d||(s?M:A)()},[L,JSON.stringify(N),JSON.stringify(r),b,d,l,s]),react$1.exports.useEffect(()=>{b.current&&(b.current=!1)},[b]),{message:ye,start:M,reset:fe,activate:he,pause:me,resume:ge,isIdle:$e,isPrompted:ve,isLeader:Ce,isLastActiveTab:Se,getTabId:we,getRemainingTime:_e,getElapsedTime:Te,getTotalElapsedTime:je,getLastIdleTime:Ie,getLastActiveTime:Re,getIdleTime:Oe,getTotalIdleTime:Ae,getActiveTime:ke,getTotalActiveTime:Me,setOnPresenceChange:e=>{F=e,ne.current=e},setOnPrompt:e=>{V=e,re.current=e},setOnIdle:e=>{H=e,ie.current=e},setOnActive:e=>{B=e,E.current=e},setOnAction:e=>{U=e,oe.current=e},setOnMessage:e=>{i=e,j.current=e}});return P}var match$1,version$1,set$1$1,get$1,store$5,STATE$1,$location$1,defer$1,channel$1,port$1,toggle$1,node$1,promise$1,then$1,queue$3,flush$1,notify$1$1,Internal$1,OwnPromiseCapability$1,PromiseWrapper$1,nativeThen$1,ge=react$1.exports.createContext(null),tinycolor$1=(ge.Consumer,{exports:{}}),tinycolor=(!function(e){function u(e,t){var n;return t=t||{},(e=e||"")instanceof u?e:this instanceof u?(n=function(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;"string"==typeof e&&(e=function(e){e=e.replace(S,"").replace(w,"").toLowerCase();var t,n=!1;if(R[e])e=R[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=P.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=P.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=P.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=P.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=P.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=P.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=P.hex8.exec(e))return{r:g(t[1]),g:g(t[2]),b:g(t[3]),a:x(t[4]),format:n?"name":"hex8"};if(t=P.hex6.exec(e))return{r:g(t[1]),g:g(t[2]),b:g(t[3]),format:n?"name":"hex"};if(t=P.hex4.exec(e))return{r:g(t[1]+""+t[1]),g:g(t[2]+""+t[2]),b:g(t[3]+""+t[3]),a:x(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=P.hex3.exec(e))return{r:g(t[1]+""+t[1]),g:g(t[2]+""+t[2]),b:g(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(b(e.r)&&b(e.g)&&b(e.b)?(t=function(e,t,n){return{r:255*h(e,255),g:255*h(t,255),b:255*h(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):b(e.h)&&b(e.s)&&b(e.v)?(r=$(e.s),i=$(e.v),t=function(e,t,n){e=6*h(e,360),t=h(t,100),n=h(n,100);var r=C.floor(e),e=e-r,i=n*(1-t),o=n*(1-e*t),e=n*(1-(1-e)*t),t=r%6;return{r:255*[n,o,i,i,e,n][t],g:255*[e,n,n,o,i,i][t],b:255*[i,i,e,n,n,o][t]}}(e.h,r,i),a=!0,s="hsv"):b(e.h)&&b(e.s)&&b(e.l)&&(r=$(e.s),o=$(e.l),t=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}e=h(e,360),t=h(t,100),n=h(n,100),0===t?r=i=o=n:(r=a(t=2*n-(n=n<.5?n*(1+t):n+t-n*t),n,e+1/3),i=a(t,n,e),o=a(t,n,e-1/3));return{r:255*r,g:255*i,b:255*o}}(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a"))&&(n=e.a);return n=f(n),{ok:a,format:e.format||s,r:E(255,j(t.r,0)),g:E(255,j(t.g,0)),b:E(255,j(t.b,0)),a:n}}(e),this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=T(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=T(this._r)),this._g<1&&(this._g=T(this._g)),this._b<1&&(this._b=T(this._b)),this._ok=n.ok,void(this._tc_id=_++)):new u(e,t)}function r(e,t,n){e=h(e,255),t=h(t,255),n=h(n,255);var r,i=j(e,t,n),o=E(e,t,n),a=(i+o)/2;if(i==o)r=l=0;else{var s=i-o,l=.5<a?s/(2-i-o):s/(i+o);switch(i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:l,l:a}}function i(e,t,n){e=h(e,255),t=h(t,255),n=h(n,255);var r,i=j(e,t,n),o=E(e,t,n),a=i,s=i-o,l=0===i?0:s/i;if(i==o)r=0;else{switch(i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:l,v:a}}function t(e,t,n,r){e=[y(T(e).toString(16)),y(T(t).toString(16)),y(T(n).toString(16))];return r&&e[0].charAt(0)==e[0].charAt(1)&&e[1].charAt(0)==e[1].charAt(1)&&e[2].charAt(0)==e[2].charAt(1)?e[0].charAt(0)+e[1].charAt(0)+e[2].charAt(0):e.join("")}function o(e,t,n,r){return[y(v(r)),y(T(e).toString(16)),y(T(t).toString(16)),y(T(n).toString(16))].join("")}function n(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.s-=t/100,e.s=m(e.s),u(e)}function a(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.s+=t/100,e.s=m(e.s),u(e)}function s(e){return u(e).desaturate(100)}function l(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.l+=t/100,e.l=m(e.l),u(e)}function c(e,t){t=0===t?0:t||10;e=u(e).toRgb();return e.r=j(0,E(255,e.r-T(-t/100*255))),e.g=j(0,E(255,e.g-T(-t/100*255))),e.b=j(0,E(255,e.b-T(-t/100*255))),u(e)}function d(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.l-=t/100,e.l=m(e.l),u(e)}function p(e,t){e=u(e).toHsl(),t=(e.h+t)%360;return e.h=t<0?360+t:t,u(e)}function L(e){e=u(e).toHsl();return e.h=(e.h+180)%360,u(e)}function N(e){var t=u(e).toHsl(),n=t.h;return[u(e),u({h:(n+120)%360,s:t.s,l:t.l}),u({h:(n+240)%360,s:t.s,l:t.l})]}function D(e){var t=u(e).toHsl(),n=t.h;return[u(e),u({h:(n+90)%360,s:t.s,l:t.l}),u({h:(n+180)%360,s:t.s,l:t.l}),u({h:(n+270)%360,s:t.s,l:t.l})]}function F(e){var t=u(e).toHsl(),n=t.h;return[u(e),u({h:(n+72)%360,s:t.s,l:t.l}),u({h:(n+216)%360,s:t.s,l:t.l})]}function V(e,t,n){t=t||6,n=n||30;var r=u(e).toHsl(),i=360/n,o=[u(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(u(r));return o}function H(e,t){t=t||6;for(var e=u(e).toHsv(),n=e.h,r=e.s,i=e.v,o=[],a=1/t;t--;)o.push(u({h:n,s:r,v:i})),i=(i+a)%1;return o}function f(e){return e=parseFloat(e),e=isNaN(e)||e<0||1<e?1:e}function h(e,t){"string"==typeof(n=e)&&-1!=n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var n="string"==typeof(n=e)&&-1!=n.indexOf("%");return e=E(t,j(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),C.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function m(e){return E(1,j(0,e))}function g(e){return parseInt(e,16)}function y(e){return 1==e.length?"0"+e:""+e}function $(e){return e=e<=1?100*e+"%":e}function v(e){return C.round(255*parseFloat(e)).toString(16)}function x(e){return g(e)/255}function b(e){return P.CSS_UNIT.exec(e)}var C,S,w,_,T,E,j,I,R,O,A,k,M,P;C=Math,S=/^\s+/,w=/\s+$/,_=0,T=C.round,E=C.min,j=C.max,I=C.random,u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,e=e.b/255,t=t<=.03928?t/12.92:C.pow((.055+t)/1.055,2.4),n=n<=.03928?n/12.92:C.pow((.055+n)/1.055,2.4),e=e<=.03928?e/12.92:C.pow((.055+e)/1.055,2.4);return.2126*t+.7152*n+.0722*e},setAlpha:function(e){return this._a=f(e),this._roundA=T(100*this._a)/100,this},toHsv:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=i(this._r,this._g,this._b),t=T(360*e.h),n=T(100*e.s),e=T(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+e+"%)":"hsva("+t+", "+n+"%, "+e+"%, "+this._roundA+")"},toHsl:function(){var e=r(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=r(this._r,this._g,this._b),t=T(360*e.h),n=T(100*e.s),e=T(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+e+"%)":"hsla("+t+", "+n+"%, "+e+"%, "+this._roundA+")"},toHex:function(e){return t(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t=this._r,n=this._g,r=this._b,i=this._a;return t=[y(T(t).toString(16)),y(T(n).toString(16)),y(T(r).toString(16)),y(v(i))],e&&t[0].charAt(0)==t[0].charAt(1)&&t[1].charAt(0)==t[1].charAt(1)&&t[2].charAt(0)==t[2].charAt(1)&&t[3].charAt(0)==t[3].charAt(1)?t[0].charAt(0)+t[1].charAt(0)+t[2].charAt(0)+t[3].charAt(0):t.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:T(this._r),g:T(this._g),b:T(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+T(this._r)+", "+T(this._g)+", "+T(this._b)+")":"rgba("+T(this._r)+", "+T(this._g)+", "+T(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:T(100*h(this._r,255))+"%",g:T(100*h(this._g,255))+"%",b:T(100*h(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+T(100*h(this._r,255))+"%, "+T(100*h(this._g,255))+"%, "+T(100*h(this._b,255))+"%)":"rgba("+T(100*h(this._r,255))+"%, "+T(100*h(this._g,255))+"%, "+T(100*h(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&O[t(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t="#"+o(this._r,this._g,this._b,this._a),n=t;return"progid:DXImageTransform.Microsoft.gradient("+(this._gradientType?"GradientType = 1, ":"")+"startColorstr="+t+",endColorstr="+(n=e?"#"+o((t=u(e))._r,t._g,t._b,t._a):n)+")"},toString:function(e){var t=!!e,n=(e=e||this._format,!1),r=this._a<1&&0<=this._a;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),(n="hsv"===e?this.toHsvString():n)||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return u(this.toString())},_applyModification:function(e,t){e=e.apply(null,[this].concat([].slice.call(t)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(l,arguments)},brighten:function(){return this._applyModification(c,arguments)},darken:function(){return this._applyModification(d,arguments)},desaturate:function(){return this._applyModification(n,arguments)},saturate:function(){return this._applyModification(a,arguments)},greyscale:function(){return this._applyModification(s,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(V,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination(H,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(N,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},u.fromRatio=function(e,t){if("object"==typeof e){var n,r={};for(n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:$(e[n]));e=r}return u(e,t)},u.equals=function(e,t){return!(!e||!t)&&u(e).toRgbString()==u(t).toRgbString()},u.random=function(){return u.fromRatio({r:I(),g:I(),b:I()})},u.mix=function(e,t,n){n=0===n?0:n||50;e=u(e).toRgb(),t=u(t).toRgb(),n/=100;return u({r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b,a:(t.a-e.a)*n+e.a})},u.readability=function(e,t){e=u(e),t=u(t);return(C.max(e.getLuminance(),t.getLuminance())+.05)/(C.min(e.getLuminance(),t.getLuminance())+.05)},u.isReadable=function(e,t,n){var r=u.readability(e,t),i=!1,e=function(e){var t;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),e=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==e&&"large"!==e&&(e="small");return{level:t,size:e}}(n);switch(e.level+e.size){case"AAsmall":case"AAAlarge":i=4.5<=r;break;case"AAlarge":i=3<=r;break;case"AAAsmall":i=7<=r}return i},u.mostReadable=function(e,t,n){for(var r,i=null,o=0,a=(n=n||{}).includeFallbackColors,s=n.level,l=n.size,c=0;c<t.length;c++)o<(r=u.readability(e,t[c]))&&(o=r,i=u(t[c]));return u.isReadable(e,i,{level:s,size:l})||!a?i:(n.includeFallbackColors=!1,u.mostReadable(e,["#fff","#000"],n))},R=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},O=u.hexNames=function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n}(R),k="[\\s|\\(]+("+(A="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",M="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",P={CSS_UNIT:new RegExp(A),rgb:new RegExp("rgb"+k),rgba:new RegExp("rgba"+M),hsl:new RegExp("hsl"+k),hsla:new RegExp("hsla"+M),hsv:new RegExp("hsv"+k),hsva:new RegExp("hsva"+M),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/},e.exports?e.exports=u:window.tinycolor=u}(tinycolor$1),tinycolor$1.exports),commonjsGlobal$1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check$1=function(e){return e&&e.Math==Math&&e},global$g=check$1("object"==typeof globalThis&&globalThis)||check$1("object"==typeof window&&window)||check$1("object"==typeof self&&self)||check$1("object"==typeof commonjsGlobal$1&&commonjsGlobal$1)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$1={},fails$e=function(e){try{return!!e()}catch(e){return!0}},descriptors$1=!fails$e(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),functionBindNative$1=!fails$e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3$1=functionBindNative$1,call$e=Function.prototype.call,functionCall$1=NATIVE_BIND$3$1?call$e.bind(call$e):function(){return call$e.apply(call$e,arguments)},objectPropertyIsEnumerable$1={},$propertyIsEnumerable$1={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$1=Object.getOwnPropertyDescriptor,NASHORN_BUG$1=getOwnPropertyDescriptor$2$1&&!$propertyIsEnumerable$1.call({1:2},1),createPropertyDescriptor$3=(objectPropertyIsEnumerable$1.f=NASHORN_BUG$1?function(e){return!!(e=getOwnPropertyDescriptor$2$1(this,e))&&e.enumerable}:$propertyIsEnumerable$1,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2$1=functionBindNative$1,FunctionPrototype$2$1=Function.prototype,call$d=FunctionPrototype$2$1.call,uncurryThisWithBind$1=NATIVE_BIND$2$1&&FunctionPrototype$2$1.bind.bind(call$d,call$d),functionUncurryThis$1=NATIVE_BIND$2$1?uncurryThisWithBind$1:function(e){return function(){return call$d.apply(e,arguments)}},uncurryThis$f=functionUncurryThis$1,toString$3=uncurryThis$f({}.toString),stringSlice$1$1=uncurryThis$f("".slice),classofRaw$2$1=function(e){return stringSlice$1$1(toString$3(e),8,-1)},fails$b=fails$e,classof$6=classofRaw$2$1,$Object$4=Object,split$1=functionUncurryThis$1("".split),indexedObject$1=fails$b(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$6(e)?split$1(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$4$1=function(e){return null==e},isNullOrUndefined$3$1=isNullOrUndefined$4$1,$TypeError$d=TypeError,requireObjectCoercible$3=function(e){if(isNullOrUndefined$3$1(e))throw $TypeError$d("Can't call method on "+e);return e},IndexedObject$1=indexedObject$1,requireObjectCoercible$2$1=requireObjectCoercible$3,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$2$1(e))},documentAll$2$1="object"==typeof document&&document.all,IS_HTMLDDA$1=void 0===documentAll$2$1&&void 0!==documentAll$2$1,documentAll_1$1={all:documentAll$2$1,IS_HTMLDDA:IS_HTMLDDA$1},$documentAll$1$1=documentAll_1$1,documentAll$1$1=$documentAll$1$1.all,isCallable$k=$documentAll$1$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1$1}:function(e){return"function"==typeof e},isCallable$j=isCallable$k,$documentAll$2=documentAll_1$1,documentAll$3=$documentAll$2.all,isObject$9=$documentAll$2.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$j(e)||e===documentAll$3}:function(e){return"object"==typeof e?null!==e:isCallable$j(e)},global$f$1=global$g,isCallable$i=isCallable$k,aFunction$1=function(e){return isCallable$i(e)?e:void 0},getBuiltIn$7$1=function(e,t){return arguments.length<2?aFunction$1(global$f$1[e]):global$f$1[e]&&global$f$1[e][t]},objectIsPrototypeOf$1=functionUncurryThis$1({}.isPrototypeOf),engineUserAgent$1="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$e$1=global$g,userAgent$3$1=engineUserAgent$1,process$4$1=global$e$1.process,Deno$1$1=global$e$1.Deno,versions$1=process$4$1&&process$4$1.versions||Deno$1$1&&Deno$1$1.version,v8$1=versions$1&&versions$1.v8,engineV8Version$1=version$1=!(version$1=v8$1?0<(match$1=v8$1.split("."))[0]&&match$1[0]<4?1:+(match$1[0]+match$1[1]):version$1)&&userAgent$3$1&&(!(match$1=userAgent$3$1.match(/Edge\/(\d+)/))||74<=match$1[1])&&(match$1=userAgent$3$1.match(/Chrome\/(\d+)/))?+match$1[1]:version$1,V8_VERSION$1$1=engineV8Version$1,fails$a$1=fails$e,symbolConstructorDetection$1=!!Object.getOwnPropertySymbols&&!fails$a$1(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$1&&V8_VERSION$1$1<41}),useSymbolAsUid$1=symbolConstructorDetection$1&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6$1=getBuiltIn$7$1,isCallable$h$1=isCallable$k,isPrototypeOf$2$1=objectIsPrototypeOf$1,$Object$3$1=Object,isSymbol$2$1=useSymbolAsUid$1?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6$1("Symbol");return isCallable$h$1(t)&&isPrototypeOf$2$1(t.prototype,$Object$3$1(e))},$String$4=String,tryToString$4$1=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$g$1=isCallable$k,tryToString$3$1=tryToString$4$1,$TypeError$c$1=TypeError,aCallable$8$1=function(e){if(isCallable$g$1(e))return e;throw $TypeError$c$1(tryToString$3$1(e)+" is not a function")},aCallable$7$1=aCallable$8$1,isNullOrUndefined$2$1=isNullOrUndefined$4$1,getMethod$3$1=function(e,t){return e=e[t],isNullOrUndefined$2$1(e)?void 0:aCallable$7$1(e)},call$c$1=functionCall$1,isCallable$f$1=isCallable$k,isObject$8=isObject$9,$TypeError$b$1=TypeError,ordinaryToPrimitive$1$1=function(e,t){var n,r;if("string"===t&&isCallable$f$1(n=e.toString)&&!isObject$8(r=call$c$1(n,e)))return r;if(isCallable$f$1(n=e.valueOf)&&!isObject$8(r=call$c$1(n,e)))return r;if("string"!==t&&isCallable$f$1(n=e.toString)&&!isObject$8(r=call$c$1(n,e)))return r;throw $TypeError$b$1("Can't convert object to primitive value")},shared$3$1={exports:{}},global$d$1=global$g,defineProperty$6=Object.defineProperty,defineGlobalProperty$3$1=function(t,n){try{defineProperty$6(global$d$1,t,{value:n,configurable:!0,writable:!0})}catch(e){global$d$1[t]=n}return n},defineGlobalProperty$2$1=defineGlobalProperty$3$1,SHARED$1="__core-js_shared__",store$3$1=global$g[SHARED$1]||defineGlobalProperty$2$1(SHARED$1,{}),sharedStore$1=store$3$1,store$2$1=sharedStore$1,requireObjectCoercible$1$1=((shared$3$1.exports=function(e,t){return store$2$1[e]||(store$2$1[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$3),$Object$2$1=Object,toObject$3=function(e){return $Object$2$1(requireObjectCoercible$1$1(e))},toObject$2=toObject$3,hasOwnProperty$1=functionUncurryThis$1({}.hasOwnProperty),hasOwnProperty_1$1=Object.hasOwn||function(e,t){return hasOwnProperty$1(toObject$2(e),t)},uncurryThis$b$1=functionUncurryThis$1,id$1=0,postfix$1=Math.random(),toString$2=uncurryThis$b$1(1..toString),uid$2$1=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$2(++id$1+postfix$1,36)},global$b$1=global$g,shared$2$1=shared$3$1.exports,hasOwn$9=hasOwnProperty_1$1,uid$1$1=uid$2$1,NATIVE_SYMBOL$2=symbolConstructorDetection$1,USE_SYMBOL_AS_UID$2=useSymbolAsUid$1,Symbol$1$1=global$b$1.Symbol,WellKnownSymbolsStore$1=shared$2$1("wks"),createWellKnownSymbol$1=USE_SYMBOL_AS_UID$2?Symbol$1$1.for||Symbol$1$1:Symbol$1$1&&Symbol$1$1.withoutSetter||uid$1$1,wellKnownSymbol$g=function(e){return hasOwn$9(WellKnownSymbolsStore$1,e)||(WellKnownSymbolsStore$1[e]=NATIVE_SYMBOL$2&&hasOwn$9(Symbol$1$1,e)?Symbol$1$1[e]:createWellKnownSymbol$1("Symbol."+e)),WellKnownSymbolsStore$1[e]},call$b$1=functionCall$1,isObject$7$1=isObject$9,isSymbol$1$1=isSymbol$2$1,getMethod$2$1=getMethod$3$1,ordinaryToPrimitive$2=ordinaryToPrimitive$1$1,$TypeError$a$1=TypeError,TO_PRIMITIVE$1=wellKnownSymbol$g("toPrimitive"),toPrimitive$1$1=function(e,t){if(!isObject$7$1(e)||isSymbol$1$1(e))return e;var n=getMethod$2$1(e,TO_PRIMITIVE$1);if(n){if(n=call$b$1(n,e,t=void 0===t?"default":t),!isObject$7$1(n)||isSymbol$1$1(n))return n;throw $TypeError$a$1("Can't convert object to primitive value")}return ordinaryToPrimitive$2(e,t=void 0===t?"number":t)},toPrimitive$2=toPrimitive$1$1,isSymbol$3=isSymbol$2$1,toPropertyKey$2$1=function(e){return e=toPrimitive$2(e,"string"),isSymbol$3(e)?e:e+""},isObject$6$1=isObject$9,document$3$1=global$g.document,EXISTS$1$1=isObject$6$1(document$3$1)&&isObject$6$1(document$3$1.createElement),documentCreateElement$2=function(e){return EXISTS$1$1?document$3$1.createElement(e):{}},createElement$1$1=documentCreateElement$2,ie8DomDefine$1=!descriptors$1&&!fails$e(function(){return 7!=Object.defineProperty(createElement$1$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$9=descriptors$1,call$a$1=functionCall$1,propertyIsEnumerableModule$1=objectPropertyIsEnumerable$1,createPropertyDescriptor$2$1=createPropertyDescriptor$3,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1$1=toPropertyKey$2$1,hasOwn$8$1=hasOwnProperty_1$1,IE8_DOM_DEFINE$1$1=ie8DomDefine$1,$getOwnPropertyDescriptor$1$1=Object.getOwnPropertyDescriptor,objectDefineProperty$1=(objectGetOwnPropertyDescriptor$1.f=DESCRIPTORS$9?$getOwnPropertyDescriptor$1$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$1$1(t),IE8_DOM_DEFINE$1$1)try{return $getOwnPropertyDescriptor$1$1(e,t)}catch(e){}if(hasOwn$8$1(e,t))return createPropertyDescriptor$2$1(!call$a$1(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),v8PrototypeDefineBug$1=descriptors$1&&fails$e(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$5$1=isObject$9,$String$3$1=String,$TypeError$9$1=TypeError,anObject$a=function(e){if(isObject$5$1(e))return e;throw $TypeError$9$1($String$3$1(e)+" is not an object")},DESCRIPTORS$7$1=descriptors$1,IE8_DOM_DEFINE$2=ie8DomDefine$1,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug$1,anObject$9=anObject$a,toPropertyKey$3=toPropertyKey$2$1,$TypeError$8$1=TypeError,$defineProperty$1=Object.defineProperty,$getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,ENUMERABLE$1="enumerable",CONFIGURABLE$1$1="configurable",WRITABLE$1="writable",DESCRIPTORS$6$1=(objectDefineProperty$1.f=DESCRIPTORS$7$1?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,n){var r;return anObject$9(e),t=toPropertyKey$3(t),anObject$9(n),"function"==typeof e&&"prototype"===t&&"value"in n&&WRITABLE$1 in n&&!n[WRITABLE$1]&&(r=$getOwnPropertyDescriptor$2(e,t))&&r[WRITABLE$1]&&(e[t]=n.value,n={configurable:(CONFIGURABLE$1$1 in n?n:r)[CONFIGURABLE$1$1],enumerable:(ENUMERABLE$1 in n?n:r)[ENUMERABLE$1],writable:!1}),$defineProperty$1(e,t,n)}:$defineProperty$1:function(e,t,n){if(anObject$9(e),t=toPropertyKey$3(t),anObject$9(n),IE8_DOM_DEFINE$2)try{return $defineProperty$1(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $TypeError$8$1("Accessors not supported");return"value"in n&&(e[t]=n.value),e},descriptors$1),definePropertyModule$3=objectDefineProperty$1,createPropertyDescriptor$1$1=createPropertyDescriptor$3,createNonEnumerableProperty$4=DESCRIPTORS$6$1?function(e,t,n){return definePropertyModule$3.f(e,t,createPropertyDescriptor$1$1(1,n))}:function(e,t,n){return e[t]=n,e},makeBuiltIn$3$1={exports:{}},DESCRIPTORS$5$1=descriptors$1,hasOwn$7$1=hasOwnProperty_1$1,FunctionPrototype$1$1=Function.prototype,getDescriptor$1=DESCRIPTORS$5$1&&Object.getOwnPropertyDescriptor,EXISTS$2=hasOwn$7$1(FunctionPrototype$1$1,"name"),PROPER$1=EXISTS$2&&"something"===function(){}.name,CONFIGURABLE$2=EXISTS$2&&(!DESCRIPTORS$5$1||getDescriptor$1(FunctionPrototype$1$1,"name").configurable),functionName$1={EXISTS:EXISTS$2,PROPER:PROPER$1,CONFIGURABLE:CONFIGURABLE$2},isCallable$e$1=isCallable$k,store$1$1=sharedStore$1,functionToString$1=functionUncurryThis$1(Function.toString),inspectSource$3$1=(isCallable$e$1(store$1$1.inspectSource)||(store$1$1.inspectSource=function(e){return functionToString$1(e)}),store$1$1.inspectSource),isCallable$d$1=isCallable$k,WeakMap$1$1=global$g.WeakMap,weakMapBasicDetection$1=isCallable$d$1(WeakMap$1$1)&&/native code/.test(String(WeakMap$1$1)),shared$1$1=shared$3$1.exports,uid$3=uid$2$1,keys$1=shared$1$1("keys"),sharedKey$3=function(e){return keys$1[e]||(keys$1[e]=uid$3(e))},hiddenKeys$4={},NATIVE_WEAK_MAP$1=weakMapBasicDetection$1,global$8$1=global$g,isObject$4$1=isObject$9,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$6$1=hasOwnProperty_1$1,shared$4=sharedStore$1,sharedKey$2=sharedKey$3,hiddenKeys$3$1=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED$1="Object already initialized",TypeError$2$1=global$8$1.TypeError,WeakMap$3=global$8$1.WeakMap,enforce$1=function(e){return has$1(e)?get$1(e):set$1$1(e,{})},getterFor$1=function(t){return function(e){if(isObject$4$1(e)&&(e=get$1(e)).type===t)return e;throw TypeError$2$1("Incompatible receiver, "+t+" required")}},has$1=NATIVE_WEAK_MAP$1||shared$4.state?((store$5=shared$4.state||(shared$4.state=new WeakMap$3)).get=store$5.get,store$5.has=store$5.has,store$5.set=store$5.set,set$1$1=function(e,t){if(store$5.has(e))throw TypeError$2$1(OBJECT_ALREADY_INITIALIZED$1);return t.facade=e,store$5.set(e,t),t},get$1=function(e){return store$5.get(e)||{}},function(e){return store$5.has(e)}):(STATE$1=sharedKey$2("state"),hiddenKeys$3$1[STATE$1]=!0,set$1$1=function(e,t){if(hasOwn$6$1(e,STATE$1))throw TypeError$2$1(OBJECT_ALREADY_INITIALIZED$1);return t.facade=e,createNonEnumerableProperty$3(e,STATE$1,t),t},get$1=function(e){return hasOwn$6$1(e,STATE$1)?e[STATE$1]:{}},function(e){return hasOwn$6$1(e,STATE$1)}),internalState$1={set:set$1$1,get:get$1,has:has$1,enforce:enforce$1,getterFor:getterFor$1},uncurryThis$9$1=functionUncurryThis$1,fails$7$1=fails$e,isCallable$c$1=isCallable$k,hasOwn$5$1=hasOwnProperty_1$1,DESCRIPTORS$4$1=descriptors$1,CONFIGURABLE_FUNCTION_NAME$1=functionName$1.CONFIGURABLE,inspectSource$2$1=inspectSource$3$1,InternalStateModule$2=internalState$1,enforceInternalState$1=InternalStateModule$2.enforce,getInternalState$1=InternalStateModule$2.get,$String$2$1=String,defineProperty$5=Object.defineProperty,stringSlice$2=uncurryThis$9$1("".slice),replace$1=uncurryThis$9$1("".replace),join$1=uncurryThis$9$1([].join),CONFIGURABLE_LENGTH$1=DESCRIPTORS$4$1&&!fails$7$1(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE$1=String(String).split("String"),makeBuiltIn$2$1=makeBuiltIn$3$1.exports=function(e,t,n){"Symbol("===stringSlice$2($String$2$1(t),0,7)&&(t="["+replace$1($String$2$1(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!hasOwn$5$1(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$4$1?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH$1&&n&&hasOwn$5$1(n,"arity")&&e.length!==n.arity&&defineProperty$5(e,"length",{value:n.arity});try{n&&hasOwn$5$1(n,"constructor")&&n.constructor?DESCRIPTORS$4$1&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}return n=enforceInternalState$1(e),hasOwn$5$1(n,"source")||(n.source=join$1(TEMPLATE$1,"string"==typeof t?t:"")),e},isCallable$b$1=(Function.prototype.toString=makeBuiltIn$2$1(function(){return isCallable$c$1(this)&&getInternalState$1(this).source||inspectSource$2$1(this)},"toString"),isCallable$k),definePropertyModule$2$1=objectDefineProperty$1,makeBuiltIn$1$1=makeBuiltIn$3$1.exports,defineGlobalProperty$1$1=defineGlobalProperty$3$1,defineBuiltIn$5=function(e,t,n,r){var i=(r=r||{}).enumerable,o=void 0!==r.name?r.name:t;if(isCallable$b$1(n)&&makeBuiltIn$1$1(n,o,r),r.global)i?e[t]=n:defineGlobalProperty$1$1(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:definePropertyModule$2$1.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},objectGetOwnPropertyNames$1={},ceil$1=Math.ceil,floor$1=Math.floor,mathTrunc$1=Math.trunc||function(e){return(0<(e=+e)?floor$1:ceil$1)(e)},trunc$1=mathTrunc$1,toIntegerOrInfinity$2$1=function(e){return(e=+e)!=e||0==e?0:trunc$1(e)},toIntegerOrInfinity$1$1=toIntegerOrInfinity$2$1,max$1=Math.max,min$1$1=Math.min,toAbsoluteIndex$1$1=function(e,t){return(e=toIntegerOrInfinity$1$1(e))<0?max$1(e+t,0):min$1$1(e,t)},toIntegerOrInfinity$3=toIntegerOrInfinity$2$1,min$2=Math.min,toLength$1$1=function(e){return 0<e?min$2(toIntegerOrInfinity$3(e),9007199254740991):0},toLength$2=toLength$1$1,lengthOfArrayLike$2$1=function(e){return toLength$2(e.length)},toIndexedObject$3$1=toIndexedObject$5,toAbsoluteIndex$2=toAbsoluteIndex$1$1,lengthOfArrayLike$1$1=lengthOfArrayLike$2$1,createMethod$1=function(s){return function(e,t,n){var r,i=toIndexedObject$3$1(e),o=lengthOfArrayLike$1$1(i),a=toAbsoluteIndex$2(n,o);if(s&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===t)return s||a||0;return!s&&-1}},arrayIncludes$1={includes:createMethod$1(!0),indexOf:createMethod$1(!1)},uncurryThis$8$1=functionUncurryThis$1,hasOwn$4$1=hasOwnProperty_1$1,toIndexedObject$2$1=toIndexedObject$5,indexOf$1=arrayIncludes$1.indexOf,hiddenKeys$2$1=hiddenKeys$4,push$1=uncurryThis$8$1([].push),objectKeysInternal$1=function(e,t){var n,r=toIndexedObject$2$1(e),i=0,o=[];for(n in r)!hasOwn$4$1(hiddenKeys$2$1,n)&&hasOwn$4$1(r,n)&&push$1(o,n);for(;t.length>i;)hasOwn$4$1(r,n=t[i++])&&!~indexOf$1(o,n)&&push$1(o,n);return o},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal$1,hiddenKeys$1$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols$1=(objectGetOwnPropertyNames$1.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1$1)},{}),getBuiltIn$5$1=(objectGetOwnPropertySymbols$1.f=Object.getOwnPropertySymbols,getBuiltIn$7$1),getOwnPropertyNamesModule$1=objectGetOwnPropertyNames$1,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols$1,anObject$8$1=anObject$a,concat$1=functionUncurryThis$1([].concat),ownKeys$1$1=getBuiltIn$5$1("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule$1.f(anObject$8$1(e)),n=getOwnPropertySymbolsModule$1.f;return n?concat$1(t,n(e)):t},hasOwn$3$1=hasOwnProperty_1$1,ownKeys$2=ownKeys$1$1,getOwnPropertyDescriptorModule$1=objectGetOwnPropertyDescriptor$1,definePropertyModule$1$1=objectDefineProperty$1,copyConstructorProperties$1$1=function(e,t,n){for(var r=ownKeys$2(t),i=definePropertyModule$1$1.f,o=getOwnPropertyDescriptorModule$1.f,a=0;a<r.length;a++){var s=r[a];hasOwn$3$1(e,s)||n&&hasOwn$3$1(n,s)||i(e,s,o(t,s))}},fails$6$1=fails$e,isCallable$a$1=isCallable$k,replacement$1=/#|\.prototype\./,isForced$2$1=function(e,t){return(e=data$1[normalize$1(e)])==POLYFILL$1||e!=NATIVE$1&&(isCallable$a$1(t)?fails$6$1(t):!!t)},normalize$1=isForced$2$1.normalize=function(e){return String(e).replace(replacement$1,".").toLowerCase()},data$1=isForced$2$1.data={},NATIVE$1=isForced$2$1.NATIVE="N",POLYFILL$1=isForced$2$1.POLYFILL="P",isForced_1$1=isForced$2$1,global$7$1=global$g,getOwnPropertyDescriptor$1$1=objectGetOwnPropertyDescriptor$1.f,createNonEnumerableProperty$2$1=createNonEnumerableProperty$4,defineBuiltIn$4=defineBuiltIn$5,defineGlobalProperty$4=defineGlobalProperty$3$1,copyConstructorProperties$2=copyConstructorProperties$1$1,isForced$1$1=isForced_1$1,_export$1=function(e,t){var n,r,i,o=e.target,a=e.global,s=e.stat,l=a?global$7$1:s?global$7$1[o]||defineGlobalProperty$4(o,{}):(global$7$1[o]||{}).prototype;if(l)for(n in t){if(r=t[n],i=e.dontCallGetSet?(i=getOwnPropertyDescriptor$1$1(l,n))&&i.value:l[n],!isForced$1$1(a?n:o+(s?".":"#")+n,e.forced)&&void 0!==i){if(typeof r==typeof i)continue;copyConstructorProperties$2(r,i)}(e.sham||i&&i.sham)&&createNonEnumerableProperty$2$1(r,"sham",!0),defineBuiltIn$4(l,n,r,e)}},engineIsNode$1="undefined"!=typeof process&&"process"==classofRaw$2$1(process),uncurryThis$6$1=functionUncurryThis$1,aCallable$6$1=aCallable$8$1,functionUncurryThisAccessor$1=function(e,t,n){try{return uncurryThis$6$1(aCallable$6$1(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},isCallable$9$1=isCallable$k,$String$1$1=String,$TypeError$7$1=TypeError,aPossiblePrototype$1$1=function(e){if("object"==typeof e||isCallable$9$1(e))return e;throw $TypeError$7$1("Can't set "+$String$1$1(e)+" as a prototype")},uncurryThisAccessor$1=functionUncurryThisAccessor$1,anObject$7$1=anObject$a,aPossiblePrototype$2=aPossiblePrototype$1$1,objectSetPrototypeOf$1=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=uncurryThisAccessor$1(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return anObject$7$1(e),aPossiblePrototype$2(t),r?n(e,t):e.__proto__=t,e}}():void 0),defineProperty$4=objectDefineProperty$1.f,hasOwn$2$1=hasOwnProperty_1$1,TO_STRING_TAG$3=wellKnownSymbol$g("toStringTag"),setToStringTag$3=function(e,t,n){(e=e&&!n?e.prototype:e)&&!hasOwn$2$1(e,TO_STRING_TAG$3)&&defineProperty$4(e,TO_STRING_TAG$3,{configurable:!0,value:t})},makeBuiltIn$4=makeBuiltIn$3$1.exports,defineProperty$3$1=objectDefineProperty$1,defineBuiltInAccessor$1$1=function(e,t,n){return n.get&&makeBuiltIn$4(n.get,t,{getter:!0}),n.set&&makeBuiltIn$4(n.set,t,{setter:!0}),defineProperty$3$1.f(e,t,n)},getBuiltIn$4$1=getBuiltIn$7$1,defineBuiltInAccessor$2=defineBuiltInAccessor$1$1,DESCRIPTORS$3$1=descriptors$1,SPECIES$2$1=wellKnownSymbol$g("species"),setSpecies$1$1=function(e){e=getBuiltIn$4$1(e),DESCRIPTORS$3$1&&e&&!e[SPECIES$2$1]&&defineBuiltInAccessor$2(e,SPECIES$2$1,{configurable:!0,get:function(){return this}})},isPrototypeOf$1$1=objectIsPrototypeOf$1,$TypeError$6$1=TypeError,anInstance$1$1=function(e,t){if(isPrototypeOf$1$1(t,e))return e;throw $TypeError$6$1("Incorrect invocation")},TO_STRING_TAG$2$1=wellKnownSymbol$g("toStringTag"),test$1={},toStringTagSupport$1=(test$1[TO_STRING_TAG$2$1]="z","[object z]"===String(test$1)),TO_STRING_TAG_SUPPORT$1=toStringTagSupport$1,isCallable$8$1=isCallable$k,classofRaw$1$1=classofRaw$2$1,TO_STRING_TAG$1$1=wellKnownSymbol$g("toStringTag"),$Object$1$1=Object,CORRECT_ARGUMENTS$1="Arguments"==classofRaw$1$1(function(){return arguments}()),tryGet$1=function(e,t){try{return e[t]}catch(e){}},classof$4$1=TO_STRING_TAG_SUPPORT$1?classofRaw$1$1:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet$1(e=$Object$1$1(e),TO_STRING_TAG$1$1))?t:CORRECT_ARGUMENTS$1?classofRaw$1$1(e):"Object"==(t=classofRaw$1$1(e))&&isCallable$8$1(e.callee)?"Arguments":t},uncurryThis$5$1=functionUncurryThis$1,fails$5$1=fails$e,isCallable$7$1=isCallable$k,classof$3$1=classof$4$1,inspectSource$1$1=inspectSource$3$1,noop$1=function(){},empty$1=[],construct$1=getBuiltIn$7$1("Reflect","construct"),constructorRegExp$1=/^\s*(?:class|function)\b/,exec$1=uncurryThis$5$1(constructorRegExp$1.exec),INCORRECT_TO_STRING$1=!constructorRegExp$1.exec(noop$1),isConstructorModern$1=function(e){if(!isCallable$7$1(e))return!1;try{return construct$1(noop$1,empty$1,e),!0}catch(e){return!1}},isConstructorLegacy$1=function(e){if(!isCallable$7$1(e))return!1;switch(classof$3$1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$1||!!exec$1(constructorRegExp$1,inspectSource$1$1(e))}catch(e){return!0}},isConstructor$1$1=(isConstructorLegacy$1.sham=!0,!construct$1||fails$5$1(function(){var e;return isConstructorModern$1(isConstructorModern$1.call)||!isConstructorModern$1(Object)||!isConstructorModern$1(function(){e=!0})||e})?isConstructorLegacy$1:isConstructorModern$1),isConstructor$2=isConstructor$1$1,tryToString$2$1=tryToString$4$1,$TypeError$5$1=TypeError,aConstructor$1$1=function(e){if(isConstructor$2(e))return e;throw $TypeError$5$1(tryToString$2$1(e)+" is not a constructor")},anObject$6$1=anObject$a,aConstructor$2=aConstructor$1$1,isNullOrUndefined$1$1=isNullOrUndefined$4$1,SPECIES$1$1=wellKnownSymbol$g("species"),speciesConstructor$1$1=function(e,t){return void 0===(e=anObject$6$1(e).constructor)||isNullOrUndefined$1$1(e=anObject$6$1(e)[SPECIES$1$1])?t:aConstructor$2(e)},NATIVE_BIND$1$1=functionBindNative$1,FunctionPrototype$3=Function.prototype,apply$1$1=FunctionPrototype$3.apply,call$9$1=FunctionPrototype$3.call,functionApply$1="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1$1?call$9$1.bind(apply$1$1):function(){return call$9$1.apply(apply$1$1,arguments)}),classofRaw$3=classofRaw$2$1,uncurryThis$4$1=functionUncurryThis$1,functionUncurryThisClause$1=function(e){if("Function"===classofRaw$3(e))return uncurryThis$4$1(e)},aCallable$5$1=aCallable$8$1,NATIVE_BIND$4=functionBindNative$1,bind$4$1=functionUncurryThisClause$1(functionUncurryThisClause$1.bind),functionBindContext$1=function(e,t){return aCallable$5$1(e),void 0===t?e:NATIVE_BIND$4?bind$4$1(e,t):function(){return e.apply(t,arguments)}},html$2=getBuiltIn$7$1("document","documentElement"),arraySlice$1$1=functionUncurryThis$1([].slice),$TypeError$4$1=TypeError,validateArgumentsLength$1$1=function(e,t){if(e<t)throw $TypeError$4$1("Not enough arguments");return e},userAgent$2$1=engineUserAgent$1,engineIsIos$1=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2$1),global$6$1=global$g,apply$2=functionApply$1,bind$3$1=functionBindContext$1,isCallable$6$1=isCallable$k,hasOwn$1$1=hasOwnProperty_1$1,fails$4$1=fails$e,html$1$1=html$2,arraySlice$2=arraySlice$1$1,createElement$2=documentCreateElement$2,validateArgumentsLength$2=validateArgumentsLength$1$1,IS_IOS$1$1=engineIsIos$1,IS_NODE$3$1=engineIsNode$1,set$2=global$6$1.setImmediate,clear$1=global$6$1.clearImmediate,process$3$1=global$6$1.process,Dispatch$1=global$6$1.Dispatch,Function$1$1=global$6$1.Function,MessageChannel$2=global$6$1.MessageChannel,String$1$1=global$6$1.String,counter$1=0,queue$2$1={},ONREADYSTATECHANGE$1="onreadystatechange",run$1=(fails$4$1(function(){$location$1=global$6$1.location}),function(e){var t;hasOwn$1$1(queue$2$1,e)&&(t=queue$2$1[e],delete queue$2$1[e],t())}),runner$1=function(e){return function(){run$1(e)}},eventListener$1=function(e){run$1(e.data)},globalPostMessageDefer$1=function(e){global$6$1.postMessage(String$1$1(e),$location$1.protocol+"//"+$location$1.host)},task$1$1=(set$2&&clear$1||(set$2=function(e){validateArgumentsLength$2(arguments.length,1);var t=isCallable$6$1(e)?e:Function$1$1(e),n=arraySlice$2(arguments,1);return queue$2$1[++counter$1]=function(){apply$2(t,void 0,n)},defer$1(counter$1),counter$1},clear$1=function(e){delete queue$2$1[e]},IS_NODE$3$1?defer$1=function(e){process$3$1.nextTick(runner$1(e))}:Dispatch$1&&Dispatch$1.now?defer$1=function(e){Dispatch$1.now(runner$1(e))}:MessageChannel$2&&!IS_IOS$1$1?(port$1=(channel$1=new MessageChannel$2).port2,channel$1.port1.onmessage=eventListener$1,defer$1=bind$3$1(port$1.postMessage,port$1)):global$6$1.addEventListener&&isCallable$6$1(global$6$1.postMessage)&&!global$6$1.importScripts&&$location$1&&"file:"!==$location$1.protocol&&!fails$4$1(globalPostMessageDefer$1)?(defer$1=globalPostMessageDefer$1,global$6$1.addEventListener("message",eventListener$1,!1)):defer$1=ONREADYSTATECHANGE$1 in createElement$2("script")?function(e){html$1$1.appendChild(createElement$2("script"))[ONREADYSTATECHANGE$1]=function(){html$1$1.removeChild(this),run$1(e)}}:function(e){setTimeout(runner$1(e),0)}),{set:set$2,clear:clear$1}),Queue$2$1=function(){this.head=null,this.tail=null},queue$1$1=(Queue$2$1.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},Queue$2$1),userAgent$1$1=engineUserAgent$1,engineIsIosPebble$1=/ipad|iphone|ipod/i.test(userAgent$1$1)&&"undefined"!=typeof Pebble,userAgent$4=engineUserAgent$1,engineIsWebosWebkit$1=/web0s(?!.*chrome)/i.test(userAgent$4),global$5$1=global$g,bind$2$1=functionBindContext$1,getOwnPropertyDescriptor$3=objectGetOwnPropertyDescriptor$1.f,macrotask$1=task$1$1.set,Queue$1$1=queue$1$1,IS_IOS$2=engineIsIos$1,IS_IOS_PEBBLE$1=engineIsIosPebble$1,IS_WEBOS_WEBKIT$1=engineIsWebosWebkit$1,IS_NODE$2$1=engineIsNode$1,MutationObserver$1=global$5$1.MutationObserver||global$5$1.WebKitMutationObserver,document$2$1=global$5$1.document,process$2$1=global$5$1.process,Promise$1$1=global$5$1.Promise,queueMicrotaskDescriptor$1=getOwnPropertyDescriptor$3(global$5$1,"queueMicrotask"),microtask$1$1=queueMicrotaskDescriptor$1&&queueMicrotaskDescriptor$1.value,microtask_1$1=(microtask$1$1||(queue$3=new Queue$1$1,flush$1=function(){var e,t;for(IS_NODE$2$1&&(e=process$2$1.domain)&&e.exit();t=queue$3.get();)try{t()}catch(e){throw queue$3.head&&notify$1$1(),e}e&&e.enter()},notify$1$1=IS_IOS$2||IS_NODE$2$1||IS_WEBOS_WEBKIT$1||!MutationObserver$1||!document$2$1?!IS_IOS_PEBBLE$1&&Promise$1$1&&Promise$1$1.resolve?((promise$1=Promise$1$1.resolve(void 0)).constructor=Promise$1$1,then$1=bind$2$1(promise$1.then,promise$1),function(){then$1(flush$1)}):IS_NODE$2$1?function(){process$2$1.nextTick(flush$1)}:(macrotask$1=bind$2$1(macrotask$1,global$5$1),function(){macrotask$1(flush$1)}):(toggle$1=!0,node$1=document$2$1.createTextNode(""),new MutationObserver$1(flush$1).observe(node$1,{characterData:!0}),function(){node$1.data=toggle$1=!toggle$1}),microtask$1$1=function(e){queue$3.head||notify$1$1(),queue$3.add(e)}),microtask$1$1),hostReportErrors$1$1=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},perform$3$1=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},promiseNativeConstructor$1=global$g.Promise,engineIsDeno$1="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,engineIsBrowser$1=!engineIsDeno$1&&!engineIsNode$1&&"object"==typeof window&&"object"==typeof document,global$3$1=global$g,NativePromiseConstructor$3$1=promiseNativeConstructor$1,isCallable$5$1=isCallable$k,isForced$3=isForced_1$1,inspectSource$4=inspectSource$3$1,wellKnownSymbol$9$1=wellKnownSymbol$g,IS_BROWSER$1=engineIsBrowser$1,IS_DENO$2=engineIsDeno$1,V8_VERSION$2=engineV8Version$1,SPECIES$3=(NativePromiseConstructor$3$1&&NativePromiseConstructor$3$1.prototype,wellKnownSymbol$9$1("species")),SUBCLASSING$1=!1,NATIVE_PROMISE_REJECTION_EVENT$1$1=isCallable$5$1(global$3$1.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5$1=isForced$3("Promise",function(){var e=inspectSource$4(NativePromiseConstructor$3$1),t=e!==String(NativePromiseConstructor$3$1);if(!t&&66===V8_VERSION$2)return!0;if(!V8_VERSION$2||V8_VERSION$2<51||!/native code/.test(e)){function n(e){e(function(){},function(){})}if(((e=new NativePromiseConstructor$3$1(function(e){e(1)})).constructor={})[SPECIES$3]=n,!(SUBCLASSING$1=e.then(function(){})instanceof n))return!0}return!t&&(IS_BROWSER$1||IS_DENO$2)&&!NATIVE_PROMISE_REJECTION_EVENT$1$1}),promiseConstructorDetection$1={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$1,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$1,SUBCLASSING:SUBCLASSING$1},newPromiseCapability$2$1={},aCallable$4$1=aCallable$8$1,$TypeError$3$1=TypeError,PromiseCapability$1=function(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw $TypeError$3$1("Bad Promise constructor");n=e,r=t}),this.resolve=aCallable$4$1(n),this.reject=aCallable$4$1(r)},$$9=(newPromiseCapability$2$1.f=function(e){return new PromiseCapability$1(e)},_export$1),IS_NODE$4=engineIsNode$1,global$2$1=global$g,call$8$1=functionCall$1,defineBuiltIn$3$1=defineBuiltIn$5,setPrototypeOf$1=objectSetPrototypeOf$1,setToStringTag$2=setToStringTag$3,setSpecies$2=setSpecies$1$1,aCallable$3$1=aCallable$8$1,isCallable$4$1=isCallable$k,isObject$3$1=isObject$9,anInstance$2=anInstance$1$1,speciesConstructor$2=speciesConstructor$1$1,task$2=task$1$1.set,microtask$2=microtask_1$1,hostReportErrors$2=hostReportErrors$1$1,perform$2$1=perform$3$1,Queue$3=queue$1$1,InternalStateModule$1$1=internalState$1,NativePromiseConstructor$2$1=promiseNativeConstructor$1,PromiseConstructorDetection$1=promiseConstructorDetection$1,newPromiseCapabilityModule$3$1=newPromiseCapability$2$1,PROMISE$1="Promise",FORCED_PROMISE_CONSTRUCTOR$4$1=PromiseConstructorDetection$1.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$2=PromiseConstructorDetection$1.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$1=PromiseConstructorDetection$1.SUBCLASSING,getInternalPromiseState$1=InternalStateModule$1$1.getterFor(PROMISE$1),setInternalState$1=InternalStateModule$1$1.set,NativePromisePrototype$1$1=NativePromiseConstructor$2$1&&NativePromiseConstructor$2$1.prototype,PromiseConstructor$1=NativePromiseConstructor$2$1,PromisePrototype$1=NativePromisePrototype$1$1,TypeError$1$1=global$2$1.TypeError,document$1$1=global$2$1.document,process$1$1=global$2$1.process,newPromiseCapability$1$1=newPromiseCapabilityModule$3$1.f,newGenericPromiseCapability$1=newPromiseCapability$1$1,DISPATCH_EVENT$1=!!(document$1$1&&document$1$1.createEvent&&global$2$1.dispatchEvent),UNHANDLED_REJECTION$1="unhandledrejection",REJECTION_HANDLED$1="rejectionhandled",PENDING$1=0,FULFILLED$1=1,REJECTED$1=2,HANDLED$1=1,UNHANDLED$1=2,isThenable$1=function(e){var t;return!(!isObject$3$1(e)||!isCallable$4$1(t=e.then))&&t},callReaction$1=function(e,t){var n,r,i,o=t.value,a=t.state==FULFILLED$1,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(t.rejection===UNHANDLED$1&&onHandleUnhandled$1(t),t.rejection=HANDLED$1),!0===s?n=o:(u&&u.enter(),n=s(o),u&&(u.exit(),i=!0)),n===e.promise?c(TypeError$1$1("Promise-chain cycle")):(r=isThenable$1(n))?call$8$1(r,n,l,c):l(n)):c(o)}catch(e){u&&!i&&u.exit(),c(e)}},notify$2=function(n,r){n.notified||(n.notified=!0,microtask$2(function(){for(var e,t=n.reactions;e=t.get();)callReaction$1(e,n);n.notified=!1,r&&!n.rejection&&onUnhandled$1(n)}))},dispatchEvent$1=function(e,t,n){var r;DISPATCH_EVENT$1?((r=document$1$1.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),global$2$1.dispatchEvent(r)):r={promise:t,reason:n},!NATIVE_PROMISE_REJECTION_EVENT$2&&(t=global$2$1["on"+e])?t(r):e===UNHANDLED_REJECTION$1&&hostReportErrors$2("Unhandled promise rejection",n)},onUnhandled$1=function(r){call$8$1(task$2,global$2$1,function(){var e=r.facade,t=r.value,n=isUnhandled$1(r);if(n&&(n=perform$2$1(function(){IS_NODE$4?process$1$1.emit("unhandledRejection",t,e):dispatchEvent$1(UNHANDLED_REJECTION$1,e,t)}),r.rejection=IS_NODE$4||isUnhandled$1(r)?UNHANDLED$1:HANDLED$1,n.error))throw n.value})},isUnhandled$1=function(e){return e.rejection!==HANDLED$1&&!e.parent},onHandleUnhandled$1=function(t){call$8$1(task$2,global$2$1,function(){var e=t.facade;IS_NODE$4?process$1$1.emit("rejectionHandled",e):dispatchEvent$1(REJECTION_HANDLED$1,e,t.value)})},bind$1$1=function(t,n,r){return function(e){t(n,e,r)}},internalReject$1=function(e,t,n){e.done||(e.done=!0,(e=n||e).value=t,e.state=REJECTED$1,notify$2(e,!0))},internalResolve$1=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw TypeError$1$1("Promise can't be resolved itself");var r=isThenable$1(e);r?microtask$2(function(){var t={done:!1};try{call$8$1(r,e,bind$1$1(internalResolve$1,t,n),bind$1$1(internalReject$1,t,n))}catch(e){internalReject$1(t,e,n)}}):(n.value=e,n.state=FULFILLED$1,notify$2(n,!1))}catch(e){internalReject$1({done:!1},e,n)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$1&&(PromisePrototype$1=(PromiseConstructor$1=function(e){anInstance$2(this,PromisePrototype$1),aCallable$3$1(e),call$8$1(Internal$1,this);var t=getInternalPromiseState$1(this);try{e(bind$1$1(internalResolve$1,t),bind$1$1(internalReject$1,t))}catch(e){internalReject$1(t,e)}}).prototype,(Internal$1=function(e){setInternalState$1(this,{type:PROMISE$1,done:!1,notified:!1,parent:!1,reactions:new Queue$3,rejection:!1,state:PENDING$1,value:void 0})}).prototype=defineBuiltIn$3$1(PromisePrototype$1,"then",function(e,t){var n=getInternalPromiseState$1(this),r=newPromiseCapability$1$1(speciesConstructor$2(this,PromiseConstructor$1));return n.parent=!0,r.ok=!isCallable$4$1(e)||e,r.fail=isCallable$4$1(t)&&t,r.domain=IS_NODE$4?process$1$1.domain:void 0,n.state==PENDING$1?n.reactions.add(r):microtask$2(function(){callReaction$1(r,n)}),r.promise}),OwnPromiseCapability$1=function(){var e=new Internal$1,t=getInternalPromiseState$1(e);this.promise=e,this.resolve=bind$1$1(internalResolve$1,t),this.reject=bind$1$1(internalReject$1,t)},newPromiseCapabilityModule$3$1.f=newPromiseCapability$1$1=function(e){return e===PromiseConstructor$1||e===PromiseWrapper$1?new OwnPromiseCapability$1(e):newGenericPromiseCapability$1(e)},isCallable$4$1(NativePromiseConstructor$2$1))&&NativePromisePrototype$1$1!==Object.prototype){nativeThen$1=NativePromisePrototype$1$1.then,NATIVE_PROMISE_SUBCLASSING$1||defineBuiltIn$3$1(NativePromisePrototype$1$1,"then",function(e,t){var n=this;return new PromiseConstructor$1(function(e,t){call$8$1(nativeThen$1,n,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1$1.constructor}catch(e){}setPrototypeOf$1&&setPrototypeOf$1(NativePromisePrototype$1$1,PromisePrototype$1)}$$9({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$1},{Promise:PromiseConstructor$1}),setToStringTag$2(PromiseConstructor$1,PROMISE$1,!1),setSpecies$2(PROMISE$1);var iterators$1={},Iterators$4=iterators$1,ITERATOR$5=wellKnownSymbol$g("iterator"),ArrayPrototype$1=Array.prototype,isArrayIteratorMethod$1$1=function(e){return void 0!==e&&(Iterators$4.Array===e||ArrayPrototype$1[ITERATOR$5]===e)},classof$2$1=classof$4$1,getMethod$1$1=getMethod$3$1,isNullOrUndefined$5=isNullOrUndefined$4$1,Iterators$3=iterators$1,ITERATOR$4=wellKnownSymbol$g("iterator"),getIteratorMethod$2$1=function(e){if(!isNullOrUndefined$5(e))return getMethod$1$1(e,ITERATOR$4)||getMethod$1$1(e,"@@iterator")||Iterators$3[classof$2$1(e)]},call$7$1=functionCall$1,aCallable$2$1=aCallable$8$1,anObject$5$1=anObject$a,tryToString$1$1=tryToString$4$1,getIteratorMethod$1$1=getIteratorMethod$2$1,$TypeError$2$1=TypeError,getIterator$1$1=function(e,t){var n=arguments.length<2?getIteratorMethod$1$1(e):t;if(aCallable$2$1(n))return anObject$5$1(call$7$1(n,e));throw $TypeError$2$1(tryToString$1$1(e)+" is not iterable")},call$6$1=functionCall$1,anObject$4$1=anObject$a,getMethod$4=getMethod$3$1,iteratorClose$1$1=function(e,t,n){var r,i;anObject$4$1(e);try{if(!(r=getMethod$4(e,"return"))){if("throw"===t)throw n;return n}r=call$6$1(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return anObject$4$1(r),n},bind$5=functionBindContext$1,call$5$1=functionCall$1,anObject$3$1=anObject$a,tryToString$5=tryToString$4$1,isArrayIteratorMethod$2=isArrayIteratorMethod$1$1,lengthOfArrayLike$3=lengthOfArrayLike$2$1,isPrototypeOf$3=objectIsPrototypeOf$1,getIterator$2=getIterator$1$1,getIteratorMethod$3=getIteratorMethod$2$1,iteratorClose$2=iteratorClose$1$1,$TypeError$1$1=TypeError,Result$1=function(e,t){this.stopped=e,this.result=t},ResultPrototype$1=Result$1.prototype,iterate$2$1=function(e,t,n){function r(e){return o&&iteratorClose$2(o,"normal",e),new Result$1(!0,e)}function i(e){return p?(anObject$3$1(e),m?g(e[0],e[1],r):g(e[0],e[1])):m?g(e,r):g(e)}var o,a,s,l,c,u,d=n&&n.that,p=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),g=bind$5(t,d);if(f)o=e.iterator;else if(h)o=e;else{if(!(n=getIteratorMethod$3(e)))throw $TypeError$1$1(tryToString$5(e)+" is not iterable");if(isArrayIteratorMethod$2(n)){for(a=0,s=lengthOfArrayLike$3(e);a<s;a++)if((l=i(e[a]))&&isPrototypeOf$3(ResultPrototype$1,l))return l;return new Result$1(!1)}o=getIterator$2(e,n)}for(c=(f?e:o).next;!(u=call$5$1(c,o)).done;){try{l=i(u.value)}catch(e){iteratorClose$2(o,"throw",e)}if("object"==typeof l&&l&&isPrototypeOf$3(ResultPrototype$1,l))return l}return new Result$1(!1)},ITERATOR$3=wellKnownSymbol$g("iterator"),SAFE_CLOSING$1=!1;try{var called$1=0,iteratorWithReturn$1={next:function(){return{done:!!called$1++}},return:function(){SAFE_CLOSING$1=!0}};iteratorWithReturn$1[ITERATOR$3]=function(){return this},Array.from(iteratorWithReturn$1,function(){throw 2})}catch(e){}var method$1,activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,checkCorrectnessOfIteration$1$1=function(e,t){if(!t&&!SAFE_CLOSING$1)return!1;var n=!1;try{var r={};r[ITERATOR$3]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},NativePromiseConstructor$1$1=promiseNativeConstructor$1,checkCorrectnessOfIteration$2=checkCorrectnessOfIteration$1$1,FORCED_PROMISE_CONSTRUCTOR$3$1=promiseConstructorDetection$1.CONSTRUCTOR,promiseStaticsIncorrectIteration$1=FORCED_PROMISE_CONSTRUCTOR$3$1||!checkCorrectnessOfIteration$2(function(e){NativePromiseConstructor$1$1.all(e).then(void 0,function(){})}),call$4$1=functionCall$1,aCallable$1$1=aCallable$8$1,newPromiseCapabilityModule$2$1=newPromiseCapability$2$1,perform$1$1=perform$3$1,iterate$1$1=iterate$2$1,$$7=(_export$1({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration$1},{all:function(e){var s=this,t=newPromiseCapabilityModule$2$1.f(s),l=t.resolve,c=t.reject,n=perform$1$1(function(){var r=aCallable$1$1(s.resolve),i=[],o=0,a=1;iterate$1$1(e,function(e){var t=o++,n=!1;a++,call$4$1(r,s,e).then(function(e){n||(n=!0,i[t]=e,--a)||l(i)},c)}),--a||l(i)});return n.error&&c(n.value),t.promise}}),_export$1),FORCED_PROMISE_CONSTRUCTOR$2$1=promiseConstructorDetection$1.CONSTRUCTOR,NativePromiseConstructor$4=promiseNativeConstructor$1,getBuiltIn$1$1=getBuiltIn$7$1,isCallable$3$1=isCallable$k,defineBuiltIn$2$1=defineBuiltIn$5,NativePromisePrototype$2=NativePromiseConstructor$4&&NativePromiseConstructor$4.prototype,call$3$1=($$7({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$1,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable$3$1(NativePromiseConstructor$4)&&(method$1=getBuiltIn$1$1("Promise").prototype.catch,NativePromisePrototype$2.catch!==method$1)&&defineBuiltIn$2$1(NativePromisePrototype$2,"catch",method$1,{unsafe:!0}),functionCall$1),aCallable$9=aCallable$8$1,newPromiseCapabilityModule$1$1=newPromiseCapability$2$1,perform$4=perform$3$1,iterate$3=iterate$2$1,$$5$1=(_export$1({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration$1},{race:function(e){var n=this,r=newPromiseCapabilityModule$1$1.f(n),i=r.reject,t=perform$4(function(){var t=aCallable$9(n.resolve);iterate$3(e,function(e){call$3$1(t,n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}}),_export$1),call$2$1=functionCall$1,newPromiseCapabilityModule$4=newPromiseCapability$2$1,FORCED_PROMISE_CONSTRUCTOR$1$1=promiseConstructorDetection$1.CONSTRUCTOR,anObject$2$1=($$5$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$1},{reject:function(e){var t=newPromiseCapabilityModule$4.f(this);return call$2$1(t.reject,void 0,e),t.promise}}),anObject$a),isObject$2$1=isObject$9,newPromiseCapability$3=newPromiseCapability$2$1,promiseResolve$1$1=function(e,t){return anObject$2$1(e),isObject$2$1(t)&&t.constructor===e?t:((0,(e=newPromiseCapability$3.f(e)).resolve)(t),e.promise)},$$4$1=_export$1,getBuiltIn$8=getBuiltIn$7$1,FORCED_PROMISE_CONSTRUCTOR$6=promiseConstructorDetection$1.CONSTRUCTOR,promiseResolve$2=promiseResolve$1$1,objectDefineProperties=(getBuiltIn$8("Promise"),$$4$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$6},{resolve:function(e){return promiseResolve$2(this,e)}}),{}),internalObjectKeys$2=objectKeysInternal$1,enumBugKeys$1$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys$2(e,enumBugKeys$1$1)},DESCRIPTORS$2$1=descriptors$1,V8_PROTOTYPE_DEFINE_BUG$2=v8PrototypeDefineBug$1,definePropertyModule$4=objectDefineProperty$1,anObject$1$1=anObject$a,toIndexedObject$1$1=toIndexedObject$5,objectKeys$1=objectKeys$2,anObject$b=(objectDefineProperties.f=DESCRIPTORS$2$1&&!V8_PROTOTYPE_DEFINE_BUG$2?Object.defineProperties:function(e,t){anObject$1$1(e);for(var n,r=toIndexedObject$1$1(t),i=objectKeys$1(t),o=i.length,a=0;a<o;)definePropertyModule$4.f(e,n=i[a++],r[n]);return e},anObject$a),definePropertiesModule=objectDefineProperties,enumBugKeys$2=enumBugKeys$3,hiddenKeys$5=hiddenKeys$4,html$3=html$2,documentCreateElement$1=documentCreateElement$2,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html$3.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys$2.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys$2[e]];return NullProtoObject()},objectCreate=(hiddenKeys$5[IE_PROTO$1]=!0,Object.create||function(e,t){var n;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$b(e),n=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,n[IE_PROTO$1]=e):n=NullProtoObject(),void 0===t?n:definePropertiesModule.f(n,t)}),wellKnownSymbol$5$1=wellKnownSymbol$g,create$1=objectCreate,defineProperty$2$1=objectDefineProperty$1.f,UNSCOPABLES=wellKnownSymbol$5$1("unscopables"),ArrayPrototype$2=Array.prototype,addToUnscopables$2=(null==ArrayPrototype$2[UNSCOPABLES]&&defineProperty$2$1(ArrayPrototype$2,UNSCOPABLES,{configurable:!0,value:create$1(null)}),function(e){ArrayPrototype$2[UNSCOPABLES][e]=!0}),correctPrototypeGetter=!fails$e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$a=hasOwnProperty_1$1,isCallable$2$1=isCallable$k,toObject$1$1=toObject$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object$5=Object,ObjectPrototype=$Object$5.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object$5.getPrototypeOf:function(e){var t,e=toObject$1$1(e);return hasOwn$a(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$2$1(t)&&e instanceof t?t.prototype:e instanceof $Object$5?ObjectPrototype:null)},fails$2$1=fails$e,isCallable$1$1=isCallable$k,isObject$1$1=isObject$9,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$1$1=defineBuiltIn$5,ITERATOR$2$1=wellKnownSymbol$g("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,NEW_ITERATOR_PROTOTYPE=([].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0),!isObject$1$1(IteratorPrototype$2)||fails$2$1(function(){var e={};return IteratorPrototype$2[ITERATOR$2$1].call(e)!==e})),iteratorsCore=(isCallable$1$1((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$2$1])||defineBuiltIn$1$1(IteratorPrototype$2,ITERATOR$2$1,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),IteratorPrototype$1=iteratorsCore.IteratorPrototype,create=objectCreate,createPropertyDescriptor$4=createPropertyDescriptor$3,setToStringTag$1$1=setToStringTag$3,Iterators$2=iterators$1,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,n,r){return t+=" Iterator",e.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor$4(+!r,n)}),setToStringTag$1$1(e,t,!1),Iterators$2[t]=returnThis$1,e},$$3$1=_export$1,call$1$1=functionCall$1,FunctionName=functionName$1,isCallable$l=isCallable$k,createIteratorConstructor=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$2=objectSetPrototypeOf$1,setToStringTag$4=setToStringTag$3,createNonEnumerableProperty$1$1=createNonEnumerableProperty$4,defineBuiltIn$6=defineBuiltIn$5,wellKnownSymbol$3$1=wellKnownSymbol$g,Iterators$1$1=iterators$1,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME$2=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$1$1=wellKnownSymbol$3$1("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,n,r,i,o,a){function s(e){if(e===i&&f)return f;if(!BUGGY_SAFARI_ITERATORS&&e in d)return d[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new n(this,e)}}return function(){return new n(this)}}createIteratorConstructor(n,t,r);var l,c,r=t+" Iterator",u=!1,d=e.prototype,p=d[ITERATOR$1$1]||d["@@iterator"]||i&&d[i],f=!BUGGY_SAFARI_ITERATORS&&p||s(i),h="Array"==t&&d.entries||p;if(h&&(h=getPrototypeOf(h.call(new e)))!==Object.prototype&&h.next&&(getPrototypeOf(h)!==IteratorPrototype&&(setPrototypeOf$2?setPrototypeOf$2(h,IteratorPrototype):isCallable$l(h[ITERATOR$1$1])||defineBuiltIn$6(h,ITERATOR$1$1,returnThis)),setToStringTag$4(h,r,!0)),PROPER_FUNCTION_NAME&&i==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME$2?createNonEnumerableProperty$1$1(d,"name",VALUES):(u=!0,f=function(){return call$1$1(p,this)})),i)if(l={values:s(VALUES),keys:o?f:s(KEYS),entries:s(ENTRIES)},a)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in d||defineBuiltIn$6(d,c,l[c]);else $$3$1({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return d[ITERATOR$1$1]!==f&&defineBuiltIn$6(d,ITERATOR$1$1,f,{name:i}),Iterators$1$1[t]=f,l},createIterResultObject$1=function(e,t){return{value:e,done:t}},toIndexedObject$6=toIndexedObject$5,addToUnscopables$1=addToUnscopables$2,Iterators$5=iterators$1,InternalStateModule$3=internalState$1,defineProperty$1$1=objectDefineProperty$1.f,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$1,DESCRIPTORS$1$1=descriptors$1,ARRAY_ITERATOR="Array Iterator",setInternalState$2=InternalStateModule$3.set,getInternalState$2=InternalStateModule$3.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState$2(this,{type:ARRAY_ITERATOR,target:toIndexedObject$6(e),index:0,kind:t})},function(){var e=getInternalState$2(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,createIterResultObject(void 0,!0)):createIterResultObject("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)},"values"),values=Iterators$5.Arguments=Iterators$5.Array;if(addToUnscopables$1("keys"),addToUnscopables$1("values"),addToUnscopables$1("entries"),DESCRIPTORS$1$1&&"values"!==values.name)try{defineProperty$1$1(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$1$1=global$g,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty$5=createNonEnumerableProperty$4,wellKnownSymbol$2$1=wellKnownSymbol$g,ITERATOR$6=wellKnownSymbol$2$1("iterator"),TO_STRING_TAG$4=wellKnownSymbol$2$1("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(e,t){if(e){if(e[ITERATOR$6]!==ArrayValues)try{createNonEnumerableProperty$5(e,ITERATOR$6,ArrayValues)}catch(t){e[ITERATOR$6]=ArrayValues}if(e[TO_STRING_TAG$4]||createNonEnumerableProperty$5(e,TO_STRING_TAG$4,t),DOMIterables[t])for(var n in ArrayIteratorMethods)if(e[n]!==ArrayIteratorMethods[n])try{createNonEnumerableProperty$5(e,n,ArrayIteratorMethods[n])}catch(t){e[n]=ArrayIteratorMethods[n]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$1$1[COLLECTION_NAME]&&global$1$1[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var react={exports:{}},react_production_min={},l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(e){return null!==e&&"object"==typeof e&&"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(e,t,n){this.props=e,this.context=t,this.refs=D,this.updater=n||B}function F(){}function G(e,t,n){this.props=e,this.context=t,this.refs=D,this.updater=n||B}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},F.prototype=E.prototype;var H=G.prototype=new F,I=(H.constructor=G,C(H,E.prototype),H.isPureReactComponent=!0,Array.isArray),J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var r,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)J.call(t,r)&&!L.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:l,type:e,key:o,ref:a,props:i,_owner:K.current}}function N(e,t){return{$$typeof:l,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}function escape$1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}var P=/\/+/g;function Q(e,t){return"object"==typeof e&&null!==e&&null!=e.key?escape$1(""+e.key):t.toString(36)}function R(e,t,r,i,o){var a=!1;if(null===(e="undefined"!=(c=typeof e)&&"boolean"!==c?e:null))a=!0;else switch(c){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case l:case n:a=!0}}if(a)return o=o(a=e),e=""===i?"."+Q(a,0):i,I(o)?(r="",R(o,t,r=null!=e?e.replace(P,"$&/")+"/":r,"",function(e){return e})):null!=o&&(O(o)&&(o=N(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(P,"$&/")+"/")+e)),t.push(o)),1;if(a=0,i=""===i?".":i+":",I(e))for(var s=0;s<e.length;s++){var c,u=i+Q(c=e[s],s);a+=R(c,t,r,u,o)}else if("function"==typeof(u=A(e)))for(e=u.call(e),s=0;!(c=e.next()).done;)a+=R(c=c.value,t,r,u=i+Q(c,s++),o);else if("object"===c)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function S(e,t,n){var r;return null!=e&&(r=0,R(e,e=[],"","",function(e){return t.call(n,e,r++)})),e}function T(t){var e;if(-1===t._status&&((e=(e=t._result)()).then(function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)},function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)}),-1===t._status)&&(t._status=0,t._result=e),1===t._status)return t._result.default;throw t._result}var EMessageTypes,EFrameLinkEvents,U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};react_production_min.Children={map:S,forEach:function(e,t,n){S(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return S(e,function(){t++}),t},toArray:function(e){return S(e,function(e){return e})||[]},only:function(e){if(O(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},react_production_min.Component=E,react_production_min.Fragment=p,react_production_min.Profiler=r,react_production_min.PureComponent=G,react_production_min.StrictMode=q,react_production_min.Suspense=w,react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,react_production_min.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=C({},e.props),i=e.key,o=e.ref,a=e._owner;if(null!=t)for(s in void 0!==t.ref&&(o=t.ref,a=K.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)J.call(t,s)&&!L.hasOwnProperty(s)&&(r[s]=(void 0===t[s]&&void 0!==c?c:t)[s]);var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];r.children=c}return{$$typeof:l,type:e.type,key:i,ref:o,props:r,_owner:a}},react_production_min.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:t,_context:e},e.Consumer=e},react_production_min.createElement=M,react_production_min.createFactory=function(e){var t=M.bind(null,e);return t.type=e,t},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(e){return{$$typeof:v,render:e}},react_production_min.isValidElement=O,react_production_min.lazy=function(e){return{$$typeof:y,_payload:{_status:-1,_result:e},_init:T}},react_production_min.memo=function(e,t){return{$$typeof:x,type:e,compare:void 0===t?null:t}},react_production_min.startTransition=function(e){var t=V.transition;V.transition={};try{e()}finally{V.transition=t}},react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},react_production_min.useCallback=function(e,t){return U.current.useCallback(e,t)},react_production_min.useContext=function(e){return U.current.useContext(e)},react_production_min.useDebugValue=function(){},react_production_min.useDeferredValue=function(e){return U.current.useDeferredValue(e)},react_production_min.useEffect=function(e,t){return U.current.useEffect(e,t)},react_production_min.useId=function(){return U.current.useId()},react_production_min.useImperativeHandle=function(e,t,n){return U.current.useImperativeHandle(e,t,n)},react_production_min.useInsertionEffect=function(e,t){return U.current.useInsertionEffect(e,t)},react_production_min.useLayoutEffect=function(e,t){return U.current.useLayoutEffect(e,t)},react_production_min.useMemo=function(e,t){return U.current.useMemo(e,t)},react_production_min.useReducer=function(e,t,n){return U.current.useReducer(e,t,n)},react_production_min.useRef=function(e){return U.current.useRef(e)},react_production_min.useState=function(e){return U.current.useState(e)},react_production_min.useSyncExternalStore=function(e,t,n){return U.current.useSyncExternalStore(e,t,n)},react_production_min.useTransition=function(){return U.current.useTransition()},react_production_min.version="18.2.0",react.exports=react_production_min,react.exports.createContext({});const filePicker=(e,t)=>window.aiware.mountPanel({panelId:"DATA_CENTER_IMPORTER",microFrontend:{name:"DATA_CENTER_IMPORTER",config:{requestId:e,frameLink:t}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:document.querySelector("#VERITONE_PANEL_ID")?80:0,size:"large",zIndex:1e3}}),errors={childCantSend:{id:"aiware-desktop.frame-link.child-cannot-send",defaultMessage:"Child frame cannot send this type of message",description:"Child frame is not allowed to send this type of message"},parentCantSend:{id:"aiware-desktop.frame-link.parent-cannot-send",defaultMessage:"Desktop App cannot send this type of message to child frame",description:"Desktop App is not allowed to send this type of message"},childAppNotResponding:{id:"aiware-desktop.frame-link.child-heartbeat-check-failed",defaultMessage:"Child frame appears to be frozen",description:"Child app failed to send a heartbeat to report healthy status"},unsupportedUtility:{id:"aiware-desktop.frame-link.unsupported-utility",defaultMessage:"Cannot find the requested utility",description:"Error when child app is requesting a use of unsupported utility"},operationCancelled:{id:"aiware-desktop.frame-link.operation-cancelled",defaultMessage:"Operation cancelled",description:"Error message when the operation requested by child frame is cancelled"}};!function(e){e.getInitContext="getInitContext",e.initContext="initContext",e.updateContext="updateContext",e.reportActivity="reportActivity",e.response="response",e.utility="utility",e.error="error",e.heartbeat="heartbeat"}(EMessageTypes=EMessageTypes||{}),filePicker,(EFrameLinkEvents=EFrameLinkEvents||{}).init="init";var $$2$1=_export$1,$includes=arrayIncludes$1.includes,addToUnscopables=addToUnscopables$2,BROKEN_ON_SPARSE=fails$e(function(){return!Array(1).includes()}),isObject$a=($$2$1({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),addToUnscopables("includes"),isObject$9),classof$1$1=classofRaw$2$1,MATCH$1=wellKnownSymbol$g("match"),isRegexp=function(e){var t;return isObject$a(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$1$1(e))},isRegExp=isRegexp,$TypeError$e=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError$e("The method doesn't accept regular expressions");return e},classof$5=classof$4$1,$String$5=String,toString$1$1=function(e){if("Symbol"===classof$5(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$5(e)},MATCH=wellKnownSymbol$g("match"),correctIsRegexpLogic=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[MATCH]=!1,"/./"[t](n)}catch(e){}}return!1},$$1$1=_export$1,notARegExp=notARegexp,requireObjectCoercible$4=requireObjectCoercible$3,toString$4=toString$1$1,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=functionUncurryThis$1("".indexOf),DESCRIPTORS$8=($$1$1({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString$4(requireObjectCoercible$4(this)),toString$4(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}}),descriptors$1),uncurryThis$e=functionUncurryThis$1,call$f=functionCall$1,fails$c=fails$e,objectKeys=objectKeys$2,getOwnPropertySymbolsModule$2=objectGetOwnPropertySymbols$1,propertyIsEnumerableModule$2=objectPropertyIsEnumerable$1,toObject$4=toObject$3,IndexedObject$2=indexedObject$1,$assign=Object.assign,defineProperty$7=Object.defineProperty,concat$2=uncurryThis$e([].concat),objectAssign=!$assign||fails$c(function(){var e,t,n,r;return!(!DESCRIPTORS$8||1===$assign({b:1},$assign(defineProperty$7({},"a",{enumerable:!0,get:function(){defineProperty$7(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[n])||objectKeys($assign({},t)).join("")!=r})?function(e,t){for(var n=toObject$4(e),r=arguments.length,i=1,o=getOwnPropertySymbolsModule$2.f,a=propertyIsEnumerableModule$2.f;i<r;)for(var s,l=IndexedObject$2(arguments[i++]),c=o?concat$2(objectKeys(l),o(l)):objectKeys(l),u=c.length,d=0;d<u;)s=c[d++],DESCRIPTORS$8&&!call$f(a,l,s)||(n[s]=l[s]);return n}:$assign,assign=objectAssign;function __rest$1(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}function __awaiter$3(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())})}_export$1({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign});const useStyles$2$2=makeStyles()((e,{titleColor:t,logo:n,activeColor:r,onClickLogo:i},o)=>({appBar:{top:0,left:0,right:0,display:"flex",position:"fixed",boxShadow:"none",borderBottom:"0.5px solid "+e.palette.divider,["& ."+o.logo]:{cursor:"pointer","& img":{width:"100%",height:"100%",objectFit:"scale-down",userSelect:"none"}},backgroundColor:e.palette.background.default},menuButton:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0",marginLeft:e.spacing(5)},margin:{marginRight:e.spacing(.4),display:"flex",alignItems:"center"},barIcon:{padding:e.spacing(.8)},iconButton:{padding:0},hamburgerIcon:{padding:e.spacing(1.4),width:32,height:32,WebkitMask:`url("${img$1F}") no-repeat 50% 50%`,backgroundColor:t},appLogo:{display:"inline-block",width:150,height:32,backgroundImage:`url("${n}")`,backgroundRepeat:"no-repeat",backgroundPosition:"left center",cursor:i?"pointer":"default"},title:{fontStyle:"normal !important",fontWeight:600,fontSize:"18px !important",lineHeight:"22px !important",letterSpacing:"0.225px !important",mixBlendMode:"normal",textTransform:"uppercase",color:t+" important",whiteSpace:"nowrap","&:hover":{cursor:"pointer"}},content:{height:"100%",flexGrow:1,display:"flex",flexWrap:"nowrap",flexDirection:"row",alignItems:"center",padding:e.spacing(0,3.2),"& > div":{display:"flex",flexWrap:"nowrap",flexDirection:"row"},["& ."+o.left]:{justifyContent:"flex-start"},["& ."+o.right]:{justifyContent:"flex-end"},["& ."+o.searchBarHolder]:{flexGrow:1},["& ."+o.appLogo]:{userSelect:"none"},["& ."+o.controllers]:{display:"flex",alignItems:"center"}},iconGroup:{display:"flex",justifyContent:"space-between",alignItems:"center"},iconGroupIcon:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},rightActionLabel:{fontWeight:400,fontSize:14,lineHeight:"16px",textDecoration:"none",color:"white",cursor:"pointer",display:"block"},noSelect:{userSelect:"none"},active:{opacity:1},smallOrgAvatar:{width:"30px !important",height:"30px !important",fontSize:"16px !important"},passive:{opacity:.8},icon:{width:"40px !important",height:"40px !important",padding:0,backgroundPosition:"center",backgroundRepeat:"no-repeat"},logo:{},left:{},right:{},searchBarHolder:{},controllers:{},appIcon:{height:"32px",width:"32px",borderRadius:"50%",marginLeft:e.spacing(4.4),"&:hover":{cursor:"pointer"}},applicationIcon:{WebkitMask:`url("${img$17}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},veritoneLogo:{WebkitMask:`url("${img$1E}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openPanel:{backgroundImage:`url("${img$1i}") !important`},notificationIcon:{WebkitMask:`url("${img$9}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},applicationSettingsIcon:{WebkitMask:`url("${img$1x}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},dashboardIcon:{WebkitMask:`url("${img$b}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openNotificationPanel:{backgroundImage:`url(${img$1h}) !important`},orgIcon:{borderRadius:"50%",width:30,height:30,backgroundRepeat:"no-repeat",backgroundPosition:"center"},logoIcon:{WebkitMask:`url("${n}") no-repeat 50% 50%`,backgroundColor:t},helpIcon:{WebkitMask:`url("${img$a}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openHelp:{backgroundImage:`url(${img$1g}) !important`},orgButton:{padding:e.spacing(2)},panelActive:{borderRadius:"50%",backgroundColor:r},notificationBadge:{"& > span":{top:e.spacing(2),right:e.spacing(2)}},appBarSkeleton:{position:"absolute",zIndex:1005,height:55},marginRightSkeleton:{marginRight:e.spacing(4)},leftContainerSkeleton:{display:"flex",alignItems:"center",paddingLeft:e.spacing(5)}})),useStyles$1$2=makeStyles()((e,t,n)=>({popover:{marginTop:18,["& "+n.helpItemText]:{padding:e.spacing(0),fontSize:15},["& "+n.versionWrapper]:{padding:e.spacing(3.2,0),["& "+n.versionText]:{fontSize:12,color:"#757575"}}},helpItemText:{},versionWrapper:{},versionText:{},help:{},barIcon:{padding:e.spacing(.8)},icon:{width:"40px !important",height:"40px !important",padding:e.spacing(0),backgroundPosition:"center",backgroundRepeat:"no-repeat"},helpIcon:{WebkitMask:`url("${img$a}") no-repeat 50% 50%`,backgroundColor:e.palette.background.default,"&:hover":{backgroundColor:e.palette.background.default}},list:{backgroundColor:e.palette.background.default},popoverColor:{backgroundColor:e.palette.background.default}})),Help=({onOpen:t,onClose:e,helpDocLink:n,helpDocCallback:r,supportCallback:i,displaySupportChat:o,displayChatWithSupport:a,desktopIconStyle:s})=>{var l=useStyles$1$2()["classes"];const[c,u]=react$1.exports.useState(null);const d=()=>{u(null),null!=e&&e()};var p=n||r,f=null==(f=window.config)?void 0:f.appVersion;return jsxRuntime.exports.jsxs("div",Object.assign({className:l.help},{children:[jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.KrqRIg",defaultMessage:"Help Center",description:"appbar tooltip: help-center button text"}),"aria-label":"help"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:l.barIcon,onClick:e=>{u(e.currentTarget),null!=t&&t()},"data-veritone-element":"help-button","data-testid":"help-button","aria-label":"help",size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(l.icon,l.helpIcon),style:s})}))})),jsxRuntime.exports.jsx(Popover$1,Object.assign({open:Boolean(c),anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},onClose:d,className:l.popover,classes:{paper:l.popoverColor},disableScrollLock:!0},{children:jsxRuntime.exports.jsxs(List$2,Object.assign({disablePadding:!0,className:l.list},{children:[p&&jsxRuntime.exports.jsxs(ListItemButton$1,Object.assign({onClick:()=>{d(),null!=r&&r(),n&&window.open(n,"_blank")},"data-veritone-element":"show-help-doc-button","data-testid":"show-help-doc-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(AppBarArticleIcon,{})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.MSM3Vh",defaultMessage:"View Help Docs",description:"help tooltip: text for documentation"}),classes:{root:l.helpItemText}})]})),a&&jsxRuntime.exports.jsxs(ListItemButton$1,Object.assign({onClick:()=>{var e,t;null!=(t=null==(e=null==(e=(t=window.document).getElementById)?void 0:e.call(t,"embeddedMessagingConversationButton"))?void 0:e.click)&&t.call(e),null!=i&&i(),sdkEventManager.dispatch(SdkEvents.openSupport),u(null)},"data-veritone-element":"open-chat-with-support-button","data-testid":"app-bar-show-chat-with-support-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(Chat,{fontSize:"small"})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-chat-with-support.MBM3Vh2",defaultMessage:"Chat with Support",description:"help tooltip: salesforce chat with support"}),classes:{root:l.helpItemText}})]})),o&&jsxRuntime.exports.jsxs(ListItemButton$1,Object.assign({onClick:()=>{null!=i&&i(),u(null)},"data-veritone-element":"open-support-chat-button","data-testid":"support-chat-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(AppBarInAppGuidance,{})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.8aLpuV",defaultMessage:"In-App Guidance",description:"help tooltip: text for documentation"}),classes:{root:l.helpItemText}})]})),f&&jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx(ListItem$1,Object.assign({className:l.versionWrapper},{children:jsxRuntime.exports.jsx(ListItemText$1,{primary:f,classes:{primary:l.versionText}})}))]})]}))}))]}))},namespace$5="users",userSelector=e=>null==e?void 0:e.aiWareHeaderBar,rootSelector=e=>e,notificationStatusSelector=e=>null!=e&&e.osNotificationPanel?null==e?void 0:e.osNotificationPanel.status:"",useStyles$k=makeStyles()(e=>({title:{paddingTop:e.spacing(5.5)},contentText:{fontSize:14},dialogActions:{marginBottom:e.spacing(3),paddingRight:e.spacing(5)},signOutButton:{height:34,marginRight:e.spacing(1)},staySignedInButton:{height:34}})),LOGOUT_CALL_LIMIT=1;let logoutCallCounter=0;const RESET_IDLE_TIMER_CALL_LIMIT=1,MINUTES_BEFORE_SESSION_EXPIRATION=3;let timer;const SessionTimeout=e=>{const t=e["test"],n=useDispatch();e=useStyles$k().classes;const r=useSelector(isIdleSelector);var i=useSelector(userSelector$2);const o=useSelector(sessionTokenSelector),a=useSelector(loginUrlSelector),s=useSelector(callLogoutSelector),l=useSelector(clickedLogoutSelector),c=null==i?void 0:i.tokenExpiration,u=useSelector(callResetIdleTimerSelector);i=useSelector(sessionTimeoutSelector)||60;const d=useSelector(reloadPageSelector),p=useSelector(resetIdleTimerCallCounterSelector),[f,h]=react$1.exports.useState(t?5:60),[m,g]=react$1.exports.useState(new Date),[y,$]=react$1.exports.useState(),[v,x]=react$1.exports.useState(),[b,C]=react$1.exports.useState(!1),[S,w]=react$1.exports.useState(!1),_=react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setIsIdle,value:e,ephemeral:!0,contentType:"json"}))},[n]),T=(react$1.exports.useEffect(()=>{n(getSessionTimeout(o))},[]),react$1.exports.useEffect(()=>{d&&window.location.replace("/")},[d]),react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setCallLogout,value:e,ephemeral:!0,contentType:"json"}))},[n])),E=react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setClickedLogout,value:e,ephemeral:!0,contentType:"json"}))},[n]),j=react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setCallResetIdleTimer,value:e,ephemeral:!0,contentType:"json"}))},[n]),I=react$1.exports.useCallback(()=>{logoutCallCounter++,T(!0);var e=l?500:5e3;n(logoutRequest({token:o})),setTimeout(()=>{window.location.href=a+"/#/?redirect="+window.location.href},t?2e3:e)},[T,n,o,a,l]);var R=react$1.exports.useCallback(()=>{logoutCallCounter++,_(!1),setTimeout(()=>{T(!0),E(!0),n(logoutRequest({token:o}))},500),setTimeout(()=>{window.location.href=a+"/#/?redirect="+window.location.href},500)},[T,n,o,a,E,_]);var O=()=>{_(!0),clearInterval(timer),timer=setInterval(()=>{h(e=>e-1)},1e3)},A=()=>{!r&&p<RESET_IDLE_TIMER_CALL_LIMIT&&j(!0)};const k=se(t?{timeout:5e3,onIdle:O,onAction:A,debounce:1e3,crossTab:!0,syncTimers:200}:{timeout:6e4*i,onIdle:O,onAction:A,debounce:i/4*6e4,crossTab:!0,syncTimers:200})["reset"],M=react$1.exports.useCallback(()=>{j(!1),k()},[j]),P=react$1.exports.useCallback(()=>{S&&(n(extendTokenRequest({token:o})),w(!1)),_(!1),M(),clearInterval(timer),setTimeout(()=>{h(t?5:60)},500)},[_,M,S,n,o]);return react$1.exports.useEffect(()=>{setTimeout(()=>{g(new Date)},1e3)},[m]),react$1.exports.useEffect(()=>{var e;c&&((e=new Date(c)).setMinutes(e.getMinutes()-MINUTES_BEFORE_SESSION_EXPIRATION),x(new Date(c)),$(e))},[c]),react$1.exports.useEffect(()=>{v&&v.getTime()<m.getTime()&&C(!0),y&&y.getTime()<m.getTime()&&w(!0)},[v,y,m]),react$1.exports.useEffect(()=>{b?I():S&&_(!0)},[v,y,S,b,I,_]),react$1.exports.useEffect(()=>{s&&logoutCallCounter<LOGOUT_CALL_LIMIT&&I()},[s,I]),react$1.exports.useEffect(()=>{r&&0===f&&(clearInterval(timer),setTimeout(()=>{h(10)},500),I())},[f,I,r]),react$1.exports.useEffect(()=>{!r&&u&&p===RESET_IDLE_TIMER_CALL_LIMIT&&M()},[u,r,p,M]),react$1.exports.useEffect(()=>{r||P()},[r,P]),jsxRuntime.exports.jsx(AIWareThemeProvider$1,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsxs(Dialog$1,Object.assign({open:r&&!l,"aria-labelledby":"session timeout dialog","aria-describedby":"session timeout dialog",disableEscapeKeyDown:!0,maxWidth:"xs","data-test":"session-timeout-dialog"},{children:[jsxRuntime.exports.jsx(DialogTitle$1,Object.assign({id:"session timeout dialog title",className:e.title},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.JEUssf",defaultMessage:"Session Timeout",description:"label session timeout dialog"})})),jsxRuntime.exports.jsx(DialogContent$1,{children:jsxRuntime.exports.jsx(DialogContentText$1,Object.assign({id:"session timeout dialog text",className:e.contentText},{children:s?l?null:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.l85HEz",defaultMessage:"You have been signed due to inactivity or due to your session being expired.",description:"signed out message"}):S?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.bDessH",defaultMessage:"Your session will expire soon. For your security, we'll automatically sign you out in {signOutTimer} seconds. Choose 'Stay Signed In' to continue or 'Sign Out' if you're done.",description:"label for idle warning expiring soon",values:{signOutTimer:f}}):jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.Ca6Qq0",defaultMessage:"You've been inactive for a while. For your security, we'll automatically sign you out in {signOutTimer} seconds. Choose 'Stay Signed In' to continue or 'Sign Out' if you're done.",description:"label for idle warning inactive for a while",values:{signOutTimer:f}})}))}),s?null:jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:e.dialogActions},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:R,color:"primary",variant:"outlined",className:e.signOutButton,"data-test":"sign-out-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.jN92ox",defaultMessage:"Sign Out",description:"label for sign out button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:P,color:"primary",variant:"contained",className:e.staySignedInButton,"data-test":"stay-signed-in-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.WvKhS2",defaultMessage:"Stay Signed In",description:"label for stay signed in button"})}))]}))]}))})})},appBarHeight=55,defaultAppBarZIndex=0,VERITONE_PANEL_ID="VERITONE_PANEL_ID",ORGANIZATION_PANEL_ID="ORGANIZATION_PANEL_ID",NOTIFICATION_PANEL_ID="NOTIFICATION_PANEL_ID",APPLICATION_PANEL_ID="APPLICATION_PANEL_ID",HELP_PANEL_ID="HELP_PANEL_ID",USER_APPLICATION_SETTINGS_PANEL="USER_APPLICATION_SETTINGS_PANEL",NOTIFICATION_BADGE_MAX_COUNT=20,HUB_APP_ID="9B774B0E-A5B1-452C-A0AA-4E2E64EAD2B3",getUserInfo=({appIcon:e="",currentUser:t})=>({appIcon:e,currentUser:null!=t&&t.organization?t:void 0});function NewAppBar({isEnableOrgPanel:e,zIndex:t=defaultAppBarZIndex,leftNav:n,onClickAppbarMenu:r,logoSrc:i,backgroundColor:o="rgb(32.9, 43.1, 47.8)",iconColor:a,title:s,help:l,notification:c=!0,userApplicationSettingsIcon:u,onClickOrgIcon:d,closeButton:p,onCloseSetting:f,onClose:h,onOpenSetting:m,onOpenHelpCenter:g,onOpenNotification:y,onOpenUserApplicationSettings:$,openSetting:v,organization:x={},panels:b=[],unseenCount:C,searchBarMountId:S,textColor:w,rightActions:_=[],applications:T=[],onClickAppSwitchIcon:E,displaySupportChat:j=!0,onDashboardClick:I,showDashboardIcon:R=!1,displayChatWithSupport:O=!0,disableGoHome:L,onClickLogo:A}){var k=tinycolor(o).isDark(),w=w||(k?"#fff":"#000"),k=k?"rgba(255,255,255,0.1)":"rgb(243,245,249)";const M=useStyles$2$2({titleColor:w,logo:i,activeColor:k,onClickLogo:A})["classes"],[P,N]=react$1.exports.useState([]);k=useSelector(userSelector)||{};const[D,F]=react$1.exports.useState(!0);var{appIcon:k,currentUser:V}=getUserInfo(k),H=useSelector(betaFeaturesSelector),B=useSelector(appIdSelector)===HUB_APP_ID;react$1.exports.useEffect(()=>("true"===localStorage.getItem("DEBUG")&&console.log("AppBar mounted"),()=>{"true"===localStorage.getItem("DEBUG")&&console.log("AppBar unmounted")}),[]),react$1.exports.useEffect(()=>{var e=b.map(e=>e.panelId);!e.length&&!P.length||isEqual$5(e,P)||N(e)},[b,P]);a={background:a||void 0};return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(SessionTimeout,{}),jsxRuntime.exports.jsx("div",{style:{height:appBarHeight}}),jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"appbar",className:M.appBar,style:{height:appBarHeight,background:o,zIndex:t}},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:M.menuButton},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-menu","data-testid":"app-bar-menu",className:M.iconButton,onClick:r,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.hamburgerIcon)})}))})),!!k&&""!==k&&jsxRuntime.exports.jsx("div",Object.assign({className:M.margin},{children:jsxRuntime.exports.jsx("img",{className:M.appIcon,src:k,alt:"appIcon"})})),jsxRuntime.exports.jsxs("div",Object.assign({className:M.content,style:{color:w}},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.left,M.noSelect),onClick:L&&!A?void 0:function(){A?A():window.location.href="/"},"data-test":"appbarTitle","data-testid":"appbarTitle"},{children:i?jsxRuntime.exports.jsx("span",{className:M.appLogo}):jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",className:M.title},{children:s}))})),jsxRuntime.exports.jsx("div",{"data-test":"appbarSearch",id:S||"search-bar-id",className:M.searchBarHolder}),jsxRuntime.exports.jsx("div",Object.assign({className:M.right},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:M.controllers},{children:[0<_.length&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.iconGroup,M.noSelect)},{children:_.map(({label:e,onClick:t,isActive:n=!0},r)=>jsxRuntime.exports.jsx("div",Object.assign({className:M.iconGroupIcon},{children:jsxRuntime.exports.jsx("span",{onClick:e=>t?t(e):null,className:classNames(M.rightActionLabel,n?M.active:M.passive),dangerouslySetInnerHTML:{__html:e}})}),"label-"+r))})),R&&jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.dashboard-button",defaultMessage:"aiWARE Dashboard",description:"aiWARE Dashboard label"}),"aria-label":"dashboard"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-dashboard-button",className:M.barIcon,onClick:I,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.dashboardIcon),style:a})}))})),l&&jsxRuntime.exports.jsx("div",Object.assign({"data-test":"app-bar-help-container","data-testid":"app-bar-help-container",className:classNames(M.margin,{[M.panelActive]:P.includes(HELP_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Help,{tooltipTitle:"",helpDocLabel:"View Help Docs",chatWithSupportLabel:"Chat with Support",supportLabel:"In-App Guidance",helpDocCallback:()=>{null!=g&&g()},supportCallback:f,titleColor:w,displaySupportChat:j,displayChatWithSupport:O,desktopIconStyle:a})})),c&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.margin,{[M.panelActive]:P.includes(NOTIFICATION_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.KFXxNr",defaultMessage:"Notifications",description:"appbar tooltip: notification button text"}),"aria-label":"notifications"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:M.barIcon,onClick:y,"data-test":"app-bar-notification-button",size:"large","data-testid":"app-bar-notification-button"},{children:jsxRuntime.exports.jsx(Badge$1,Object.assign({badgeContent:C,max:NOTIFICATION_BADGE_MAX_COUNT,color:"primary","data-test":"app-bar-notification-badge",className:M.notificationBadge},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.notificationIcon,{[M.openNotificationPanel]:null==v?void 0:v.openNotificationPanel}),style:a})}))}))}))})),H&&u&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.margin,{[M.panelActive]:P.includes(USER_APPLICATION_SETTINGS_PANEL)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.application-settings-button",defaultMessage:"Application Settings",description:"appbar tooltip: application settings button text"}),"aria-label":"application-settings"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:M.barIcon,onClick:$,size:"large","data-testid":"app-bar-user-application-settings-button"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.applicationSettingsIcon)})}))}))})),1<T.length&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames({[M.panelActive]:P.includes(APPLICATION_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.3v499g",defaultMessage:"Applications",description:"applications tooltip: text for applications button"}),"aria-label":"applications"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-switch-app-button",className:M.barIcon,onClick:E,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.applicationIcon,{[M.openPanel]:null==v?void 0:v.openAppSwitchPanel}),style:a})}))}))})),(x.imageUrl||x.name)&&e&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.margin,{[M.panelActive]:P.includes(ORGANIZATION_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.7qOwBg",defaultMessage:"Organization",description:"organization tooltip: text for documentation"}),"aria-label":"organization"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-org-button",className:M.barIcon+" "+M.orgButton,onClick:d,size:"large"},{children:x.imageUrl&&D?jsxRuntime.exports.jsx("img",{src:x.imageUrl,className:classNames(M.orgIcon),onError:function(){F(!1)},alt:"org_icon"}):jsxRuntime.exports.jsx(Avatar$1,Object.assign({className:M.smallOrgAvatar,variant:"circular","data-testid":"app-bar-avatar"},{children:getSortName(x.name||"")}))}))}))})),V&&!B&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames({[M.panelActive]:P.includes(VERITONE_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.eOxvvM",defaultMessage:"Utilities",description:"utilities tooltip: text for documentation"}),"aria-label":"utilities"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-setting-button","data-testid":"app-bar-setting-button",className:M.barIcon,onClick:m,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.veritoneLogo,{[M.openPanel]:null==v?void 0:v.openVeritonePanel}),style:a})}))}))})),p&&h&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:h,"data-test":"app-bar-close-button",size:"large","data-testid":"app-bar-close-button"},{children:jsxRuntime.exports.jsx(default_1$6,{htmlColor:w})}))}))})]}))}))]}))]}))]})}const GET_CURRENT_USER=`os-app-bar/${namespace$5}/get current user`,GET_CURRENT_USER_SUCCESS=`os-app-bar/${namespace$5}/get current user success`,GET_CURRENT_USER_FAIL=`os-app-bar/${namespace$5}/get current user fail`,GET_CURRENT_APP_ICON=`os-app-bar/${namespace$5}/get current app icon`,GET_CURRENT_APP_ICON_SUCCESS=`os-app-bar/${namespace$5}/get app icon success`,getCurrentUser=()=>({type:GET_CURRENT_USER}),getCurrentUserFail=()=>({type:GET_CURRENT_USER_FAIL}),getCurrentUserSuccess=e=>({type:GET_CURRENT_USER_SUCCESS,payload:e}),getCurrentAppIcon=({applicationId:e})=>({type:GET_CURRENT_APP_ICON,payload:{applicationId:e}}),getCurrentAppIconSuccess=e=>({type:GET_CURRENT_APP_ICON_SUCCESS,payload:e}),initialState$5={currentUser:{},fetched:!1,fetching:!1,error:!1};function userReducer(e,t){if(void 0===e)return initialState$5;switch(t.type){case GET_CURRENT_USER_FAIL:return Object.assign(Object.assign({},e),{fetching:!1,fetched:!0,error:!0});case GET_CURRENT_USER_SUCCESS:return Object.assign(Object.assign({},e),{currentUser:t.payload,fetching:!1,fetched:!0,error:!1});case GET_CURRENT_APP_ICON_SUCCESS:return Object.assign(Object.assign({},e),{appIcon:t.payload});default:return e}}const nameSpace="aiWareHeaderBar",BOOTING="APP_BAR/booting",BOOTED="APP_BAR/booted",onBooted=()=>({type:BOOTED}),getApplicationInfo=(t,n,r)=>__awaiter$3(void 0,void 0,void 0,function*(){var e=`
1441
1441
  query {
1442
1442
  application(id:"${t}"){
1443
1443
  iconUrl
@@ -1500,7 +1500,22 @@ createScheduledJob(input:{
1500
1500
  }
1501
1501
  }
1502
1502
  }
1503
- }`,r=yield gqlIntrospection.queryParser(o,a,n),r=(null==r?void 0:r.query)||n;try{var i=(yield baseGraphQLApi({query:r,graphEndpoint:o,token:a,operationName:t}))["data"];if(i&&i[e])return i[e].aiWAREVersionHistory;throw new Error(`Operation ${t} failed. Please try again later`)}catch(e){throw devErrorLogger(e),new Error(`Operation ${t} failed. Please try again later`)}}),PANEL_SLICE="panel",VERSION_PANEL_NAMESPACE="versionPanel",initialState={status:"idle",currentVersion:null,previousVersion:null,platformProperties:null,selectedVersion:null},namespace=VERSION_PANEL_NAMESPACE,aiWareDesktopSlice=createSlice({name:PANEL_SLICE+"/"+namespace,initialState:initialState,reducers:{fetchVersionInfoStart(e,t){e.status="pending",e.currentVersion=null,e.previousVersion=null,e.selectedVersion=null},fetchVersionInfoSuccess(e,t){var{currentVersion:t,previousVersion:n,platformProperties:r}=t.payload;e.status="success",e.currentVersion=t,e.previousVersion=n,e.platformProperties=r},fetchHistoryVersionInfoSuccess(e,t){e.status="success",e.selectedVersion=t.payload},fetchVersionInfoFailure(e){e.status="failure"}}}),actions$1=aiWareDesktopSlice.actions;var versionPanel_state=aiWareDesktopSlice.reducer;function*fetchVersionInfoSaga(e){if(e.payload)yield call$j(fetchVersionHistory,e.payload);else try{var{graphQLEndpoint:t,token:n}=yield select(selectApiConfigs$2),r=yield call$j(fetchVersionInfo,t,n);r?yield put(actions$1.fetchVersionInfoSuccess(r)):yield put(actions$1.fetchVersionInfoFailure())}catch(e){devErrorLogger(e),yield put(actions$1.fetchVersionInfoFailure())}}function*fetchVersionHistory(t){try{var{graphQLEndpoint:e,token:n}=yield select(selectApiConfigs$2),r=(yield call$j(fetchVersionHistory$1,e,n)).find(e=>e.platformVersion.id===t);r?yield put(actions$1.fetchHistoryVersionInfoSuccess(r.platformVersion)):yield put(actions$1.fetchVersionInfoFailure())}catch(e){devErrorLogger(e),yield put(actions$1.fetchVersionInfoFailure())}}function*fetchVersionInfoWatcher(){yield takeEvery$1(actions$1.fetchVersionInfoStart.type,fetchVersionInfoSaga)}function*openAppUrlByShortcut(e){var{cmsAppUrl:t,adminAppUrl:n}=yield select(e=>e.configs.config);switch(e.payload){case"cms":yield put(openLinkOnNewTab({url:t}));break;case"admin":yield put(openLinkOnNewTab({url:n}))}}function*getPanelSaga(){yield takeEvery$1("panels/OPEN_APP_SHORTCUT",openAppUrlByShortcut),yield all$2([fetchVersionInfoWatcher()])}const actions={[namespace]:actions$1},rootReducer=combineReducers({[namespace]:versionPanel_state});function getPanelModule(){return{id:"os-panel",reducerMap:{panel:rootReducer},sagas:[getPanelSaga],initialActions:[]}}let _=e=>e,_t;const fadeInOut=keyframes(_t=_t||_`
1503
+ }`,r=yield gqlIntrospection.queryParser(o,a,n),r=(null==r?void 0:r.query)||n;try{var i=(yield baseGraphQLApi({query:r,graphEndpoint:o,token:a,operationName:t}))["data"];if(i&&i[e])return i[e].aiWAREVersionHistory;throw new Error(`Operation ${t} failed. Please try again later`)}catch(e){throw devErrorLogger(e),new Error(`Operation ${t} failed. Please try again later`)}}),fetchVersionsById=(o,a,s)=>__awaiter$1(void 0,void 0,void 0,function*(){var e="platformVersionById",t="platformInfo",n=`query ${e} ($ids: [ID!]) {
1504
+ ${t} {
1505
+ aiWAREVersionHistory (ids: $ids) {
1506
+ records {
1507
+ platformVersion {
1508
+ id
1509
+ version
1510
+ manifestUrl
1511
+ changeLogUrl
1512
+ highlightsUrl
1513
+ createdAt
1514
+ }
1515
+ }
1516
+ }
1517
+ }
1518
+ }`,r=yield gqlIntrospection.queryParser(o,a,n),r=(null==r?void 0:r.query)||n,n={ids:s};try{var i=(yield baseGraphQLApi({query:r,variables:n,graphEndpoint:o,token:a,operationName:e}))["data"];return i&&i[t]?i[t].aiWAREVersionHistory.records:null}catch(e){return devErrorLogger(e),null}}),PANEL_SLICE="panel",VERSION_PANEL_NAMESPACE="versionPanel",initialState={status:"idle",currentVersion:null,previousVersion:null,platformProperties:null,selectedVersion:null},namespace=VERSION_PANEL_NAMESPACE,aiWareDesktopSlice=createSlice({name:PANEL_SLICE+"/"+namespace,initialState:initialState,reducers:{fetchVersionInfoStart(e,t){e.status="pending",e.currentVersion=null,e.previousVersion=null,e.selectedVersion=null},fetchVersionInfoSuccess(e,t){var{currentVersion:t,previousVersion:n,platformProperties:r}=t.payload;e.status="success",e.currentVersion=t,e.previousVersion=n,e.platformProperties=r},fetchHistoryVersionInfoSuccess(e,t){e.status="success",e.selectedVersion=t.payload},fetchVersionInfoFailure(e){e.status="failure"}}}),actions$1=aiWareDesktopSlice.actions;var versionPanel_state=aiWareDesktopSlice.reducer;function*fetchVersionInfoSaga(e){if(e.payload)yield call$j(fetchVersionById,e.payload);else try{var{graphQLEndpoint:t,token:n}=yield select(selectApiConfigs$2),r=yield call$j(fetchVersionInfo,t,n);r?yield put(actions$1.fetchVersionInfoSuccess(r)):yield put(actions$1.fetchVersionInfoFailure())}catch(e){devErrorLogger(e),yield put(actions$1.fetchVersionInfoFailure())}}function*fetchVersionHistory(t){try{var{graphQLEndpoint:e,token:n}=yield select(selectApiConfigs$2),r=(yield call$j(fetchVersionHistory$1,e,n)).find(e=>e.platformVersion.id===t);r?yield put(actions$1.fetchHistoryVersionInfoSuccess(r.platformVersion)):yield put(actions$1.fetchVersionInfoFailure())}catch(e){devErrorLogger(e),yield put(actions$1.fetchVersionInfoFailure())}}function*fetchVersionById(t){try{var{graphQLEndpoint:e,token:n}=yield select(selectApiConfigs$2),r=yield call$j(fetchVersionsById,e,n,[t]);null!==r?yield put(actions$1.fetchHistoryVersionInfoSuccess(r[0].platformVersion)):yield call$j(fetchVersionHistory,t)}catch(e){devErrorLogger(e),yield call$j(fetchVersionHistory,t)}}function*fetchVersionInfoWatcher(){yield takeEvery$1(actions$1.fetchVersionInfoStart.type,fetchVersionInfoSaga)}function*openAppUrlByShortcut(e){var{cmsAppUrl:t,adminAppUrl:n}=yield select(e=>e.configs.config);switch(e.payload){case"cms":yield put(openLinkOnNewTab({url:t}));break;case"admin":yield put(openLinkOnNewTab({url:n}))}}function*getPanelSaga(){yield takeEvery$1("panels/OPEN_APP_SHORTCUT",openAppUrlByShortcut),yield all$2([fetchVersionInfoWatcher()])}const actions={[namespace]:actions$1},rootReducer=combineReducers({[namespace]:versionPanel_state});function getPanelModule(){return{id:"os-panel",reducerMap:{panel:rootReducer},sagas:[getPanelSaga],initialActions:[]}}let _=e=>e,_t;const fadeInOut=keyframes(_t=_t||_`
1504
1519
  0% {
1505
1520
  opacity: 0;
1506
1521
  }