mario-core 3.0.11-es-staging → 3.0.12-es-staging

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/dist/index.js CHANGED
@@ -2,35 +2,35 @@
2
2
  `,QOt="压力",KOt="一对一",eGt="课堂反思",tGt="讨论会",_Gt="学习进度",sGt="现在无法导出。请重试。",nGt="查看数据",oGt="学习策略",aGt="策略",iGt="使用次数",rGt="下一步",cGt="以前的",lGt="我的讨论会",dGt="选择一名学生并启动新讨论会或预约讨论会以备日后使用。",uGt="您没有学生",mGt="这是必填字段",hGt="请选择问题类别",gGt="预订讨论会",pGt="最终得分",fGt="新讨论会",yGt="搜索学生",wGt="搜索员工",vGt="会议安排",bGt="课程安排",$Gt="更多问题",kGt="讨论会评分标准",xGt="解锁",IGt="单击提交前",CGt="您的会话为",SGt="分钟",AGt="分钟",EGt="提交",TGt="您还有几个问题尚未回答。您确定要完成吗?",jGt="请务必与您的老师确认您已完成所有要求",qGt="老师选择",NGt="学生选择",PGt="协议",RGt="个人学习计划",LGt="我的个人学习计划",MGt="个人兴趣",zGt="允许学生编辑",DGt="优势和挑战",FGt="显著优势",OGt="优势",GGt="挑战",BGt="显著挑战",VGt="我的老师如何帮助我学习",HGt="关于我的学习",WGt="便利设施",UGt="目标",XGt="此目标显示在学生的讨论会评分标准中。您确定要删除吗?",YGt="活动圈",ZGt="朋友圈",JGt="您准备好学习了吗?",QGt="课程表",KGt="添加课程表",eBt="上课日期",tBt="课程名称",_Bt="日期/时段",sBt="教师电子邮件",nBt="笔记类型和课程",oBt="我的笔记",aBt="添加新笔记",iBt="所有类别",rBt="个性化",cBt="仅显示收藏",lBt="搜索",dBt="笔记标题",uBt="学生",mBt="笔记详情",hBt="标记为收藏",gBt="输入笔记",pBt="请选择学生",fBt="设置",yBt="保存更改",wBt="活动通知",vBt="计划通知",bBt="预定通知",$Bt="是",kBt="否",xBt="电子邮件通知",IBt="向我发送电子邮件通知",CBt="不向我发送电子邮件通知",SBt="类型",ABt="教师请求",EBt="学生请求",TBt="概述",jBt="PLP",qBt="我的学生一对一",NBt="我的学生签到",PBt="我的学生讨论会",RBt="接收日期",LBt="班级影响分数",MBt="影响分数",zBt="个别化教育计划",DBt="个别化教育计划",FBt="创建者",OBt="上次修改",GBt="修改",BBt="学生反思",VBt="外部反思",HBt="外部班级反思",WBt="反思",UBt="班级反思",XBt="添加反思",YBt="添加班级反思",ZBt="班级类型",JBt="教师图像",QBt="发送给教师",KBt="立即发送",e8t="错过",t8t="待处理",_8t="发送日期",s8t="转到学生的 PLP",n8t="新 IEP",o8t="编辑 IEP",a8t="IEP 类型",i8t="资格来源(初始)",r8t="年度目标",c8t="输入日期范围",l8t="添加目标",d8t="添加目标",u8t="日/月/年",m8t="特殊教育",h8t="IEP 必须包含向儿童或代表儿童提供的特殊教育和相关服务以及补充援助和服务的声明。本节重点介绍第一个要素:将为儿童提供的特殊教育的说明。",g8t="目标和报告进度",p8t="每个儿童的 IEP 还必须描述如何衡量实现年度目标的进展情况以及何时向家长报告。",f8t="确定儿童需求后,IEP 团队就会努力制定适当的目标来满足这些需求。年度目标描述了儿童在 12 个月内应该做或学什么。",y8t="相关服务",w8t="为了帮助残障儿童从特殊教育中受益,他或她可能还需要在某个方面获得额外帮助,例如说话或移动。这种额外的帮助称为相关服务。在此处了解这些关键服务的所有信息。",v8t="补充援助和服务",b8t="补充援助和服务旨在改善儿童在学术、课外和非学术活动和环境中的学习机会和参与度。IEP 团队必须确定儿童需要哪些补充援助和服务,并在 IEP 中具体说明。",$8t="针对学校人员的计划修改",k8t="IEP 还包含确定将为学校人员提供的计划修改或支持",x8t="不参与程度",I8t="IEP 还必须说明儿童在何种程度上不会与非残疾儿童一起参加正常班级以及其他学校环境和活动(如果有)。",C8t="评估便利",S8t="IDEA 要求残疾学生参加州或全区评估。IEP 团队必须决定学生是否需要测试便利或完全其他类型的评估。在 IEP 的这一部分,团队记录了学生将如何参与。",A8t="服务交付",E8t="儿童何时开始接受服务?在哪里?多久一次?“会话”持续多长时间?这些细节虽然烦人,但必须纳入 IEP!",T8t="过渡计划",j8t="不晚于学生 16 岁生日(如适用,可以更早)),IEP 必须包含与过渡相关的计划,以帮助学生为中学毕业后的生活做好准备。",q8t="当前水平",N8t="儿童目前在学校的表现如何?残疾如何影响他在课堂上的表现?此类信息包含在 IEP 中的“当前水平”声明中。",P8t="签名",R8t="IEP 旧版本和诊断文档",L8t="上传文件",M8t="添加兴趣",z8t="上传图片",D8t="支持的图片类型:PNG、JPEG、WEBPbbb",F8t="编辑兴趣",O8t="选择个人兴趣或在此处输入个人兴趣",G8t="添加注释",B8t="选择最佳匹配",V8t="最佳匹配",H8t="选择策略",W8t="选定的学习策略",U8t="是否要删除此优势和挑战",X8t="添加新项目",Y8t="编辑项目",Z8t="选择教学策略",J8t="选定的教学策略",Q8t="添加标题",K8t="我的学习",eVt="是否要删除关于我的学习的信息",tVt="编辑我的学习",_Vt="添加我的学习",sVt="选择关于学习或在此处输入关于学习的信息",nVt="便利设施",oVt="所有类别",aVt="您想删除此便利设施吗",iVt="编辑便利设施",rVt="添加便利设施",cVt="全部",lVt="所有状态",dVt="目标类型",uVt="添加新目标",mVt="目标详细信息",hVt="选择状态",gVt="目标基线",pVt="目标",fVt="目标详情",yVt="目标类型",wVt="编辑目标详情",vVt="已上传文件",bVt="可选",$Vt="编辑基线",kVt="编辑好友",xVt="添加好友",IVt="搜索好友",CVt="好友类型",SVt="编辑行动",AVt="添加行动",EVt="搜索行动",TVt="行动",jVt="活动类型",qVt="选择或键入行动",NVt="需要采取行动",PVt="外部",RVt="学生调查",LVt="查看调查",MVt="创建调查",zVt="调查来自",DVt="复习",FVt="发布调查",OVt="总调查",GVt="标记",BVt="预定会话",VVt="完成的总调查",HVt="未完成的总调查",WVt="列出调查",UVt="调查",XVt="调查",YVt="创建调查",ZVt="我的调查",JVt="辅导员姓名",QVt="调查标题",KVt="截止日期",eHt="剩余天数",tHt="回复日期",_Ht="会话",sHt="标记",nHt="外部电子邮件",oHt="现在安排",aHt="会话安排",iHt="已安排会话",rHt="搜索调查",cHt="总调查",lHt="调查结果",dHt="签到时间",uHt="今天接收于",mHt="预览调查",hHt="完成调查",gHt="您想与教师分享调查吗?",pHt=`您可以与教师分享此调查,以进一步了解您的学生。\r
3
3
  `,fHt="跳过",yHt="调查问题",wHt="添加调查问题",vHt="附加问题",bHt="添加附加问题",$Ht="保存收藏夹",kHt="保存为收藏夹",xHt="收藏调查",IHt="滑块",CHt="问题",SHt="插入所有问题",AHt="删除所有问题",EHt="插入问题",THt="调查模板",jHt="插入模板",qHt="与教师共享调查",NHt="建议教师",PHt="电子邮件内容",RHt="发送调查",LHt="查看调查详情",MHt="学生人数",zHt="日期和时间",DHt="量表",FHt="答案",OHt="添加问题",GHt="保存问题",BHt="外部调查",VHt="IB 学习者资料",HHt="设置截止日期",WHt="重复调查",UHt="共享调查",XHt="新调查",YHt="分配辅导员",ZHt="选择辅导员",JHt="选择支持教师",QHt="分配支持教师",KHt="切换支持教师",eWt="支持教师姓名",tWt="问题用户",_Wt="请求反思",sWt="请求班级反思",nWt="与教师共享调查",oWt="选择自",aWt="切换辅导员",iWt="删除辅导员",rWt="当前辅导员电子邮件",cWt="当前辅导员姓名",lWt="选择辅导员变更",dWt="当前支持教师姓名",uWt="当前支持教师电子邮件",mWt="删除支持教师",hWt="选择支持教师变更",gWt="过滤器日历",pWt="平均学生安全",fWt="活跃",yWt="使用最多的 5 大策略",wWt="准备",vWt="平均学生压力",bWt="成功指标",$Wt="学习过程",kWt="调查仪表板",xWt="回应率",IWt="使用最多的 5 项调查",CWt="问题干预",SWt="学生压力",AWt="整体学习准备",EWt="查看日历",TWt="学生健康",jWt="查看数据仪表板",qWt="查看学生",NWt="查看学生",PWt="平均安全",RWt="平均压力",LWt="平均精力",MWt="平均专注力",zWt="平均幸福感",DWt="与上个月相比",FWt="的学生感觉不安全。",OWt="学生将自己标记为不安全。",GWt="将自己标记为不安全。",BWt="感觉不安全。",VWt="的学生压力很大。",HWt="标记为压力很大。",WWt="are feeling highly stressed.",UWt="选择一名学生并查看其个人资料和学习计划",XWt="选择一名学生并开始根据签到结果进行对话",YWt="开始",ZWt="教师反思",JWt="笔记",QWt="学生反思",KWt="查看最新签到",e7t="本周",t7t="缺少每周签到",_7t="添加新学生",s7t="开始签到",n7t="今天没有活动",o7t="今天的日程安排",a7t="压力很大",i7t="不安全",r7t="平均",c7t="查看他们",l7t="目标",d7t="24 小时前结束",u7t="开始一对一对话",m7t="查看结果",h7t="请求签到",g7t="最后",p7t="最新签到",f7t="缺少每周签到的学生",y7t="此学生没有缺少签到",w7t="没有缺少每周签到的学生",v7t="开始一对一对话",b7t="选择老师并开始签到",$7t="本周的签到",k7t="本周的一对一",x7t="此学生本周没有一对一",I7t="此学生本周没有签到",C7t="没有最后或请求的签到",S7t="压力很大的学生",A7t="感觉不安全的学生",E7t="缺少每周签到的学生",T7t="按区域划分的学生压力",j7t="学生分布",q7t="调查的标志",N7t="黄色标志",P7t="绿色标志",R7t="红色标志",L7t="显示方式",M7t="调查概述",z7t="分享笔记",D7t="调查摘要",F7t="调查名称",O7t="创建日期",G7t="截止时间",B7t="创建者",V7t="回复分布",H7t="问题评分",W7t="显示结果",U7t=`每个问题的答复和答复率\r
4
4
  `,X7t="查看学生列表",Y7t="查看回复列表",Z7t="回复数",J7t="未回复数",Q7t="问题评分",K7t="尚无回复",eUt="表格中突出显示了外部调查",tUt="重置密码",_Ut="正确",sUt="不正确",nUt="正确答案是",oUt="正确答案是",aUt="需要采取行动",iUt="查看答案",rUt="调查结果",cUt="周",lUt="月",dUt="预定会话",uUt="活动调查",mUt="查看回复",hUt="下载 .CSV",gUt="创建新调查",pUt="转到个人调查回复",fUt="您一次只能选择 {{number}} 个 KPI",yUt="您一次只能选择 {{number}} 个 KPI。若要选择新 KPI,请关闭之前的 KPI。",wUt="上次签到",vUt="选择了多少次策略",bUt="这些指标来自学生签到。过滤以上内容以更改数据集",$Ut="尚未开始",kUt="进行中",xUt="将签到导出到 CSV",IUt="这些指标来自会议评分标准。仅对教师的回答进行评分",CUt="请先保存",SUt="打印日期",AUt="目标基线",EUt="打印",TUt="下载",jUt="我的日常动机",qUt="选择截止日期",NUt="图像是必需的",PUt="旧 IEP",RUt="创建明年的 I​​EP",LUt="写些东西(可选)",MUt="根据学生的反馈,学习策略的有效性",zUt="感知有用性",DUt="表现",FUt="挑战不够,导致无聊和缺乏兴趣。",OUt="平静而放松,但没有足够的动力来发挥我的最佳水平。",GUt="可控的压力水平让我能够发挥出最佳水平。",BUt="仍在控制之中,但开始感到压力。",VUt="压力过大,真的很难管理我的工作量。",HUt="通过 csv 导入电子邮件",WUt="请求编号",UUt="选择或输入班级类型",XUt="发送请求",YUt="开始反思",ZUt="自定义反思",JUt="包括您想要显示的部分",QUt="一天中的时间",KUt="IEP 模板",eXt="OneRoster",tXt="沙盒",_Xt="信息名册(来源 ID/全名/电子邮件)",sXt="同步名册用户",nXt="导出到 CSV",oXt="用户列表",aXt="分配学生",iXt="一对一问题",rXt="班级反思问题",cXt="会议问题",lXt="行动",dXt="顺序",uXt="用户",mXt="问题类别",hXt="模板调查",gXt="类别总数",pXt="创建模板",fXt="问题数量",yXt="必填",wXt="幸福感",vXt="自我效能",bXt="没有要显示的问题",$Xt="隐私政策",kXt="个人资料",xXt="角色更改",IXt="注销",CXt="数据仪表板",SXt="深度学习工具",AXt="我的个人资料",EXt="电话",TXt="日历 ID",jXt="旧密码",qXt="确认新密码",NXt="选择一名学生并开始签到",PXt="世事皆可能。一切皆有可能。",RXt="编辑图片",LXt="创建新学生",MXt="年级",zXt="健康说明",DXt="学生家长信息",FXt="家长 1",OXt="家长 2",GXt="应用内通知",BXt="打开所有通知",VXt="当...时通知我",HXt="学生安排 1-1",WXt="学生安排讨论会",UXt="学生完成会议自我评估标准",XXt="学生或教师完成课堂反思",YXt="根据所选时间表到期行动点",ZXt="学生在过去 28 天内未记录 1-1。",JXt="电子邮件通知",QXt="打开所有电子邮件",KXt="学生对 1-1 学习准备度的回复为“否”",eYt="学生在签到时报告安全分数低",tYt="继续担任:",_Yt="管理员",sYt="辅导员",nYt="支持老师",oYt="老师/助理",aYt="添加家长 1 信息",iYt="添加家长 2 信息",rYt="家长角色",cYt="所有活动",lYt="学年",dYt="所有学生报告压力水平可控",uYt="成长",mYt="关系",hYt="效率",gYt="学术",pYt="百分比",fYt="无动力",yYt="舒适",wYt="伸展",vYt="紧张",bYt="不知所措",$Yt="编辑学生资料",kYt="老师",xYt="创建",IYt="学生电话号码",CYt="名称",SYt="电子邮件",AYt="普通教育教师",EYt="选择普通教育教师",TYt="请选择老师",jYt="分配",qYt="要傻乎乎的,要诚实的,要善良的。",NYt="您是否要更改为辅导员角色以打开?",PYt="搜索助手",RYt="基线",LYt="时间范围",MYt="朋友",zYt="最好的朋友",DYt="支持",FYt="潜在朋友",OYt="喜欢",GYt="爱",BYt="感兴趣",VYt="好奇",HYt="学习习惯、成绩、运动、俱乐部或个人项目的改善",WYt="家人、朋友和老师",UYt="完成重要任务并减少干扰",XYt="家庭作业、学习和成绩",YYt="我成功的能力",ZYt="您在想什么?",JYt="现在复习一下您今天的回答",QYt="您想切换到学生角色并打开吗?",KYt="学生已经开始了一对一。您确定要删除吗?",eZt="您想切换到支持老师角色来打开吗?",tZt="学生尚未开始此讨论会。您确定要删除吗?",_Zt="搜索支持老师",sZt="搜索辅导员",nZt="我今天在课堂上有多高效?",oZt="压力不够",aZt="压力过大",iZt="组织",rZt="自我意识",cZt="自我导向学习",lZt="自我倡导",dZt="自我管理",uZt="概念变化对话",mZt="具体示例",hZt="详细说明",gZt="双重编码",pZt="注释类型和类别",fZt="编辑注释",yZt="未完成",wZt="红色",vZt="黄色",bZt="绿色",$Zt="uwcsea-sg 气候调查",kZt="与成人和同龄人的联系",xZt="整体学习体验",IZt="我的健康和幸福",CZt="开放式问题",SZt="您需要一些额外的帮助或支持吗?",AZt="sdq(标准和困难问卷)",EZt="sdq(优势和困难问卷)补充",TZt="关闭",jZt="学生回答",qZt="匿名回答",NZt="教师感知",PZt="为上课做好准备",RZt="缺少课堂作业",LZt="完成课堂作业",MZt="需要时寻求帮助",zZt="清除",DZt="缺少反思",FZt="缺少/迟交作业的学生总数",OZt="科目班级",GZt="图表类型",BZt="请求来自",VZt="您确定要删除此项目吗?",HZt="是,删除",WZt="已完成讨论会",UZt="我的学习计划",XZt="我的学习计划(测试版)",YZt="获胜并不总是意味着成为第一。获胜意味着您比以前做得更好。",ZZt="将学习与先前的知识相结合",JZt="提高学生的自我效能",QZt="我的签到",KZt="您想做些什么不同的事情?",eJt="待办事项",tJt="我的课堂反思",_Jt="发送反思",sJt="输入 2 个字符进行搜索",nJt="创建时间",oJt="您想删除此用户吗?",aJt="警告",iJt="您想冒充此用户吗?",rJt="助理",cJt="家长",lJt="选择文件",dJt="您想删除这个问题吗?",uJt="选择",mJt="您想删除此类别吗?",hJt="模板总数",gJt="模板名称",pJt="类别名称",fJt="创建日期",yJt="是否要删除此电子邮件模板?",wJt="创建电子邮件模板",vJt="邮件主题",bJt="邮件正文",$Jt="邮件参数",kJt="参数",xJt="含义",IJt="添加附件",CJt="技能",SJt="主题",AJt="学习支持类别",EJt="目标示例",TJt="学生徽章",jJt="空白天数",qJt="CSV 导入",NJt="分数段",PJt="许可证",RJt="切换教师",LJt="问题支架",MJt="培训",zJt="输入内容并按 Enter 键添加短期目标示例",DJt="导入用户",FJt="导入课堂反思",OJt="下载用户数据",GJt="是否要删除此助理?",BJt="是否要删除此辅导员?",VJt="是否要删除此支持教师?",HJt="发送",WJt="是否要删除此职位?",UJt="新文件夹",XJt="上传",YJt="输入要按文件名搜索的内容",ZJt="系统",JJt="创建模板系统",QJt="创建时间",KJt="是否要删除此模板?",eQt="OneRoster 设置",tQt="用户",_Qt="OneRoster 配置",sQt="端点 URL",nQt="客户端 ID",oQt="客户端密钥",aQt="导入 OneRoster",iQt="从 Zip 文件导入",rQt="从 Restful api 导入",cQt="不存在的用户",lQt="输入内容以搜索用户",dQt="为选定用户创建帐户",uQt="帮助",mQt="沙盒模式",hQt="关闭",gQt="恢复沙盒数据库",pQt="打开",fQt="关闭",yQt="恢复",wQt="编辑个人资料",vQt="按计划进行,进展顺利",bQt="指南",$Qt="让每一天都成为您的杰作。",kQt="始终如一",xQt="经常",IQt="有时",CQt="很少",SQt="不适用",AQt="一旦分配了作业和学习任务,我就会通过谷歌日历或计划器或组织器安排。",EQt="我保持一个干净、有序的系统来保存和复习每节课的实物笔记、讲义和资料包。",TQt="我保持一个干净、有序的系统来存储数字文件,以便我可以轻松找到所有文件。",jQt="我保持学校收件箱井然有序,不会错过任何重要的电子邮件。",qQt="我清楚地了解自己的优势。",NQt="我知道并了解老师如何在课堂上更好地帮助我。",PQt="我知道并了解我的便利设施。",RQt="我知道并了解我在课堂外实现理想学习的个性化系统和策略。",LQt="我知道并了解我在课堂内实现理想学习的个性化系统和策略。",MQt="我清楚地了解自己面临的挑战。",zQt="我清楚自己在课堂上的表现,并且知道该怎么做才能进步。",DQt="我有效地利用了课堂的前 25 分钟来实现我的目标。",FQt="我有效地利用了家庭作业/学习时间。",OQt="正在实现",GQt="重大进步",BQt="中等进步",VQt="轻微进步",HQt="无进步",WQt="应对压力情况",UQt="改善睡眠习惯",XQt="我会及时处理和应对困难情况,而不是逃避。",YQt="我会适当地使用技术。",ZQt="我在会议期间或会议后做笔记",JQt="我有效地为即将到来的评估做准备。",QQt="我按时完成并交所有作业。",KQt="我每晚睡眠时间充足。",eKt="我在课外与老师见面。",tKt="我在课内和/或课后提问。",_Kt="当需要时,我会让我的老师知道如何在课堂上更好地帮助我。",sKt="我在所有课程中提倡并使用我所需要的便利设施。",nKt="规划",oKt="与以前的学习建立联系",aKt="提供高质量的反馈",iKt="努力实现学习目标",rKt="设定或强化高期望",cKt="提高努力程度",lKt="自我评估",dKt="预测",uKt="寻求帮助的行为",mKt="反思",hKt="低",gKt="中低",pKt="中等的",fKt="中等偏上",yKt="高",wKt="您从这次讨论会中学到了多少?",vKt="您有什么想要分享的观察或反馈吗?",bKt="您目前做得好并且想继续做的是什么?",$Kt="在努力实现目标的过程中,您学到了什么?",kKt="英语语言或文学",xKt="语言课",IKt="山脊图",CKt="条形图",SKt="折线图",AKt="一天的开始",EKt="上午中段",TKt="午餐前",jKt="下午中段",qKt="当天最后一节课",NKt="仅限学生",PKt="仅限教师",RKt="学生是否已拥有这门课程所需的所有材料?",LKt="学生是否有遗漏任何作业?",MKt="学生是否完成了今天的课堂作业?",zKt="学生是否会在需要时寻求帮助?",DKt="请对学生的课堂参与度给予评分",FKt="请对学生的课堂表现给予评分",OKt="这些便利设施有多大用处?",GKt="您是否有任何可以分享的顾虑或学生成功经验?",BKt="完全没有",VKt="非常有帮助",HKt="未发送",WKt="幸福就是在精神上(在头脑中)和身体上(在身体中)感觉良好。您有习惯和惯例来帮助您照顾自己吗?有些人通过健康饮食、积极活动、花时间与朋友和家人在一起、做自己喜欢的事情或帮助他人来增进幸福感。",UKt="成长就是成为最好的自己。这需要通过学习、尝试新事物、努力工作和承担风险来实现。您对自己在实现目标和生活其他方面取得的进展感到满意吗?",XKt="关系是与他人的联系。良好的关系有信任、尊重、诚实和安全。您和家人、朋友和老师相处得怎么样?您有给您带来幸福的关系和可以交谈的人吗?",YKt="效率是指以更聪明的方式而不是更困难的方式完成任务。这意味着您知道需要做什么以及如何去做。今天做工作时,您能帮助自己集中注意力并完成任务吗?",ZKt="学业与您的学习有关,包括在学校和家里的学习。您每天都在做课堂作业和家庭作业吗?您的成绩是否向您的老师、父母甚至您自己展示了您学习的刻苦程度?",JKt="自我效能感是指您相信自己,相信自己能做好某件事。您对今天做得好的事情感到满意吗?您认为您能成功完成今天必须做的事情吗?",QKt="专注是指您专注于一项任务或一个人,不分心。如果您试图集中注意力听老师讲课,您只会想着老师在说什么。您今天能专心做任务吗?您能放空大脑去做作业吗?",KKt="幸福是一种美好的感觉,它可以来自您喜欢的任何事情,也可以来自对生活现状的总体满意。虽然不可能一直快乐,但您总能找到一些让您快乐的事情。今天有没有让您微笑的时刻?什么事情/人/活动给您带来快乐并让您感觉良好?",ee_="当您感到安全时,您不会感到害怕或处于危险之中。这意味着您在家里、学校以及您日常活动所到之处都感到舒适和快乐。您能做自己吗?您是否觉得人们关心您,您的想法和感受受到重视?",te_="适量的压力是件好事。压力过大会让人感到苦恼,让我们觉得自己失去了控制。压力过小则意味着我们没有投入或挑战。每个人承受的适量压力有助于我们实现目标并发挥出最佳水平。",_e_="看了今天的答案后,您准备好完成课堂上要求您完成的任务了吗?还是需要帮助才能进入良好的学习状态?做好学习准备意味着您的身心共同努力,让您做好学习新知识的准备,并加深对已学知识的理解。",se_="我们今天的谈话有多大帮助?",ne_="自豪是指您对自己做过的事情或自己感到满意。您对自己今天的行为有多满意或高兴?",oe_="您会继续做好或开始以不同方式做的一件事是什么?或者您对自己、他人或世界有什么了解?",ae_="能量提供力量和能力去做某事。这可以是身体上的,比如跑步比赛,也可以是精神上的,比如参加评估。您觉得您有足够的能量度过这一天吗?您现在对自己的能量水平感觉如何?",ie_="学生尚未开始此签到。您确定要删除吗?",re_="挣扎中,需要支持",ce_="一些健康问题",le_="一般还好",de_="大多数健康问题都很好",ue_="感觉很好",me_="没有进步",he_="意识到我的目标,但进展不大",ge_="取得一些进展",pe_="总体上发展良好",fe_="各领域均实现大幅进展",ye_="一个或多个关键关系非常困难",we_="一个或多个关键关系有点棘手",ve_="大多数关键关系是积极的",be_="所有关键关系都是积极的",$e_="一点也不高效",ke_="拖延",xe_="满足一些截止日期",Ie_="满足大多数截止日期",Ce_="轻松满足所有截止日期",Se_="重大挑战",Ae_="某些领域有困难",Ee_="在某些领域达到目标",Te_="在大多数领域达到目标",je_="在所有领域达到目标",qe_="非常缺乏信心",Ne_="缺乏一些自信",Pe_="发展和改进",Re_="感觉积极",Le_="超级自信",Me_="总是心不在焉",ze_="大部分时间心不在焉",De_="有时心不在焉",Fe_="一般专注",Oe_="极度专注",Ge_="精疲力竭",Be_="经常疲倦",Ve_="感觉还好",He_="精力充沛",We_="大部分时间不开心",Ue_="精力充沛!",Xe_="有时不开心",Ye_="积极因素多于消极因素",Ze_="总体上快乐",Je_="几乎一直乐观积极",Qe_="处于危险之中",Ke_="感觉不安全",et_="有些担忧",tt_="感觉安全",_t_="非常安全有保障",st_="中等",nt_="非常高",ot_="概念转变对话对您的学习进步有多大帮助?",at_="在本会话中讨论寻求帮助的方法对您的学习进步有多大帮助?",it_="在本会话中重点专注设定或强化高期望对您的学习进步有多大帮助?",rt_="一点",ct_="很多",lt_="会话后",dt_="自豪感高",ut_="自豪感低",mt_="您在想什么?",ht_="全选",gt_="态度",pt_="行为",ft_="协作",yt_="信心",wt_="创造力",vt_="开发创意",bt_="锻炼",$t_="完成任务",kt_="灵活性",xt_="冲动控制",It_="倾听",Ct_="长期记忆",St_="数学",At_="材料组织",Et_="处理速度",Tt_="阅读",jt_="设定和实现目标",qt_="短期记忆",Nt_="睡眠卫生",Pt_="口语",Rt_="开始任务",Lt_="压力和焦虑",Mt_="学习",zt_="时间管理",Dt_="职业道德",Ft_="写作",Ot_="高期望",Gt_="当我对自己设定高期望并鼓励我做超出最低期望的事情时,我的学习效果最好。",Bt_="当我认识到自己的成功并有机会庆祝进步和成就时,我的学习效果最好。",Vt_="将学习与先前的知识相结合",Ht_="当我把新学到的重要知识与以前学到的知识联系起来时,我的学习效果最好。",Wt_="学习者自我评估",Ut_="当我通过指导提示、评分标准和/或支持自我评估我的学习时,我的学习效果最好。",Xt_="学习目标",Yt_="当我制定了短期和长期目标,并知道自己在实现这些目标方面的进展时,我的学习效果最好。这可能还包括养成帮助我实现目标的习惯和和惯例。",Zt_="规划和预测",Jt_="当我计划未来的行动并预测这些行动将导致什么结果时,我的学习效果最好。",Qt_="质量反馈",Kt_="当我知道什么是好的工作、我的工作与好的工作相比如何以及我需要做些什么来改进我的工作以使其变得更好时,我的学习效果最好。",e__="当我有时间反思自己的学习或老师强调学习机会并提供反思时间时,我的学习效果最好。",t__="当我了解围绕某个概念的谬论和误解以及它们为何不正确时,我的学习效果最好。当老师纠正对我的思维和/或不准确的自我评估的误解时,这也很有用。",___="当我被鼓励寻求帮助时,我的学习效果最好,无论是学术支持、指导、建议、医疗援助、社会/情感支持等。",s__="目标",n__="会话重点",o__="本次会话的主要重点是什么?",a__="学术",i__="评估和家庭作业",r__="自定义",c__="一般",l__="习惯和策略",d__="组织和规划",u__="学校/生活平衡",m__="睡眠习惯",h__="社交媒体(抖音、Instagram、Youtube、Pinterest 等)",g__="角色扮演游戏(D&D、魔兽世界、探路者等)",p__="环境(全球变暖、可持续性等)",f__="动漫(我的英雄学院、全职猎人、海贼王等)",y__="日本漫画",w__="图文小说",v__="漫画",b__="政治",$__="电视剧(《怪奇物语》、《心跳漏一拍》、《美颜大师》等)和电影(《怪物史莱克》、漫威系列、《魔法奇缘》等)",k__="音乐",x__="Bluey",I__="贴纸",C__="天气",S__="宗教",A__="灵性",E__="新闻/时事",T__="体育",j__="咖啡文化/咖啡",q__="时装设计",N__="未来主义(工程、设计等)",P__="科幻小说",R__="健康(冥想、正念、等)",L__="喜剧",M__="新闻",z__="化妆",D__="美学(Cottagecore、Dark Academia、Fairycore 等)",F__="汽车文化 (赛车、摩托车、摩托车等)",O__="诗歌/即兴诗歌",G__="恐怖与悬疑",B__="滑雪/单板滑雪",V__="骑马",H__="魔术",W__="科学 (生物学、化学、物理学等)",U__="我的世界",X__="平面设计",Y__="生存/准备",Z__="植物学",J__="电影研究",Q__="急救人员 (消防、EMS/EMT、警察等)",K__="动物 (家养、救援等)",es_="动物 (大型、野生等)?",ts_="海洋生物学",_s_="视频游戏 Youtubers",ss_="Hello Kitty",ns_="表情包",os_="可妮和布朗",as_="口袋妖怪",is_="选择重要优势或在此处输入重要优势",rs_="我学习最高效的时候是",cs_="我学习最困难的时候是",ls_="当老师让我的学习更容易时,他们…",ds_="当老师让我的学习更困难时,他们…",us_="如果您是老师,并且发现我在课堂上学习困难,您可以通过以下方式帮助我…",ms_="我从中学到最多的作业是…",hs_="我有时觉得太有挑战性的作业是",gs_="分块任务",ps_="当老师将大任务或项目分解成较小的步骤并估算(或帮助我估算)每个步骤所需的时间时,我的学习效果最好。",fs_="时间管理,开始任务,完成任务,计划",ys_="小块学习",ws_="当老师将新知识分解成更小的信息块,然后有机会复习所学知识并找出学习中的差距时,我的学习效果最好。",vs_="短期记忆、保持专注、控制冲动、自我意识、倾听、处理速度",bs_="休息",$s_="当老师在每节课中安排短暂的休息时,我的学习效果最好。",ks_="时间管理、完成任务、保持专注、控制冲动、态度、压力与焦虑、职业道德",xs_="快乐笔记首页",Is_="当老师发来积极的便条、电子邮件或打电话回家庆祝我的成长时,我的学习效果最好。",Cs_="完成任务、设定和实现目标、态度、行为、信心、职业道德",Ss_="注重成长",As_="当老师关注我的成长和进步而不是整体成就时,我的学习效果最好。",Es_="自信、设定和实现目标、压力和焦虑",Ts_="避免成为焦点",js_="当老师避免让我成为众人瞩目的焦点,并在我需要演讲时给我空间和时间准备时,我的学习效果最好。此外,如果可,我应该被允许进行录制演讲,而不是亲自演讲。",qs_="压力和焦虑、演讲、处理速度",Ns_="频繁检查",Ps_="当老师经常私下检查我以确保我进度时,我的学习效果最好。这也有助于我在课堂上感到安全和得到支持。(检查的思路包括使用便签系统、无声信号和在桌边低语,但我们可以一起商定一些事情)。",Rs_="压力与焦虑、处理速度、任务启动、发展想法、规划、完成任务、短期记忆、保持专注、自我倡导、自我意识",Ls_="建立融洽关系",Ms_="当老师注重与老师和同学建立关系时,我的学习效果最好 - 创建一个让我感到联系紧密和受到重视的关爱社区。",zs_="压力与焦虑、行为、态度、信心",Ds_="明确的优先顺序",Fs_="当老师分享必须做、推荐或可选的活动时,我的学习效果最好。",Os_="规划、处理速度、完成任务、倾听、阅读、写作、压力与焦虑、职业道德、学习",Gs_="计划过渡",Bs_="当老师预演并帮助我和其他学生为安全演习、活动变化或其他课堂过渡做好准备时,我的学习效果最好。",Vs_="时间管理、规划、完成任务、压力与焦虑、行为、灵活性",Hs_="选择",Ws_="当老师提供尽可能多的选择时,我的学习效果最好。",Us_="态度、行为、职业道德",Xs_="运动",Ys_="当老师在课堂中提供大量有计划的身体活动或运动机会时,我的学习效果最好。",Zs_="冲动控制、保持专注",Js_="非语言提示",Qs_="当老师尽可能用非语言提示来引导我,而不是用语言来引导我时,我的学习效果最好。",Ks_="保持专注、自我意识、态度、行为、压力与焦虑、信心",en_="限制直接指导",tn_="当老师缩短讲话时间并允许我按照自己的节奏使用最适合我的材料学习时,我的学习效果最好。",_n_="短期记忆、保持专注、冲动控制、倾听、行为、处理速度",sn_="常规",nn_="当老师设定并保持一致的常规时,我的学习效果最好。如果我们需要改变常规,我会提前知道这些变化。",on_="时间管理、规划、完成任务、压力与焦虑、行为、灵活性、开始任务",an_="多模式学习",in_="当老师帮助我们通过多种方式学习时,我的学习效果最好,包括阅读、聆听、观看和实践。基本概念不会只用一种方法来教授。",rn_="保持专注、聆听、阅读、写作、数学、协作、处理速度",cn_="灵活的评估",ln_="当老师为我创造多种选择来展示我的学习成果时,我的学习效果最好。",dn_="聆听、阅读、写作、数学、口语、压力与焦虑、协作、处理速度、学习",un_="灵活的反馈",mn_="当老师定期给我反馈时,我的学习效果最好,这样我就能知道自己的表现如何,以及我可以做些什么来继续改进。",hn_="规划、保持专注、自我意识",gn_="预学习",pn_="当老师提供早期学习新概念的机会(例如早期获得资源)时,我的学习效果最好。",fn_="时间管理、写作、阅读、数学、压力与焦虑、处理速度",yn_="理解检查",wn_="当老师经常检查我是否理解了新知识时,我的学习效果最好。",vn_="开始任务、短期记忆、保持专注、控制冲动、自我主张、倾听、处理速度",bn_="评分标准",$n_="当老师尽早提供学习评分标准并经常参考时,我的学习效果最好。这些评分标准帮助我了解我需要什么才能在不同的表现水平上展示我的学习成果。",kn_="学习、职业道德、自信、压力与焦虑、自我主张、时间管理、规划、完成任务",xn_="图形组织器",In_="当老师使用图形组织器帮助我理解我们正在学习的内容时,我的学习效果最好。",Cn_="倾听、阅读、写作、处理速度、短期记忆、发展想法、规划",Sn_="视觉效果",An_="当老师使用大量视觉效果(图表、信息图、图片等)帮助我理解我们正在学习的内容时,我的学习效果最好。",En_="短期记忆、保持专注、倾听、阅读、处理速度",Tn_="句子词干",jn_="当老师为书面作业提供句子词干和写作提示时,我的学习效果最好。",qn_="发展想法、规划、开始任务、写作",Nn_="思考时间",Pn_="当我有充足的时间思考后再回答问题时,我的学习效果最好。",Rn_="发展思路、处理速度、口语",Ln_="清晰的指示",Mn_="当老师将指令分解成小步骤、使用简单的词汇并检查以确保我理解指令时,我的学习效果最好。",zn_="时间管理、规划、开始任务、完成任务、短期记忆、保持专注、倾听、处理速度",Dn_="分享词汇",Fn_="当老师在我们学习新信息之前提供新词汇并提供学习词汇的机会时,我的学习效果最好。",On_="短期记忆、长期记忆、倾听、阅读、处理速度",Gn_="创意库",Bn_="当老师提供一份预先准备好的想法列表供我选择时,我的学习效果最好。",Vn_="发展思路、开始任务、时间管理",Hn_="范例",Wn_="当老师提供不同绩效水平下成功完成的工作的示例时,我的学习效果最好。",Un_="发展思路、规划、开始任务、学习",Xn_="组织时间",Yn_="当老师允许我组织材料和/或计划下一步时,我的学习效果最好。",Zn_="时间管理、材料组织、发展想法、规划、开始任务、压力和焦虑",Jn_="当老师安排定期一对一时间与我交流时,我的学习效果最好。",Qn_="多模式答案",Kn_="当我能够通过多种方式展示我的理解时,我的学习效果最好,例如素描、演示或制作一段传递信息的短视频。",eo_="开始任务、完成任务、自我倡导、长期记忆",to_="同伴教学小组工作",_o_="当我可以与同伴一起教学或练习时,我的学习效果最好。",so_="学习、聆听、处理速度、长期记忆",no_="额外时间完成评估",oo_="额外时间处理口头信息和指示",ao_="根据需要额外休息",io_="使用计算机(无互联网访问)或文字处理器进行评估",ro_="评估的音频版本",co_="访问阅读器进行评估",lo_="语音转文本软件进行评估",do_="访问抄写员进行评估",uo_="对评估答案进行音频录制",mo_="将较长的限时评估分为几天进行",ho_="在安静且干扰较少的房间进行测试",go_="在小组环境中进行测试",po_="分配学生最有可能学习最好的座位",fo_="在课堂上使用感官工具",yo_="特殊照明",wo_="使用计算机或文字处理器做笔记",vo_="使用通常不允许使用的计算器",bo_="使用拼写词典或拼写检查器",$o_="课堂笔记的副本",ko_="任何说明的书面副本",xo_="用视觉和图形来配合口头传达的任何新信息",Io_="录制课程的能力",Co_="将文本大小增加到更大的格式",So_="学习新信息时,提供除阅读之外的其他替代格式",Ao_="学习新信息时,提供除聆听之外的其他替代格式",Eo_="太棒了!让我们建立您的目标。",To_="您希望自己的学习有什么不同?选择一个类别或输入您自己的想法。",jo_="选择我的目标领域",qo_="不错的选择!您想在哪个幸福领域努力?",No_="让我们更具体一点!选择一个领域或输入您自己的想法。",Po_="为您的目标添加更多细节",Ro_="记住,目标应该是 SMART!",Lo_="具体、可衡量、可实现/雄心勃勃、相关和基于时间",Mo_="完美!让我们缩小范围。是时候为您的目标添加更多细节了。",zo_="选择一个目标或输入您自己的目标。",Do_="现在,让我们选择您的目标。",Fo_="您打算如何实现这个目标?",Oo_="自定义以下选项或输入您自己的选项。这些将成为您的短期目标。",Go_="继续!",Bo_="添加目标",Vo_="您现在在哪里?目前这对您来说是什么样子的?",Ho_="这有助于您跟踪您的进度。",Wo_="完成了!",Uo_="我会创建一个睡眠习惯。",Xo_="我会设置闹钟来提醒我开始日常活动。",Yo_="我会在睡觉前 1 小时把电子设备收起来。",Zo_="我会在睡觉前 1 小时将手机设置为专注或请勿打扰模式,直到早上闹钟响起。",Jo_="我会在睡觉前 1 小时选择放松的活动,例如阅读、冥想、瑜伽或听音乐。",Qo_="我每天会在同一时间起床。",Ko_="我每天早上只会按一次贪睡键。",ea_="我会在睡觉前把所有东西准备好,为第二天做好准备",ta_="我会按时睡觉。",_a_="这周5 次中,我会至少做 4 次。",sa_="我会准时起床。",na_="我会为早晨制定一个简短的例行程序,让我对这一天感到兴奋。",oa_="我会设置一个闹钟,提醒我在睡觉前 1 小时准备睡觉。",aa_="我会设置一个早晨闹钟,让我有充足的时间准备去上学。",ia_="我会在睡觉前阅读 20 分钟。",ra_="我会在睡觉前冥想或听轻松的音乐。",ca_="我会制定一个早晨例行程序来为新的一天做好准备。",la_="我会研究制定晨间日常活动的想法。",da_="我会向老师或其他人介绍我的想法。",ua_="我会在纸上或手机上规划我的日常活动。",ma_="我会每天早上同一时间开始我的日常活动。",ha_="我会制定一个晚间日常活动,让我准备好上床睡觉。",ga_="我会研究制定晚间日常活动的想法。",pa_="本周 5 个上学日中,我会有 5 个晚上会做这个日常活动。",fa_="我每晚至少会睡 8 个小时。",ya_="我会练习冥想。",wa_="我会找到/选择一个冥想应用程序或资源来使用。",va_="我会挑战自己连续冥想 x 天。",ba_="我会选择一个每日冥想时间并设置闹钟来提醒我。",$a_="本周,我会在 x 天中至少冥想 x 天",ka_="我会开始锻炼。",xa_="我会每周找一个朋友一起锻炼。",Ia_="我会选择要添加到日常活动中的锻炼类型。",Ca_="我会与朋友或值得信赖的成年人分享我的日常活动。",Sa_="我会将锻炼时间添加到我的计划表或日历中。",Aa_="我会每天锻炼。",Ea_="本周,我会至少在 x 天中锻炼 x 天",Ta_="我会了解自己压力的根源。",ja_="我会与我的老师或辅导员谈论困扰我或让我有压力的事情。",qa_="我会找出并和我信任的人谈论我的感受",Na_="当我感到压力时,我会停下来找出造成压力的原因。",Pa_="我会了解什么是我的控制范围之内,什么不是。",Ra_="当我接近潜在的压力情况时,我会承认这一点",La_="我会学习应对技巧。",Ma_="我会与我的老师或辅导员讨论他们认为对我有帮助的应对技巧。",za_="当我感到压力时,我会选择一种应对技巧来练习。",Da_="本周,当我感到压力时,我会使用 x 次应对策略",Fa_="我会开始记录我的想法和感受。",Oa_="本周,我会至少在 x 天中这样做 x 天。",Ga_="我会到户外或大自然中去。",Ba_="我会抽出时间做一些有趣的事情。",Va_="我会抽出时间保持静止和安静。",Ha_="提高我的正念",Wa_="我会在一天中短暂休息。",Ua_="我会决定哪种休息对我最有帮助。",Xa_="我会设置闹钟提醒自己休息一下。",Ya_="我会每小时休息一次。",Za_="我会每 90 分钟休息一次。",Ja_="我每天会休息 X 次",Qa_="创造放松的机会",Ka_="我会使用可视化来帮助我放松。",ei_="我会学习可视化。",ti_="我会设置闹钟提醒我练习可视化。",_i_="我会按照自己的意愿决定这个练习",si_="我会做深呼吸练习。",ni_="我会研究和学习呼吸练习来尝试。",oi_="我会设置闹钟来提醒我进行呼吸练习。",ai_="我会听轻松的音乐。",ii_="我会找到或创建一个我觉得放松的播放列表。",ri_="我会将听音乐添加到我的晚间日常活动中。",ci_="我会练习瑜伽。",li_="我会找到一个课程、youtube 频道或应用程序来使用。",di_="我会挑战自己连续 x 天练习瑜伽。",ui_="我会每天选择一个时间练习瑜伽,并设置闹钟提醒我。",mi_="我会做一个令人愉快的艺术项目。",hi_="我会找一个放松的艺术活动来尝试。",gi_="我每周都会选择一个时间进行艺术创作并设置提醒。",pi_="我会告诉别人我的新艺术项目",fi_="保持健康",yi_="我会多锻炼。",wi_="我会加入运动队或俱乐部。",vi_="我会了解学校有哪些活动。",bi_="我会选择一个我感兴趣的。",$i_="我会处理所有加入文件。",ki_="我会参加试训或申请流程。",xi_="我会参加所有练习。",Ii_="我会学习一项新运动或活动。",Ci_="我会研究可能让我感兴趣的新运动或活动。",Si_="我会选择一项新的运动或活动来学习。",Ai_="我会看看我认识的人是否愿意和我一起尝试这项新活动。",Ei_="我会收集学习这项活动所需的装备。",Ti_="我会研究这项活动的规则和方法。",ji_="我会找到参与这项活动的团体并加入",qi_="我会研究我感兴趣的潜在挑战。",Ni_="我会选择一个挑战来完成。",Pi_="我会每周或每天设定一个时间来做这个挑战。",Ri_="我会设置闹钟来提醒我完成这个挑战",Li_="我会报名参加一场比赛。",Mi_="我会研究未来几个月在我所在地区举行的不同比赛和活动。",zi_="我会选择其中一项,并与我的父母/监护人讨论参与事宜。",Di_="如果得到父母/监护人的许可,我会报名。",Fi_="我会制定训练计划来为比赛做准备。",Oi_="我会为训练计划设置提醒",Gi_="我会制定家庭锻炼计划。",Bi_="我会盘点我在家中可以使用的健身器材。",Vi_="我会研究在家中可以使用哪些器材进行哪些常规锻炼和运动。",Hi_="我会找到一个有关锻炼的 YouTube 频道或应用程序。",Wi_="我会为日常锻炼制定时间表。",Ui_="我会为日常锻炼设置提醒",Xi_="我会加入并去健身房。",Yi_="我会研究我所在地区的健身房。",Zi_="我会选择一家我能支付费用并获得父母/监护人许可的健身房。",Ji_="我会去健身房并获得会员资格。",Qi_="我会了解健身房提供的设备、项目和课程。",Ki_="我会决定我去健身房时的日常锻炼计划。",er_="我会在手机上安排去健身房的时间。",tr_="我会在本周的 x 天中去 x 天健身房",_r_="吃得更健康",sr_="我会在饮食中添加更多水果和蔬菜。",nr_="当我外出就餐时,我会用 x 代替 x。",or_="我会限制含糖饮料的摄入量。",ar_="我会多喝水。",ir_="每个上学日我会给水瓶装满 x 次水",rr_="我会学会做简单的饭菜。",cr_="我会去商店购买清单上缺少的食材。",lr_="我会按照食谱做,并与家人或朋友分享我的饭菜。",dr_="提高我的守时能力(不迟到上学/上课)",ur_="我会在早上的日程安排中添加缓冲时间,以确保按时到校。",mr_="我会在手机上设置闹钟或日历提醒,提醒我去上下一节课。",hr_="我会设置一个闹钟,在需要去学校前 5 分钟提醒我。",gr_="我会将学校日程表放在计划表或手机上。",pr_="交朋友",fr_="我会加入俱乐部或运动队。",yr_="我会参加所有的练习或会议",wr_="我会找到有共同兴趣的人。",vr_="我会邀请某人在校外一起出去玩。",br_="我会参加我受邀参加的活动或聚会。",$r_="我会和我想进一步了解的人共进午餐。",kr_="我会学习一些适当的问题来问别人,以便更好地了解他们。",xr_="我会学习如何更多地参与对话。",Ir_="我会思考我想要什么样的朋友。",Cr_="我会思考成为一个好朋友意味着什么。",Sr_="我会和别人分享这些想法。",Ar_="加入俱乐部/运动",Er_="我会选择一个俱乐部加入。",Tr_="我会参加所有的会议",jr_="我会选择一项运动来尝试。",qr_="学习一项新活动",Nr_="我会选择一项新活动来学习。",Pr_="我会收集学习这项活动所需的用品。",Rr_="本周我会至少练习或参加 x 次新活动。",Lr_="改进作业",Mr_="我会按时交作业。",zr_="我会交高质量的作业。",Dr_="完成长期作业(有计划且有进展)",Fr_="我会为长期项目制定学习/工作计划",Or_="为考试而学习(常规和有效的学习策略)",Gr_="我会为考试制定学习/工作计划",Br_="在课堂上做笔记(高质量、有条理)",Vr_="我会在课堂上做笔记(数字/纸质),并将它们整理到文件夹/笔记本中,用于我的每一门核心/关键课程。",Hr_="我会研究做笔记的方法",Wr_="将 x 科目的成绩提高 x 倍",Ur_="我会额外复习课堂材料(除了/以及/不包括家庭学习)",Xr_="每周在 x 科目上学习 x 次/小时 x 时间",Yr_="提前完成工作并根据说明/评分标准进行检查,然后进行编辑",Zr_="提高家庭学习作业的质量/成绩",Jr_="创建定期的学习/家庭作业时间表",Qr_="我会制定一周的计划,详细列出学习的日子、时间以及到某天要学习多长时间。",Kr_="改善电子邮件、Google Drive、日历或计划器组织",ec_="我会每周至少检查 x 次收件箱/未读电子邮件,并在必要时回复。",tc_="我会创建文件夹/标签并将电子邮件组织到正确的文件夹中。",_c_="我会为每个主题创建文件夹并将文档组织到正确的文件夹中。",sc_="为重要事件/截止日期/学习时间创建提醒或日历活动",nc_="我会立即或尽快为最重要的事件/截止日期或学习会话创建提醒或日历活动。",oc_="创建长期作业计划",ac_="我会评估我的进度并调整在 x 日期之前学习的时间。",ic_="改善我的待办事项列表习惯",rc_="我会立即或尽快将任务添加到我的待办事项列表中,并每周查看 3 次",cc_="我会为长期作业制定一个时间表,详细说明学习日期、时间以及在 x 日之前要学习多长时间。",lc_="我会在课堂上做笔记(电子/纸质),并将它们整理到文件夹/笔记本中,用于所有课程。",dc_="在课堂上将设备关闭、静音或收起来",uc_="将设备关闭、静音或收起来",mc_="在学习期间将设备关闭、静音或收起来",hc_="我会创建一个过渡学习时间的例程。",gc_="在手机上设置时间表,以便在上课期间集中注意力或不受打扰",pc_="在手机上设置时间表,以便在计划的学习时间内集中注意力或不受打扰",fc_="减少或限制在社交媒体上花费的时间",yc_="我会在我的应用程序或网站上设置时间限制。",wc_="当我在休息期间使用社交媒体时,我会设置一个计时器",vc_="增加课堂参与度",bc_="避免在课堂上浏览网站或做其他分散注意力的事情",$c_="我会注意课堂上的指示。",kc_="我会积极参与课堂活动。",xc_="我会更多地参与课堂活动。",Ic_="我会在课堂上提出与主题相关的问题,以提高我的理解/学习。",Cc_="我会自愿在课堂上回答更多问题。",Sc_="避免分散注意力的网站",Ac_="我会通过 chrome 扩展程序为分散注意力的网站设置时间限制。",Ec_="我会关闭所有与我的任务无关的标签。",Tc_="在需要时获得帮助",jc_="当我需要帮助时,我会在课外与老师见面",qc_="当我需要帮助时,我会给老师发电子邮件",Nc_="当我不知道该做什么时,我会在课堂上提问",Pc_="了解我的便利设施",Rc_="我会了解并理解我的便利设施",Lc_="当我在课堂上需要便利设施时,我会要求便利设施",Mc_="当我不再需要便利设施时,我会告诉我的案例经理。",zc_="当我觉得我需要额外或不同的便利设施时,我会与我的案例经理交谈。",Dc_="拖延",Fc_="提前计划",Oc_="我会每周花费 x 次时间在长期项目上",Gc_="我会在周一或之前的周五计划本周的任务",Bc_="当课堂上分配任务时,我会将任务添加到我的计划器中",Vc_="任务启动",Hc_="我会在给定的日期开始做任务,并在时间允许的情况下完成",Wc_="我会提前或在到期前完成任务",Uc_="我的想法和感受很重要。",Xc_="今天",Yc_="本周",Zc_="本月",Jc_="男",Qc_="女",Kc_="输入内容以搜索学生",el_="为选定的学生分配",tl_="助理电子邮件",_l_="辅导员电子邮件",sl_="支持教师电子邮件",nl_="添加新答案",ol_="编辑模板",al_="添加问题",il_="编辑电子邮件模板",rl_="联系邮件",cl_="公告",ll_="时间表信息",dl_="欢迎新教师/助理",ul_="联系请求",ml_="欢迎新教师",hl_="欢迎新学生",gl_="欢迎新助理",pl_="欢迎新家长",fl_="欢迎新 eduTeacher",yl_="忘记密码",wl_="欢迎新辅导员",vl_="用户名字",bl_="用户姓氏",$l_="密码",kl_="消息",xl_="域",Il_="基本版",Cl_="高级版",Sl_="企业版",Al_="您确定要请求更改为此计划吗?",El_="图像",Tl_="音频",jl_="文档",ql_="视频",Nl_="每 1 分钟自动保存",Pl_="无用户显示",Rl_="在 0-10 的范围内,您向朋友或同事推荐我们的可能性有多大?",Ll_="完全不可能",Ml_="极有可能",zl_="UWCSEA-SG 气候调查:与成人和同龄人的联系",Dl_="UWCSEA-SG 气候调查:您需要一些额外的帮助或支持吗?",Fl_="UWCSEA-SG 气候调查:我的健康和幸福感",Ol_="UWCSEA-SG 气候调查:开放式问题",Gl_="UWCSEA-SG 气候调查:整体学习体验",Bl_="通过 csv 导入电子邮件",Vl_="单选",Hl_="多选",Wl_="文本输入",Ul_="情感",Xl_="总结",Yl_="评分",Zl_="学习策略",Jl_="下拉菜单",Ql_="幸福感_干预",Kl_="SDQ 标准",ed_="多样性、公平、包容和正义",td_="气候调查",_d_="干预-安全",sd_="干预-压力",nd_="家庭安全",od_="幸福感",ad_="抑郁问题",id_="1 级学习者-目标讨论会",rd_="1 级学习者-平衡讨论会",cd_="1 级学习者-学习习惯及态度讨论会",ld_="2 级学习者-数字公民",dd_="1 级学习者-数字公民",ud_="2 级学习者-沟通",md_="1 级学习者-沟通",hd_="2 级学习者-协作",gd_="1 级学习者-协作",pd_="2 级学习者-自我导向学习",fd_="2 级学习者-自我管理技能",yd_="1 级学习者-自我管理技能",wd_="2 级学习者-自我倡导",vd_="1 级学习者-自我倡导",bd_="2 级学习者-自我意识",$d_="1 级学习者-自我意识",kd_="2 级学习者-学习和学习技能",xd_="1 级学习者-学习和学习技能会话",Id_="2 级学习者-组织",Cd_="1 级学习者-组织会话",Sd_="2 级学习者-目标讨论会",Ad_="2 级学习者-习惯和学习态度讨论会",Ed_="2 级学习者-平衡讨论会",Td_="2 级学习者- 目标会话",jd_="1 级学习者- 目标会话",qd_="2 级学习者- 学习策略会话",Nd_="2 级学习者- 学术会话",Pd_="1 级学习者- 学术会话",Rd_="2 级学习者-习惯和学习态度会话",Ld_="1 级学习者- 习惯和学习态度会话",Md_="2 级学习者- 一般会话",zd_="1 级学习者- 一般会话",Dd_="社交和情感学习",Fd_="课后反思问题",Od_="冲动控制/自我监控",Gd_="计划/问题解决",Bd_="教师自我效能感 (TSES)",Vd_="一般学习策略 (GSL)",Hd_="集中注意力",Wd_="记忆",Ud_="负责任决策",Xd_="社交意识",Yd_="人际关系技巧",Zd_="习惯和学习态度 (HAL)",Jd_="会议结束问题",Qd_="生活技能",Kd_="健康与健身",eu_="执行功能",tu_="学习技巧",_u_="元认知自我调节",su_="教育满意度",nu_="默认会话问题",ou_="测试问题类别 1",au_="您是寄宿生还是走读生?",iu_="在做出决定之前,我会考虑后果",ru_="您是否有以下任何一种情况:学习障碍(例如阅读障碍、注意力缺陷多动障碍)、长期疾病/健康状况、身体/视觉/听力障碍、社交/行为障碍(例如自闭症、图雷特氏综合症)。",cu_="您如何描述您的宗教信仰?",lu_="您如何描述您的性取向?",du_="我积极追求符合我的激情和价值观的活动。",uu_="我总是有人陪我吃午饭。",mu_="我独处的次数比我想要的要多。",hu_="我对我在学校取得的成绩很满意。",gu_="学业 家庭作业、学习和成绩",pu_="成长 改善学习习惯、成绩、运动、俱乐部或个人项目",fu_="生产力 完成重要任务并减少干扰",yu_="关系 家人、朋友和老师",wu_="还有什么想告诉老师的吗?",vu_="您带了这堂课所需的东西吗?",bu_="您完成了今天课程的所有课堂作业吗?",$u_="上课时您准备好材料了吗?",ku_="这堂课您还有什么未完成的作业吗?",xu_="批量分配",Iu_="批量分配学生",Cu_="说明",Su_="姓名为必填项",Au_="说明为必填项",Eu_="添加项目",Tu_="会议评分标准项目为空",ju_="空白行或列",qu_="问题列表",Nu_="问题是必填项",Pu_="选择技能",Ru_="输入并按 Enter 添加新行",Lu_="是否要删除此行?",Mu_="您想删除此自定义提醒吗?",zu_="成功删除自定义提醒",Du_="是否要删除此技能?",Fu_="成功​​删除技能",Ou_="是否要删除此主题?",Gu_="成功删除主题",Bu_="是否要删除此学习支持类别?",Vu_="成功删除学习支持类别",Hu_="您想删除此学习策略吗?",Wu_="成功删除学习策略",Uu_="无法删除问题",Xu_="您想删除此目标示例吗?",Yu_="成功删除问题",Zu_="您想删除此徽章吗?",Ju_="成功删除徽章",Qu_="您想删除这个空白日吗?",Ku_="成功删除空白日",em_="您想删除此分数吗?",tm_="成功删除分数",_m_="已使用",sm_="时间 OneRoster Sync (HH)",nm_="小文本",om_="中文本",am_="大文本",im_="编辑家长 1 信息",rm_="编辑家长 2 信息",cm_="最后一对一",lm_="您如何评价实现此目标的机会?",dm_="添加姓名",um_="活动列表",mm_="选择学年",hm_="一些员工",gm_="员工",pm_="您今天怎么样?",fm_="今天的课程的目的或重点是什么?",ym_="标题 1",wm_="标题 2",vm_="标题 3",bm_="标题 4",$m_="标题 5",km_="标题 6",xm_="保持专注",Im_="文本输入问题",Cm_="与去年相比",Sm_="离开页面",Am_="本次会话反思对您的学习进步有多大帮助?",Em_="上次一对一对话",Tm_="学生已开始本次讨论会。您确定要删除吗?",jm_="学生已开始本次签到。您确定要删除吗?",qm_="学生尚未开始本次一对一。您确定要删除吗?",Nm_="我的便利设施",Pm_="便利设施设置",Rm_="添加新便利设施",Lm_="打印我的便利设施",Mm_="我的学习进度",zm_=`回复比较\r
5
- `,Dm_="下拉菜单和口头问答",Fm_="MARIO 工具",Om_="自定义",Gm_="技术设置",Bm_="数据导入/导出",Vm_="非活跃学生",Hm_="每周任务",Wm_="管理员一般提示",Um_="学校使用",Xm_="总对话时间",Ym_="课堂总反思",Zm_="牌号用途",Jm_="总对话数",Qm_="模仿",Km_="你好",eh_="过渡计划",th_="更新于",_h_="打印我的学习计划",sh_="打印学生学习计划",nh_="打印我的过渡计划",oh_="关于我",ah_="说出你的兴趣",ih_="添加更多您感兴趣的细节",rh_="引起兴趣",ch_="查看 PLP",lh_="查看当前 PLP",dh_="我的学习策略",uh_="添加新兴趣",mh_="添加新挑战",hh_="增添新力量",gh_="添加新想法",ph_="添加新成员",fh_="添加新工具",yh_="添加新策略",wh_="添加新梦想",vh_="我的支持网络",bh_="添加人员",$h_="更亲密的家庭",kh_="家庭",xh_="导师",Ih_="导师",Ch_="我的时间线",Sh_="添加里程碑",Ah_="添加测试",Eh_="学院",Th_="添加学院",jh_="我的转型计划",qh_="学术里程碑",Nh_="测试",Ph_="学术和职业兴趣",Rh_="您尚未添加任何兴趣",Lh_="添加计划",Mh_="课外活动",zh_="添加新活动",Dh_="培训班",Fh_="添加新课程",Oh_="添加新学院",Gh_="参考",Bh_="我的未来资源",Vh_="添加新资源",Hh_="我的论文",Wh_="添加文章",Uh_="学习档案",Xh_="添加投资组合",Yh_="金融计划",Zh_="添加新计划",Jh_="每页行数",Qh_="匿名链接",Kh_="选择问题的评分",eg_="选择响应分布",tg_="每次只能选择一个问题",_g_="答案数量",sg_="我的兴趣",ng_="我想了解更多",og_="我的优势",ag_="我的挑战",ig_="我情不自禁地",rg_="我的老师可以帮助我",cg_="其他可以帮助我的人是",lg_="可以帮助我的工具/事物是",dg_="我的目标",ug_="我的目标和计划",mg_="我的希望和梦想",hg_="缺少成绩",gg_="成绩必须等于或高于 1 级",pg_="您尚未添加任何挑战",fg_="您尚未添加任何优势",yg_="您尚未添加任何想法",wg_="您尚未添加任何人",vg_="您尚未添加任何工具",bg_="您尚未添加任何策略",$g_="您尚未添加任何目标和具体目标",kg_="你还没有添加任何希望和梦想",xg_="我最好的学习方法",Ig_="你的",Cg_="兴趣",Sg_="力量",Ag_="挑战",Eg_="主意",Tg_="主意",jg_="工具",qg_="梦",Ng_="人",Pg_="详细了解",Rg_="我的支持",Lg_="网络",Mg_="我当前的 PLP",zg_="查看 PLP",Dg_="现住住宿",Fg_="目标日期",Og_="您尚未添加任何 {{item}}",Gg_="截止日期",Bg_="大学",Vg_="访问",Hg_="应用",Wg_="一个计划",Ug_="利益",Xg_="活动",Yg_="检测考试",Zg_="课程",Jg_="资源",Qg_="散文",Kg_="论文",ep_="计划",tp_="总数是",_p_="诊断调查",sp_="精选问题",np_="可用问题",op_="您确定要禁止 {{number}} 名学生活动吗?",ap_="上个月的数据",ip_="问题数量",rp_="没有可显示的 {{item}}",cp_="模板",lp_="评估",dp_="作业结果",up_="证书",mp_="学习支援類別",hp_="反馈",gp_="建议",pp_="教程屏幕",fp_="反射形式",yp_="选择要添加的问题",wp_="未找到学生成绩",vp_="给你的人起名字",bp_="输入您的人",$p_="创建人",kp_="一月",xp_="二月",Ip_="三月",Cp_="四月",Sp_="五月",Ap_="六月",Ep_="七月",Tp_="八月",jp_="九月",qp_="十月",Np_="十一月",Pp_="十二月",Rp_="完成",Lp_="选择用户",Mp_="不到一小时结束",zp_="我的沙盒",Dp_="{number} 名学生没有动力",Fp_="{number} 名学生感到舒适",Op_="{number} 名学生感到紧张",Gp_="{number} 名学生感到压力",Bp_="{number} 名学生不堪重负",Vp_="与 {teacher name} 一起检查",Hp_="所有学生都标记为感觉安全。",Wp_="soft",Up_="升序",Xp_="降序",Yp_="empty",Zp_="您已完成所有每周任务!",Jp_="干得好!",Qp_="如果您已回答所有问题,请按“完成”按钮完成签到",Kp_="签到已完成",ef_="您准备好提交了吗?",tf_="您已在签到部分填写“签到”",_f_="干得好!您已在我的支持网络部分填写“支持网络”。",sf_="干得好!您已在我的学习策略部分填写“学习策略”。",nf_="默认问题一对一列表",of_="是默认问题",af_="是课堂反思题",if_="是/否问题",rf_="星数",cf_="情感图标",lf_="添加新的子问题",df_="子问题",uf_="您确定要删除吗?",mf_="编辑1-1",hf_="健康",gf_="环境安全",pf_="睡眠",ff_="吃",yf_="学习",wf_="获取帮助",vf_="锻炼",bf_="保持冷静",$f_="家园",kf_="学校",xf_="在线的",If_="课堂学习",Cf_="在家学习",Sf_="目的地",Af_="选择 CSV",Ef_="导入类反射",Tf_="输入问题",jf_="编辑目的地",qf_="创建目标",Nf_="目的地总数",Pf_="基本信息",Rf_="文件扩展名",Lf_="今天的",Mf_="添加待办事项",zf_="编辑待办事项",Df_="描述(可选)",Ff_="您想删除此目标吗?",Of_="我的待办事项",Gf_="设置你的待办事项",Bf_="您的每日动力",Vf_="我的1-1",Hf_="学生学习计划",Wf_="登出",Uf_="话题",Xf_="评论",Yf_="愿意尽最大努力学习",Zf_="还没做完",Jf_="尚未选择",Qf_="加载中",Kf_="我通过以下方式组织自己以获得成功",ey_="我知道我已经尽力了,因为",ty_="我知道我准备好学习了",_y_="前往 PLP",sy_="进入个人学习计划",ny_="创建二维码",oy_="此电子邮件中已存在名为 {{name}} 的家长。是否要为该学生添加此家长?",ay_="按学生筛选",iy_="搜索学生",ry_="排序方式",cy_="最近",ly_="最积极",dy_="最不积极",uy_="返回",my_="{{user}} 可编辑此会话",hy_="在这里输入你的答案",gy_="记录笔记并从我们的 MARIO 支持机器人那里获取建议",py_="脚手架已搭建",fy_="脚手架已拆除",yy_="查看所有建议",wy_="脚手架",vy_="会话结束",by_="您想现在开始还是稍后预订?",$y_="新的 1-1 互动",ky_="预订 1-1",xy_="选择会话类型",Iy_="新会议",Cy_="我的个人兴趣",Sy_="当...的时候,我觉得很困难",Ay_="参加测验",Ey_="坍塌",Ty_="扩张",jy_="创建于",qy_="更新",Ny_="通知",Py_="全部标记为已读",Ry_="筛选",Ly_="读",My_="未读",zy_="已读",Dy_="转至会议",Fy_="去",Oy_="会议",Gy_="学生简介",By_="已预订次数",Vy_="会议预定为 10 分钟时段",Hy_="会议结束",Wy_="返回会议",Uy_="未完成",Xy_="后退",Yy_="选择您的状态",Zy_="我的安全",Jy_="正在努力",Qy_="未开始",Ky_="评分标准总计",ew_="选择问题类别",tw_="默认问题会议列表",_w_="创建评分标准",sw_="输入要搜索的内容",nw_="上一页",ow_="选择年级",aw_="班级二维码",iw_="标题为必填项",rw_="此图表中显示的数据反映了学生<b>最近的签到情况</b>。",cw_="将从所有数据库中删除此会议。您确定要继续吗?",lw_="签到和一对一交流",dw_="我的签到和一对一",uw_="稍后预订",mw_="签到",hw_="开始签到,之后你还可以请求与老师对话",gw_="设定你的目标",pw_="显示待处理的对话",fw_="签到环节",yw_="这第一步将激活你们的一对一对话,为个人对话奠定基础。",ww_="报到",vw_="值机已完成",bw_="记录 1-1 对话",$w_="记录对话数据",kw_="添加 1-1 对话笔记",xw_="保存数据",Iw_="请选择日期1-1对话!",Cw_="请为这场一对一对话写点内容!",Sw_="数据1对1对话不能超过1000个字符!",Aw_="签到环节",Ew_="我没有什么可补充的。",Tw_="签到环节结束",jw_="这是一年级的问题",qw_="在这里输入你的答案,例如“我遇到了我的朋友”",Nw_="在这里输入你的答案,例如“我最好的朋友没来上学”",Pw_="保存1-1日志注释",Rw_="没必要",Lw_="对话已保存!",Mw_="是的,查看学生目标",zw_="您和学生选择了什么作为行动步骤?<br/>您想将其添加为目标吗?",Dw_="Here you can find all the notes and 1-1 conversations logs the student has.",Fw_="Back to Notes and Logs",Ow_="Student's Review",Gw_="Other note",Bw_="Student's Perceived<br/>Usefulness",Vw_="Student Feedback",Hw_="Note Category",Ww_="Select Note Category",Uw_="Save note",Xw_="Type the main focus of this session",Yw_="Please add note title",Zw_="Notes and Logs",Jw_="Other notes from the conversation (optional)",Qw_="Share your thoughts...",Kw_="Make this a private note",ev_="Environment-Specific Safety",tv_="Students' Reported Feelings",_v_="Well Being Indicators",sv_="Readiness Trends",nv_="Open Field Questions",ov_="Number of students with at least one very low metric",av_="This flags if the student is not ready to learn or has at least one success, or readiness to learn metrics under 40%",iv_="of students have concerned metrics",rv_="have metrics <40%",cv_="All students have good metrics",lv_="Students with at least One Concerned metric ({{number}})",dv_="Concerned metric(s)",uv_="Concern metrics",mv_="Conversation Goal",hv_="Target Monthly Conversation Goal for Teachers",gv_="Target Monthly Conversation Goal for Counselors",pv_="conversations",fv_="are not ready to learn",yv_="Check-in date",wv_="Educator",vv_="Location",bv_="Edit My Profile",$v_="Save new password",kv_="Conversation Duration",xv_="Please set time 1-1 conversation",Iv_="Negative emotions",Cv_="Please select add teacher for selected student first",Sv_="选择头像",Av_="从图库中选择头像,或上传您自己的图片。",Ev_="选择图片",Tv_="删除签到",jv_="删除会议",qv_="确定要删除此签到吗?",Nv_="确定要删除此会议吗?",Pv_="是的,我确定",Rv_="教师名单",Lv_="本月平均值 vs 上月平均值",Mv_={dashboard:sMt,user:nMt,question_bank:oMt,email_template:aMt,custom_alert:iMt,set_up:rMt,media_gallery:cMt,district_school_list:lMt,export_to_pdf:dMt,the_data_is_taken_from_the_home_screen:uMt,make_sure_everything_is_set_correctly_before_exporting:mMt,cancel:hMt,hey:gMt,readiness_to_learn:pMt,high_impact_learning_strategies:fMt,"1_to_1":"一对一",check_in:yMt,check_ins:wMt,reflection:vMt,conferences:bMt,safety:$Mt,student_by_age:kMt,students_by_designation:xMt,calendar:IMt,gender:CMt,grade:SMt,grades:AMt,current_grade:EMt,student_name:TMt,teacher_name:jMt,start_date:qMt,end_date:NMt,tooltip_content_readiness_to_learn_chart:PMt,tooltip_content_high_impact_chart:RMt,tooltip_content_1_to_1_chart:LMt,tooltip_content_class_reflection_chart:MMt,tooltip_content_conference_chart:zMt,tooltip_content_safety_chart:DMt,tooltip_content_student_by_age_chart:FMt,tooltip_content_students_by_designation:OMt,total_1_to_1:GMt,total_check_in:BMt,total_check_ins:VMt,total_1_to_1_time:HMt,total_conferences:WMt,total_conferences_time:UMt,total_class_reflection_check_ins:XMt,create_user:YMt,edit_user:ZMt,change_password:JMt,type_something_to_search_by_user_name:QMt,total_of_users:KMt,name:ezt,email:tzt,age:_zt,role:szt,active_status:nzt,action:ozt,active:azt,inactive:izt,create:rzt,update:czt,first_name:lzt,date_of_birth:dzt,last_name:uzt,roles:mzt,status:hzt,send_forgot_password_link:gzt,download_user_data:pzt,current_password:fzt,new_password:yzt,confirm_password:wzt,save:vzt,type_something_to_search_question:bzt,type_something_to_search_category:$zt,total_of_questions:kzt,create_question:xzt,edit_question:Izt,question_type:Czt,category:Szt,sub_category:Azt,question_text:Ezt,text:Tzt,is_default_question_for_one_to_one:jzt,default_question_for_students_or_teachers:qzt,is_default_question_general_class:Nzt,default_question_general_for_students_or_teachers:Pzt,before_session:Rzt,edit_custom_alert:Lzt,create_custom_alert:Mzt,total_of_custom_alert:zzt,number_of_sessions:Dzt,number_of_students:Fzt,begin_date:Ozt,duration_days:Gzt,students:Bzt,create_skill:Vzt,edit_skill:Hzt,total_of_skills:Wzt,description:Uzt,skill:Xzt,parent_category:Yzt,edit_subject:Zzt,create_subject:Jzt,total_of_subjects:Qzt,color:Kzt,create_learning_support_category:eDt,edit_learning_support_category:tDt,create_category:_Dt,edit_category:sDt,total_of_learning_support_categories:nDt,default_color:oDt,edit_strategy:aDt,create_strategy:iDt,create_learning_strategy:rDt,total_of_strategies:cDt,strategy_name:lDt,question:dDt,detail:uDt,strategy:mDt,best_fit:hDt,create_goal_example:gDt,edit_goal_example:pDt,total_of_goal_examples:fDt,short_term_target_examples:yDt,goal_example:wDt,edit_badge:vDt,create_badge:bDt,total_of_badges:$Dt,icon:kDt,badge:xDt,badge_image:IDt,edit_semester:CDt,create_semester:SDt,update_school_break_month:ADt,total_of_semesters:EDt,total_of_academicyear:TDt,semester:jDt,breaking_month:qDt,change_breaking_month:NDt,school_year_break_month:PDt,edit_blank_day:RDt,create_blank_day:LDt,total_of_blank_days:MDt,start_time:zDt,end_time:DDt,school_blank_day:FDt,edit_point:ODt,create_new_point:GDt,total_of_point:BDt,label:VDt,value:HDt,break_point:WDt,update_break_point:UDt,maximum_number_of_admins:XDt,maximum_number_of_assistants:YDt,maximum_number_of_students:ZDt,maximum_number_of_teachers:JDt,request_to_this_plan:QDt,type_something_to_search_reflection_result:KDt,user_deleted:e9t,export_user_data:t9t,alert_delete_user:_9t,delete_user:s9t,alert_delete_teacher:n9t,list_students:o9t,student_email:a9t,current_teacher_name:i9t,current_teacher_email:r9t,change_save:c9t,select_teacher_change:l9t,current_assistant_name:d9t,current_assistant_email:u9t,remove_assistant:m9t,switch_assistant:h9t,select_assistant_change:g9t,select_assistant:p9t,welcome_email_resend:f9t,send_for_selected_users:y9t,user_name:w9t,user_email:v9t,level:b9t,use_for:$9t,admin_training:k9t,teacher_training:x9t,created_time:I9t,total_reflections:C9t,student_training:S9t,create_designation:A9t,total_of_designation:E9t,designations:T9t,edit_designation:j9t,confirm:q9t,hello:N9t,todays_1_1:P9t,todays_check_in:R9t,todays_Conferences:L9t,next_meeting:M9t,next_conference:z9t,todays_schedule:D9t,action_points:F9t,upcoming:O9t,see_all_action_points:G9t,add:B9t,edit_action_point:V9t,add_action_point:H9t,title:W9t,type_title:U9t,subject:X9t,class:"班级",select_date:Y9t,date:Z9t,select_time:J9t,time:Q9t,notification:K9t,no_notification:eFt,day:tFt,week:_Ft,mark_as_done:sFt,delete:"删除",my_students:nFt,download_template:oFt,import_csv:aFt,add_new:iFt,show_only_work_as_assistant:rFt,show_only_work_as_teacher:cFt,last_1_to_1:lFt,last_check_in:dFt,last_conference:uFt,total_time:mFt,assistant_name:hFt,work_as_assistant:gFt,assign_assistant:pFt,view:fFt,history:yFt,custom_recurrence:wFt,repeat_every:vFt,repeat_on:bFt,never:$Ft,on:kFt,after:xFt,pick_a_date:IFt,pick_a_time:CFt,change_date:SFt,change_time:AFt,apply:EFt,new_1_to_1:TFt,new_check_in:jFt,do_you_want_to_talk_with_teacher:qFt,start_now:NFt,book_later:PFt,select_category:RFt,search_question_category:LFt,no_question:MFt,select_question:zFt,select_student:DFt,select_staff:FFt,staff_name:OFt,select_teacher:GFt,do_you_want_to_talk_with:BFt,please_select_a_student:VFt,please_select_a_teacher:HFt,please_provide_a_valid_student:WFt,please_provide_a_valid_teacher:UFt,select_a_student_and_launch_a_new_session_or_book_one_for_later:XFt,you_have_no_teacher:YFt,search_teacher:ZFt,select_date_time:JFt,book_1_to_1:QFt,book_new_check_in:KFt,schedule:eOt,sessions_are_booked_as_10_minute_slots:tOt,does_not_reoccur:_Ot,time_must_be_between_8_am_and_6_pm:sOt,from:nOt,to:oOt,show_only_favorites:aOt,show_only_conversation:iOt,duration:rOt,favorite:cOt,open:lOt,no_data:dOt,schedule_detail:uOt,are_you_sure_you_want_to_cancel_this_schedule:mOt,completed_1_to_1:hOt,completed_check_in:gOt,done:pOt,what_do_you_want_to_talk_about:fOt,session_type:yOt,what_is_this_session_type:wOt,how_are_you_feeling_about_each_area_right_now:vOt,sleep_nutrition_exercise_physical_health_and_mental_health:bOt,goals_activities_habits_and_strategies:$Ot,overall_how_are_you_feeling_today:kOt,what_is_your_level_of_pride_in_yourself_today:xOt,how_are_you_feeling_today:IOt,how_much_did_you_learn_from_this_session:COt,what_is_the_most_important_thing_you_learned_from_this_session:SOt,your_next_meeting:AOt,today_at:EOt,choose_if_you_want_to_do_it_now_or_if_you_would_like_to_book_for_later:TOt,edit:jOt,phone_number:qOt,second_phone_number:NOt,health_note:POt,address:ROt,mtss:LOt,note:MOt,no_schedule:zOt,my_notes:DOt,private_note:FOt,goal_progress:OOt,view_all_goals:GOt,completed:BOt,not_completed:VOt,student_information:HOt,top_learning_strategies:WOt,perceived_usage:UOt,total_number_of_times_seleted:XOt,energy:YOt,focus:ZOt,happiness:JOt,stress:QOt,one_to_one:KOt,class_reflection:eGt,conference:tGt,learning_progress:_Gt,cant_export_now_please_try_again:sGt,view_data:nGt,learning_strategies:oGt,strategies:aGt,number_of_used:iGt,next:rGt,previous:cGt,my_conferences:lGt,select_a_student_and_launch_a_new_conference_or_book_one_for_later:dGt,you_have_no_student:uGt,this_is_a_required_field:mGt,please_select_question_category:hGt,book_conferences:gGt,final_score:pGt,new_conference:fGt,search_student:yGt,search_staff:wGt,"1_1_conversation":"一对一对话",meeting_schedule:vGt,class_schedule:bGt,more_questions:$Gt,conference_rubric:kGt,unlock:xGt,before_clicking_submit:IGt,your_session_was:CGt,mins:SGt,min:AGt,submit:EGt,are_you_sure_to_complete:TGt,be_sure_to_check_completed_all:jGt,teacher_choice:qGt,student_choice:NGt,agreement:PGt,personal_learning_plan:RGt,my_personal_learning_plan:LGt,personal_interests:MGt,allow_student_to_edit:zGt,strengths_and_challenges:DGt,significant_strengths:FGt,strengths:OGt,challenges:GGt,significant_challenges:BGt,how_my_teachers_can_help_me_learn:VGt,about_my_learning:HGt,accommodations:WGt,goals:UGt,this_goal_is_showing_in_the_student_conference_rubric_are_you_sure_to_delete_it:XGt,activity_circles:YGt,friend_circles:ZGt,are_you_ready_to_learn:JGt,class_schedules:QGt,add_class_schedule:KGt,class_date:eBt,class_name:tBt,day_period:_Bt,teacher_email:sBt,note_type_class:nBt,my_note:oBt,add_new_note:aBt,all_category:iBt,personalized:rBt,show_only_favorite:cBt,search:lBt,note_title:dBt,student:uBt,note_detail:mBt,mark_as_favorite:hBt,type_a_note:gBt,please_select_student:pBt,settings:fBt,save_changes:yBt,activity_notifications:wBt,schedule_notifications:vBt,preschedule_notifications:bBt,yes:$Bt,no:kBt,email_notification:xBt,send_me_email_notification:IBt,dont_send_me_email_notification:CBt,type:SBt,teacher_request:ABt,student_request:EBt,overview:TBt,plp:jBt,my_student_1_to_1:qBt,my_student_check_in:NBt,my_student_conference:PBt,received_date:RBt,class_impact_score:LBt,impact_score:MBt,iep:zBt,ieps:DBt,"1_to_1_conversation":"一对一讨论会",creator:FBt,last_modify:OBt,modify:GBt,student_reflections:BBt,external_reflection:VBt,external_class_reflection:HBt,reflections:WBt,class_reflections:UBt,add_reflection:XBt,add_class_reflection:YBt,class_type:ZBt,teacher_image:JBt,send_to_teacher:QBt,send_now:KBt,missed:e8t,pending:t8t,sent_date:_8t,go_to_the_student_plp:s8t,new_iep:n8t,edit_iep:o8t,type_of_iep:a8t,source_of_eligibility_forinitial:i8t,annual_goals:r8t,enter_a_date_range:c8t,add_objectives:l8t,add_goals:d8t,day_month_year:u8t,special_education:m8t,special_education_content:h8t,objectives_and_reporting_progress:g8t,objectives_and_reporting_progress_content:p8t,annual_goals_content:f8t,related_services:y8t,related_services_content:w8t,supplementary_aids_and_services:v8t,supplementary_aids_and_services_content:b8t,program_modifications_for_school_personnel:$8t,program_modifications_for_school_personnel_content:k8t,extent_of_nonparticipation:x8t,extent_of_nonparticipation_content:I8t,accommodations_in_assessment:C8t,accommodations_in_assessment_content:S8t,service_delivery:A8t,service_delivery_content:E8t,transition_planning:T8t,transition_planning_content:j8t,present_levels:q8t,present_levels_content:N8t,signatures:P8t,iep_old_versionf_and_diagnostic_docs:R8t,upload_file:L8t,add_interest:M8t,upload_image:z8t,supported_image_types:D8t,edit_interest:F8t,select_personal_interest_or_enter_personal_interest_here:O8t,add_note:G8t,select_best_fit:B8t,best_fits:V8t,select_strategies:H8t,selected_learning_strategies:W8t,do_you_want_to_delete_this_strengths_and_challenges:U8t,add_new_item:X8t,edit_item:Y8t,select_teaching_strategies:Z8t,selected_teaching_strategies:J8t,add_title:Q8t,my_learning:K8t,do_you_want_to_delete_this_about_my_learning:eVt,edit_my_learning:tVt,add_my_learning:_Vt,select_about_learning_or_enter_about_learning_here:sVt,accommodation:nVt,all_categories:oVt,do_you_want_to_delete_this_accommodation:aVt,edit_accommodation:iVt,add_accommodation:rVt,all:cVt,all_status:lVt,goal_type:dVt,add_new_goal:uVt,goal_detail:mVt,select_status:hVt,goal_baseline:gVt,objective:pVt,goal_details:fVt,goals_type:yVt,edit_goal_detail:wVt,uploaded_files:vVt,optional:bVt,edit_baseline:$Vt,edit_friend:kVt,add_friend:xVt,search_friend:IVt,friend_type:CVt,edit_activity:SVt,add_activity:AVt,search_activity:EVt,activity:TVt,activity_type:jVt,select_or_type_an_activity:qVt,action_needed:NVt,external:PVt,student_survey:RVt,view_survey:LVt,create_a_survey:MVt,survey_from:zVt,review:DVt,publish_survey:FVt,total_surveys:OVt,flags:GVt,scheduled_session:BVt,total_survey_done:VVt,total_survey_not_done:HVt,list_survey:WVt,surveys:UVt,survey:XVt,create_survey:YVt,my_survey:ZVt,counselor_name:JVt,survey_title:QVt,deadline:KVt,day_left:eHt,replied_date:tHt,session:_Ht,flag:sHt,external_email:nHt,scheduled_now:oHt,session_schedule:aHt,session_scheduled:iHt,search_survey:rHt,total_survey:cHt,survey_result:lHt,check_in_from:dHt,received_today_at:uHt,preview_survey:mHt,complete_survey:hHt,"you_will_not_be_able_to_edit_this_survey_once_published_._are_you_sure_you_want_to_continue_?":"发布后您将无法编辑此调查。您确定要继续吗?",do_you_want_to_share_a_survey_to_teachers:gHt,you_can_share_this_survey_to_teachers_to_get_more_insight_about_your_student:pHt,skip:fHt,survey_questions:yHt,add_survey_question:wHt,additional_question:vHt,add_additional_question:bHt,save_favorite:$Ht,save_as_favorite:kHt,favorite_survey:xHt,slider:IHt,questions:CHt,insert_all_question:SHt,remove_all_question:AHt,insert_question:EHt,survey_templates:THt,insert_template:jHt,share_survey_teacher:qHt,suggested_teacher:NHt,email_contents:PHt,send_survey:RHt,review_survey_detail:LHt,a_number_of_student:MHt,date_and_time:zHt,scale:DHt,answer:FHt,add_question:OHt,save_question:GHt,external_survey:BHt,ib_learner_profile:VHt,set_deadline:HHt,duplicate_survey:WHt,share_survey:UHt,new_survey:XHt,assign_counselor:YHt,select_counselor:ZHt,select_support_teacher:JHt,assign_support_teacher:QHt,switch_support_teacher:KHt,support_teacher_name:eWt,user_for_question:tWt,requested_reflection:_Wt,request_class_reflection:sWt,share_survey_to_teacher:nWt,select_form:oWt,switch_counselor:aWt,remove_counselor:iWt,current_counselor_email:rWt,current_counselor_name:cWt,select_counselor_change:lWt,current_support_teacher_name:dWt,current_support_teacher_email:uWt,remove_support_teacher:mWt,select_support_teacher_change:hWt,filter_calendar:gWt,average_student_safety:pWt,is_active:fWt,top_5_most_used_strategies:yWt,preparedness:wWt,average_student_stress:vWt,success_indicators:bWt,learning_process:$Wt,survey_dashboard:kWt,response_rate:xWt,top_5_most_survey_used:IWt,question_intervention:CWt,student_pressure:SWt,overall_readiness_to_learn:AWt,view_calendar:EWt,student_wellness:TWt,view_data_dashboard:jWt,view_a_student:qWt,view_student:NWt,average_safety:PWt,average_stress:RWt,average_energy:LWt,average_focus:MWt,average_happiness:zWt,vs_last_month:DWt,of_students_are_not_feeling_safe:FWt,students_marked_themselves_as_unsafe:OWt,marked_themselves_as_unsafe:GWt,are_not_feeling_safe:BWt,of_students_are_highly_stressed:VWt,flagged_with_high_stress:HWt,are_feeling_highly_stressed:WWt,select_a_student_to_see_their_profile_and_learning_plan:UWt,select_a_student_and_start_a_conversation_with_the_check_in_results:XWt,start:YWt,teacher_reflection:ZWt,notes:JWt,student_reflection:QWt,view_latest_check_ins:KWt,"1-1s":"一对一","1_1":"1 月 1 日",this_week_s:e7t,missing_weekly_check_in:t7t,add_new_student:_7t,"start_your_check-in_and_you_can_also_request_a_conversation_with_your_teacher_after":"开始签到。此后,您还可以请求与老师进行对话。",start_check_in:s7t,no_events_today:n7t,today_schedule:o7t,high_stressed:a7t,unsafe:i7t,average:r7t,see_them:c7t,goal:l7t,ended_over_24_hours_ago:d7t,start_a_1_1_conversation:u7t,view_results:m7t,request_check_in:h7t,last:g7t,latest_check_ins:p7t,students_who_missing_weekly_check_in:f7t,this_student_does_nt_have_missing_check_in:y7t,no_student_missing_weekly_check_in:w7t,start_1_1_conversation:v7t,select_a_teacher_and_start_a_check_in:b7t,this_weeks_check_ins:$7t,this_weeks_1_1s:k7t,this_student_does_nt_have_1_1_in_this_week:x7t,this_student_does_nt_have_check_in_in_this_week:I7t,no_last_or_requested_check_ins:C7t,students_who_are_highly_stressed:S7t,students_who_are_not_feeling_safe:A7t,students_missing_a_weekly_check_in:E7t,student_stress_by_zone:T7t,student_distribution:j7t,surveys_flags:q7t,yellow_flags:N7t,green_flags:P7t,red_flags:R7t,show_by:L7t,survey_overview:M7t,share_note:z7t,survey_summary:D7t,survey_name:F7t,date_created:O7t,"#of_recipients":"#收件人","#of_answers":"答案数",cut_off_time:G7t,created_by:B7t,responses_distribution:V7t,ratings_of_questions:H7t,show_results_for:W7t,responses_and_response_rates_per_question:U7t,view_list_of_students:X7t,view_list_of_responses:Y7t,number_of_responses:Z7t,number_of_not_responses:J7t,question_rating:Q7t,no_response_yet:K7t,external_survey_is_highlight_in_the_table:eUt,reset_password:tUt,correct:_Ut,incorrect:sUt,the_correct_answer_is:nUt,the_correct_answers_are:oUt,action_need:aUt,view_answers:iUt,survey_results:rUt,weeks:cUt,months:lUt,scheduled_sessions:dUt,active_surveys:uUt,view_responses:mUt,download_csv:hUt,create_new_survey:gUt,go_to_individual_survey_responses:pUt,you_can_only_select_number_kpis_at_a_time:fUt,you_can_only_select_number_kpis_at_a_time_To_select_a_new_one_please_switch_off_one_of_the_previous_ones:yUt,"download.csv":"下载.CSV",last_check__in:wUt,how_many_times_a_strategy_has_been_chosen:vUt,these_metrics_come_from_students_check_ins_filter_above_to_change_the_data_set:bUt,not_yet_started:$Ut,in_progress:kUt,export_check_ins_to_csv:xUt,these_metrics_come_from_the_conference_rubric_only_teacher_responses_are_scored:IUt,please_save_first:CUt,print_date:SUt,goal_base_line:AUt,print:EUt,download:TUt,my_daily_motivation:jUt,select_deadline:qUt,export:"导出",image_is_a_required:NUt,old_iep:PUt,create_next_years_iep:RUt,write_something_optional:LUt,the_effectiveness_of_learning_strategies_by_students_feedback:MUt,perceived_usefulness:zUt,performance:DUt,not_enough_challenge_leading_to_boredom_and_lack_of_interest:FUt,calm_and_relaxed_but_not_enough_motivation_to_perform_at_my_best:OUt,manageable_levels_of_stress_allowing_me_to_perform_at_my_best:GUt,still_in_control_but_starting_to_feel_the_pressure:BUt,too_much_pressure_and_really_struggling_to_manage_my_workload:VUt,import_emails_by_csv:HUt,request_number:WUt,select_or_input_class_type:UUt,send_request:XUt,start_reflection:YUt,customize_reflection:ZUt,include_section_you_want_to_appear:JUt,time_of_day:QUt,iep_template:KUt,one_roster:eXt,sandbox:tXt,"well-being":"幸福感","self-efficacy":"自我效能",information_roster_sourced_id_full_name_email:_Xt,sync_roster_users:sXt,export_to_csv:nXt,user_list:oXt,assign_student:aXt,one_to_one_question:iXt,class_reflection_question:rXt,conference_question:cXt,actions:lXt,order:dXt,user_for:uXt,question_category:mXt,template_survey:hXt,total_of_category:gXt,create_template:pXt,number_of_question:fXt,mandatory:yXt,well_being:wXt,self_efficacy:vXt,no_question_to_display:bXt,privacy_policy:$Xt,profile:kXt,role_change:xXt,log_out:IXt,data_dashboard:CXt,deep_learning_tools:SXt,my_profile:AXt,phone:EXt,calendar_id:TXt,old_password:jXt,confirm_new_password:qXt,select_a_student_and_start_a_check_in:NXt,anything_is_possible_anything_can_be:PXt,edit_picture:RXt,create_new_student:LXt,grade_level:MXt,health_notes:zXt,students_parent_information:DXt,parent_1:FXt,parent_2:OXt,in_app_notifications:GXt,turn_on_all_notifications:BXt,notify_me_when:VXt,a_student_schedules_a_1_1:HXt,a_student_schedules_a_conference:WXt,a_student_completes_a_conference_self_assessment_rubric:UXt,a_student_or_teacher_completes_a_class_reflection:XXt,action_points_are_due_based_on_chosen_schedule:YXt,a_student_hasnt_logged_1_1_in_the_past_28_days:ZXt,email_notifications:JXt,turn_on_all_emails:QXt,a_student_responds_to_a_1_1_readiness_to_learn_with_no:KXt,a_student_reported_a_low_safety_score_on_a_check_in:eYt,continue_as:tYt,admin:_Yt,counselor:sYt,support_teacher:nYt,teacher_assistant:oYt,add_parent_1_information:aYt,add_parent_2_information:iYt,parent_role:rYt,all_activity:cYt,academic_year:lYt,all_of_the_students_report_manageable_stress_levels:dYt,"100_00_of_students_are_not_feeling_safe":"100.00% 的学生感觉不安全",growth:uYt,relationships:mYt,productivity:hYt,academics:gYt,percent:pYt,unmotivated:fYt,comfort:yYt,stretch:wYt,strain:vYt,overwhelmed:bYt,edit_student_profile:$Yt,teacher:kYt,created:xYt,student_phone_number:IYt,designation:CYt,e_mail:SYt,general_ed_teacher:AYt,select_general_ed_teacher:EYt,please_select_teacher:TYt,assign:jYt,be_silly_be_honest_be_kind:qYt,do_you_want_to_change_to_role_counselor_to_open:NYt,search_assistant:PYt,baseline:RYt,timeframe:LYt,friends:MYt,best_friends:zYt,supportive:DYt,potential_friends:FYt,like:OYt,love:GYt,interested:BYt,curious:VYt,improvement_in_study_habits_grades_sports_clubs_or_personal_projects:HYt,family_friends_and_teachers:WYt,accomplishing_important_tasks_and_limiting_distractions:UYt,homework_studying_and_grades:XYt,my_ability_to_be_successful:YYt,whats_on_your_mind:ZYt,now_look_back_at_your_responses_from_today:JYt,do_you_want_to_change_to_role_student_to_open:QYt,student_has_started_this_one_to_one_are_you_sure_to_delete:KYt,do_you_want_to_change_to_role_support_teacher_to_open:eZt,student_has_not_started_this_conference_are_you_sure_to_delete:tZt,search_support_teacher:_Zt,search_counselor:sZt,how_productive_i_was_in_class_today:nZt,not_enough_stress:oZt,too_much_stress:aZt,organization:iZt,self_awareness:rZt,self_directed_learning:cZt,self_advocacy:lZt,self_management:dZt,conceptual_change_conversation:uZt,concrete_examples:mZt,elaboration:hZt,dual_coding:gZt,note_type_and_class:pZt,edit_note:fZt,not_done:yZt,red:wZt,yellow:vZt,green:bZt,uwcsea_sg_climate_survey:$Zt,connections_with_adults_and_peers:kZt,holistic_learning_experiences:xZt,my_health_and_wellbeing:IZt,open_ended_questions:CZt,do_you_need_some_extra_help_or_support:SZt,sdq_standards_and_difficulties_questionaire:AZt,sdq_strengths_and_difficulties_questionnaire_supplemental:EZt,close:TZt,student_responses:jZt,anonymous_responses:qZt,teacher_perceived:NZt,prepared_for_class:PZt,missing_class_assignments:RZt,completed_classwork:LZt,asked_for_help_when_needed:MZt,clear:zZt,missing_reflections:DZt,total_students_missing_late_assignments:FZt,subject_class:OZt,chart_type:GZt,request_from:BZt,are_you_sure_you_want_to_delete_this_item:VZt,yes_delete:HZt,completed_conference:WZt,my_learning_plan:UZt,my_learning_plan_beta:XZt,winning_doesn_t_always_mean_being_first_winning_means_you_re_doing_better_than_you_ve_done_before:YZt,integrating_learningwith_previous_knowledge:ZZt,improving_student_self_efficacy:JZt,my_check_in:QZt,what_do_you_want_to_do_differently:KZt,to_do:eJt,my_class_reflections:tJt,send_reflection:_Jt,type_2_characters_to_search:sJt,create_time:nJt,do_you_want_to_remove_this_user:oJt,warning:aJt,do_you_want_to_impersonate_this_user:iJt,assistant:rJt,parent:cJt,choose_file:lJt,do_you_want_to_remove_this_question:dJt,select:uJt,do_you_want_to_remove_this_category:mJt,total_of_templates:hJt,template_name:gJt,category_name:pJt,created_date:fJt,do_you_want_to_remove_this_email_template:yJt,create_email_template:wJt,mail_subject:vJt,mail_body:bJt,mail_params:$Jt,params:kJt,meaning:xJt,add_attachment:IJt,skills:CJt,subjects:SJt,learning_support_categories:AJt,goal_examples:EJt,student_badges:TJt,blank_days:jJt,csv_import:qJt,band_scores:NJt,license:PJt,switch_teacher:RJt,question_scaffolding:LJt,training:MJt,type_something_and_press_enter_to_add_short_term_target_examples:zJt,import_users:DJt,import_class_reflection:FJt,download_users_data:OJt,do_you_want_to_remove_this_assistant:GJt,do_you_want_to_remove_this_counselor:BJt,do_you_want_to_remove_this_support_teacher:VJt,send:HJt,do_you_want_to_remove_this_designation:WJt,new_folder:UJt,upload:XJt,type_something_to_search_by_file_name:YJt,systems:ZJt,create_template_system:JJt,created_at:QJt,do_you_want_to_remove_this_template:KJt,one_roster_setting:eQt,users:tQt,one_roster_config:_Qt,end_point_url:sQt,client_id:nQt,client_secret:oQt,import_one_roster:aQt,import_from_zip_file:iQt,import_from_restful_api:rQt,non_existent_users:cQt,type_something_to_search_users:lQt,create_account_for_selected_users:dQt,help:uQt,sandbox_mode:mQt,off:hQt,restore_sandbox_database:gQt,turn_on:pQt,turn_off:fQt,restore:yQt,edit_profile:wQt,on_track_going_well:vQt,guide:bQt,make_each_day_your_masterpiece:$Qt,consistently:kQt,frequently:xQt,sometimes:IQt,rarely:CQt,not_applicable:SQt,i_schedule_all_homework_and_studying_through_google_calendar_or_a_planner_or_organizer_as_soon_as_it_is_assigned:AQt,i_maintain_a_clean_and_organized_system_for_keeping_and_reviewing_physical_notes_handouts_and_packets_for_each_class:EQt,i_maintain_a_clean_and_organized_system_for_storing_digital_files_as_a_result_i_can_easily_find_all_of_my_digital_files:TQt,i_keep_my_school_inbox_organized_and_important_emails_are_not_missed:jQt,i_have_a_clear_understanding_of_my_strengths:qQt,i_know_and_understand_how_teachers_can_best_help_me_in_class:NQt,i_know_and_understand_my_accommodations:PQt,i_know_and_understand_my_personalized_systems_and_strategies_for_ideal_learning_outside_of_class:RQt,i_know_and_understand_my_personalized_systems_and_strategies_for_ideal_learning_in_class:LQt,i_have_a_clear_understanding_of_my_challenges:MQt,i_have_an_accurate_idea_of_how_i_am_doing_in_my_classes_and_know_what_i_need_to_do_to_improve:zQt,i_use_the_first_25_minutes_of_our_class_effectively_to_make_progress_on_my_goals:DQt,i_use_the_homework_study_time_effectively:FQt,achieving:OQt,significant_progress:GQt,moderate_progress:BQt,slight_progress:VQt,no_progress:HQt,cope_with_stressful_situations:WQt,improve_my_sleeping_habits:UQt,i_promplty_address_and_deal_with_difficult_situations_instead_of_avoiding_them:XQt,i_appropriately_use_technology:YQt,i_create_a_note_during_or_after_meetings:ZQt,i_effectively_study_for_upcoming_assessments:JQt,i_turn_in_all_homework_on_time_and_complete:QQt,i_get_the_right_amount_of_sleep_each_night:KQt,i_meet_with_my_teachers_outside_of_class_time:eKt,i_ask_questions_inside_and_or_after_class:tKt,when_needed_i_let_my_teachers_know_how_to_better_help_me_in_class:_Kt,i_advocate_for_and_use_accommodations_i_need_in_all_of_my_classes:sKt,planning:nKt,making_connections_with_previous_learning:oKt,providing_quality_feedback:aKt,working_on_learning_goals:iKt,setting_or_reinforcing_high_expectations:rKt,improving_effort:cKt,self_assessing:lKt,predicting:dKt,help_seeking_behaviors:uKt,reflecting:mKt,low:hKt,medium_low:gKt,medium:pKt,medium_high:fKt,high:yKt,how_much_did_you_learn_from_this_conference:wKt,are_there_any_observations_or_feedback_you_want_to_share:vKt,what_are_you_doing_well_that_you_want_to_continue:bKt,what_is_something_you_have_learned_while_working_towards_achieving_your_goals:$Kt,english_language_or_literature:kKt,language_class:xKt,ridge_charts:IKt,bar_charts:CKt,line_charts:SKt,start_of_day:AKt,mid_morning:EKt,before_lunch:TKt,mid_afternoon:jKt,last_class_of_the_day:qKt,student_only:NKt,teacher_only:PKt,did_the_student_have_all_needed_materials_for_this_class:RKt,does_the_student_have_any_missing_assignments:LKt,did_the_student_complete_today_s_classwork:MKt,did_the_student_ask_for_help_when_needed:zKt,please_rate_the_student_s_participation_in_class:DKt,please_rate_the_student_s_peformance_in_class:FKt,how_useful_were_the_accommodations:OKt,do_you_have_any_concerns_or_student_success_to_share:GKt,not_at_all:BKt,very_helpful:VKt,not_sent:HKt,well_being_is_feeling_good_mentally_in_your_head_and_physically_in_your_body_do_you_have_habits_and_routines_that_help_you_look_after_yourself_some_people_boost_their_well_being_by_eating_healthily_being_active_spending_time_with_friends_and_family_doing_things_they_enjoy_or_helping_others:WKt,growth_is_all_about_becoming_the_best_version_of_yourself_this_is_done_through_learning_trying_new_things_working_hard_and_taking_risks_are_you_happy_with_the_progress_you_are_making_towards_your_goals_and_in_other_areas_of_your_life:UKt,relationships_are_connections_with_other_people_good_relationships_have_trust_respect_honesty_and_safety_how_are_you_getting_on_with_family_friends_and_teachers_do_you_have_relationships_that_bring_you_happiness_and_people_you_can_talk_to:XKt,productivity_is_about_getting_things_done_in_a_way_that_is_smarter_not_harder_this_means_you_know_what_needs_to_be_done_and_how_you_re_going_to_do_it_while_doing_your_work_today_were_you_able_to_help_yourself_stay_focused_and_finish_the_task:YKt,academics_relate_to_your_learning_through_work_you_do_at_school_and_home_are_you_doing_your_classwork_and_homework_every_day_do_your_grades_show_your_teachers_parents_and_even_yourself_how_hard_you_are_working_to_learn:ZKt,self_efficacy_is_when_you_believe_in_yourself_and_that_you_can_do_something_well_are_you_happy_with_something_you_have_done_well_today_do_you_think_you_can_be_successful_in_what_you_have_to_do_today:JKt,focus_is_when_you_pay_attention_to_a_task_or_a_person_and_dont_get_distracted_if_you_re_trying_to_focus_on_your_teacher_then_you_are_only_thinking_about_what_the_teacher_is_saying_have_you_been_able_to_stay_on_task_today_can_you_clear_your_mind_to_do_your_work:QKt,happiness_is_a_good_feeling_that_can_come_from_anything_you_enjoy_or_from_generally_being_satisfied_with_the_way_your_life_is_going_while_its_not_possible_to_be_happy_all_the_time_you_can_always_find_something_to_be_happy_about_has_there_been_a_moment_that_made_you_smile_today_what_things_people_activities_bring_you_joy_and_make_you_feel_good:KKt,when_you_feel_safe_you_are_not_scared_or_in_danger_it_means_you_are_comfortable_and_happy_at_home_at_school_and_wherever_your_normal_activities_take_you_are_you_able_to_be_yourself_do_you_feel_like_people_care_about_you_and_that_your_thoughts_and_feelings_matter:ee_,stress_in_the_right_amount_is_actually_a_positive_thing_too_much_stress_causes_distress_which_makes_us_feel_like_we_re_losing_control_too_little_stress_means_we_re_not_engaged_or_challenged_the_right_amount_of_stress_for_each_of_us_helps_us_reach_our_goals_and_perform_at_our_best:te_,after_looking_at_your_answers_today_are_you_ready_to_do_whats_asked_of_you_in_class_or_do_you_need_help_to_get_in_a_good_place_to_learn_being_ready_to_learn_means_your_mind_and_body_are_working_together_to_prepare_you_to_learn_new_things_and_deepen_your_understanding_of_the_learning_already_covered:_e_,how_helpful_was_our_conversation_today:se_,being_proud_of_yourself_is_when_you_feel_good_about_something_you_did_or_who_you_are_as_a_person_how_satisfied_or_happy_are_you_about_your_actions_today:ne_,what_is_the_one_thing_you_are_going_to_keep_doing_well_or_start_doing_differently_or_what_is_one_thing_you_learned_about_yourself_others_or_the_world_around_you:oe_,energy_provides_the_strength_and_power_to_do_something_this_can_be_something_physical_like_running_a_race_or_mental_like_taking_an_assessment_do_you_feel_like_you_have_enough_energy_to_get_through_the_day_how_do_you_feel_about_your_energy_levels_at_the_moment:ae_,student_has_not_started_this_check_in_are_you_sure_to_delete:ie_,struggling_i_need_support:re_,some_well_being_issues:ce_,generally_okay:le_,most_well_being_issues_are_fine:de_,feeling_great:ue_,making_no_progress:me_,aware_of_my_goals_but_making_little_progress:he_,making_some_progress:ge_,good_growth_overall:pe_,great_growth_in_all_areas:fe_,one_or_more_key_relationships_are_very_difficult:ye_,one_or_more_key_relationships_are_a_little_tricky:we_,most_key_relationships_are_positive:ve_,all_key_relationships_are_positive:be_,not_at_all_productive:$e_,procrastinating:ke_,meeting_some_deadlines:xe_,meeting_most_deadlines:Ie_,meeting_all_deadlines_comfortably:Ce_,major_challenges:Se_,difficulties_in_some_areas:Ae_,on_target_in_some_areas:Ee_,on_target_in_most_areas:Te_,on_target_in_all_areas:je_,very_low_confidence:qe_,lacking_some_self_belief:Ne_,developing_and_improving:Pe_,feeling_positive:Re_,super_confident:Le_,always_distracted:Me_,mostly_distracted:ze_,sometimes_distracted:De_,generally_focused:Fe_,laser_focused:Oe_,exhausted:Ge_,often_tired:Be_,feeling_okay:Ve_,good_energy:He_,unhappy_most_of_the_time:We_,bursting_with_energy:Ue_,unhappy_some_of_the_time:Xe_,more_positives_than_negatives:Ye_,generally_happy:Ze_,optimistic_and_positive_almost_all_of_the_time:Je_,in_danger:Qe_,feeling_unsafe:Ke_,some_concerns:et_,feeling_safe:tt_,very_safe_and_secure:_t_,moderate:st_,very_high:nt_,how_much_did_the_conceptual_change_conversation_help_your_learning_improve:ot_,how_much_did_discussing_ways_to_seek_help_during_this_session_help_your_learning_improve:at_,how_much_did_a_focus_on_setting_or_reinforcing_high_expectations_during_this_session_help_your_learning_improve:it_,a_little:rt_,a_lot:ct_,after_session:lt_,high_pride:dt_,low_pride:ut_,what_is_on_your_mind:mt_,select_all:ht_,attitude:gt_,behavior:pt_,collaboration:ft_,confidence:yt_,creativity:wt_,developing_ideas:vt_,exercise:bt_,finishing_tasks:$t_,flexibility:kt_,impulse_control:xt_,listening:It_,long_term_memory:Ct_,math:St_,organization_of_materials:At_,processing_speed:Et_,reading:Tt_,setting_and_achieving_goals:jt_,short_term_memory:qt_,sleep_hygiene:Nt_,speaking:Pt_,starting_tasks:Rt_,stress_and_anxiety:Lt_,studying:Mt_,time_management:zt_,work_ethic:Dt_,writing:Ft_,high_expectations:Ot_,i_learn_best_when_i_set_high_expectations_for_myself_that_encourage_me_to_do_more_than_the_minimum_expected:Gt_,i_learn_best_when_i_recognize_my_successes_and_have_an_opportunity_to_celebrate_progress_and_achievements:Bt_,integrating_learning_with_previous_knowledge:Vt_,i_learn_best_when_i_connect_new_and_important_learning_to_previous_things_i_have_learned:Ht_,learners_self_assessing:Wt_,i_learn_best_when_i_self_assess_my_own_learning_with_guided_prompts_rubrics_and_or_support:Ut_,learning_goals:Xt_,i_learn_best_when_i_have_short_and_long_term_goals_that_i_m_working_on_and_know_where_i_am_on_my_goal_progress_this_might_also_include_me_creating_habits_and_routines_that_assist_me_in_achieving_my_goals:Yt_,planning_and_predicting:Zt_,i_learn_best_when_i_plan_future_actions_and_predict_what_will_happen_as_a_result_of_these_actions:Jt_,quality_feedback:Qt_,i_learn_best_when_i_know_what_good_work_looks_like_how_my_work_compares_to_good_work_and_what_i_need_to_do_to_improve_my_work_to_make_it_good:Kt_,i_learn_best_when_i_have_time_to_reflect_on_my_learning_and_or_when_a_teacher_emphasizes_learning_opportunities_and_provides_time_to_reflect:e__,i_learn_best_when_i_learn_about_myths_and_misconceptions_around_a_concept_and_why_they_are_not_true_it_s_also_helpful_when_teachers_address_misconceptions_around_my_thinking_and_or_self_assessments_that_are_not_accurate:t__,i_learn_best_when_i_am_encouraged_to_reach_out_for_help_whether_that_be_for_academic_support_guidance_advice_medical_assistance_social_emotional_support_etc_if_needed:___,target:s__,session_focus:n__,what_was_the_main_focus_of_this_session:o__,academic:a__,assessments_and_homework:i__,custom:r__,general:c__,habits_and_strategies:l__,organization_and_planning:d__,school_life_balance:u__,sleep_habits:m__,social_media_tik_tok_instagram_youtube_pinterest_etc:h__,role_playing_games_d_and_d_world_of_warcraft_pathfinder_etc:g__,environment_global_warming_sustainability_etc:p__,anime_my_hero_academia_hunter_x_hunter_one_piece_etc:f__,manga:y__,graphic_novels:w__,comics:v__,politics:b__,television_stranger_things_heart_stopper_glow_up_etc_and_movies_shrek_marvel_encanto_etc:$__,music:k__,bluey:x__,stickers:I__,weather:C__,religion:S__,spirituality:A__,news_current_events:E__,sports:T__,cafe_culture_coffee:j__,fashion_design:q__,futurism_engineering_design_etc:N__,science_fiction:P__,wellness_meditation_mindfulness_etc:R__,comedy:L__,journalism:M__,make_up:z__,aesthetics_cottagecore_dark_academia_fairycore_etc:D__,automotive_culture_race_cars_motorcycles_motor_bikes_etc:F__,poetry_slam_poetry:O__,horror_and_suspense:G__,skiing_snowboarding:B__,horseback_riding:V__,magic:H__,science_biology_chemistry_physics_etc:W__,minecraft:U__,graphic_design:X__,survival_prepping:Y__,botany:Z__,film_study:J__,first_responder_fire_ems_emt_police_etc:Q__,animals_domesticated_rescue_etc:K__,animals_large_wild_etc:es_,marine_biology:ts_,video_game_youtubers:_s_,hello_kitty:ss_,memes:ns_,cony_and_brown:os_,pokemon:as_,select_significant_strengths_or_enter_significant_strengths_here:is_,i_learn_best_when_i:rs_,i_have_difficulty_learning_when_i:cs_,teachers_make_learning_easier_for_me_when_they:ls_,teachers_make_learning_more_difficult_for_me_when_they:ds_,if_you_are_a_teacher_and_see_i_m_having_trouble_learning_in_class_you_can_help_me_by:us_,the_assignments_i_learn_the_most_from_are:ms_,the_assignments_i_sometimes_find_too_challenging_are:hs_,chunking_tasks:gs_,i_learn_best_when_my_teacher_breaks_down_large_tasks_or_projects_into_smaller_steps_and_estimates_or_helps_me_estimate_th_amount_of_time_each_step_will_require:ps_,time_management_starting_tasks_finishing_tasks_planning:fs_,bite_size_learning:ys_,i_learn_best_when_my_teacher_breaks_down_new_learning_into_smaller_pieces_of_information_followed_by_opportunities_to_review_what_i_learned_and_identify_gaps_in_learning:ws_,short_term_memory_staying_focused_impulse_control_self_awareness_listening_processing_speed:vs_,breaks:bs_,i_learn_best_when_my_teacher_builds_in_short_breaks_into_each_class:$s_,time_management_finishing_tasks_staying_focused_impulse_control_attitude_stress_and_anxiety_work_ethic:ks_,happy_notes_home:xs_,i_learn_best_when_my_teacher_send_positive_notes_emails_or_calls_home_to_celebrate_my_growth:Is_,finishing_tasks_setting_and_achieving_goals_attitude_behavior_confidence_work_ethic:Cs_,growth_focused:Ss_,i_learn_best_when_my_teacher_focuses_on_my_growth_and_progress_rather_than_overall_achievement:As_,confidence_setting_and_achieving_goals_stress_and_anxiety:Es_,avoid_spotlight:Ts_,i_learn_best_when_my_teacher_is_able_avoid_putting_me_in_the_spotlight_and_giving_me_space_and_time_to_prepare_when_i_do_need_to_present_also_allowing_for_recorded_presentations_rather_than_in_person_requirements_when_possible:js_,stress_and_anxiety_speaking_processing_speed:qs_,frequent_check_ins:Ns_,i_learn_best_when_my_teacher_has_frequent_private_check_ins_to_ensure_i_am_on_track_this_also_helps_me_feel_safe_and_supported_in_class_ideas_for_check_ins_include_a_sticky_note_system_silent_signal_whisper_at_desk_side_but_we_can_agree_on_something_together:Ps_,stress_and_anxiety_processing_speed_task_initiation_developing_ideas_planning_finishing_tasks_short_term_memory_staying_focused_self_advocacy_self_awareness:Rs_,develop_rapport:Ls_,i_learn_best_when_my_teacher_focuses_on_relationship_building_both_with_teachers_and_peers_creating_a_community_of_care_where_i_feel_connected_and_valued:Ms_,stress_and_anxiety_behavior_attitude_confidence:zs_,explicit_prioritizations:Ds_,i_learn_best_when_my_teacher_shares_what_activities_are_must_do_recommended_or_completely_optional:Fs_,planning_processing_speed_finishing_tasks_listening_reading_writing_stress_and_anxiety_work_ethic_studying:Os_,planned_transitions:Gs_,i_learn_best_when_my_teacher_previews_and_prepares_me_and_other_students_for_safety_drills_activity_changes_or_other_class_transitions:Bs_,time_management_planning_finishing_tasks_stress_and_anxiety_behavior_flexibility:Vs_,choices:Hs_,i_learn_best_when_my_teacher_provides_as_many_choices_as_possible:Ws_,attitude_behavior_work_ethic:Us_,movement:Xs_,i_learn_best_when_my_teacher_provides_lots_of_planned_physical_movement_or_opportunities_for_movement_into_class:Ys_,impulse_control_staying_focused:Zs_,non_verbal_cues:Js_,i_learn_best_when_my_teacher_redirects_me_with_non_verbal_cues_to_redirect_me_when_possible_rather_than_verbally_redirecting_me:Qs_,staying_focused_self_awareness_attitude_behavior_stress_and_anxiety_confidence:Ks_,limit_direct_instruction:en_,i_learn_best_when_my_teacher_doesnt_talk_too_long_and_gives_me_opportunities_to_learn_at_my_own_pace_using_materials_that_work_best_for_me:tn_,short_term_memory_staying_focused_impulse_control_listening_behavior_processing_speed:_n_,routines:sn_,i_learn_best_when_my_teacher_sets_and_maintains_consistent_routines_if_we_need_to_change_routines_i_know_about_the_changes_ahead_of_time:nn_,time_management_planning_finishing_tasks_stress_and_anxiety_behavior_flexibility_starting_tasks:on_,multimodal_learning:an_,i_learn_best_when_my_teacher_helps_us_learn_through_multiple_ways_including_reading_listening_watching_and_doing_important_concepts_are_not_taught_just_using_one_way_of_learning:in_,staying_focused_listening_reading_writing_math_collaboration_processing_speed:rn_,flexible_assessments:cn_,i_learn_best_when_my_teacher_creates_a_variety_of_options_for_me_to_demonstrate_my_learning:ln_,listening_reading_writing_math_speaking_stress_and_anxiety_collaboration_processing_speed_studying:dn_,flexible_feedback:un_,i_learn_best_when_my_teacher_regularly_gives_me_feedback_so_that_the_i_know_how_i_m_performing_and_what_i_can_do_to_continue_improving:mn_,planning_staying_focused_self_awareness:hn_,pre_learning:gn_,i_learn_best_when_my_teacher_provides_opportunities_to_learn_new_concepts_early_such_as_early_access_to_resources:pn_,time_management_writing_reading_math_stress_and_anxiety_processing_speed:fn_,understanding_checks:yn_,i_learn_best_when_my_teacher_frequently_checks_in_with_me_to_see_if_i_ve_understand_new_learning:wn_,starting_tasks_short_term_memory_staying_focused_impulse_control_self_advocacy_listening_processing_speed:vn_,rubrics:bn_,i_learn_best_when_my_teacher_provides_learning_rubrics_early_and_refer_to_them_often_these_rubrics_help_me_understand_what_is_needed_for_me_to_demonstrate_my_learning_at_different_levels_of_performance:$n_,studying_work_ethic_confidence_stress_and_anxiety_self_advocacy_time_management_planning_finishing_tasks:kn_,graphic_organizers:xn_,i_learn_best_when_my_teacher_uses_graphic_organizer_to_help_me_understand_what_we_are_learning:In_,listening_reading_writing_processing_speed_short_term_memory_developing_ideas_planning:Cn_,visuals:Sn_,i_learn_best_when_my_teacher_uses_lots_of_visuals_diagrams_infographics_pictures_etc_to_help_me_understand_what_are_we_learning:An_,short_term_memory_staying_focused_listening_reading_processing_speed:En_,sentence_stems:Tn_,i_learn_best_when_my_teacher_provides_sentence_stems_and_writing_promts_for_written_assignments:jn_,developing_ideas_planning_starting_tasks_writing:qn_,think_time:Nn_,i_learn_best_when_i_have_plenty_of_time_to_think_before_answering_a_question:Pn_,developing_ideas_processing_speed_speaking:Rn_,clear_instructions:Ln_,i_learn_best_when_my_teacher_breaks_down_instructions_into_small_steps_using_simple_vocabulary_and_check_to_make_sure_i_ve_understood_the_directions:Mn_,time_management_planning_starting_tasks_finishing_tasks_short_term_memory_staying_focused_listening_processing_speed:zn_,sharing_vocabulary:Dn_,i_learn_best_when_my_teacher_provides_new_vocabulary_words_before_we_cover_new_information_and_provides_opportunities_to_learn_the_vocabulary:Fn_,short_term_memory_long_term_memory_listening_reading_processing_speed:On_,idea_bank:Gn_,i_learn_best_when_my_teacher_provides_a_pre_prepared_list_of_ideas_for_me_to_chose_from:Bn_,developing_ideas_starting_tasks_time_management:Vn_,exemplars:Hn_,i_learn_best_when_my_teacher_provides_examples_of_what_successfully_completed_work_looks_like_for_different_levels_of_performance:Wn_,developing_ideas_planning_starting_tasks_studying:Un_,organization_time:Xn_,i_learn_best_when_my_teacher_provides_time_for_me_to_organize_materials_and_or_plan_next_steps:Yn_,time_management_organization_of_materials_developing_ideas_planning_starting_tasks_stress_and_anxiety:Zn_,i_learn_best_when_my_teacher_schedules_regular_1_to_1_time_with_me:Jn_,multimodal_answers:Qn_,i_learn_best_when_i_can_show_my_understanding_in_varied_ways_like_sketching_presentation_or_a_short_video_relaying_information_etc:Kn_,starting_tasks_finishing_tasks_self_advocacy_long_term_memory:eo_,peer_teaching_group_work:to_,i_learn_best_when_i_can_peer_teach_or_practise_with_peers:_o_,studying_listening_processing_speed_long_term_memory:so_,extra_time_to_complete_assessments:no_,extra_time_to_process_spoken_information_and_directions:oo_,extra_breaks_as_needed:ao_,use_of_a_computer_without_internet_access_or_word_processor_on_assessments:io_,audio_versions_of_assessments:ro_,access_to_a_reader_for_assessments:co_,speech_to_text_software_for_assessments:lo_,access_to_a_scribe_for_assessments:do_,audio_recording_of_answers_for_assessments:uo_,break_up_larger_timed_assessments_over_several_days:mo_,take_tests_in_a_quiet_room_with_few_distractions:ho_,take_tests_in_a_small_group_setting:go_,assign_seating_where_the_student_is_likely_to_learn_best:po_,the_use_of_sensory_tools_during_class:fo_,special_lighting:yo_,use_of_a_computer_or_word_processor_to_take_notes:wo_,use_of_a_calculator_when_normally_not_allowed_one:vo_,use_of_a_spelling_dictionary_or_spellchecker:bo_,copies_of_class_notes:$o_,written_copy_of_any_instructions:ko_,visuals_and_graphics_to_accompany_any_new_information_delivered_verbally:xo_,ability_to_record_lessons:Io_,increase_text_size_to_a_larger_format:Co_,provide_alternative_formats_other_than_reading_when_learning_new_information:So_,provide_alternative_formats_other_than_listening_when_learning_new_information:Ao_,great_let_s_build_your_goal:Eo_,what_do_you_want_to_be_different_about_your_learning_select_a_category_or_type_your_own_idea:To_,choose_my_goal_area:jo_,nice_choice_what_area_of_well_being_would_you_like_to_work_on:qo_,let_s_get_more_specific_select_an_area_or_type_your_own_idea:No_,add_more_details_to_your_goal:Po_,remember_goals_should_be_smart:Ro_,specific_measurable_achievable_ambitious_relevant_and_time_based:Lo_,perfect_let_s_narrow_this_down_time_to_add_more_details_to_your_goal:Mo_,select_a_goal_or_type_your_own:zo_,now_let_s_pick_your_targets:Do_,how_do_you_plan_to_accomplish_this_goal:Fo_,customize_the_options_below_or_type_your_own_these_will_become_your_short_term_targets:Oo_,keep_going:Go_,add_target:Bo_,where_are_you_now_what_does_this_look_like_for_you_at_the_moment:Vo_,this_helps_you_track_your_progress:Ho_,finished:Wo_,i_will_create_a_sleep_routine:Uo_,i_will_set_an_alarm_to_remind_me_to_start_my_routine:Xo_,i_will_put_my_electronics_away_1_hour_before_it_is_time_for_me_to_sleep:Yo_,i_will_set_my_phone_to_focus_or_do_not_disturb_mode_for_an_hour_before_bedtime_and_until_my_morning_alarm:Zo_,i_will_choose_relaxing_activities_1_hour_before_bedtime_such_as_reading_meditating_yoga_or_listening_to_music:Jo_,i_will_get_out_of_bed_at_the_same_time_each_day:Qo_,i_will_only_press_snooze_one_time_each_morning:Ko_,i_will_have_everything_packed_or_set_out_for_the_next_day_before_going_to_sleep:ea_,i_will_go_to_bed_on_time:ta_,i_will_do_this_at_least_4_out_of_5_times_this_week:_a_,i_will_wake_up_on_time:sa_,i_will_create_a_short_routine_for_the_morning_that_gets_me_excited_for_the_day:na_,i_will_set_an_alarm_to_remind_me_to_get_ready_for_sleep_1_hour_before_bedtime:oa_,i_will_set_a_morning_alarm_that_gives_me_plenty_of_time_to_get_ready_for_school:aa_,i_will_read_for_20_minutes_before_bed:ia_,i_will_meditate_or_listen_to_relaxing_music_before_going_to_sleep:ra_,i_will_create_a_morning_routine_to_be_ready_for_the_day:ca_,i_will_research_ideas_for_a_morning_routine:la_,i_will_present_my_ideas_to_my_teacher_or_other_person:da_,i_will_map_out_my_routine_on_paper_or_in_my_phone:ua_,i_will_start_my_routine_at_the_same_time_every_morning:ma_,i_will_create_an_evening_routine_to_get_me_ready_for_bed:ha_,i_will_research_ideas_for_an_evening_routine:ga_,i_will_do_this_routine_5_out_of_5_school_nights_this_week:pa_,i_will_get_at_least_8_hours_of_sleep_each_night:fa_,i_will_practice_meditation:ya_,i_will_find_choose_a_meditation_app_or_resource_to_use:wa_,i_will_challenge_myself_to_meditate_for_x_number_of_days_in_a_row:va_,i_will_choose_a_daily_time_to_meditate_and_set_an_alarm_to_remind_me:ba_,i_will_meditate_at_least_x_out_of_x_days_this_week:$a_,i_will_start_an_exercise_routine:ka_,i_will_find_a_friend_to_exercise_with_each_week:xa_,i_will_choose_the_type_of_exercise_to_add_to_my_routine:Ia_,i_will_share_my_routine_with_a_friend_or_trusted_adult:Ca_,i_will_add_my_exercise_times_to_my_planner_or_calendar:Sa_,i_will_exercise_daily:Aa_,i_will_exercise_at_least_x_out_of_x_days_this_week:Ea_,i_will_understand_the_cause_of_my_stress:Ta_,i_will_talk_to_my_teacher_or_counselor_about_things_that_bother_me_or_make_me_stressed:ja_,i_will_identify_and_talk_with_someone_i_trust_about_how_i_am_feeling:qa_,i_will_pause_when_i_m_feeling_stressed_to_identify_what_is_causing_the_stress:Na_,i_will_learn_what_is_and_is_not_in_my_circle_of_control:Pa_,i_will_acknowledge_when_i_am_approaching_a_potentially_stressful_situation:Ra_,i_will_learn_about_coping_skills:La_,i_will_talk_to_my_teacher_or_counselor_about_coping_skills_they_think_will_be_helpful_for_me:Ma_,i_will_choose_a_coping_skill_to_practice_when_i_feel_i_am_becoming_stressed:za_,i_will_use_a_coping_strategy_when_i_am_stressed_x_number_of_times_this_week:Da_,i_will_start_journaling_my_thoughts_and_feelings:Fa_,i_will_do_this_at_least_x_out_of_x_days_this_week:Oa_,i_will_get_outside_or_in_nature:Ga_,i_will_make_time_for_something_fun:Ba_,i_will_make_time_for_being_still_and_quiet:Va_,increase_my_mindfulness:Ha_,i_will_take_minibreaks_throughout_the_day:Wa_,i_will_decide_what_types_of_breaks_help_me_the_most:Ua_,i_will_set_alarms_to_remind_myself_to_take_a_break:Xa_,i_will_take_a_break_every_hour:Ya_,i_will_take_a_break_every_90_minutes:Za_,i_will_take_x_number_of_breaks_a_day:Ja_,create_relaxation_opportunities:Qa_,i_will_use_visualization_to_help_me_relax:Ka_,i_will_learn_about_visualization:ei_,i_will_set_an_alarm_to_remind_me_to_practice_visualization:ti_,i_will_decide_what_this_practice_will_look_like_for_me:_i_,i_will_do_deep_breathing_exercises:si_,i_will_research_and_learn_breathing_exercises_to_try:ni_,i_will_set_an_alarm_to_remind_me_to_practice_my_breathing_exercises:oi_,i_will_listen_to_relaxing_music:ai_,i_will_find_or_create_a_playlist_that_i_find_relaxing:ii_,i_will_add_listening_music_to_my_evening_routine:ri_,i_will_practice_yoga:ci_,i_will_find_a_class_youtube_channel_or_app_to_use:li_,i_will_challenge_myself_to_practice_yoga_for_x_number_of_days_in_a_row:di_,i_will_choose_a_daily_time_to_practice_yoga_and_set_an_alarm_to_remind_me:ui_,i_will_do_an_art_project_that_is_enjoyable:mi_,i_will_find_a_relaxing_art_activity_to_try:hi_,i_will_choose_a_time_to_do_my_art_each_week_and_set_reminders:gi_,i_will_tell_someone_about_my_new_art_project:pi_,keeping_fit:fi_,i_will_exercise_more:yi_,i_will_join_a_sports_team_or_club:wi_,i_will_find_out_what_is_available_at_my_school:vi_,i_will_choose_one_that_interests_me:bi_,i_will_take_care_of_any_paperwork_to_join:$i_,i_will_participate_in_the_tryout_or_application_process:ki_,i_will_attend_all_the_practices:xi_,i_will_learn_a_new_sport_or_activity:Ii_,i_will_research_new_sports_or_activities_that_might_interest_me:Ci_,i_will_choose_a_new_sport_or_activity_to_learn:Si_,i_will_see_if_anyone_i_know_would_like_to_try_this_new_activity_with_me:Ai_,i_will_gather_the_needed_gear_to_learn_this_activity:Ei_,i_will_research_the_rules_and_methods_for_this_activity:Ti_,i_will_find_groups_who_participate_in_this_activity_to_join:ji_,i_will_research_potential_challenges_that_interest_me:qi_,i_will_choose_a_challenge_to_complete:Ni_,i_will_set_a_time_each_week_or_day_to_do_this_challenge:Pi_,i_will_set_an_alarm_to_remind_me_to_do_this_challenge:Ri_,i_will_sign_up_for_a_race:Li_,i_will_research_different_races_and_events_happening_in_my_area_in_the_next_few_months:Mi_,i_will_choose_one_to_complete_and_talk_to_my_parents_guardians_about_participating:zi_,i_will_sign_up_if_i_have_permission_from_my_parents_guardians:Di_,i_will_create_a_training_schedule_to_prepare_for_my_race:Fi_,i_will_set_reminders_for_my_training_schedule:Oi_,i_will_create_an_at_home_exercise_routine:Gi_,i_will_take_an_inventory_of_what_exercise_equipment_i_have_access_to_at_home:Bi_,i_will_research_what_routines_and_exercises_i_can_do_with_my_equipment_at_home:Vi_,i_will_find_a_youtube_channel_or_app_to_use_for_my_workouts:Hi_,i_will_set_a_schedule_for_my_routine:Wi_,i_will_set_reminders_for_my_routine:Ui_,i_will_join_and_go_to_a_gym:Xi_,i_will_research_gyms_in_my_area:Yi_,i_will_choose_a_gym_that_i_can_pay_for_and_get_my_parent_guardians_permission:Zi_,i_will_go_to_the_gym_and_get_a_membership:Ji_,i_will_learn_about_the_equipment_programs_and_classes_available_at_my_gym:Qi_,i_will_decide_what_my_routine_will_be_when_i_visit_the_gym:Ki_,i_will_schedule_times_to_go_to_the_gym_on_my_phone:er_,i_will_go_to_the_gym_x_out_of_x_days_this_week:tr_,eating_healthier:_r_,i_will_add_more_fruits_and_veggies_into_my_diet:sr_,i_will_swap_x_for_x_when_i_go_out_to_eat:nr_,i_will_limit_my_sugary_drinks:or_,i_will_drink_more_water:ar_,i_will_fill_up_my_water_bottle_x_number_of_times_each_school_day:ir_,i_will_learn_to_cook_simple_meals:rr_,i_will_go_to_the_store_to_buy_the_missing_ingredients_on_my_list:cr_,i_will_follow_the_recipe_and_share_my_meal_with_a_family_member_or_friend:lr_,improve_my_timekeeping_not_late_for_school_class:dr_,i_will_add_buffer_time_to_my_schedule_in_the_morning_to_make_sure_i_get_to_school_on_time:ur_,i_will_set_alarms_or_calendar_alert_on_my_phone_to_remind_me_to_go_to_my_next_class:mr_,i_will_set_an_alarm_to_tell_me_5_minutes_before_i_need_to_leave_for_school:hr_,i_will_put_my_school_schedule_in_a_planner_or_on_my_phone:gr_,making_friends:pr_,i_will_join_a_club_or_sports_team:fr_,i_will_attend_all_the_practices_or_meetings:yr_,i_will_find_someone_with_a_common_interest:wr_,i_will_ask_someone_to_hang_out_outside_of_school:vr_,i_will_attend_events_or_parties_i_m_invited_to:br_,i_will_eat_lunch_with_someone_i_want_to_get_to_know_better:$r_,i_will_learn_some_good_questions_to_ask_others_to_get_to_know_them:kr_,i_will_learn_how_to_engage_in_conversation_more:xr_,i_will_think_about_what_i_want_in_a_friend:Ir_,i_will_think_about_what_it_means_to_be_a_good_friend:Cr_,i_will_share_this_thoughts_with_someone:Sr_,joining_a_club_sport:Ar_,i_will_choose_a_club_to_join:Er_,i_will_attend_all_the_meetings:Tr_,i_will_choose_a_sport_to_try_out_for:jr_,learning_a_new_activity:qr_,i_will_choose_a_new_activity_to_learn:Nr_,i_will_gather_the_needed_supplies_to_learn_this_activity:Pr_,i_will_practice_or_play_my_new_activity_at_least_x_out_of_x_times_this_week:Rr_,improve_homework:Lr_,i_will_turn_in_my_homework_on_time:Mr_,i_will_turn_in_high_quality_homework:zr_,work_on_longterm_assignments_planned_and_making_progress:Dr_,i_will_set_up_a_study_work_plan_for_long_term_projects:Fr_,studying_for_tests_routines_and_effective_study_strategies:Or_,i_will_set_up_a_study_work_plan_for_tests:Gr_,make_notes_in_class_high_quality_organised:Br_,i_will_take_notes_digital_paper_in_class_and_organise_them_in_a_folder_notebook_for_each_of_my_core_key_classes:Vr_,i_will_research_note_taking_methods:Hr_,improve_grade_in_x_subject_by_x_amount:Wr_,i_will_review_material_from_class_an_additional_on_top_of_as_well_as_not_including_homelearning:Ur_,study_x_amount_of_time_on_x_subject_x_times_hours_a_week:Xr_,finish_work_early_and_check_against_instructions_rubric_then_edit:Yr_,improve_the_quality_grades_of_homelearning_assignments:Zr_,create_a_regular_study_homework_schedule:Jr_,i_will_create_a_schedule_for_my_week_detailing_study_days_times_and_how_long_i_will_study_by_x_date:Qr_,improve_email_google_drive_calendar_or_planner_organization:Kr_,i_will_check_my_inbox_unread_emails_at_least_x_times_a_week_and_reply_if_necessary:ec_,i_will_create_folders_labels_and_organise_emails_into_the_correct_ones:tc_,i_will_create_folders_for_each_subject_and_organsie_docs_into_the_correct_folders:_c_,create_reminders_or_calendar_events_for_important_events_deadlines_study_times:sc_,i_will_create_reminders_or_calendar_events_for_my_most_important_events_deadlines_or_study_sessions_immediately_or_as_soon_as_i_can:nc_,create_a_longterm_assignment_planner:oc_,i_will_evaluate_my_progress_and_adjust_how_long_i_will_study_by_x_date:ac_,improve_my_todo_list_habits:ic_,i_will_add_tasks_to_my_todo_list_immidietly_or_as_soon_as_i_can_and_review_it_3_times_a_week:rc_,i_will_create_a_schedule_for_longterm_assihnments_detailing_study_days_times_and_how_long_i_will_study_by_x_date:cc_,i_will_take_notes_digital_paper_in_class_and_organise_them_in_a_folder_notebook_for_all_my_classes:lc_,keep_devices_off_on_silent_or_put_away_in_class:dc_,keep_devices_off_on_silent_or_put_away:uc_,keep_devices_off_on_silent_or_put_away_during_study_time:mc_,i_will_create_a_routine_for_transitioning_study_time:hc_,set_a_schedule_on_my_phone_on_focus_or_do_not_disturb_during_class_times:gc_,set_a_schedule_on_my_phone_on_focus_or_do_not_disturb_during_planned_study_times:pc_,reduce_or_limit_time_spent_on_social_media:fc_,i_will_set_up_time_limits_on_my_apps_or_websites:yc_,i_will_set_a_timer_when_i_am_taking_a_break_on_social_media:wc_,increase_engagement_in_class:vc_,avoid_distracting_websites_other_tasks_in_class:bc_,i_will_pay_attention_to_the_instructions_in_class:$c_,i_will_actively_participate_in_class_more:kc_,i_will_participate_more_in_class_activities:xc_,i_will_ask_questions_in_class_related_to_the_topic_to_improve_my_understanding_learning:Ic_,i_will_volunteer_to_answer_questions_in_class_more:Cc_,avoid_distracting_websites:Sc_,i_will_set_up_time_limits_for_distracting_website_via_a_chrome_extension:Ac_,i_will_close_all_tabs_not_related_to_my_task:Ec_,getting_help_when_needed:Tc_,i_will_meet_with_my_teacher_outside_of_class_when_i_need_help:jc_,i_will_email_my_teacher_when_i_need_help:qc_,i_will_ask_questions_in_class_when_i_do_not_know_what_to_d:Nc_,understanding_my_accommodations:Pc_,i_will_know_and_understand_my_accommodations:Rc_,i_will_ask_for_my_accommodations_when_i_need_them_in_class:Lc_,i_will_tell_my_case_manager_when_i_no_longer_need_an_accommodations:Mc_,i_will_talk_to_my_case_manager_when_i_feel_i_need_additional_or_different_accommodations:zc_,procrastination:Dc_,planning_ahead:Fc_,i_will_spend_x_amount_of_time_x_times_a_week_on_longterm_projects:Oc_,i_will_plan_tasks_for_the_week_on_monday_or_the_friday_before:Gc_,i_will_add_task_to_my_planner_when_assigned_in_class:Bc_,task_initiation:Vc_,i_will_start_tasks_on_the_day_given_and_finish_if_time_allows:Hc_,i_will_finish_tasks_early_or_before_they_are_due:Wc_,my_thoughts_and_feelings_are_important:Uc_,today:Xc_,this_week:Yc_,this_month:Zc_,male:Jc_,female:Qc_,type_something_to_search_students:Kc_,assign_for_selected_students:el_,assistant_email:tl_,counselor_email:_l_,support_teacher_email:sl_,add_new_answer:nl_,edit_template:ol_,add_questions:al_,edit_email_template:il_,contact_mail:rl_,announcements:cl_,schedule_information:ll_,welcome_new_teacher_assistant:dl_,contact_request:ul_,welcome_new_teacher:ml_,welcome_new_student:hl_,welcome_new_assistant:gl_,welcome_new_parent:pl_,welcome_new_edu_teacher:fl_,forgot_password:yl_,welcome_new_counselor:wl_,user_first_name:vl_,user_last_name:bl_,password:$l_,message:kl_,domain:xl_,basic:Il_,premium:Cl_,enterprise:Sl_,are_you_sure_to_request_to_change_to_this_plan:Al_,images:El_,audios:Tl_,docs:jl_,videos:ql_,auto_save_after_every_1_min:Nl_,no_user_to_display:Pl_,on_a_scale_from_0_10_how_likely_are_you_to_recommend_us_to_a_friend_or_colleague:Rl_,not_likely_at_all:Ll_,extremely_likely:Ml_,uwcsea_sg_climate_survey_connections_with_adults_and_peers:zl_,uwcsea_sg_climate_survey_do_you_need_some_extra_help_or_support:Dl_,uwcsea_sg_climate_survey_my_health_and_wellbeing:Fl_,uwcsea_sg_climate_survey_open_ended_questions:Ol_,uwcsea_sg_climate_suvey_holistic_learning_experiences:Gl_,import_email_by_csv:Bl_,single_choice:Vl_,multiple_choice:Hl_,text_input:Wl_,emotional:Ul_,summarize:Xl_,rating:Yl_,learning_strategy:Zl_,drop_down:Jl_,happiness_intervetion:Ql_,sdq_standard:Kl_,diversity_equity_inclusion_and_justice:ed_,climate_survey:td_,intervention_safety:_d_,intervention_stress:sd_,safety_at_home:nd_,wellbeing:od_,depression_questions:ad_,level_1_learners_goal_conference:id_,level_1_learners_balanced_conference:rd_,level_1_learners_habits_and_attitudes_towards_learning_conference:cd_,level_2_learners_digital_citizenship:ld_,level_1_learners_digital_citizenship:dd_,level_2_learners_communication:ud_,level_1_learners_communication:md_,level_2_learners_collaboration:hd_,level_1_learners_collaboration:gd_,level_2_learners_self_directed_learning:pd_,level_2_learners_self_management_skills:fd_,level_1_learners_self_management_skills:yd_,level_2_learners_self_advocacy:wd_,level_1_learners_self_advocacy:vd_,level_2_learners_self_awareness:bd_,level_1_learners_self_awareness:$d_,level_2_learners_learning_and_study_skills:kd_,level_1_learners_learning_and_study_skills_session:xd_,level_2_learners_organization:Id_,level_1_learners_organization_session:Cd_,level_2_learners_goal_conference:Sd_,level_2_learners_habits_and_attitudes_towards_learning_conference:Ad_,level_2_learners_balanced_conference:Ed_,level_2_learners_goal_s_session:Td_,level_1_learners_goal_s_session:jd_,level_2_learners_study_strategies_session:qd_,level_2_learners_academic_session:Nd_,level_1_learners_academic_session:Pd_,level_2_learners_habits_and_attitudes_towards_learning_session:Rd_,level_1_learners_habits_and_attitudes_towards_learning_session:Ld_,level_2_learners_general_session:Md_,level_1_learners_general_sessio:zd_,social_and_emotional_learning:Dd_,end_of_class_reflection_questions:Fd_,impulse_control_self_monitoring:Od_,planning_problem_solving:Gd_,teacher_sense_of_self_efficacy_tses:Bd_,general_strategies_for_learning_gsl:Vd_,focusing_attention:Hd_,memory:Wd_,responsible_decision_making:Ud_,social_awareness:Xd_,relationship_skills:Yd_,habits_and_attitudes_towards_learning_hal:Zd_,end_of_conference_questions:Jd_,life_skills:Qd_,health_and_fitness:Kd_,executive_functions:eu_,study_skills:tu_,metacognitive_self_regulation:_u_,educational_satisfaction:su_,default_session_questions:nu_,test_question_category_1:ou_,are_you_a_boarder_or_day_student:au_,before_i_make_a_decision_i_consider_the_consequences:iu_,do_you_have_any_of_the_following_learning_difference_eg_dyslexia_adhd_long_term_illness_health_condition_physical_visual_hearing_impairment_social_behavioural_difference_eg_asd_tourettes:ru_,how_would_you_describe_your_religious_beliefs:cu_,how_would_you_describe_your_sexual_orientation:lu_,i_actively_pursue_activities_that_align_with_my_passions_and_values:du_,i_always_have_someone_to_eat_lunch_with:uu_,i_am_alone_more_often_than_i_would_like:mu_,i_am_happy_with_the_marks_i_get_at_school:hu_,academics_homework_studying_and_grades:gu_,growth_improvement_in_study_habits_grades_sports_clubs_or_personal_projects:pu_,productivity_accomplishing_important_tasks_and_limiting_distractions:fu_,relationships_family_friends_and_teachers:yu_,anything_else_you_want_to_tell_your_teacher:wu_,did_you_bring_what_you_needed_for_this_class:vu_,did_you_complete_all_the_classwork_for_today_s_class:bu_,did_you_have_your_materials_ready_at_the_start_of_class_time:$u_,do_you_have_any_missing_assignments_for_this_class:ku_,assign_bulk:xu_,assign_bulk_student:Iu_,instruction:Cu_,name_is_required:Su_,instruction_is_required:Au_,add_item:Eu_,conference_rubric_items_is_empty:Tu_,blank_row_or_column:ju_,question_list:qu_,question_is_required:Nu_,select_skill:Pu_,type_and_press_enter_to_add_new_row:Ru_,do_you_want_to_remove_this_row:Lu_,do_you_want_to_remove_this_custom_alert:Mu_,remove_custom_alert_successfully:zu_,do_you_want_to_remove_this_skill:Du_,remove_skill_successfully:Fu_,do_you_want_to_remove_this_subject:Ou_,remove_subject_successfully:Gu_,do_you_want_to_remove_this_learning_support_category:Bu_,remove_learning_support_category_successfully:Vu_,do_you_want_to_remove_this_learning_strategy:Hu_,remove_learning_strategy_successfully:Wu_,cant_delete_question:Uu_,do_you_want_to_remove_this_goal_example:Xu_,remove_question_successfully:Yu_,do_you_want_to_remove_this_badge:Zu_,remove_badge_successfully:Ju_,do_you_want_to_remove_this_blank_day:Qu_,remove_blank_day_successfully:Ku_,do_you_want_to_remove_this_band_score:em_,remove_band_score_successfully:tm_,is_used:_m_,time_oneRoster_sync_hh:sm_,small_text:nm_,medium_text:om_,large_text:am_,edit_parent_1_information:im_,edit_parent_2_information:rm_,last_1_1:cm_,how_would_you_rate_your_chances_of_achieving_this_goal:lm_,add_name:dm_,activity_list:um_,select_academic_year:mm_,a_number_of_staff:hm_,staffs:gm_,how_are_you_today:pm_,what_was_the_purpose_or_focus_of_today_s_class:fm_,header_1:ym_,header_2:wm_,header_3:vm_,header_4:bm_,header_5:$m_,header_6:km_,staying_focused:xm_,text_input_question:Im_,vs_last_year:Cm_,leave_page:Sm_,how_much_did_reflecting_during_this_session_help_your_learning_improve:Am_,last_1_1_conversation:Em_,student_has_started_this_conference_are_you_sure_to_delete:Tm_,student_has_started_this_check_in_are_you_sure_to_delete:jm_,student_has_not_started_this_one_to_one_are_you_sure_to_delete:qm_,"you_can_start_a_1-1_conversation_after_the_results_of_the_student's_check-in._If_the_check-in_is_24_hours_older,_you_can_request_the_new_check-in_or_start_the_conversation_by_viewing_the_results":"您可以在学生签到结果出来后开始一对一对话。如果签到时间已超过 24 小时,您可以请求新的签到或通过查看结果开始对话","select_a_student_and_start_a_1-1_conversation_from_a_check-in_or_ask_the_student_to_check-in_before":"选择一名学生,从签到开始一对一对话,或要求学生在之前签到",my_accommodations:Nm_,accommodation_set:Pm_,add_new_accommodation:Rm_,print_my_accommodations:Lm_,my_learning_progress:Mm_,"here_your_teacher_can_edit_or_add_your_accommodation_details._please_note_that_you_can_view_the_information,_but_for_any_edits_or_additions,_kindly_contact_your_teacher_directly.":"您的老师可以在此编辑或添加有关您的便利设施的详细信息。请注意,您可以查看信息,但如果有任何编辑或添加,请直接联系您的老师。","this_is_a_brand_new_beta_version_for_your_personal_learning_journey._you_can_think_about_what_you_want_like_to_do_and_how_you_like_to_learn._we_advise_you_to_do_it_gradually_per_section_and_visit_it_once_a_month.":"这是您学习之旅的全新测试版。您可以思考自己想做什么以及如何学习。我们建议您逐步完成每个部分并每月访问一次。",responses_comparisons:zm_,dropdown_and_verbal_questions_responses:Dm_,mario_tools:Fm_,customize:Om_,techical_settings:Gm_,data_import_export:Bm_,inactive_students:Vm_,weekly_quests:Hm_,admin_general_tips:Wm_,school_usage:Um_,total_conversations_time:Xm_,total_class_reflections:Ym_,grade_usage:Zm_,total_conversations:Jm_,impersonate:Qm_,hi:Km_,transition_plan:eh_,updated_on:th_,print_my_learning_plan:_h_,print_student_learning_plan:sh_,print_my_transition_plan:nh_,about_me:oh_,name_your_interest:ah_,add_more_detail_to_your_interest:ih_,create_interest:rh_,"your_interest_has_been_successfully_created_!":"您的兴趣已成功创建!",view_plp:ch_,my_current_plp:lh_,my_learning_strategies:dh_,add_new_interest:uh_,add_new_challenge:mh_,add_new_strength:hh_,add_new_idea:gh_,add_new_people:ph_,add_new_tool:fh_,add_new_strategy:yh_,add_new_dream:wh_,my_support_network:vh_,add_person:bh_,closer_family:$h_,family:kh_,mentors:xh_,tutors:Ih_,my_timeline:Ch_,add_milestone:Sh_,add_test:Ah_,"you_haven't_added_any academic_milestones_yet":"您尚未添加任何学术里程碑","you_haven't_added_any_tests_yet":"您尚未添加任何测试",colleges:Eh_,"you_haven't_added_any_colleges_yet":"您尚未添加任何大学",add_colleges:Th_,my_transition_plan:jh_,academic_milestones:qh_,tests:Nh_,academic_and_career_interests:Ph_,you_havent_added_any_interests_yet:Rh_,add_a_plan:Lh_,extra_curricular_activities:Mh_,"you_haven't_added_any_activities_yet":"您尚未添加任何活动",add_new_activity:zh_,courses:Dh_,"you_haven't_added_any_courses_yet":"您尚未添加任何课程",add_new_courses:Fh_,"standardized_tests_/_exams":"标准化测试/考试","potential_career_training_courese_/_colleges":"潜在的职业培训课程/学院","you_haven't_added_any_courses_/_colleges_yet":"您尚未添加任何课程/学院","add_new_courese_/_college":"添加新课程/学院",add_new_college:Oh_,"you_haven't_added_any_references_yet":"您尚未添加任何参考资料",references:Gh_,resources_for_my_future:Bh_,"you_haven't_added_any_resources_yet":"您尚未添加任何资源",add_new_resources:Vh_,my_essays:Hh_,"you_haven't_added_any_essays_yet":"您尚未添加任何文章",add_essay:Wh_,learning_portfolios:Uh_,"you_haven't_added_any_learning_portfolios_yet":"您尚未添加任何学习档案",add_portfolio:Xh_,financial_planning:Yh_,"you_haven't_added_any_plans_yet":"您尚未添加任何计划",add_new_plan:Zh_,"students_shaded_red_have_an_incomplete_check-_in":"红色标记的学生表示签到不完整",rows_per_page:Jh_,anonymous_link:Qh_,select_ratings_of_questions:Kh_,select_responses_distribution:eg_,you_can_only_select_one_question_per_time:tg_,number_of_answers:_g_,my_interests:sg_,i_like_to_know_more_about:ng_,my_strengths:og_,my_challenges:ag_,i_can_help_myself_by:ig_,my_teacher_can_help_me_by:rg_,other_people_who_can_help_me_are:cg_,tools_things_that_can_help_me_are:lg_,my_goals:dg_,my_goals_and_targets:ug_,my_hopes_and_dreams:mg_,missing_grade:hg_,grade_must_be_equal_or_greater_than_grade_level_1:gg_,you_havent_added_any_challenges_yet:pg_,you_havent_added_any_strengths_yet:fg_,you_havent_added_any_idea_yet:yg_,you_havent_added_any_people_yet:wg_,you_havent_added_any_tools_yet:vg_,you_havent_added_any_strategies_yet:bg_,you_havent_added_any_goals_and_targets_yet:$g_,you_havent_added_any_hopes_and_dreams_yet:kg_,ways_I_learn_best:xg_,your:Ig_,interest:Cg_,strength:Sg_,challenge:Ag_,idea:Eg_,people:Tg_,tool:jg_,dream:qg_,person:Ng_,more_detail_to:Pg_,my_support:Rg_,network:Lg_,my_current_PLP:Mg_,view_PLP:zg_,current_accommodation:Dg_,goal_date:Fg_,you_havent_added_any_item_yet:Og_,passing_date:Gg_,college:Bg_,visit:Vg_,application:Hg_,a_plan:Wg_,interests:Ug_,activities:Xg_,test_exam:Yg_,course:Zg_,resources:Jg_,essay:Qg_,essays:Kg_,plans:ep_,total_of:tp_,diagnostic_survey:_p_,selected_questions:sp_,available_questions:np_,are_you_sure_you_want_to_inactive_students:op_,data_for_the_last_month:ap_,number_of_questions:ip_,no_item_to_display:rp_,template:cp_,assessment:lp_,assignment_result:dp_,certificate:up_,learning_support_category:mp_,feedback:hp_,suggestion:gp_,tutorial_screen:pp_,reflection_forms:fp_,select_question_to_add:yp_,"this_survey_was_sent._all_survey_links_that_were_sent_will_be_invalid._are_you_sure_to_delete_it":"此调查已发送。所有已发送的调查链接均将无效。您确定要删除它吗",student_grade_not_found:wp_,name_your_person:vp_,type_your_person:bp_,create_person:$p_,january:kp_,february:xp_,march:Ip_,april:Cp_,may:Sp_,june:Ap_,july:Ep_,august:Tp_,september:jp_,octorber:qp_,november:Np_,december:Pp_,private:"私人",complete:Rp_,select_user:Lp_,ended_in_less_than_one_hour:Mp_,my_sandbox:zp_,number_students_are_unmotivated:Dp_,number_students_are_comfort:Fp_,number_students_are_stretch:Op_,number_students_are_strain:Gp_,number_students_are_overwhelmed:Bp_,check_in_with_teacher_name:Vp_,all_of_the_students_marked_as_feeling_safe:Hp_,soft:Wp_,ascending:Up_,descending:Xp_,empty:Yp_,you_have_completed_all_of_the_weekly_quests:Zp_,good_job:Jp_,if_you_have_responded_to_all_question_press_the_done_button_to_complete_check_in:Qp_,check_in_finished:Kp_,are_you_ready_to_submit:ef_,you_filled_out_check_in_in_the_check_in_section:tf_,continue:"继续",good_job_you_filled_out_support_network_in_the_my_support_network_section:_f_,good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section:sf_,"total_1-1_conversations":"总计 1-1 对话",default_question_one_to_one_list:nf_,is_default_question:of_,is_class_reflection_question:af_,yes_no_question:if_,number_of_stars:rf_,emotion_icon:cf_,add_new_sub_question:lf_,sub_questions:df_,are_you_sure_to_delete:uf_,edit_1_1:mf_,wellness:hf_,environment_safety:gf_,sleeping:pf_,eating:ff_,learning:yf_,getting_help:wf_,exercising:vf_,being_calm:bf_,home:$f_,school:kf_,online:xf_,learning_in_class:If_,home_learning:Cf_,destinations:Sf_,select_csv:Af_,import_class_reflections:Ef_,type_question:Tf_,edit_destination:jf_,create_destination:qf_,total_of_destination:Nf_,general_info:Pf_,file_extension:Rf_,todays:Lf_,add_to_do:Mf_,edit_to_do:zf_,description_optional:Df_,do_you_want_delete_this_goal:Ff_,my_to_do:Of_,set_your_to_do:Gf_,your_daily_motivation:Bf_,my_1_1:Vf_,student_learning_plans:Hf_,sign_out:Wf_,topic:Uf_,comment:Xf_,willingness_to_do_your_best_learning:Yf_,not_done_yet:Zf_,not_chosen_yet:Jf_,loading:Qf_,i_organize_myself_for_success_by:Kf_,i_know_i_am_doing_my_best_because:ey_,i_know_i_feel_ready_to_learn_when:ty_,go_to_plp:_y_,go_to_personal_learning_plan:sy_,create_qr_code:ny_,warning_email:oy_,"1_1_sessions":"1-1 课程",filter_by_students:ay_,search_for_students:iy_,sort_by:ry_,recently:cy_,most_positive:ly_,least_positive:dy_,back_to:uy_,this_session_can_be_edit_by_user_change_session:my_,type_your_answer_here:hy_,take_notes_and_get_suggestions_from_our_MARIO_support_bot:gy_,scaffolding_is_on:py_,scaffolding_is_off:fy_,see_all_suggestions:yy_,scaffolding:wy_,session_finished:vy_,do_you_want_to_start_now_or_book_later:by_,new_1_1s:$y_,book_1_1s:ky_,select_session_type:xy_,new_conferences:Iy_,my_personal_interests:Cy_,i_find_it_difficult_when:Sy_,take_the_quiz:Ay_,collapse:Ey_,expand:Ty_,created_on:jy_,updated:qy_,notifications:Ny_,mark_all_as_read:Py_,filter:Ry_,read:Ly_,unread:My_,is_read:zy_,go_to_session:Dy_,go:Fy_,meetings:Oy_,student_profile:Gy_,booked_times:By_,session_are_booked_as_10_minute_slots:Vy_,conference_finished:Hy_,back_to_conferences:Wy_,unfinished:Uy_,back:Xy_,select_your_status:Yy_,my_safety:Zy_,working_on_it:Jy_,not_started:Qy_,total_of_rubrics:Ky_,select_question_category:ew_,default_question_conference_list:tw_,create_rubric:_w_,type_something_to_search_rubric:sw_,prev:nw_,select_the_grade:ow_,class_qr_codes:aw_,title_is_required:iw_,the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in:rw_,this_conference_will_be_deleted_from_all_databases_are_you_sure_you_want_to_continue:cw_,check_in_and_1_1s:lw_,my_check_in_and_1_1s:dw_,book_for_later:uw_,check_ins_home:mw_,start_your_check_in_and_you_can_also_request_a_conversation_with_your_teacher_after:hw_,set_your_goals:gw_,show_pending_conversations:pw_,check_in_sessions:fw_,this_initial_step_activates_your_1_on_1_conversation_setting_the_stage_for_personal_dialogue:yw_,check_in_session:ww_,"1_1_conversation_complete":"1-1 对话完成",check_in_complete:vw_,log_1_1_conversation:bw_,log_conversation_data:$w_,add_1_1_conversation_notes:kw_,save_data:xw_,please_select_date_1_1_conversation:Iw_,please_write_something_to_this_1_1_conversation:Cw_,data_1_1_conversation_cannot_exceed_300_characters:Sw_,check_in_session_title:Aw_,i_have_nothing_to_add:Ew_,check_in_session_finished:Tw_,is_question_for_grade_1_2:jw_,"1_1_session":"一对一课程",type_your_answer_here_e_g_i_met_my_friend:qw_,type_your_answer_here_e_g_my_best_friend_didnt_come_to_school:Nw_,save_1_1_log_note:Pw_,no_need_for_it:Rw_,conversation_saved:Lw_,yes_view_student_goals:Mw_,what_did_you_and_the_student_choose_as_an_action_step_would_you_like_to_add_it_as_a_goal:zw_,here_you_can_find_all_the_notes_and_1_1_conversations_logs_the_student_has:Dw_,back_to_notes_and_logs:Fw_,students_review:Ow_,other_note:Gw_,students_perceived_usefulness:Bw_,student_feedback:Vw_,note_category:Hw_,select_note_category:Ww_,save_note:Uw_,type_the_main_focus_of_this_session:Xw_,please_add_title_note:Yw_,notes_and_logs:Zw_,other_notes_from_the_conversation:Jw_,share_your_thoughts:Qw_,make_this_a_private_note:Kw_,environment_specific_safety:ev_,students_reported_feelings:tv_,well_being_indicators:_v_,readiness_trends:sv_,open_field_questions:nv_,number_of_students_with_at_least_one_very_low_metric:ov_,this_flags_if_the_student_is_not_ready_to_learn_or_has_at_least_one_success_or_readiness_to_learn_metrics_under_40:av_,of_students_have_concerned_metrics:iv_,have_metrics_40:rv_,all_students_have_good_metrics:cv_,students_with_at_least_one_concerned_metric:lv_,concerned_metrics:dv_,concern_metrics:uv_,conversation_goal:mv_,target_monthly_conversation_goal_for_teachers:hv_,target_monthly_conversation_goal_for_counselors:gv_,conversations:pv_,are_not_ready_to_learn:fv_,check_in_date:yv_,educator:wv_,location:vv_,edit_my_profile:bv_,save_new_password:$v_,conversation_duration:kv_,please_set_time_1_1_conversation:xv_,negative_emotions:Iv_,please_select_add_teacher_for_selected_student_first:Cv_,choose_profile_picture:Sv_,choose_a_profile_picture_from_our_gallery_or_upload_your_own:Av_,select_a_picture:Ev_,delete_checkin:Tv_,delete_conference:jv_,are_you_sure_to_delete_this_check_in:qv_,are_you_sure_to_delete_this_conference:Nv_,yes_im_sure:Pv_,teachers_list:Rv_,this_months_average_vs_last_month:Lv_},zv_="htqausuofrnali3nh9ivmlpq6v415o0tv2qikpg39bqf4pnk",Dv_="6LfNtLUaAAAAAL24lbBV11jS-gBtt1mhtxb4NXs0",qt="ACCESS_TOKEN",Fv_=[{label:"10",value:10},{label:"20",value:20},{label:"30",value:30}],ri={label:"10",value:10},ci={searchString:"",currentPage:1,pageSize:ri.value,sortBy:"",sortOrder:"ASC",name:""},qs={DANGER:"#dc3545",WARNING:"#ffc107",SUCCESS:"#28a745",INFO:"#007bff"},Un="yyyy-MM-dd",li="dd-MM-yyyy",Ov_="dd-MM-yyyy HH:mm",di="0001-01-01T00:00:00",Gv_="Alhanko&Johnson_BASE23_single_1_Devs__22_November_2020_[v2]_MTYwNjAwMzIwMDAwMA==d452f38afc893671cad92795e95d52a1",ht=(()=>{const e=window.location.href;return`${e.split("//")[0]}//${e.split("//")[1].split("/")[0]}`})(),ls=!!(window.location.hostname==="localhost"||window.location.hostname.includes("stage")||window.location.hostname.includes("gmail")||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),Rn=[{label:"Single choice",value:"SingleChoice"},{label:"Multiple choice",value:"MultipleChoice"},{label:"Text input",value:"TextInput"},{label:"Slider",value:"Slider"},{label:"Progress bar",value:"ProgressBar"},{label:"Star rating",value:"StarRating"},{label:"Text input with sub questions",value:"TextInputWithSuggestions"},{label:"Emotional",value:"Emotional"},{label:"Summarize",value:"Summarize"},{label:"Rating",value:"Rating"},{label:"Learning strategy",value:"LearningStrategy"}],Bv_={SINGLE_CHOICE:"SingleChoice",MULTIPLE_CHOICE:"MultipleChoice",TEXT_INPUT:"TextInput",SLIDER:"Slider",PROGRESS_BAR:"ProgressBar",STAR_RATING:"StarRating",TEXT_INPUT_WITH_SUGGESTIONS:"TextInputWithSuggestions",EMOTIONAL:"Emotional",SUMMARIZE:"Summarize",RATING:"Rating",LEARNING_STRATEGY:"LearningStrategy"},$o=[{label:2,value:2},{label:3,value:3},{label:4,value:4},{label:5,value:5}],Xn=150,Vv_=["Admin","Assistant","Teacher","General ED teacher","Counselor","Student","Parent"],Hv_="chat-channel",Wv_="NOTIFICATION_CHANNEL",Uv_="https://tleliteracy.com/wp-content/uploads/2017/02/default-avatar.png",Xv_=["Unwell","Mad","Stressed","Easygoing","Proud","Inspired"],Yv_={reflect:"#c08497",goal:"#00979b"},i_={ADMIN:"Admin",TEACHER:"Teacher",ASSISTANT:"Assistant",EDUTEACHER:"General ED teacher",STUDENT:"Student",PARENT:"Parent"},ui="NOTIFICATION_ALERT_KEY",ko="https://mariolearningstudio.com",Hs="en-US",Zv_=[{code:"us",fullName:"English (United States)",shortName:"English, US",nativeName:"English",name:"United States",image:"/images/usa.png"}],mi=["en-US","en-GB","ar","es","zh"],k_="IS_USER_SESSION_BROWSER",Jv_=12,Qv_=20,Kv_={"en-US":{translation:RG},"en-GB":{translation:zxe},ar:{translation:bst},es:{translation:_Mt},zh:{translation:Mv_}};Wn.use(yt.initReactI18next).init({resources:Kv_,supportedLngs:mi,lng:Hs,fallbackLng:Hs,keySeparator:!1,interpolation:{escapeValue:!1}});const eb_="_icon_5reqc_61",tb_="_contact_5reqc_147",_b_="_remember_5reqc_321",sb_="_input_5reqc_460",nb_="_login_5reqc_257",ob_="_div_5reqc_686",ab_="_logout_5reqc_751",ib_="_popover__sort__item_5reqc_841",rb_="_popover__search__icon_5reqc_852",cb_="_popover__search__input_5reqc_858",lb_="_popover__options_5reqc_861",db_="_title_5reqc_160",ub_="_active_5reqc_915",mb_="_show_5reqc_918",hb_="_behind_5reqc_921",L={"btn-login-with-sso":"_btn-login-with-sso_5reqc_12","button-user-name":"_button-user-name_5reqc_43",icon:eb_,"btn-login-google":"_btn-login-google_5reqc_65","notification-count":"_notification-count_5reqc_104","text-introduction":"_text-introduction_5reqc_118","btn-trans-border":"_btn-trans-border_5reqc_129",contact:tb_,"learn-more":"_learn-more_5reqc_148","title-quote":"_title-quote_5reqc_160","descriptions-quote":"_descriptions-quote_5reqc_168","box-login":"_box-login_5reqc_177","block-verification":"_block-verification_5reqc_181","block-login":"_block-login_5reqc_187","title-login":"_title-login_5reqc_192","title-forgot-password":"_title-forgot-password_5reqc_206","btn-close":"_btn-close_5reqc_210","btn-login":"_btn-login_5reqc_12","school-icon":"_school-icon_5reqc_242","school-name":"_school-name_5reqc_246","login-description":"_login-description_5reqc_257","return-to-login":"_return-to-login_5reqc_270","recover-account":"_recover-account_5reqc_279","link-to-login":"_link-to-login_5reqc_285","privacy-policy":"_privacy-policy_5reqc_302",remember:_b_,"term-and-conditions":"_term-and-conditions_5reqc_325","descriptions-forgot-pass":"_descriptions-forgot-pass_5reqc_337","content-icon":"_content-icon_5reqc_344","descriptions-icon":"_descriptions-icon_5reqc_351","title-icon":"_title-icon_5reqc_360","digital-privacy-icon":"_digital-privacy-icon_5reqc_379","nav-home":"_nav-home_5reqc_385","box-introduction":"_box-introduction_5reqc_399","checkbox-keep-login":"_checkbox-keep-login_5reqc_435","label-keep-login":"_label-keep-login_5reqc_439","option-text":"_option-text_5reqc_448","form-user-name":"_form-user-name_5reqc_457",input:sb_,"checkbox-remember":"_checkbox-remember_5reqc_463","btn-rounder":"_btn-rounder_5reqc_489","btn-active":"_btn-active_5reqc_492","block-reset-password":"_block-reset-password_5reqc_506","block-forgot-pass":"_block-forgot-pass_5reqc_510","page-not-login":"_page-not-login_5reqc_520","content-quote":"_content-quote_5reqc_520","home-page":"_home-page_5reqc_528","red-background":"_red-background_5reqc_534",login:nb_,"version-prod":"_version-prod_5reqc_545","login-content":"_login-content_5reqc_560","logo-home":"_logo-home_5reqc_567","img-box":"_img-box_5reqc_574","img-login":"_img-login_5reqc_578","img-login-rectangle":"_img-login-rectangle_5reqc_584","c-main":"_c-main_5reqc_589","container-fluid":"_container-fluid_5reqc_592","input-file-label":"_input-file-label_5reqc_596","delete-avatar-button":"_delete-avatar-button_5reqc_614","header-logo":"_header-logo_5reqc_618","box-sidebar":"_box-sidebar_5reqc_623","sidebar-logo":"_sidebar-logo_5reqc_627","sidebar-nav-links":"_sidebar-nav-links_5reqc_632","c-active":"_c-active_5reqc_639","sidebar-nav-links-hover":"_sidebar-nav-links-hover_5reqc_644","box-sidebar-header":"_box-sidebar-header_5reqc_648","box-logout":"_box-logout_5reqc_649","sidebar-btn-minimized":"_sidebar-btn-minimized_5reqc_653","sidebar-logout":"_sidebar-logout_5reqc_669","nav-mobile":"_nav-mobile_5reqc_676","filter-media-file":"_filter-media-file_5reqc_680",div:ob_,"dropdown-menu":"_dropdown-menu_5reqc_690","header-avatar":"_header-avatar_5reqc_690","dropdown-menu-flag":"_dropdown-menu-flag_5reqc_706","dropdown-content":"_dropdown-content_5reqc_711","dropdown-change":"_dropdown-change_5reqc_724","item-address":"_item-address_5reqc_730","item-logout":"_item-logout_5reqc_735","title-address":"_title-address_5reqc_738","img-avatar":"_img-avatar_5reqc_741","item-contact":"_item-contact_5reqc_748",logout:ab_,"content-text":"_content-text_5reqc_755","dropdown-content-language":"_dropdown-content-language_5reqc_771","dropdown-item-language":"_dropdown-item-language_5reqc_787","dropdown-item-language-active":"_dropdown-item-language-active_5reqc_797","hide-in-mobile":"_hide-in-mobile_5reqc_826",popover__sort__item:ib_,"popover__sort__item--active":"_popover__sort__item--active_5reqc_845",popover__search__icon:rb_,popover__search__input:cb_,popover__options:lb_,"item-select-role":"_item-select-role_5reqc_870","item-role-active":"_item-role-active_5reqc_885","model-switch-roles":"_model-switch-roles_5reqc_890",title:db_,"bg-animate":"_bg-animate_5reqc_900",active:ub_,show:mb_,"fade-in":"_fade-in_5reqc_1",behind:hb_,"hamburger-menu":"_hamburger-menu_5reqc_944","box-content-home-page":"_box-content-home-page_5reqc_964","collapse-box":"_collapse-box_5reqc_1011","hide-in-desktop":"_hide-in-desktop_5reqc_1044","control-input":"_control-input_5reqc_1048","custom-control":"_custom-control_5reqc_1048","font-large":"_font-large_5reqc_1052","custom-title-font-size":"_custom-title-font-size_5reqc_1052","modal-title":"_modal-title_5reqc_1055","custom-font-size":"_custom-font-size_5reqc_1058","font-small":"_font-small_5reqc_1062","content-wrap":"_content-wrap_5reqc_1072"},gb_={fontSize:"0.85rem"},kt=({text:e})=>o.jsx("p",{className:"text-danger",style:gb_,children:e}),pb_={height:"40px",backgroundColor:"#f7f9fc",borderRadius:"4px",marginBottom:"5px",position:"relative"},fb_={backgroundColor:"#ffffff",paddingRight:"50px"},yb_={fontSize:"20px",position:"absolute",right:"10px",color:"#316CD9"},Ln=({isShowPassword:e,togglePasswordVisible:t,onChange:_})=>o.jsxs("div",{className:"d-flex align-items-center w-100",style:pb_,children:[o.jsx(S.Input,{className:"border password-input",style:fb_,type:e?"text":"password",name:"password",onChange:_,placeholder:"Password",required:!0}),o.jsx("i",{className:`far ${e?"fa-eye-slash":"fa-eye"} mx-2 cursor-pointer`,style:yb_,onClick:()=>t(),title:e?"Hide":"Show"})]}),O_=()=>{try{return sessionStorage.getItem(k_)?sessionStorage.getItem(qt):localStorage.getItem(qt)}catch{return null}},me=Y.createAction("common/setLoading"),Xt=Y.createAction("common/setModal"),nn=Y.createAction("common/setUser"),hi=Y.createAction("common/setInforUserGoogle"),wb_=Y.createAction("common/setSidebar"),he=Y.createAction("common/setAlert"),Ye=Y.createAction("common/reset"),gi=Y.createAction("common/showMenuBar"),pi=Y.createAction("common/showFontSize"),fi=Y.createAction("common/setEnableIEP"),yi=Y.createAction("common/setEnableSurvey"),wi=Y.createAction("common/setConversationOneToOne"),vi=Y.createAction("common/setLanguage"),bi=Y.createAction("common/setCurrentStudentId"),$i=Y.createAction("common/setCurrentStudentUserId"),ki=Y.createAction("common/setCurrentStudentName"),xi=Y.createAction("common/setTurnOffPassWhenChangeMode"),Ii=Y.createAction("badges/setUnreadNotification"),vb_=e=>Object.keys(e).filter(t=>e[t]||e[t]===0||e[t]===!1).map(t=>Array.isArray(e[t])?e[t].map(_=>`${encodeURIComponent(t)}=${encodeURIComponent(_)}`).join("&"):`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&"),xe=oi.create({baseURL:ht,timeout:0,headers:{"Content-Type":"application/json"},paramsSerializer:e=>vb_(e)}),Yt=oi.create({baseURL:ht,timeout:6e4,headers:{"Content-Type":"multipart/form-data"}});[xe,Yt].forEach(e=>e.interceptors.request.use(t=>{const _=O_();return _&&(t.headers.Authorization=`Bearer ${_}`),t},t=>Promise.reject(t)));[xe,Yt].forEach(e=>e.interceptors.response.use(t=>t,t=>{var _,n;return t.response.status===401&&(Object.keys(localStorage).forEach(s=>{s.includes("learning-plan")||delete localStorage[s]}),localStorage.setItem("USER_EMAIL",""),window.location.href="/login"),t.response.status==403&&!((n=(_=t.response.config)==null?void 0:_.url)!=null&&n.includes("cookieyes"))&&(localStorage.removeItem(qt),sessionStorage.removeItem(qt),sessionStorage.removeItem(k_),localStorage.removeItem("USER_EMAIL"),window.location.href="/login"),Promise.reject(t)}));const f_=`${ht}/api/account`,bb_=`${ht}/api/user`,Ci=e=>xe.post(`${f_}/login`,e),$b_=e=>xe.post(`${f_}/checktoken`,{token:e}),kb_=()=>xe.get(`${f_}/info`),xb_=e=>xe.post(`${f_}/forgotpassword`,e),Ib_=e=>xe.post(`${f_}/checkResetToken`,{token:e}),Cb_=e=>xe.post(`${f_}/resetpassword`,e),Sb_=(e,t)=>xe.post(`${bb_}/check-user`,t,{params:{type:e}}),Ab_=()=>xe.get(`${f_}/send-google`),Eb_=e=>xe.post(`${ht}/api/User/register-user`,e),Tb_=e=>xe.post(`${f_}/account-sso-log`,e);var Yn=(e=>(e[e.Google=0]="Google",e[e.ClassLink=1]="ClassLink",e[e.MicrosoftSSO=2]="MicrosoftSSO",e))(Yn||{});const jb_=`${ht}/api/school`,qb_=()=>xe.get(`${jb_}/settings`),Nb_={auth:{clientId:ls?"afed1089-7de6-406a-827a-bab9472cb245":"3845e9f8-aead-4535-b4bb-d363a1d262bd",authority:"https://login.microsoftonline.com/common",redirectUri:"https://es-sso.marioforme.com/microsoft-login.html"},cache:{cacheLocation:"sessionStorage",storeAuthStateInCookie:!1},system:{loggerOptions:{loggerCallback:(e,t,_)=>{if(!_)switch(e){case ss.LogLevel.Error:console.error(t);return;case ss.LogLevel.Info:console.info(t);return;case ss.LogLevel.Verbose:console.debug(t);return;case ss.LogLevel.Warning:console.warn(t);return;default:return}}}}},Pb_=e=>{var t;return((t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))==null?void 0:t.pop())||""},Rb_={email:"",password:"",captcha:"",rememberMe:!1,isSessionUserBrowser:!!sessionStorage.getItem(k_)},Lb_="/home",Mb_="/home",zb_="/admin/home",Db_="/parent",Fb_="/admin/schools",Ob_="/my-student?isReadOnly=true",Gb_="Log in",Si=()=>{const e=ke.useDispatch(),t=vt.useNavigate(),[_,n]=C.useState(!1),[s,r]=C.useState(""),[l,h]=C.useState(""),[c,g]=C.useState(),[p,w]=C.useState({schoolName:"",schoolLogo:"",schoolId:0}),[v,A]=C.useState(),I=C.useCallback(()=>{n(!_)},[_]),[E,$]=C.useState(!1),[k,T]=C.useState("");C.useEffect(()=>{document.title=Gb_;const B=Pb_("auth-token");if(B){localStorage.setItem(qt,B);const K=window.location.hostname;document.cookie=`auth-token=;domain=${K.includes("localhost")?K:".marioforme.com"}; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`,document.cookie="auth-token=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/",document.cookie="redirect-uri=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}O_()&&t("/"),M(),G()},[]);const j=window.location.host.includes("-district"),R=C.useCallback(async B=>{var se,K,ae,Ie;e(me(!0));try{const ne=(B==null?void 0:B.isSessionUserBrowser)??!1,we=await Ci({...B,email:(se=B==null?void 0:B.email)==null?void 0:se.trim(),password:(K=B==null?void 0:B.password)==null?void 0:K.trim()}),{token:Ze,id:We,firstName:wt,lastName:De,roles:Me,email:xt,profileImageFileName:ye}=we.data;ne?(sessionStorage.setItem(qt,Ze),sessionStorage.setItem(k_,ne)):(sessionStorage.removeItem(k_),localStorage.setItem(qt,Ze)),localStorage.removeItem(ui),e(nn({id:We,firstName:wt,lastName:De,roles:Me,email:xt,profileImageFileName:ye})),!localStorage.getItem("ROLES")&&Me.includes("Admin")&&localStorage.setItem("ROLES","Admin"),j?t(Fb_):Me.includes("Admin")?t(zb_):Me.includes("Teacher")||Me.includes("Assistant")||Me.includes("Counselor")||Me.includes("SecondaryTeacher")?t(Lb_):Me.includes("Student")?t(Mb_):Me.includes("Parent")?t(Db_):Me.includes("EduTeacher")&&t(Ob_)}catch(ne){e(he({type:"danger",message:((Ie=(ae=ne.response)==null?void 0:ae.data)==null?void 0:Ie.title)||ne.message||"Login failed"})),localStorage.removeItem(qt),sessionStorage.removeItem(qt)}e(me(!1))},[]),M=async()=>{var B,se;try{const K=await Ab_();r(K.data.googleClientId),h(K.data.googleCaptchaId),T(K.data.extensionEmail)}catch(K){e(he({type:"danger",message:((se=(B=K.response)==null?void 0:B.data)==null?void 0:se.title)||K.message||"Login failed"}))}},P=C.useCallback(async(B,se,K,ae)=>{var Ie,ne;e(me(!0));try{if((await Sb_(B,se)).data){const We=await ae(),wt={email:se.email,captcha:We,isLoginGoogle:!0,rememberMe:!1,password:"default",accessToken:K};await R(wt)}else{const We={firstName:c.firstName,lastName:c.lastName,imageUrl:c.imageUrl,fullName:c.fullName,email:c.email,accessToken:c.accessToken};if((await Eb_(We)).data){const De=await ae(),Me={email:c.email,captcha:De,isLoginGoogle:!0,rememberMe:!1,password:"default",accessToken:c.accessToken};await R(Me)}}}catch(we){e(he({type:"danger",message:((ne=(Ie=we.response)==null?void 0:Ie.data)==null?void 0:ne.title)||we.message||"Login failed"}))}e(me(!1))},[]),D=async B=>{v&&v.handleRedirectPromise().then(async se=>{if(p!=null&&p.schoolId)if(se){let K=se.account;await O(K,B)}else{const K=v.getAllAccounts();if(K.length===0){const ae=ls?"https://es-stage.marioforme.com":"https://es-sso.marioforme.com";window.location.href=(window.location.hostname==="localhost"?"https://localhost:3000":ae)+`/microsoft-login.html?redirect-uri=${window.location.href}&schoolId=${p.schoolId}`}else{let ae=K[0];await O(ae,B)}}}).catch(se=>{console.error(se)})},O=async(B,se)=>{let K=B.name,ae={firstName:K.split(" ").slice(0,-1).join(" "),lastName:K.split(" ").slice(-1).join(" "),fullName:K,imageUrl:"",email:B.username,accessToken:B.idTokenClaims.aio,googleId:B.tenantId};e(hi(ae)),await P(Yn.MicrosoftSSO,ae,B.idTokenClaims.aio,se)},G=async()=>{try{const B=await qb_();w(B.data)}catch(B){console.error(B)}},W=()=>{if(ls){const B="https://clever.com/oauth/instant-login?client_id=44f4bbf55cd873d3f7e5&district_id=6620cba31f1ddde7bd689dc5";window.location.href=B}else{const B=`https://clever.com/oauth/authorize?response_type=code&redirect_uri=${encodeURIComponent("https://es-classlink.marioforme.com/api/clever/clever-login")}&client_id=c3da6c669d239c70d48e`;window.location.href=B}},Q=async()=>{const B=new ss.PublicClientApplication(Nb_);await B.initialize(),A(B)};return C.useEffect(()=>{let B=window.location.href;v&&B.includes("code")&&B.includes("client_info")&&D()},[JSON.stringify(v)]),C.useEffect(()=>{G(),Q()},[]),{defaultInfo:Rb_,userLogin:R,openLogin:_,toggle:I,isShowPassword:E,setIsShowPassword:$,fnIsCheckLogin:P,infoUser:c,setInfoUser:g,googleClientId:s,googleRecaptchaId:l,school:p,fnLoginSSO:D,handleLoginWidthClever:W,extensionEmail:k}},g_=e=>{const t="https://es-stage.marioforme.com",_=t===location.origin;return e?ls&&!_||e.startsWith("http")?e:e.startsWith("/")?`${_?t:ko}${e}`:`${_?t:ko}/${e}`:""},Jt=e=>!e||!e.trim()?"":e.startsWith("/avatars/default-student-avatar")?e:`${ht}/api/file/viewer?key=${e}`,Bb_=({extensionEmail:e,setInfoUser:t,fnIsCheckLogin:_,clickHandler:n})=>{const s=async l=>{try{await Tb_(l)}catch(h){console.error(h)}},r=ai.useGoogleLogin({flow:"implicit",onSuccess:async l=>{var h,c;try{const p=await(await fetch("https://www.googleapis.com/oauth2/v3/userinfo",{headers:{Authorization:`Bearer ${l.access_token}`}})).json(),{email:w,given_name:v,family_name:A,picture:I,name:E,sub:$}=p,k=window.location.hostname,T=(c=(h=k==null?void 0:k.split(".marioforme.com"))==null?void 0:h[0])==null?void 0:c.replace(/-es$|^es-/,""),j=w.split("@")[1];if(!j.includes(T)&&!j.includes(e)){alert("The email address you used does not match the login information in the database."),await s([`${j} is incorrect`]);return}const R={firstName:v,lastName:A,imageUrl:I,fullName:E,email:w,accessToken:l.access_token,googleId:$};t(R),_(Yn.Google,R,l.access_token,n)}catch(g){await s([`Google login error ${g}`])}},onError:()=>{console.log("Google login failed")}});return o.jsxs("div",{className:L["btn-login-with-sso"],onClick:()=>r(),children:[o.jsx("img",{src:"images/google-logo.png"}),o.jsx("p",{children:"GOOGLE"})]})},Vb_=nt.object({email:nt.string().email("Email is invalid").required("Email is required"),password:nt.string().required("Password is required"),rememberMe:nt.boolean()}),Hb_=({defaultInfo:e,userLogin:t,school:_})=>{let{isShowPassword:n,setIsShowPassword:s,fnIsCheckLogin:r,setInfoUser:l,googleClientId:h,fnLoginSSO:c,extensionEmail:g}=Si();const p=()=>s(!n),{executeRecaptcha:w}=cs.useGoogleReCaptcha(),v=C.useCallback(async()=>{if(!w){console.log("execute recaptcha undefined");return}return await w("login")},[w]),A=C.useCallback(()=>{},[]);return o.jsx(C.Fragment,{children:o.jsx(c_.Formik,{initialValues:e,enableReinitialize:!0,validationSchema:Vb_,onSubmit:async I=>{try{const E=await v();if(!E)return;I.captcha=E,t(I)}catch(E){console.error(E)}},children:I=>{const{handleChange:E,handleBlur:$,handleSubmit:k,values:T,touched:j,errors:R,setFieldValue:M}=I,P=j.email&&R.email,D=j.password&&R.password;return o.jsx("div",{className:`${L["box-login"]} w-100`,children:o.jsx(S.Form,{className:`${L["block-login"]}`,onSubmit:k,children:o.jsxs("div",{className:`${L["block-form"]}`,children:[o.jsxs("div",{className:"d-flex align-items-center mb-4",children:[o.jsx("img",{src:_.schoolLogo?Jt(`${_.schoolLogo}`):`${g_("/images/mario-logo.png")}`,className:`${L["school-icon"]} mr-3`}),o.jsx("p",{className:`${L["school-name"]} mb-0`,children:_.schoolName})]}),o.jsx("p",{className:`${L["title-login"]}`,children:"Welcome Back!"}),o.jsx("p",{className:`${L["login-description"]} mb-5`,children:"Please enter your MARIO Education account details"}),o.jsxs(S.FormGroup,{className:`${L["form-user-name"]}`,children:[o.jsx(S.Input,{type:"text",name:"email",placeholder:"Email",value:T.email,onChange:E,autoComplete:"email",onBlur:$("email"),required:!0}),P&&o.jsx(kt,{text:R.email})]}),o.jsxs(S.FormGroup,{children:[o.jsx(Ln,{isShowPassword:n,togglePasswordVisible:p,onChange:O=>M("password",O.target.value)}),D&&o.jsx(kt,{text:R.password})]}),o.jsx(S.FormGroup,{children:o.jsx(cs.GoogleReCaptcha,{action:"login",onVerify:A})}),o.jsxs("div",{className:"d-flex justify-content-between",children:[o.jsxs("div",{className:"d-flex align-items-center",children:[o.jsx("input",{type:"checkbox",checked:!T.isSessionUserBrowser,className:`${L["checkbox-keep-login"]}`,onChange:()=>M("isSessionUserBrowser",!T.isSessionUserBrowser)}),o.jsx("p",{className:`${L["label-keep-login"]} mb-0 ml-2`,children:"Keep me logged in"})]}),o.jsx("a",{href:"/forgot-password",className:`${L["link-to-login"]}`,children:"Forgot password?"})]}),o.jsx("button",{className:`${L["btn-login"]} mt-5`,type:"submit",children:"LOG IN"}),o.jsx("p",{className:`${L["option-text"]} my-3 text-center`,children:"OR"}),o.jsxs(S.Row,{className:"mb-4",children:[o.jsx(S.Col,{lg:6,md:6,xs:12,className:`${L["btn-login-sso"]} pr-md-2`,children:!!h&&o.jsx(ai.GoogleOAuthProvider,{clientId:h,children:o.jsx(Bb_,{extensionEmail:g,setInfoUser:l,fnIsCheckLogin:r,clickHandler:v})})}),o.jsx(S.Col,{lg:6,md:6,xs:12,className:`${L["btn-login-sso"]} pl-md-2`,hidden:!(_!=null&&_.schoolId),children:o.jsxs("div",{className:L["btn-login-with-sso"],onClick:()=>c(v),children:[o.jsx("img",{src:"images/microsoft-logo.png"}),o.jsx("p",{children:"MICROSOFT"})]})})]})]})})})}})})},Wb_={email:"",captcha:""},Ub_="/",xo="/login",Xb_="Log in",Ai=()=>{const e=ke.useDispatch(),t=vt.useNavigate(),[_,n]=C.useState(!1),s=C.useCallback(()=>{n(!_)},[_]),[r,l]=C.useState(!1),[h,c]=C.useState(!1),[g,p]=C.useState(!0),{executeRecaptcha:w}=cs.useGoogleReCaptcha();C.useEffect(()=>{document.title=Xb_,O_()&&t(Ub_)},[]);const v=C.useCallback(async k=>{var T,j;e(me(!0));try{await xb_(k),t(xo),e(he({type:"success",message:"A mail to reset password was sent"}))}catch(R){e(he({type:"danger",message:((j=(T=R.response)==null?void 0:T.data)==null?void 0:j.title)||R.message||"Error occured"})),localStorage.removeItem(qt),sessionStorage.removeItem(qt)}e(me(!1))},[]),A=C.useCallback(async k=>{e(me(!0));try{await Ib_(k)}catch{p(!1)}e(me(!1))},[]),I=C.useCallback(async k=>{var T,j;e(me(!0));try{await Cb_(k),t(xo),e(he({type:"success",message:"Reset password sucessfully"}))}catch(R){e(he({type:"danger",message:((j=(T=R.response)==null?void 0:T.data)==null?void 0:j.title)||R.message||"Error occured"})),localStorage.removeItem(qt),sessionStorage.removeItem(qt)}e(me(!1))},[]),E=C.useCallback(async()=>{if(!w){console.log("execute recaptcha undefined");return}return await w("forgetPass")},[w]),$=C.useCallback(()=>{},[]);return{defaultInfo:Wb_,forgotPasswordRequest:v,checkResetTokenRequest:A,validLink:g,resetPasswordRequest:I,openLogin:_,toggle:s,isShowNewPassword:r,setIsShowNewPassword:l,isShowReTypePassword:h,setIsShowReTypePassword:c,clickHandler:E,handleVerify:$}},Yb_={email:"",captcha:""},Zb_=nt.object({email:nt.string().email("Email is invalid").required("Email is required")}),Jb_=({school:e})=>{const{forgotPasswordRequest:t,clickHandler:_,handleVerify:n}=Ai();return o.jsx(c_.Formik,{initialValues:Yb_,enableReinitialize:!0,validationSchema:Zb_,onSubmit:async s=>{const r=await _();r&&(s.captcha=r,t(s))},children:s=>{const{handleChange:r,handleSubmit:l,values:h,touched:c,errors:g}=s;return o.jsx("div",{className:`${L["box-login"]}`,children:o.jsx("div",{className:`${L["block-login"]}`,children:o.jsxs("div",{className:`${L["block-form"]}`,children:[o.jsxs("div",{className:"d-flex align-items-center mb-4",children:[o.jsx("img",{src:`${g_("/images/mario-logo.png")}`,className:`${L["school-icon"]} mr-3`}),o.jsx("p",{className:`${L["school-name"]} mb-0`,children:e.schoolName})]}),o.jsx("p",{className:`${L["title-login"]} `,children:"Forgot password"}),o.jsx("p",{className:`${L["recover-account"]} mb-5`,children:"Enter email to recover your account"}),o.jsxs("div",{className:"w-100",children:[o.jsx(S.Input,{type:"text",name:"email",id:"email",placeholder:"Input email",onChange:r,value:h.email}),c.email&&g.email&&o.jsx(kt,{text:g.email})]}),o.jsx(vt.Link,{to:"/login",className:`${L["link-to-login"]} mt-2`,children:"Return to login"}),o.jsx(cs.GoogleReCaptcha,{action:"forgetPass",onVerify:n}),o.jsx(S.Col,{className:"p-0",children:o.jsx("button",{className:`${L["btn-login"]} mt-5`,onClick:()=>l(),children:"Continue"})})]})})})}})},Qb_={token:"",password:"",reEnterPassword:""},Kb_=nt.object({password:nt.string().required("New password is required"),reEnterPassword:nt.string().required("Please re-enter new password").test("matching","Passwords do not match",function(){return this.parent.password===this.parent.reEnterPassword})}),e$_=()=>{const t=new URLSearchParams(vt.useLocation().search).get("token"),{checkResetTokenRequest:_,validLink:n,resetPasswordRequest:s,isShowNewPassword:r,setIsShowNewPassword:l,isShowReTypePassword:h,setIsShowReTypePassword:c}=Ai();return C.useEffect(()=>{_(t)},[]),o.jsx(c_.Formik,{initialValues:Qb_,enableReinitialize:!0,validationSchema:Kb_,onSubmit:g=>{s(g)},children:g=>{const{setFieldValue:p,handleSubmit:w,touched:v,errors:A}=g;return C.useEffect(()=>{p("token",t)},[]),o.jsx(S.Row,{className:`${L["box-login"]}`,children:o.jsx(S.Col,{className:"p-0",children:o.jsx("div",{className:`${L["block-login"]}`,children:o.jsxs("div",{className:`${L["block-form"]}`,children:[o.jsx("p",{className:`${L["title-login"]}`,children:"Reset Password"}),o.jsx("div",{className:"w-100",children:n?o.jsxs(C.Fragment,{children:[o.jsx(S.Label,{for:"emailForgot",className:"mb-3",children:"New password"}),o.jsx(Ln,{isShowPassword:r,togglePasswordVisible:()=>l(!r),onChange:I=>p("password",I.target.value)}),v.password&&A.password&&o.jsx(kt,{text:A.password}),o.jsx(S.Label,{for:"emailForgot",className:"mt-3 mb-3",children:"Re-enter new password"}),o.jsx(Ln,{isShowPassword:h,togglePasswordVisible:()=>c(!h),onChange:I=>p("reEnterPassword",I.target.value)}),v.reEnterPassword&&A.reEnterPassword&&o.jsx(kt,{text:A.reEnterPassword})]}):o.jsxs(C.Fragment,{children:[o.jsx("p",{className:`${L["recover-account"]} mb-5`,children:"Invalid reset password link"}),o.jsx("p",{className:"w-100",children:"It may have been accessed before or expired or you have just tried to reset another account's password"})]})}),n&&o.jsx(S.Col,{className:"p-0",children:o.jsx("button",{className:`${L["btn-login"]} mt-4`,onClick:()=>w(),children:"Confirm"})}),o.jsxs("p",{className:"d-flex justify-content-between",children:[o.jsx(vt.Link,{to:"/login",className:`${L["link-to-login"]}`,children:"Return to login"}),o.jsx("a",{href:"/privacy-policy/",target:"blank",className:`${L["link-to-login"]}`,children:"Privacy Policy"})]})]})})})})}})},t$_="Log in",_$_="Forgot password",s$_="Reset password",n$_=e=>{const{isLogin:t,isForgotPassword:_,isResetPassword:n}=e,{defaultInfo:s,userLogin:r,googleRecaptchaId:l,school:h}=Si();return C.useEffect(()=>{t&&(document.title=t$_),_&&(document.title=_$_),n&&(document.title=s$_)},[t,_,n]),o.jsx("div",{className:`${L.login} container-fluid font-family-lato`,children:o.jsxs(S.Row,{className:"h-100",children:[o.jsxs(S.Col,{lg:8,md:12,xs:12,className:"d-flex justify-content-center h-100 align-items-center p-3 flex-column",children:[!!l&&o.jsxs(cs.GoogleReCaptchaProvider,{useRecaptchaNet:!0,reCaptchaKey:l,scriptProps:{async:!0,defer:!0,appendTo:"body"},children:[t&&o.jsx(Hb_,{userLogin:r,defaultInfo:s,school:h}),_&&o.jsx(Jb_,{school:h})]}),n&&o.jsx(e$_,{}),o.jsx("a",{href:"/privacy-policy/",target:"blank",className:`${L["privacy-policy"]}`,children:"Privacy Policy"})]}),!n&&o.jsx(S.Col,{className:"p-3 mh-100 d-flex justify-content-end",lg:4,md:12,xs:12,children:o.jsx("img",{src:`${g_(window.innerWidth>992?"/images/img-login.png":"/images/img-login-tablet.png")}`,className:`${L["img-login"]}`})})]})})},o$_=()=>o.jsxs("div",{className:`${L["content-quote"]}`,children:[o.jsxs("div",{className:`${L["title-quote"]} d-block`,children:[o.jsx("p",{children:"Powerful"}),o.jsx("p",{children:"Personalized"}),o.jsx("p",{children:"Learning"})]}),o.jsxs("div",{className:`${L["descriptions-quote"]} d-block`,children:[o.jsx("p",{children:"Focus on what matters most to you and"}),o.jsx("p",{children:"make learning meaningful."})]})]}),a$_=({srcIcon:e,content:t})=>o.jsxs("div",{className:`${L["content-icon"]}`,children:[o.jsx("div",{className:`${L["title-icon"]}`,children:o.jsx("img",{src:g_(e),alt:"icon"})}),o.jsx("div",{className:`${L["descriptions-icon"]}`,dangerouslySetInnerHTML:{__html:t}})]},t),i$_=[{scrIcon:"/images/ChatsTeardrop.svg",content:"<p>Understand yourself better through <span>helpful feedback</span>.</p>"},{scrIcon:"/images/Student.svg",content:"<p>Create, explore, and share exciting <span>personalized</span> learning journeys.</p>"},{scrIcon:"/images/Confetti.svg",content:"<p>Set, monitor, and achieve <span>your goals</span>.</p>"}],r$_=({})=>o.jsxs(S.Row,{className:`${L["page-not-login"]}`,children:[o.jsx(S.Col,{md:12,children:o.jsx(o$_,{})}),o.jsx(S.Col,{md:12,className:`${L["box-content-home-page"]} d-flex align-items-center`,children:i$_.map(e=>o.jsx(a$_,{srcIcon:e.scrIcon,content:e.content},e.content))})]}),c$_=10001,l$_=({data:e,duration:t=c$_})=>{const[_,n]=C.useState(e.length),s=C.useRef(null),r=C.useCallback(c=>c===_?`${L.active} ${L.show}`:"",[_]),l=C.useCallback(c=>_===0&&c===e.length-1||c===_-1?L.behind:"",[_,e.length]),h=C.useCallback(()=>{s&&s.current&&clearInterval(s.current),s.current=setInterval(()=>{n(c=>c>=e.length-1?0:c+1)},t)},[t,e.length]);return C.useEffect(()=>(h(),()=>{s&&s.current&&clearInterval(s.current)}),[e.length,t]),o.jsx("div",{className:`${L["bg-animate"]} position-absolute`,children:e.map((c,g)=>o.jsx("img",{alt:`Image ${g+1}`,className:`${l(g)} ${r(g)}`,src:g_(c)},g))})};var Ei={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Io=C.createContext&&C.createContext(Ei),h_=function(){return h_=Object.assign||function(e){for(var t,_=1,n=arguments.length;_<n;_++){t=arguments[_];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},h_.apply(this,arguments)},d$_=function(e,t){var _={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(_[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(_[n[s]]=e[n[s]]);return _};function Ti(e){return e&&e.map(function(t,_){return C.createElement(t.tag,h_({key:_},t.attr),Ti(t.child))})}function Nt(e){return function(t){return C.createElement(u$_,h_({attr:h_({},e.attr)},t),Ti(e.child))}}function u$_(e){var t=function(_){var n=e.attr,s=e.size,r=e.title,l=d$_(e,["attr","size","title"]),h=s||_.size||"1em",c;return _.className&&(c=_.className),e.className&&(c=(c?c+" ":"")+e.className),C.createElement("svg",h_({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},_.attr,n,l,{className:c,style:h_(h_({color:e.color||_.color},_.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),r&&C.createElement("title",null,r),e.children)};return Io!==void 0?C.createElement(Io.Consumer,null,function(_){return t(_)}):t(Ei)}function m$_(e){return Nt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 96v64h448V96H32zm0 128v64h448v-64H32zm0 128v64h448v-64H32z"}}]})(e)}const h$_="/admin/users/user-list",g$_="/home",p$_="/home",f$_="Dashboard",y$_="Mario Framework",w$_=["images/landing-page.jpg","images/landing-page2.jpg","images/landing-page3.jpg"],v$_=({version:e})=>{const t=ke.useSelector(r=>r.common.user),[_,n]=C.useState(!1),s=()=>n(!_);return C.useEffect(()=>{t?document.title=f$_:document.title=y$_},[t]),o.jsxs("div",{className:`${L.login} ${L["red-background"]} position-relative`,children:[o.jsx("span",{className:`${L["version-prod"]}`,children:`v ${e}`}),o.jsx(l$_,{data:w$_}),o.jsxs("div",{className:`${L["login-content"]}`,children:[o.jsxs(S.Navbar,{light:!0,expand:"md",children:[o.jsx(S.NavbarBrand,{href:"/",className:`${L["logo-home"]}`,children:o.jsx("img",{src:g_("/images/logo-white.svg"),alt:"mario"})}),o.jsx(m$_,{onClick:s,className:`${L["hide-in-desktop"]} ${L["hamburger-menu"]}`}),o.jsxs(S.Collapse,{isOpen:_,navbar:!0,className:`${L["collapse-box"]}`,children:[o.jsxs(S.Nav,{className:`${L["nav-home"]} d-md-flex w-100 justify-content-center mr-auto`,navbar:!0,children:[o.jsx(S.NavItem,{children:o.jsx(S.NavLink,{className:`${L["learn-more"]} align-self-md-center`,href:"https://marioframework.com/software",target:"blank",children:"Learn More"})}),o.jsx(S.NavItem,{children:o.jsx(vt.Link,{className:`${L.contact} align-self-md-center`,to:"/contact",children:"Contact"})}),o.jsx(S.NavItem,{children:o.jsx(S.NavLink,{className:`${L["learn-more"]} align-self-md-center`,href:"/privacy-policy",target:"blank",children:"Privacy Policy"})})]}),o.jsx("div",{className:`${L["hide-in-mobile"]} d-flex justify-content-end`,children:t?o.jsx(vt.Link,{to:t.roles.includes("Admin")?h$_:t.roles.includes("Teacher")?g$_:p$_,className:`${L["btn-trans-border"]}`,children:"Dashboard"}):o.jsx(vt.Link,{to:"/login",className:`${L["btn-trans-border"]}`,children:"Login"})})]})]}),o.jsx("div",{className:"",children:o.jsx(r$_,{})}),o.jsx("div",{className:`${L["digital-privacy-icon"]}`,children:o.jsx("a",{href:"https://cert.privo.com/#/companies/marioFrameworkLlc",target:"blank",children:o.jsx("img",{src:g_("/images/STUDENT1.png"),alt:"icon"})})})]})]})},b$_="Not found",Zn=()=>(C.useEffect(()=>{document.title=b$_}),o.jsx("div",{className:"not-found",children:o.jsxs("div",{className:"clearfix",children:[o.jsx("h1",{className:"float-left display-3 mr-4",children:"404"}),o.jsxs("div",{className:"float-left",children:[o.jsx("h4",{className:"pt-3",children:"Oops! You are lost."}),o.jsx("p",{className:"text-muted mb-2",children:"The page you are looking for was not found."}),o.jsx("div",{children:o.jsx(vt.Link,{to:"/",children:"Go to home"})})]})]})})),$$_=o.jsx("div",{className:"pt-3 text-center",children:o.jsx("div",{className:"sk-spinner sk-spinner-pulse"})}),k$_=({routes:e})=>{const t=vt.useLocation(),{pathname:_}=t,n=_.includes("/admin")?"":"box-container",s=_.includes("/admin")?"pt-3":"";return o.jsx("main",{className:`c-main ${n}`,children:o.jsx(Sl.CContainer,{fluid:!0,className:`h-100 ${s}`,children:o.jsx(C.Suspense,{fallback:$$_,children:o.jsxs(vt.Routes,{children:[e.map((r,l)=>o.jsx(vt.Route,{path:r.path,element:o.jsx(r.component,{})},l)),o.jsx(vt.Route,{path:"*",element:o.jsx(Zn,{})})]})})})})},x$_=C.memo(k$_);function I$_(e){return Nt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}}]})(e)}function C$_(e){return Nt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"}}]})(e)}function S$_(e){return Nt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"}}]})(e)}function A$_(e){return Nt({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm65.18 216.01H224v80c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-80H94.82c-14.28 0-21.41-17.29-11.27-27.36l96.42-95.7c6.65-6.61 17.39-6.61 24.04 0l96.42 95.7c10.15 10.07 3.03 27.36-11.25 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"}}]})(e)}function E$_(e){return Nt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464,128H272L208,64H48A48,48,0,0,0,0,112V400a48,48,0,0,0,48,48H464a48,48,0,0,0,48-48V176A48,48,0,0,0,464,128ZM359.5,296a16,16,0,0,1-16,16h-64v64a16,16,0,0,1-16,16h-16a16,16,0,0,1-16-16V312h-64a16,16,0,0,1-16-16V280a16,16,0,0,1,16-16h64V200a16,16,0,0,1,16-16h16a16,16,0,0,1,16,16v64h64a16,16,0,0,1,16,16Z"}}]})(e)}function ji(e){return Nt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(e)}function qi(e){return Nt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"}}]})(e)}function T$_(e){return Nt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"}}]})(e)}function j$_(e){return Nt({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M610.5 341.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 368.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm224 32c1.9 0 3.7-.5 5.6-.6 8.3-21.7 20.5-42.1 36.3-59.2 7.4-8 17.9-12.6 28.9-12.6 6.9 0 13.7 1.8 19.6 5.3l7.9 4.6c.8-.5 1.6-.9 2.4-1.4 7-14.6 11.2-30.8 11.2-48 0-61.9-50.1-112-112-112S208 82.1 208 144c0 61.9 50.1 112 112 112zm105.2 194.5c-2.3-1.2-4.6-2.6-6.8-3.9-8.2 4.8-15.3 9.8-27.5 9.8-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-10.7-34.5 24.9-49.7 25.8-50.3-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-3.8-2.2-7-5-9.8-8.1-3.3.2-6.5.6-9.8.6-24.6 0-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h255.4c-3.7-6-6.2-12.8-6.2-20.3v-9.2zM173.1 274.6C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"}}]})(e)}function q$_(e){return Nt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M402.3 344.9l32-32c5-5 13.7-1.5 13.7 5.7V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h273.5c7.1 0 10.7 8.6 5.7 13.7l-32 32c-1.5 1.5-3.5 2.3-5.7 2.3H48v352h352V350.5c0-2.1.8-4.1 2.3-5.6zm156.6-201.8L296.3 405.7l-90.4 10c-26.2 2.9-48.5-19.2-45.6-45.6l10-90.4L432.9 17.1c22.9-22.9 59.9-22.9 82.7 0l43.2 43.2c22.9 22.9 22.9 60 .1 82.8zM460.1 174L402 115.9 216.2 301.8l-7.3 65.3 65.3-7.3L460.1 174zm64.8-79.7l-43.2-43.2c-4.1-4.1-10.8-4.1-14.8 0L436 82l58.1 58.1 30.9-30.9c4-4.2 4-10.8-.1-14.9z"}}]})(e)}const N$_={fontWeight:500},P$_={height:38},hs=({text:e,onClick:t,className:_})=>o.jsxs(S.Button,{onClick:t,color:"success",style:P$_,className:"d-flex align-items-center",children:[o.jsx(ji,{}),o.jsx("span",{className:`ml-2 ${_}`,style:N$_,children:e})]}),gs=({onClick:e})=>o.jsx("div",{className:"d-inline text-center cursor-pointer hover-opacity",title:"Delete",onClick:e,children:o.jsx(qi,{})}),G_=({label:e,onClick:t,className:_})=>o.jsx(S.Button,{className:`text-left py-0 ${_}`,color:"link",onClick:t,children:e}),I_=({label:e,className:t="",style:_={}})=>{const{t:n}=yt.useTranslation();return o.jsx(S.Alert,{color:"primary",className:t,style:_,children:n("no_item_to_display",{item:e})})},C_=e=>{const{t}=yt.useTranslation(),{filters:_,changePage:n,totalRecordCount:s,changePageSize:r,className:l=""}=e,[h,c]=C.useState("");return C.useEffect(()=>{c(_.currentPage.toString())},[_.currentPage]),o.jsx(S.Row,{children:o.jsx(S.Col,{md:12,className:"d-flex justify-content-end",children:o.jsxs(S.Pagination,{children:[o.jsx("div",{className:"mr-1 pagination-dropdown",children:o.jsx(p_,{className:`text-center ${l}`,value:_&&_.pageSize?{label:_.pageSize,value:_.pageSize}:ri,options:Fv_,onChange:g=>r(g.value),styles:{menu:g=>({...g,zIndex:9999})},menuPosition:"fixed"})}),o.jsx(S.PaginationItem,{className:"mr-1",children:o.jsx(S.PaginationLink,{previous:!0,tag:"button",className:`h-100 ${l}`,disabled:_.currentPage<=1,onClick:()=>n(_.currentPage-1),children:t("prev")})}),o.jsx("input",{type:"text",id:"pageNumberInput",className:`page-input text-center pagination-input ${l}`,onChange:g=>c(g.target.value),onKeyUp:g=>{(g.key==="Enter"||g.keyCode===13)&&n(parseInt(h))},value:h}),o.jsx(S.PaginationItem,{className:"ml-1",children:o.jsx(S.PaginationLink,{next:!0,tag:"button",className:`h-100 ${l}`,disabled:_.currentPage>s/_.pageSize,onClick:()=>n(_.currentPage+1),children:t("next")})})]})})})},Ni=Y.createAction("emailTemplate/setEmailTemplateList"),on=Y.createAction("mailCategories/setMailCategory"),ps=`${ht}/api/emailtemplate`,R$_=e=>xe.get(ps,{params:e}),L$_=e=>xe.get(`${ps}/${e}`),M$_=e=>xe.post(ps,e),z$_=e=>xe.put(`${ps}/${e.id}`,e),D$_=e=>xe.delete(`${ps}/${e}`),F$_=`${ht}/api/EmailTemplateCategory`,Pi=()=>xe.get(F$_),an=()=>{const[e,t]=C.useState(ci);return{filters:e,setFilters:t,changeFilters:n=>{const s={...e,...n};s.searchString&&n.searchString&&n.searchString!=e.searchString&&(s.currentPage=1),t(s)}}},O$_="/admin/email-template",G$_="/admin/create-email-template",B$_="Email template list",V$_=()=>{const e=vt.useNavigate(),t=ke.useSelector(p=>p.emailTemplate.emailTemplateList),_=ke.useSelector(p=>p.emailTemplate.totalItems),n=ke.useSelector(p=>p.mailCategory.mailCategoryList),{filters:s,changeFilters:r}=an(),l=ke.useDispatch(),h=C.useCallback(async()=>{var p,w;l(me(!0));try{const v=await R$_(s),{items:A,totalItems:I}=v.data;if(l(Ni({emailTemplateList:A,totalItems:I})),n&&n.length==0){const E=await Pi();l(on(E.data.items))}}catch(v){l(he({type:"danger",message:((w=(p=v.response)==null?void 0:p.data)==null?void 0:w.title)||v.message}))}l(me(!1))},[l,s]),c=C.useCallback(p=>{var w,v;l(me(!0));try{l(Xt({isOpen:!0,type:"warning",message:"Do you want to remove this email template?",onConfirm:async()=>{await D$_(p),l(he({type:"success",message:"Remove template successfully"})),r({currentPage:1})}}))}catch(A){l(he({type:"danger",message:((v=(w=A.response)==null?void 0:w.data)==null?void 0:v.title)||A.message}))}l(me(!1))},[s]),g=C.useCallback(p=>{const w=p?`${O$_}/${p}`:G$_;e(w)},[]);return C.useEffect(()=>{document.title=B$_},[]),C.useEffect(()=>{h()},[s]),{emailTemplateList:t,totalItems:_,filters:s,changeFilters:r,getData:h,removeData:c,goToDetail:g,mailCategoryList:n}},Jn=()=>{const e=ke.useSelector(_=>{var n;return(n=_.common)==null?void 0:n.defaultFontSize});return{classFontSize:C.useMemo(()=>e==Qv_?"font-large":e==Jv_?"font-small":"",[e])}},H$_="email_template",W$_=()=>{const{t:e}=yt.useTranslation(),{classFontSize:t}=Jn(),{emailTemplateList:_,totalItems:n,filters:s,changeFilters:r,removeData:l,goToDetail:h,mailCategoryList:c}=V$_(),g=p=>{l(p)};return o.jsxs("div",{className:`fadeIn animated ${L[t]}`,children:[o.jsx("h5",{className:`mb-2 ${L["custom-title-font-size"]}`,children:e(H$_)}),o.jsxs(S.Row,{className:"my-2",children:[o.jsx(S.Col,{md:4,children:o.jsx(hs,{text:e("create_template"),onClick:()=>h(),className:` ${L["custom-font-size"]}`})}),o.jsxs(S.Col,{md:4,className:`d-flex justify-content-end align-items-center ${L["custom-font-size"]}`,children:[e("total_of_templates"),": ",n]})]}),o.jsxs(S.Row,{className:"mb-2",children:[o.jsxs(S.Col,{md:8,children:[_&&_.length>0?o.jsxs(S.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:`align-top ${L["custom-font-size"]}`,children:e("template_name")}),o.jsx("th",{className:`align-top ${L["custom-font-size"]}`,children:e("category_name")}),o.jsx("th",{className:`align-top ${L["custom-font-size"]}`,children:e("created_date")}),o.jsx("th",{className:`text-center ${L["custom-font-size"]}`,children:e("action")})]})}),o.jsx("tbody",{children:_.map(p=>o.jsxs("tr",{children:[o.jsx("td",{className:"align-middle",children:o.jsx(G_,{label:p.subject,onClick:()=>h(p.id),className:` ${L["custom-font-size"]}`})}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:p.category.name}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:m_.format(new Date(p.createdAt),li)}),o.jsx("td",{className:"text-center align-middle",children:o.jsx(gs,{onClick:()=>g(p.id)})})]},p.id))})]}):o.jsx(I_,{label:e("template")}),o.jsx(S.Row,{className:"mt-2",children:o.jsx(S.Col,{md:12,children:o.jsx(C_,{filters:s,totalRecordCount:n,changePageSize:p=>r({pageSize:p}),changePage:p=>r({currentPage:p})})})})]}),o.jsx(S.Col,{md:4,children:o.jsxs(S.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[o.jsx("thead",{children:o.jsx("tr",{children:o.jsx("th",{className:`align-top ${L["custom-font-size"]}`,children:e("category_name")})})}),o.jsx("tbody",{children:c.map(p=>o.jsx("tr",{children:o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:p.name})},p.id))})]})})]})]})},U$_={width:"100%",position:"fixed",bottom:70,backgroundColor:"#fff",borderTop:"1px solid #ddd",marginLeft:"-30px",padding:"18px 8px",zIndex:1},Qn=({confirmText:e,onConfirm:t,onCancel:_,className:n})=>{const{t:s}=yt.useTranslation();return o.jsx(S.Row,{form:!0,style:U$_,children:o.jsxs(S.Col,{md:12,children:[o.jsx(S.Button,{color:"primary",size:"sm",className:`px-4 pl-1 mr-2 ml-3 ${n}`,onClick:t,children:s(e)}),o.jsx(S.Button,{size:"sm",className:`px-4 mr-2 ml-2 ${n}`,onClick:_,children:s("cancel")})]})})},X$_=({onClick:e})=>o.jsx("div",{className:"d-inline text-center cursor-pointer hover-opacity",title:"Delete",onClick:e,children:o.jsx(ji,{})}),Co=[{label:"$USER_FIRST_NAME$",meaning:"User first name"},{label:"$USER_LAST_NAME$",meaning:"User last name"},{label:"$PASSWORD$",meaning:"Password"},{label:"$USER_NAME$",meaning:"User name"},{label:"$USER_EMAIL$",meaning:"User email"},{label:"$MESSAGE$",meaning:"Message"},{label:"$DOMAIN$",meaning:"DOMAIN"}],Y$_=({onClick:e,isResetPasswordTemplate:t,className:_})=>{const{t:n}=yt.useTranslation();let s=t?[...Co,{label:"$RESET_LINK$",meaning:"Reset link"}]:Co;return o.jsxs(S.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:`align-top ${_}`,children:n("params")}),o.jsx("th",{className:`align-top ${_}`,children:n("meaning")}),o.jsx("th",{})]})}),o.jsx("tbody",{children:s.map(r=>o.jsxs("tr",{children:[o.jsx("td",{className:`align-middle ${_}`,children:r.label}),o.jsx("td",{className:`align-middle ${_}`,children:r.meaning}),o.jsx("td",{className:"text-center align-middle",children:o.jsx(X$_,{onClick:()=>e(r)})})]},r.label))})]})},Z$_=e=>{const t=ke.useDispatch(),_=ke.useSelector(c=>c.mailCategory.mailCategoryList);C.useEffect(()=>{n()},[]);const n=async()=>{try{const c=await Pi();t(on(c.data.items))}catch(c){console.error(c)}},{id:s,className:r}=e,l=_.map(c=>({id:c.id,value:c.id,label:c.name})),h=s&&l.find(c=>c.value===s)||null;return o.jsx(p_,{options:l,className:r,value:h,...e})},J$_=({text:e,className:t})=>o.jsxs(S.Label,{className:t,children:[e,o.jsx("span",{className:"ml-2 text-danger",children:"*"})]}),zt=C.memo(J$_),So="You have some changes. Click OK to discard or click Cancel to continue edit, then click Update below to save your changes.";function fs({when:e}){return C.useEffect(()=>{if(!e)return;const t=_=>(_.preventDefault(),_.returnValue=So,So);return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}},[e]),null}const Ao=({label:e,onRemove:t,className:_})=>o.jsxs(C.Fragment,{children:[o.jsx("span",{className:`mr-2 ${_}`,children:e}),o.jsx("i",{className:"fa fa-times text-danger cursor-pointer hover-opacity",onClick:t})]}),Ht=`${ht}/api/file`,Q$_=`${Ht}/system/profile`,K$_=`${Ht}/system/student-badge`,e1_=`${Ht}/system/certificate`,t1_=`${Ht}/system/email-attachment`,_1_=`${Ht}/system/question`,s1_=`${Ht}/system/answer`,n1_=`${Ht}/system/tutorial`,o1_=`${Ht}/custom-key`,a1_=`${Ht}/delete-file`,i1_=`${Ht}/delete-folder`,r1_=`${Ht}/create-folder`,c1_=`${Ht}/rename-file`,l1_=e=>Yt.post(Ht,e),d1_=e=>Yt.post(K$_,e),u1_=e=>Yt.post(e1_,e),m1_=e=>Yt.post(Q$_,e),Ri=e=>Yt.post(t1_,e),h1_=e=>Yt.post(_1_,e),g1_=e=>Yt.post(s1_,e),Eo=e=>Yt.post(n1_,e),Li=e=>Yt.post(o1_,e),p1_=e=>xe.delete(`${a1_}?key=${e}`),f1_=e=>xe.delete(`${i1_}?key=${e}`),y1_=(e,t)=>xe.post(r1_,{prefix:e||"",folderName:t}),w1_=(e,t)=>xe.post(c1_,{key:e,name:t}),rn={height:500,menubar:!1,force_br_newlines:!0,force_p_newlines:!1,branding:!1,convert_urls:!1,plugins:`advlist autolink lists link image charmap print preview anchor
5
+ `,Dm_="下拉菜单和口头问答",Fm_="MARIO 工具",Om_="自定义",Gm_="技术设置",Bm_="数据导入/导出",Vm_="非活跃学生",Hm_="每周任务",Wm_="管理员一般提示",Um_="学校使用",Xm_="总对话时间",Ym_="课堂总反思",Zm_="牌号用途",Jm_="总对话数",Qm_="模仿",Km_="你好",eh_="过渡计划",th_="更新于",_h_="打印我的学习计划",sh_="打印学生学习计划",nh_="打印我的过渡计划",oh_="关于我",ah_="说出你的兴趣",ih_="添加更多您感兴趣的细节",rh_="引起兴趣",ch_="查看 PLP",lh_="查看当前 PLP",dh_="我的学习策略",uh_="添加新兴趣",mh_="添加新挑战",hh_="增添新力量",gh_="添加新想法",ph_="添加新成员",fh_="添加新工具",yh_="添加新策略",wh_="添加新梦想",vh_="我的支持网络",bh_="添加人员",$h_="更亲密的家庭",kh_="家庭",xh_="导师",Ih_="导师",Ch_="我的时间线",Sh_="添加里程碑",Ah_="添加测试",Eh_="学院",Th_="添加学院",jh_="我的转型计划",qh_="学术里程碑",Nh_="测试",Ph_="学术和职业兴趣",Rh_="您尚未添加任何兴趣",Lh_="添加计划",Mh_="课外活动",zh_="添加新活动",Dh_="培训班",Fh_="添加新课程",Oh_="添加新学院",Gh_="参考",Bh_="我的未来资源",Vh_="添加新资源",Hh_="我的论文",Wh_="添加文章",Uh_="学习档案",Xh_="添加投资组合",Yh_="金融计划",Zh_="添加新计划",Jh_="每页行数",Qh_="匿名链接",Kh_="选择问题的评分",eg_="选择响应分布",tg_="每次只能选择一个问题",_g_="答案数量",sg_="我的兴趣",ng_="我想了解更多",og_="我的优势",ag_="我的挑战",ig_="我情不自禁地",rg_="我的老师可以帮助我",cg_="其他可以帮助我的人是",lg_="可以帮助我的工具/事物是",dg_="我的目标",ug_="我的目标和计划",mg_="我的希望和梦想",hg_="缺少成绩",gg_="成绩必须等于或高于 1 级",pg_="您尚未添加任何挑战",fg_="您尚未添加任何优势",yg_="您尚未添加任何想法",wg_="您尚未添加任何人",vg_="您尚未添加任何工具",bg_="您尚未添加任何策略",$g_="您尚未添加任何目标和具体目标",kg_="你还没有添加任何希望和梦想",xg_="我最好的学习方法",Ig_="你的",Cg_="兴趣",Sg_="力量",Ag_="挑战",Eg_="主意",Tg_="主意",jg_="工具",qg_="梦",Ng_="人",Pg_="详细了解",Rg_="我的支持",Lg_="网络",Mg_="我当前的 PLP",zg_="查看 PLP",Dg_="现住住宿",Fg_="目标日期",Og_="您尚未添加任何 {{item}}",Gg_="截止日期",Bg_="大学",Vg_="访问",Hg_="应用",Wg_="一个计划",Ug_="利益",Xg_="活动",Yg_="检测考试",Zg_="课程",Jg_="资源",Qg_="散文",Kg_="论文",ep_="计划",tp_="总数是",_p_="诊断调查",sp_="精选问题",np_="可用问题",op_="您确定要禁止 {{number}} 名学生活动吗?",ap_="上个月的数据",ip_="问题数量",rp_="没有可显示的 {{item}}",cp_="模板",lp_="评估",dp_="作业结果",up_="证书",mp_="学习支援類別",hp_="反馈",gp_="建议",pp_="教程屏幕",fp_="反射形式",yp_="选择要添加的问题",wp_="未找到学生成绩",vp_="给你的人起名字",bp_="输入您的人",$p_="创建人",kp_="一月",xp_="二月",Ip_="三月",Cp_="四月",Sp_="五月",Ap_="六月",Ep_="七月",Tp_="八月",jp_="九月",qp_="十月",Np_="十一月",Pp_="十二月",Rp_="完成",Lp_="选择用户",Mp_="不到一小时结束",zp_="我的沙盒",Dp_="{number} 名学生没有动力",Fp_="{number} 名学生感到舒适",Op_="{number} 名学生感到紧张",Gp_="{number} 名学生感到压力",Bp_="{number} 名学生不堪重负",Vp_="与 {teacher name} 一起检查",Hp_="所有学生都标记为感觉安全。",Wp_="soft",Up_="升序",Xp_="降序",Yp_="empty",Zp_="您已完成所有每周任务!",Jp_="干得好!",Qp_="如果您已回答所有问题,请按“完成”按钮完成签到",Kp_="签到已完成",ef_="您准备好提交了吗?",tf_="您已在签到部分填写“签到”",_f_="干得好!您已在我的支持网络部分填写“支持网络”。",sf_="干得好!您已在我的学习策略部分填写“学习策略”。",nf_="默认问题一对一列表",of_="是默认问题",af_="是课堂反思题",if_="是/否问题",rf_="星数",cf_="情感图标",lf_="添加新的子问题",df_="子问题",uf_="您确定要删除吗?",mf_="编辑1-1",hf_="健康",gf_="环境安全",pf_="睡眠",ff_="吃",yf_="学习",wf_="获取帮助",vf_="锻炼",bf_="保持冷静",$f_="家园",kf_="学校",xf_="在线的",If_="课堂学习",Cf_="在家学习",Sf_="目的地",Af_="选择 CSV",Ef_="导入类反射",Tf_="输入问题",jf_="编辑目的地",qf_="创建目标",Nf_="目的地总数",Pf_="基本信息",Rf_="文件扩展名",Lf_="今天的",Mf_="添加待办事项",zf_="编辑待办事项",Df_="描述(可选)",Ff_="您想删除此目标吗?",Of_="我的待办事项",Gf_="设置你的待办事项",Bf_="您的每日动力",Vf_="我的1-1",Hf_="学生学习计划",Wf_="登出",Uf_="话题",Xf_="评论",Yf_="愿意尽最大努力学习",Zf_="还没做完",Jf_="尚未选择",Qf_="加载中",Kf_="我通过以下方式组织自己以获得成功",ey_="我知道我已经尽力了,因为",ty_="我知道我准备好学习了",_y_="前往 PLP",sy_="进入个人学习计划",ny_="创建二维码",oy_="此电子邮件中已存在名为 {{name}} 的家长。是否要为该学生添加此家长?",ay_="按学生筛选",iy_="搜索学生",ry_="排序方式",cy_="最近",ly_="最积极",dy_="最不积极",uy_="返回",my_="{{user}} 可编辑此会话",hy_="在这里输入你的答案",gy_="记录笔记并从我们的 MARIO 支持机器人那里获取建议",py_="脚手架已搭建",fy_="脚手架已拆除",yy_="查看所有建议",wy_="脚手架",vy_="会话结束",by_="您想现在开始还是稍后预订?",$y_="新的 1-1 互动",ky_="预订 1-1",xy_="选择会话类型",Iy_="新会议",Cy_="我的个人兴趣",Sy_="当...的时候,我觉得很困难",Ay_="参加测验",Ey_="坍塌",Ty_="扩张",jy_="创建于",qy_="更新",Ny_="通知",Py_="全部标记为已读",Ry_="筛选",Ly_="读",My_="未读",zy_="已读",Dy_="转至会议",Fy_="去",Oy_="会议",Gy_="学生简介",By_="已预订次数",Vy_="会议预定为 10 分钟时段",Hy_="会议结束",Wy_="返回会议",Uy_="未完成",Xy_="后退",Yy_="选择您的状态",Zy_="我的安全",Jy_="正在努力",Qy_="未开始",Ky_="评分标准总计",ew_="选择问题类别",tw_="默认问题会议列表",_w_="创建评分标准",sw_="输入要搜索的内容",nw_="上一页",ow_="选择年级",aw_="班级二维码",iw_="标题为必填项",rw_="此图表中显示的数据反映了学生<b>最近的签到情况</b>。",cw_="将从所有数据库中删除此会议。您确定要继续吗?",lw_="签到和一对一交流",dw_="我的签到和一对一",uw_="稍后预订",mw_="签到",hw_="开始签到,之后你还可以请求与老师对话",gw_="设定你的目标",pw_="显示待处理的对话",fw_="签到环节",yw_="这第一步将激活你们的一对一对话,为个人对话奠定基础。",ww_="报到",vw_="值机已完成",bw_="记录 1-1 对话",$w_="记录对话数据",kw_="添加 1-1 对话笔记",xw_="保存数据",Iw_="请选择日期1-1对话!",Cw_="请为这场一对一对话写点内容!",Sw_="数据1对1对话不能超过1000个字符!",Aw_="签到环节",Ew_="我没有什么可补充的。",Tw_="签到环节结束",jw_="这是一年级的问题",qw_="在这里输入你的答案,例如“我遇到了我的朋友”",Nw_="在这里输入你的答案,例如“我最好的朋友没来上学”",Pw_="保存1-1日志注释",Rw_="没必要",Lw_="对话已保存!",Mw_="是的,查看学生目标",zw_="您和学生选择了什么作为行动步骤?<br/>您想将其添加为目标吗?",Dw_="Here you can find all the notes and 1-1 conversations logs the student has.",Fw_="Back to Notes and Logs",Ow_="Student's Review",Gw_="Other note",Bw_="Student's Perceived<br/>Usefulness",Vw_="Student Feedback",Hw_="Note Category",Ww_="Select Note Category",Uw_="Save note",Xw_="Type the main focus of this session",Yw_="Please add note title",Zw_="Notes and Logs",Jw_="Other notes from the conversation (optional)",Qw_="Share your thoughts...",Kw_="Make this a private note",ev_="Environment-Specific Safety",tv_="Students' Reported Feelings",_v_="Well Being Indicators",sv_="Readiness Trends",nv_="Open Field Questions",ov_="Number of students with at least one very low metric",av_="This flags if the student is not ready to learn or has at least one success, or readiness to learn metrics under 40%",iv_="of students have concerned metrics",rv_="have metrics <40%",cv_="All students have good metrics",lv_="Students with at least One Concerned metric ({{number}})",dv_="Concerned metric(s)",uv_="Concern metrics",mv_="Conversation Goal",hv_="Target Monthly Conversation Goal for Teachers",gv_="Target Monthly Conversation Goal for Counselors",pv_="conversations",fv_="are not ready to learn",yv_="Check-in date",wv_="Educator",vv_="Location",bv_="Edit My Profile",$v_="Save new password",kv_="Conversation Duration",xv_="Please set time 1-1 conversation",Iv_="Negative emotions",Cv_="Please select add teacher for selected student first",Sv_="选择头像",Av_="从图库中选择头像,或上传您自己的图片。",Ev_="选择图片",Tv_="删除签到",jv_="删除会议",qv_="确定要删除此签到吗?",Nv_="确定要删除此会议吗?",Pv_="是的,我确定",Rv_="教师名单",Lv_="本月平均值 vs 上月平均值",Mv_={dashboard:sMt,user:nMt,question_bank:oMt,email_template:aMt,custom_alert:iMt,set_up:rMt,media_gallery:cMt,district_school_list:lMt,export_to_pdf:dMt,the_data_is_taken_from_the_home_screen:uMt,make_sure_everything_is_set_correctly_before_exporting:mMt,cancel:hMt,hey:gMt,readiness_to_learn:pMt,high_impact_learning_strategies:fMt,"1_to_1":"一对一",check_in:yMt,check_ins:wMt,reflection:vMt,conferences:bMt,safety:$Mt,student_by_age:kMt,students_by_designation:xMt,calendar:IMt,gender:CMt,grade:SMt,grades:AMt,current_grade:EMt,student_name:TMt,teacher_name:jMt,start_date:qMt,end_date:NMt,tooltip_content_readiness_to_learn_chart:PMt,tooltip_content_high_impact_chart:RMt,tooltip_content_1_to_1_chart:LMt,tooltip_content_class_reflection_chart:MMt,tooltip_content_conference_chart:zMt,tooltip_content_safety_chart:DMt,tooltip_content_student_by_age_chart:FMt,tooltip_content_students_by_designation:OMt,total_1_to_1:GMt,total_check_in:BMt,total_check_ins:VMt,total_1_to_1_time:HMt,total_conferences:WMt,total_conferences_time:UMt,total_class_reflection_check_ins:XMt,create_user:YMt,edit_user:ZMt,change_password:JMt,type_something_to_search_by_user_name:QMt,total_of_users:KMt,name:ezt,email:tzt,age:_zt,role:szt,active_status:nzt,action:ozt,active:azt,inactive:izt,create:rzt,update:czt,first_name:lzt,date_of_birth:dzt,last_name:uzt,roles:mzt,status:hzt,send_forgot_password_link:gzt,download_user_data:pzt,current_password:fzt,new_password:yzt,confirm_password:wzt,save:vzt,type_something_to_search_question:bzt,type_something_to_search_category:$zt,total_of_questions:kzt,create_question:xzt,edit_question:Izt,question_type:Czt,category:Szt,sub_category:Azt,question_text:Ezt,text:Tzt,is_default_question_for_one_to_one:jzt,default_question_for_students_or_teachers:qzt,is_default_question_general_class:Nzt,default_question_general_for_students_or_teachers:Pzt,before_session:Rzt,edit_custom_alert:Lzt,create_custom_alert:Mzt,total_of_custom_alert:zzt,number_of_sessions:Dzt,number_of_students:Fzt,begin_date:Ozt,duration_days:Gzt,students:Bzt,create_skill:Vzt,edit_skill:Hzt,total_of_skills:Wzt,description:Uzt,skill:Xzt,parent_category:Yzt,edit_subject:Zzt,create_subject:Jzt,total_of_subjects:Qzt,color:Kzt,create_learning_support_category:eDt,edit_learning_support_category:tDt,create_category:_Dt,edit_category:sDt,total_of_learning_support_categories:nDt,default_color:oDt,edit_strategy:aDt,create_strategy:iDt,create_learning_strategy:rDt,total_of_strategies:cDt,strategy_name:lDt,question:dDt,detail:uDt,strategy:mDt,best_fit:hDt,create_goal_example:gDt,edit_goal_example:pDt,total_of_goal_examples:fDt,short_term_target_examples:yDt,goal_example:wDt,edit_badge:vDt,create_badge:bDt,total_of_badges:$Dt,icon:kDt,badge:xDt,badge_image:IDt,edit_semester:CDt,create_semester:SDt,update_school_break_month:ADt,total_of_semesters:EDt,total_of_academicyear:TDt,semester:jDt,breaking_month:qDt,change_breaking_month:NDt,school_year_break_month:PDt,edit_blank_day:RDt,create_blank_day:LDt,total_of_blank_days:MDt,start_time:zDt,end_time:DDt,school_blank_day:FDt,edit_point:ODt,create_new_point:GDt,total_of_point:BDt,label:VDt,value:HDt,break_point:WDt,update_break_point:UDt,maximum_number_of_admins:XDt,maximum_number_of_assistants:YDt,maximum_number_of_students:ZDt,maximum_number_of_teachers:JDt,request_to_this_plan:QDt,type_something_to_search_reflection_result:KDt,user_deleted:e9t,export_user_data:t9t,alert_delete_user:_9t,delete_user:s9t,alert_delete_teacher:n9t,list_students:o9t,student_email:a9t,current_teacher_name:i9t,current_teacher_email:r9t,change_save:c9t,select_teacher_change:l9t,current_assistant_name:d9t,current_assistant_email:u9t,remove_assistant:m9t,switch_assistant:h9t,select_assistant_change:g9t,select_assistant:p9t,welcome_email_resend:f9t,send_for_selected_users:y9t,user_name:w9t,user_email:v9t,level:b9t,use_for:$9t,admin_training:k9t,teacher_training:x9t,created_time:I9t,total_reflections:C9t,student_training:S9t,create_designation:A9t,total_of_designation:E9t,designations:T9t,edit_designation:j9t,confirm:q9t,hello:N9t,todays_1_1:P9t,todays_check_in:R9t,todays_Conferences:L9t,next_meeting:M9t,next_conference:z9t,todays_schedule:D9t,action_points:F9t,upcoming:O9t,see_all_action_points:G9t,add:B9t,edit_action_point:V9t,add_action_point:H9t,title:W9t,type_title:U9t,subject:X9t,class:"班级",select_date:Y9t,date:Z9t,select_time:J9t,time:Q9t,notification:K9t,no_notification:eFt,day:tFt,week:_Ft,mark_as_done:sFt,delete:"删除",my_students:nFt,download_template:oFt,import_csv:aFt,add_new:iFt,show_only_work_as_assistant:rFt,show_only_work_as_teacher:cFt,last_1_to_1:lFt,last_check_in:dFt,last_conference:uFt,total_time:mFt,assistant_name:hFt,work_as_assistant:gFt,assign_assistant:pFt,view:fFt,history:yFt,custom_recurrence:wFt,repeat_every:vFt,repeat_on:bFt,never:$Ft,on:kFt,after:xFt,pick_a_date:IFt,pick_a_time:CFt,change_date:SFt,change_time:AFt,apply:EFt,new_1_to_1:TFt,new_check_in:jFt,do_you_want_to_talk_with_teacher:qFt,start_now:NFt,book_later:PFt,select_category:RFt,search_question_category:LFt,no_question:MFt,select_question:zFt,select_student:DFt,select_staff:FFt,staff_name:OFt,select_teacher:GFt,do_you_want_to_talk_with:BFt,please_select_a_student:VFt,please_select_a_teacher:HFt,please_provide_a_valid_student:WFt,please_provide_a_valid_teacher:UFt,select_a_student_and_launch_a_new_session_or_book_one_for_later:XFt,you_have_no_teacher:YFt,search_teacher:ZFt,select_date_time:JFt,book_1_to_1:QFt,book_new_check_in:KFt,schedule:eOt,sessions_are_booked_as_10_minute_slots:tOt,does_not_reoccur:_Ot,time_must_be_between_8_am_and_6_pm:sOt,from:nOt,to:oOt,show_only_favorites:aOt,show_only_conversation:iOt,duration:rOt,favorite:cOt,open:lOt,no_data:dOt,schedule_detail:uOt,are_you_sure_you_want_to_cancel_this_schedule:mOt,completed_1_to_1:hOt,completed_check_in:gOt,done:pOt,what_do_you_want_to_talk_about:fOt,session_type:yOt,what_is_this_session_type:wOt,how_are_you_feeling_about_each_area_right_now:vOt,sleep_nutrition_exercise_physical_health_and_mental_health:bOt,goals_activities_habits_and_strategies:$Ot,overall_how_are_you_feeling_today:kOt,what_is_your_level_of_pride_in_yourself_today:xOt,how_are_you_feeling_today:IOt,how_much_did_you_learn_from_this_session:COt,what_is_the_most_important_thing_you_learned_from_this_session:SOt,your_next_meeting:AOt,today_at:EOt,choose_if_you_want_to_do_it_now_or_if_you_would_like_to_book_for_later:TOt,edit:jOt,phone_number:qOt,second_phone_number:NOt,health_note:POt,address:ROt,mtss:LOt,note:MOt,no_schedule:zOt,my_notes:DOt,private_note:FOt,goal_progress:OOt,view_all_goals:GOt,completed:BOt,not_completed:VOt,student_information:HOt,top_learning_strategies:WOt,perceived_usage:UOt,total_number_of_times_seleted:XOt,energy:YOt,focus:ZOt,happiness:JOt,stress:QOt,one_to_one:KOt,class_reflection:eGt,conference:tGt,learning_progress:_Gt,cant_export_now_please_try_again:sGt,view_data:nGt,learning_strategies:oGt,strategies:aGt,number_of_used:iGt,next:rGt,previous:cGt,my_conferences:lGt,select_a_student_and_launch_a_new_conference_or_book_one_for_later:dGt,you_have_no_student:uGt,this_is_a_required_field:mGt,please_select_question_category:hGt,book_conferences:gGt,final_score:pGt,new_conference:fGt,search_student:yGt,search_staff:wGt,"1_1_conversation":"一对一对话",meeting_schedule:vGt,class_schedule:bGt,more_questions:$Gt,conference_rubric:kGt,unlock:xGt,before_clicking_submit:IGt,your_session_was:CGt,mins:SGt,min:AGt,submit:EGt,are_you_sure_to_complete:TGt,be_sure_to_check_completed_all:jGt,teacher_choice:qGt,student_choice:NGt,agreement:PGt,personal_learning_plan:RGt,my_personal_learning_plan:LGt,personal_interests:MGt,allow_student_to_edit:zGt,strengths_and_challenges:DGt,significant_strengths:FGt,strengths:OGt,challenges:GGt,significant_challenges:BGt,how_my_teachers_can_help_me_learn:VGt,about_my_learning:HGt,accommodations:WGt,goals:UGt,this_goal_is_showing_in_the_student_conference_rubric_are_you_sure_to_delete_it:XGt,activity_circles:YGt,friend_circles:ZGt,are_you_ready_to_learn:JGt,class_schedules:QGt,add_class_schedule:KGt,class_date:eBt,class_name:tBt,day_period:_Bt,teacher_email:sBt,note_type_class:nBt,my_note:oBt,add_new_note:aBt,all_category:iBt,personalized:rBt,show_only_favorite:cBt,search:lBt,note_title:dBt,student:uBt,note_detail:mBt,mark_as_favorite:hBt,type_a_note:gBt,please_select_student:pBt,settings:fBt,save_changes:yBt,activity_notifications:wBt,schedule_notifications:vBt,preschedule_notifications:bBt,yes:$Bt,no:kBt,email_notification:xBt,send_me_email_notification:IBt,dont_send_me_email_notification:CBt,type:SBt,teacher_request:ABt,student_request:EBt,overview:TBt,plp:jBt,my_student_1_to_1:qBt,my_student_check_in:NBt,my_student_conference:PBt,received_date:RBt,class_impact_score:LBt,impact_score:MBt,iep:zBt,ieps:DBt,"1_to_1_conversation":"一对一讨论会",creator:FBt,last_modify:OBt,modify:GBt,student_reflections:BBt,external_reflection:VBt,external_class_reflection:HBt,reflections:WBt,class_reflections:UBt,add_reflection:XBt,add_class_reflection:YBt,class_type:ZBt,teacher_image:JBt,send_to_teacher:QBt,send_now:KBt,missed:e8t,pending:t8t,sent_date:_8t,go_to_the_student_plp:s8t,new_iep:n8t,edit_iep:o8t,type_of_iep:a8t,source_of_eligibility_forinitial:i8t,annual_goals:r8t,enter_a_date_range:c8t,add_objectives:l8t,add_goals:d8t,day_month_year:u8t,special_education:m8t,special_education_content:h8t,objectives_and_reporting_progress:g8t,objectives_and_reporting_progress_content:p8t,annual_goals_content:f8t,related_services:y8t,related_services_content:w8t,supplementary_aids_and_services:v8t,supplementary_aids_and_services_content:b8t,program_modifications_for_school_personnel:$8t,program_modifications_for_school_personnel_content:k8t,extent_of_nonparticipation:x8t,extent_of_nonparticipation_content:I8t,accommodations_in_assessment:C8t,accommodations_in_assessment_content:S8t,service_delivery:A8t,service_delivery_content:E8t,transition_planning:T8t,transition_planning_content:j8t,present_levels:q8t,present_levels_content:N8t,signatures:P8t,iep_old_versionf_and_diagnostic_docs:R8t,upload_file:L8t,add_interest:M8t,upload_image:z8t,supported_image_types:D8t,edit_interest:F8t,select_personal_interest_or_enter_personal_interest_here:O8t,add_note:G8t,select_best_fit:B8t,best_fits:V8t,select_strategies:H8t,selected_learning_strategies:W8t,do_you_want_to_delete_this_strengths_and_challenges:U8t,add_new_item:X8t,edit_item:Y8t,select_teaching_strategies:Z8t,selected_teaching_strategies:J8t,add_title:Q8t,my_learning:K8t,do_you_want_to_delete_this_about_my_learning:eVt,edit_my_learning:tVt,add_my_learning:_Vt,select_about_learning_or_enter_about_learning_here:sVt,accommodation:nVt,all_categories:oVt,do_you_want_to_delete_this_accommodation:aVt,edit_accommodation:iVt,add_accommodation:rVt,all:cVt,all_status:lVt,goal_type:dVt,add_new_goal:uVt,goal_detail:mVt,select_status:hVt,goal_baseline:gVt,objective:pVt,goal_details:fVt,goals_type:yVt,edit_goal_detail:wVt,uploaded_files:vVt,optional:bVt,edit_baseline:$Vt,edit_friend:kVt,add_friend:xVt,search_friend:IVt,friend_type:CVt,edit_activity:SVt,add_activity:AVt,search_activity:EVt,activity:TVt,activity_type:jVt,select_or_type_an_activity:qVt,action_needed:NVt,external:PVt,student_survey:RVt,view_survey:LVt,create_a_survey:MVt,survey_from:zVt,review:DVt,publish_survey:FVt,total_surveys:OVt,flags:GVt,scheduled_session:BVt,total_survey_done:VVt,total_survey_not_done:HVt,list_survey:WVt,surveys:UVt,survey:XVt,create_survey:YVt,my_survey:ZVt,counselor_name:JVt,survey_title:QVt,deadline:KVt,day_left:eHt,replied_date:tHt,session:_Ht,flag:sHt,external_email:nHt,scheduled_now:oHt,session_schedule:aHt,session_scheduled:iHt,search_survey:rHt,total_survey:cHt,survey_result:lHt,check_in_from:dHt,received_today_at:uHt,preview_survey:mHt,complete_survey:hHt,"you_will_not_be_able_to_edit_this_survey_once_published_._are_you_sure_you_want_to_continue_?":"发布后您将无法编辑此调查。您确定要继续吗?",do_you_want_to_share_a_survey_to_teachers:gHt,you_can_share_this_survey_to_teachers_to_get_more_insight_about_your_student:pHt,skip:fHt,survey_questions:yHt,add_survey_question:wHt,additional_question:vHt,add_additional_question:bHt,save_favorite:$Ht,save_as_favorite:kHt,favorite_survey:xHt,slider:IHt,questions:CHt,insert_all_question:SHt,remove_all_question:AHt,insert_question:EHt,survey_templates:THt,insert_template:jHt,share_survey_teacher:qHt,suggested_teacher:NHt,email_contents:PHt,send_survey:RHt,review_survey_detail:LHt,a_number_of_student:MHt,date_and_time:zHt,scale:DHt,answer:FHt,add_question:OHt,save_question:GHt,external_survey:BHt,ib_learner_profile:VHt,set_deadline:HHt,duplicate_survey:WHt,share_survey:UHt,new_survey:XHt,assign_counselor:YHt,select_counselor:ZHt,select_support_teacher:JHt,assign_support_teacher:QHt,switch_support_teacher:KHt,support_teacher_name:eWt,user_for_question:tWt,requested_reflection:_Wt,request_class_reflection:sWt,share_survey_to_teacher:nWt,select_form:oWt,switch_counselor:aWt,remove_counselor:iWt,current_counselor_email:rWt,current_counselor_name:cWt,select_counselor_change:lWt,current_support_teacher_name:dWt,current_support_teacher_email:uWt,remove_support_teacher:mWt,select_support_teacher_change:hWt,filter_calendar:gWt,average_student_safety:pWt,is_active:fWt,top_5_most_used_strategies:yWt,preparedness:wWt,average_student_stress:vWt,success_indicators:bWt,learning_process:$Wt,survey_dashboard:kWt,response_rate:xWt,top_5_most_survey_used:IWt,question_intervention:CWt,student_pressure:SWt,overall_readiness_to_learn:AWt,view_calendar:EWt,student_wellness:TWt,view_data_dashboard:jWt,view_a_student:qWt,view_student:NWt,average_safety:PWt,average_stress:RWt,average_energy:LWt,average_focus:MWt,average_happiness:zWt,vs_last_month:DWt,of_students_are_not_feeling_safe:FWt,students_marked_themselves_as_unsafe:OWt,marked_themselves_as_unsafe:GWt,are_not_feeling_safe:BWt,of_students_are_highly_stressed:VWt,flagged_with_high_stress:HWt,are_feeling_highly_stressed:WWt,select_a_student_to_see_their_profile_and_learning_plan:UWt,select_a_student_and_start_a_conversation_with_the_check_in_results:XWt,start:YWt,teacher_reflection:ZWt,notes:JWt,student_reflection:QWt,view_latest_check_ins:KWt,"1-1s":"一对一","1_1":"1 月 1 日",this_week_s:e7t,missing_weekly_check_in:t7t,add_new_student:_7t,"start_your_check-in_and_you_can_also_request_a_conversation_with_your_teacher_after":"开始签到。此后,您还可以请求与老师进行对话。",start_check_in:s7t,no_events_today:n7t,today_schedule:o7t,high_stressed:a7t,unsafe:i7t,average:r7t,see_them:c7t,goal:l7t,ended_over_24_hours_ago:d7t,start_a_1_1_conversation:u7t,view_results:m7t,request_check_in:h7t,last:g7t,latest_check_ins:p7t,students_who_missing_weekly_check_in:f7t,this_student_does_nt_have_missing_check_in:y7t,no_student_missing_weekly_check_in:w7t,start_1_1_conversation:v7t,select_a_teacher_and_start_a_check_in:b7t,this_weeks_check_ins:$7t,this_weeks_1_1s:k7t,this_student_does_nt_have_1_1_in_this_week:x7t,this_student_does_nt_have_check_in_in_this_week:I7t,no_last_or_requested_check_ins:C7t,students_who_are_highly_stressed:S7t,students_who_are_not_feeling_safe:A7t,students_missing_a_weekly_check_in:E7t,student_stress_by_zone:T7t,student_distribution:j7t,surveys_flags:q7t,yellow_flags:N7t,green_flags:P7t,red_flags:R7t,show_by:L7t,survey_overview:M7t,share_note:z7t,survey_summary:D7t,survey_name:F7t,date_created:O7t,"#of_recipients":"#收件人","#of_answers":"答案数",cut_off_time:G7t,created_by:B7t,responses_distribution:V7t,ratings_of_questions:H7t,show_results_for:W7t,responses_and_response_rates_per_question:U7t,view_list_of_students:X7t,view_list_of_responses:Y7t,number_of_responses:Z7t,number_of_not_responses:J7t,question_rating:Q7t,no_response_yet:K7t,external_survey_is_highlight_in_the_table:eUt,reset_password:tUt,correct:_Ut,incorrect:sUt,the_correct_answer_is:nUt,the_correct_answers_are:oUt,action_need:aUt,view_answers:iUt,survey_results:rUt,weeks:cUt,months:lUt,scheduled_sessions:dUt,active_surveys:uUt,view_responses:mUt,download_csv:hUt,create_new_survey:gUt,go_to_individual_survey_responses:pUt,you_can_only_select_number_kpis_at_a_time:fUt,you_can_only_select_number_kpis_at_a_time_To_select_a_new_one_please_switch_off_one_of_the_previous_ones:yUt,"download.csv":"下载.CSV",last_check__in:wUt,how_many_times_a_strategy_has_been_chosen:vUt,these_metrics_come_from_students_check_ins_filter_above_to_change_the_data_set:bUt,not_yet_started:$Ut,in_progress:kUt,export_check_ins_to_csv:xUt,these_metrics_come_from_the_conference_rubric_only_teacher_responses_are_scored:IUt,please_save_first:CUt,print_date:SUt,goal_base_line:AUt,print:EUt,download:TUt,my_daily_motivation:jUt,select_deadline:qUt,export:"导出",image_is_a_required:NUt,old_iep:PUt,create_next_years_iep:RUt,write_something_optional:LUt,the_effectiveness_of_learning_strategies_by_students_feedback:MUt,perceived_usefulness:zUt,performance:DUt,not_enough_challenge_leading_to_boredom_and_lack_of_interest:FUt,calm_and_relaxed_but_not_enough_motivation_to_perform_at_my_best:OUt,manageable_levels_of_stress_allowing_me_to_perform_at_my_best:GUt,still_in_control_but_starting_to_feel_the_pressure:BUt,too_much_pressure_and_really_struggling_to_manage_my_workload:VUt,import_emails_by_csv:HUt,request_number:WUt,select_or_input_class_type:UUt,send_request:XUt,start_reflection:YUt,customize_reflection:ZUt,include_section_you_want_to_appear:JUt,time_of_day:QUt,iep_template:KUt,one_roster:eXt,sandbox:tXt,"well-being":"幸福感","self-efficacy":"自我效能",information_roster_sourced_id_full_name_email:_Xt,sync_roster_users:sXt,export_to_csv:nXt,user_list:oXt,assign_student:aXt,one_to_one_question:iXt,class_reflection_question:rXt,conference_question:cXt,actions:lXt,order:dXt,user_for:uXt,question_category:mXt,template_survey:hXt,total_of_category:gXt,create_template:pXt,number_of_question:fXt,mandatory:yXt,well_being:wXt,self_efficacy:vXt,no_question_to_display:bXt,privacy_policy:$Xt,profile:kXt,role_change:xXt,log_out:IXt,data_dashboard:CXt,deep_learning_tools:SXt,my_profile:AXt,phone:EXt,calendar_id:TXt,old_password:jXt,confirm_new_password:qXt,select_a_student_and_start_a_check_in:NXt,anything_is_possible_anything_can_be:PXt,edit_picture:RXt,create_new_student:LXt,grade_level:MXt,health_notes:zXt,students_parent_information:DXt,parent_1:FXt,parent_2:OXt,in_app_notifications:GXt,turn_on_all_notifications:BXt,notify_me_when:VXt,a_student_schedules_a_1_1:HXt,a_student_schedules_a_conference:WXt,a_student_completes_a_conference_self_assessment_rubric:UXt,a_student_or_teacher_completes_a_class_reflection:XXt,action_points_are_due_based_on_chosen_schedule:YXt,a_student_hasnt_logged_1_1_in_the_past_28_days:ZXt,email_notifications:JXt,turn_on_all_emails:QXt,a_student_responds_to_a_1_1_readiness_to_learn_with_no:KXt,a_student_reported_a_low_safety_score_on_a_check_in:eYt,continue_as:tYt,admin:_Yt,counselor:sYt,support_teacher:nYt,teacher_assistant:oYt,add_parent_1_information:aYt,add_parent_2_information:iYt,parent_role:rYt,all_activity:cYt,academic_year:lYt,all_of_the_students_report_manageable_stress_levels:dYt,"100_00_of_students_are_not_feeling_safe":"100.00% 的学生感觉不安全",growth:uYt,relationships:mYt,productivity:hYt,academics:gYt,percent:pYt,unmotivated:fYt,comfort:yYt,stretch:wYt,strain:vYt,overwhelmed:bYt,edit_student_profile:$Yt,teacher:kYt,created:xYt,student_phone_number:IYt,designation:CYt,e_mail:SYt,general_ed_teacher:AYt,select_general_ed_teacher:EYt,please_select_teacher:TYt,assign:jYt,be_silly_be_honest_be_kind:qYt,do_you_want_to_change_to_role_counselor_to_open:NYt,search_assistant:PYt,baseline:RYt,timeframe:LYt,friends:MYt,best_friends:zYt,supportive:DYt,potential_friends:FYt,like:OYt,love:GYt,interested:BYt,curious:VYt,improvement_in_study_habits_grades_sports_clubs_or_personal_projects:HYt,family_friends_and_teachers:WYt,accomplishing_important_tasks_and_limiting_distractions:UYt,homework_studying_and_grades:XYt,my_ability_to_be_successful:YYt,whats_on_your_mind:ZYt,now_look_back_at_your_responses_from_today:JYt,do_you_want_to_change_to_role_student_to_open:QYt,student_has_started_this_one_to_one_are_you_sure_to_delete:KYt,do_you_want_to_change_to_role_support_teacher_to_open:eZt,student_has_not_started_this_conference_are_you_sure_to_delete:tZt,search_support_teacher:_Zt,search_counselor:sZt,how_productive_i_was_in_class_today:nZt,not_enough_stress:oZt,too_much_stress:aZt,organization:iZt,self_awareness:rZt,self_directed_learning:cZt,self_advocacy:lZt,self_management:dZt,conceptual_change_conversation:uZt,concrete_examples:mZt,elaboration:hZt,dual_coding:gZt,note_type_and_class:pZt,edit_note:fZt,not_done:yZt,red:wZt,yellow:vZt,green:bZt,uwcsea_sg_climate_survey:$Zt,connections_with_adults_and_peers:kZt,holistic_learning_experiences:xZt,my_health_and_wellbeing:IZt,open_ended_questions:CZt,do_you_need_some_extra_help_or_support:SZt,sdq_standards_and_difficulties_questionaire:AZt,sdq_strengths_and_difficulties_questionnaire_supplemental:EZt,close:TZt,student_responses:jZt,anonymous_responses:qZt,teacher_perceived:NZt,prepared_for_class:PZt,missing_class_assignments:RZt,completed_classwork:LZt,asked_for_help_when_needed:MZt,clear:zZt,missing_reflections:DZt,total_students_missing_late_assignments:FZt,subject_class:OZt,chart_type:GZt,request_from:BZt,are_you_sure_you_want_to_delete_this_item:VZt,yes_delete:HZt,completed_conference:WZt,my_learning_plan:UZt,my_learning_plan_beta:XZt,winning_doesn_t_always_mean_being_first_winning_means_you_re_doing_better_than_you_ve_done_before:YZt,integrating_learningwith_previous_knowledge:ZZt,improving_student_self_efficacy:JZt,my_check_in:QZt,what_do_you_want_to_do_differently:KZt,to_do:eJt,my_class_reflections:tJt,send_reflection:_Jt,type_2_characters_to_search:sJt,create_time:nJt,do_you_want_to_remove_this_user:oJt,warning:aJt,do_you_want_to_impersonate_this_user:iJt,assistant:rJt,parent:cJt,choose_file:lJt,do_you_want_to_remove_this_question:dJt,select:uJt,do_you_want_to_remove_this_category:mJt,total_of_templates:hJt,template_name:gJt,category_name:pJt,created_date:fJt,do_you_want_to_remove_this_email_template:yJt,create_email_template:wJt,mail_subject:vJt,mail_body:bJt,mail_params:$Jt,params:kJt,meaning:xJt,add_attachment:IJt,skills:CJt,subjects:SJt,learning_support_categories:AJt,goal_examples:EJt,student_badges:TJt,blank_days:jJt,csv_import:qJt,band_scores:NJt,license:PJt,switch_teacher:RJt,question_scaffolding:LJt,training:MJt,type_something_and_press_enter_to_add_short_term_target_examples:zJt,import_users:DJt,import_class_reflection:FJt,download_users_data:OJt,do_you_want_to_remove_this_assistant:GJt,do_you_want_to_remove_this_counselor:BJt,do_you_want_to_remove_this_support_teacher:VJt,send:HJt,do_you_want_to_remove_this_designation:WJt,new_folder:UJt,upload:XJt,type_something_to_search_by_file_name:YJt,systems:ZJt,create_template_system:JJt,created_at:QJt,do_you_want_to_remove_this_template:KJt,one_roster_setting:eQt,users:tQt,one_roster_config:_Qt,end_point_url:sQt,client_id:nQt,client_secret:oQt,import_one_roster:aQt,import_from_zip_file:iQt,import_from_restful_api:rQt,non_existent_users:cQt,type_something_to_search_users:lQt,create_account_for_selected_users:dQt,help:uQt,sandbox_mode:mQt,off:hQt,restore_sandbox_database:gQt,turn_on:pQt,turn_off:fQt,restore:yQt,edit_profile:wQt,on_track_going_well:vQt,guide:bQt,make_each_day_your_masterpiece:$Qt,consistently:kQt,frequently:xQt,sometimes:IQt,rarely:CQt,not_applicable:SQt,i_schedule_all_homework_and_studying_through_google_calendar_or_a_planner_or_organizer_as_soon_as_it_is_assigned:AQt,i_maintain_a_clean_and_organized_system_for_keeping_and_reviewing_physical_notes_handouts_and_packets_for_each_class:EQt,i_maintain_a_clean_and_organized_system_for_storing_digital_files_as_a_result_i_can_easily_find_all_of_my_digital_files:TQt,i_keep_my_school_inbox_organized_and_important_emails_are_not_missed:jQt,i_have_a_clear_understanding_of_my_strengths:qQt,i_know_and_understand_how_teachers_can_best_help_me_in_class:NQt,i_know_and_understand_my_accommodations:PQt,i_know_and_understand_my_personalized_systems_and_strategies_for_ideal_learning_outside_of_class:RQt,i_know_and_understand_my_personalized_systems_and_strategies_for_ideal_learning_in_class:LQt,i_have_a_clear_understanding_of_my_challenges:MQt,i_have_an_accurate_idea_of_how_i_am_doing_in_my_classes_and_know_what_i_need_to_do_to_improve:zQt,i_use_the_first_25_minutes_of_our_class_effectively_to_make_progress_on_my_goals:DQt,i_use_the_homework_study_time_effectively:FQt,achieving:OQt,significant_progress:GQt,moderate_progress:BQt,slight_progress:VQt,no_progress:HQt,cope_with_stressful_situations:WQt,improve_my_sleeping_habits:UQt,i_promplty_address_and_deal_with_difficult_situations_instead_of_avoiding_them:XQt,i_appropriately_use_technology:YQt,i_create_a_note_during_or_after_meetings:ZQt,i_effectively_study_for_upcoming_assessments:JQt,i_turn_in_all_homework_on_time_and_complete:QQt,i_get_the_right_amount_of_sleep_each_night:KQt,i_meet_with_my_teachers_outside_of_class_time:eKt,i_ask_questions_inside_and_or_after_class:tKt,when_needed_i_let_my_teachers_know_how_to_better_help_me_in_class:_Kt,i_advocate_for_and_use_accommodations_i_need_in_all_of_my_classes:sKt,planning:nKt,making_connections_with_previous_learning:oKt,providing_quality_feedback:aKt,working_on_learning_goals:iKt,setting_or_reinforcing_high_expectations:rKt,improving_effort:cKt,self_assessing:lKt,predicting:dKt,help_seeking_behaviors:uKt,reflecting:mKt,low:hKt,medium_low:gKt,medium:pKt,medium_high:fKt,high:yKt,how_much_did_you_learn_from_this_conference:wKt,are_there_any_observations_or_feedback_you_want_to_share:vKt,what_are_you_doing_well_that_you_want_to_continue:bKt,what_is_something_you_have_learned_while_working_towards_achieving_your_goals:$Kt,english_language_or_literature:kKt,language_class:xKt,ridge_charts:IKt,bar_charts:CKt,line_charts:SKt,start_of_day:AKt,mid_morning:EKt,before_lunch:TKt,mid_afternoon:jKt,last_class_of_the_day:qKt,student_only:NKt,teacher_only:PKt,did_the_student_have_all_needed_materials_for_this_class:RKt,does_the_student_have_any_missing_assignments:LKt,did_the_student_complete_today_s_classwork:MKt,did_the_student_ask_for_help_when_needed:zKt,please_rate_the_student_s_participation_in_class:DKt,please_rate_the_student_s_peformance_in_class:FKt,how_useful_were_the_accommodations:OKt,do_you_have_any_concerns_or_student_success_to_share:GKt,not_at_all:BKt,very_helpful:VKt,not_sent:HKt,well_being_is_feeling_good_mentally_in_your_head_and_physically_in_your_body_do_you_have_habits_and_routines_that_help_you_look_after_yourself_some_people_boost_their_well_being_by_eating_healthily_being_active_spending_time_with_friends_and_family_doing_things_they_enjoy_or_helping_others:WKt,growth_is_all_about_becoming_the_best_version_of_yourself_this_is_done_through_learning_trying_new_things_working_hard_and_taking_risks_are_you_happy_with_the_progress_you_are_making_towards_your_goals_and_in_other_areas_of_your_life:UKt,relationships_are_connections_with_other_people_good_relationships_have_trust_respect_honesty_and_safety_how_are_you_getting_on_with_family_friends_and_teachers_do_you_have_relationships_that_bring_you_happiness_and_people_you_can_talk_to:XKt,productivity_is_about_getting_things_done_in_a_way_that_is_smarter_not_harder_this_means_you_know_what_needs_to_be_done_and_how_you_re_going_to_do_it_while_doing_your_work_today_were_you_able_to_help_yourself_stay_focused_and_finish_the_task:YKt,academics_relate_to_your_learning_through_work_you_do_at_school_and_home_are_you_doing_your_classwork_and_homework_every_day_do_your_grades_show_your_teachers_parents_and_even_yourself_how_hard_you_are_working_to_learn:ZKt,self_efficacy_is_when_you_believe_in_yourself_and_that_you_can_do_something_well_are_you_happy_with_something_you_have_done_well_today_do_you_think_you_can_be_successful_in_what_you_have_to_do_today:JKt,focus_is_when_you_pay_attention_to_a_task_or_a_person_and_dont_get_distracted_if_you_re_trying_to_focus_on_your_teacher_then_you_are_only_thinking_about_what_the_teacher_is_saying_have_you_been_able_to_stay_on_task_today_can_you_clear_your_mind_to_do_your_work:QKt,happiness_is_a_good_feeling_that_can_come_from_anything_you_enjoy_or_from_generally_being_satisfied_with_the_way_your_life_is_going_while_its_not_possible_to_be_happy_all_the_time_you_can_always_find_something_to_be_happy_about_has_there_been_a_moment_that_made_you_smile_today_what_things_people_activities_bring_you_joy_and_make_you_feel_good:KKt,when_you_feel_safe_you_are_not_scared_or_in_danger_it_means_you_are_comfortable_and_happy_at_home_at_school_and_wherever_your_normal_activities_take_you_are_you_able_to_be_yourself_do_you_feel_like_people_care_about_you_and_that_your_thoughts_and_feelings_matter:ee_,stress_in_the_right_amount_is_actually_a_positive_thing_too_much_stress_causes_distress_which_makes_us_feel_like_we_re_losing_control_too_little_stress_means_we_re_not_engaged_or_challenged_the_right_amount_of_stress_for_each_of_us_helps_us_reach_our_goals_and_perform_at_our_best:te_,after_looking_at_your_answers_today_are_you_ready_to_do_whats_asked_of_you_in_class_or_do_you_need_help_to_get_in_a_good_place_to_learn_being_ready_to_learn_means_your_mind_and_body_are_working_together_to_prepare_you_to_learn_new_things_and_deepen_your_understanding_of_the_learning_already_covered:_e_,how_helpful_was_our_conversation_today:se_,being_proud_of_yourself_is_when_you_feel_good_about_something_you_did_or_who_you_are_as_a_person_how_satisfied_or_happy_are_you_about_your_actions_today:ne_,what_is_the_one_thing_you_are_going_to_keep_doing_well_or_start_doing_differently_or_what_is_one_thing_you_learned_about_yourself_others_or_the_world_around_you:oe_,energy_provides_the_strength_and_power_to_do_something_this_can_be_something_physical_like_running_a_race_or_mental_like_taking_an_assessment_do_you_feel_like_you_have_enough_energy_to_get_through_the_day_how_do_you_feel_about_your_energy_levels_at_the_moment:ae_,student_has_not_started_this_check_in_are_you_sure_to_delete:ie_,struggling_i_need_support:re_,some_well_being_issues:ce_,generally_okay:le_,most_well_being_issues_are_fine:de_,feeling_great:ue_,making_no_progress:me_,aware_of_my_goals_but_making_little_progress:he_,making_some_progress:ge_,good_growth_overall:pe_,great_growth_in_all_areas:fe_,one_or_more_key_relationships_are_very_difficult:ye_,one_or_more_key_relationships_are_a_little_tricky:we_,most_key_relationships_are_positive:ve_,all_key_relationships_are_positive:be_,not_at_all_productive:$e_,procrastinating:ke_,meeting_some_deadlines:xe_,meeting_most_deadlines:Ie_,meeting_all_deadlines_comfortably:Ce_,major_challenges:Se_,difficulties_in_some_areas:Ae_,on_target_in_some_areas:Ee_,on_target_in_most_areas:Te_,on_target_in_all_areas:je_,very_low_confidence:qe_,lacking_some_self_belief:Ne_,developing_and_improving:Pe_,feeling_positive:Re_,super_confident:Le_,always_distracted:Me_,mostly_distracted:ze_,sometimes_distracted:De_,generally_focused:Fe_,laser_focused:Oe_,exhausted:Ge_,often_tired:Be_,feeling_okay:Ve_,good_energy:He_,unhappy_most_of_the_time:We_,bursting_with_energy:Ue_,unhappy_some_of_the_time:Xe_,more_positives_than_negatives:Ye_,generally_happy:Ze_,optimistic_and_positive_almost_all_of_the_time:Je_,in_danger:Qe_,feeling_unsafe:Ke_,some_concerns:et_,feeling_safe:tt_,very_safe_and_secure:_t_,moderate:st_,very_high:nt_,how_much_did_the_conceptual_change_conversation_help_your_learning_improve:ot_,how_much_did_discussing_ways_to_seek_help_during_this_session_help_your_learning_improve:at_,how_much_did_a_focus_on_setting_or_reinforcing_high_expectations_during_this_session_help_your_learning_improve:it_,a_little:rt_,a_lot:ct_,after_session:lt_,high_pride:dt_,low_pride:ut_,what_is_on_your_mind:mt_,select_all:ht_,attitude:gt_,behavior:pt_,collaboration:ft_,confidence:yt_,creativity:wt_,developing_ideas:vt_,exercise:bt_,finishing_tasks:$t_,flexibility:kt_,impulse_control:xt_,listening:It_,long_term_memory:Ct_,math:St_,organization_of_materials:At_,processing_speed:Et_,reading:Tt_,setting_and_achieving_goals:jt_,short_term_memory:qt_,sleep_hygiene:Nt_,speaking:Pt_,starting_tasks:Rt_,stress_and_anxiety:Lt_,studying:Mt_,time_management:zt_,work_ethic:Dt_,writing:Ft_,high_expectations:Ot_,i_learn_best_when_i_set_high_expectations_for_myself_that_encourage_me_to_do_more_than_the_minimum_expected:Gt_,i_learn_best_when_i_recognize_my_successes_and_have_an_opportunity_to_celebrate_progress_and_achievements:Bt_,integrating_learning_with_previous_knowledge:Vt_,i_learn_best_when_i_connect_new_and_important_learning_to_previous_things_i_have_learned:Ht_,learners_self_assessing:Wt_,i_learn_best_when_i_self_assess_my_own_learning_with_guided_prompts_rubrics_and_or_support:Ut_,learning_goals:Xt_,i_learn_best_when_i_have_short_and_long_term_goals_that_i_m_working_on_and_know_where_i_am_on_my_goal_progress_this_might_also_include_me_creating_habits_and_routines_that_assist_me_in_achieving_my_goals:Yt_,planning_and_predicting:Zt_,i_learn_best_when_i_plan_future_actions_and_predict_what_will_happen_as_a_result_of_these_actions:Jt_,quality_feedback:Qt_,i_learn_best_when_i_know_what_good_work_looks_like_how_my_work_compares_to_good_work_and_what_i_need_to_do_to_improve_my_work_to_make_it_good:Kt_,i_learn_best_when_i_have_time_to_reflect_on_my_learning_and_or_when_a_teacher_emphasizes_learning_opportunities_and_provides_time_to_reflect:e__,i_learn_best_when_i_learn_about_myths_and_misconceptions_around_a_concept_and_why_they_are_not_true_it_s_also_helpful_when_teachers_address_misconceptions_around_my_thinking_and_or_self_assessments_that_are_not_accurate:t__,i_learn_best_when_i_am_encouraged_to_reach_out_for_help_whether_that_be_for_academic_support_guidance_advice_medical_assistance_social_emotional_support_etc_if_needed:___,target:s__,session_focus:n__,what_was_the_main_focus_of_this_session:o__,academic:a__,assessments_and_homework:i__,custom:r__,general:c__,habits_and_strategies:l__,organization_and_planning:d__,school_life_balance:u__,sleep_habits:m__,social_media_tik_tok_instagram_youtube_pinterest_etc:h__,role_playing_games_d_and_d_world_of_warcraft_pathfinder_etc:g__,environment_global_warming_sustainability_etc:p__,anime_my_hero_academia_hunter_x_hunter_one_piece_etc:f__,manga:y__,graphic_novels:w__,comics:v__,politics:b__,television_stranger_things_heart_stopper_glow_up_etc_and_movies_shrek_marvel_encanto_etc:$__,music:k__,bluey:x__,stickers:I__,weather:C__,religion:S__,spirituality:A__,news_current_events:E__,sports:T__,cafe_culture_coffee:j__,fashion_design:q__,futurism_engineering_design_etc:N__,science_fiction:P__,wellness_meditation_mindfulness_etc:R__,comedy:L__,journalism:M__,make_up:z__,aesthetics_cottagecore_dark_academia_fairycore_etc:D__,automotive_culture_race_cars_motorcycles_motor_bikes_etc:F__,poetry_slam_poetry:O__,horror_and_suspense:G__,skiing_snowboarding:B__,horseback_riding:V__,magic:H__,science_biology_chemistry_physics_etc:W__,minecraft:U__,graphic_design:X__,survival_prepping:Y__,botany:Z__,film_study:J__,first_responder_fire_ems_emt_police_etc:Q__,animals_domesticated_rescue_etc:K__,animals_large_wild_etc:es_,marine_biology:ts_,video_game_youtubers:_s_,hello_kitty:ss_,memes:ns_,cony_and_brown:os_,pokemon:as_,select_significant_strengths_or_enter_significant_strengths_here:is_,i_learn_best_when_i:rs_,i_have_difficulty_learning_when_i:cs_,teachers_make_learning_easier_for_me_when_they:ls_,teachers_make_learning_more_difficult_for_me_when_they:ds_,if_you_are_a_teacher_and_see_i_m_having_trouble_learning_in_class_you_can_help_me_by:us_,the_assignments_i_learn_the_most_from_are:ms_,the_assignments_i_sometimes_find_too_challenging_are:hs_,chunking_tasks:gs_,i_learn_best_when_my_teacher_breaks_down_large_tasks_or_projects_into_smaller_steps_and_estimates_or_helps_me_estimate_th_amount_of_time_each_step_will_require:ps_,time_management_starting_tasks_finishing_tasks_planning:fs_,bite_size_learning:ys_,i_learn_best_when_my_teacher_breaks_down_new_learning_into_smaller_pieces_of_information_followed_by_opportunities_to_review_what_i_learned_and_identify_gaps_in_learning:ws_,short_term_memory_staying_focused_impulse_control_self_awareness_listening_processing_speed:vs_,breaks:bs_,i_learn_best_when_my_teacher_builds_in_short_breaks_into_each_class:$s_,time_management_finishing_tasks_staying_focused_impulse_control_attitude_stress_and_anxiety_work_ethic:ks_,happy_notes_home:xs_,i_learn_best_when_my_teacher_send_positive_notes_emails_or_calls_home_to_celebrate_my_growth:Is_,finishing_tasks_setting_and_achieving_goals_attitude_behavior_confidence_work_ethic:Cs_,growth_focused:Ss_,i_learn_best_when_my_teacher_focuses_on_my_growth_and_progress_rather_than_overall_achievement:As_,confidence_setting_and_achieving_goals_stress_and_anxiety:Es_,avoid_spotlight:Ts_,i_learn_best_when_my_teacher_is_able_avoid_putting_me_in_the_spotlight_and_giving_me_space_and_time_to_prepare_when_i_do_need_to_present_also_allowing_for_recorded_presentations_rather_than_in_person_requirements_when_possible:js_,stress_and_anxiety_speaking_processing_speed:qs_,frequent_check_ins:Ns_,i_learn_best_when_my_teacher_has_frequent_private_check_ins_to_ensure_i_am_on_track_this_also_helps_me_feel_safe_and_supported_in_class_ideas_for_check_ins_include_a_sticky_note_system_silent_signal_whisper_at_desk_side_but_we_can_agree_on_something_together:Ps_,stress_and_anxiety_processing_speed_task_initiation_developing_ideas_planning_finishing_tasks_short_term_memory_staying_focused_self_advocacy_self_awareness:Rs_,develop_rapport:Ls_,i_learn_best_when_my_teacher_focuses_on_relationship_building_both_with_teachers_and_peers_creating_a_community_of_care_where_i_feel_connected_and_valued:Ms_,stress_and_anxiety_behavior_attitude_confidence:zs_,explicit_prioritizations:Ds_,i_learn_best_when_my_teacher_shares_what_activities_are_must_do_recommended_or_completely_optional:Fs_,planning_processing_speed_finishing_tasks_listening_reading_writing_stress_and_anxiety_work_ethic_studying:Os_,planned_transitions:Gs_,i_learn_best_when_my_teacher_previews_and_prepares_me_and_other_students_for_safety_drills_activity_changes_or_other_class_transitions:Bs_,time_management_planning_finishing_tasks_stress_and_anxiety_behavior_flexibility:Vs_,choices:Hs_,i_learn_best_when_my_teacher_provides_as_many_choices_as_possible:Ws_,attitude_behavior_work_ethic:Us_,movement:Xs_,i_learn_best_when_my_teacher_provides_lots_of_planned_physical_movement_or_opportunities_for_movement_into_class:Ys_,impulse_control_staying_focused:Zs_,non_verbal_cues:Js_,i_learn_best_when_my_teacher_redirects_me_with_non_verbal_cues_to_redirect_me_when_possible_rather_than_verbally_redirecting_me:Qs_,staying_focused_self_awareness_attitude_behavior_stress_and_anxiety_confidence:Ks_,limit_direct_instruction:en_,i_learn_best_when_my_teacher_doesnt_talk_too_long_and_gives_me_opportunities_to_learn_at_my_own_pace_using_materials_that_work_best_for_me:tn_,short_term_memory_staying_focused_impulse_control_listening_behavior_processing_speed:_n_,routines:sn_,i_learn_best_when_my_teacher_sets_and_maintains_consistent_routines_if_we_need_to_change_routines_i_know_about_the_changes_ahead_of_time:nn_,time_management_planning_finishing_tasks_stress_and_anxiety_behavior_flexibility_starting_tasks:on_,multimodal_learning:an_,i_learn_best_when_my_teacher_helps_us_learn_through_multiple_ways_including_reading_listening_watching_and_doing_important_concepts_are_not_taught_just_using_one_way_of_learning:in_,staying_focused_listening_reading_writing_math_collaboration_processing_speed:rn_,flexible_assessments:cn_,i_learn_best_when_my_teacher_creates_a_variety_of_options_for_me_to_demonstrate_my_learning:ln_,listening_reading_writing_math_speaking_stress_and_anxiety_collaboration_processing_speed_studying:dn_,flexible_feedback:un_,i_learn_best_when_my_teacher_regularly_gives_me_feedback_so_that_the_i_know_how_i_m_performing_and_what_i_can_do_to_continue_improving:mn_,planning_staying_focused_self_awareness:hn_,pre_learning:gn_,i_learn_best_when_my_teacher_provides_opportunities_to_learn_new_concepts_early_such_as_early_access_to_resources:pn_,time_management_writing_reading_math_stress_and_anxiety_processing_speed:fn_,understanding_checks:yn_,i_learn_best_when_my_teacher_frequently_checks_in_with_me_to_see_if_i_ve_understand_new_learning:wn_,starting_tasks_short_term_memory_staying_focused_impulse_control_self_advocacy_listening_processing_speed:vn_,rubrics:bn_,i_learn_best_when_my_teacher_provides_learning_rubrics_early_and_refer_to_them_often_these_rubrics_help_me_understand_what_is_needed_for_me_to_demonstrate_my_learning_at_different_levels_of_performance:$n_,studying_work_ethic_confidence_stress_and_anxiety_self_advocacy_time_management_planning_finishing_tasks:kn_,graphic_organizers:xn_,i_learn_best_when_my_teacher_uses_graphic_organizer_to_help_me_understand_what_we_are_learning:In_,listening_reading_writing_processing_speed_short_term_memory_developing_ideas_planning:Cn_,visuals:Sn_,i_learn_best_when_my_teacher_uses_lots_of_visuals_diagrams_infographics_pictures_etc_to_help_me_understand_what_are_we_learning:An_,short_term_memory_staying_focused_listening_reading_processing_speed:En_,sentence_stems:Tn_,i_learn_best_when_my_teacher_provides_sentence_stems_and_writing_promts_for_written_assignments:jn_,developing_ideas_planning_starting_tasks_writing:qn_,think_time:Nn_,i_learn_best_when_i_have_plenty_of_time_to_think_before_answering_a_question:Pn_,developing_ideas_processing_speed_speaking:Rn_,clear_instructions:Ln_,i_learn_best_when_my_teacher_breaks_down_instructions_into_small_steps_using_simple_vocabulary_and_check_to_make_sure_i_ve_understood_the_directions:Mn_,time_management_planning_starting_tasks_finishing_tasks_short_term_memory_staying_focused_listening_processing_speed:zn_,sharing_vocabulary:Dn_,i_learn_best_when_my_teacher_provides_new_vocabulary_words_before_we_cover_new_information_and_provides_opportunities_to_learn_the_vocabulary:Fn_,short_term_memory_long_term_memory_listening_reading_processing_speed:On_,idea_bank:Gn_,i_learn_best_when_my_teacher_provides_a_pre_prepared_list_of_ideas_for_me_to_chose_from:Bn_,developing_ideas_starting_tasks_time_management:Vn_,exemplars:Hn_,i_learn_best_when_my_teacher_provides_examples_of_what_successfully_completed_work_looks_like_for_different_levels_of_performance:Wn_,developing_ideas_planning_starting_tasks_studying:Un_,organization_time:Xn_,i_learn_best_when_my_teacher_provides_time_for_me_to_organize_materials_and_or_plan_next_steps:Yn_,time_management_organization_of_materials_developing_ideas_planning_starting_tasks_stress_and_anxiety:Zn_,i_learn_best_when_my_teacher_schedules_regular_1_to_1_time_with_me:Jn_,multimodal_answers:Qn_,i_learn_best_when_i_can_show_my_understanding_in_varied_ways_like_sketching_presentation_or_a_short_video_relaying_information_etc:Kn_,starting_tasks_finishing_tasks_self_advocacy_long_term_memory:eo_,peer_teaching_group_work:to_,i_learn_best_when_i_can_peer_teach_or_practise_with_peers:_o_,studying_listening_processing_speed_long_term_memory:so_,extra_time_to_complete_assessments:no_,extra_time_to_process_spoken_information_and_directions:oo_,extra_breaks_as_needed:ao_,use_of_a_computer_without_internet_access_or_word_processor_on_assessments:io_,audio_versions_of_assessments:ro_,access_to_a_reader_for_assessments:co_,speech_to_text_software_for_assessments:lo_,access_to_a_scribe_for_assessments:do_,audio_recording_of_answers_for_assessments:uo_,break_up_larger_timed_assessments_over_several_days:mo_,take_tests_in_a_quiet_room_with_few_distractions:ho_,take_tests_in_a_small_group_setting:go_,assign_seating_where_the_student_is_likely_to_learn_best:po_,the_use_of_sensory_tools_during_class:fo_,special_lighting:yo_,use_of_a_computer_or_word_processor_to_take_notes:wo_,use_of_a_calculator_when_normally_not_allowed_one:vo_,use_of_a_spelling_dictionary_or_spellchecker:bo_,copies_of_class_notes:$o_,written_copy_of_any_instructions:ko_,visuals_and_graphics_to_accompany_any_new_information_delivered_verbally:xo_,ability_to_record_lessons:Io_,increase_text_size_to_a_larger_format:Co_,provide_alternative_formats_other_than_reading_when_learning_new_information:So_,provide_alternative_formats_other_than_listening_when_learning_new_information:Ao_,great_let_s_build_your_goal:Eo_,what_do_you_want_to_be_different_about_your_learning_select_a_category_or_type_your_own_idea:To_,choose_my_goal_area:jo_,nice_choice_what_area_of_well_being_would_you_like_to_work_on:qo_,let_s_get_more_specific_select_an_area_or_type_your_own_idea:No_,add_more_details_to_your_goal:Po_,remember_goals_should_be_smart:Ro_,specific_measurable_achievable_ambitious_relevant_and_time_based:Lo_,perfect_let_s_narrow_this_down_time_to_add_more_details_to_your_goal:Mo_,select_a_goal_or_type_your_own:zo_,now_let_s_pick_your_targets:Do_,how_do_you_plan_to_accomplish_this_goal:Fo_,customize_the_options_below_or_type_your_own_these_will_become_your_short_term_targets:Oo_,keep_going:Go_,add_target:Bo_,where_are_you_now_what_does_this_look_like_for_you_at_the_moment:Vo_,this_helps_you_track_your_progress:Ho_,finished:Wo_,i_will_create_a_sleep_routine:Uo_,i_will_set_an_alarm_to_remind_me_to_start_my_routine:Xo_,i_will_put_my_electronics_away_1_hour_before_it_is_time_for_me_to_sleep:Yo_,i_will_set_my_phone_to_focus_or_do_not_disturb_mode_for_an_hour_before_bedtime_and_until_my_morning_alarm:Zo_,i_will_choose_relaxing_activities_1_hour_before_bedtime_such_as_reading_meditating_yoga_or_listening_to_music:Jo_,i_will_get_out_of_bed_at_the_same_time_each_day:Qo_,i_will_only_press_snooze_one_time_each_morning:Ko_,i_will_have_everything_packed_or_set_out_for_the_next_day_before_going_to_sleep:ea_,i_will_go_to_bed_on_time:ta_,i_will_do_this_at_least_4_out_of_5_times_this_week:_a_,i_will_wake_up_on_time:sa_,i_will_create_a_short_routine_for_the_morning_that_gets_me_excited_for_the_day:na_,i_will_set_an_alarm_to_remind_me_to_get_ready_for_sleep_1_hour_before_bedtime:oa_,i_will_set_a_morning_alarm_that_gives_me_plenty_of_time_to_get_ready_for_school:aa_,i_will_read_for_20_minutes_before_bed:ia_,i_will_meditate_or_listen_to_relaxing_music_before_going_to_sleep:ra_,i_will_create_a_morning_routine_to_be_ready_for_the_day:ca_,i_will_research_ideas_for_a_morning_routine:la_,i_will_present_my_ideas_to_my_teacher_or_other_person:da_,i_will_map_out_my_routine_on_paper_or_in_my_phone:ua_,i_will_start_my_routine_at_the_same_time_every_morning:ma_,i_will_create_an_evening_routine_to_get_me_ready_for_bed:ha_,i_will_research_ideas_for_an_evening_routine:ga_,i_will_do_this_routine_5_out_of_5_school_nights_this_week:pa_,i_will_get_at_least_8_hours_of_sleep_each_night:fa_,i_will_practice_meditation:ya_,i_will_find_choose_a_meditation_app_or_resource_to_use:wa_,i_will_challenge_myself_to_meditate_for_x_number_of_days_in_a_row:va_,i_will_choose_a_daily_time_to_meditate_and_set_an_alarm_to_remind_me:ba_,i_will_meditate_at_least_x_out_of_x_days_this_week:$a_,i_will_start_an_exercise_routine:ka_,i_will_find_a_friend_to_exercise_with_each_week:xa_,i_will_choose_the_type_of_exercise_to_add_to_my_routine:Ia_,i_will_share_my_routine_with_a_friend_or_trusted_adult:Ca_,i_will_add_my_exercise_times_to_my_planner_or_calendar:Sa_,i_will_exercise_daily:Aa_,i_will_exercise_at_least_x_out_of_x_days_this_week:Ea_,i_will_understand_the_cause_of_my_stress:Ta_,i_will_talk_to_my_teacher_or_counselor_about_things_that_bother_me_or_make_me_stressed:ja_,i_will_identify_and_talk_with_someone_i_trust_about_how_i_am_feeling:qa_,i_will_pause_when_i_m_feeling_stressed_to_identify_what_is_causing_the_stress:Na_,i_will_learn_what_is_and_is_not_in_my_circle_of_control:Pa_,i_will_acknowledge_when_i_am_approaching_a_potentially_stressful_situation:Ra_,i_will_learn_about_coping_skills:La_,i_will_talk_to_my_teacher_or_counselor_about_coping_skills_they_think_will_be_helpful_for_me:Ma_,i_will_choose_a_coping_skill_to_practice_when_i_feel_i_am_becoming_stressed:za_,i_will_use_a_coping_strategy_when_i_am_stressed_x_number_of_times_this_week:Da_,i_will_start_journaling_my_thoughts_and_feelings:Fa_,i_will_do_this_at_least_x_out_of_x_days_this_week:Oa_,i_will_get_outside_or_in_nature:Ga_,i_will_make_time_for_something_fun:Ba_,i_will_make_time_for_being_still_and_quiet:Va_,increase_my_mindfulness:Ha_,i_will_take_minibreaks_throughout_the_day:Wa_,i_will_decide_what_types_of_breaks_help_me_the_most:Ua_,i_will_set_alarms_to_remind_myself_to_take_a_break:Xa_,i_will_take_a_break_every_hour:Ya_,i_will_take_a_break_every_90_minutes:Za_,i_will_take_x_number_of_breaks_a_day:Ja_,create_relaxation_opportunities:Qa_,i_will_use_visualization_to_help_me_relax:Ka_,i_will_learn_about_visualization:ei_,i_will_set_an_alarm_to_remind_me_to_practice_visualization:ti_,i_will_decide_what_this_practice_will_look_like_for_me:_i_,i_will_do_deep_breathing_exercises:si_,i_will_research_and_learn_breathing_exercises_to_try:ni_,i_will_set_an_alarm_to_remind_me_to_practice_my_breathing_exercises:oi_,i_will_listen_to_relaxing_music:ai_,i_will_find_or_create_a_playlist_that_i_find_relaxing:ii_,i_will_add_listening_music_to_my_evening_routine:ri_,i_will_practice_yoga:ci_,i_will_find_a_class_youtube_channel_or_app_to_use:li_,i_will_challenge_myself_to_practice_yoga_for_x_number_of_days_in_a_row:di_,i_will_choose_a_daily_time_to_practice_yoga_and_set_an_alarm_to_remind_me:ui_,i_will_do_an_art_project_that_is_enjoyable:mi_,i_will_find_a_relaxing_art_activity_to_try:hi_,i_will_choose_a_time_to_do_my_art_each_week_and_set_reminders:gi_,i_will_tell_someone_about_my_new_art_project:pi_,keeping_fit:fi_,i_will_exercise_more:yi_,i_will_join_a_sports_team_or_club:wi_,i_will_find_out_what_is_available_at_my_school:vi_,i_will_choose_one_that_interests_me:bi_,i_will_take_care_of_any_paperwork_to_join:$i_,i_will_participate_in_the_tryout_or_application_process:ki_,i_will_attend_all_the_practices:xi_,i_will_learn_a_new_sport_or_activity:Ii_,i_will_research_new_sports_or_activities_that_might_interest_me:Ci_,i_will_choose_a_new_sport_or_activity_to_learn:Si_,i_will_see_if_anyone_i_know_would_like_to_try_this_new_activity_with_me:Ai_,i_will_gather_the_needed_gear_to_learn_this_activity:Ei_,i_will_research_the_rules_and_methods_for_this_activity:Ti_,i_will_find_groups_who_participate_in_this_activity_to_join:ji_,i_will_research_potential_challenges_that_interest_me:qi_,i_will_choose_a_challenge_to_complete:Ni_,i_will_set_a_time_each_week_or_day_to_do_this_challenge:Pi_,i_will_set_an_alarm_to_remind_me_to_do_this_challenge:Ri_,i_will_sign_up_for_a_race:Li_,i_will_research_different_races_and_events_happening_in_my_area_in_the_next_few_months:Mi_,i_will_choose_one_to_complete_and_talk_to_my_parents_guardians_about_participating:zi_,i_will_sign_up_if_i_have_permission_from_my_parents_guardians:Di_,i_will_create_a_training_schedule_to_prepare_for_my_race:Fi_,i_will_set_reminders_for_my_training_schedule:Oi_,i_will_create_an_at_home_exercise_routine:Gi_,i_will_take_an_inventory_of_what_exercise_equipment_i_have_access_to_at_home:Bi_,i_will_research_what_routines_and_exercises_i_can_do_with_my_equipment_at_home:Vi_,i_will_find_a_youtube_channel_or_app_to_use_for_my_workouts:Hi_,i_will_set_a_schedule_for_my_routine:Wi_,i_will_set_reminders_for_my_routine:Ui_,i_will_join_and_go_to_a_gym:Xi_,i_will_research_gyms_in_my_area:Yi_,i_will_choose_a_gym_that_i_can_pay_for_and_get_my_parent_guardians_permission:Zi_,i_will_go_to_the_gym_and_get_a_membership:Ji_,i_will_learn_about_the_equipment_programs_and_classes_available_at_my_gym:Qi_,i_will_decide_what_my_routine_will_be_when_i_visit_the_gym:Ki_,i_will_schedule_times_to_go_to_the_gym_on_my_phone:er_,i_will_go_to_the_gym_x_out_of_x_days_this_week:tr_,eating_healthier:_r_,i_will_add_more_fruits_and_veggies_into_my_diet:sr_,i_will_swap_x_for_x_when_i_go_out_to_eat:nr_,i_will_limit_my_sugary_drinks:or_,i_will_drink_more_water:ar_,i_will_fill_up_my_water_bottle_x_number_of_times_each_school_day:ir_,i_will_learn_to_cook_simple_meals:rr_,i_will_go_to_the_store_to_buy_the_missing_ingredients_on_my_list:cr_,i_will_follow_the_recipe_and_share_my_meal_with_a_family_member_or_friend:lr_,improve_my_timekeeping_not_late_for_school_class:dr_,i_will_add_buffer_time_to_my_schedule_in_the_morning_to_make_sure_i_get_to_school_on_time:ur_,i_will_set_alarms_or_calendar_alert_on_my_phone_to_remind_me_to_go_to_my_next_class:mr_,i_will_set_an_alarm_to_tell_me_5_minutes_before_i_need_to_leave_for_school:hr_,i_will_put_my_school_schedule_in_a_planner_or_on_my_phone:gr_,making_friends:pr_,i_will_join_a_club_or_sports_team:fr_,i_will_attend_all_the_practices_or_meetings:yr_,i_will_find_someone_with_a_common_interest:wr_,i_will_ask_someone_to_hang_out_outside_of_school:vr_,i_will_attend_events_or_parties_i_m_invited_to:br_,i_will_eat_lunch_with_someone_i_want_to_get_to_know_better:$r_,i_will_learn_some_good_questions_to_ask_others_to_get_to_know_them:kr_,i_will_learn_how_to_engage_in_conversation_more:xr_,i_will_think_about_what_i_want_in_a_friend:Ir_,i_will_think_about_what_it_means_to_be_a_good_friend:Cr_,i_will_share_this_thoughts_with_someone:Sr_,joining_a_club_sport:Ar_,i_will_choose_a_club_to_join:Er_,i_will_attend_all_the_meetings:Tr_,i_will_choose_a_sport_to_try_out_for:jr_,learning_a_new_activity:qr_,i_will_choose_a_new_activity_to_learn:Nr_,i_will_gather_the_needed_supplies_to_learn_this_activity:Pr_,i_will_practice_or_play_my_new_activity_at_least_x_out_of_x_times_this_week:Rr_,improve_homework:Lr_,i_will_turn_in_my_homework_on_time:Mr_,i_will_turn_in_high_quality_homework:zr_,work_on_longterm_assignments_planned_and_making_progress:Dr_,i_will_set_up_a_study_work_plan_for_long_term_projects:Fr_,studying_for_tests_routines_and_effective_study_strategies:Or_,i_will_set_up_a_study_work_plan_for_tests:Gr_,make_notes_in_class_high_quality_organised:Br_,i_will_take_notes_digital_paper_in_class_and_organise_them_in_a_folder_notebook_for_each_of_my_core_key_classes:Vr_,i_will_research_note_taking_methods:Hr_,improve_grade_in_x_subject_by_x_amount:Wr_,i_will_review_material_from_class_an_additional_on_top_of_as_well_as_not_including_homelearning:Ur_,study_x_amount_of_time_on_x_subject_x_times_hours_a_week:Xr_,finish_work_early_and_check_against_instructions_rubric_then_edit:Yr_,improve_the_quality_grades_of_homelearning_assignments:Zr_,create_a_regular_study_homework_schedule:Jr_,i_will_create_a_schedule_for_my_week_detailing_study_days_times_and_how_long_i_will_study_by_x_date:Qr_,improve_email_google_drive_calendar_or_planner_organization:Kr_,i_will_check_my_inbox_unread_emails_at_least_x_times_a_week_and_reply_if_necessary:ec_,i_will_create_folders_labels_and_organise_emails_into_the_correct_ones:tc_,i_will_create_folders_for_each_subject_and_organsie_docs_into_the_correct_folders:_c_,create_reminders_or_calendar_events_for_important_events_deadlines_study_times:sc_,i_will_create_reminders_or_calendar_events_for_my_most_important_events_deadlines_or_study_sessions_immediately_or_as_soon_as_i_can:nc_,create_a_longterm_assignment_planner:oc_,i_will_evaluate_my_progress_and_adjust_how_long_i_will_study_by_x_date:ac_,improve_my_todo_list_habits:ic_,i_will_add_tasks_to_my_todo_list_immidietly_or_as_soon_as_i_can_and_review_it_3_times_a_week:rc_,i_will_create_a_schedule_for_longterm_assihnments_detailing_study_days_times_and_how_long_i_will_study_by_x_date:cc_,i_will_take_notes_digital_paper_in_class_and_organise_them_in_a_folder_notebook_for_all_my_classes:lc_,keep_devices_off_on_silent_or_put_away_in_class:dc_,keep_devices_off_on_silent_or_put_away:uc_,keep_devices_off_on_silent_or_put_away_during_study_time:mc_,i_will_create_a_routine_for_transitioning_study_time:hc_,set_a_schedule_on_my_phone_on_focus_or_do_not_disturb_during_class_times:gc_,set_a_schedule_on_my_phone_on_focus_or_do_not_disturb_during_planned_study_times:pc_,reduce_or_limit_time_spent_on_social_media:fc_,i_will_set_up_time_limits_on_my_apps_or_websites:yc_,i_will_set_a_timer_when_i_am_taking_a_break_on_social_media:wc_,increase_engagement_in_class:vc_,avoid_distracting_websites_other_tasks_in_class:bc_,i_will_pay_attention_to_the_instructions_in_class:$c_,i_will_actively_participate_in_class_more:kc_,i_will_participate_more_in_class_activities:xc_,i_will_ask_questions_in_class_related_to_the_topic_to_improve_my_understanding_learning:Ic_,i_will_volunteer_to_answer_questions_in_class_more:Cc_,avoid_distracting_websites:Sc_,i_will_set_up_time_limits_for_distracting_website_via_a_chrome_extension:Ac_,i_will_close_all_tabs_not_related_to_my_task:Ec_,getting_help_when_needed:Tc_,i_will_meet_with_my_teacher_outside_of_class_when_i_need_help:jc_,i_will_email_my_teacher_when_i_need_help:qc_,i_will_ask_questions_in_class_when_i_do_not_know_what_to_d:Nc_,understanding_my_accommodations:Pc_,i_will_know_and_understand_my_accommodations:Rc_,i_will_ask_for_my_accommodations_when_i_need_them_in_class:Lc_,i_will_tell_my_case_manager_when_i_no_longer_need_an_accommodations:Mc_,i_will_talk_to_my_case_manager_when_i_feel_i_need_additional_or_different_accommodations:zc_,procrastination:Dc_,planning_ahead:Fc_,i_will_spend_x_amount_of_time_x_times_a_week_on_longterm_projects:Oc_,i_will_plan_tasks_for_the_week_on_monday_or_the_friday_before:Gc_,i_will_add_task_to_my_planner_when_assigned_in_class:Bc_,task_initiation:Vc_,i_will_start_tasks_on_the_day_given_and_finish_if_time_allows:Hc_,i_will_finish_tasks_early_or_before_they_are_due:Wc_,my_thoughts_and_feelings_are_important:Uc_,today:Xc_,this_week:Yc_,this_month:Zc_,male:Jc_,female:Qc_,type_something_to_search_students:Kc_,assign_for_selected_students:el_,assistant_email:tl_,counselor_email:_l_,support_teacher_email:sl_,add_new_answer:nl_,edit_template:ol_,add_questions:al_,edit_email_template:il_,contact_mail:rl_,announcements:cl_,schedule_information:ll_,welcome_new_teacher_assistant:dl_,contact_request:ul_,welcome_new_teacher:ml_,welcome_new_student:hl_,welcome_new_assistant:gl_,welcome_new_parent:pl_,welcome_new_edu_teacher:fl_,forgot_password:yl_,welcome_new_counselor:wl_,user_first_name:vl_,user_last_name:bl_,password:$l_,message:kl_,domain:xl_,basic:Il_,premium:Cl_,enterprise:Sl_,are_you_sure_to_request_to_change_to_this_plan:Al_,images:El_,audios:Tl_,docs:jl_,videos:ql_,auto_save_after_every_1_min:Nl_,no_user_to_display:Pl_,on_a_scale_from_0_10_how_likely_are_you_to_recommend_us_to_a_friend_or_colleague:Rl_,not_likely_at_all:Ll_,extremely_likely:Ml_,uwcsea_sg_climate_survey_connections_with_adults_and_peers:zl_,uwcsea_sg_climate_survey_do_you_need_some_extra_help_or_support:Dl_,uwcsea_sg_climate_survey_my_health_and_wellbeing:Fl_,uwcsea_sg_climate_survey_open_ended_questions:Ol_,uwcsea_sg_climate_suvey_holistic_learning_experiences:Gl_,import_email_by_csv:Bl_,single_choice:Vl_,multiple_choice:Hl_,text_input:Wl_,emotional:Ul_,summarize:Xl_,rating:Yl_,learning_strategy:Zl_,drop_down:Jl_,happiness_intervetion:Ql_,sdq_standard:Kl_,diversity_equity_inclusion_and_justice:ed_,climate_survey:td_,intervention_safety:_d_,intervention_stress:sd_,safety_at_home:nd_,wellbeing:od_,depression_questions:ad_,level_1_learners_goal_conference:id_,level_1_learners_balanced_conference:rd_,level_1_learners_habits_and_attitudes_towards_learning_conference:cd_,level_2_learners_digital_citizenship:ld_,level_1_learners_digital_citizenship:dd_,level_2_learners_communication:ud_,level_1_learners_communication:md_,level_2_learners_collaboration:hd_,level_1_learners_collaboration:gd_,level_2_learners_self_directed_learning:pd_,level_2_learners_self_management_skills:fd_,level_1_learners_self_management_skills:yd_,level_2_learners_self_advocacy:wd_,level_1_learners_self_advocacy:vd_,level_2_learners_self_awareness:bd_,level_1_learners_self_awareness:$d_,level_2_learners_learning_and_study_skills:kd_,level_1_learners_learning_and_study_skills_session:xd_,level_2_learners_organization:Id_,level_1_learners_organization_session:Cd_,level_2_learners_goal_conference:Sd_,level_2_learners_habits_and_attitudes_towards_learning_conference:Ad_,level_2_learners_balanced_conference:Ed_,level_2_learners_goal_s_session:Td_,level_1_learners_goal_s_session:jd_,level_2_learners_study_strategies_session:qd_,level_2_learners_academic_session:Nd_,level_1_learners_academic_session:Pd_,level_2_learners_habits_and_attitudes_towards_learning_session:Rd_,level_1_learners_habits_and_attitudes_towards_learning_session:Ld_,level_2_learners_general_session:Md_,level_1_learners_general_sessio:zd_,social_and_emotional_learning:Dd_,end_of_class_reflection_questions:Fd_,impulse_control_self_monitoring:Od_,planning_problem_solving:Gd_,teacher_sense_of_self_efficacy_tses:Bd_,general_strategies_for_learning_gsl:Vd_,focusing_attention:Hd_,memory:Wd_,responsible_decision_making:Ud_,social_awareness:Xd_,relationship_skills:Yd_,habits_and_attitudes_towards_learning_hal:Zd_,end_of_conference_questions:Jd_,life_skills:Qd_,health_and_fitness:Kd_,executive_functions:eu_,study_skills:tu_,metacognitive_self_regulation:_u_,educational_satisfaction:su_,default_session_questions:nu_,test_question_category_1:ou_,are_you_a_boarder_or_day_student:au_,before_i_make_a_decision_i_consider_the_consequences:iu_,do_you_have_any_of_the_following_learning_difference_eg_dyslexia_adhd_long_term_illness_health_condition_physical_visual_hearing_impairment_social_behavioural_difference_eg_asd_tourettes:ru_,how_would_you_describe_your_religious_beliefs:cu_,how_would_you_describe_your_sexual_orientation:lu_,i_actively_pursue_activities_that_align_with_my_passions_and_values:du_,i_always_have_someone_to_eat_lunch_with:uu_,i_am_alone_more_often_than_i_would_like:mu_,i_am_happy_with_the_marks_i_get_at_school:hu_,academics_homework_studying_and_grades:gu_,growth_improvement_in_study_habits_grades_sports_clubs_or_personal_projects:pu_,productivity_accomplishing_important_tasks_and_limiting_distractions:fu_,relationships_family_friends_and_teachers:yu_,anything_else_you_want_to_tell_your_teacher:wu_,did_you_bring_what_you_needed_for_this_class:vu_,did_you_complete_all_the_classwork_for_today_s_class:bu_,did_you_have_your_materials_ready_at_the_start_of_class_time:$u_,do_you_have_any_missing_assignments_for_this_class:ku_,assign_bulk:xu_,assign_bulk_student:Iu_,instruction:Cu_,name_is_required:Su_,instruction_is_required:Au_,add_item:Eu_,conference_rubric_items_is_empty:Tu_,blank_row_or_column:ju_,question_list:qu_,question_is_required:Nu_,select_skill:Pu_,type_and_press_enter_to_add_new_row:Ru_,do_you_want_to_remove_this_row:Lu_,do_you_want_to_remove_this_custom_alert:Mu_,remove_custom_alert_successfully:zu_,do_you_want_to_remove_this_skill:Du_,remove_skill_successfully:Fu_,do_you_want_to_remove_this_subject:Ou_,remove_subject_successfully:Gu_,do_you_want_to_remove_this_learning_support_category:Bu_,remove_learning_support_category_successfully:Vu_,do_you_want_to_remove_this_learning_strategy:Hu_,remove_learning_strategy_successfully:Wu_,cant_delete_question:Uu_,do_you_want_to_remove_this_goal_example:Xu_,remove_question_successfully:Yu_,do_you_want_to_remove_this_badge:Zu_,remove_badge_successfully:Ju_,do_you_want_to_remove_this_blank_day:Qu_,remove_blank_day_successfully:Ku_,do_you_want_to_remove_this_band_score:em_,remove_band_score_successfully:tm_,is_used:_m_,time_oneRoster_sync_hh:sm_,small_text:nm_,medium_text:om_,large_text:am_,edit_parent_1_information:im_,edit_parent_2_information:rm_,last_1_1:cm_,how_would_you_rate_your_chances_of_achieving_this_goal:lm_,add_name:dm_,activity_list:um_,select_academic_year:mm_,a_number_of_staff:hm_,staffs:gm_,how_are_you_today:pm_,what_was_the_purpose_or_focus_of_today_s_class:fm_,header_1:ym_,header_2:wm_,header_3:vm_,header_4:bm_,header_5:$m_,header_6:km_,staying_focused:xm_,text_input_question:Im_,vs_last_year:Cm_,leave_page:Sm_,how_much_did_reflecting_during_this_session_help_your_learning_improve:Am_,last_1_1_conversation:Em_,student_has_started_this_conference_are_you_sure_to_delete:Tm_,student_has_started_this_check_in_are_you_sure_to_delete:jm_,student_has_not_started_this_one_to_one_are_you_sure_to_delete:qm_,"you_can_start_a_1-1_conversation_after_the_results_of_the_student's_check-in._If_the_check-in_is_24_hours_older,_you_can_request_the_new_check-in_or_start_the_conversation_by_viewing_the_results":"您可以在学生签到结果出来后开始一对一对话。如果签到时间已超过 24 小时,您可以请求新的签到或通过查看结果开始对话","select_a_student_and_start_a_1-1_conversation_from_a_check-in_or_ask_the_student_to_check-in_before":"选择一名学生,从签到开始一对一对话,或要求学生在之前签到",my_accommodations:Nm_,accommodation_set:Pm_,add_new_accommodation:Rm_,print_my_accommodations:Lm_,my_learning_progress:Mm_,"here_your_teacher_can_edit_or_add_your_accommodation_details._please_note_that_you_can_view_the_information,_but_for_any_edits_or_additions,_kindly_contact_your_teacher_directly.":"您的老师可以在此编辑或添加有关您的便利设施的详细信息。请注意,您可以查看信息,但如果有任何编辑或添加,请直接联系您的老师。","this_is_a_brand_new_beta_version_for_your_personal_learning_journey._you_can_think_about_what_you_want_like_to_do_and_how_you_like_to_learn._we_advise_you_to_do_it_gradually_per_section_and_visit_it_once_a_month.":"这是您学习之旅的全新测试版。您可以思考自己想做什么以及如何学习。我们建议您逐步完成每个部分并每月访问一次。",responses_comparisons:zm_,dropdown_and_verbal_questions_responses:Dm_,mario_tools:Fm_,customize:Om_,techical_settings:Gm_,data_import_export:Bm_,inactive_students:Vm_,weekly_quests:Hm_,admin_general_tips:Wm_,school_usage:Um_,total_conversations_time:Xm_,total_class_reflections:Ym_,grade_usage:Zm_,total_conversations:Jm_,impersonate:Qm_,hi:Km_,transition_plan:eh_,updated_on:th_,print_my_learning_plan:_h_,print_student_learning_plan:sh_,print_my_transition_plan:nh_,about_me:oh_,name_your_interest:ah_,add_more_detail_to_your_interest:ih_,create_interest:rh_,"your_interest_has_been_successfully_created_!":"您的兴趣已成功创建!",view_plp:ch_,my_current_plp:lh_,my_learning_strategies:dh_,add_new_interest:uh_,add_new_challenge:mh_,add_new_strength:hh_,add_new_idea:gh_,add_new_people:ph_,add_new_tool:fh_,add_new_strategy:yh_,add_new_dream:wh_,my_support_network:vh_,add_person:bh_,closer_family:$h_,family:kh_,mentors:xh_,tutors:Ih_,my_timeline:Ch_,add_milestone:Sh_,add_test:Ah_,"you_haven't_added_any academic_milestones_yet":"您尚未添加任何学术里程碑","you_haven't_added_any_tests_yet":"您尚未添加任何测试",colleges:Eh_,"you_haven't_added_any_colleges_yet":"您尚未添加任何大学",add_colleges:Th_,my_transition_plan:jh_,academic_milestones:qh_,tests:Nh_,academic_and_career_interests:Ph_,you_havent_added_any_interests_yet:Rh_,add_a_plan:Lh_,extra_curricular_activities:Mh_,"you_haven't_added_any_activities_yet":"您尚未添加任何活动",add_new_activity:zh_,courses:Dh_,"you_haven't_added_any_courses_yet":"您尚未添加任何课程",add_new_courses:Fh_,"standardized_tests_/_exams":"标准化测试/考试","potential_career_training_courese_/_colleges":"潜在的职业培训课程/学院","you_haven't_added_any_courses_/_colleges_yet":"您尚未添加任何课程/学院","add_new_courese_/_college":"添加新课程/学院",add_new_college:Oh_,"you_haven't_added_any_references_yet":"您尚未添加任何参考资料",references:Gh_,resources_for_my_future:Bh_,"you_haven't_added_any_resources_yet":"您尚未添加任何资源",add_new_resources:Vh_,my_essays:Hh_,"you_haven't_added_any_essays_yet":"您尚未添加任何文章",add_essay:Wh_,learning_portfolios:Uh_,"you_haven't_added_any_learning_portfolios_yet":"您尚未添加任何学习档案",add_portfolio:Xh_,financial_planning:Yh_,"you_haven't_added_any_plans_yet":"您尚未添加任何计划",add_new_plan:Zh_,"students_shaded_red_have_an_incomplete_check-_in":"红色标记的学生表示签到不完整",rows_per_page:Jh_,anonymous_link:Qh_,select_ratings_of_questions:Kh_,select_responses_distribution:eg_,you_can_only_select_one_question_per_time:tg_,number_of_answers:_g_,my_interests:sg_,i_like_to_know_more_about:ng_,my_strengths:og_,my_challenges:ag_,i_can_help_myself_by:ig_,my_teacher_can_help_me_by:rg_,other_people_who_can_help_me_are:cg_,tools_things_that_can_help_me_are:lg_,my_goals:dg_,my_goals_and_targets:ug_,my_hopes_and_dreams:mg_,missing_grade:hg_,grade_must_be_equal_or_greater_than_grade_level_1:gg_,you_havent_added_any_challenges_yet:pg_,you_havent_added_any_strengths_yet:fg_,you_havent_added_any_idea_yet:yg_,you_havent_added_any_people_yet:wg_,you_havent_added_any_tools_yet:vg_,you_havent_added_any_strategies_yet:bg_,you_havent_added_any_goals_and_targets_yet:$g_,you_havent_added_any_hopes_and_dreams_yet:kg_,ways_I_learn_best:xg_,your:Ig_,interest:Cg_,strength:Sg_,challenge:Ag_,idea:Eg_,people:Tg_,tool:jg_,dream:qg_,person:Ng_,more_detail_to:Pg_,my_support:Rg_,network:Lg_,my_current_PLP:Mg_,view_PLP:zg_,current_accommodation:Dg_,goal_date:Fg_,you_havent_added_any_item_yet:Og_,passing_date:Gg_,college:Bg_,visit:Vg_,application:Hg_,a_plan:Wg_,interests:Ug_,activities:Xg_,test_exam:Yg_,course:Zg_,resources:Jg_,essay:Qg_,essays:Kg_,plans:ep_,total_of:tp_,diagnostic_survey:_p_,selected_questions:sp_,available_questions:np_,are_you_sure_you_want_to_inactive_students:op_,data_for_the_last_month:ap_,number_of_questions:ip_,no_item_to_display:rp_,template:cp_,assessment:lp_,assignment_result:dp_,certificate:up_,learning_support_category:mp_,feedback:hp_,suggestion:gp_,tutorial_screen:pp_,reflection_forms:fp_,select_question_to_add:yp_,"this_survey_was_sent._all_survey_links_that_were_sent_will_be_invalid._are_you_sure_to_delete_it":"此调查已发送。所有已发送的调查链接均将无效。您确定要删除它吗",student_grade_not_found:wp_,name_your_person:vp_,type_your_person:bp_,create_person:$p_,january:kp_,february:xp_,march:Ip_,april:Cp_,may:Sp_,june:Ap_,july:Ep_,august:Tp_,september:jp_,octorber:qp_,november:Np_,december:Pp_,private:"私人",complete:Rp_,select_user:Lp_,ended_in_less_than_one_hour:Mp_,my_sandbox:zp_,number_students_are_unmotivated:Dp_,number_students_are_comfort:Fp_,number_students_are_stretch:Op_,number_students_are_strain:Gp_,number_students_are_overwhelmed:Bp_,check_in_with_teacher_name:Vp_,all_of_the_students_marked_as_feeling_safe:Hp_,soft:Wp_,ascending:Up_,descending:Xp_,empty:Yp_,you_have_completed_all_of_the_weekly_quests:Zp_,good_job:Jp_,if_you_have_responded_to_all_question_press_the_done_button_to_complete_check_in:Qp_,check_in_finished:Kp_,are_you_ready_to_submit:ef_,you_filled_out_check_in_in_the_check_in_section:tf_,continue:"继续",good_job_you_filled_out_support_network_in_the_my_support_network_section:_f_,good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section:sf_,"total_1-1_conversations":"总计 1-1 对话",default_question_one_to_one_list:nf_,is_default_question:of_,is_class_reflection_question:af_,yes_no_question:if_,number_of_stars:rf_,emotion_icon:cf_,add_new_sub_question:lf_,sub_questions:df_,are_you_sure_to_delete:uf_,edit_1_1:mf_,wellness:hf_,environment_safety:gf_,sleeping:pf_,eating:ff_,learning:yf_,getting_help:wf_,exercising:vf_,being_calm:bf_,home:$f_,school:kf_,online:xf_,learning_in_class:If_,home_learning:Cf_,destinations:Sf_,select_csv:Af_,import_class_reflections:Ef_,type_question:Tf_,edit_destination:jf_,create_destination:qf_,total_of_destination:Nf_,general_info:Pf_,file_extension:Rf_,todays:Lf_,add_to_do:Mf_,edit_to_do:zf_,description_optional:Df_,do_you_want_delete_this_goal:Ff_,my_to_do:Of_,set_your_to_do:Gf_,your_daily_motivation:Bf_,my_1_1:Vf_,student_learning_plans:Hf_,sign_out:Wf_,topic:Uf_,comment:Xf_,willingness_to_do_your_best_learning:Yf_,not_done_yet:Zf_,not_chosen_yet:Jf_,loading:Qf_,i_organize_myself_for_success_by:Kf_,i_know_i_am_doing_my_best_because:ey_,i_know_i_feel_ready_to_learn_when:ty_,go_to_plp:_y_,go_to_personal_learning_plan:sy_,create_qr_code:ny_,warning_email:oy_,"1_1_sessions":"1-1 课程",filter_by_students:ay_,search_for_students:iy_,sort_by:ry_,recently:cy_,most_positive:ly_,least_positive:dy_,back_to:uy_,this_session_can_be_edit_by_user_change_session:my_,type_your_answer_here:hy_,take_notes_and_get_suggestions_from_our_MARIO_support_bot:gy_,scaffolding_is_on:py_,scaffolding_is_off:fy_,see_all_suggestions:yy_,scaffolding:wy_,session_finished:vy_,do_you_want_to_start_now_or_book_later:by_,new_1_1s:$y_,book_1_1s:ky_,select_session_type:xy_,new_conferences:Iy_,my_personal_interests:Cy_,i_find_it_difficult_when:Sy_,take_the_quiz:Ay_,collapse:Ey_,expand:Ty_,created_on:jy_,updated:qy_,notifications:Ny_,mark_all_as_read:Py_,filter:Ry_,read:Ly_,unread:My_,is_read:zy_,go_to_session:Dy_,go:Fy_,meetings:Oy_,student_profile:Gy_,booked_times:By_,session_are_booked_as_10_minute_slots:Vy_,conference_finished:Hy_,back_to_conferences:Wy_,unfinished:Uy_,back:Xy_,select_your_status:Yy_,my_safety:Zy_,working_on_it:Jy_,not_started:Qy_,total_of_rubrics:Ky_,select_question_category:ew_,default_question_conference_list:tw_,create_rubric:_w_,type_something_to_search_rubric:sw_,prev:nw_,select_the_grade:ow_,class_qr_codes:aw_,title_is_required:iw_,the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in:rw_,this_conference_will_be_deleted_from_all_databases_are_you_sure_you_want_to_continue:cw_,check_in_and_1_1s:lw_,my_check_in_and_1_1s:dw_,book_for_later:uw_,check_ins_home:mw_,start_your_check_in_and_you_can_also_request_a_conversation_with_your_teacher_after:hw_,set_your_goals:gw_,show_pending_conversations:pw_,check_in_sessions:fw_,this_initial_step_activates_your_1_on_1_conversation_setting_the_stage_for_personal_dialogue:yw_,check_in_session:ww_,"1_1_conversation_complete":"1-1 对话完成",check_in_complete:vw_,log_1_1_conversation:bw_,log_conversation_data:$w_,add_1_1_conversation_notes:kw_,save_data:xw_,please_select_date_1_1_conversation:Iw_,please_write_something_to_this_1_1_conversation:Cw_,data_1_1_conversation_cannot_exceed_300_characters:Sw_,check_in_session_title:Aw_,i_have_nothing_to_add:Ew_,check_in_session_finished:Tw_,is_question_for_grade_1_2:jw_,"1_1_session":"一对一课程",type_your_answer_here_e_g_i_met_my_friend:qw_,type_your_answer_here_e_g_my_best_friend_didnt_come_to_school:Nw_,save_1_1_log_note:Pw_,no_need_for_it:Rw_,conversation_saved:Lw_,yes_view_student_goals:Mw_,what_did_you_and_the_student_choose_as_an_action_step_would_you_like_to_add_it_as_a_goal:zw_,here_you_can_find_all_the_notes_and_1_1_conversations_logs_the_student_has:Dw_,back_to_notes_and_logs:Fw_,students_review:Ow_,other_note:Gw_,students_perceived_usefulness:Bw_,student_feedback:Vw_,note_category:Hw_,select_note_category:Ww_,save_note:Uw_,type_the_main_focus_of_this_session:Xw_,please_add_title_note:Yw_,notes_and_logs:Zw_,other_notes_from_the_conversation:Jw_,share_your_thoughts:Qw_,make_this_a_private_note:Kw_,environment_specific_safety:ev_,students_reported_feelings:tv_,well_being_indicators:_v_,readiness_trends:sv_,open_field_questions:nv_,number_of_students_with_at_least_one_very_low_metric:ov_,this_flags_if_the_student_is_not_ready_to_learn_or_has_at_least_one_success_or_readiness_to_learn_metrics_under_40:av_,of_students_have_concerned_metrics:iv_,have_metrics_40:rv_,all_students_have_good_metrics:cv_,students_with_at_least_one_concerned_metric:lv_,concerned_metrics:dv_,concern_metrics:uv_,conversation_goal:mv_,target_monthly_conversation_goal_for_teachers:hv_,target_monthly_conversation_goal_for_counselors:gv_,conversations:pv_,are_not_ready_to_learn:fv_,check_in_date:yv_,educator:wv_,location:vv_,edit_my_profile:bv_,save_new_password:$v_,conversation_duration:kv_,please_set_time_1_1_conversation:xv_,negative_emotions:Iv_,please_select_add_teacher_for_selected_student_first:Cv_,choose_profile_picture:Sv_,choose_a_profile_picture_from_our_gallery_or_upload_your_own:Av_,select_a_picture:Ev_,delete_checkin:Tv_,delete_conference:jv_,are_you_sure_to_delete_this_check_in:qv_,are_you_sure_to_delete_this_conference:Nv_,yes_im_sure:Pv_,teachers_list:Rv_,this_months_average_vs_last_month:Lv_},zv_="htqausuofrnali3nh9ivmlpq6v415o0tv2qikpg39bqf4pnk",Dv_="6LfNtLUaAAAAAL24lbBV11jS-gBtt1mhtxb4NXs0",qt="ACCESS_TOKEN",Fv_=[{label:"10",value:10},{label:"20",value:20},{label:"30",value:30}],ri={label:"10",value:10},ci={searchString:"",currentPage:1,pageSize:ri.value,sortBy:"",sortOrder:"ASC",name:""},qs={DANGER:"#dc3545",WARNING:"#ffc107",SUCCESS:"#28a745",INFO:"#007bff"},Un="yyyy-MM-dd",li="dd-MM-yyyy",Ov_="dd-MM-yyyy HH:mm",di="0001-01-01T00:00:00",Gv_="Alhanko&Johnson_BASE23_single_1_Devs__22_November_2020_[v2]_MTYwNjAwMzIwMDAwMA==d452f38afc893671cad92795e95d52a1",ht=(()=>{const e=window.location.href;return`${e.split("//")[0]}//${e.split("//")[1].split("/")[0]}`})(),ls=!!(window.location.hostname==="localhost"||window.location.hostname.includes("stage")||window.location.hostname.includes("gmail")||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),Rn=[{label:"Single choice",value:"SingleChoice"},{label:"Multiple choice",value:"MultipleChoice"},{label:"Text input",value:"TextInput"},{label:"Slider",value:"Slider"},{label:"Progress bar",value:"ProgressBar"},{label:"Star rating",value:"StarRating"},{label:"Text input with sub questions",value:"TextInputWithSuggestions"},{label:"Emotional",value:"Emotional"},{label:"Summarize",value:"Summarize"},{label:"Rating",value:"Rating"},{label:"Learning strategy",value:"LearningStrategy"}],Bv_={SINGLE_CHOICE:"SingleChoice",MULTIPLE_CHOICE:"MultipleChoice",TEXT_INPUT:"TextInput",SLIDER:"Slider",PROGRESS_BAR:"ProgressBar",STAR_RATING:"StarRating",TEXT_INPUT_WITH_SUGGESTIONS:"TextInputWithSuggestions",EMOTIONAL:"Emotional",SUMMARIZE:"Summarize",RATING:"Rating",LEARNING_STRATEGY:"LearningStrategy"},$o=[{label:2,value:2},{label:3,value:3},{label:4,value:4},{label:5,value:5}],Xn=150,Vv_=["Admin","Assistant","Teacher","General ED teacher","Counselor","Student","Parent"],Hv_="chat-channel",Wv_="NOTIFICATION_CHANNEL",Uv_="https://tleliteracy.com/wp-content/uploads/2017/02/default-avatar.png",Xv_=["Unwell","Mad","Stressed","Easygoing","Proud","Inspired"],Yv_={reflect:"#c08497",goal:"#00979b"},i_={ADMIN:"Admin",TEACHER:"Teacher",ASSISTANT:"Assistant",EDUTEACHER:"General ED teacher",STUDENT:"Student",PARENT:"Parent"},ui="NOTIFICATION_ALERT_KEY",ko="https://mariolearningstudio.com",Hs="en-US",Zv_=[{code:"us",fullName:"English (United States)",shortName:"English, US",nativeName:"English",name:"United States",image:"/images/usa.png"}],mi=["en-US","en-GB","ar","es","zh"],k_="IS_USER_SESSION_BROWSER",Jv_=12,Qv_=20,Kv_={"en-US":{translation:RG},"en-GB":{translation:zxe},ar:{translation:bst},es:{translation:_Mt},zh:{translation:Mv_}};Wn.use(yt.initReactI18next).init({resources:Kv_,supportedLngs:mi,lng:Hs,fallbackLng:Hs,keySeparator:!1,interpolation:{escapeValue:!1}});const eb_="_icon_5reqc_61",tb_="_contact_5reqc_147",_b_="_remember_5reqc_321",sb_="_input_5reqc_460",nb_="_login_5reqc_257",ob_="_div_5reqc_686",ab_="_logout_5reqc_751",ib_="_popover__sort__item_5reqc_841",rb_="_popover__search__icon_5reqc_852",cb_="_popover__search__input_5reqc_858",lb_="_popover__options_5reqc_861",db_="_title_5reqc_160",ub_="_active_5reqc_915",mb_="_show_5reqc_918",hb_="_behind_5reqc_921",L={"btn-login-with-sso":"_btn-login-with-sso_5reqc_12","button-user-name":"_button-user-name_5reqc_43",icon:eb_,"btn-login-google":"_btn-login-google_5reqc_65","notification-count":"_notification-count_5reqc_104","text-introduction":"_text-introduction_5reqc_118","btn-trans-border":"_btn-trans-border_5reqc_129",contact:tb_,"learn-more":"_learn-more_5reqc_148","title-quote":"_title-quote_5reqc_160","descriptions-quote":"_descriptions-quote_5reqc_168","box-login":"_box-login_5reqc_177","block-verification":"_block-verification_5reqc_181","block-login":"_block-login_5reqc_187","title-login":"_title-login_5reqc_192","title-forgot-password":"_title-forgot-password_5reqc_206","btn-close":"_btn-close_5reqc_210","btn-login":"_btn-login_5reqc_12","school-icon":"_school-icon_5reqc_242","school-name":"_school-name_5reqc_246","login-description":"_login-description_5reqc_257","return-to-login":"_return-to-login_5reqc_270","recover-account":"_recover-account_5reqc_279","link-to-login":"_link-to-login_5reqc_285","privacy-policy":"_privacy-policy_5reqc_302",remember:_b_,"term-and-conditions":"_term-and-conditions_5reqc_325","descriptions-forgot-pass":"_descriptions-forgot-pass_5reqc_337","content-icon":"_content-icon_5reqc_344","descriptions-icon":"_descriptions-icon_5reqc_351","title-icon":"_title-icon_5reqc_360","digital-privacy-icon":"_digital-privacy-icon_5reqc_379","nav-home":"_nav-home_5reqc_385","box-introduction":"_box-introduction_5reqc_399","checkbox-keep-login":"_checkbox-keep-login_5reqc_435","label-keep-login":"_label-keep-login_5reqc_439","option-text":"_option-text_5reqc_448","form-user-name":"_form-user-name_5reqc_457",input:sb_,"checkbox-remember":"_checkbox-remember_5reqc_463","btn-rounder":"_btn-rounder_5reqc_489","btn-active":"_btn-active_5reqc_492","block-reset-password":"_block-reset-password_5reqc_506","block-forgot-pass":"_block-forgot-pass_5reqc_510","page-not-login":"_page-not-login_5reqc_520","content-quote":"_content-quote_5reqc_520","home-page":"_home-page_5reqc_528","red-background":"_red-background_5reqc_534",login:nb_,"version-prod":"_version-prod_5reqc_545","login-content":"_login-content_5reqc_560","logo-home":"_logo-home_5reqc_567","img-box":"_img-box_5reqc_574","img-login":"_img-login_5reqc_578","img-login-rectangle":"_img-login-rectangle_5reqc_584","c-main":"_c-main_5reqc_589","container-fluid":"_container-fluid_5reqc_592","input-file-label":"_input-file-label_5reqc_596","delete-avatar-button":"_delete-avatar-button_5reqc_614","header-logo":"_header-logo_5reqc_618","box-sidebar":"_box-sidebar_5reqc_623","sidebar-logo":"_sidebar-logo_5reqc_627","sidebar-nav-links":"_sidebar-nav-links_5reqc_632","c-active":"_c-active_5reqc_639","sidebar-nav-links-hover":"_sidebar-nav-links-hover_5reqc_644","box-sidebar-header":"_box-sidebar-header_5reqc_648","box-logout":"_box-logout_5reqc_649","sidebar-btn-minimized":"_sidebar-btn-minimized_5reqc_653","sidebar-logout":"_sidebar-logout_5reqc_669","nav-mobile":"_nav-mobile_5reqc_676","filter-media-file":"_filter-media-file_5reqc_680",div:ob_,"dropdown-menu":"_dropdown-menu_5reqc_690","header-avatar":"_header-avatar_5reqc_690","dropdown-menu-flag":"_dropdown-menu-flag_5reqc_706","dropdown-content":"_dropdown-content_5reqc_711","dropdown-change":"_dropdown-change_5reqc_724","item-address":"_item-address_5reqc_730","item-logout":"_item-logout_5reqc_735","title-address":"_title-address_5reqc_738","img-avatar":"_img-avatar_5reqc_741","item-contact":"_item-contact_5reqc_748",logout:ab_,"content-text":"_content-text_5reqc_755","dropdown-content-language":"_dropdown-content-language_5reqc_771","dropdown-item-language":"_dropdown-item-language_5reqc_787","dropdown-item-language-active":"_dropdown-item-language-active_5reqc_797","hide-in-mobile":"_hide-in-mobile_5reqc_826",popover__sort__item:ib_,"popover__sort__item--active":"_popover__sort__item--active_5reqc_845",popover__search__icon:rb_,popover__search__input:cb_,popover__options:lb_,"item-select-role":"_item-select-role_5reqc_870","item-role-active":"_item-role-active_5reqc_885","model-switch-roles":"_model-switch-roles_5reqc_890",title:db_,"bg-animate":"_bg-animate_5reqc_900",active:ub_,show:mb_,"fade-in":"_fade-in_5reqc_1",behind:hb_,"hamburger-menu":"_hamburger-menu_5reqc_944","box-content-home-page":"_box-content-home-page_5reqc_964","collapse-box":"_collapse-box_5reqc_1011","hide-in-desktop":"_hide-in-desktop_5reqc_1044","control-input":"_control-input_5reqc_1048","custom-control":"_custom-control_5reqc_1048","font-large":"_font-large_5reqc_1052","custom-title-font-size":"_custom-title-font-size_5reqc_1052","modal-title":"_modal-title_5reqc_1055","custom-font-size":"_custom-font-size_5reqc_1058","font-small":"_font-small_5reqc_1062","content-wrap":"_content-wrap_5reqc_1072"},gb_={fontSize:"0.85rem"},kt=({text:e})=>o.jsx("p",{className:"text-danger",style:gb_,children:e}),pb_={height:"40px",backgroundColor:"#f7f9fc",borderRadius:"4px",marginBottom:"5px",position:"relative"},fb_={backgroundColor:"#ffffff",paddingRight:"50px"},yb_={fontSize:"20px",position:"absolute",right:"10px",color:"#316CD9"},Ln=({isShowPassword:e,togglePasswordVisible:t,onChange:_})=>o.jsxs("div",{className:"d-flex align-items-center w-100",style:pb_,children:[o.jsx(S.Input,{className:"border password-input",style:fb_,type:e?"text":"password",name:"password",onChange:_,placeholder:"Password",required:!0}),o.jsx("i",{className:`far ${e?"fa-eye-slash":"fa-eye"} mx-2 cursor-pointer`,style:yb_,onClick:()=>t(),title:e?"Hide":"Show"})]}),O_=()=>{try{return sessionStorage.getItem(k_)?sessionStorage.getItem(qt):localStorage.getItem(qt)}catch{return null}},me=Y.createAction("common/setLoading"),Xt=Y.createAction("common/setModal"),nn=Y.createAction("common/setUser"),hi=Y.createAction("common/setInforUserGoogle"),wb_=Y.createAction("common/setSidebar"),he=Y.createAction("common/setAlert"),Ye=Y.createAction("common/reset"),gi=Y.createAction("common/showMenuBar"),pi=Y.createAction("common/showFontSize"),fi=Y.createAction("common/setEnableIEP"),yi=Y.createAction("common/setEnableSurvey"),wi=Y.createAction("common/setConversationOneToOne"),vi=Y.createAction("common/setLanguage"),bi=Y.createAction("common/setCurrentStudentId"),$i=Y.createAction("common/setCurrentStudentUserId"),ki=Y.createAction("common/setCurrentStudentName"),xi=Y.createAction("common/setTurnOffPassWhenChangeMode"),Ii=Y.createAction("badges/setUnreadNotification"),vb_=e=>Object.keys(e).filter(t=>e[t]||e[t]===0||e[t]===!1).map(t=>Array.isArray(e[t])?e[t].map(_=>`${encodeURIComponent(t)}=${encodeURIComponent(_)}`).join("&"):`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&"),xe=oi.create({baseURL:ht,timeout:0,headers:{"Content-Type":"application/json"},paramsSerializer:e=>vb_(e)}),Yt=oi.create({baseURL:ht,timeout:6e4,headers:{"Content-Type":"multipart/form-data"}});[xe,Yt].forEach(e=>e.interceptors.request.use(t=>{const _=O_();return _&&(t.headers.Authorization=`Bearer ${_}`),t},t=>Promise.reject(t)));[xe,Yt].forEach(e=>e.interceptors.response.use(t=>t,t=>{var _,n;return t.response.status===401&&(Object.keys(localStorage).forEach(s=>{s.includes("learning-plan")||delete localStorage[s]}),localStorage.setItem("USER_EMAIL",""),window.location.href="/login"),t.response.status==403&&!((n=(_=t.response.config)==null?void 0:_.url)!=null&&n.includes("cookieyes"))&&(localStorage.removeItem(qt),sessionStorage.removeItem(qt),sessionStorage.removeItem(k_),localStorage.removeItem("USER_EMAIL"),window.location.href="/login"),Promise.reject(t)}));const f_=`${ht}/api/account`,bb_=`${ht}/api/user`,Ci=e=>xe.post(`${f_}/login`,e),$b_=e=>xe.post(`${f_}/checktoken`,{token:e}),kb_=()=>xe.get(`${f_}/info`),xb_=e=>xe.post(`${f_}/forgotpassword`,e),Ib_=e=>xe.post(`${f_}/checkResetToken`,{token:e}),Cb_=e=>xe.post(`${f_}/resetpassword`,e),Sb_=(e,t)=>xe.post(`${bb_}/check-user`,t,{params:{type:e}}),Ab_=()=>xe.get(`${f_}/send-google`),Eb_=e=>xe.post(`${ht}/api/User/register-user`,e),Tb_=e=>xe.post(`${f_}/account-sso-log`,e);var Yn=(e=>(e[e.Google=0]="Google",e[e.ClassLink=1]="ClassLink",e[e.MicrosoftSSO=2]="MicrosoftSSO",e))(Yn||{});const jb_=`${ht}/api/school`,qb_=()=>xe.get(`${jb_}/settings`),Nb_={auth:{clientId:ls?"afed1089-7de6-406a-827a-bab9472cb245":"3845e9f8-aead-4535-b4bb-d363a1d262bd",authority:"https://login.microsoftonline.com/common",redirectUri:"https://es-sso.marioforme.com/microsoft-login.html"},cache:{cacheLocation:"sessionStorage",storeAuthStateInCookie:!1},system:{loggerOptions:{loggerCallback:(e,t,_)=>{if(!_)switch(e){case ss.LogLevel.Error:console.error(t);return;case ss.LogLevel.Info:console.info(t);return;case ss.LogLevel.Verbose:console.debug(t);return;case ss.LogLevel.Warning:console.warn(t);return;default:return}}}}},Pb_=e=>{var t;return((t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))==null?void 0:t.pop())||""},Rb_={email:"",password:"",captcha:"",rememberMe:!1,isSessionUserBrowser:!!sessionStorage.getItem(k_)},Lb_="/home",Mb_="/home",zb_="/admin/home",Db_="/parent",Fb_="/admin/schools",Ob_="/my-student?isReadOnly=true",Gb_="Log in",Si=()=>{const e=ke.useDispatch(),t=vt.useNavigate(),[_,n]=C.useState(!1),[s,r]=C.useState(""),[c,h]=C.useState(""),[l,g]=C.useState(),[p,w]=C.useState({schoolName:"",schoolLogo:"",schoolId:0}),[v,A]=C.useState(),I=C.useCallback(()=>{n(!_)},[_]),[E,$]=C.useState(!1),[k,T]=C.useState("");C.useEffect(()=>{document.title=Gb_;const B=Pb_("auth-token");if(B){localStorage.setItem(qt,B);const K=window.location.hostname;document.cookie=`auth-token=;domain=${K.includes("localhost")?K:".marioforme.com"}; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`,document.cookie="auth-token=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/",document.cookie="redirect-uri=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}O_()&&t("/"),M(),G()},[]);const j=window.location.host.includes("-district"),R=C.useCallback(async B=>{var te,K,ae,Ie;e(me(!0));try{const ne=(B==null?void 0:B.isSessionUserBrowser)??!1,we=await Ci({...B,email:(te=B==null?void 0:B.email)==null?void 0:te.trim(),password:(K=B==null?void 0:B.password)==null?void 0:K.trim()}),{token:Ze,id:We,firstName:wt,lastName:De,roles:Me,email:xt,profileImageFileName:ye}=we.data;ne?(sessionStorage.setItem(qt,Ze),sessionStorage.setItem(k_,ne)):(sessionStorage.removeItem(k_),localStorage.setItem(qt,Ze)),localStorage.removeItem(ui),e(nn({id:We,firstName:wt,lastName:De,roles:Me,email:xt,profileImageFileName:ye})),!localStorage.getItem("ROLES")&&Me.includes("Admin")&&localStorage.setItem("ROLES","Admin"),j?t(Fb_):Me.includes("Admin")?t(zb_):Me.includes("Teacher")||Me.includes("Assistant")||Me.includes("Counselor")||Me.includes("SecondaryTeacher")?t(Lb_):Me.includes("Student")?t(Mb_):Me.includes("Parent")?t(Db_):Me.includes("EduTeacher")&&t(Ob_)}catch(ne){e(he({type:"danger",message:((Ie=(ae=ne.response)==null?void 0:ae.data)==null?void 0:Ie.title)||ne.message||"Login failed"})),localStorage.removeItem(qt),sessionStorage.removeItem(qt)}e(me(!1))},[]),M=async()=>{var B,te;try{const K=await Ab_();r(K.data.googleClientId),h(K.data.googleCaptchaId),T(K.data.extensionEmail)}catch(K){e(he({type:"danger",message:((te=(B=K.response)==null?void 0:B.data)==null?void 0:te.title)||K.message||"Login failed"}))}},P=C.useCallback(async(B,te,K,ae)=>{var Ie,ne;e(me(!0));try{if((await Sb_(B,te)).data){const We=await ae(),wt={email:te.email,captcha:We,isLoginGoogle:!0,rememberMe:!1,password:"default",accessToken:K};await R(wt)}else{const We={firstName:te.firstName,lastName:te.lastName,imageUrl:te.imageUrl,fullName:te.fullName,email:te.email,accessToken:te.accessToken};if((await Eb_(We)).data){const De=await ae(),Me={email:te.email,captcha:De,isLoginGoogle:!0,rememberMe:!1,password:"default",accessToken:te.accessToken};await R(Me)}}}catch(we){e(he({type:"danger",message:((ne=(Ie=we.response)==null?void 0:Ie.data)==null?void 0:ne.title)||we.message||"Login failed"}))}e(me(!1))},[]),D=async B=>{v&&v.handleRedirectPromise().then(async te=>{if(p!=null&&p.schoolId)if(te){let K=te.account;await O(K,B)}else{const K=v.getAllAccounts();if(K.length===0){const ae=ls?"https://es-stage.marioforme.com":"https://es-sso.marioforme.com";window.location.href=(window.location.hostname==="localhost"?"https://localhost:3000":ae)+`/microsoft-login.html?redirect-uri=${window.location.href}&schoolId=${p.schoolId}`}else{let ae=K[0];await O(ae,B)}}}).catch(te=>{console.error(te)})},O=async(B,te)=>{let K=B.name,ae={firstName:K.split(" ").slice(0,-1).join(" "),lastName:K.split(" ").slice(-1).join(" "),fullName:K,imageUrl:"",email:B.username,accessToken:B.idTokenClaims.aio,googleId:B.tenantId};e(hi(ae)),await P(Yn.MicrosoftSSO,ae,B.idTokenClaims.aio,te)},G=async()=>{try{const B=await qb_();w(B.data)}catch(B){console.error(B)}},W=()=>{if(ls){const B="https://clever.com/oauth/instant-login?client_id=44f4bbf55cd873d3f7e5&district_id=6620cba31f1ddde7bd689dc5";window.location.href=B}else{const B=`https://clever.com/oauth/authorize?response_type=code&redirect_uri=${encodeURIComponent("https://es-classlink.marioforme.com/api/clever/clever-login")}&client_id=c3da6c669d239c70d48e`;window.location.href=B}},Q=async()=>{const B=new ss.PublicClientApplication(Nb_);await B.initialize(),A(B)};return C.useEffect(()=>{let B=window.location.href;v&&B.includes("code")&&B.includes("client_info")&&D()},[JSON.stringify(v)]),C.useEffect(()=>{G(),Q()},[]),{defaultInfo:Rb_,userLogin:R,openLogin:_,toggle:I,isShowPassword:E,setIsShowPassword:$,fnIsCheckLogin:P,infoUser:l,setInfoUser:g,googleClientId:s,googleRecaptchaId:c,school:p,fnLoginSSO:D,handleLoginWidthClever:W,extensionEmail:k}},g_=e=>{const t="https://es-stage.marioforme.com",_=t===location.origin;return e?ls&&!_||e.startsWith("http")?e:e.startsWith("/")?`${_?t:ko}${e}`:`${_?t:ko}/${e}`:""},Jt=e=>!e||!e.trim()?"":e.startsWith("/avatars/default-student-avatar")?e:`${ht}/api/file/viewer?key=${e}`,Bb_=({extensionEmail:e,setInfoUser:t,fnIsCheckLogin:_,clickHandler:n})=>{const s=async c=>{try{await Tb_(c)}catch(h){console.error(h)}},r=ai.useGoogleLogin({flow:"implicit",onSuccess:async c=>{var h,l;try{const p=await(await fetch("https://www.googleapis.com/oauth2/v3/userinfo",{headers:{Authorization:`Bearer ${c.access_token}`}})).json(),{email:w,given_name:v,family_name:A,picture:I,name:E,sub:$}=p,k=window.location.hostname,T=(l=(h=k==null?void 0:k.split(".marioforme.com"))==null?void 0:h[0])==null?void 0:l.replace(/-es$|^es-/,""),j=w.split("@")[1];if(!j.includes(T)&&!j.includes(e)){alert("The email address you used does not match the login information in the database."),await s([`${j} is incorrect`]);return}const R={firstName:v,lastName:A,imageUrl:I,fullName:E,email:w,accessToken:c.access_token,googleId:$};t(R),_(Yn.Google,R,c.access_token,n)}catch(g){await s([`Google login error ${g}`])}},onError:()=>{console.log("Google login failed")}});return o.jsxs("div",{className:L["btn-login-with-sso"],onClick:()=>r(),children:[o.jsx("img",{src:"images/google-logo.png"}),o.jsx("p",{children:"GOOGLE"})]})},Vb_=nt.object({email:nt.string().email("Email is invalid").required("Email is required"),password:nt.string().required("Password is required"),rememberMe:nt.boolean()}),Hb_=({defaultInfo:e,userLogin:t,school:_})=>{let{isShowPassword:n,setIsShowPassword:s,fnIsCheckLogin:r,setInfoUser:c,googleClientId:h,fnLoginSSO:l,extensionEmail:g}=Si();const p=()=>s(!n),{executeRecaptcha:w}=cs.useGoogleReCaptcha(),v=C.useCallback(async()=>{if(!w){console.log("execute recaptcha undefined");return}return await w("login")},[w]),A=C.useCallback(()=>{},[]);return o.jsx(C.Fragment,{children:o.jsx(c_.Formik,{initialValues:e,enableReinitialize:!0,validationSchema:Vb_,onSubmit:async I=>{try{const E=await v();if(!E)return;I.captcha=E,t(I)}catch(E){console.error(E)}},children:I=>{const{handleChange:E,handleBlur:$,handleSubmit:k,values:T,touched:j,errors:R,setFieldValue:M}=I,P=j.email&&R.email,D=j.password&&R.password;return o.jsx("div",{className:`${L["box-login"]} w-100`,children:o.jsx(S.Form,{className:`${L["block-login"]}`,onSubmit:k,children:o.jsxs("div",{className:`${L["block-form"]}`,children:[o.jsxs("div",{className:"d-flex align-items-center mb-4",children:[o.jsx("img",{src:_.schoolLogo?Jt(`${_.schoolLogo}`):`${g_("/images/mario-logo.png")}`,className:`${L["school-icon"]} mr-3`}),o.jsx("p",{className:`${L["school-name"]} mb-0`,children:_.schoolName})]}),o.jsx("p",{className:`${L["title-login"]}`,children:"Welcome Back!"}),o.jsx("p",{className:`${L["login-description"]} mb-5`,children:"Please enter your MARIO Education account details"}),o.jsxs(S.FormGroup,{className:`${L["form-user-name"]}`,children:[o.jsx(S.Input,{type:"text",name:"email",placeholder:"Email",value:T.email,onChange:E,autoComplete:"email",onBlur:$("email"),required:!0}),P&&o.jsx(kt,{text:R.email})]}),o.jsxs(S.FormGroup,{children:[o.jsx(Ln,{isShowPassword:n,togglePasswordVisible:p,onChange:O=>M("password",O.target.value)}),D&&o.jsx(kt,{text:R.password})]}),o.jsx(S.FormGroup,{children:o.jsx(cs.GoogleReCaptcha,{action:"login",onVerify:A})}),o.jsxs("div",{className:"d-flex justify-content-between",children:[o.jsxs("div",{className:"d-flex align-items-center",children:[o.jsx("input",{type:"checkbox",checked:!T.isSessionUserBrowser,className:`${L["checkbox-keep-login"]}`,onChange:()=>M("isSessionUserBrowser",!T.isSessionUserBrowser)}),o.jsx("p",{className:`${L["label-keep-login"]} mb-0 ml-2`,children:"Keep me logged in"})]}),o.jsx("a",{href:"/forgot-password",className:`${L["link-to-login"]}`,children:"Forgot password?"})]}),o.jsx("button",{className:`${L["btn-login"]} mt-5`,type:"submit",children:"LOG IN"}),o.jsx("p",{className:`${L["option-text"]} my-3 text-center`,children:"OR"}),o.jsxs(S.Row,{className:"mb-4",children:[o.jsx(S.Col,{lg:6,md:6,xs:12,className:`${L["btn-login-sso"]} pr-md-2`,children:!!h&&o.jsx(ai.GoogleOAuthProvider,{clientId:h,children:o.jsx(Bb_,{extensionEmail:g,setInfoUser:c,fnIsCheckLogin:r,clickHandler:v})})}),o.jsx(S.Col,{lg:6,md:6,xs:12,className:`${L["btn-login-sso"]} pl-md-2`,hidden:!(_!=null&&_.schoolId),children:o.jsxs("div",{className:L["btn-login-with-sso"],onClick:()=>l(v),children:[o.jsx("img",{src:"images/microsoft-logo.png"}),o.jsx("p",{children:"MICROSOFT"})]})})]})]})})})}})})},Wb_={email:"",captcha:""},Ub_="/",xo="/login",Xb_="Log in",Ai=()=>{const e=ke.useDispatch(),t=vt.useNavigate(),[_,n]=C.useState(!1),s=C.useCallback(()=>{n(!_)},[_]),[r,c]=C.useState(!1),[h,l]=C.useState(!1),[g,p]=C.useState(!0),{executeRecaptcha:w}=cs.useGoogleReCaptcha();C.useEffect(()=>{document.title=Xb_,O_()&&t(Ub_)},[]);const v=C.useCallback(async k=>{var T,j;e(me(!0));try{await xb_(k),t(xo),e(he({type:"success",message:"A mail to reset password was sent"}))}catch(R){e(he({type:"danger",message:((j=(T=R.response)==null?void 0:T.data)==null?void 0:j.title)||R.message||"Error occured"})),localStorage.removeItem(qt),sessionStorage.removeItem(qt)}e(me(!1))},[]),A=C.useCallback(async k=>{e(me(!0));try{await Ib_(k)}catch{p(!1)}e(me(!1))},[]),I=C.useCallback(async k=>{var T,j;e(me(!0));try{await Cb_(k),t(xo),e(he({type:"success",message:"Reset password sucessfully"}))}catch(R){e(he({type:"danger",message:((j=(T=R.response)==null?void 0:T.data)==null?void 0:j.title)||R.message||"Error occured"})),localStorage.removeItem(qt),sessionStorage.removeItem(qt)}e(me(!1))},[]),E=C.useCallback(async()=>{if(!w){console.log("execute recaptcha undefined");return}return await w("forgetPass")},[w]),$=C.useCallback(()=>{},[]);return{defaultInfo:Wb_,forgotPasswordRequest:v,checkResetTokenRequest:A,validLink:g,resetPasswordRequest:I,openLogin:_,toggle:s,isShowNewPassword:r,setIsShowNewPassword:c,isShowReTypePassword:h,setIsShowReTypePassword:l,clickHandler:E,handleVerify:$}},Yb_={email:"",captcha:""},Zb_=nt.object({email:nt.string().email("Email is invalid").required("Email is required")}),Jb_=({school:e})=>{const{forgotPasswordRequest:t,clickHandler:_,handleVerify:n}=Ai();return o.jsx(c_.Formik,{initialValues:Yb_,enableReinitialize:!0,validationSchema:Zb_,onSubmit:async s=>{const r=await _();r&&(s.captcha=r,t(s))},children:s=>{const{handleChange:r,handleSubmit:c,values:h,touched:l,errors:g}=s;return o.jsx("div",{className:`${L["box-login"]}`,children:o.jsx("div",{className:`${L["block-login"]}`,children:o.jsxs("div",{className:`${L["block-form"]}`,children:[o.jsxs("div",{className:"d-flex align-items-center mb-4",children:[o.jsx("img",{src:`${g_("/images/mario-logo.png")}`,className:`${L["school-icon"]} mr-3`}),o.jsx("p",{className:`${L["school-name"]} mb-0`,children:e.schoolName})]}),o.jsx("p",{className:`${L["title-login"]} `,children:"Forgot password"}),o.jsx("p",{className:`${L["recover-account"]} mb-5`,children:"Enter email to recover your account"}),o.jsxs("div",{className:"w-100",children:[o.jsx(S.Input,{type:"text",name:"email",id:"email",placeholder:"Input email",onChange:r,value:h.email}),l.email&&g.email&&o.jsx(kt,{text:g.email})]}),o.jsx(vt.Link,{to:"/login",className:`${L["link-to-login"]} mt-2`,children:"Return to login"}),o.jsx(cs.GoogleReCaptcha,{action:"forgetPass",onVerify:n}),o.jsx(S.Col,{className:"p-0",children:o.jsx("button",{className:`${L["btn-login"]} mt-5`,onClick:()=>c(),children:"Continue"})})]})})})}})},Qb_={token:"",password:"",reEnterPassword:""},Kb_=nt.object({password:nt.string().required("New password is required"),reEnterPassword:nt.string().required("Please re-enter new password").test("matching","Passwords do not match",function(){return this.parent.password===this.parent.reEnterPassword})}),e$_=()=>{const t=new URLSearchParams(vt.useLocation().search).get("token"),{checkResetTokenRequest:_,validLink:n,resetPasswordRequest:s,isShowNewPassword:r,setIsShowNewPassword:c,isShowReTypePassword:h,setIsShowReTypePassword:l}=Ai();return C.useEffect(()=>{_(t)},[]),o.jsx(c_.Formik,{initialValues:Qb_,enableReinitialize:!0,validationSchema:Kb_,onSubmit:g=>{s(g)},children:g=>{const{setFieldValue:p,handleSubmit:w,touched:v,errors:A}=g;return C.useEffect(()=>{p("token",t)},[]),o.jsx(S.Row,{className:`${L["box-login"]}`,children:o.jsx(S.Col,{className:"p-0",children:o.jsx("div",{className:`${L["block-login"]}`,children:o.jsxs("div",{className:`${L["block-form"]}`,children:[o.jsx("p",{className:`${L["title-login"]}`,children:"Reset Password"}),o.jsx("div",{className:"w-100",children:n?o.jsxs(C.Fragment,{children:[o.jsx(S.Label,{for:"emailForgot",className:"mb-3",children:"New password"}),o.jsx(Ln,{isShowPassword:r,togglePasswordVisible:()=>c(!r),onChange:I=>p("password",I.target.value)}),v.password&&A.password&&o.jsx(kt,{text:A.password}),o.jsx(S.Label,{for:"emailForgot",className:"mt-3 mb-3",children:"Re-enter new password"}),o.jsx(Ln,{isShowPassword:h,togglePasswordVisible:()=>l(!h),onChange:I=>p("reEnterPassword",I.target.value)}),v.reEnterPassword&&A.reEnterPassword&&o.jsx(kt,{text:A.reEnterPassword})]}):o.jsxs(C.Fragment,{children:[o.jsx("p",{className:`${L["recover-account"]} mb-5`,children:"Invalid reset password link"}),o.jsx("p",{className:"w-100",children:"It may have been accessed before or expired or you have just tried to reset another account's password"})]})}),n&&o.jsx(S.Col,{className:"p-0",children:o.jsx("button",{className:`${L["btn-login"]} mt-4`,onClick:()=>w(),children:"Confirm"})}),o.jsxs("p",{className:"d-flex justify-content-between",children:[o.jsx(vt.Link,{to:"/login",className:`${L["link-to-login"]}`,children:"Return to login"}),o.jsx("a",{href:"/privacy-policy/",target:"blank",className:`${L["link-to-login"]}`,children:"Privacy Policy"})]})]})})})})}})},t$_="Log in",_$_="Forgot password",s$_="Reset password",n$_=e=>{const{isLogin:t,isForgotPassword:_,isResetPassword:n}=e,{defaultInfo:s,userLogin:r,googleRecaptchaId:c,school:h}=Si();return C.useEffect(()=>{t&&(document.title=t$_),_&&(document.title=_$_),n&&(document.title=s$_)},[t,_,n]),o.jsx("div",{className:`${L.login} container-fluid font-family-lato`,children:o.jsxs(S.Row,{className:"h-100",children:[o.jsxs(S.Col,{lg:8,md:12,xs:12,className:"d-flex justify-content-center h-100 align-items-center p-3 flex-column",children:[!!c&&o.jsxs(cs.GoogleReCaptchaProvider,{useRecaptchaNet:!0,reCaptchaKey:c,scriptProps:{async:!0,defer:!0,appendTo:"body"},children:[t&&o.jsx(Hb_,{userLogin:r,defaultInfo:s,school:h}),_&&o.jsx(Jb_,{school:h})]}),n&&o.jsx(e$_,{}),o.jsx("a",{href:"/privacy-policy/",target:"blank",className:`${L["privacy-policy"]}`,children:"Privacy Policy"})]}),!n&&o.jsx(S.Col,{className:"p-3 mh-100 d-flex justify-content-end",lg:4,md:12,xs:12,children:o.jsx("img",{src:`${g_(window.innerWidth>992?"/images/img-login.png":"/images/img-login-tablet.png")}`,className:`${L["img-login"]}`})})]})})},o$_=()=>o.jsxs("div",{className:`${L["content-quote"]}`,children:[o.jsxs("div",{className:`${L["title-quote"]} d-block`,children:[o.jsx("p",{children:"Powerful"}),o.jsx("p",{children:"Personalized"}),o.jsx("p",{children:"Learning"})]}),o.jsxs("div",{className:`${L["descriptions-quote"]} d-block`,children:[o.jsx("p",{children:"Focus on what matters most to you and"}),o.jsx("p",{children:"make learning meaningful."})]})]}),a$_=({srcIcon:e,content:t})=>o.jsxs("div",{className:`${L["content-icon"]}`,children:[o.jsx("div",{className:`${L["title-icon"]}`,children:o.jsx("img",{src:g_(e),alt:"icon"})}),o.jsx("div",{className:`${L["descriptions-icon"]}`,dangerouslySetInnerHTML:{__html:t}})]},t),i$_=[{scrIcon:"/images/ChatsTeardrop.svg",content:"<p>Understand yourself better through <span>helpful feedback</span>.</p>"},{scrIcon:"/images/Student.svg",content:"<p>Create, explore, and share exciting <span>personalized</span> learning journeys.</p>"},{scrIcon:"/images/Confetti.svg",content:"<p>Set, monitor, and achieve <span>your goals</span>.</p>"}],r$_=({})=>o.jsxs(S.Row,{className:`${L["page-not-login"]}`,children:[o.jsx(S.Col,{md:12,children:o.jsx(o$_,{})}),o.jsx(S.Col,{md:12,className:`${L["box-content-home-page"]} d-flex align-items-center`,children:i$_.map(e=>o.jsx(a$_,{srcIcon:e.scrIcon,content:e.content},e.content))})]}),c$_=10001,l$_=({data:e,duration:t=c$_})=>{const[_,n]=C.useState(e.length),s=C.useRef(null),r=C.useCallback(l=>l===_?`${L.active} ${L.show}`:"",[_]),c=C.useCallback(l=>_===0&&l===e.length-1||l===_-1?L.behind:"",[_,e.length]),h=C.useCallback(()=>{s&&s.current&&clearInterval(s.current),s.current=setInterval(()=>{n(l=>l>=e.length-1?0:l+1)},t)},[t,e.length]);return C.useEffect(()=>(h(),()=>{s&&s.current&&clearInterval(s.current)}),[e.length,t]),o.jsx("div",{className:`${L["bg-animate"]} position-absolute`,children:e.map((l,g)=>o.jsx("img",{alt:`Image ${g+1}`,className:`${c(g)} ${r(g)}`,src:g_(l)},g))})};var Ei={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Io=C.createContext&&C.createContext(Ei),h_=function(){return h_=Object.assign||function(e){for(var t,_=1,n=arguments.length;_<n;_++){t=arguments[_];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},h_.apply(this,arguments)},d$_=function(e,t){var _={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(_[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(_[n[s]]=e[n[s]]);return _};function Ti(e){return e&&e.map(function(t,_){return C.createElement(t.tag,h_({key:_},t.attr),Ti(t.child))})}function Nt(e){return function(t){return C.createElement(u$_,h_({attr:h_({},e.attr)},t),Ti(e.child))}}function u$_(e){var t=function(_){var n=e.attr,s=e.size,r=e.title,c=d$_(e,["attr","size","title"]),h=s||_.size||"1em",l;return _.className&&(l=_.className),e.className&&(l=(l?l+" ":"")+e.className),C.createElement("svg",h_({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},_.attr,n,c,{className:l,style:h_(h_({color:e.color||_.color},_.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),r&&C.createElement("title",null,r),e.children)};return Io!==void 0?C.createElement(Io.Consumer,null,function(_){return t(_)}):t(Ei)}function m$_(e){return Nt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 96v64h448V96H32zm0 128v64h448v-64H32zm0 128v64h448v-64H32z"}}]})(e)}const h$_="/admin/users/user-list",g$_="/home",p$_="/home",f$_="Dashboard",y$_="Mario Framework",w$_=["images/landing-page.jpg","images/landing-page2.jpg","images/landing-page3.jpg"],v$_=({version:e})=>{const t=ke.useSelector(r=>r.common.user),[_,n]=C.useState(!1),s=()=>n(!_);return C.useEffect(()=>{t?document.title=f$_:document.title=y$_},[t]),o.jsxs("div",{className:`${L.login} ${L["red-background"]} position-relative`,children:[o.jsx("span",{className:`${L["version-prod"]}`,children:`v ${e}`}),o.jsx(l$_,{data:w$_}),o.jsxs("div",{className:`${L["login-content"]}`,children:[o.jsxs(S.Navbar,{light:!0,expand:"md",children:[o.jsx(S.NavbarBrand,{href:"/",className:`${L["logo-home"]}`,children:o.jsx("img",{src:g_("/images/logo-white.svg"),alt:"mario"})}),o.jsx(m$_,{onClick:s,className:`${L["hide-in-desktop"]} ${L["hamburger-menu"]}`}),o.jsxs(S.Collapse,{isOpen:_,navbar:!0,className:`${L["collapse-box"]}`,children:[o.jsxs(S.Nav,{className:`${L["nav-home"]} d-md-flex w-100 justify-content-center mr-auto`,navbar:!0,children:[o.jsx(S.NavItem,{children:o.jsx(S.NavLink,{className:`${L["learn-more"]} align-self-md-center`,href:"https://marioframework.com/software",target:"blank",children:"Learn More"})}),o.jsx(S.NavItem,{children:o.jsx(vt.Link,{className:`${L.contact} align-self-md-center`,to:"/contact",children:"Contact"})}),o.jsx(S.NavItem,{children:o.jsx(S.NavLink,{className:`${L["learn-more"]} align-self-md-center`,href:"/privacy-policy",target:"blank",children:"Privacy Policy"})})]}),o.jsx("div",{className:`${L["hide-in-mobile"]} d-flex justify-content-end`,children:t?o.jsx(vt.Link,{to:t.roles.includes("Admin")?h$_:t.roles.includes("Teacher")?g$_:p$_,className:`${L["btn-trans-border"]}`,children:"Dashboard"}):o.jsx(vt.Link,{to:"/login",className:`${L["btn-trans-border"]}`,children:"Login"})})]})]}),o.jsx("div",{className:"",children:o.jsx(r$_,{})}),o.jsx("div",{className:`${L["digital-privacy-icon"]}`,children:o.jsx("a",{href:"https://cert.privo.com/#/companies/marioFrameworkLlc",target:"blank",children:o.jsx("img",{src:g_("/images/STUDENT1.png"),alt:"icon"})})})]})]})},b$_="Not found",Zn=()=>(C.useEffect(()=>{document.title=b$_}),o.jsx("div",{className:"not-found",children:o.jsxs("div",{className:"clearfix",children:[o.jsx("h1",{className:"float-left display-3 mr-4",children:"404"}),o.jsxs("div",{className:"float-left",children:[o.jsx("h4",{className:"pt-3",children:"Oops! You are lost."}),o.jsx("p",{className:"text-muted mb-2",children:"The page you are looking for was not found."}),o.jsx("div",{children:o.jsx(vt.Link,{to:"/",children:"Go to home"})})]})]})})),$$_=o.jsx("div",{className:"pt-3 text-center",children:o.jsx("div",{className:"sk-spinner sk-spinner-pulse"})}),k$_=({routes:e})=>{const t=vt.useLocation(),{pathname:_}=t,n=_.includes("/admin")?"":"box-container",s=_.includes("/admin")?"pt-3":"";return o.jsx("main",{className:`c-main ${n}`,children:o.jsx(Sl.CContainer,{fluid:!0,className:`h-100 ${s}`,children:o.jsx(C.Suspense,{fallback:$$_,children:o.jsxs(vt.Routes,{children:[e.map((r,c)=>o.jsx(vt.Route,{path:r.path,element:o.jsx(r.component,{})},c)),o.jsx(vt.Route,{path:"*",element:o.jsx(Zn,{})})]})})})})},x$_=C.memo(k$_);function I$_(e){return Nt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}}]})(e)}function C$_(e){return Nt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"}}]})(e)}function S$_(e){return Nt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"}}]})(e)}function A$_(e){return Nt({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm65.18 216.01H224v80c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-80H94.82c-14.28 0-21.41-17.29-11.27-27.36l96.42-95.7c6.65-6.61 17.39-6.61 24.04 0l96.42 95.7c10.15 10.07 3.03 27.36-11.25 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"}}]})(e)}function E$_(e){return Nt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464,128H272L208,64H48A48,48,0,0,0,0,112V400a48,48,0,0,0,48,48H464a48,48,0,0,0,48-48V176A48,48,0,0,0,464,128ZM359.5,296a16,16,0,0,1-16,16h-64v64a16,16,0,0,1-16,16h-16a16,16,0,0,1-16-16V312h-64a16,16,0,0,1-16-16V280a16,16,0,0,1,16-16h64V200a16,16,0,0,1,16-16h16a16,16,0,0,1,16,16v64h64a16,16,0,0,1,16,16Z"}}]})(e)}function ji(e){return Nt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(e)}function qi(e){return Nt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"}}]})(e)}function T$_(e){return Nt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"}}]})(e)}function j$_(e){return Nt({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M610.5 341.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 368.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm224 32c1.9 0 3.7-.5 5.6-.6 8.3-21.7 20.5-42.1 36.3-59.2 7.4-8 17.9-12.6 28.9-12.6 6.9 0 13.7 1.8 19.6 5.3l7.9 4.6c.8-.5 1.6-.9 2.4-1.4 7-14.6 11.2-30.8 11.2-48 0-61.9-50.1-112-112-112S208 82.1 208 144c0 61.9 50.1 112 112 112zm105.2 194.5c-2.3-1.2-4.6-2.6-6.8-3.9-8.2 4.8-15.3 9.8-27.5 9.8-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-10.7-34.5 24.9-49.7 25.8-50.3-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-3.8-2.2-7-5-9.8-8.1-3.3.2-6.5.6-9.8.6-24.6 0-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h255.4c-3.7-6-6.2-12.8-6.2-20.3v-9.2zM173.1 274.6C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"}}]})(e)}function q$_(e){return Nt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M402.3 344.9l32-32c5-5 13.7-1.5 13.7 5.7V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h273.5c7.1 0 10.7 8.6 5.7 13.7l-32 32c-1.5 1.5-3.5 2.3-5.7 2.3H48v352h352V350.5c0-2.1.8-4.1 2.3-5.6zm156.6-201.8L296.3 405.7l-90.4 10c-26.2 2.9-48.5-19.2-45.6-45.6l10-90.4L432.9 17.1c22.9-22.9 59.9-22.9 82.7 0l43.2 43.2c22.9 22.9 22.9 60 .1 82.8zM460.1 174L402 115.9 216.2 301.8l-7.3 65.3 65.3-7.3L460.1 174zm64.8-79.7l-43.2-43.2c-4.1-4.1-10.8-4.1-14.8 0L436 82l58.1 58.1 30.9-30.9c4-4.2 4-10.8-.1-14.9z"}}]})(e)}const N$_={fontWeight:500},P$_={height:38},hs=({text:e,onClick:t,className:_})=>o.jsxs(S.Button,{onClick:t,color:"success",style:P$_,className:"d-flex align-items-center",children:[o.jsx(ji,{}),o.jsx("span",{className:`ml-2 ${_}`,style:N$_,children:e})]}),gs=({onClick:e})=>o.jsx("div",{className:"d-inline text-center cursor-pointer hover-opacity",title:"Delete",onClick:e,children:o.jsx(qi,{})}),G_=({label:e,onClick:t,className:_})=>o.jsx(S.Button,{className:`text-left py-0 ${_}`,color:"link",onClick:t,children:e}),I_=({label:e,className:t="",style:_={}})=>{const{t:n}=yt.useTranslation();return o.jsx(S.Alert,{color:"primary",className:t,style:_,children:n("no_item_to_display",{item:e})})},C_=e=>{const{t}=yt.useTranslation(),{filters:_,changePage:n,totalRecordCount:s,changePageSize:r,className:c=""}=e,[h,l]=C.useState("");return C.useEffect(()=>{l(_.currentPage.toString())},[_.currentPage]),o.jsx(S.Row,{children:o.jsx(S.Col,{md:12,className:"d-flex justify-content-end",children:o.jsxs(S.Pagination,{children:[o.jsx("div",{className:"mr-1 pagination-dropdown",children:o.jsx(p_,{className:`text-center ${c}`,value:_&&_.pageSize?{label:_.pageSize,value:_.pageSize}:ri,options:Fv_,onChange:g=>r(g.value),styles:{menu:g=>({...g,zIndex:9999})},menuPosition:"fixed"})}),o.jsx(S.PaginationItem,{className:"mr-1",children:o.jsx(S.PaginationLink,{previous:!0,tag:"button",className:`h-100 ${c}`,disabled:_.currentPage<=1,onClick:()=>n(_.currentPage-1),children:t("prev")})}),o.jsx("input",{type:"text",id:"pageNumberInput",className:`page-input text-center pagination-input ${c}`,onChange:g=>l(g.target.value),onKeyUp:g=>{(g.key==="Enter"||g.keyCode===13)&&n(parseInt(h))},value:h}),o.jsx(S.PaginationItem,{className:"ml-1",children:o.jsx(S.PaginationLink,{next:!0,tag:"button",className:`h-100 ${c}`,disabled:_.currentPage>s/_.pageSize,onClick:()=>n(_.currentPage+1),children:t("next")})})]})})})},Ni=Y.createAction("emailTemplate/setEmailTemplateList"),on=Y.createAction("mailCategories/setMailCategory"),ps=`${ht}/api/emailtemplate`,R$_=e=>xe.get(ps,{params:e}),L$_=e=>xe.get(`${ps}/${e}`),M$_=e=>xe.post(ps,e),z$_=e=>xe.put(`${ps}/${e.id}`,e),D$_=e=>xe.delete(`${ps}/${e}`),F$_=`${ht}/api/EmailTemplateCategory`,Pi=()=>xe.get(F$_),an=()=>{const[e,t]=C.useState(ci);return{filters:e,setFilters:t,changeFilters:n=>{const s={...e,...n};s.searchString&&n.searchString&&n.searchString!=e.searchString&&(s.currentPage=1),t(s)}}},O$_="/admin/email-template",G$_="/admin/create-email-template",B$_="Email template list",V$_=()=>{const e=vt.useNavigate(),t=ke.useSelector(p=>p.emailTemplate.emailTemplateList),_=ke.useSelector(p=>p.emailTemplate.totalItems),n=ke.useSelector(p=>p.mailCategory.mailCategoryList),{filters:s,changeFilters:r}=an(),c=ke.useDispatch(),h=C.useCallback(async()=>{var p,w;c(me(!0));try{const v=await R$_(s),{items:A,totalItems:I}=v.data;if(c(Ni({emailTemplateList:A,totalItems:I})),n&&n.length==0){const E=await Pi();c(on(E.data.items))}}catch(v){c(he({type:"danger",message:((w=(p=v.response)==null?void 0:p.data)==null?void 0:w.title)||v.message}))}c(me(!1))},[c,s]),l=C.useCallback(p=>{var w,v;c(me(!0));try{c(Xt({isOpen:!0,type:"warning",message:"Do you want to remove this email template?",onConfirm:async()=>{await D$_(p),c(he({type:"success",message:"Remove template successfully"})),r({currentPage:1})}}))}catch(A){c(he({type:"danger",message:((v=(w=A.response)==null?void 0:w.data)==null?void 0:v.title)||A.message}))}c(me(!1))},[s]),g=C.useCallback(p=>{const w=p?`${O$_}/${p}`:G$_;e(w)},[]);return C.useEffect(()=>{document.title=B$_},[]),C.useEffect(()=>{h()},[s]),{emailTemplateList:t,totalItems:_,filters:s,changeFilters:r,getData:h,removeData:l,goToDetail:g,mailCategoryList:n}},Jn=()=>{const e=ke.useSelector(_=>{var n;return(n=_.common)==null?void 0:n.defaultFontSize});return{classFontSize:C.useMemo(()=>e==Qv_?"font-large":e==Jv_?"font-small":"",[e])}},H$_="email_template",W$_=()=>{const{t:e}=yt.useTranslation(),{classFontSize:t}=Jn(),{emailTemplateList:_,totalItems:n,filters:s,changeFilters:r,removeData:c,goToDetail:h,mailCategoryList:l}=V$_(),g=p=>{c(p)};return o.jsxs("div",{className:`fadeIn animated ${L[t]}`,children:[o.jsx("h5",{className:`mb-2 ${L["custom-title-font-size"]}`,children:e(H$_)}),o.jsxs(S.Row,{className:"my-2",children:[o.jsx(S.Col,{md:4,children:o.jsx(hs,{text:e("create_template"),onClick:()=>h(),className:` ${L["custom-font-size"]}`})}),o.jsxs(S.Col,{md:4,className:`d-flex justify-content-end align-items-center ${L["custom-font-size"]}`,children:[e("total_of_templates"),": ",n]})]}),o.jsxs(S.Row,{className:"mb-2",children:[o.jsxs(S.Col,{md:8,children:[_&&_.length>0?o.jsxs(S.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:`align-top ${L["custom-font-size"]}`,children:e("template_name")}),o.jsx("th",{className:`align-top ${L["custom-font-size"]}`,children:e("category_name")}),o.jsx("th",{className:`align-top ${L["custom-font-size"]}`,children:e("created_date")}),o.jsx("th",{className:`text-center ${L["custom-font-size"]}`,children:e("action")})]})}),o.jsx("tbody",{children:_.map(p=>o.jsxs("tr",{children:[o.jsx("td",{className:"align-middle",children:o.jsx(G_,{label:p.subject,onClick:()=>h(p.id),className:` ${L["custom-font-size"]}`})}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:p.category.name}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:m_.format(new Date(p.createdAt),li)}),o.jsx("td",{className:"text-center align-middle",children:o.jsx(gs,{onClick:()=>g(p.id)})})]},p.id))})]}):o.jsx(I_,{label:e("template")}),o.jsx(S.Row,{className:"mt-2",children:o.jsx(S.Col,{md:12,children:o.jsx(C_,{filters:s,totalRecordCount:n,changePageSize:p=>r({pageSize:p}),changePage:p=>r({currentPage:p})})})})]}),o.jsx(S.Col,{md:4,children:o.jsxs(S.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[o.jsx("thead",{children:o.jsx("tr",{children:o.jsx("th",{className:`align-top ${L["custom-font-size"]}`,children:e("category_name")})})}),o.jsx("tbody",{children:l.map(p=>o.jsx("tr",{children:o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:p.name})},p.id))})]})})]})]})},U$_={width:"100%",position:"fixed",bottom:70,backgroundColor:"#fff",borderTop:"1px solid #ddd",marginLeft:"-30px",padding:"18px 8px",zIndex:1},Qn=({confirmText:e,onConfirm:t,onCancel:_,className:n})=>{const{t:s}=yt.useTranslation();return o.jsx(S.Row,{form:!0,style:U$_,children:o.jsxs(S.Col,{md:12,children:[o.jsx(S.Button,{color:"primary",size:"sm",className:`px-4 pl-1 mr-2 ml-3 ${n}`,onClick:t,children:s(e)}),o.jsx(S.Button,{size:"sm",className:`px-4 mr-2 ml-2 ${n}`,onClick:_,children:s("cancel")})]})})},X$_=({onClick:e})=>o.jsx("div",{className:"d-inline text-center cursor-pointer hover-opacity",title:"Delete",onClick:e,children:o.jsx(ji,{})}),Co=[{label:"$USER_FIRST_NAME$",meaning:"User first name"},{label:"$USER_LAST_NAME$",meaning:"User last name"},{label:"$PASSWORD$",meaning:"Password"},{label:"$USER_NAME$",meaning:"User name"},{label:"$USER_EMAIL$",meaning:"User email"},{label:"$MESSAGE$",meaning:"Message"},{label:"$DOMAIN$",meaning:"DOMAIN"}],Y$_=({onClick:e,isResetPasswordTemplate:t,className:_})=>{const{t:n}=yt.useTranslation();let s=t?[...Co,{label:"$RESET_LINK$",meaning:"Reset link"}]:Co;return o.jsxs(S.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:`align-top ${_}`,children:n("params")}),o.jsx("th",{className:`align-top ${_}`,children:n("meaning")}),o.jsx("th",{})]})}),o.jsx("tbody",{children:s.map(r=>o.jsxs("tr",{children:[o.jsx("td",{className:`align-middle ${_}`,children:r.label}),o.jsx("td",{className:`align-middle ${_}`,children:r.meaning}),o.jsx("td",{className:"text-center align-middle",children:o.jsx(X$_,{onClick:()=>e(r)})})]},r.label))})]})},Z$_=e=>{const t=ke.useDispatch(),_=ke.useSelector(l=>l.mailCategory.mailCategoryList);C.useEffect(()=>{n()},[]);const n=async()=>{try{const l=await Pi();t(on(l.data.items))}catch(l){console.error(l)}},{id:s,className:r}=e,c=_.map(l=>({id:l.id,value:l.id,label:l.name})),h=s&&c.find(l=>l.value===s)||null;return o.jsx(p_,{options:c,className:r,value:h,...e})},J$_=({text:e,className:t})=>o.jsxs(S.Label,{className:t,children:[e,o.jsx("span",{className:"ml-2 text-danger",children:"*"})]}),zt=C.memo(J$_),So="You have some changes. Click OK to discard or click Cancel to continue edit, then click Update below to save your changes.";function fs({when:e}){return C.useEffect(()=>{if(!e)return;const t=_=>(_.preventDefault(),_.returnValue=So,So);return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}},[e]),null}const Ao=({label:e,onRemove:t,className:_})=>o.jsxs(C.Fragment,{children:[o.jsx("span",{className:`mr-2 ${_}`,children:e}),o.jsx("i",{className:"fa fa-times text-danger cursor-pointer hover-opacity",onClick:t})]}),Ht=`${ht}/api/file`,Q$_=`${Ht}/system/profile`,K$_=`${Ht}/system/student-badge`,e1_=`${Ht}/system/certificate`,t1_=`${Ht}/system/email-attachment`,_1_=`${Ht}/system/question`,s1_=`${Ht}/system/answer`,n1_=`${Ht}/system/tutorial`,o1_=`${Ht}/custom-key`,a1_=`${Ht}/delete-file`,i1_=`${Ht}/delete-folder`,r1_=`${Ht}/create-folder`,c1_=`${Ht}/rename-file`,l1_=e=>Yt.post(Ht,e),d1_=e=>Yt.post(K$_,e),u1_=e=>Yt.post(e1_,e),m1_=e=>Yt.post(Q$_,e),Ri=e=>Yt.post(t1_,e),h1_=e=>Yt.post(_1_,e),g1_=e=>Yt.post(s1_,e),Eo=e=>Yt.post(n1_,e),Li=e=>Yt.post(o1_,e),p1_=e=>xe.delete(`${a1_}?key=${e}`),f1_=e=>xe.delete(`${i1_}?key=${e}`),y1_=(e,t)=>xe.post(r1_,{prefix:e||"",folderName:t}),w1_=(e,t)=>xe.post(c1_,{key:e,name:t}),rn={height:500,menubar:!1,force_br_newlines:!0,force_p_newlines:!1,branding:!1,convert_urls:!1,plugins:`advlist autolink lists link image charmap print preview anchor
6
6
  searchreplace visualblocks code fullscreen
7
7
  insertdatetime media table paste code help wordcount media`,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | image",paste_data_images:!0},v1_={...rn,images_upload_handler:async function(e,t){const _=new FormData;_.append("file",e.blob(),e.filename());try{const{data:n}=await Ri(_);t(Jt(n.key))}catch{return}}},b1_={...rn,images_upload_handler:async function(e,t){const _=new FormData;_.append("file",e.blob(),e.filename());try{const{data:n}=await h1_(_);t(Jt(n.key))}catch{return}}},$1_={...rn,height:Xn,images_upload_handler:async function(e,t){const _=new FormData;_.append("file",e.blob(),e.filename());try{const{data:n}=await g1_(_);t(Jt(n.key))}catch{return}}},k1_={...rn,height:Xn,media_live_embeds:!0,plugins:`advlist autolink lists link image charmap print preview anchor
8
8
  searchreplace visualblocks code fullscreen
9
- insertdatetime media table paste code help wordcount media`,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | image | media",images_upload_handler:async function(e,t){const _=new FormData;_.append("file",e.blob(),e.filename());try{const{data:n}=await Eo(_);t(Jt(n.key))}catch{return}},file_picker_callback:function(e){var t=document.createElement("input");t.setAttribute("type","file"),t.setAttribute("accept","video/*"),t.onchange=async function(_){const n=_.target.files[0],{name:s}=n,r=new FormData;r.append("file",n,s);const{data:l}=await Eo(r);e(Jt(l.key))},t.click()}},Mi={email:v1_,question:b1_,answer:$1_,tutorial:k1_},x1_={id:0,subject:"",categoryId:0,body:"",attachments:[]},I1_="/admin/email-template",C1_="Email template detail",S1_=4194304,A1_=e=>{let t;const _=ke.useDispatch(),n=vt.useNavigate(),[s,r]=C.useState(x1_),[l,h]=C.useState(!1),c=async()=>{localStorage.setItem(window.location.href,"true"),h(!0)},[g,p]=C.useState([]),[w,v]=C.useState([]);C.useEffect(()=>{document.title=C1_,h(!1),localStorage.getItem(window.location.href)&&localStorage.removeItem(window.location.href)},[]),C.useEffect(()=>{e&&A()},[e]);const A=C.useCallback(async()=>{var P,D;_(me(!0));try{const O=await L$_(e);r({id:O.data.id,subject:O.data.subject,categoryId:O.data.category.id,body:O.data.body,attachments:O.data.attachments||[]}),document.title=O.data.subject,t&&t.editor.execCommand("mceSetContent",!1,O.data.body)}catch(O){_(he({type:"danger",message:((D=(P=O.response)==null?void 0:P.data)==null?void 0:D.title)||O.message}))}_(me(!1))},[e]),I=P=>t=P,E=P=>{t&&t.editor.execCommand("mceInsertContent",!1,` ${P.label}`)},$=C.useCallback(()=>{n(I1_)},[]),k=C.useCallback(async P=>{var D,O;_(me(!0));try{if(w&&w.length){const Q=(await M()).map(B=>({key:B.data.key,name:B.data.name}));P.attachments=[...P.attachments,...Q]}await(e?z$_:M$_)(P),_(he({type:"success",message:`${e?"Update":"Create"} template successfully`})),$()}catch(G){_(he({type:"danger",message:((O=(D=G.response)==null?void 0:D.data)==null?void 0:O.title)||G.message}))}_(me(!1))},[e,w]),T=()=>{const P=document.getElementsByClassName("input-attachment"),D=document.createElement("input"),O=document.getElementById("email-detail");O==null||O.append(D),D.className="input-attachment",D.id=`inputAttachment-${P.length+1}`,D.type="file",D.style.display="none",D.setAttribute("multiple","multiple"),D.addEventListener("change",j),D.click()},j=()=>{const P=[];let D=0;const O=document.getElementsByClassName("input-attachment");for(const G of O)for(const W of G.files)D+=W.size,D>S1_&&(_(he({type:"danger",message:"Max attachment size is 4MB"})),D-=W.size,G.remove());for(const G of O)for(const W of G.files){const{name:Q}=W;!g.includes(W)&&!P.some(B=>B.name===Q)&&P.push({name:Q,inputId:G.id})}v(P)},R=(P,D)=>{if(w.filter(O=>O.inputId===P).length===1){const O=document.getElementById(P);O==null||O.remove();let G=w.filter(W=>W.inputId===P);w.filter(W=>W.inputId!==G.inputId),g.push(G),p([...g]),v([...w]);return}p([...g,D])};C.useEffect(()=>{j()},[g]);const M=async()=>{const P=document.getElementsByClassName("input-attachment"),D=[];for(const O of P)for(const G of O.files){const{name:W}=G,Q=new FormData;Q.append("file",G,W),D.push(Ri(Q))}return Promise.all(D)};return{emailTemplateDetail:s,setEditorRef:I,addParams:E,backToList:$,confirmData:k,edited:l,setEdited:h,setEditedTrue:c,onAttachFile:T,updateAttachment:j,fileUpload:w,removeAttachment:R}},E1_=nt.object({subject:nt.string().required("Template subject is required"),categoryId:nt.number().required("Template category is required").test("test category id","Template category is required",e=>e>=1),comment:nt.string(),body:nt.string().required("Template body is required")}),T1_="create_email_template",j1_="edit_email_template",q1_=()=>{const{id:e}=vt.useParams(),{t}=yt.useTranslation(),{classFontSize:_}=Jn(),{emailTemplateDetail:n,setEditorRef:s,addParams:r,backToList:l,confirmData:h,edited:c,setEdited:g,setEditedTrue:p,onAttachFile:w,fileUpload:v,removeAttachment:A}=A1_(parseInt(e||"0")),I=e?j1_:T1_,E=e?"update":"create",$=ke.useSelector(k=>k.mailCategory.mailCategoryList);return o.jsx(c_.Formik,{initialValues:n,enableReinitialize:!0,validationSchema:E1_,onSubmit:k=>{h(k),g(!1),localStorage.getItem(window.location.href)&&localStorage.removeItem(window.location.href)},children:k=>{const{values:T,touched:j,errors:R,setFieldValue:M,handleChange:P,handleBlur:D,handleSubmit:O}=k;return o.jsxs("div",{className:`animated fadeIn detail-buttons-padding ${L[_]}`,id:"email-detail",children:[o.jsx(fs,{when:c}),o.jsx("h5",{className:`mb-2 ${L["custom-title-font-size"]}`,children:t(I)}),o.jsxs(S.Row,{className:"my-2",children:[o.jsxs(S.Col,{md:8,children:[o.jsx(zt,{className:` ${L["custom-font-size"]}`,text:t("mail_subject")}),o.jsx(S.Input,{placeholder:t("mail_subject_nm"),name:"subject",value:T.subject,onChange:G=>{P(G),p()},onBlur:D("subject"),className:`selector-input ${L["custom-font-size"]}`}),j.subject&&R.subject&&o.jsx(kt,{text:R.subject})]}),o.jsxs(S.Col,{md:4,children:[o.jsx(zt,{className:` ${L["custom-font-size"]}`,text:t("category")}),o.jsx(Z$_,{onChange:G=>{M("categoryId",G.value),p()},id:T.categoryId,className:` ${L["custom-font-size"]}`}),j.categoryId&&R.categoryId&&o.jsx(kt,{text:R.categoryId})]})]}),o.jsxs(S.Row,{className:"mb-2",children:[o.jsx(S.Col,{md:8,children:o.jsxs(S.Row,{children:[o.jsxs(S.Col,{md:12,className:"mb-2",children:[o.jsx(zt,{className:` ${L["custom-font-size"]}`,text:t("mail_body")}),(n.body||!e)&&o.jsx(Al.Editor,{ref:G=>s(G),tinymceScriptSrc:"./tinymce/tinymce.min.js",initialValue:n.body,init:Mi.email,onEditorChange:G=>{M("body",G),p()}}),j.body&&R.body&&o.jsx(kt,{text:R.body})]}),o.jsx(S.Col,{md:12,children:o.jsxs(S.Row,{children:[o.jsx(S.Col,{md:3,children:o.jsx(S.Button,{color:"link",size:"sm",onClick:w,className:`pl-0 ${L["custom-font-size"]}`,children:t("add_attachment")})}),o.jsx(S.Col,{md:12,children:o.jsxs(S.Row,{children:[T.attachments.map(G=>o.jsx(S.Col,{md:2,children:o.jsx(Ao,{label:G.name,onRemove:()=>M("attachments",T.attachments.filter(W=>W.name!==G.name)),className:` ${L["custom-font-size"]}`})},G.key)),v.map((G,W)=>o.jsx(S.Col,{md:2,className:"d-flex align-items-center",children:o.jsx(Ao,{label:G.name,onRemove:()=>A(G.inputId,G.name),className:` ${L["custom-font-size"]}`})},W))]})})]})})]})}),o.jsxs(S.Col,{md:4,children:[o.jsx(S.Label,{className:` ${L["custom-font-size"]}`,children:t("mail_params")}),o.jsx(Y$_,{onClick:G=>r(G),isResetPasswordTemplate:T.categoryId==($&&$.length>0&&$.filter(G=>G.name=="Reset password")[0].id),className:` ${L["custom-font-size"]}`})]})]}),o.jsx(Qn,{confirmText:E,onConfirm:O,onCancel:l,className:` ${L["custom-font-size"]}`})]})}})},N1_=(e,t)=>{const{t:_}=yt.useTranslation(),{header:n,children:s,onConfirm:r,onCancel:l,confirmText:h,cancelText:c,noFooter:g,size:p,edited:w,setEditedFalse:v,className:A}=e,[I,E]=C.useState(!1),$=ke.useDispatch(),k=M=>{var P,D;try{$(Xt({isOpen:!0,type:"warning",message:"Are you sure to cancel?",onConfirm:async()=>{M()}}))}catch(O){$(he({type:"danger",message:((D=(P=O.response)==null?void 0:P.data)==null?void 0:D.title)||O.message}))}},T=()=>{v&&v(),E(!I),I&&l&&l()},j=C.useCallback((M,P)=>{M?k(()=>{T(),P&&P()}):(T(),P&&P())},[I]),R=C.useCallback(()=>{j(!!w,()=>{l&&l()})},[j,l,w]);return C.useImperativeHandle(t,()=>({toggle:j})),o.jsxs(S.Modal,{isOpen:I,toggle:()=>j(!!w),size:p,className:L[A],children:[o.jsx(S.ModalHeader,{className:`${L["custom-title-font-size"]}`,toggle:()=>j(!!w),children:n}),o.jsx(S.ModalBody,{children:s}),!g&&o.jsxs(S.ModalFooter,{className:"text-right",children:[r&&o.jsx(S.Button,{color:"primary",onClick:r,className:` ${L["custom-font-size"]}`,children:h||_("confirm")}),o.jsx(S.Button,{onClick:R,className:` ${L["custom-font-size"]}`,children:c||_("cancel")})]})]})},cn=C.forwardRef(N1_),P1_=nt.object({question:nt.string().required("Question is required"),answer:nt.string().required("Answer is required")}),R1_=(e,t)=>{const{header:_,confirmText:n,onConfirm:s,faqDetail:r,onCancel:l,edited:h,setEdited:c,setEditedTrue:g,setEditedFalse:p}=e;return o.jsx(c_.Formik,{initialValues:r,enableReinitialize:!0,validationSchema:P1_,onSubmit:(w,v)=>{s(w),v.resetForm()},children:w=>{const{values:v,touched:A,errors:I,handleChange:E,handleBlur:$,handleSubmit:k}=w;return o.jsx(cn,{header:_,confirmText:n,onConfirm:k,onCancel:l,ref:t,edited:h,setEdited:c,setEditedFalse:p,children:o.jsxs(S.Row,{children:[o.jsxs(S.Col,{md:12,children:[o.jsx(zt,{text:"Question"}),o.jsx(S.Input,{type:"textarea",name:"question",placeholder:"Question",value:v.question,onChange:T=>{E(T),g()},onBlur:$("question")}),A.question&&I.question&&o.jsx(kt,{text:I.question})]}),o.jsxs(S.Col,{md:12,className:"pt-2",children:[o.jsx(zt,{text:"Answer"}),o.jsx(S.Input,{type:"textarea",rows:5,name:"answer",placeholder:"Answer",value:v.answer,onChange:T=>{E(T),g()},onBlur:$("answer")}),A.answer&&I.answer&&o.jsx(kt,{text:I.answer})]})]})})}})},L1_=C.forwardRef(R1_),zi=Y.createAction("faqs/setFaqList"),ys=`${ht}/api/SystemFaq`,M1_=e=>xe.get(ys,{params:e}),z1_=e=>xe.get(`${ys}/${e}`),D1_=e=>xe.post(ys,e),F1_=e=>xe.put(`${ys}/${e.id}`,e),O1_=e=>xe.delete(`${ys}/${e}`),G1_="FAQ list",B1_=()=>{const e=ke.useSelector(h=>h.faqs.faqList),t=ke.useSelector(h=>h.faqs.totalItems),{filters:_,changeFilters:n}=an(),s=ke.useDispatch(),r=C.useCallback(async()=>{var h,c;s(me(!0));try{const g=await M1_(_),{items:p,totalItems:w}=g.data;s(zi({faqList:p,totalItems:w}))}catch(g){s(he({type:"danger",message:((c=(h=g.response)==null?void 0:h.data)==null?void 0:c.title)||g.message}))}s(me(!1))},[s,_]),l=C.useCallback(h=>{var c,g;s(me(!0));try{s(Xt({isOpen:!0,type:"warning",message:"Do you want to remove this FAQ?",onConfirm:async()=>{await O1_(h),s(he({type:"success",message:"Remove question successfully"})),n({currentPage:1})}}))}catch(p){s(he({type:"danger",message:((g=(c=p.response)==null?void 0:c.data)==null?void 0:g.title)||p.message}))}s(me(!1))},[_]);return C.useEffect(()=>{document.title=G1_},[]),C.useEffect(()=>{r()},[_]),{faqList:e,totalItems:t,filters:_,changeFilters:n,getData:r,removeData:l}},Ns={question:"",answer:""},V1_=()=>{const e=ke.useDispatch(),[t,_]=C.useState(0),[n,s]=C.useState(Ns),[r,l]=C.useState(!1),h=async()=>{localStorage.setItem(window.location.href,"true"),l(!0)},c=async()=>{localStorage.getItem(window.location.href)&&localStorage.removeItem(window.location.href),l(!1)};C.useEffect(()=>{t?p():s(Ns)},[t]),C.useEffect(()=>{c()},[]);const g=()=>{s(Ns),_(0)},p=C.useCallback(async()=>{var v,A;e(me(!0));try{const I=await z1_(t);s(I.data)}catch(I){e(he({type:"danger",message:((A=(v=I.response)==null?void 0:v.data)==null?void 0:A.title)||I.message}))}e(me(!1))},[t]),w=C.useCallback(async(v,A)=>{var I,E;e(me(!0));try{await(t?F1_:D1_)(v),e(he({type:"success",message:`${t?"Update":"Create"} FAQ successfully`})),A&&A(),t&&_(0)}catch($){e(he({type:"danger",message:((E=(I=$.response)==null?void 0:I.data)==null?void 0:E.title)||$.message}))}e(me(!1))},[t,n]);return{id:t,setId:_,faqDetail:n,confirmData:w,initValue:Ns,reset:g,edited:r,setEdited:l,setEditedTrue:h,setEditedFalse:c}},H1_="FAQ",W1_=()=>{const e=C.useRef(null),{faqList:t,totalItems:_,filters:n,changeFilters:s,getData:r,removeData:l}=B1_(),{id:h,setId:c,faqDetail:g,confirmData:p,reset:w,edited:v,setEdited:A,setEditedTrue:I,setEditedFalse:E}=V1_(),$=R=>{c(R||0),e&&e.current&&e.current.toggle()},k=R=>{p(R,()=>{e&&e.current&&e.current.toggle(),r()}),E()},T=R=>{l(R)},j=()=>w();return o.jsxs("div",{className:"fadeIn animated",children:[o.jsx(L1_,{ref:e,header:h?"Edit FAQ":"Create FAQ",confirmText:h?"Update":"Create",onConfirm:k,onCancel:j,faqDetail:g,edited:v,setEdited:A,setEditedTrue:I,setEditedFalse:E}),o.jsx(fs,{when:v}),o.jsx("h5",{className:"mb-2",children:H1_}),o.jsxs(S.Row,{className:"my-2",children:[o.jsx(S.Col,{md:4,children:o.jsx(hs,{text:"Create FAQ",onClick:()=>$()})}),o.jsxs(S.Col,{md:4,className:"d-flex align-items-center justify-content-end",children:["Total of FAQs: ",_]})]}),o.jsxs(S.Row,{className:"mb-2",children:[o.jsx(S.Col,{md:8,children:t&&t.length>0?o.jsxs(S.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:"align-top",children:"Question"}),o.jsx("th",{className:"align-top",children:"Answer"}),o.jsx("th",{className:"text-center",children:"Action"})]})}),o.jsx("tbody",{children:t.map(R=>o.jsxs("tr",{children:[o.jsx("td",{className:"align-middle",children:o.jsx(G_,{label:R.question,onClick:()=>$(R.id)})}),o.jsx("td",{className:"align-middle",children:R.answer}),o.jsx("td",{className:"text-center align-middle",children:o.jsx(gs,{onClick:()=>T(R.id)})})]},R.id))})]}):o.jsx(I_,{label:"FAQ"})}),o.jsx(S.Col,{md:8,children:o.jsx(C_,{filters:n,totalRecordCount:_,changePageSize:R=>s({pageSize:R}),changePage:R=>s({currentPage:R})})})]})]})},D_=({defaultValue:e,options:t,isDisabled:_,scrollBottom:n,className:s,...r})=>{const l=e!==null&&typeof e<"u"&&t.find(h=>h.value===e)||null;return o.jsx(p_,{isDisabled:_,options:t,value:l,menuPlacement:n?"top":"auto",className:s,...r})},ws=`${ht}/api/Skill`,Di=e=>xe.get(ws,{params:e}),U1_=e=>xe.get(`${ws}/${e}`),X1_=e=>xe.post(ws,e),Y1_=e=>xe.put(`${ws}/${e.id}`,e),Z1_=e=>xe.delete(`${ws}/${e}`),J1_=e=>{const[t,_]=C.useState([]);C.useEffect(()=>{n()},[]);const n=async()=>{try{const c=await Di();_(c.data.items)}catch(c){console.error(c.message)}},{id:s,isDisabled:r,className:l}=e,h=t.map(c=>({id:c.id,value:c.id,label:c.path?`${c.path}/${c.name}`:c.name}));return o.jsx(D_,{options:h,defaultValue:s,...e,isDisabled:r,className:l})},Q1_=nt.object({name:nt.string().required("Name is required"),description:nt.string()}),K1_=(e,t)=>{const{t:_}=yt.useTranslation(),{header:n,confirmText:s,onConfirm:r,skillDetail:l,onCancel:h,edited:c,setEdited:g,setEditedTrue:p,setEditedFalse:w,isDisabled:v,classFontSize:A}=e;return o.jsx(c_.Formik,{initialValues:l,enableReinitialize:!0,validationSchema:Q1_,onSubmit:(I,E)=>{r(I),E.resetForm()},children:I=>{const{values:E,touched:$,errors:k,handleChange:T,handleBlur:j,handleSubmit:R,resetForm:M}=I;return o.jsx(cn,{header:n,confirmText:s,onConfirm:R,ref:t,onCancel:()=>{h(),M()},edited:c,setEdited:g,setEditedFalse:w,className:A,children:o.jsxs(S.Row,{children:[o.jsxs(S.Col,{md:12,className:"mb-2",children:[o.jsx(zt,{className:`${L["custom-font-size"]}`,text:_("name")}),o.jsx(S.Input,{name:"name",placeholder:_("name"),value:E.name,onChange:P=>{T(P),p()},onBlur:j("name"),className:` ${L["custom-font-size"]}`}),$.name&&k.name&&o.jsx(kt,{text:k.name})]}),o.jsxs(S.Col,{md:12,className:"mb-2",children:[o.jsx(S.Label,{className:` ${L["custom-font-size"]}`,children:_("description")}),o.jsx(S.Input,{type:"textarea",rows:5,name:"description",placeholder:_("description"),value:E.description,onChange:P=>{T(P),p()},onBlur:j("description"),className:` ${L["custom-font-size"]}`})]}),o.jsxs(S.Col,{md:12,className:"mb-2",children:[o.jsx(S.Label,{className:` ${L["custom-font-size"]}`,children:_("parent_category")}),o.jsx(J1_,{isDisabled:v,onChange:P=>{I.setFieldValue("parentSkillId",P.value),p()},id:E.parentSkillId,className:` ${L["custom-font-size"]}`})]})]})})}})},ek_=C.forwardRef(K1_),Fi=Y.createAction("skills/setSkillList"),tk_=12,_k_=20,sk_="Skill list",nk_=()=>{const e=ke.useSelector(g=>g.skills.skillList),t=ke.useSelector(g=>g.skills.totalItems),_=ke.useSelector(g=>{var p;return(p=g.common)==null?void 0:p.defaultFontSize}),{filters:n,changeFilters:s}=an(),r=ke.useDispatch(),l=C.useMemo(()=>_==_k_?"font-large":_==tk_?"font-small":"",[_]),h=C.useCallback(async()=>{var g,p;r(me(!0));try{const w=await Di(n),{items:v,totalItems:A}=w.data;r(Fi({skillList:v,totalItems:A}))}catch(w){r(he({type:"danger",message:((p=(g=w.response)==null?void 0:g.data)==null?void 0:p.title)||w.message}))}r(me(!1))},[r,n]),c=C.useCallback(g=>{var p,w;r(me(!0));try{r(Xt({isOpen:!0,type:"warning",message:"Do you want to remove this skill?",onConfirm:async()=>{var v,A;try{await Z1_(g),r(he({type:"success",message:"Remove skill successfully"})),s({currentPage:1})}catch(I){r(he({type:"danger",message:((A=(v=I.response)==null?void 0:v.data)==null?void 0:A.title)||I.message||"Error occured"}))}}}))}catch(v){r(he({type:"danger",message:((w=(p=v.response)==null?void 0:p.data)==null?void 0:w.title)||v.message||"Error occured"}))}r(me(!1))},[n]);return C.useEffect(()=>{document.title=sk_},[]),C.useEffect(()=>{h()},[n]),{skillList:e,totalItems:t,filters:n,changeFilters:s,getData:h,removeData:c,classFontSize:l}},Ps={name:"",description:"",path:"",parentSkillId:null},ok_=()=>{const e=ke.useDispatch(),[t,_]=C.useState(0),[n,s]=C.useState(Ps),[r,l]=C.useState(!1),h=async()=>{localStorage.setItem(window.location.href,"true"),l(!0)},c=async()=>{localStorage.getItem(window.location.href)&&localStorage.removeItem(window.location.href),l(!1)};C.useEffect(()=>{t?p():s(Ps)},[t]);const g=()=>{_(0),s(Ps)};C.useEffect(()=>{c()},[]);const p=C.useCallback(async()=>{var v,A;e(me(!0));try{const I=await U1_(t);s(I.data)}catch(I){e(he({type:"danger",message:((A=(v=I.response)==null?void 0:v.data)==null?void 0:A.title)||I.message}))}e(me(!1))},[t]),w=C.useCallback(async(v,A)=>{var I,E;e(me(!0));try{await(t?Y1_:X1_)(v),e(he({type:"success",message:`${t?"Update":"Create"} skill successfully`})),A&&A(),t&&_(0)}catch($){e(he({type:"danger",message:((E=(I=$.response)==null?void 0:I.data)==null?void 0:E.title)||$.message}))}e(me(!1))},[t,n]);return{id:t,setId:_,skillDetail:n,confirmData:w,initValue:Ps,reset:g,edited:r,setEdited:l,setEditedTrue:h,setEditedFalse:c}},ak_=()=>{const e=C.useRef(null),{t}=yt.useTranslation(),{skillList:_,totalItems:n,filters:s,changeFilters:r,getData:l,removeData:h,classFontSize:c}=nk_(),{id:g,setId:p,skillDetail:w,confirmData:v,reset:A,edited:I,setEdited:E,setEditedTrue:$,setEditedFalse:k}=ok_(),T=P=>{p(P||0),e&&e.current&&e.current.toggle()},j=P=>{v(P,()=>{e&&e.current&&e.current.toggle(),l()}),k()},R=P=>{h(P)},M=()=>A();return o.jsxs("div",{className:`fadeIn animated ${L[c]}`,children:[o.jsx(ek_,{ref:e,header:t(g?"edit_skill":"create_skill"),confirmText:t(g?"update":"create"),onCancel:M,onConfirm:j,skillDetail:w,edited:I,setEdited:E,setEditedTrue:$,setEditedFalse:k,isDisabled:g,classFontSize:c}),o.jsx(fs,{when:I}),o.jsxs(S.Row,{className:"my-2",children:[o.jsx(S.Col,{md:4,children:o.jsx(hs,{text:t("create_skill"),onClick:()=>T(),className:` ${L["custom-font-size"]}`})}),o.jsxs(S.Col,{md:4,className:`d-flex justify-content-end align-items-center ${L["custom-font-size"]}`,children:[t("total_of_skills"),": ",n]})]}),o.jsxs(S.Row,{className:"mb-2",children:[o.jsx(S.Col,{md:8,children:_&&_.length>0?o.jsxs(S.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:`align-top ${L["custom-font-size"]}`,children:t("name")}),o.jsx("th",{className:`align-top ${L["custom-font-size"]}`,children:t("description")}),o.jsx("th",{className:`text-center ${L["custom-font-size"]}`,children:t("action")})]})}),o.jsx("tbody",{children:_.map(P=>o.jsxs("tr",{children:[o.jsxs("td",{className:`align-middle ${L["custom-font-size"]}`,children:[o.jsx(G_,{label:P.name,onClick:()=>T(P.id),className:`${L["custom-font-size"]}`}),!!P.path&&o.jsx("p",{className:"mb-0 pl-3",children:o.jsx("i",{children:P.path})})]}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:P.description}),o.jsx("td",{className:`text-center align-middle ${L["custom-font-size"]}`,children:o.jsx(gs,{onClick:()=>R(P.id)})})]},P.id))})]}):o.jsx(I_,{label:t("skill")})}),o.jsx(S.Col,{md:8,className:"text-right",children:o.jsx(C_,{totalRecordCount:n,filters:s,changePageSize:P=>r({pageSize:P}),changePage:P=>r({currentPage:P}),className:`${L["custom-font-size"]}`})})]})]})},ik_=12,rk_=20,Oi=e=>{const{t}=yt.useTranslation(),_=vt.useNavigate(),n=vt.useLocation(),s=ke.useSelector(v=>v.common.language),{pathname:r}=n,{tabs:l,title:h}=e,c=v=>{if(v.startsWith("/"))_(v);else{const A=r.lastIndexOf("/"),I=r.substring(0,A+1);_(I+v)}};C.useEffect(()=>{Wn.changeLanguage(s)},[s]);const g=ke.useSelector(v=>{var A;return(A=v.common)==null?void 0:A.defaultFontSize}),p=C.useMemo(()=>g==rk_?"font-large":g==ik_?"font-small":"",[g]),w=()=>{const v=l.find(I=>{const E=I.path.startsWith("/")?I.path:`/${I.path}`;return r.endsWith(I.path)||r===E});if(!v)return o.jsx(Zn,{});const A=v.component;return o.jsxs(S.Row,{className:L[p],children:[o.jsx(S.Col,{md:12,children:o.jsx("h5",{children:t(h)})}),o.jsxs(S.Col,{xl:12,children:[o.jsx(S.Nav,{tabs:!0,children:l.map(I=>{const E=r.endsWith(I.path)||r===(I.path.startsWith("/")?I.path:`/${I.path}`);return o.jsx(S.NavItem,{children:o.jsx(S.NavLink,{className:`${E?"active":""} cursor-pointer`,onClick:()=>{c(I.path)},children:t(I.title)})},I.path)})}),o.jsx(S.TabContent,{activeTab:r,className:"border-bottom-0 border-left-0 border-right-0",children:o.jsx(S.TabPane,{tabId:r,children:o.jsx(A,{})})})]})]})};return o.jsx("div",{className:"animated fadeIn",children:w()})},To=Symbol.for("constructDateFrom");function Gi(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&To in e?e[To](t):e instanceof Date?new e.constructor(t):new Date(t)}function ck_(e,...t){const _=Gi.bind(null,t.find(n=>typeof n=="object"));return t.map(_)}function lk_(e,t,_){const[n,s]=ck_(_==null?void 0:_.in,e,t);return n.getFullYear()-s.getFullYear()}const Ws=Y.createAction("users/setUserList"),Bi=Y.createAction("users/setStudentList"),y_=`${ht}/api/user`,dk_=`${ht}/api/Account/changePassword`,uk_=`${ht}/api/account`,Vi=`${ht}/api/User`,mk_=e=>xe.get(`${y_}`,{params:e}),jo=e=>xe.get(`${y_}/${e}`),hk_=e=>xe.post(`${y_}`,e),gk_=e=>xe.put(`${y_}/${e.id}`,e),pk_=e=>xe.delete(`${y_}/${e}`),fk_=e=>xe.post(dk_,e),yk_=e=>xe.post(`${uk_}/forgotchangepassword`,e),wk_=e=>xe.post(`${Vi}/switch-user/${e}`),vk_=e=>xe.get(`${Vi}/student-assign`,{params:e}),bk_=()=>xe.get(`${ht}/api/counselor`),$k_=()=>xe.get(`${ht}/api/assistant`),Hi=e=>xe.get(`${y_}/all/teacher`,{params:e}),kk_=e=>xe.post(`${y_}/student-assign`,e),xk_=e=>xe.get(`${y_}/filters`,{params:e});var jt=(e=>(e[e.Id=0]="Id",e[e.Name=1]="Name",e[e.Email=2]="Email",e[e.Age=3]="Age",e[e.Role=4]="Role",e[e.Status=5]="Status",e[e.CreatedAt=6]="CreatedAt",e))(jt||{}),L_=(e=>(e[e.Id=0]="Id",e[e.Name=1]="Name",e[e.Email=2]="Email",e[e.Role=3]="Role",e[e.Status=4]="Status",e))(L_||{});const Wi={value:10},Ik_={searchString:"",currentPage:1,pageSize:Wi.value,isAssigned:!1},qo={assistantId:"",counselors:[],secondaryTeacherId:"",teacher:[],assistantEmail:"",secondaryTeacherEmail:""},Ck_={studentId:0,id:"",email:"",fullName:"",gradeLevel:"",phoneNumber:"",isActive:!0,dateOfBirth:"",profileImageFileName:"",quote:"",assistantName:"",assistantEmail:"",assistantUserId:"",counselors:[],secondaryTeacherName:"",secondaryTeacherEmail:"",secondaryTeacherUserId:"",teachers:[],counselorName:"",counselorEmail:"",mainTeacherName:"",mainTeacherEmail:"",teacherUserId:""},Sk_=[{name:"name",sortBy:jt.Name,searchBy:L_.Name,className:"align-top",getOption:e=>({label:e||"empty",value:e})},{name:"email",sortBy:jt.Email,searchBy:L_.Email,className:"align-top",getOption:e=>({label:e||"empty",value:e})},{name:"age",sortBy:jt.Age,className:"align-top"},{name:"role",sortBy:jt.Role,searchBy:L_.Role,className:"align-top",getOption:e=>{var t;return{label:e?(t=e==null?void 0:e.replace)==null?void 0:t.call(e,"SecondaryTeacher","SupportTeacher"):"empty",value:e}}},{name:"active_status",sortBy:jt.Status,searchBy:L_.Status,className:"align-top",options:[{label:"Active",value:"true"},{label:"Inactive",value:"false"}]},{name:"created_time",sortBy:jt.CreatedAt,className:"align-top"},{name:"action",className:"text-center"}],Ak_={currentPage:1,pageSize:200},Ek_={searchString:"",currentPage:1,pageSize:Wi.value},Tk_={[jt.Id]:"filter-id",[jt.Name]:"filter-name",[jt.Email]:"filter-email",[jt.Age]:"filter-age",[jt.Role]:"filter-role",[jt.Status]:"filter-status",[jt.CreatedAt]:"filter-createdAt"},jk_=()=>{const[e,t]=C.useState(Ek_);return{filters:e,setFilters:t,changeFilters:n=>{const s={...e,...n};s.searchString&&n.searchString&&n.searchString!=e.searchString&&(s.currentPage=1),t(s)}}},qk_="/admin/user",Nk_="/admin/create-user",Pk_="User list",Rk_="/home",Lk_="/home",Mk_="/admin/home",zk_="/parent",Dk_="/admin/schools",Fk_="/my-student?isReadOnly=true",Ok_=12,Gk_=20,Bk_=()=>{const e=vt.useNavigate(),_=new URLSearchParams(location.search).get("query"),n=ke.useSelector(j=>j.users.userList),s=ke.useSelector(j=>j.users.totalItems),r=ke.useSelector(j=>{var R;return(R=j.common)==null?void 0:R.defaultFontSize}),{filters:l,changeFilters:h}=jk_(),c=_||"",{t:g}=yt.useTranslation(),p=C.useMemo(()=>r==Gk_?"font-large":r==Ok_?"font-small":"",[r]),w=window.location.host.includes("-district"),v=ke.useDispatch(),A=C.useCallback(async()=>{var j,R;if(l.searchBy!==void 0&&l.searchByStrings!==void 0&&l.searchByStrings.length===0){v(Ws({userList:[],totalItems:0}));return}v(me(!0));try{const M=await mk_(l),{items:P,totalItems:D}=M.data;for(const O of P)O.roles=O.roles.includes("EduTeacher")?[...O.roles.filter(G=>G!=="EduTeacher"),i_.EDUTEACHER]:O.roles;v(Ws({userList:P,totalItems:D}))}catch(M){v(he({type:"danger",message:((R=(j=M.response)==null?void 0:j.data)==null?void 0:R.title)||M.message}))}v(me(!1))},[v,JSON.stringify(l)]);C.useEffect(()=>{document.title=Pk_},[]),C.useEffect(()=>{h({...l,searchString:c})},[c]),C.useEffect(()=>{A()},[JSON.stringify(l)]);const I=C.useCallback(j=>{var R,M;v(me(!0));try{v(Xt({isOpen:!0,type:"warning",message:g("do_you_want_to_remove_this_user"),onConfirm:async()=>{await E(j)}}))}catch(P){v(he({type:"danger",message:((M=(R=P.response)==null?void 0:R.data)==null?void 0:M.title)||P.message}))}v(me(!1))},[l]),E=C.useCallback(async j=>{var R,M;v(me(!0));try{await pk_(j),v(he({type:"success",message:"Remove user successfully"})),l.currentPage!==1?h({currentPage:1}):A()}catch(P){v(he({type:"danger",message:((M=(R=P.response)==null?void 0:R.data)==null?void 0:M.title)||P.message}))}v(me(!1))},[l]),$=j=>{const{token:R,id:M,firstName:P,lastName:D,roles:O,email:G,profileImageFileName:W}=j.data;sessionStorage.getItem(k_)?sessionStorage.setItem(qt,R):localStorage.setItem(qt,R),O.includes("Admin")&&localStorage.setItem("ROLES","Admin"),v(nn({id:M,firstName:P,lastName:D,roles:O,email:G,profileImageFileName:W})),w?e(Dk_):O.includes("Admin")?e(Mk_):O.includes("Teacher")||O.includes("Assistant")||O.includes("Counselor")?e(Rk_):O.includes("Student")?e(Lk_):O.includes("Parent")?e(zk_):O.includes("EduTeacher")&&e(Fk_)},k=C.useCallback(async j=>{var R,M,P;if((R=j==null?void 0:j.roles)!=null&&R.includes("Parent")){v(he({type:"danger",message:"Can't impersonate!"}));return}v(me(!0));try{const O=(await wk_((j==null?void 0:j.id)||"")).data;v(Xt({isOpen:!0,type:"warning",message:g("do_you_want_to_impersonate_this_user"),onConfirm:async()=>{var G,W;v(me(!0));try{const Q={email:O.email,password:"default",accessToken:O.token},B=await Ci(Q);localStorage.clear(),$(B)}catch(Q){he({type:"danger",message:((W=(G=Q.response)==null?void 0:G.data)==null?void 0:W.title)||Q.message})}v(me(!1))}}))}catch(D){v(he({type:"danger",message:((P=(M=D.response)==null?void 0:M.data)==null?void 0:P.title)||D.message}))}v(me(!1))},[l]);return{fullName:c,userList:n,totalItems:s,filters:l,queryName:_,getData:A,removeData:I,changeFilters:h,reDirectDetailPage:j=>{const R=j?`${qk_}/${j}`:Nk_;e(R)},switchUser:k,classFontSize:p}},Vk_=({initValue:e,onSearch:t,placeholder:_="Type something to search",className:n="",style:s={}})=>{const[r,l]=C.useState(e);C.useEffect(()=>{l(e)},[e]);const h=C.useCallback(c=>{c.key==="Enter"&&t(r)},[r,t]);return o.jsx(S.Input,{placeholder:_,value:r,onChange:c=>l(c.target.value),onKeyUp:h,className:n,style:s})},vs=C.memo(Vk_),Hk_={height:38},Ui=({text:e,initValue:t,onClick:_,onSearch:n,placeholder:s="Type something to search"})=>o.jsxs("div",{className:"d-flex align-items-center",children:[o.jsx("div",{children:o.jsx(hs,{text:e,onClick:_})}),o.jsx("div",{className:"flex-grow-1 ml-2",children:o.jsx(vs,{initValue:t,onSearch:n,placeholder:s,style:Hk_})})]});function Wk_(e){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M21 3H5a1 1 0 0 0-1 1v2.59c0 .523.213 1.037.583 1.407L10 13.414V21a1.001 1.001 0 0 0 1.447.895l4-2c.339-.17.553-.516.553-.895v-5.586l5.417-5.417c.37-.37.583-.884.583-1.407V4a1 1 0 0 0-1-1zm-6.707 9.293A.996.996 0 0 0 14 13v5.382l-2 1V13a.996.996 0 0 0-.293-.707L6 6.59V5h14.001l.002 1.583-5.71 5.71z"}}]})(e)}function Uk_(e){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19.023 16.977a35.13 35.13 0 0 1-1.367-1.384c-.372-.378-.596-.653-.596-.653l-2.8-1.337A6.962 6.962 0 0 0 16 9c0-3.859-3.14-7-7-7S2 5.141 2 9s3.14 7 7 7c1.763 0 3.37-.66 4.603-1.739l1.337 2.8s.275.224.653.596c.387.363.896.854 1.384 1.367l1.358 1.392.604.646 2.121-2.121-.646-.604c-.379-.372-.885-.866-1.391-1.36zM9 14c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z"}}]})(e)}function Xk_(e){return Nt({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3 3a1 1 0 011-1h12a1 1 0 011 1v3a1 1 0 01-.293.707L12 11.414V15a1 1 0 01-.293.707l-2 2A1 1 0 018 17v-5.586L3.293 6.707A1 1 0 013 6V3z",clipRule:"evenodd"}}]})(e)}function Yk_(e){return Nt({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]})(e)}function Us(e){return Nt({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M839.6 433.8L749 150.5a9.24 9.24 0 0 0-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 0 0-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 0 0-9.2-9.3zM416 702h-76V172c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v530h-76c-6.7 0-10.5 7.8-6.3 13l112 141.9a8 8 0 0 0 12.6 0l112-141.9c4.1-5.2.4-13-6.3-13z"}}]})(e)}function Xs(e){return Nt({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M839.6 433.8L749 150.5a9.24 9.24 0 0 0-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 0 0-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 0 0-9.2-9.3zM310.3 167.1a8 8 0 0 0-12.6 0L185.7 309c-4.2 5.3-.4 13 6.3 13h76v530c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V322h76c6.7 0 10.5-7.8 6.3-13l-112-141.9z"}}]})(e)}const Zk_=(e,t)=>{C.useEffect(()=>{function _(n){e.current&&!e.current.contains(n.target)&&(t==null||t())}return document.addEventListener("mousedown",_),()=>{document.removeEventListener("mousedown",_)}},[e.current])},Jk_=e=>{const{isOpen:t,sortBy:_,filters:n,users:s,searchBy:r,defaultOptions:l,selectedOptions:h,searchKey:c,onChangeSearchKey:g,onOptionsChange:p,onSearch:w,onClose:v,onChangeFilters:A,getOption:I}=e,[E,$]=C.useState(),[k,T]=C.useState([]),j=C.useRef(null),R=C.useRef(null);Zk_(j,v);const{t:M}=yt.useTranslation(),P=C.useCallback(()=>{var we;if(!t)return;const ne=((we=c==null?void 0:c.trim)==null?void 0:we.call(c))??"";r!=null&&!l&&(w==null||w(ne,r)),r!=null&&l&&T(l.filter(Ze=>Ze.label.toLowerCase().includes(ne.toLowerCase())))},[r,c,JSON.stringify(l),t]),D=()=>{R.current&&clearTimeout(R.current),R.current=setTimeout(P,500)},O=ne=>{const we=ne.target.value;g(we)},G=C.useCallback(()=>{p==null||p(E,r),v==null||v()},[JSON.stringify(E)]),W=C.useCallback(ne=>{const we=ne.target.value??"";let Ze=E??[],We=Ze.indexOf(we);We>-1?Ze.splice(We,1):Ze=[...Ze,we],$(Ze==null?Ze:[...Ze])},[JSON.stringify(E)]),Q=C.useCallback(ne=>{const we=ne.target.checked;$(we?void 0:[])},[]),B=C.useCallback(()=>{A==null||A({...n,sortBy:(n==null?void 0:n.isDescending)===!0?void 0:_,isDescending:(n==null?void 0:n.isDescending)===!0?void 0:!0}),v==null||v()},[JSON.stringify(n),r]),se=C.useCallback(()=>{A==null||A({...n,sortBy:(n==null?void 0:n.isDescending)===!1?void 0:_,isDescending:(n==null?void 0:n.isDescending)===!1?void 0:!1}),v==null||v()},[JSON.stringify(n),r]),K=C.useMemo(()=>I?s.map(ne=>I(ne,M)):[],[JSON.stringify(s),JSON.stringify(I)]),ae=(n==null?void 0:n.isDescending)==!1&&n.sortBy===_,Ie=!!(n!=null&&n.isDescending)&&n.sortBy===_;return C.useEffect(()=>{(n==null?void 0:n.searchBy)!==r?$(void 0):$(h)},[JSON.stringify(h),n==null?void 0:n.searchBy]),C.useEffect(()=>{T(l||[])},[JSON.stringify(l)]),C.useEffect(()=>{D()},[c,t]),{ref:j,options:K,inputRef:R,sOptions:E,isAscending:ae,isDescending:Ie,filteredOptions:k,searchKey:c,handleSearch:P,handleApplyFilter:G,handleOptionSelected:W,handleOptionSelectedAll:Q,handleSortDesc:B,handleSortAsc:se,handleChangeSearchKey:O}},Qk_=e=>{const{defaultOptions:t,onClose:_,getOption:n}=e,{ref:s,inputRef:r,options:l,sOptions:h,isAscending:c,isDescending:g,filteredOptions:p,searchKey:w,handleChangeSearchKey:v,handleApplyFilter:A,handleOptionSelected:I,handleOptionSelectedAll:E,handleSortDesc:$,handleSortAsc:k}=Jk_(e);return o.jsx(S.Popover,{...e,hideArrow:!0,children:o.jsx(S.PopoverBody,{className:"pb-3",children:o.jsxs("div",{ref:s,className:L.popover,children:[o.jsxs("div",{className:`d-flex flex-column ${L.popover__sort}`,children:[o.jsx(S.Label,{className:"font-weight-bold",children:"Sort"}),o.jsxs("div",{className:`px-1 ${L.popover__sort__item} ${c&&L["popover__sort__item--active"]}`,onClick:k,children:[o.jsx(Us,{className:"mr-1"}),"Ascending"]}),o.jsxs("div",{className:`px-1 mt-1 ${L.popover__sort__item} ${g&&L["popover__sort__item--active"]}`,onClick:$,children:[o.jsx(Xs,{className:"mr-1"}),"Descending"]})]}),(typeof n<"u"||!!t)&&o.jsxs(C.Fragment,{children:[o.jsx("div",{className:"border border-top-1 border-bottom-0 mx-1 my-2"}),o.jsxs("div",{className:"d-flex flex-column",children:[o.jsx(S.Label,{className:"font-weight-bold",children:"Filter"}),o.jsxs("div",{className:`position-relative px-1 ${L.popover__search}`,children:[o.jsx(Uk_,{className:`position-absolute ${L.popover__search__icon}`}),o.jsx(S.Input,{ref:r,className:L.popover__search__input,value:w,onChange:v})]}),o.jsxs("div",{className:`mx-1 mt-2 p-2 bg-light ${L.popover__options}`,children:[o.jsxs(S.FormGroup,{className:"d-flex align-items-center",check:!0,children:[o.jsx(S.Input,{type:"checkbox",onChange:E,checked:h==null})," ",o.jsx(S.Label,{check:!0,children:"(Select all)"})]}),!!n&&!t&&l.map(T=>o.jsxs(S.FormGroup,{className:"d-flex align-items-center",check:!0,children:[o.jsx(S.Input,{type:"checkbox",value:T.value,onChange:I,checked:(h==null?void 0:h.includes(T.value))||h==null})," ",o.jsx(S.Label,{check:!0,children:T.label})]},T.value)),!!t&&p.map(T=>o.jsxs(S.FormGroup,{className:"d-flex align-items-center",check:!0,children:[o.jsx(S.Input,{type:"checkbox",value:T.value,onChange:I,checked:(h==null?void 0:h.includes(T.value))||h==null})," ",o.jsx(S.Label,{check:!0,children:T.label})]},T.value))]})]}),o.jsxs("div",{className:"d-flex justify-content-end mt-3",children:[o.jsx(S.Button,{color:"primary",className:"mr-2",size:"sm",onClick:A,children:"Apply Filter"}),o.jsx(S.Button,{color:"secondary",size:"sm",onClick:_,children:"Cancel"})]})]})]})})})},Kk_=({data:e,popoverId:t,filters:_,searchString:n,users:s,selectedOptions:r,onOptionsChange:l,onSearch:h,onChangeFilters:c,onOpenFilter:g,onClose:p})=>{var T;const{t:w}=yt.useTranslation(),[v,A]=C.useState(""),I=C.useMemo(()=>e.sortBy!=null?Tk_[e.sortBy]:"",[e.sortBy]),E=C.useMemo(()=>t===I,[I,t]),$=()=>{g==null||g(I,e.searchBy,v,e.sortBy)},k=j=>{A(j)};return o.jsx("th",{className:e.className,children:I&&e.sortBy!==void 0?o.jsxs("div",{className:`w-100 d-flex justify-content-between align-items-center ${L["table-filter-icon"]}`,children:[w(e.name),o.jsxs("div",{className:"ml-2 p-1",id:I,onClick:$,style:{cursor:"pointer"},children:[e.sortBy!==void 0&&e.sortBy===(_==null?void 0:_.sortBy)&&o.jsx("span",{children:_.isDescending?o.jsx(Xs,{}):o.jsx(Us,{})}),(T=_==null?void 0:_.searchByStrings)!=null&&T.length&&e.searchBy===(_==null?void 0:_.searchBy)?o.jsx(Xk_,{}):o.jsx(Wk_,{})]}),o.jsx(Qk_,{placement:"bottom-end",target:I,users:s,isOpen:E,filters:_,sortBy:e.sortBy,searchKey:v,searchBy:e.searchBy,searchString:n,defaultOptions:e.options,selectedOptions:r,onClose:p,onSearch:h,getOption:e.getOption,onChangeFilters:c,onOptionsChange:l,onChangeSearchKey:k})]}):w(e.name)})},e2_=e=>{const{filters:t,onChangeFilters:_}=e,[n,s]=C.useState(),[r,l]=C.useState([]),[h,c]=C.useState({...Ak_,isDescending:t.isDescending,searchString:t.searchString}),g=ke.useDispatch(),p=C.useCallback(async()=>{var E,$,k;try{const j=((E=(await xk_(h)).data)==null?void 0:E.items)||[];l(j)}catch(T){g(he({type:"danger",message:((k=($=T.response)==null?void 0:$.data)==null?void 0:k.title)||T.message}))}},[JSON.stringify(h)]),w=C.useCallback((E,$,k,T)=>{s(E),c({...h,searchBy:$,searchStringBy:k,isDescending:t.sortBy===T?t.isDescending:void 0,searchString:t.searchString})},[JSON.stringify(h),t.isDescending,t.searchString]),v=()=>{s("")},A=C.useCallback((E,$)=>{c({...h,searchBy:$,searchStringBy:E})},[JSON.stringify(h)]),I=C.useCallback((E,$)=>{$&&(_==null||_({...t,[L_[$]]:E}))},[JSON.stringify(t)]);return C.useEffect(()=>{h.searchBy!==void 0&&p()},[JSON.stringify(h)]),{popoverFilters:h,popoverId:n,users:r,handleFilterIcon:w,handleCloseFilter:v,handleSearch:A,handleChangeFilters:I}},t2_=({headers:e,filters:t,onChangeFilters:_})=>{const{popoverId:n,users:s,handleFilterIcon:r,handleCloseFilter:l,handleSearch:h,handleChangeFilters:c}=e2_({filters:t,onChangeFilters:_});return o.jsx("tr",{children:e.map(g=>o.jsx(Kk_,{users:s,data:g,filters:t,popoverId:n,selectedOptions:t.searchByStrings,onSearch:h,onClose:l,onOpenFilter:r,onChangeFilters:_,onOptionsChange:c},g.name))})},_2_=e=>e?e.replace(/YYYY/g,"yyyy").replace(/YY/g,"yy").replace(/DD/g,"dd").replace(/D/g,"d").replace(/Do/g,"do").replace(/MMMM/g,"MMMM").replace(/MMM/g,"MMM").replace(/MM/g,"MM").replace(/M/g,"M").replace(/HH/g,"HH").replace(/hh/g,"hh").replace(/mm/g,"mm").replace(/ss/g,"ss").replace(/A/g,"aa"):"yyyy-MM-dd",ln=(e,t)=>{if(e===di)return"";try{const _=e.includes("Z")||e.includes("+")?e:`${e.replace(" ","T")}Z`,n=new Date(_);return isNaN(n.getTime())?"":m_.format(n,_2_(t))}catch{return""}},s2_=()=>{const{fullName:e,queryName:t,userList:_,totalItems:n,filters:s,removeData:r,changeFilters:l,reDirectDetailPage:h,switchUser:c,classFontSize:g}=Bk_(),{t:p}=yt.useTranslation();return o.jsxs("div",{className:`fadeIn animated h-100 pt-3 ${L[g]}`,children:[o.jsx("h5",{className:`mb-2 ${L["custom-title-font-size"]}`,children:p("user")}),o.jsxs(S.Row,{className:`my-2 ${L["custom-font-size"]}`,children:[o.jsx(S.Col,{md:8,children:o.jsx(Ui,{text:p("create_user"),onClick:()=>h(),initValue:t||"",onSearch:w=>l({searchString:w}),placeholder:p("type_something_to_search_by_user_name")})}),o.jsxs(S.Col,{md:4,className:`d-flex justify-content-end align-items-center ${L["custom-font-size"]}`,children:[p("total_of_users"),": ",n]})]}),o.jsxs(S.Row,{className:"mb-2",children:[o.jsx(S.Col,{md:12,children:o.jsx("div",{children:o.jsxs(S.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[o.jsx("thead",{children:o.jsx(t2_,{headers:Sk_,filters:s,fullName:e,onChangeFilters:l})}),o.jsxs("tbody",{children:[_&&_.length>0&&_.map(w=>o.jsxs("tr",{children:[o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:o.jsx(G_,{label:`${w.fullName}`,onClick:()=>h(w.id)})}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:w.email}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:w.dateOfBirth!==di&&lk_(new Date,El.toZonedTime(w.dateOfBirth,Intl.DateTimeFormat().resolvedOptions().timeZone))}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:!!w.roles&&w.roles.map(v=>v==="SecondaryTeacher"?"SupportTeacher":v).join(", ")}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:p(w.isActive?"active":"inactive")}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:ln(w==null?void 0:w.createTime,"yyyy-MM-DD HH:mm")}),o.jsxs("td",{className:`align-middle text-center ${L["custom-font-size"]}`,children:[o.jsx(j$_,{style:{fontSize:"18px",marginRight:"10px",cursor:"pointer"},onClick:()=>c(w)}),o.jsx(gs,{onClick:()=>r(w.id)})]})]},w.id)),(!_||!_.length)&&o.jsx("tr",{children:o.jsx("td",{colSpan:12,className:"p-0",children:o.jsx(I_,{className:"mb-0",label:p("user")})})})]})]})})}),o.jsx(S.Col,{md:12,children:o.jsx(C_,{filters:s,totalRecordCount:n,changePageSize:w=>l({pageSize:w}),changePage:w=>l({currentPage:w}),className:`${L["custom-font-size"]}`})})]})]})};function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var _=arguments[t];for(var n in _)({}).hasOwnProperty.call(_,n)&&(e[n]=_[n])}return e},Te.apply(null,arguments)}function x_(e){"@babel/helpers - typeof";return x_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x_(e)}function n2_(e,t){if(x_(e)!="object"||!e)return e;var _=e[Symbol.toPrimitive];if(_!==void 0){var n=_.call(e,t);if(x_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xi(e){var t=n2_(e,"string");return x_(t)=="symbol"?t:t+""}function ns(e,t,_){return(t=Xi(t))in e?Object.defineProperty(e,t,{value:_,enumerable:!0,configurable:!0,writable:!0}):e[t]=_,e}function No(e,t){var _=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),_.push.apply(_,n)}return _}function Ae(e){for(var t=1;t<arguments.length;t++){var _=arguments[t]!=null?arguments[t]:{};t%2?No(Object(_),!0).forEach(function(n){ns(e,n,_[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(_)):No(Object(_)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(_,n))})}return e}function o2_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Po(e,t){for(var _=0;_<t.length;_++){var n=t[_];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Xi(n.key),n)}}function a2_(e,t,_){return t&&Po(e.prototype,t),_&&Po(e,_),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mn(e,t){return Mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(_,n){return _.__proto__=n,_},Mn(e,t)}function i2_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mn(e,t)}function Ys(e){return Ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ys(e)}function Yi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yi=function(){return!!e})()}function r2_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c2_(e,t){if(t&&(x_(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r2_(e)}function l2_(e){var t=Yi();return function(){var _,n=Ys(e);if(t){var s=Ys(this).constructor;_=Reflect.construct(n,arguments,s)}else _=n.apply(this,arguments);return c2_(this,_)}}function zn(e,t){(t==null||t>e.length)&&(t=e.length);for(var _=0,n=Array(t);_<t;_++)n[_]=e[_];return n}function d2_(e){if(Array.isArray(e))return zn(e)}function u2_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zi(e,t){if(e){if(typeof e=="string")return zn(e,t);var _={}.toString.call(e).slice(8,-1);return _==="Object"&&e.constructor&&(_=e.constructor.name),_==="Map"||_==="Set"?Array.from(e):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?zn(e,t):void 0}}function m2_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
10
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M_(e){return d2_(e)||u2_(e)||Zi(e)||m2_()}function h2_(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function g2_(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var p2_=(function(){function e(_){var n=this;this._insertTag=function(s){var r;n.tags.length===0?n.insertionPoint?r=n.insertionPoint.nextSibling:n.prepend?r=n.container.firstChild:r=n.before:r=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(s,r),n.tags.push(s)},this.isSpeedy=_.speedy===void 0?!0:_.speedy,this.tags=[],this.ctr=0,this.nonce=_.nonce,this.key=_.key,this.container=_.container,this.prepend=_.prepend,this.insertionPoint=_.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(g2_(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var r=h2_(s);try{r.insertRule(n,r.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var s;return(s=n.parentNode)==null?void 0:s.removeChild(n)}),this.tags=[],this.ctr=0},e})(),Mt="-ms-",Zs="-moz-",at="-webkit-",Ji="comm",Kn="rule",eo="decl",f2_="@import",Qi="@keyframes",y2_="@layer",w2_=Math.abs,dn=String.fromCharCode,v2_=Object.assign;function b2_(e,t){return Rt(e,0)^45?(((t<<2^Rt(e,0))<<2^Rt(e,1))<<2^Rt(e,2))<<2^Rt(e,3):0}function Ki(e){return e.trim()}function $2_(e,t){return(e=t.exec(e))?e[0]:e}function it(e,t,_){return e.replace(t,_)}function Dn(e,t){return e.indexOf(t)}function Rt(e,t){return e.charCodeAt(t)|0}function ds(e,t,_){return e.slice(t,_)}function e_(e){return e.length}function to(e){return e.length}function Rs(e,t){return t.push(e),e}function k2_(e,t){return e.map(t).join("")}var un=1,F_=1,er=0,Gt=0,Ct=0,B_="";function mn(e,t,_,n,s,r,l){return{value:e,root:t,parent:_,type:n,props:s,children:r,line:un,column:F_,length:l,return:""}}function ts(e,t){return v2_(mn("",null,null,"",null,null,0),e,{length:-e.length},t)}function x2_(){return Ct}function I2_(){return Ct=Gt>0?Rt(B_,--Gt):0,F_--,Ct===10&&(F_=1,un--),Ct}function Vt(){return Ct=Gt<er?Rt(B_,Gt++):0,F_++,Ct===10&&(F_=1,un++),Ct}function __(){return Rt(B_,Gt)}function Os(){return Gt}function bs(e,t){return ds(B_,e,t)}function us(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tr(e){return un=F_=1,er=e_(B_=e),Gt=0,[]}function _r(e){return B_="",e}function Gs(e){return Ki(bs(Gt-1,Fn(e===91?e+2:e===40?e+1:e)))}function C2_(e){for(;(Ct=__())&&Ct<33;)Vt();return us(e)>2||us(Ct)>3?"":" "}function S2_(e,t){for(;--t&&Vt()&&!(Ct<48||Ct>102||Ct>57&&Ct<65||Ct>70&&Ct<97););return bs(e,Os()+(t<6&&__()==32&&Vt()==32))}function Fn(e){for(;Vt();)switch(Ct){case e:return Gt;case 34:case 39:e!==34&&e!==39&&Fn(Ct);break;case 40:e===41&&Fn(e);break;case 92:Vt();break}return Gt}function A2_(e,t){for(;Vt()&&e+Ct!==57;)if(e+Ct===84&&__()===47)break;return"/*"+bs(t,Gt-1)+"*"+dn(e===47?e:Vt())}function E2_(e){for(;!us(__());)Vt();return bs(e,Gt)}function T2_(e){return _r(Bs("",null,null,null,[""],e=tr(e),0,[0],e))}function Bs(e,t,_,n,s,r,l,h,c){for(var g=0,p=0,w=l,v=0,A=0,I=0,E=1,$=1,k=1,T=0,j="",R=s,M=r,P=n,D=j;$;)switch(I=T,T=Vt()){case 40:if(I!=108&&Rt(D,w-1)==58){Dn(D+=it(Gs(T),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:D+=Gs(T);break;case 9:case 10:case 13:case 32:D+=C2_(I);break;case 92:D+=S2_(Os()-1,7);continue;case 47:switch(__()){case 42:case 47:Rs(j2_(A2_(Vt(),Os()),t,_),c);break;default:D+="/"}break;case 123*E:h[g++]=e_(D)*k;case 125*E:case 59:case 0:switch(T){case 0:case 125:$=0;case 59+p:k==-1&&(D=it(D,/\f/g,"")),A>0&&e_(D)-w&&Rs(A>32?Lo(D+";",n,_,w-1):Lo(it(D," ","")+";",n,_,w-2),c);break;case 59:D+=";";default:if(Rs(P=Ro(D,t,_,g,p,s,h,j,R=[],M=[],w),r),T===123)if(p===0)Bs(D,t,P,P,R,r,w,h,M);else switch(v===99&&Rt(D,3)===110?100:v){case 100:case 108:case 109:case 115:Bs(e,P,P,n&&Rs(Ro(e,P,P,0,0,s,h,j,s,R=[],w),M),s,M,w,h,n?R:M);break;default:Bs(D,P,P,P,[""],M,0,h,M)}}g=p=A=0,E=k=1,j=D="",w=l;break;case 58:w=1+e_(D),A=I;default:if(E<1){if(T==123)--E;else if(T==125&&E++==0&&I2_()==125)continue}switch(D+=dn(T),T*E){case 38:k=p>0?1:(D+="\f",-1);break;case 44:h[g++]=(e_(D)-1)*k,k=1;break;case 64:__()===45&&(D+=Gs(Vt())),v=__(),p=w=e_(j=D+=E2_(Os())),T++;break;case 45:I===45&&e_(D)==2&&(E=0)}}return r}function Ro(e,t,_,n,s,r,l,h,c,g,p){for(var w=s-1,v=s===0?r:[""],A=to(v),I=0,E=0,$=0;I<n;++I)for(var k=0,T=ds(e,w+1,w=w2_(E=l[I])),j=e;k<A;++k)(j=Ki(E>0?v[k]+" "+T:it(T,/&\f/g,v[k])))&&(c[$++]=j);return mn(e,t,_,s===0?Kn:h,c,g,p)}function j2_(e,t,_){return mn(e,t,_,Ji,dn(x2_()),ds(e,2,-2),0)}function Lo(e,t,_,n){return mn(e,t,_,eo,ds(e,0,n),ds(e,n+1,-1),n)}function z_(e,t){for(var _="",n=to(e),s=0;s<n;s++)_+=t(e[s],s,e,t)||"";return _}function q2_(e,t,_,n){switch(e.type){case y2_:if(e.children.length)break;case f2_:case eo:return e.return=e.return||e.value;case Ji:return"";case Qi:return e.return=e.value+"{"+z_(e.children,n)+"}";case Kn:e.value=e.props.join(",")}return e_(_=z_(e.children,n))?e.return=e.value+"{"+_+"}":""}function N2_(e){var t=to(e);return function(_,n,s,r){for(var l="",h=0;h<t;h++)l+=e[h](_,n,s,r)||"";return l}}function P2_(e){return function(t){t.root||(t=t.return)&&e(t)}}function R2_(e){var t=Object.create(null);return function(_){return t[_]===void 0&&(t[_]=e(_)),t[_]}}var L2_=function(t,_,n){for(var s=0,r=0;s=r,r=__(),s===38&&r===12&&(_[n]=1),!us(r);)Vt();return bs(t,Gt)},M2_=function(t,_){var n=-1,s=44;do switch(us(s)){case 0:s===38&&__()===12&&(_[n]=1),t[n]+=L2_(Gt-1,_,n);break;case 2:t[n]+=Gs(s);break;case 4:if(s===44){t[++n]=__()===58?"&\f":"",_[n]=t[n].length;break}default:t[n]+=dn(s)}while(s=Vt());return t},z2_=function(t,_){return _r(M2_(tr(t),_))},Mo=new WeakMap,D2_=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var _=t.value,n=t.parent,s=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&_.charCodeAt(0)!==58&&!Mo.get(n))&&!s){Mo.set(t,!0);for(var r=[],l=z2_(_,r),h=n.props,c=0,g=0;c<l.length;c++)for(var p=0;p<h.length;p++,g++)t.props[g]=r[c]?l[c].replace(/&\f/g,h[p]):h[p]+" "+l[c]}}},F2_=function(t){if(t.type==="decl"){var _=t.value;_.charCodeAt(0)===108&&_.charCodeAt(2)===98&&(t.return="",t.value="")}};function sr(e,t){switch(b2_(e,t)){case 5103:return at+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return at+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return at+e+Zs+e+Mt+e+e;case 6828:case 4268:return at+e+Mt+e+e;case 6165:return at+e+Mt+"flex-"+e+e;case 5187:return at+e+it(e,/(\w+).+(:[^]+)/,at+"box-$1$2"+Mt+"flex-$1$2")+e;case 5443:return at+e+Mt+"flex-item-"+it(e,/flex-|-self/,"")+e;case 4675:return at+e+Mt+"flex-line-pack"+it(e,/align-content|flex-|-self/,"")+e;case 5548:return at+e+Mt+it(e,"shrink","negative")+e;case 5292:return at+e+Mt+it(e,"basis","preferred-size")+e;case 6060:return at+"box-"+it(e,"-grow","")+at+e+Mt+it(e,"grow","positive")+e;case 4554:return at+it(e,/([^-])(transform)/g,"$1"+at+"$2")+e;case 6187:return it(it(it(e,/(zoom-|grab)/,at+"$1"),/(image-set)/,at+"$1"),e,"")+e;case 5495:case 3959:return it(e,/(image-set\([^]*)/,at+"$1$`$1");case 4968:return it(it(e,/(.+:)(flex-)?(.*)/,at+"box-pack:$3"+Mt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+at+e+e;case 4095:case 3583:case 4068:case 2532:return it(e,/(.+)-inline(.+)/,at+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(e_(e)-1-t>6)switch(Rt(e,t+1)){case 109:if(Rt(e,t+4)!==45)break;case 102:return it(e,/(.+:)(.+)-([^]+)/,"$1"+at+"$2-$3$1"+Zs+(Rt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dn(e,"stretch")?sr(it(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Rt(e,t+1)!==115)break;case 6444:switch(Rt(e,e_(e)-3-(~Dn(e,"!important")&&10))){case 107:return it(e,":",":"+at)+e;case 101:return it(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+at+(Rt(e,14)===45?"inline-":"")+"box$3$1"+at+"$2$3$1"+Mt+"$2box$3")+e}break;case 5936:switch(Rt(e,t+11)){case 114:return at+e+Mt+it(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return at+e+Mt+it(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return at+e+Mt+it(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return at+e+Mt+e+e}return e}var O2_=function(t,_,n,s){if(t.length>-1&&!t.return)switch(t.type){case eo:t.return=sr(t.value,t.length);break;case Qi:return z_([ts(t,{value:it(t.value,"@","@"+at)})],s);case Kn:if(t.length)return k2_(t.props,function(r){switch($2_(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return z_([ts(t,{props:[it(r,/:(read-\w+)/,":"+Zs+"$1")]})],s);case"::placeholder":return z_([ts(t,{props:[it(r,/:(plac\w+)/,":"+at+"input-$1")]}),ts(t,{props:[it(r,/:(plac\w+)/,":"+Zs+"$1")]}),ts(t,{props:[it(r,/:(plac\w+)/,Mt+"input-$1")]})],s)}return""})}},G2_=[O2_],B2_=function(t){var _=t.key;if(_==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(E){var $=E.getAttribute("data-emotion");$.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var s=t.stylisPlugins||G2_,r={},l,h=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+_+' "]'),function(E){for(var $=E.getAttribute("data-emotion").split(" "),k=1;k<$.length;k++)r[$[k]]=!0;h.push(E)});var c,g=[D2_,F2_];{var p,w=[q2_,P2_(function(E){p.insert(E)})],v=N2_(g.concat(s,w)),A=function($){return z_(T2_($),v)};c=function($,k,T,j){p=T,A($?$+"{"+k.styles+"}":k.styles),j&&(I.inserted[k.name]=!0)}}var I={key:_,sheet:new p2_({key:_,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:r,registered:{},insert:c};return I.sheet.hydrate(h),I};function V2_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ls={exports:{}},rt={};/** @license React v16.13.1
9
+ insertdatetime media table paste code help wordcount media`,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | image | media",images_upload_handler:async function(e,t){const _=new FormData;_.append("file",e.blob(),e.filename());try{const{data:n}=await Eo(_);t(Jt(n.key))}catch{return}},file_picker_callback:function(e){var t=document.createElement("input");t.setAttribute("type","file"),t.setAttribute("accept","video/*"),t.onchange=async function(_){const n=_.target.files[0],{name:s}=n,r=new FormData;r.append("file",n,s);const{data:c}=await Eo(r);e(Jt(c.key))},t.click()}},Mi={email:v1_,question:b1_,answer:$1_,tutorial:k1_},x1_={id:0,subject:"",categoryId:0,body:"",attachments:[]},I1_="/admin/email-template",C1_="Email template detail",S1_=4194304,A1_=e=>{let t;const _=ke.useDispatch(),n=vt.useNavigate(),[s,r]=C.useState(x1_),[c,h]=C.useState(!1),l=async()=>{localStorage.setItem(window.location.href,"true"),h(!0)},[g,p]=C.useState([]),[w,v]=C.useState([]);C.useEffect(()=>{document.title=C1_,h(!1),localStorage.getItem(window.location.href)&&localStorage.removeItem(window.location.href)},[]),C.useEffect(()=>{e&&A()},[e]);const A=C.useCallback(async()=>{var P,D;_(me(!0));try{const O=await L$_(e);r({id:O.data.id,subject:O.data.subject,categoryId:O.data.category.id,body:O.data.body,attachments:O.data.attachments||[]}),document.title=O.data.subject,t&&t.editor.execCommand("mceSetContent",!1,O.data.body)}catch(O){_(he({type:"danger",message:((D=(P=O.response)==null?void 0:P.data)==null?void 0:D.title)||O.message}))}_(me(!1))},[e]),I=P=>t=P,E=P=>{t&&t.editor.execCommand("mceInsertContent",!1,` ${P.label}`)},$=C.useCallback(()=>{n(I1_)},[]),k=C.useCallback(async P=>{var D,O;_(me(!0));try{if(w&&w.length){const Q=(await M()).map(B=>({key:B.data.key,name:B.data.name}));P.attachments=[...P.attachments,...Q]}await(e?z$_:M$_)(P),_(he({type:"success",message:`${e?"Update":"Create"} template successfully`})),$()}catch(G){_(he({type:"danger",message:((O=(D=G.response)==null?void 0:D.data)==null?void 0:O.title)||G.message}))}_(me(!1))},[e,w]),T=()=>{const P=document.getElementsByClassName("input-attachment"),D=document.createElement("input"),O=document.getElementById("email-detail");O==null||O.append(D),D.className="input-attachment",D.id=`inputAttachment-${P.length+1}`,D.type="file",D.style.display="none",D.setAttribute("multiple","multiple"),D.addEventListener("change",j),D.click()},j=()=>{const P=[];let D=0;const O=document.getElementsByClassName("input-attachment");for(const G of O)for(const W of G.files)D+=W.size,D>S1_&&(_(he({type:"danger",message:"Max attachment size is 4MB"})),D-=W.size,G.remove());for(const G of O)for(const W of G.files){const{name:Q}=W;!g.includes(W)&&!P.some(B=>B.name===Q)&&P.push({name:Q,inputId:G.id})}v(P)},R=(P,D)=>{if(w.filter(O=>O.inputId===P).length===1){const O=document.getElementById(P);O==null||O.remove();let G=w.filter(W=>W.inputId===P);w.filter(W=>W.inputId!==G.inputId),g.push(G),p([...g]),v([...w]);return}p([...g,D])};C.useEffect(()=>{j()},[g]);const M=async()=>{const P=document.getElementsByClassName("input-attachment"),D=[];for(const O of P)for(const G of O.files){const{name:W}=G,Q=new FormData;Q.append("file",G,W),D.push(Ri(Q))}return Promise.all(D)};return{emailTemplateDetail:s,setEditorRef:I,addParams:E,backToList:$,confirmData:k,edited:c,setEdited:h,setEditedTrue:l,onAttachFile:T,updateAttachment:j,fileUpload:w,removeAttachment:R}},E1_=nt.object({subject:nt.string().required("Template subject is required"),categoryId:nt.number().required("Template category is required").test("test category id","Template category is required",e=>e>=1),comment:nt.string(),body:nt.string().required("Template body is required")}),T1_="create_email_template",j1_="edit_email_template",q1_=()=>{const{id:e}=vt.useParams(),{t}=yt.useTranslation(),{classFontSize:_}=Jn(),{emailTemplateDetail:n,setEditorRef:s,addParams:r,backToList:c,confirmData:h,edited:l,setEdited:g,setEditedTrue:p,onAttachFile:w,fileUpload:v,removeAttachment:A}=A1_(parseInt(e||"0")),I=e?j1_:T1_,E=e?"update":"create",$=ke.useSelector(k=>k.mailCategory.mailCategoryList);return o.jsx(c_.Formik,{initialValues:n,enableReinitialize:!0,validationSchema:E1_,onSubmit:k=>{h(k),g(!1),localStorage.getItem(window.location.href)&&localStorage.removeItem(window.location.href)},children:k=>{const{values:T,touched:j,errors:R,setFieldValue:M,handleChange:P,handleBlur:D,handleSubmit:O}=k;return o.jsxs("div",{className:`animated fadeIn detail-buttons-padding ${L[_]}`,id:"email-detail",children:[o.jsx(fs,{when:l}),o.jsx("h5",{className:`mb-2 ${L["custom-title-font-size"]}`,children:t(I)}),o.jsxs(S.Row,{className:"my-2",children:[o.jsxs(S.Col,{md:8,children:[o.jsx(zt,{className:` ${L["custom-font-size"]}`,text:t("mail_subject")}),o.jsx(S.Input,{placeholder:t("mail_subject_nm"),name:"subject",value:T.subject,onChange:G=>{P(G),p()},onBlur:D("subject"),className:`selector-input ${L["custom-font-size"]}`}),j.subject&&R.subject&&o.jsx(kt,{text:R.subject})]}),o.jsxs(S.Col,{md:4,children:[o.jsx(zt,{className:` ${L["custom-font-size"]}`,text:t("category")}),o.jsx(Z$_,{onChange:G=>{M("categoryId",G.value),p()},id:T.categoryId,className:` ${L["custom-font-size"]}`}),j.categoryId&&R.categoryId&&o.jsx(kt,{text:R.categoryId})]})]}),o.jsxs(S.Row,{className:"mb-2",children:[o.jsx(S.Col,{md:8,children:o.jsxs(S.Row,{children:[o.jsxs(S.Col,{md:12,className:"mb-2",children:[o.jsx(zt,{className:` ${L["custom-font-size"]}`,text:t("mail_body")}),(n.body||!e)&&o.jsx(Al.Editor,{ref:G=>s(G),tinymceScriptSrc:"./tinymce/tinymce.min.js",initialValue:n.body,init:Mi.email,onEditorChange:G=>{M("body",G),p()}}),j.body&&R.body&&o.jsx(kt,{text:R.body})]}),o.jsx(S.Col,{md:12,children:o.jsxs(S.Row,{children:[o.jsx(S.Col,{md:3,children:o.jsx(S.Button,{color:"link",size:"sm",onClick:w,className:`pl-0 ${L["custom-font-size"]}`,children:t("add_attachment")})}),o.jsx(S.Col,{md:12,children:o.jsxs(S.Row,{children:[T.attachments.map(G=>o.jsx(S.Col,{md:2,children:o.jsx(Ao,{label:G.name,onRemove:()=>M("attachments",T.attachments.filter(W=>W.name!==G.name)),className:` ${L["custom-font-size"]}`})},G.key)),v.map((G,W)=>o.jsx(S.Col,{md:2,className:"d-flex align-items-center",children:o.jsx(Ao,{label:G.name,onRemove:()=>A(G.inputId,G.name),className:` ${L["custom-font-size"]}`})},W))]})})]})})]})}),o.jsxs(S.Col,{md:4,children:[o.jsx(S.Label,{className:` ${L["custom-font-size"]}`,children:t("mail_params")}),o.jsx(Y$_,{onClick:G=>r(G),isResetPasswordTemplate:T.categoryId==($&&$.length>0&&$.filter(G=>G.name=="Reset password")[0].id),className:` ${L["custom-font-size"]}`})]})]}),o.jsx(Qn,{confirmText:E,onConfirm:O,onCancel:c,className:` ${L["custom-font-size"]}`})]})}})},N1_=(e,t)=>{const{t:_}=yt.useTranslation(),{header:n,children:s,onConfirm:r,onCancel:c,confirmText:h,cancelText:l,noFooter:g,size:p,edited:w,setEditedFalse:v,className:A}=e,[I,E]=C.useState(!1),$=ke.useDispatch(),k=M=>{var P,D;try{$(Xt({isOpen:!0,type:"warning",message:"Are you sure to cancel?",onConfirm:async()=>{M()}}))}catch(O){$(he({type:"danger",message:((D=(P=O.response)==null?void 0:P.data)==null?void 0:D.title)||O.message}))}},T=()=>{v&&v(),E(!I),I&&c&&c()},j=C.useCallback((M,P)=>{M?k(()=>{T(),P&&P()}):(T(),P&&P())},[I]),R=C.useCallback(()=>{j(!!w,()=>{c&&c()})},[j,c,w]);return C.useImperativeHandle(t,()=>({toggle:j})),o.jsxs(S.Modal,{isOpen:I,toggle:()=>j(!!w),size:p,className:L[A],children:[o.jsx(S.ModalHeader,{className:`${L["custom-title-font-size"]}`,toggle:()=>j(!!w),children:n}),o.jsx(S.ModalBody,{children:s}),!g&&o.jsxs(S.ModalFooter,{className:"text-right",children:[r&&o.jsx(S.Button,{color:"primary",onClick:r,className:` ${L["custom-font-size"]}`,children:h||_("confirm")}),o.jsx(S.Button,{onClick:R,className:` ${L["custom-font-size"]}`,children:l||_("cancel")})]})]})},cn=C.forwardRef(N1_),P1_=nt.object({question:nt.string().required("Question is required"),answer:nt.string().required("Answer is required")}),R1_=(e,t)=>{const{header:_,confirmText:n,onConfirm:s,faqDetail:r,onCancel:c,edited:h,setEdited:l,setEditedTrue:g,setEditedFalse:p}=e;return o.jsx(c_.Formik,{initialValues:r,enableReinitialize:!0,validationSchema:P1_,onSubmit:(w,v)=>{s(w),v.resetForm()},children:w=>{const{values:v,touched:A,errors:I,handleChange:E,handleBlur:$,handleSubmit:k}=w;return o.jsx(cn,{header:_,confirmText:n,onConfirm:k,onCancel:c,ref:t,edited:h,setEdited:l,setEditedFalse:p,children:o.jsxs(S.Row,{children:[o.jsxs(S.Col,{md:12,children:[o.jsx(zt,{text:"Question"}),o.jsx(S.Input,{type:"textarea",name:"question",placeholder:"Question",value:v.question,onChange:T=>{E(T),g()},onBlur:$("question")}),A.question&&I.question&&o.jsx(kt,{text:I.question})]}),o.jsxs(S.Col,{md:12,className:"pt-2",children:[o.jsx(zt,{text:"Answer"}),o.jsx(S.Input,{type:"textarea",rows:5,name:"answer",placeholder:"Answer",value:v.answer,onChange:T=>{E(T),g()},onBlur:$("answer")}),A.answer&&I.answer&&o.jsx(kt,{text:I.answer})]})]})})}})},L1_=C.forwardRef(R1_),zi=Y.createAction("faqs/setFaqList"),ys=`${ht}/api/SystemFaq`,M1_=e=>xe.get(ys,{params:e}),z1_=e=>xe.get(`${ys}/${e}`),D1_=e=>xe.post(ys,e),F1_=e=>xe.put(`${ys}/${e.id}`,e),O1_=e=>xe.delete(`${ys}/${e}`),G1_="FAQ list",B1_=()=>{const e=ke.useSelector(h=>h.faqs.faqList),t=ke.useSelector(h=>h.faqs.totalItems),{filters:_,changeFilters:n}=an(),s=ke.useDispatch(),r=C.useCallback(async()=>{var h,l;s(me(!0));try{const g=await M1_(_),{items:p,totalItems:w}=g.data;s(zi({faqList:p,totalItems:w}))}catch(g){s(he({type:"danger",message:((l=(h=g.response)==null?void 0:h.data)==null?void 0:l.title)||g.message}))}s(me(!1))},[s,_]),c=C.useCallback(h=>{var l,g;s(me(!0));try{s(Xt({isOpen:!0,type:"warning",message:"Do you want to remove this FAQ?",onConfirm:async()=>{await O1_(h),s(he({type:"success",message:"Remove question successfully"})),n({currentPage:1})}}))}catch(p){s(he({type:"danger",message:((g=(l=p.response)==null?void 0:l.data)==null?void 0:g.title)||p.message}))}s(me(!1))},[_]);return C.useEffect(()=>{document.title=G1_},[]),C.useEffect(()=>{r()},[_]),{faqList:e,totalItems:t,filters:_,changeFilters:n,getData:r,removeData:c}},Ns={question:"",answer:""},V1_=()=>{const e=ke.useDispatch(),[t,_]=C.useState(0),[n,s]=C.useState(Ns),[r,c]=C.useState(!1),h=async()=>{localStorage.setItem(window.location.href,"true"),c(!0)},l=async()=>{localStorage.getItem(window.location.href)&&localStorage.removeItem(window.location.href),c(!1)};C.useEffect(()=>{t?p():s(Ns)},[t]),C.useEffect(()=>{l()},[]);const g=()=>{s(Ns),_(0)},p=C.useCallback(async()=>{var v,A;e(me(!0));try{const I=await z1_(t);s(I.data)}catch(I){e(he({type:"danger",message:((A=(v=I.response)==null?void 0:v.data)==null?void 0:A.title)||I.message}))}e(me(!1))},[t]),w=C.useCallback(async(v,A)=>{var I,E;e(me(!0));try{await(t?F1_:D1_)(v),e(he({type:"success",message:`${t?"Update":"Create"} FAQ successfully`})),A&&A(),t&&_(0)}catch($){e(he({type:"danger",message:((E=(I=$.response)==null?void 0:I.data)==null?void 0:E.title)||$.message}))}e(me(!1))},[t,n]);return{id:t,setId:_,faqDetail:n,confirmData:w,initValue:Ns,reset:g,edited:r,setEdited:c,setEditedTrue:h,setEditedFalse:l}},H1_="FAQ",W1_=()=>{const e=C.useRef(null),{faqList:t,totalItems:_,filters:n,changeFilters:s,getData:r,removeData:c}=B1_(),{id:h,setId:l,faqDetail:g,confirmData:p,reset:w,edited:v,setEdited:A,setEditedTrue:I,setEditedFalse:E}=V1_(),$=R=>{l(R||0),e&&e.current&&e.current.toggle()},k=R=>{p(R,()=>{e&&e.current&&e.current.toggle(),r()}),E()},T=R=>{c(R)},j=()=>w();return o.jsxs("div",{className:"fadeIn animated",children:[o.jsx(L1_,{ref:e,header:h?"Edit FAQ":"Create FAQ",confirmText:h?"Update":"Create",onConfirm:k,onCancel:j,faqDetail:g,edited:v,setEdited:A,setEditedTrue:I,setEditedFalse:E}),o.jsx(fs,{when:v}),o.jsx("h5",{className:"mb-2",children:H1_}),o.jsxs(S.Row,{className:"my-2",children:[o.jsx(S.Col,{md:4,children:o.jsx(hs,{text:"Create FAQ",onClick:()=>$()})}),o.jsxs(S.Col,{md:4,className:"d-flex align-items-center justify-content-end",children:["Total of FAQs: ",_]})]}),o.jsxs(S.Row,{className:"mb-2",children:[o.jsx(S.Col,{md:8,children:t&&t.length>0?o.jsxs(S.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:"align-top",children:"Question"}),o.jsx("th",{className:"align-top",children:"Answer"}),o.jsx("th",{className:"text-center",children:"Action"})]})}),o.jsx("tbody",{children:t.map(R=>o.jsxs("tr",{children:[o.jsx("td",{className:"align-middle",children:o.jsx(G_,{label:R.question,onClick:()=>$(R.id)})}),o.jsx("td",{className:"align-middle",children:R.answer}),o.jsx("td",{className:"text-center align-middle",children:o.jsx(gs,{onClick:()=>T(R.id)})})]},R.id))})]}):o.jsx(I_,{label:"FAQ"})}),o.jsx(S.Col,{md:8,children:o.jsx(C_,{filters:n,totalRecordCount:_,changePageSize:R=>s({pageSize:R}),changePage:R=>s({currentPage:R})})})]})]})},D_=({defaultValue:e,options:t,isDisabled:_,scrollBottom:n,className:s,...r})=>{const c=e!==null&&typeof e<"u"&&t.find(h=>h.value===e)||null;return o.jsx(p_,{isDisabled:_,options:t,value:c,menuPlacement:n?"top":"auto",className:s,...r})},ws=`${ht}/api/Skill`,Di=e=>xe.get(ws,{params:e}),U1_=e=>xe.get(`${ws}/${e}`),X1_=e=>xe.post(ws,e),Y1_=e=>xe.put(`${ws}/${e.id}`,e),Z1_=e=>xe.delete(`${ws}/${e}`),J1_=e=>{const[t,_]=C.useState([]);C.useEffect(()=>{n()},[]);const n=async()=>{try{const l=await Di();_(l.data.items)}catch(l){console.error(l.message)}},{id:s,isDisabled:r,className:c}=e,h=t.map(l=>({id:l.id,value:l.id,label:l.path?`${l.path}/${l.name}`:l.name}));return o.jsx(D_,{options:h,defaultValue:s,...e,isDisabled:r,className:c})},Q1_=nt.object({name:nt.string().required("Name is required"),description:nt.string()}),K1_=(e,t)=>{const{t:_}=yt.useTranslation(),{header:n,confirmText:s,onConfirm:r,skillDetail:c,onCancel:h,edited:l,setEdited:g,setEditedTrue:p,setEditedFalse:w,isDisabled:v,classFontSize:A}=e;return o.jsx(c_.Formik,{initialValues:c,enableReinitialize:!0,validationSchema:Q1_,onSubmit:(I,E)=>{r(I),E.resetForm()},children:I=>{const{values:E,touched:$,errors:k,handleChange:T,handleBlur:j,handleSubmit:R,resetForm:M}=I;return o.jsx(cn,{header:n,confirmText:s,onConfirm:R,ref:t,onCancel:()=>{h(),M()},edited:l,setEdited:g,setEditedFalse:w,className:A,children:o.jsxs(S.Row,{children:[o.jsxs(S.Col,{md:12,className:"mb-2",children:[o.jsx(zt,{className:`${L["custom-font-size"]}`,text:_("name")}),o.jsx(S.Input,{name:"name",placeholder:_("name"),value:E.name,onChange:P=>{T(P),p()},onBlur:j("name"),className:` ${L["custom-font-size"]}`}),$.name&&k.name&&o.jsx(kt,{text:k.name})]}),o.jsxs(S.Col,{md:12,className:"mb-2",children:[o.jsx(S.Label,{className:` ${L["custom-font-size"]}`,children:_("description")}),o.jsx(S.Input,{type:"textarea",rows:5,name:"description",placeholder:_("description"),value:E.description,onChange:P=>{T(P),p()},onBlur:j("description"),className:` ${L["custom-font-size"]}`})]}),o.jsxs(S.Col,{md:12,className:"mb-2",children:[o.jsx(S.Label,{className:` ${L["custom-font-size"]}`,children:_("parent_category")}),o.jsx(J1_,{isDisabled:v,onChange:P=>{I.setFieldValue("parentSkillId",P.value),p()},id:E.parentSkillId,className:` ${L["custom-font-size"]}`})]})]})})}})},ek_=C.forwardRef(K1_),Fi=Y.createAction("skills/setSkillList"),tk_=12,_k_=20,sk_="Skill list",nk_=()=>{const e=ke.useSelector(g=>g.skills.skillList),t=ke.useSelector(g=>g.skills.totalItems),_=ke.useSelector(g=>{var p;return(p=g.common)==null?void 0:p.defaultFontSize}),{filters:n,changeFilters:s}=an(),r=ke.useDispatch(),c=C.useMemo(()=>_==_k_?"font-large":_==tk_?"font-small":"",[_]),h=C.useCallback(async()=>{var g,p;r(me(!0));try{const w=await Di(n),{items:v,totalItems:A}=w.data;r(Fi({skillList:v,totalItems:A}))}catch(w){r(he({type:"danger",message:((p=(g=w.response)==null?void 0:g.data)==null?void 0:p.title)||w.message}))}r(me(!1))},[r,n]),l=C.useCallback(g=>{var p,w;r(me(!0));try{r(Xt({isOpen:!0,type:"warning",message:"Do you want to remove this skill?",onConfirm:async()=>{var v,A;try{await Z1_(g),r(he({type:"success",message:"Remove skill successfully"})),s({currentPage:1})}catch(I){r(he({type:"danger",message:((A=(v=I.response)==null?void 0:v.data)==null?void 0:A.title)||I.message||"Error occured"}))}}}))}catch(v){r(he({type:"danger",message:((w=(p=v.response)==null?void 0:p.data)==null?void 0:w.title)||v.message||"Error occured"}))}r(me(!1))},[n]);return C.useEffect(()=>{document.title=sk_},[]),C.useEffect(()=>{h()},[n]),{skillList:e,totalItems:t,filters:n,changeFilters:s,getData:h,removeData:l,classFontSize:c}},Ps={name:"",description:"",path:"",parentSkillId:null},ok_=()=>{const e=ke.useDispatch(),[t,_]=C.useState(0),[n,s]=C.useState(Ps),[r,c]=C.useState(!1),h=async()=>{localStorage.setItem(window.location.href,"true"),c(!0)},l=async()=>{localStorage.getItem(window.location.href)&&localStorage.removeItem(window.location.href),c(!1)};C.useEffect(()=>{t?p():s(Ps)},[t]);const g=()=>{_(0),s(Ps)};C.useEffect(()=>{l()},[]);const p=C.useCallback(async()=>{var v,A;e(me(!0));try{const I=await U1_(t);s(I.data)}catch(I){e(he({type:"danger",message:((A=(v=I.response)==null?void 0:v.data)==null?void 0:A.title)||I.message}))}e(me(!1))},[t]),w=C.useCallback(async(v,A)=>{var I,E;e(me(!0));try{await(t?Y1_:X1_)(v),e(he({type:"success",message:`${t?"Update":"Create"} skill successfully`})),A&&A(),t&&_(0)}catch($){e(he({type:"danger",message:((E=(I=$.response)==null?void 0:I.data)==null?void 0:E.title)||$.message}))}e(me(!1))},[t,n]);return{id:t,setId:_,skillDetail:n,confirmData:w,initValue:Ps,reset:g,edited:r,setEdited:c,setEditedTrue:h,setEditedFalse:l}},ak_=()=>{const e=C.useRef(null),{t}=yt.useTranslation(),{skillList:_,totalItems:n,filters:s,changeFilters:r,getData:c,removeData:h,classFontSize:l}=nk_(),{id:g,setId:p,skillDetail:w,confirmData:v,reset:A,edited:I,setEdited:E,setEditedTrue:$,setEditedFalse:k}=ok_(),T=P=>{p(P||0),e&&e.current&&e.current.toggle()},j=P=>{v(P,()=>{e&&e.current&&e.current.toggle(),c()}),k()},R=P=>{h(P)},M=()=>A();return o.jsxs("div",{className:`fadeIn animated ${L[l]}`,children:[o.jsx(ek_,{ref:e,header:t(g?"edit_skill":"create_skill"),confirmText:t(g?"update":"create"),onCancel:M,onConfirm:j,skillDetail:w,edited:I,setEdited:E,setEditedTrue:$,setEditedFalse:k,isDisabled:g,classFontSize:l}),o.jsx(fs,{when:I}),o.jsxs(S.Row,{className:"my-2",children:[o.jsx(S.Col,{md:4,children:o.jsx(hs,{text:t("create_skill"),onClick:()=>T(),className:` ${L["custom-font-size"]}`})}),o.jsxs(S.Col,{md:4,className:`d-flex justify-content-end align-items-center ${L["custom-font-size"]}`,children:[t("total_of_skills"),": ",n]})]}),o.jsxs(S.Row,{className:"mb-2",children:[o.jsx(S.Col,{md:8,children:_&&_.length>0?o.jsxs(S.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:`align-top ${L["custom-font-size"]}`,children:t("name")}),o.jsx("th",{className:`align-top ${L["custom-font-size"]}`,children:t("description")}),o.jsx("th",{className:`text-center ${L["custom-font-size"]}`,children:t("action")})]})}),o.jsx("tbody",{children:_.map(P=>o.jsxs("tr",{children:[o.jsxs("td",{className:`align-middle ${L["custom-font-size"]}`,children:[o.jsx(G_,{label:P.name,onClick:()=>T(P.id),className:`${L["custom-font-size"]}`}),!!P.path&&o.jsx("p",{className:"mb-0 pl-3",children:o.jsx("i",{children:P.path})})]}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:P.description}),o.jsx("td",{className:`text-center align-middle ${L["custom-font-size"]}`,children:o.jsx(gs,{onClick:()=>R(P.id)})})]},P.id))})]}):o.jsx(I_,{label:t("skill")})}),o.jsx(S.Col,{md:8,className:"text-right",children:o.jsx(C_,{totalRecordCount:n,filters:s,changePageSize:P=>r({pageSize:P}),changePage:P=>r({currentPage:P}),className:`${L["custom-font-size"]}`})})]})]})},ik_=12,rk_=20,Oi=e=>{const{t}=yt.useTranslation(),_=vt.useNavigate(),n=vt.useLocation(),s=ke.useSelector(v=>v.common.language),{pathname:r}=n,{tabs:c,title:h}=e,l=v=>{if(v.startsWith("/"))_(v);else{const A=r.lastIndexOf("/"),I=r.substring(0,A+1);_(I+v)}};C.useEffect(()=>{Wn.changeLanguage(s)},[s]);const g=ke.useSelector(v=>{var A;return(A=v.common)==null?void 0:A.defaultFontSize}),p=C.useMemo(()=>g==rk_?"font-large":g==ik_?"font-small":"",[g]),w=()=>{const v=c.find(I=>{const E=I.path.startsWith("/")?I.path:`/${I.path}`;return r.endsWith(I.path)||r===E});if(!v)return o.jsx(Zn,{});const A=v.component;return o.jsxs(S.Row,{className:L[p],children:[o.jsx(S.Col,{md:12,children:o.jsx("h5",{children:t(h)})}),o.jsxs(S.Col,{xl:12,children:[o.jsx(S.Nav,{tabs:!0,children:c.map(I=>{const E=r.endsWith(I.path)||r===(I.path.startsWith("/")?I.path:`/${I.path}`);return o.jsx(S.NavItem,{children:o.jsx(S.NavLink,{className:`${E?"active":""} cursor-pointer`,onClick:()=>{l(I.path)},children:t(I.title)})},I.path)})}),o.jsx(S.TabContent,{activeTab:r,className:"border-bottom-0 border-left-0 border-right-0",children:o.jsx(S.TabPane,{tabId:r,children:o.jsx(A,{})})})]})]})};return o.jsx("div",{className:"animated fadeIn",children:w()})},To=Symbol.for("constructDateFrom");function Gi(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&To in e?e[To](t):e instanceof Date?new e.constructor(t):new Date(t)}function ck_(e,...t){const _=Gi.bind(null,t.find(n=>typeof n=="object"));return t.map(_)}function lk_(e,t,_){const[n,s]=ck_(_==null?void 0:_.in,e,t);return n.getFullYear()-s.getFullYear()}const Ws=Y.createAction("users/setUserList"),Bi=Y.createAction("users/setStudentList"),y_=`${ht}/api/user`,dk_=`${ht}/api/Account/changePassword`,uk_=`${ht}/api/account`,Vi=`${ht}/api/User`,mk_=e=>xe.get(`${y_}`,{params:e}),jo=e=>xe.get(`${y_}/${e}`),hk_=e=>xe.post(`${y_}`,e),gk_=e=>xe.put(`${y_}/${e.id}`,e),pk_=e=>xe.delete(`${y_}/${e}`),fk_=e=>xe.post(dk_,e),yk_=e=>xe.post(`${uk_}/forgotchangepassword`,e),wk_=e=>xe.post(`${Vi}/switch-user/${e}`),vk_=e=>xe.get(`${Vi}/student-assign`,{params:e}),bk_=()=>xe.get(`${ht}/api/counselor`),$k_=()=>xe.get(`${ht}/api/assistant`),Hi=e=>xe.get(`${y_}/all/teacher`,{params:e}),kk_=e=>xe.post(`${y_}/student-assign`,e),xk_=e=>xe.get(`${y_}/filters`,{params:e});var jt=(e=>(e[e.Id=0]="Id",e[e.Name=1]="Name",e[e.Email=2]="Email",e[e.Age=3]="Age",e[e.Role=4]="Role",e[e.Status=5]="Status",e[e.CreatedAt=6]="CreatedAt",e))(jt||{}),L_=(e=>(e[e.Id=0]="Id",e[e.Name=1]="Name",e[e.Email=2]="Email",e[e.Role=3]="Role",e[e.Status=4]="Status",e))(L_||{});const Wi={value:10},Ik_={searchString:"",currentPage:1,pageSize:Wi.value,isAssigned:!1},qo={assistantId:"",counselors:[],secondaryTeacherId:"",teacher:[],assistantEmail:"",secondaryTeacherEmail:""},Ck_={studentId:0,id:"",email:"",fullName:"",gradeLevel:"",phoneNumber:"",isActive:!0,dateOfBirth:"",profileImageFileName:"",quote:"",assistantName:"",assistantEmail:"",assistantUserId:"",counselors:[],secondaryTeacherName:"",secondaryTeacherEmail:"",secondaryTeacherUserId:"",teachers:[],counselorName:"",counselorEmail:"",mainTeacherName:"",mainTeacherEmail:"",teacherUserId:""},Sk_=[{name:"name",sortBy:jt.Name,searchBy:L_.Name,className:"align-top",getOption:e=>({label:e||"empty",value:e})},{name:"email",sortBy:jt.Email,searchBy:L_.Email,className:"align-top",getOption:e=>({label:e||"empty",value:e})},{name:"age",sortBy:jt.Age,className:"align-top"},{name:"role",sortBy:jt.Role,searchBy:L_.Role,className:"align-top",getOption:e=>{var t;return{label:e?(t=e==null?void 0:e.replace)==null?void 0:t.call(e,"SecondaryTeacher","SupportTeacher"):"empty",value:e}}},{name:"active_status",sortBy:jt.Status,searchBy:L_.Status,className:"align-top",options:[{label:"Active",value:"true"},{label:"Inactive",value:"false"}]},{name:"created_time",sortBy:jt.CreatedAt,className:"align-top"},{name:"action",className:"text-center"}],Ak_={currentPage:1,pageSize:200},Ek_={searchString:"",currentPage:1,pageSize:Wi.value},Tk_={[jt.Id]:"filter-id",[jt.Name]:"filter-name",[jt.Email]:"filter-email",[jt.Age]:"filter-age",[jt.Role]:"filter-role",[jt.Status]:"filter-status",[jt.CreatedAt]:"filter-createdAt"},jk_=()=>{const[e,t]=C.useState(Ek_);return{filters:e,setFilters:t,changeFilters:n=>{const s={...e,...n};s.searchString&&n.searchString&&n.searchString!=e.searchString&&(s.currentPage=1),t(s)}}},qk_="/admin/user",Nk_="/admin/create-user",Pk_="User list",Rk_="/home",Lk_="/home",Mk_="/admin/home",zk_="/parent",Dk_="/admin/schools",Fk_="/my-student?isReadOnly=true",Ok_=12,Gk_=20,Bk_=()=>{const e=vt.useNavigate(),_=new URLSearchParams(location.search).get("query"),n=ke.useSelector(j=>j.users.userList),s=ke.useSelector(j=>j.users.totalItems),r=ke.useSelector(j=>{var R;return(R=j.common)==null?void 0:R.defaultFontSize}),{filters:c,changeFilters:h}=jk_(),l=_||"",{t:g}=yt.useTranslation(),p=C.useMemo(()=>r==Gk_?"font-large":r==Ok_?"font-small":"",[r]),w=window.location.host.includes("-district"),v=ke.useDispatch(),A=C.useCallback(async()=>{var j,R;if(c.searchBy!==void 0&&c.searchByStrings!==void 0&&c.searchByStrings.length===0){v(Ws({userList:[],totalItems:0}));return}v(me(!0));try{const M=await mk_(c),{items:P,totalItems:D}=M.data;for(const O of P)O.roles=O.roles.includes("EduTeacher")?[...O.roles.filter(G=>G!=="EduTeacher"),i_.EDUTEACHER]:O.roles;v(Ws({userList:P,totalItems:D}))}catch(M){v(he({type:"danger",message:((R=(j=M.response)==null?void 0:j.data)==null?void 0:R.title)||M.message}))}v(me(!1))},[v,JSON.stringify(c)]);C.useEffect(()=>{document.title=Pk_},[]),C.useEffect(()=>{h({...c,searchString:l})},[l]),C.useEffect(()=>{A()},[JSON.stringify(c)]);const I=C.useCallback(j=>{var R,M;v(me(!0));try{v(Xt({isOpen:!0,type:"warning",message:g("do_you_want_to_remove_this_user"),onConfirm:async()=>{await E(j)}}))}catch(P){v(he({type:"danger",message:((M=(R=P.response)==null?void 0:R.data)==null?void 0:M.title)||P.message}))}v(me(!1))},[c]),E=C.useCallback(async j=>{var R,M;v(me(!0));try{await pk_(j),v(he({type:"success",message:"Remove user successfully"})),c.currentPage!==1?h({currentPage:1}):A()}catch(P){v(he({type:"danger",message:((M=(R=P.response)==null?void 0:R.data)==null?void 0:M.title)||P.message}))}v(me(!1))},[c]),$=j=>{const{token:R,id:M,firstName:P,lastName:D,roles:O,email:G,profileImageFileName:W}=j.data;sessionStorage.getItem(k_)?sessionStorage.setItem(qt,R):localStorage.setItem(qt,R),O.includes("Admin")&&localStorage.setItem("ROLES","Admin"),v(nn({id:M,firstName:P,lastName:D,roles:O,email:G,profileImageFileName:W})),w?e(Dk_):O.includes("Admin")?e(Mk_):O.includes("Teacher")||O.includes("Assistant")||O.includes("Counselor")?e(Rk_):O.includes("Student")?e(Lk_):O.includes("Parent")?e(zk_):O.includes("EduTeacher")&&e(Fk_)},k=C.useCallback(async j=>{var R,M,P;if((R=j==null?void 0:j.roles)!=null&&R.includes("Parent")){v(he({type:"danger",message:"Can't impersonate!"}));return}v(me(!0));try{const O=(await wk_((j==null?void 0:j.id)||"")).data;v(Xt({isOpen:!0,type:"warning",message:g("do_you_want_to_impersonate_this_user"),onConfirm:async()=>{var G,W;v(me(!0));try{const Q={email:O.email,password:"default",accessToken:O.token},B=await Ci(Q);localStorage.clear(),$(B)}catch(Q){he({type:"danger",message:((W=(G=Q.response)==null?void 0:G.data)==null?void 0:W.title)||Q.message})}v(me(!1))}}))}catch(D){v(he({type:"danger",message:((P=(M=D.response)==null?void 0:M.data)==null?void 0:P.title)||D.message}))}v(me(!1))},[c]);return{fullName:l,userList:n,totalItems:s,filters:c,queryName:_,getData:A,removeData:I,changeFilters:h,reDirectDetailPage:j=>{const R=j?`${qk_}/${j}`:Nk_;e(R)},switchUser:k,classFontSize:p}},Vk_=({initValue:e,onSearch:t,placeholder:_="Type something to search",className:n="",style:s={}})=>{const[r,c]=C.useState(e);C.useEffect(()=>{c(e)},[e]);const h=C.useCallback(l=>{l.key==="Enter"&&t(r)},[r,t]);return o.jsx(S.Input,{placeholder:_,value:r,onChange:l=>c(l.target.value),onKeyUp:h,className:n,style:s})},vs=C.memo(Vk_),Hk_={height:38},Ui=({text:e,initValue:t,onClick:_,onSearch:n,placeholder:s="Type something to search"})=>o.jsxs("div",{className:"d-flex align-items-center",children:[o.jsx("div",{children:o.jsx(hs,{text:e,onClick:_})}),o.jsx("div",{className:"flex-grow-1 ml-2",children:o.jsx(vs,{initValue:t,onSearch:n,placeholder:s,style:Hk_})})]});function Wk_(e){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M21 3H5a1 1 0 0 0-1 1v2.59c0 .523.213 1.037.583 1.407L10 13.414V21a1.001 1.001 0 0 0 1.447.895l4-2c.339-.17.553-.516.553-.895v-5.586l5.417-5.417c.37-.37.583-.884.583-1.407V4a1 1 0 0 0-1-1zm-6.707 9.293A.996.996 0 0 0 14 13v5.382l-2 1V13a.996.996 0 0 0-.293-.707L6 6.59V5h14.001l.002 1.583-5.71 5.71z"}}]})(e)}function Uk_(e){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19.023 16.977a35.13 35.13 0 0 1-1.367-1.384c-.372-.378-.596-.653-.596-.653l-2.8-1.337A6.962 6.962 0 0 0 16 9c0-3.859-3.14-7-7-7S2 5.141 2 9s3.14 7 7 7c1.763 0 3.37-.66 4.603-1.739l1.337 2.8s.275.224.653.596c.387.363.896.854 1.384 1.367l1.358 1.392.604.646 2.121-2.121-.646-.604c-.379-.372-.885-.866-1.391-1.36zM9 14c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z"}}]})(e)}function Xk_(e){return Nt({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3 3a1 1 0 011-1h12a1 1 0 011 1v3a1 1 0 01-.293.707L12 11.414V15a1 1 0 01-.293.707l-2 2A1 1 0 018 17v-5.586L3.293 6.707A1 1 0 013 6V3z",clipRule:"evenodd"}}]})(e)}function Yk_(e){return Nt({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]})(e)}function Us(e){return Nt({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M839.6 433.8L749 150.5a9.24 9.24 0 0 0-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 0 0-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 0 0-9.2-9.3zM416 702h-76V172c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v530h-76c-6.7 0-10.5 7.8-6.3 13l112 141.9a8 8 0 0 0 12.6 0l112-141.9c4.1-5.2.4-13-6.3-13z"}}]})(e)}function Xs(e){return Nt({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M839.6 433.8L749 150.5a9.24 9.24 0 0 0-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 0 0-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 0 0-9.2-9.3zM310.3 167.1a8 8 0 0 0-12.6 0L185.7 309c-4.2 5.3-.4 13 6.3 13h76v530c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V322h76c6.7 0 10.5-7.8 6.3-13l-112-141.9z"}}]})(e)}const Zk_=(e,t)=>{C.useEffect(()=>{function _(n){e.current&&!e.current.contains(n.target)&&(t==null||t())}return document.addEventListener("mousedown",_),()=>{document.removeEventListener("mousedown",_)}},[e.current])},Jk_=e=>{const{isOpen:t,sortBy:_,filters:n,users:s,searchBy:r,defaultOptions:c,selectedOptions:h,searchKey:l,onChangeSearchKey:g,onOptionsChange:p,onSearch:w,onClose:v,onChangeFilters:A,getOption:I}=e,[E,$]=C.useState(),[k,T]=C.useState([]),j=C.useRef(null),R=C.useRef(null);Zk_(j,v);const{t:M}=yt.useTranslation(),P=C.useCallback(()=>{var we;if(!t)return;const ne=((we=l==null?void 0:l.trim)==null?void 0:we.call(l))??"";r!=null&&!c&&(w==null||w(ne,r)),r!=null&&c&&T(c.filter(Ze=>Ze.label.toLowerCase().includes(ne.toLowerCase())))},[r,l,JSON.stringify(c),t]),D=()=>{R.current&&clearTimeout(R.current),R.current=setTimeout(P,500)},O=ne=>{const we=ne.target.value;g(we)},G=C.useCallback(()=>{p==null||p(E,r),v==null||v()},[JSON.stringify(E)]),W=C.useCallback(ne=>{const we=ne.target.value??"";let Ze=E??[],We=Ze.indexOf(we);We>-1?Ze.splice(We,1):Ze=[...Ze,we],$(Ze==null?Ze:[...Ze])},[JSON.stringify(E)]),Q=C.useCallback(ne=>{const we=ne.target.checked;$(we?void 0:[])},[]),B=C.useCallback(()=>{A==null||A({...n,sortBy:(n==null?void 0:n.isDescending)===!0?void 0:_,isDescending:(n==null?void 0:n.isDescending)===!0?void 0:!0}),v==null||v()},[JSON.stringify(n),r]),te=C.useCallback(()=>{A==null||A({...n,sortBy:(n==null?void 0:n.isDescending)===!1?void 0:_,isDescending:(n==null?void 0:n.isDescending)===!1?void 0:!1}),v==null||v()},[JSON.stringify(n),r]),K=C.useMemo(()=>I?s.map(ne=>I(ne,M)):[],[JSON.stringify(s),JSON.stringify(I)]),ae=(n==null?void 0:n.isDescending)==!1&&n.sortBy===_,Ie=!!(n!=null&&n.isDescending)&&n.sortBy===_;return C.useEffect(()=>{(n==null?void 0:n.searchBy)!==r?$(void 0):$(h)},[JSON.stringify(h),n==null?void 0:n.searchBy]),C.useEffect(()=>{T(c||[])},[JSON.stringify(c)]),C.useEffect(()=>{D()},[l,t]),{ref:j,options:K,inputRef:R,sOptions:E,isAscending:ae,isDescending:Ie,filteredOptions:k,searchKey:l,handleSearch:P,handleApplyFilter:G,handleOptionSelected:W,handleOptionSelectedAll:Q,handleSortDesc:B,handleSortAsc:te,handleChangeSearchKey:O}},Qk_=e=>{const{defaultOptions:t,onClose:_,getOption:n}=e,{ref:s,inputRef:r,options:c,sOptions:h,isAscending:l,isDescending:g,filteredOptions:p,searchKey:w,handleChangeSearchKey:v,handleApplyFilter:A,handleOptionSelected:I,handleOptionSelectedAll:E,handleSortDesc:$,handleSortAsc:k}=Jk_(e);return o.jsx(S.Popover,{...e,hideArrow:!0,children:o.jsx(S.PopoverBody,{className:"pb-3",children:o.jsxs("div",{ref:s,className:L.popover,children:[o.jsxs("div",{className:`d-flex flex-column ${L.popover__sort}`,children:[o.jsx(S.Label,{className:"font-weight-bold",children:"Sort"}),o.jsxs("div",{className:`px-1 ${L.popover__sort__item} ${l&&L["popover__sort__item--active"]}`,onClick:k,children:[o.jsx(Us,{className:"mr-1"}),"Ascending"]}),o.jsxs("div",{className:`px-1 mt-1 ${L.popover__sort__item} ${g&&L["popover__sort__item--active"]}`,onClick:$,children:[o.jsx(Xs,{className:"mr-1"}),"Descending"]})]}),(typeof n<"u"||!!t)&&o.jsxs(C.Fragment,{children:[o.jsx("div",{className:"border border-top-1 border-bottom-0 mx-1 my-2"}),o.jsxs("div",{className:"d-flex flex-column",children:[o.jsx(S.Label,{className:"font-weight-bold",children:"Filter"}),o.jsxs("div",{className:`position-relative px-1 ${L.popover__search}`,children:[o.jsx(Uk_,{className:`position-absolute ${L.popover__search__icon}`}),o.jsx(S.Input,{ref:r,className:L.popover__search__input,value:w,onChange:v})]}),o.jsxs("div",{className:`mx-1 mt-2 p-2 bg-light ${L.popover__options}`,children:[o.jsxs(S.FormGroup,{className:"d-flex align-items-center",check:!0,children:[o.jsx(S.Input,{type:"checkbox",onChange:E,checked:h==null})," ",o.jsx(S.Label,{check:!0,children:"(Select all)"})]}),!!n&&!t&&c.map(T=>o.jsxs(S.FormGroup,{className:"d-flex align-items-center",check:!0,children:[o.jsx(S.Input,{type:"checkbox",value:T.value,onChange:I,checked:(h==null?void 0:h.includes(T.value))||h==null})," ",o.jsx(S.Label,{check:!0,children:T.label})]},T.value)),!!t&&p.map(T=>o.jsxs(S.FormGroup,{className:"d-flex align-items-center",check:!0,children:[o.jsx(S.Input,{type:"checkbox",value:T.value,onChange:I,checked:(h==null?void 0:h.includes(T.value))||h==null})," ",o.jsx(S.Label,{check:!0,children:T.label})]},T.value))]})]}),o.jsxs("div",{className:"d-flex justify-content-end mt-3",children:[o.jsx(S.Button,{color:"primary",className:"mr-2",size:"sm",onClick:A,children:"Apply Filter"}),o.jsx(S.Button,{color:"secondary",size:"sm",onClick:_,children:"Cancel"})]})]})]})})})},Kk_=({data:e,popoverId:t,filters:_,searchString:n,users:s,selectedOptions:r,onOptionsChange:c,onSearch:h,onChangeFilters:l,onOpenFilter:g,onClose:p})=>{var T;const{t:w}=yt.useTranslation(),[v,A]=C.useState(""),I=C.useMemo(()=>e.sortBy!=null?Tk_[e.sortBy]:"",[e.sortBy]),E=C.useMemo(()=>t===I,[I,t]),$=()=>{g==null||g(I,e.searchBy,v,e.sortBy)},k=j=>{A(j)};return o.jsx("th",{className:e.className,children:I&&e.sortBy!==void 0?o.jsxs("div",{className:`w-100 d-flex justify-content-between align-items-center ${L["table-filter-icon"]}`,children:[w(e.name),o.jsxs("div",{className:"ml-2 p-1",id:I,onClick:$,style:{cursor:"pointer"},children:[e.sortBy!==void 0&&e.sortBy===(_==null?void 0:_.sortBy)&&o.jsx("span",{children:_.isDescending?o.jsx(Xs,{}):o.jsx(Us,{})}),(T=_==null?void 0:_.searchByStrings)!=null&&T.length&&e.searchBy===(_==null?void 0:_.searchBy)?o.jsx(Xk_,{}):o.jsx(Wk_,{})]}),o.jsx(Qk_,{placement:"bottom-end",target:I,users:s,isOpen:E,filters:_,sortBy:e.sortBy,searchKey:v,searchBy:e.searchBy,searchString:n,defaultOptions:e.options,selectedOptions:r,onClose:p,onSearch:h,getOption:e.getOption,onChangeFilters:l,onOptionsChange:c,onChangeSearchKey:k})]}):w(e.name)})},e2_=e=>{const{filters:t,onChangeFilters:_}=e,[n,s]=C.useState(),[r,c]=C.useState([]),[h,l]=C.useState({...Ak_,isDescending:t.isDescending,searchString:t.searchString}),g=ke.useDispatch(),p=C.useCallback(async()=>{var E,$,k;try{const j=((E=(await xk_(h)).data)==null?void 0:E.items)||[];c(j)}catch(T){g(he({type:"danger",message:((k=($=T.response)==null?void 0:$.data)==null?void 0:k.title)||T.message}))}},[JSON.stringify(h)]),w=C.useCallback((E,$,k,T)=>{s(E),l({...h,searchBy:$,searchStringBy:k,isDescending:t.sortBy===T?t.isDescending:void 0,searchString:t.searchString})},[JSON.stringify(h),t.isDescending,t.searchString]),v=()=>{s("")},A=C.useCallback((E,$)=>{l({...h,searchBy:$,searchStringBy:E})},[JSON.stringify(h)]),I=C.useCallback((E,$)=>{$&&(_==null||_({...t,[L_[$]]:E}))},[JSON.stringify(t)]);return C.useEffect(()=>{h.searchBy!==void 0&&p()},[JSON.stringify(h)]),{popoverFilters:h,popoverId:n,users:r,handleFilterIcon:w,handleCloseFilter:v,handleSearch:A,handleChangeFilters:I}},t2_=({headers:e,filters:t,onChangeFilters:_})=>{const{popoverId:n,users:s,handleFilterIcon:r,handleCloseFilter:c,handleSearch:h,handleChangeFilters:l}=e2_({filters:t,onChangeFilters:_});return o.jsx("tr",{children:e.map(g=>o.jsx(Kk_,{users:s,data:g,filters:t,popoverId:n,selectedOptions:t.searchByStrings,onSearch:h,onClose:c,onOpenFilter:r,onChangeFilters:_,onOptionsChange:l},g.name))})},_2_=e=>e?e.replace(/YYYY/g,"yyyy").replace(/YY/g,"yy").replace(/DD/g,"dd").replace(/D/g,"d").replace(/Do/g,"do").replace(/MMMM/g,"MMMM").replace(/MMM/g,"MMM").replace(/MM/g,"MM").replace(/M/g,"M").replace(/HH/g,"HH").replace(/hh/g,"hh").replace(/mm/g,"mm").replace(/ss/g,"ss").replace(/A/g,"aa"):"yyyy-MM-dd",ln=(e,t)=>{if(e===di)return"";try{const _=e.includes("Z")||e.includes("+")?e:`${e.replace(" ","T")}Z`,n=new Date(_);return isNaN(n.getTime())?"":m_.format(n,_2_(t))}catch{return""}},s2_=()=>{const{fullName:e,queryName:t,userList:_,totalItems:n,filters:s,removeData:r,changeFilters:c,reDirectDetailPage:h,switchUser:l,classFontSize:g}=Bk_(),{t:p}=yt.useTranslation();return o.jsxs("div",{className:`fadeIn animated h-100 pt-3 ${L[g]}`,children:[o.jsx("h5",{className:`mb-2 ${L["custom-title-font-size"]}`,children:p("user")}),o.jsxs(S.Row,{className:`my-2 ${L["custom-font-size"]}`,children:[o.jsx(S.Col,{md:8,children:o.jsx(Ui,{text:p("create_user"),onClick:()=>h(),initValue:t||"",onSearch:w=>c({searchString:w}),placeholder:p("type_something_to_search_by_user_name")})}),o.jsxs(S.Col,{md:4,className:`d-flex justify-content-end align-items-center ${L["custom-font-size"]}`,children:[p("total_of_users"),": ",n]})]}),o.jsxs(S.Row,{className:"mb-2",children:[o.jsx(S.Col,{md:12,children:o.jsx("div",{children:o.jsxs(S.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[o.jsx("thead",{children:o.jsx(t2_,{headers:Sk_,filters:s,fullName:e,onChangeFilters:c})}),o.jsxs("tbody",{children:[_&&_.length>0&&_.map(w=>o.jsxs("tr",{children:[o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:o.jsx(G_,{label:`${w.fullName}`,onClick:()=>h(w.id)})}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:w.email}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:w.dateOfBirth!==di&&lk_(new Date,El.toZonedTime(w.dateOfBirth,Intl.DateTimeFormat().resolvedOptions().timeZone))}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:!!w.roles&&w.roles.map(v=>v==="SecondaryTeacher"?"SupportTeacher":v).join(", ")}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:p(w.isActive?"active":"inactive")}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:ln(w==null?void 0:w.createTime,"yyyy-MM-DD HH:mm")}),o.jsxs("td",{className:`align-middle text-center ${L["custom-font-size"]}`,children:[o.jsx(j$_,{style:{fontSize:"18px",marginRight:"10px",cursor:"pointer"},onClick:()=>l(w)}),o.jsx(gs,{onClick:()=>r(w.id)})]})]},w.id)),(!_||!_.length)&&o.jsx("tr",{children:o.jsx("td",{colSpan:12,className:"p-0",children:o.jsx(I_,{className:"mb-0",label:p("user")})})})]})]})})}),o.jsx(S.Col,{md:12,children:o.jsx(C_,{filters:s,totalRecordCount:n,changePageSize:w=>c({pageSize:w}),changePage:w=>c({currentPage:w}),className:`${L["custom-font-size"]}`})})]})]})};function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var _=arguments[t];for(var n in _)({}).hasOwnProperty.call(_,n)&&(e[n]=_[n])}return e},Te.apply(null,arguments)}function x_(e){"@babel/helpers - typeof";return x_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x_(e)}function n2_(e,t){if(x_(e)!="object"||!e)return e;var _=e[Symbol.toPrimitive];if(_!==void 0){var n=_.call(e,t);if(x_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xi(e){var t=n2_(e,"string");return x_(t)=="symbol"?t:t+""}function ns(e,t,_){return(t=Xi(t))in e?Object.defineProperty(e,t,{value:_,enumerable:!0,configurable:!0,writable:!0}):e[t]=_,e}function No(e,t){var _=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),_.push.apply(_,n)}return _}function Ae(e){for(var t=1;t<arguments.length;t++){var _=arguments[t]!=null?arguments[t]:{};t%2?No(Object(_),!0).forEach(function(n){ns(e,n,_[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(_)):No(Object(_)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(_,n))})}return e}function o2_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Po(e,t){for(var _=0;_<t.length;_++){var n=t[_];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Xi(n.key),n)}}function a2_(e,t,_){return t&&Po(e.prototype,t),_&&Po(e,_),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mn(e,t){return Mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(_,n){return _.__proto__=n,_},Mn(e,t)}function i2_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mn(e,t)}function Ys(e){return Ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ys(e)}function Yi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yi=function(){return!!e})()}function r2_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c2_(e,t){if(t&&(x_(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r2_(e)}function l2_(e){var t=Yi();return function(){var _,n=Ys(e);if(t){var s=Ys(this).constructor;_=Reflect.construct(n,arguments,s)}else _=n.apply(this,arguments);return c2_(this,_)}}function zn(e,t){(t==null||t>e.length)&&(t=e.length);for(var _=0,n=Array(t);_<t;_++)n[_]=e[_];return n}function d2_(e){if(Array.isArray(e))return zn(e)}function u2_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zi(e,t){if(e){if(typeof e=="string")return zn(e,t);var _={}.toString.call(e).slice(8,-1);return _==="Object"&&e.constructor&&(_=e.constructor.name),_==="Map"||_==="Set"?Array.from(e):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?zn(e,t):void 0}}function m2_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
10
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M_(e){return d2_(e)||u2_(e)||Zi(e)||m2_()}function h2_(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function g2_(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var p2_=(function(){function e(_){var n=this;this._insertTag=function(s){var r;n.tags.length===0?n.insertionPoint?r=n.insertionPoint.nextSibling:n.prepend?r=n.container.firstChild:r=n.before:r=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(s,r),n.tags.push(s)},this.isSpeedy=_.speedy===void 0?!0:_.speedy,this.tags=[],this.ctr=0,this.nonce=_.nonce,this.key=_.key,this.container=_.container,this.prepend=_.prepend,this.insertionPoint=_.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(g2_(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var r=h2_(s);try{r.insertRule(n,r.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var s;return(s=n.parentNode)==null?void 0:s.removeChild(n)}),this.tags=[],this.ctr=0},e})(),Mt="-ms-",Zs="-moz-",at="-webkit-",Ji="comm",Kn="rule",eo="decl",f2_="@import",Qi="@keyframes",y2_="@layer",w2_=Math.abs,dn=String.fromCharCode,v2_=Object.assign;function b2_(e,t){return Rt(e,0)^45?(((t<<2^Rt(e,0))<<2^Rt(e,1))<<2^Rt(e,2))<<2^Rt(e,3):0}function Ki(e){return e.trim()}function $2_(e,t){return(e=t.exec(e))?e[0]:e}function it(e,t,_){return e.replace(t,_)}function Dn(e,t){return e.indexOf(t)}function Rt(e,t){return e.charCodeAt(t)|0}function ds(e,t,_){return e.slice(t,_)}function e_(e){return e.length}function to(e){return e.length}function Rs(e,t){return t.push(e),e}function k2_(e,t){return e.map(t).join("")}var un=1,F_=1,er=0,Gt=0,Ct=0,B_="";function mn(e,t,_,n,s,r,c){return{value:e,root:t,parent:_,type:n,props:s,children:r,line:un,column:F_,length:c,return:""}}function ts(e,t){return v2_(mn("",null,null,"",null,null,0),e,{length:-e.length},t)}function x2_(){return Ct}function I2_(){return Ct=Gt>0?Rt(B_,--Gt):0,F_--,Ct===10&&(F_=1,un--),Ct}function Vt(){return Ct=Gt<er?Rt(B_,Gt++):0,F_++,Ct===10&&(F_=1,un++),Ct}function __(){return Rt(B_,Gt)}function Os(){return Gt}function bs(e,t){return ds(B_,e,t)}function us(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tr(e){return un=F_=1,er=e_(B_=e),Gt=0,[]}function _r(e){return B_="",e}function Gs(e){return Ki(bs(Gt-1,Fn(e===91?e+2:e===40?e+1:e)))}function C2_(e){for(;(Ct=__())&&Ct<33;)Vt();return us(e)>2||us(Ct)>3?"":" "}function S2_(e,t){for(;--t&&Vt()&&!(Ct<48||Ct>102||Ct>57&&Ct<65||Ct>70&&Ct<97););return bs(e,Os()+(t<6&&__()==32&&Vt()==32))}function Fn(e){for(;Vt();)switch(Ct){case e:return Gt;case 34:case 39:e!==34&&e!==39&&Fn(Ct);break;case 40:e===41&&Fn(e);break;case 92:Vt();break}return Gt}function A2_(e,t){for(;Vt()&&e+Ct!==57;)if(e+Ct===84&&__()===47)break;return"/*"+bs(t,Gt-1)+"*"+dn(e===47?e:Vt())}function E2_(e){for(;!us(__());)Vt();return bs(e,Gt)}function T2_(e){return _r(Bs("",null,null,null,[""],e=tr(e),0,[0],e))}function Bs(e,t,_,n,s,r,c,h,l){for(var g=0,p=0,w=c,v=0,A=0,I=0,E=1,$=1,k=1,T=0,j="",R=s,M=r,P=n,D=j;$;)switch(I=T,T=Vt()){case 40:if(I!=108&&Rt(D,w-1)==58){Dn(D+=it(Gs(T),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:D+=Gs(T);break;case 9:case 10:case 13:case 32:D+=C2_(I);break;case 92:D+=S2_(Os()-1,7);continue;case 47:switch(__()){case 42:case 47:Rs(j2_(A2_(Vt(),Os()),t,_),l);break;default:D+="/"}break;case 123*E:h[g++]=e_(D)*k;case 125*E:case 59:case 0:switch(T){case 0:case 125:$=0;case 59+p:k==-1&&(D=it(D,/\f/g,"")),A>0&&e_(D)-w&&Rs(A>32?Lo(D+";",n,_,w-1):Lo(it(D," ","")+";",n,_,w-2),l);break;case 59:D+=";";default:if(Rs(P=Ro(D,t,_,g,p,s,h,j,R=[],M=[],w),r),T===123)if(p===0)Bs(D,t,P,P,R,r,w,h,M);else switch(v===99&&Rt(D,3)===110?100:v){case 100:case 108:case 109:case 115:Bs(e,P,P,n&&Rs(Ro(e,P,P,0,0,s,h,j,s,R=[],w),M),s,M,w,h,n?R:M);break;default:Bs(D,P,P,P,[""],M,0,h,M)}}g=p=A=0,E=k=1,j=D="",w=c;break;case 58:w=1+e_(D),A=I;default:if(E<1){if(T==123)--E;else if(T==125&&E++==0&&I2_()==125)continue}switch(D+=dn(T),T*E){case 38:k=p>0?1:(D+="\f",-1);break;case 44:h[g++]=(e_(D)-1)*k,k=1;break;case 64:__()===45&&(D+=Gs(Vt())),v=__(),p=w=e_(j=D+=E2_(Os())),T++;break;case 45:I===45&&e_(D)==2&&(E=0)}}return r}function Ro(e,t,_,n,s,r,c,h,l,g,p){for(var w=s-1,v=s===0?r:[""],A=to(v),I=0,E=0,$=0;I<n;++I)for(var k=0,T=ds(e,w+1,w=w2_(E=c[I])),j=e;k<A;++k)(j=Ki(E>0?v[k]+" "+T:it(T,/&\f/g,v[k])))&&(l[$++]=j);return mn(e,t,_,s===0?Kn:h,l,g,p)}function j2_(e,t,_){return mn(e,t,_,Ji,dn(x2_()),ds(e,2,-2),0)}function Lo(e,t,_,n){return mn(e,t,_,eo,ds(e,0,n),ds(e,n+1,-1),n)}function z_(e,t){for(var _="",n=to(e),s=0;s<n;s++)_+=t(e[s],s,e,t)||"";return _}function q2_(e,t,_,n){switch(e.type){case y2_:if(e.children.length)break;case f2_:case eo:return e.return=e.return||e.value;case Ji:return"";case Qi:return e.return=e.value+"{"+z_(e.children,n)+"}";case Kn:e.value=e.props.join(",")}return e_(_=z_(e.children,n))?e.return=e.value+"{"+_+"}":""}function N2_(e){var t=to(e);return function(_,n,s,r){for(var c="",h=0;h<t;h++)c+=e[h](_,n,s,r)||"";return c}}function P2_(e){return function(t){t.root||(t=t.return)&&e(t)}}function R2_(e){var t=Object.create(null);return function(_){return t[_]===void 0&&(t[_]=e(_)),t[_]}}var L2_=function(t,_,n){for(var s=0,r=0;s=r,r=__(),s===38&&r===12&&(_[n]=1),!us(r);)Vt();return bs(t,Gt)},M2_=function(t,_){var n=-1,s=44;do switch(us(s)){case 0:s===38&&__()===12&&(_[n]=1),t[n]+=L2_(Gt-1,_,n);break;case 2:t[n]+=Gs(s);break;case 4:if(s===44){t[++n]=__()===58?"&\f":"",_[n]=t[n].length;break}default:t[n]+=dn(s)}while(s=Vt());return t},z2_=function(t,_){return _r(M2_(tr(t),_))},Mo=new WeakMap,D2_=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var _=t.value,n=t.parent,s=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&_.charCodeAt(0)!==58&&!Mo.get(n))&&!s){Mo.set(t,!0);for(var r=[],c=z2_(_,r),h=n.props,l=0,g=0;l<c.length;l++)for(var p=0;p<h.length;p++,g++)t.props[g]=r[l]?c[l].replace(/&\f/g,h[p]):h[p]+" "+c[l]}}},F2_=function(t){if(t.type==="decl"){var _=t.value;_.charCodeAt(0)===108&&_.charCodeAt(2)===98&&(t.return="",t.value="")}};function sr(e,t){switch(b2_(e,t)){case 5103:return at+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return at+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return at+e+Zs+e+Mt+e+e;case 6828:case 4268:return at+e+Mt+e+e;case 6165:return at+e+Mt+"flex-"+e+e;case 5187:return at+e+it(e,/(\w+).+(:[^]+)/,at+"box-$1$2"+Mt+"flex-$1$2")+e;case 5443:return at+e+Mt+"flex-item-"+it(e,/flex-|-self/,"")+e;case 4675:return at+e+Mt+"flex-line-pack"+it(e,/align-content|flex-|-self/,"")+e;case 5548:return at+e+Mt+it(e,"shrink","negative")+e;case 5292:return at+e+Mt+it(e,"basis","preferred-size")+e;case 6060:return at+"box-"+it(e,"-grow","")+at+e+Mt+it(e,"grow","positive")+e;case 4554:return at+it(e,/([^-])(transform)/g,"$1"+at+"$2")+e;case 6187:return it(it(it(e,/(zoom-|grab)/,at+"$1"),/(image-set)/,at+"$1"),e,"")+e;case 5495:case 3959:return it(e,/(image-set\([^]*)/,at+"$1$`$1");case 4968:return it(it(e,/(.+:)(flex-)?(.*)/,at+"box-pack:$3"+Mt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+at+e+e;case 4095:case 3583:case 4068:case 2532:return it(e,/(.+)-inline(.+)/,at+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(e_(e)-1-t>6)switch(Rt(e,t+1)){case 109:if(Rt(e,t+4)!==45)break;case 102:return it(e,/(.+:)(.+)-([^]+)/,"$1"+at+"$2-$3$1"+Zs+(Rt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dn(e,"stretch")?sr(it(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Rt(e,t+1)!==115)break;case 6444:switch(Rt(e,e_(e)-3-(~Dn(e,"!important")&&10))){case 107:return it(e,":",":"+at)+e;case 101:return it(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+at+(Rt(e,14)===45?"inline-":"")+"box$3$1"+at+"$2$3$1"+Mt+"$2box$3")+e}break;case 5936:switch(Rt(e,t+11)){case 114:return at+e+Mt+it(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return at+e+Mt+it(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return at+e+Mt+it(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return at+e+Mt+e+e}return e}var O2_=function(t,_,n,s){if(t.length>-1&&!t.return)switch(t.type){case eo:t.return=sr(t.value,t.length);break;case Qi:return z_([ts(t,{value:it(t.value,"@","@"+at)})],s);case Kn:if(t.length)return k2_(t.props,function(r){switch($2_(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return z_([ts(t,{props:[it(r,/:(read-\w+)/,":"+Zs+"$1")]})],s);case"::placeholder":return z_([ts(t,{props:[it(r,/:(plac\w+)/,":"+at+"input-$1")]}),ts(t,{props:[it(r,/:(plac\w+)/,":"+Zs+"$1")]}),ts(t,{props:[it(r,/:(plac\w+)/,Mt+"input-$1")]})],s)}return""})}},G2_=[O2_],B2_=function(t){var _=t.key;if(_==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(E){var $=E.getAttribute("data-emotion");$.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var s=t.stylisPlugins||G2_,r={},c,h=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+_+' "]'),function(E){for(var $=E.getAttribute("data-emotion").split(" "),k=1;k<$.length;k++)r[$[k]]=!0;h.push(E)});var l,g=[D2_,F2_];{var p,w=[q2_,P2_(function(E){p.insert(E)})],v=N2_(g.concat(s,w)),A=function($){return z_(T2_($),v)};l=function($,k,T,j){p=T,A($?$+"{"+k.styles+"}":k.styles),j&&(I.inserted[k.name]=!0)}}var I={key:_,sheet:new p2_({key:_,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:r,registered:{},insert:l};return I.sheet.hydrate(h),I};function V2_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ls={exports:{}},rt={};/** @license React v16.13.1
11
11
  * react-is.production.min.js
12
12
  *
13
13
  * Copyright (c) Facebook, Inc. and its affiliates.
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var zo;function H2_(){if(zo)return rt;zo=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,_=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,g=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,w=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,A=e?Symbol.for("react.memo"):60115,I=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function j(M){if(typeof M=="object"&&M!==null){var P=M.$$typeof;switch(P){case t:switch(M=M.type,M){case c:case g:case n:case r:case s:case w:return M;default:switch(M=M&&M.$$typeof,M){case h:case p:case I:case A:case l:return M;default:return P}}case _:return P}}}function R(M){return j(M)===g}return rt.AsyncMode=c,rt.ConcurrentMode=g,rt.ContextConsumer=h,rt.ContextProvider=l,rt.Element=t,rt.ForwardRef=p,rt.Fragment=n,rt.Lazy=I,rt.Memo=A,rt.Portal=_,rt.Profiler=r,rt.StrictMode=s,rt.Suspense=w,rt.isAsyncMode=function(M){return R(M)||j(M)===c},rt.isConcurrentMode=R,rt.isContextConsumer=function(M){return j(M)===h},rt.isContextProvider=function(M){return j(M)===l},rt.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},rt.isForwardRef=function(M){return j(M)===p},rt.isFragment=function(M){return j(M)===n},rt.isLazy=function(M){return j(M)===I},rt.isMemo=function(M){return j(M)===A},rt.isPortal=function(M){return j(M)===_},rt.isProfiler=function(M){return j(M)===r},rt.isStrictMode=function(M){return j(M)===s},rt.isSuspense=function(M){return j(M)===w},rt.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===n||M===g||M===r||M===s||M===w||M===v||typeof M=="object"&&M!==null&&(M.$$typeof===I||M.$$typeof===A||M.$$typeof===l||M.$$typeof===h||M.$$typeof===p||M.$$typeof===$||M.$$typeof===k||M.$$typeof===T||M.$$typeof===E)},rt.typeOf=j,rt}var ct={};/** @license React v16.13.1
17
+ */var zo;function H2_(){if(zo)return rt;zo=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,_=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,g=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,w=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,A=e?Symbol.for("react.memo"):60115,I=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function j(M){if(typeof M=="object"&&M!==null){var P=M.$$typeof;switch(P){case t:switch(M=M.type,M){case l:case g:case n:case r:case s:case w:return M;default:switch(M=M&&M.$$typeof,M){case h:case p:case I:case A:case c:return M;default:return P}}case _:return P}}}function R(M){return j(M)===g}return rt.AsyncMode=l,rt.ConcurrentMode=g,rt.ContextConsumer=h,rt.ContextProvider=c,rt.Element=t,rt.ForwardRef=p,rt.Fragment=n,rt.Lazy=I,rt.Memo=A,rt.Portal=_,rt.Profiler=r,rt.StrictMode=s,rt.Suspense=w,rt.isAsyncMode=function(M){return R(M)||j(M)===l},rt.isConcurrentMode=R,rt.isContextConsumer=function(M){return j(M)===h},rt.isContextProvider=function(M){return j(M)===c},rt.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},rt.isForwardRef=function(M){return j(M)===p},rt.isFragment=function(M){return j(M)===n},rt.isLazy=function(M){return j(M)===I},rt.isMemo=function(M){return j(M)===A},rt.isPortal=function(M){return j(M)===_},rt.isProfiler=function(M){return j(M)===r},rt.isStrictMode=function(M){return j(M)===s},rt.isSuspense=function(M){return j(M)===w},rt.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===n||M===g||M===r||M===s||M===w||M===v||typeof M=="object"&&M!==null&&(M.$$typeof===I||M.$$typeof===A||M.$$typeof===c||M.$$typeof===h||M.$$typeof===p||M.$$typeof===$||M.$$typeof===k||M.$$typeof===T||M.$$typeof===E)},rt.typeOf=j,rt}var ct={};/** @license React v16.13.1
18
18
  * react-is.development.js
19
19
  *
20
20
  * Copyright (c) Facebook, Inc. and its affiliates.
21
21
  *
22
22
  * This source code is licensed under the MIT license found in the
23
23
  * LICENSE file in the root directory of this source tree.
24
- */var Do;function W2_(){return Do||(Do=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,_=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,g=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,w=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,A=e?Symbol.for("react.memo"):60115,I=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function j(ge){return typeof ge=="string"||typeof ge=="function"||ge===n||ge===g||ge===r||ge===s||ge===w||ge===v||typeof ge=="object"&&ge!==null&&(ge.$$typeof===I||ge.$$typeof===A||ge.$$typeof===l||ge.$$typeof===h||ge.$$typeof===p||ge.$$typeof===$||ge.$$typeof===k||ge.$$typeof===T||ge.$$typeof===E)}function R(ge){if(typeof ge=="object"&&ge!==null){var Bt=ge.$$typeof;switch(Bt){case t:var Ot=ge.type;switch(Ot){case c:case g:case n:case r:case s:case w:return Ot;default:var Qt=Ot&&Ot.$$typeof;switch(Qt){case h:case p:case I:case A:case l:return Qt;default:return Bt}}case _:return Bt}}}var M=c,P=g,D=h,O=l,G=t,W=p,Q=n,B=I,se=A,K=_,ae=r,Ie=s,ne=w,we=!1;function Ze(ge){return we||(we=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),We(ge)||R(ge)===c}function We(ge){return R(ge)===g}function wt(ge){return R(ge)===h}function De(ge){return R(ge)===l}function Me(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===t}function xt(ge){return R(ge)===p}function ye(ge){return R(ge)===n}function et(ge){return R(ge)===I}function dt(ge){return R(ge)===A}function Fe(ge){return R(ge)===_}function Se(ge){return R(ge)===r}function St(ge){return R(ge)===s}function n_(ge){return R(ge)===w}ct.AsyncMode=M,ct.ConcurrentMode=P,ct.ContextConsumer=D,ct.ContextProvider=O,ct.Element=G,ct.ForwardRef=W,ct.Fragment=Q,ct.Lazy=B,ct.Memo=se,ct.Portal=K,ct.Profiler=ae,ct.StrictMode=Ie,ct.Suspense=ne,ct.isAsyncMode=Ze,ct.isConcurrentMode=We,ct.isContextConsumer=wt,ct.isContextProvider=De,ct.isElement=Me,ct.isForwardRef=xt,ct.isFragment=ye,ct.isLazy=et,ct.isMemo=dt,ct.isPortal=Fe,ct.isProfiler=Se,ct.isStrictMode=St,ct.isSuspense=n_,ct.isValidElementType=j,ct.typeOf=R})()),ct}var Fo;function U2_(){return Fo||(Fo=1,process.env.NODE_ENV==="production"?Ls.exports=H2_():Ls.exports=W2_()),Ls.exports}var $n,Oo;function X2_(){if(Oo)return $n;Oo=1;var e=U2_(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},r={};r[e.ForwardRef]=n,r[e.Memo]=s;function l(I){return e.isMemo(I)?s:r[I.$$typeof]||t}var h=Object.defineProperty,c=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,w=Object.getPrototypeOf,v=Object.prototype;function A(I,E,$){if(typeof E!="string"){if(v){var k=w(E);k&&k!==v&&A(I,k,$)}var T=c(E);g&&(T=T.concat(g(E)));for(var j=l(I),R=l(E),M=0;M<T.length;++M){var P=T[M];if(!_[P]&&!($&&$[P])&&!(R&&R[P])&&!(j&&j[P])){var D=p(E,P);try{h(I,P,D)}catch{}}}}return I}return $n=A,$n}X2_();var Y2_=!0;function Z2_(e,t,_){var n="";return _.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(n+=s+" ")}),n}var nr=function(t,_,n){var s=t.key+"-"+_.name;(n===!1||Y2_===!1)&&t.registered[s]===void 0&&(t.registered[s]=_.styles)},J2_=function(t,_,n){nr(t,_,n);var s=t.key+"-"+_.name;if(t.inserted[_.name]===void 0){var r=_;do t.insert(_===r?"."+s:"",r,t.sheet,!0),r=r.next;while(r!==void 0)}};function Q2_(e){for(var t=0,_,n=0,s=e.length;s>=4;++n,s-=4)_=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,_=(_&65535)*1540483477+((_>>>16)*59797<<16),_^=_>>>24,t=(_&65535)*1540483477+((_>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var K2_={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ex_=/[A-Z]|^ms/g,tx_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,or=function(t){return t.charCodeAt(1)===45},Go=function(t){return t!=null&&typeof t!="boolean"},kn=R2_(function(e){return or(e)?e:e.replace(ex_,"-$&").toLowerCase()}),Bo=function(t,_){switch(t){case"animation":case"animationName":if(typeof _=="string")return _.replace(tx_,function(n,s,r){return t_={name:s,styles:r,next:t_},s})}return K2_[t]!==1&&!or(t)&&typeof _=="number"&&_!==0?_+"px":_};function ms(e,t,_){if(_==null)return"";var n=_;if(n.__emotion_styles!==void 0)return n;switch(typeof _){case"boolean":return"";case"object":{var s=_;if(s.anim===1)return t_={name:s.name,styles:s.styles,next:t_},s.name;var r=_;if(r.styles!==void 0){var l=r.next;if(l!==void 0)for(;l!==void 0;)t_={name:l.name,styles:l.styles,next:t_},l=l.next;var h=r.styles+";";return h}return _x_(e,t,_)}case"function":{if(e!==void 0){var c=t_,g=_(e);return t_=c,ms(e,t,g)}break}}var p=_;return p}function _x_(e,t,_){var n="";if(Array.isArray(_))for(var s=0;s<_.length;s++)n+=ms(e,t,_[s])+";";else for(var r in _){var l=_[r];if(typeof l!="object"){var h=l;Go(h)&&(n+=kn(r)+":"+Bo(r,h)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&t==null)for(var c=0;c<l.length;c++)Go(l[c])&&(n+=kn(r)+":"+Bo(r,l[c])+";");else{var g=ms(e,t,l);switch(r){case"animation":case"animationName":{n+=kn(r)+":"+g+";";break}default:n+=r+"{"+g+"}"}}}return n}var Vo=/label:\s*([^\s;{]+)\s*(;|$)/g,t_;function ar(e,t,_){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,s="";t_=void 0;var r=e[0];if(r==null||r.raw===void 0)n=!1,s+=ms(_,t,r);else{var l=r;s+=l[0]}for(var h=1;h<e.length;h++)if(s+=ms(_,t,e[h]),n){var c=r;s+=c[h]}Vo.lastIndex=0;for(var g="",p;(p=Vo.exec(s))!==null;)g+="-"+p[1];var w=Q2_(s)+g;return{name:w,styles:s,next:t_}}var sx_=function(t){return t()},nx_=Xe.useInsertionEffect?Xe.useInsertionEffect:!1,ox_=nx_||sx_,ir=Xe.createContext(typeof HTMLElement<"u"?B2_({key:"css"}):null);ir.Provider;var ax_=function(t){return C.forwardRef(function(_,n){var s=C.useContext(ir);return t(_,s,n)})},ix_=Xe.createContext({}),_o={}.hasOwnProperty,On="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",rx_=function(t,_){var n={};for(var s in _)_o.call(_,s)&&(n[s]=_[s]);return n[On]=t,n},cx_=function(t){var _=t.cache,n=t.serialized,s=t.isStringTag;return nr(_,n,s),ox_(function(){return J2_(_,n,s)}),null},lx_=ax_(function(e,t,_){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var s=e[On],r=[n],l="";typeof e.className=="string"?l=Z2_(t.registered,r,e.className):e.className!=null&&(l=e.className+" ");var h=ar(r,void 0,Xe.useContext(ix_));l+=t.key+"-"+h.name;var c={};for(var g in e)_o.call(e,g)&&g!=="css"&&g!==On&&(c[g]=e[g]);return c.className=l,_&&(c.ref=_),Xe.createElement(Xe.Fragment,null,Xe.createElement(cx_,{cache:t,serialized:h,isStringTag:typeof s=="string"}),Xe.createElement(s,c))}),dx_=lx_,Ce=function(t,_){var n=arguments;if(_==null||!_o.call(_,"css"))return Xe.createElement.apply(void 0,n);var s=n.length,r=new Array(s);r[0]=dx_,r[1]=rx_(t,_);for(var l=2;l<s;l++)r[l]=n[l];return Xe.createElement.apply(null,r)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Ce||(Ce={}));function so(){for(var e=arguments.length,t=new Array(e),_=0;_<e;_++)t[_]=arguments[_];return ar(t)}function ux_(){var e=so.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function mx_(e){if(Array.isArray(e))return e}function hx_(e,t){var _=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(_!=null){var n,s,r,l,h=[],c=!0,g=!1;try{if(r=(_=_.call(e)).next,t===0){if(Object(_)!==_)return;c=!1}else for(;!(c=(n=r.call(_)).done)&&(h.push(n.value),h.length!==t);c=!0);}catch(p){g=!0,s=p}finally{try{if(!c&&_.return!=null&&(l=_.return(),Object(l)!==l))return}finally{if(g)throw s}}return h}}function gx_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
25
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r_(e,t){return mx_(e)||hx_(e,t)||Zi(e,t)||gx_()}function px_(e,t){if(e==null)return{};var _={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;_[n]=e[n]}return _}function s_(e,t){if(e==null)return{};var _,n,s=px_(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)_=r[n],t.indexOf(_)===-1&&{}.propertyIsEnumerable.call(e,_)&&(s[_]=e[_])}return s}function fx_(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const yx_=Math.min,wx_=Math.max,Js=Math.round,Ms=Math.floor,Qs=e=>({x:e,y:e});function vx_(e){const{x:t,y:_,width:n,height:s}=e;return{width:n,height:s,top:_,left:t,right:t+n,bottom:_+s,x:t,y:_}}function hn(){return typeof window<"u"}function rr(e){return lr(e)?(e.nodeName||"").toLowerCase():"#document"}function l_(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function cr(e){var t;return(t=(lr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lr(e){return hn()?e instanceof Node||e instanceof l_(e).Node:!1}function bx_(e){return hn()?e instanceof Element||e instanceof l_(e).Element:!1}function no(e){return hn()?e instanceof HTMLElement||e instanceof l_(e).HTMLElement:!1}function Ho(e){return!hn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof l_(e).ShadowRoot}const $x_=new Set(["inline","contents"]);function dr(e){const{overflow:t,overflowX:_,overflowY:n,display:s}=oo(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+_)&&!$x_.has(s)}function kx_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const xx_=new Set(["html","body","#document"]);function Ix_(e){return xx_.has(rr(e))}function oo(e){return l_(e).getComputedStyle(e)}function Cx_(e){if(rr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ho(e)&&e.host||cr(e);return Ho(t)?t.host:t}function ur(e){const t=Cx_(e);return Ix_(t)?e.ownerDocument?e.ownerDocument.body:e.body:no(t)&&dr(t)?t:ur(t)}function Ks(e,t,_){var n;t===void 0&&(t=[]),_===void 0&&(_=!0);const s=ur(e),r=s===((n=e.ownerDocument)==null?void 0:n.body),l=l_(s);if(r){const h=Gn(l);return t.concat(l,l.visualViewport||[],dr(s)?s:[],h&&_?Ks(h):[])}return t.concat(s,Ks(s,[],_))}function Gn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Sx_(e){const t=oo(e);let _=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=no(e),r=s?e.offsetWidth:_,l=s?e.offsetHeight:n,h=Js(_)!==r||Js(n)!==l;return h&&(_=r,n=l),{width:_,height:n,$:h}}function ao(e){return bx_(e)?e:e.contextElement}function Wo(e){const t=ao(e);if(!no(t))return Qs(1);const _=t.getBoundingClientRect(),{width:n,height:s,$:r}=Sx_(t);let l=(r?Js(_.width):_.width)/n,h=(r?Js(_.height):_.height)/s;return(!l||!Number.isFinite(l))&&(l=1),(!h||!Number.isFinite(h))&&(h=1),{x:l,y:h}}const Ax_=Qs(0);function Ex_(e){const t=l_(e);return!kx_()||!t.visualViewport?Ax_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Tx_(e,t,_){return!1}function Uo(e,t,_,n){t===void 0&&(t=!1);const s=e.getBoundingClientRect(),r=ao(e);let l=Qs(1);t&&(l=Wo(e));const h=Tx_()?Ex_(r):Qs(0);let c=(s.left+h.x)/l.x,g=(s.top+h.y)/l.y,p=s.width/l.x,w=s.height/l.y;if(r){const v=l_(r),A=n;let I=v,E=Gn(I);for(;E&&n&&A!==I;){const $=Wo(E),k=E.getBoundingClientRect(),T=oo(E),j=k.left+(E.clientLeft+parseFloat(T.paddingLeft))*$.x,R=k.top+(E.clientTop+parseFloat(T.paddingTop))*$.y;c*=$.x,g*=$.y,p*=$.x,w*=$.y,c+=j,g+=R,I=l_(E),E=Gn(I)}}return vx_({width:p,height:w,x:c,y:g})}function mr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jx_(e,t){let _=null,n;const s=cr(e);function r(){var h;clearTimeout(n),(h=_)==null||h.disconnect(),_=null}function l(h,c){h===void 0&&(h=!1),c===void 0&&(c=1),r();const g=e.getBoundingClientRect(),{left:p,top:w,width:v,height:A}=g;if(h||t(),!v||!A)return;const I=Ms(w),E=Ms(s.clientWidth-(p+v)),$=Ms(s.clientHeight-(w+A)),k=Ms(p),j={rootMargin:-I+"px "+-E+"px "+-$+"px "+-k+"px",threshold:wx_(0,yx_(1,c))||1};let R=!0;function M(P){const D=P[0].intersectionRatio;if(D!==c){if(!R)return l();D?l(!1,D):n=setTimeout(()=>{l(!1,1e-7)},1e3)}D===1&&!mr(g,e.getBoundingClientRect())&&l(),R=!1}try{_=new IntersectionObserver(M,{...j,root:s.ownerDocument})}catch{_=new IntersectionObserver(M,j)}_.observe(e)}return l(!0),r}function qx_(e,t,_,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:r=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,g=ao(e),p=s||r?[...g?Ks(g):[],...Ks(t)]:[];p.forEach(k=>{s&&k.addEventListener("scroll",_,{passive:!0}),r&&k.addEventListener("resize",_)});const w=g&&h?jx_(g,_):null;let v=-1,A=null;l&&(A=new ResizeObserver(k=>{let[T]=k;T&&T.target===g&&A&&(A.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var j;(j=A)==null||j.observe(t)})),_()}),g&&!c&&A.observe(g),A.observe(t));let I,E=c?Uo(e):null;c&&$();function $(){const k=Uo(e);E&&!mr(E,k)&&_(),E=k,I=requestAnimationFrame($)}return _(),()=>{var k;p.forEach(T=>{s&&T.removeEventListener("scroll",_),r&&T.removeEventListener("resize",_)}),w==null||w(),(k=A)==null||k.disconnect(),A=null,c&&cancelAnimationFrame(I)}}var Bn=C.useLayoutEffect,Nx_=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],en=function(){};function Px_(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Rx_(e,t){for(var _=arguments.length,n=new Array(_>2?_-2:0),s=2;s<_;s++)n[s-2]=arguments[s];var r=[].concat(n);if(t&&e)for(var l in t)t.hasOwnProperty(l)&&t[l]&&r.push("".concat(Px_(e,l)));return r.filter(function(h){return h}).map(function(h){return String(h).trim()}).join(" ")}var tn=function(t){return Vx_(t)?t.filter(Boolean):x_(t)==="object"&&t!==null?[t]:[]},hr=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var _=s_(t,Nx_);return Ae({},_)},bt=function(t,_,n){var s=t.cx,r=t.getStyles,l=t.getClassNames,h=t.className;return{css:r(_,t),className:s(n??{},l(_,t),h)}};function gn(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Lx_(e){return gn(e)?window.innerHeight:e.clientHeight}function gr(e){return gn(e)?window.pageYOffset:e.scrollTop}function _n(e,t){if(gn(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Mx_(e){var t=getComputedStyle(e),_=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var s=e;s=s.parentElement;)if(t=getComputedStyle(s),!(_&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return s;return document.documentElement}function zx_(e,t,_,n){return _*((e=e/n-1)*e*e+1)+t}function zs(e,t){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:en,s=gr(e),r=t-s,l=10,h=0;function c(){h+=l;var g=zx_(h,s,r,_);_n(e,g),h<_?window.requestAnimationFrame(c):n(e)}c()}function Xo(e,t){var _=e.getBoundingClientRect(),n=t.getBoundingClientRect(),s=t.offsetHeight/3;n.bottom+s>_.bottom?_n(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+s,e.scrollHeight)):n.top-s<_.top&&_n(e,Math.max(t.offsetTop-s,0))}function Dx_(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Yo(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Fx_(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var pr=!1,Ox_={get passive(){return pr=!0}},Ds=typeof window<"u"?window:{};Ds.addEventListener&&Ds.removeEventListener&&(Ds.addEventListener("p",en,Ox_),Ds.removeEventListener("p",en,!1));var Gx_=pr;function Bx_(e){return e!=null}function Vx_(e){return Array.isArray(e)}function os(e,t,_){return e?t:_}var Hx_=function(t){for(var _=arguments.length,n=new Array(_>1?_-1:0),s=1;s<_;s++)n[s-1]=arguments[s];var r=Object.entries(t).filter(function(l){var h=r_(l,1),c=h[0];return!n.includes(c)});return r.reduce(function(l,h){var c=r_(h,2),g=c[0],p=c[1];return l[g]=p,l},{})},Wx_=["children","innerProps"],Ux_=["children","innerProps"];function Xx_(e){var t=e.maxHeight,_=e.menuEl,n=e.minHeight,s=e.placement,r=e.shouldScroll,l=e.isFixedPosition,h=e.controlHeight,c=Mx_(_),g={placement:"bottom",maxHeight:t};if(!_||!_.offsetParent)return g;var p=c.getBoundingClientRect(),w=p.height,v=_.getBoundingClientRect(),A=v.bottom,I=v.height,E=v.top,$=_.offsetParent.getBoundingClientRect(),k=$.top,T=l?window.innerHeight:Lx_(c),j=gr(c),R=parseInt(getComputedStyle(_).marginBottom,10),M=parseInt(getComputedStyle(_).marginTop,10),P=k-M,D=T-E,O=P+j,G=w-j-E,W=A-T+j+R,Q=j+E-M,B=160;switch(s){case"auto":case"bottom":if(D>=I)return{placement:"bottom",maxHeight:t};if(G>=I&&!l)return r&&zs(c,W,B),{placement:"bottom",maxHeight:t};if(!l&&G>=n||l&&D>=n){r&&zs(c,W,B);var se=l?D-R:G-R;return{placement:"bottom",maxHeight:se}}if(s==="auto"||l){var K=t,ae=l?P:O;return ae>=n&&(K=Math.min(ae-R-h,t)),{placement:"top",maxHeight:K}}if(s==="bottom")return r&&_n(c,W),{placement:"bottom",maxHeight:t};break;case"top":if(P>=I)return{placement:"top",maxHeight:t};if(O>=I&&!l)return r&&zs(c,Q,B),{placement:"top",maxHeight:t};if(!l&&O>=n||l&&P>=n){var Ie=t;return(!l&&O>=n||l&&P>=n)&&(Ie=l?P-M:O-M),r&&zs(c,Q,B),{placement:"top",maxHeight:Ie}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(s,'".'))}return g}function Yx_(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var fr=function(t){return t==="auto"?"bottom":t},Zx_=function(t,_){var n,s=t.placement,r=t.theme,l=r.borderRadius,h=r.spacing,c=r.colors;return Ae((n={label:"menu"},ns(n,Yx_(s),"100%"),ns(n,"position","absolute"),ns(n,"width","100%"),ns(n,"zIndex",1),n),_?{}:{backgroundColor:c.neutral0,borderRadius:l,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:h.menuGutter,marginTop:h.menuGutter})},yr=C.createContext(null),Jx_=function(t){var _=t.children,n=t.minMenuHeight,s=t.maxMenuHeight,r=t.menuPlacement,l=t.menuPosition,h=t.menuShouldScrollIntoView,c=t.theme,g=C.useContext(yr)||{},p=g.setPortalPlacement,w=C.useRef(null),v=C.useState(s),A=r_(v,2),I=A[0],E=A[1],$=C.useState(null),k=r_($,2),T=k[0],j=k[1],R=c.spacing.controlHeight;return Bn(function(){var M=w.current;if(M){var P=l==="fixed",D=h&&!P,O=Xx_({maxHeight:s,menuEl:M,minHeight:n,placement:r,shouldScroll:D,isFixedPosition:P,controlHeight:R});E(O.maxHeight),j(O.placement),p==null||p(O.placement)}},[s,r,l,h,n,p,R]),_({ref:w,placerProps:Ae(Ae({},t),{},{placement:T||fr(r),maxHeight:I})})},Qx_=function(t){var _=t.children,n=t.innerRef,s=t.innerProps;return Ce("div",Te({},bt(t,"menu",{menu:!0}),{ref:n},s),_)},Kx_=Qx_,e0_=function(t,_){var n=t.maxHeight,s=t.theme.spacing.baseUnit;return Ae({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},_?{}:{paddingBottom:s,paddingTop:s})},t0_=function(t){var _=t.children,n=t.innerProps,s=t.innerRef,r=t.isMulti;return Ce("div",Te({},bt(t,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:s},n),_)},wr=function(t,_){var n=t.theme,s=n.spacing.baseUnit,r=n.colors;return Ae({textAlign:"center"},_?{}:{color:r.neutral40,padding:"".concat(s*2,"px ").concat(s*3,"px")})},_0_=wr,s0_=wr,n0_=function(t){var _=t.children,n=_===void 0?"No options":_,s=t.innerProps,r=s_(t,Wx_);return Ce("div",Te({},bt(Ae(Ae({},r),{},{children:n,innerProps:s}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),s),n)},o0_=function(t){var _=t.children,n=_===void 0?"Loading...":_,s=t.innerProps,r=s_(t,Ux_);return Ce("div",Te({},bt(Ae(Ae({},r),{},{children:n,innerProps:s}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),s),n)},a0_=function(t){var _=t.rect,n=t.offset,s=t.position;return{left:_.left,position:s,top:n,width:_.width,zIndex:1}},i0_=function(t){var _=t.appendTo,n=t.children,s=t.controlElement,r=t.innerProps,l=t.menuPlacement,h=t.menuPosition,c=C.useRef(null),g=C.useRef(null),p=C.useState(fr(l)),w=r_(p,2),v=w[0],A=w[1],I=C.useMemo(function(){return{setPortalPlacement:A}},[]),E=C.useState(null),$=r_(E,2),k=$[0],T=$[1],j=C.useCallback(function(){if(s){var D=Dx_(s),O=h==="fixed"?0:window.pageYOffset,G=D[v]+O;(G!==(k==null?void 0:k.offset)||D.left!==(k==null?void 0:k.rect.left)||D.width!==(k==null?void 0:k.rect.width))&&T({offset:G,rect:D})}},[s,h,v,k==null?void 0:k.offset,k==null?void 0:k.rect.left,k==null?void 0:k.rect.width]);Bn(function(){j()},[j]);var R=C.useCallback(function(){typeof g.current=="function"&&(g.current(),g.current=null),s&&c.current&&(g.current=qx_(s,c.current,j,{elementResize:"ResizeObserver"in window}))},[s,j]);Bn(function(){R()},[R]);var M=C.useCallback(function(D){c.current=D,R()},[R]);if(!_&&h!=="fixed"||!k)return null;var P=Ce("div",Te({ref:M},bt(Ae(Ae({},t),{},{offset:k.offset,position:h,rect:k.rect}),"menuPortal",{"menu-portal":!0}),r),n);return Ce(yr.Provider,{value:I},_?jl.createPortal(P,_):P)},r0_=function(t){var _=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:_?"none":void 0,position:"relative"}},c0_=function(t){var _=t.children,n=t.innerProps,s=t.isDisabled,r=t.isRtl;return Ce("div",Te({},bt(t,"container",{"--is-disabled":s,"--is-rtl":r}),n),_)},l0_=function(t,_){var n=t.theme.spacing,s=t.isMulti,r=t.hasValue,l=t.selectProps.controlShouldRenderValue;return Ae({alignItems:"center",display:s&&r&&l?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},_?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},d0_=function(t){var _=t.children,n=t.innerProps,s=t.isMulti,r=t.hasValue;return Ce("div",Te({},bt(t,"valueContainer",{"value-container":!0,"value-container--is-multi":s,"value-container--has-value":r}),n),_)},u0_=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},m0_=function(t){var _=t.children,n=t.innerProps;return Ce("div",Te({},bt(t,"indicatorsContainer",{indicators:!0}),n),_)},Zo,h0_=["size"],g0_=["innerProps","isRtl","size"];function p0_(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var f0_=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:p0_},vr=function(t){var _=t.size,n=s_(t,h0_);return Ce("svg",Te({height:_,width:_,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:f0_},n))},io=function(t){return Ce(vr,Te({size:20},t),Ce("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},br=function(t){return Ce(vr,Te({size:20},t),Ce("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},$r=function(t,_){var n=t.isFocused,s=t.theme,r=s.spacing.baseUnit,l=s.colors;return Ae({label:"indicatorContainer",display:"flex",transition:"color 150ms"},_?{}:{color:n?l.neutral60:l.neutral20,padding:r*2,":hover":{color:n?l.neutral80:l.neutral40}})},y0_=$r,w0_=function(t){var _=t.children,n=t.innerProps;return Ce("div",Te({},bt(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),_||Ce(br,null))},v0_=$r,b0_=function(t){var _=t.children,n=t.innerProps;return Ce("div",Te({},bt(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),_||Ce(io,null))},$0_=function(t,_){var n=t.isDisabled,s=t.theme,r=s.spacing.baseUnit,l=s.colors;return Ae({label:"indicatorSeparator",alignSelf:"stretch",width:1},_?{}:{backgroundColor:n?l.neutral10:l.neutral20,marginBottom:r*2,marginTop:r*2})},k0_=function(t){var _=t.innerProps;return Ce("span",Te({},_,bt(t,"indicatorSeparator",{"indicator-separator":!0})))},x0_=ux_(Zo||(Zo=fx_([`
24
+ */var Do;function W2_(){return Do||(Do=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,_=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,g=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,w=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,A=e?Symbol.for("react.memo"):60115,I=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function j(ge){return typeof ge=="string"||typeof ge=="function"||ge===n||ge===g||ge===r||ge===s||ge===w||ge===v||typeof ge=="object"&&ge!==null&&(ge.$$typeof===I||ge.$$typeof===A||ge.$$typeof===c||ge.$$typeof===h||ge.$$typeof===p||ge.$$typeof===$||ge.$$typeof===k||ge.$$typeof===T||ge.$$typeof===E)}function R(ge){if(typeof ge=="object"&&ge!==null){var Bt=ge.$$typeof;switch(Bt){case t:var Ot=ge.type;switch(Ot){case l:case g:case n:case r:case s:case w:return Ot;default:var Qt=Ot&&Ot.$$typeof;switch(Qt){case h:case p:case I:case A:case c:return Qt;default:return Bt}}case _:return Bt}}}var M=l,P=g,D=h,O=c,G=t,W=p,Q=n,B=I,te=A,K=_,ae=r,Ie=s,ne=w,we=!1;function Ze(ge){return we||(we=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),We(ge)||R(ge)===l}function We(ge){return R(ge)===g}function wt(ge){return R(ge)===h}function De(ge){return R(ge)===c}function Me(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===t}function xt(ge){return R(ge)===p}function ye(ge){return R(ge)===n}function et(ge){return R(ge)===I}function dt(ge){return R(ge)===A}function Fe(ge){return R(ge)===_}function Se(ge){return R(ge)===r}function St(ge){return R(ge)===s}function n_(ge){return R(ge)===w}ct.AsyncMode=M,ct.ConcurrentMode=P,ct.ContextConsumer=D,ct.ContextProvider=O,ct.Element=G,ct.ForwardRef=W,ct.Fragment=Q,ct.Lazy=B,ct.Memo=te,ct.Portal=K,ct.Profiler=ae,ct.StrictMode=Ie,ct.Suspense=ne,ct.isAsyncMode=Ze,ct.isConcurrentMode=We,ct.isContextConsumer=wt,ct.isContextProvider=De,ct.isElement=Me,ct.isForwardRef=xt,ct.isFragment=ye,ct.isLazy=et,ct.isMemo=dt,ct.isPortal=Fe,ct.isProfiler=Se,ct.isStrictMode=St,ct.isSuspense=n_,ct.isValidElementType=j,ct.typeOf=R})()),ct}var Fo;function U2_(){return Fo||(Fo=1,process.env.NODE_ENV==="production"?Ls.exports=H2_():Ls.exports=W2_()),Ls.exports}var $n,Oo;function X2_(){if(Oo)return $n;Oo=1;var e=U2_(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},r={};r[e.ForwardRef]=n,r[e.Memo]=s;function c(I){return e.isMemo(I)?s:r[I.$$typeof]||t}var h=Object.defineProperty,l=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,w=Object.getPrototypeOf,v=Object.prototype;function A(I,E,$){if(typeof E!="string"){if(v){var k=w(E);k&&k!==v&&A(I,k,$)}var T=l(E);g&&(T=T.concat(g(E)));for(var j=c(I),R=c(E),M=0;M<T.length;++M){var P=T[M];if(!_[P]&&!($&&$[P])&&!(R&&R[P])&&!(j&&j[P])){var D=p(E,P);try{h(I,P,D)}catch{}}}}return I}return $n=A,$n}X2_();var Y2_=!0;function Z2_(e,t,_){var n="";return _.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(n+=s+" ")}),n}var nr=function(t,_,n){var s=t.key+"-"+_.name;(n===!1||Y2_===!1)&&t.registered[s]===void 0&&(t.registered[s]=_.styles)},J2_=function(t,_,n){nr(t,_,n);var s=t.key+"-"+_.name;if(t.inserted[_.name]===void 0){var r=_;do t.insert(_===r?"."+s:"",r,t.sheet,!0),r=r.next;while(r!==void 0)}};function Q2_(e){for(var t=0,_,n=0,s=e.length;s>=4;++n,s-=4)_=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,_=(_&65535)*1540483477+((_>>>16)*59797<<16),_^=_>>>24,t=(_&65535)*1540483477+((_>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var K2_={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ex_=/[A-Z]|^ms/g,tx_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,or=function(t){return t.charCodeAt(1)===45},Go=function(t){return t!=null&&typeof t!="boolean"},kn=R2_(function(e){return or(e)?e:e.replace(ex_,"-$&").toLowerCase()}),Bo=function(t,_){switch(t){case"animation":case"animationName":if(typeof _=="string")return _.replace(tx_,function(n,s,r){return t_={name:s,styles:r,next:t_},s})}return K2_[t]!==1&&!or(t)&&typeof _=="number"&&_!==0?_+"px":_};function ms(e,t,_){if(_==null)return"";var n=_;if(n.__emotion_styles!==void 0)return n;switch(typeof _){case"boolean":return"";case"object":{var s=_;if(s.anim===1)return t_={name:s.name,styles:s.styles,next:t_},s.name;var r=_;if(r.styles!==void 0){var c=r.next;if(c!==void 0)for(;c!==void 0;)t_={name:c.name,styles:c.styles,next:t_},c=c.next;var h=r.styles+";";return h}return _x_(e,t,_)}case"function":{if(e!==void 0){var l=t_,g=_(e);return t_=l,ms(e,t,g)}break}}var p=_;return p}function _x_(e,t,_){var n="";if(Array.isArray(_))for(var s=0;s<_.length;s++)n+=ms(e,t,_[s])+";";else for(var r in _){var c=_[r];if(typeof c!="object"){var h=c;Go(h)&&(n+=kn(r)+":"+Bo(r,h)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&t==null)for(var l=0;l<c.length;l++)Go(c[l])&&(n+=kn(r)+":"+Bo(r,c[l])+";");else{var g=ms(e,t,c);switch(r){case"animation":case"animationName":{n+=kn(r)+":"+g+";";break}default:n+=r+"{"+g+"}"}}}return n}var Vo=/label:\s*([^\s;{]+)\s*(;|$)/g,t_;function ar(e,t,_){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,s="";t_=void 0;var r=e[0];if(r==null||r.raw===void 0)n=!1,s+=ms(_,t,r);else{var c=r;s+=c[0]}for(var h=1;h<e.length;h++)if(s+=ms(_,t,e[h]),n){var l=r;s+=l[h]}Vo.lastIndex=0;for(var g="",p;(p=Vo.exec(s))!==null;)g+="-"+p[1];var w=Q2_(s)+g;return{name:w,styles:s,next:t_}}var sx_=function(t){return t()},nx_=Xe.useInsertionEffect?Xe.useInsertionEffect:!1,ox_=nx_||sx_,ir=Xe.createContext(typeof HTMLElement<"u"?B2_({key:"css"}):null);ir.Provider;var ax_=function(t){return C.forwardRef(function(_,n){var s=C.useContext(ir);return t(_,s,n)})},ix_=Xe.createContext({}),_o={}.hasOwnProperty,On="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",rx_=function(t,_){var n={};for(var s in _)_o.call(_,s)&&(n[s]=_[s]);return n[On]=t,n},cx_=function(t){var _=t.cache,n=t.serialized,s=t.isStringTag;return nr(_,n,s),ox_(function(){return J2_(_,n,s)}),null},lx_=ax_(function(e,t,_){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var s=e[On],r=[n],c="";typeof e.className=="string"?c=Z2_(t.registered,r,e.className):e.className!=null&&(c=e.className+" ");var h=ar(r,void 0,Xe.useContext(ix_));c+=t.key+"-"+h.name;var l={};for(var g in e)_o.call(e,g)&&g!=="css"&&g!==On&&(l[g]=e[g]);return l.className=c,_&&(l.ref=_),Xe.createElement(Xe.Fragment,null,Xe.createElement(cx_,{cache:t,serialized:h,isStringTag:typeof s=="string"}),Xe.createElement(s,l))}),dx_=lx_,Ce=function(t,_){var n=arguments;if(_==null||!_o.call(_,"css"))return Xe.createElement.apply(void 0,n);var s=n.length,r=new Array(s);r[0]=dx_,r[1]=rx_(t,_);for(var c=2;c<s;c++)r[c]=n[c];return Xe.createElement.apply(null,r)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Ce||(Ce={}));function so(){for(var e=arguments.length,t=new Array(e),_=0;_<e;_++)t[_]=arguments[_];return ar(t)}function ux_(){var e=so.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function mx_(e){if(Array.isArray(e))return e}function hx_(e,t){var _=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(_!=null){var n,s,r,c,h=[],l=!0,g=!1;try{if(r=(_=_.call(e)).next,t===0){if(Object(_)!==_)return;l=!1}else for(;!(l=(n=r.call(_)).done)&&(h.push(n.value),h.length!==t);l=!0);}catch(p){g=!0,s=p}finally{try{if(!l&&_.return!=null&&(c=_.return(),Object(c)!==c))return}finally{if(g)throw s}}return h}}function gx_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
25
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r_(e,t){return mx_(e)||hx_(e,t)||Zi(e,t)||gx_()}function px_(e,t){if(e==null)return{};var _={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;_[n]=e[n]}return _}function s_(e,t){if(e==null)return{};var _,n,s=px_(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)_=r[n],t.indexOf(_)===-1&&{}.propertyIsEnumerable.call(e,_)&&(s[_]=e[_])}return s}function fx_(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const yx_=Math.min,wx_=Math.max,Js=Math.round,Ms=Math.floor,Qs=e=>({x:e,y:e});function vx_(e){const{x:t,y:_,width:n,height:s}=e;return{width:n,height:s,top:_,left:t,right:t+n,bottom:_+s,x:t,y:_}}function hn(){return typeof window<"u"}function rr(e){return lr(e)?(e.nodeName||"").toLowerCase():"#document"}function l_(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function cr(e){var t;return(t=(lr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lr(e){return hn()?e instanceof Node||e instanceof l_(e).Node:!1}function bx_(e){return hn()?e instanceof Element||e instanceof l_(e).Element:!1}function no(e){return hn()?e instanceof HTMLElement||e instanceof l_(e).HTMLElement:!1}function Ho(e){return!hn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof l_(e).ShadowRoot}const $x_=new Set(["inline","contents"]);function dr(e){const{overflow:t,overflowX:_,overflowY:n,display:s}=oo(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+_)&&!$x_.has(s)}function kx_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const xx_=new Set(["html","body","#document"]);function Ix_(e){return xx_.has(rr(e))}function oo(e){return l_(e).getComputedStyle(e)}function Cx_(e){if(rr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ho(e)&&e.host||cr(e);return Ho(t)?t.host:t}function ur(e){const t=Cx_(e);return Ix_(t)?e.ownerDocument?e.ownerDocument.body:e.body:no(t)&&dr(t)?t:ur(t)}function Ks(e,t,_){var n;t===void 0&&(t=[]),_===void 0&&(_=!0);const s=ur(e),r=s===((n=e.ownerDocument)==null?void 0:n.body),c=l_(s);if(r){const h=Gn(c);return t.concat(c,c.visualViewport||[],dr(s)?s:[],h&&_?Ks(h):[])}return t.concat(s,Ks(s,[],_))}function Gn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Sx_(e){const t=oo(e);let _=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=no(e),r=s?e.offsetWidth:_,c=s?e.offsetHeight:n,h=Js(_)!==r||Js(n)!==c;return h&&(_=r,n=c),{width:_,height:n,$:h}}function ao(e){return bx_(e)?e:e.contextElement}function Wo(e){const t=ao(e);if(!no(t))return Qs(1);const _=t.getBoundingClientRect(),{width:n,height:s,$:r}=Sx_(t);let c=(r?Js(_.width):_.width)/n,h=(r?Js(_.height):_.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!h||!Number.isFinite(h))&&(h=1),{x:c,y:h}}const Ax_=Qs(0);function Ex_(e){const t=l_(e);return!kx_()||!t.visualViewport?Ax_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Tx_(e,t,_){return!1}function Uo(e,t,_,n){t===void 0&&(t=!1);const s=e.getBoundingClientRect(),r=ao(e);let c=Qs(1);t&&(c=Wo(e));const h=Tx_()?Ex_(r):Qs(0);let l=(s.left+h.x)/c.x,g=(s.top+h.y)/c.y,p=s.width/c.x,w=s.height/c.y;if(r){const v=l_(r),A=n;let I=v,E=Gn(I);for(;E&&n&&A!==I;){const $=Wo(E),k=E.getBoundingClientRect(),T=oo(E),j=k.left+(E.clientLeft+parseFloat(T.paddingLeft))*$.x,R=k.top+(E.clientTop+parseFloat(T.paddingTop))*$.y;l*=$.x,g*=$.y,p*=$.x,w*=$.y,l+=j,g+=R,I=l_(E),E=Gn(I)}}return vx_({width:p,height:w,x:l,y:g})}function mr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jx_(e,t){let _=null,n;const s=cr(e);function r(){var h;clearTimeout(n),(h=_)==null||h.disconnect(),_=null}function c(h,l){h===void 0&&(h=!1),l===void 0&&(l=1),r();const g=e.getBoundingClientRect(),{left:p,top:w,width:v,height:A}=g;if(h||t(),!v||!A)return;const I=Ms(w),E=Ms(s.clientWidth-(p+v)),$=Ms(s.clientHeight-(w+A)),k=Ms(p),j={rootMargin:-I+"px "+-E+"px "+-$+"px "+-k+"px",threshold:wx_(0,yx_(1,l))||1};let R=!0;function M(P){const D=P[0].intersectionRatio;if(D!==l){if(!R)return c();D?c(!1,D):n=setTimeout(()=>{c(!1,1e-7)},1e3)}D===1&&!mr(g,e.getBoundingClientRect())&&c(),R=!1}try{_=new IntersectionObserver(M,{...j,root:s.ownerDocument})}catch{_=new IntersectionObserver(M,j)}_.observe(e)}return c(!0),r}function qx_(e,t,_,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:r=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,g=ao(e),p=s||r?[...g?Ks(g):[],...Ks(t)]:[];p.forEach(k=>{s&&k.addEventListener("scroll",_,{passive:!0}),r&&k.addEventListener("resize",_)});const w=g&&h?jx_(g,_):null;let v=-1,A=null;c&&(A=new ResizeObserver(k=>{let[T]=k;T&&T.target===g&&A&&(A.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var j;(j=A)==null||j.observe(t)})),_()}),g&&!l&&A.observe(g),A.observe(t));let I,E=l?Uo(e):null;l&&$();function $(){const k=Uo(e);E&&!mr(E,k)&&_(),E=k,I=requestAnimationFrame($)}return _(),()=>{var k;p.forEach(T=>{s&&T.removeEventListener("scroll",_),r&&T.removeEventListener("resize",_)}),w==null||w(),(k=A)==null||k.disconnect(),A=null,l&&cancelAnimationFrame(I)}}var Bn=C.useLayoutEffect,Nx_=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],en=function(){};function Px_(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Rx_(e,t){for(var _=arguments.length,n=new Array(_>2?_-2:0),s=2;s<_;s++)n[s-2]=arguments[s];var r=[].concat(n);if(t&&e)for(var c in t)t.hasOwnProperty(c)&&t[c]&&r.push("".concat(Px_(e,c)));return r.filter(function(h){return h}).map(function(h){return String(h).trim()}).join(" ")}var tn=function(t){return Vx_(t)?t.filter(Boolean):x_(t)==="object"&&t!==null?[t]:[]},hr=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var _=s_(t,Nx_);return Ae({},_)},bt=function(t,_,n){var s=t.cx,r=t.getStyles,c=t.getClassNames,h=t.className;return{css:r(_,t),className:s(n??{},c(_,t),h)}};function gn(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Lx_(e){return gn(e)?window.innerHeight:e.clientHeight}function gr(e){return gn(e)?window.pageYOffset:e.scrollTop}function _n(e,t){if(gn(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Mx_(e){var t=getComputedStyle(e),_=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var s=e;s=s.parentElement;)if(t=getComputedStyle(s),!(_&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return s;return document.documentElement}function zx_(e,t,_,n){return _*((e=e/n-1)*e*e+1)+t}function zs(e,t){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:en,s=gr(e),r=t-s,c=10,h=0;function l(){h+=c;var g=zx_(h,s,r,_);_n(e,g),h<_?window.requestAnimationFrame(l):n(e)}l()}function Xo(e,t){var _=e.getBoundingClientRect(),n=t.getBoundingClientRect(),s=t.offsetHeight/3;n.bottom+s>_.bottom?_n(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+s,e.scrollHeight)):n.top-s<_.top&&_n(e,Math.max(t.offsetTop-s,0))}function Dx_(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Yo(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Fx_(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var pr=!1,Ox_={get passive(){return pr=!0}},Ds=typeof window<"u"?window:{};Ds.addEventListener&&Ds.removeEventListener&&(Ds.addEventListener("p",en,Ox_),Ds.removeEventListener("p",en,!1));var Gx_=pr;function Bx_(e){return e!=null}function Vx_(e){return Array.isArray(e)}function os(e,t,_){return e?t:_}var Hx_=function(t){for(var _=arguments.length,n=new Array(_>1?_-1:0),s=1;s<_;s++)n[s-1]=arguments[s];var r=Object.entries(t).filter(function(c){var h=r_(c,1),l=h[0];return!n.includes(l)});return r.reduce(function(c,h){var l=r_(h,2),g=l[0],p=l[1];return c[g]=p,c},{})},Wx_=["children","innerProps"],Ux_=["children","innerProps"];function Xx_(e){var t=e.maxHeight,_=e.menuEl,n=e.minHeight,s=e.placement,r=e.shouldScroll,c=e.isFixedPosition,h=e.controlHeight,l=Mx_(_),g={placement:"bottom",maxHeight:t};if(!_||!_.offsetParent)return g;var p=l.getBoundingClientRect(),w=p.height,v=_.getBoundingClientRect(),A=v.bottom,I=v.height,E=v.top,$=_.offsetParent.getBoundingClientRect(),k=$.top,T=c?window.innerHeight:Lx_(l),j=gr(l),R=parseInt(getComputedStyle(_).marginBottom,10),M=parseInt(getComputedStyle(_).marginTop,10),P=k-M,D=T-E,O=P+j,G=w-j-E,W=A-T+j+R,Q=j+E-M,B=160;switch(s){case"auto":case"bottom":if(D>=I)return{placement:"bottom",maxHeight:t};if(G>=I&&!c)return r&&zs(l,W,B),{placement:"bottom",maxHeight:t};if(!c&&G>=n||c&&D>=n){r&&zs(l,W,B);var te=c?D-R:G-R;return{placement:"bottom",maxHeight:te}}if(s==="auto"||c){var K=t,ae=c?P:O;return ae>=n&&(K=Math.min(ae-R-h,t)),{placement:"top",maxHeight:K}}if(s==="bottom")return r&&_n(l,W),{placement:"bottom",maxHeight:t};break;case"top":if(P>=I)return{placement:"top",maxHeight:t};if(O>=I&&!c)return r&&zs(l,Q,B),{placement:"top",maxHeight:t};if(!c&&O>=n||c&&P>=n){var Ie=t;return(!c&&O>=n||c&&P>=n)&&(Ie=c?P-M:O-M),r&&zs(l,Q,B),{placement:"top",maxHeight:Ie}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(s,'".'))}return g}function Yx_(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var fr=function(t){return t==="auto"?"bottom":t},Zx_=function(t,_){var n,s=t.placement,r=t.theme,c=r.borderRadius,h=r.spacing,l=r.colors;return Ae((n={label:"menu"},ns(n,Yx_(s),"100%"),ns(n,"position","absolute"),ns(n,"width","100%"),ns(n,"zIndex",1),n),_?{}:{backgroundColor:l.neutral0,borderRadius:c,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:h.menuGutter,marginTop:h.menuGutter})},yr=C.createContext(null),Jx_=function(t){var _=t.children,n=t.minMenuHeight,s=t.maxMenuHeight,r=t.menuPlacement,c=t.menuPosition,h=t.menuShouldScrollIntoView,l=t.theme,g=C.useContext(yr)||{},p=g.setPortalPlacement,w=C.useRef(null),v=C.useState(s),A=r_(v,2),I=A[0],E=A[1],$=C.useState(null),k=r_($,2),T=k[0],j=k[1],R=l.spacing.controlHeight;return Bn(function(){var M=w.current;if(M){var P=c==="fixed",D=h&&!P,O=Xx_({maxHeight:s,menuEl:M,minHeight:n,placement:r,shouldScroll:D,isFixedPosition:P,controlHeight:R});E(O.maxHeight),j(O.placement),p==null||p(O.placement)}},[s,r,c,h,n,p,R]),_({ref:w,placerProps:Ae(Ae({},t),{},{placement:T||fr(r),maxHeight:I})})},Qx_=function(t){var _=t.children,n=t.innerRef,s=t.innerProps;return Ce("div",Te({},bt(t,"menu",{menu:!0}),{ref:n},s),_)},Kx_=Qx_,e0_=function(t,_){var n=t.maxHeight,s=t.theme.spacing.baseUnit;return Ae({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},_?{}:{paddingBottom:s,paddingTop:s})},t0_=function(t){var _=t.children,n=t.innerProps,s=t.innerRef,r=t.isMulti;return Ce("div",Te({},bt(t,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:s},n),_)},wr=function(t,_){var n=t.theme,s=n.spacing.baseUnit,r=n.colors;return Ae({textAlign:"center"},_?{}:{color:r.neutral40,padding:"".concat(s*2,"px ").concat(s*3,"px")})},_0_=wr,s0_=wr,n0_=function(t){var _=t.children,n=_===void 0?"No options":_,s=t.innerProps,r=s_(t,Wx_);return Ce("div",Te({},bt(Ae(Ae({},r),{},{children:n,innerProps:s}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),s),n)},o0_=function(t){var _=t.children,n=_===void 0?"Loading...":_,s=t.innerProps,r=s_(t,Ux_);return Ce("div",Te({},bt(Ae(Ae({},r),{},{children:n,innerProps:s}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),s),n)},a0_=function(t){var _=t.rect,n=t.offset,s=t.position;return{left:_.left,position:s,top:n,width:_.width,zIndex:1}},i0_=function(t){var _=t.appendTo,n=t.children,s=t.controlElement,r=t.innerProps,c=t.menuPlacement,h=t.menuPosition,l=C.useRef(null),g=C.useRef(null),p=C.useState(fr(c)),w=r_(p,2),v=w[0],A=w[1],I=C.useMemo(function(){return{setPortalPlacement:A}},[]),E=C.useState(null),$=r_(E,2),k=$[0],T=$[1],j=C.useCallback(function(){if(s){var D=Dx_(s),O=h==="fixed"?0:window.pageYOffset,G=D[v]+O;(G!==(k==null?void 0:k.offset)||D.left!==(k==null?void 0:k.rect.left)||D.width!==(k==null?void 0:k.rect.width))&&T({offset:G,rect:D})}},[s,h,v,k==null?void 0:k.offset,k==null?void 0:k.rect.left,k==null?void 0:k.rect.width]);Bn(function(){j()},[j]);var R=C.useCallback(function(){typeof g.current=="function"&&(g.current(),g.current=null),s&&l.current&&(g.current=qx_(s,l.current,j,{elementResize:"ResizeObserver"in window}))},[s,j]);Bn(function(){R()},[R]);var M=C.useCallback(function(D){l.current=D,R()},[R]);if(!_&&h!=="fixed"||!k)return null;var P=Ce("div",Te({ref:M},bt(Ae(Ae({},t),{},{offset:k.offset,position:h,rect:k.rect}),"menuPortal",{"menu-portal":!0}),r),n);return Ce(yr.Provider,{value:I},_?jl.createPortal(P,_):P)},r0_=function(t){var _=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:_?"none":void 0,position:"relative"}},c0_=function(t){var _=t.children,n=t.innerProps,s=t.isDisabled,r=t.isRtl;return Ce("div",Te({},bt(t,"container",{"--is-disabled":s,"--is-rtl":r}),n),_)},l0_=function(t,_){var n=t.theme.spacing,s=t.isMulti,r=t.hasValue,c=t.selectProps.controlShouldRenderValue;return Ae({alignItems:"center",display:s&&r&&c?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},_?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},d0_=function(t){var _=t.children,n=t.innerProps,s=t.isMulti,r=t.hasValue;return Ce("div",Te({},bt(t,"valueContainer",{"value-container":!0,"value-container--is-multi":s,"value-container--has-value":r}),n),_)},u0_=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},m0_=function(t){var _=t.children,n=t.innerProps;return Ce("div",Te({},bt(t,"indicatorsContainer",{indicators:!0}),n),_)},Zo,h0_=["size"],g0_=["innerProps","isRtl","size"];function p0_(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var f0_=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:p0_},vr=function(t){var _=t.size,n=s_(t,h0_);return Ce("svg",Te({height:_,width:_,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:f0_},n))},io=function(t){return Ce(vr,Te({size:20},t),Ce("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},br=function(t){return Ce(vr,Te({size:20},t),Ce("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},$r=function(t,_){var n=t.isFocused,s=t.theme,r=s.spacing.baseUnit,c=s.colors;return Ae({label:"indicatorContainer",display:"flex",transition:"color 150ms"},_?{}:{color:n?c.neutral60:c.neutral20,padding:r*2,":hover":{color:n?c.neutral80:c.neutral40}})},y0_=$r,w0_=function(t){var _=t.children,n=t.innerProps;return Ce("div",Te({},bt(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),_||Ce(br,null))},v0_=$r,b0_=function(t){var _=t.children,n=t.innerProps;return Ce("div",Te({},bt(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),_||Ce(io,null))},$0_=function(t,_){var n=t.isDisabled,s=t.theme,r=s.spacing.baseUnit,c=s.colors;return Ae({label:"indicatorSeparator",alignSelf:"stretch",width:1},_?{}:{backgroundColor:n?c.neutral10:c.neutral20,marginBottom:r*2,marginTop:r*2})},k0_=function(t){var _=t.innerProps;return Ce("span",Te({},_,bt(t,"indicatorSeparator",{"indicator-separator":!0})))},x0_=ux_(Zo||(Zo=fx_([`
26
26
  0%, 80%, 100% { opacity: 0; }
27
27
  40% { opacity: 1; }
28
- `]))),I0_=function(t,_){var n=t.isFocused,s=t.size,r=t.theme,l=r.colors,h=r.spacing.baseUnit;return Ae({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:s,lineHeight:1,marginRight:s,textAlign:"center",verticalAlign:"middle"},_?{}:{color:n?l.neutral60:l.neutral20,padding:h*2})},xn=function(t){var _=t.delay,n=t.offset;return Ce("span",{css:so({animation:"".concat(x0_," 1s ease-in-out ").concat(_,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},C0_=function(t){var _=t.innerProps,n=t.isRtl,s=t.size,r=s===void 0?4:s,l=s_(t,g0_);return Ce("div",Te({},bt(Ae(Ae({},l),{},{innerProps:_,isRtl:n,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),_),Ce(xn,{delay:0,offset:n}),Ce(xn,{delay:160,offset:!0}),Ce(xn,{delay:320,offset:!n}))},S0_=function(t,_){var n=t.isDisabled,s=t.isFocused,r=t.theme,l=r.colors,h=r.borderRadius,c=r.spacing;return Ae({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:c.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},_?{}:{backgroundColor:n?l.neutral5:l.neutral0,borderColor:n?l.neutral10:s?l.primary:l.neutral20,borderRadius:h,borderStyle:"solid",borderWidth:1,boxShadow:s?"0 0 0 1px ".concat(l.primary):void 0,"&:hover":{borderColor:s?l.primary:l.neutral30}})},A0_=function(t){var _=t.children,n=t.isDisabled,s=t.isFocused,r=t.innerRef,l=t.innerProps,h=t.menuIsOpen;return Ce("div",Te({ref:r},bt(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":s,"control--menu-is-open":h}),l,{"aria-disabled":n||void 0}),_)},E0_=A0_,T0_=["data"],j0_=function(t,_){var n=t.theme.spacing;return _?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},q0_=function(t){var _=t.children,n=t.cx,s=t.getStyles,r=t.getClassNames,l=t.Heading,h=t.headingProps,c=t.innerProps,g=t.label,p=t.theme,w=t.selectProps;return Ce("div",Te({},bt(t,"group",{group:!0}),c),Ce(l,Te({},h,{selectProps:w,theme:p,getStyles:s,getClassNames:r,cx:n}),g),Ce("div",null,_))},N0_=function(t,_){var n=t.theme,s=n.colors,r=n.spacing;return Ae({label:"group",cursor:"default",display:"block"},_?{}:{color:s.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:r.baseUnit*3,paddingRight:r.baseUnit*3,textTransform:"uppercase"})},P0_=function(t){var _=hr(t);_.data;var n=s_(_,T0_);return Ce("div",Te({},bt(t,"groupHeading",{"group-heading":!0}),n))},R0_=q0_,L0_=["innerRef","isDisabled","isHidden","inputClassName"],M0_=function(t,_){var n=t.isDisabled,s=t.value,r=t.theme,l=r.spacing,h=r.colors;return Ae(Ae({visibility:n?"hidden":"visible",transform:s?"translateZ(0)":""},z0_),_?{}:{margin:l.baseUnit/2,paddingBottom:l.baseUnit/2,paddingTop:l.baseUnit/2,color:h.neutral80})},kr={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},z0_={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ae({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},kr)},D0_=function(t){return Ae({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},kr)},F0_=function(t){var _=t.cx,n=t.value,s=hr(t),r=s.innerRef,l=s.isDisabled,h=s.isHidden,c=s.inputClassName,g=s_(s,L0_);return Ce("div",Te({},bt(t,"input",{"input-container":!0}),{"data-value":n||""}),Ce("input",Te({className:_({input:!0},c),ref:r,style:D0_(h),disabled:l},g)))},O0_=F0_,G0_=function(t,_){var n=t.theme,s=n.spacing,r=n.borderRadius,l=n.colors;return Ae({label:"multiValue",display:"flex",minWidth:0},_?{}:{backgroundColor:l.neutral10,borderRadius:r/2,margin:s.baseUnit/2})},B0_=function(t,_){var n=t.theme,s=n.borderRadius,r=n.colors,l=t.cropWithEllipsis;return Ae({overflow:"hidden",textOverflow:l||l===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},_?{}:{borderRadius:s/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},V0_=function(t,_){var n=t.theme,s=n.spacing,r=n.borderRadius,l=n.colors,h=t.isFocused;return Ae({alignItems:"center",display:"flex"},_?{}:{borderRadius:r/2,backgroundColor:h?l.dangerLight:void 0,paddingLeft:s.baseUnit,paddingRight:s.baseUnit,":hover":{backgroundColor:l.dangerLight,color:l.danger}})},xr=function(t){var _=t.children,n=t.innerProps;return Ce("div",n,_)},H0_=xr,W0_=xr;function U0_(e){var t=e.children,_=e.innerProps;return Ce("div",Te({role:"button"},_),t||Ce(io,{size:14}))}var X0_=function(t){var _=t.children,n=t.components,s=t.data,r=t.innerProps,l=t.isDisabled,h=t.removeProps,c=t.selectProps,g=n.Container,p=n.Label,w=n.Remove;return Ce(g,{data:s,innerProps:Ae(Ae({},bt(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":l})),r),selectProps:c},Ce(p,{data:s,innerProps:Ae({},bt(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},_),Ce(w,{data:s,innerProps:Ae(Ae({},bt(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(_||"option")},h),selectProps:c}))},Y0_=X0_,Z0_=function(t,_){var n=t.isDisabled,s=t.isFocused,r=t.isSelected,l=t.theme,h=l.spacing,c=l.colors;return Ae({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},_?{}:{backgroundColor:r?c.primary:s?c.primary25:"transparent",color:n?c.neutral20:r?c.neutral0:"inherit",padding:"".concat(h.baseUnit*2,"px ").concat(h.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:r?c.primary:c.primary50}})},J0_=function(t){var _=t.children,n=t.isDisabled,s=t.isFocused,r=t.isSelected,l=t.innerRef,h=t.innerProps;return Ce("div",Te({},bt(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":s,"option--is-selected":r}),{ref:l,"aria-disabled":n},h),_)},Q0_=J0_,K0_=function(t,_){var n=t.theme,s=n.spacing,r=n.colors;return Ae({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},_?{}:{color:r.neutral50,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},e3_=function(t){var _=t.children,n=t.innerProps;return Ce("div",Te({},bt(t,"placeholder",{placeholder:!0}),n),_)},t3_=e3_,_3_=function(t,_){var n=t.isDisabled,s=t.theme,r=s.spacing,l=s.colors;return Ae({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},_?{}:{color:n?l.neutral40:l.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},s3_=function(t){var _=t.children,n=t.isDisabled,s=t.innerProps;return Ce("div",Te({},bt(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),s),_)},n3_=s3_,o3_={ClearIndicator:b0_,Control:E0_,DropdownIndicator:w0_,DownChevron:br,CrossIcon:io,Group:R0_,GroupHeading:P0_,IndicatorsContainer:m0_,IndicatorSeparator:k0_,Input:O0_,LoadingIndicator:C0_,Menu:Kx_,MenuList:t0_,MenuPortal:i0_,LoadingMessage:o0_,NoOptionsMessage:n0_,MultiValue:Y0_,MultiValueContainer:H0_,MultiValueLabel:W0_,MultiValueRemove:U0_,Option:Q0_,Placeholder:t3_,SelectContainer:c0_,SingleValue:n3_,ValueContainer:d0_},a3_=function(t){return Ae(Ae({},o3_),t.components)},Jo=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function i3_(e,t){return!!(e===t||Jo(e)&&Jo(t))}function r3_(e,t){if(e.length!==t.length)return!1;for(var _=0;_<e.length;_++)if(!i3_(e[_],t[_]))return!1;return!0}function c3_(e,t){t===void 0&&(t=r3_);var _=null;function n(){for(var s=[],r=0;r<arguments.length;r++)s[r]=arguments[r];if(_&&_.lastThis===this&&t(s,_.lastArgs))return _.lastResult;var l=e.apply(this,s);return _={lastResult:l,lastArgs:s,lastThis:this},l}return n.clear=function(){_=null},n}function l3_(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var d3_=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:l3_},u3_=function(t){return Ce("span",Te({css:d3_},t))},Qo=u3_,m3_={guidance:function(t){var _=t.isSearchable,n=t.isMulti,s=t.tabSelectsValue,r=t.context,l=t.isInitialFocus;switch(r){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(s?", press Tab to select the option and exit the menu":"",".");case"input":return l?"".concat(t["aria-label"]||"Select"," is focused ").concat(_?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var _=t.action,n=t.label,s=n===void 0?"":n,r=t.labels,l=t.isDisabled;switch(_){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(s,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return l?"option ".concat(s," is disabled. Select another option."):"option ".concat(s,", selected.");default:return""}},onFocus:function(t){var _=t.context,n=t.focused,s=t.options,r=t.label,l=r===void 0?"":r,h=t.selectValue,c=t.isDisabled,g=t.isSelected,p=t.isAppleDevice,w=function(E,$){return E&&E.length?"".concat(E.indexOf($)+1," of ").concat(E.length):""};if(_==="value"&&h)return"value ".concat(l," focused, ").concat(w(h,n),".");if(_==="menu"&&p){var v=c?" disabled":"",A="".concat(g?" selected":"").concat(v);return"".concat(l).concat(A,", ").concat(w(s,n),".")}return""},onFilter:function(t){var _=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(_?" for search term "+_:"",".")}},h3_=function(t){var _=t.ariaSelection,n=t.focusedOption,s=t.focusedValue,r=t.focusableOptions,l=t.isFocused,h=t.selectValue,c=t.selectProps,g=t.id,p=t.isAppleDevice,w=c.ariaLiveMessages,v=c.getOptionLabel,A=c.inputValue,I=c.isMulti,E=c.isOptionDisabled,$=c.isSearchable,k=c.menuIsOpen,T=c.options,j=c.screenReaderStatus,R=c.tabSelectsValue,M=c.isLoading,P=c["aria-label"],D=c["aria-live"],O=C.useMemo(function(){return Ae(Ae({},m3_),w||{})},[w]),G=C.useMemo(function(){var ae="";if(_&&O.onChange){var Ie=_.option,ne=_.options,we=_.removedValue,Ze=_.removedValues,We=_.value,wt=function(Fe){return Array.isArray(Fe)?null:Fe},De=we||Ie||wt(We),Me=De?v(De):"",xt=ne||Ze||void 0,ye=xt?xt.map(v):[],et=Ae({isDisabled:De&&E(De,h),label:Me,labels:ye},_);ae=O.onChange(et)}return ae},[_,O,E,h,v]),W=C.useMemo(function(){var ae="",Ie=n||s,ne=!!(n&&h&&h.includes(n));if(Ie&&O.onFocus){var we={focused:Ie,label:v(Ie),isDisabled:E(Ie,h),isSelected:ne,options:r,context:Ie===n?"menu":"value",selectValue:h,isAppleDevice:p};ae=O.onFocus(we)}return ae},[n,s,v,E,O,r,h,p]),Q=C.useMemo(function(){var ae="";if(k&&T.length&&!M&&O.onFilter){var Ie=j({count:r.length});ae=O.onFilter({inputValue:A,resultsMessage:Ie})}return ae},[r,A,k,O,T,j,M]),B=(_==null?void 0:_.action)==="initial-input-focus",se=C.useMemo(function(){var ae="";if(O.guidance){var Ie=s?"value":k?"menu":"input";ae=O.guidance({"aria-label":P,context:Ie,isDisabled:n&&E(n,h),isMulti:I,isSearchable:$,tabSelectsValue:R,isInitialFocus:B})}return ae},[P,n,s,I,E,$,k,O,h,R,B]),K=Ce(C.Fragment,null,Ce("span",{id:"aria-selection"},G),Ce("span",{id:"aria-focused"},W),Ce("span",{id:"aria-results"},Q),Ce("span",{id:"aria-guidance"},se));return Ce(C.Fragment,null,Ce(Qo,{id:g},B&&K),Ce(Qo,{"aria-live":D,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},l&&!B&&K))},g3_=h3_,Vn=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],p3_=new RegExp("["+Vn.map(function(e){return e.letters}).join("")+"]","g"),Ir={};for(var In=0;In<Vn.length;In++)for(var Cn=Vn[In],Sn=0;Sn<Cn.letters.length;Sn++)Ir[Cn.letters[Sn]]=Cn.base;var Cr=function(t){return t.replace(p3_,function(_){return Ir[_]})},f3_=c3_(Cr),Ko=function(t){return t.replace(/^\s+|\s+$/g,"")},y3_=function(t){return"".concat(t.label," ").concat(t.value)},w3_=function(t){return function(_,n){if(_.data.__isNew__)return!0;var s=Ae({ignoreCase:!0,ignoreAccents:!0,stringify:y3_,trim:!0,matchFrom:"any"},t),r=s.ignoreCase,l=s.ignoreAccents,h=s.stringify,c=s.trim,g=s.matchFrom,p=c?Ko(n):n,w=c?Ko(h(_)):h(_);return r&&(p=p.toLowerCase(),w=w.toLowerCase()),l&&(p=f3_(p),w=Cr(w)),g==="start"?w.substr(0,p.length)===p:w.indexOf(p)>-1}},v3_=["innerRef"];function b3_(e){var t=e.innerRef,_=s_(e,v3_),n=Hx_(_,"onExited","in","enter","exit","appear");return Ce("input",Te({ref:t},n,{css:so({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var $3_=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function k3_(e){var t=e.isEnabled,_=e.onBottomArrive,n=e.onBottomLeave,s=e.onTopArrive,r=e.onTopLeave,l=C.useRef(!1),h=C.useRef(!1),c=C.useRef(0),g=C.useRef(null),p=C.useCallback(function($,k){if(g.current!==null){var T=g.current,j=T.scrollTop,R=T.scrollHeight,M=T.clientHeight,P=g.current,D=k>0,O=R-M-j,G=!1;O>k&&l.current&&(n&&n($),l.current=!1),D&&h.current&&(r&&r($),h.current=!1),D&&k>O?(_&&!l.current&&_($),P.scrollTop=R,G=!0,l.current=!0):!D&&-k>j&&(s&&!h.current&&s($),P.scrollTop=0,G=!0,h.current=!0),G&&$3_($)}},[_,n,s,r]),w=C.useCallback(function($){p($,$.deltaY)},[p]),v=C.useCallback(function($){c.current=$.changedTouches[0].clientY},[]),A=C.useCallback(function($){var k=c.current-$.changedTouches[0].clientY;p($,k)},[p]),I=C.useCallback(function($){if($){var k=Gx_?{passive:!1}:!1;$.addEventListener("wheel",w,k),$.addEventListener("touchstart",v,k),$.addEventListener("touchmove",A,k)}},[A,v,w]),E=C.useCallback(function($){$&&($.removeEventListener("wheel",w,!1),$.removeEventListener("touchstart",v,!1),$.removeEventListener("touchmove",A,!1))},[A,v,w]);return C.useEffect(function(){if(t){var $=g.current;return I($),function(){E($)}}},[t,I,E]),function($){g.current=$}}var ea=["boxSizing","height","overflow","paddingRight","position"],ta={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function _a(e){e.cancelable&&e.preventDefault()}function sa(e){e.stopPropagation()}function na(){var e=this.scrollTop,t=this.scrollHeight,_=e+this.offsetHeight;e===0?this.scrollTop=1:_===t&&(this.scrollTop=e-1)}function oa(){return"ontouchstart"in window||navigator.maxTouchPoints}var aa=!!(typeof window<"u"&&window.document&&window.document.createElement),_s=0,R_={capture:!1,passive:!1};function x3_(e){var t=e.isEnabled,_=e.accountForScrollbars,n=_===void 0?!0:_,s=C.useRef({}),r=C.useRef(null),l=C.useCallback(function(c){if(aa){var g=document.body,p=g&&g.style;if(n&&ea.forEach(function(I){var E=p&&p[I];s.current[I]=E}),n&&_s<1){var w=parseInt(s.current.paddingRight,10)||0,v=document.body?document.body.clientWidth:0,A=window.innerWidth-v+w||0;Object.keys(ta).forEach(function(I){var E=ta[I];p&&(p[I]=E)}),p&&(p.paddingRight="".concat(A,"px"))}g&&oa()&&(g.addEventListener("touchmove",_a,R_),c&&(c.addEventListener("touchstart",na,R_),c.addEventListener("touchmove",sa,R_))),_s+=1}},[n]),h=C.useCallback(function(c){if(aa){var g=document.body,p=g&&g.style;_s=Math.max(_s-1,0),n&&_s<1&&ea.forEach(function(w){var v=s.current[w];p&&(p[w]=v)}),g&&oa()&&(g.removeEventListener("touchmove",_a,R_),c&&(c.removeEventListener("touchstart",na,R_),c.removeEventListener("touchmove",sa,R_)))}},[n]);return C.useEffect(function(){if(t){var c=r.current;return l(c),function(){h(c)}}},[t,l,h]),function(c){r.current=c}}function I3_(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var C3_=function(t){var _=t.target;return _.ownerDocument.activeElement&&_.ownerDocument.activeElement.blur()},S3_=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:I3_};function A3_(e){var t=e.children,_=e.lockEnabled,n=e.captureEnabled,s=n===void 0?!0:n,r=e.onBottomArrive,l=e.onBottomLeave,h=e.onTopArrive,c=e.onTopLeave,g=k3_({isEnabled:s,onBottomArrive:r,onBottomLeave:l,onTopArrive:h,onTopLeave:c}),p=x3_({isEnabled:_}),w=function(A){g(A),p(A)};return Ce(C.Fragment,null,_&&Ce("div",{onClick:C3_,css:S3_}),t(w))}function E3_(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var T3_=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:E3_},j3_=function(t){var _=t.name,n=t.onFocus;return Ce("input",{required:!0,name:_,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:T3_,value:"",onChange:function(){}})},q3_=j3_;function ro(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function N3_(){return ro(/^iPhone/i)}function Sr(){return ro(/^Mac/i)}function P3_(){return ro(/^iPad/i)||Sr()&&navigator.maxTouchPoints>1}function R3_(){return N3_()||P3_()}function L3_(){return Sr()||R3_()}var M3_=function(t){return t.label},Ar=function(t){return t.label},Er=function(t){return t.value},z3_=function(t){return!!t.isDisabled},D3_={clearIndicator:v0_,container:r0_,control:S0_,dropdownIndicator:y0_,group:j0_,groupHeading:N0_,indicatorsContainer:u0_,indicatorSeparator:$0_,input:M0_,loadingIndicator:I0_,loadingMessage:s0_,menu:Zx_,menuList:e0_,menuPortal:a0_,multiValue:G0_,multiValueLabel:B0_,multiValueRemove:V0_,noOptionsMessage:_0_,option:Z0_,placeholder:K0_,singleValue:_3_,valueContainer:l0_},F3_={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},O3_=4,Tr=4,G3_=38,B3_=Tr*2,V3_={baseUnit:Tr,controlHeight:G3_,menuGutter:B3_},An={borderRadius:O3_,colors:F3_,spacing:V3_},H3_={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Yo(),captureMenuScroll:!Yo(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:w3_(),formatGroupLabel:M3_,getOptionLabel:Ar,getOptionValue:Er,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:z3_,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Fx_(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var _=t.count;return"".concat(_," result").concat(_!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ia(e,t,_,n){var s=Nr(e,t,_),r=Pr(e,t,_),l=qr(e,t),h=sn(e,t);return{type:"option",data:t,isDisabled:s,isSelected:r,label:l,value:h,index:n}}function Vs(e,t){return e.options.map(function(_,n){if("options"in _){var s=_.options.map(function(l,h){return ia(e,l,t,h)}).filter(function(l){return ca(e,l)});return s.length>0?{type:"group",data:_,options:s,index:n}:void 0}var r=ia(e,_,t,n);return ca(e,r)?r:void 0}).filter(Bx_)}function jr(e){return e.reduce(function(t,_){return _.type==="group"?t.push.apply(t,M_(_.options.map(function(n){return n.data}))):t.push(_.data),t},[])}function ra(e,t){return e.reduce(function(_,n){return n.type==="group"?_.push.apply(_,M_(n.options.map(function(s){return{data:s.data,id:"".concat(t,"-").concat(n.index,"-").concat(s.index)}}))):_.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),_},[])}function W3_(e,t){return jr(Vs(e,t))}function ca(e,t){var _=e.inputValue,n=_===void 0?"":_,s=t.data,r=t.isSelected,l=t.label,h=t.value;return(!Lr(e)||!r)&&Rr(e,{label:l,value:h,data:s},n)}function U3_(e,t){var _=e.focusedValue,n=e.selectValue,s=n.indexOf(_);if(s>-1){var r=t.indexOf(_);if(r>-1)return _;if(s<t.length)return t[s]}return null}function X3_(e,t){var _=e.focusedOption;return _&&t.indexOf(_)>-1?_:t[0]}var En=function(t,_){var n,s=(n=t.find(function(r){return r.data===_}))===null||n===void 0?void 0:n.id;return s||null},qr=function(t,_){return t.getOptionLabel(_)},sn=function(t,_){return t.getOptionValue(_)};function Nr(e,t,_){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,_):!1}function Pr(e,t,_){if(_.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,_);var n=sn(e,t);return _.some(function(s){return sn(e,s)===n})}function Rr(e,t,_){return e.filterOption?e.filterOption(t,_):!0}var Lr=function(t){var _=t.hideSelectedOptions,n=t.isMulti;return _===void 0?n:_},Y3_=1,Mr=(function(e){i2_(_,e);var t=l2_(_);function _(n){var s;if(o2_(this,_),s=t.call(this,n),s.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},s.blockOptionHover=!1,s.isComposing=!1,s.commonProps=void 0,s.initialTouchX=0,s.initialTouchY=0,s.openAfterFocus=!1,s.scrollToFocusedOptionOnUpdate=!1,s.userIsDragging=void 0,s.controlRef=null,s.getControlRef=function(c){s.controlRef=c},s.focusedOptionRef=null,s.getFocusedOptionRef=function(c){s.focusedOptionRef=c},s.menuListRef=null,s.getMenuListRef=function(c){s.menuListRef=c},s.inputRef=null,s.getInputRef=function(c){s.inputRef=c},s.focus=s.focusInput,s.blur=s.blurInput,s.onChange=function(c,g){var p=s.props,w=p.onChange,v=p.name;g.name=v,s.ariaOnChange(c,g),w(c,g)},s.setValue=function(c,g,p){var w=s.props,v=w.closeMenuOnSelect,A=w.isMulti,I=w.inputValue;s.onInputChange("",{action:"set-value",prevInputValue:I}),v&&(s.setState({inputIsHiddenAfterUpdate:!A}),s.onMenuClose()),s.setState({clearFocusValueOnUpdate:!0}),s.onChange(c,{action:g,option:p})},s.selectOption=function(c){var g=s.props,p=g.blurInputOnSelect,w=g.isMulti,v=g.name,A=s.state.selectValue,I=w&&s.isOptionSelected(c,A),E=s.isOptionDisabled(c,A);if(I){var $=s.getOptionValue(c);s.setValue(A.filter(function(k){return s.getOptionValue(k)!==$}),"deselect-option",c)}else if(!E)w?s.setValue([].concat(M_(A),[c]),"select-option",c):s.setValue(c,"select-option");else{s.ariaOnChange(c,{action:"select-option",option:c,name:v});return}p&&s.blurInput()},s.removeValue=function(c){var g=s.props.isMulti,p=s.state.selectValue,w=s.getOptionValue(c),v=p.filter(function(I){return s.getOptionValue(I)!==w}),A=os(g,v,v[0]||null);s.onChange(A,{action:"remove-value",removedValue:c}),s.focusInput()},s.clearValue=function(){var c=s.state.selectValue;s.onChange(os(s.props.isMulti,[],null),{action:"clear",removedValues:c})},s.popValue=function(){var c=s.props.isMulti,g=s.state.selectValue,p=g[g.length-1],w=g.slice(0,g.length-1),v=os(c,w,w[0]||null);p&&s.onChange(v,{action:"pop-value",removedValue:p})},s.getFocusedOptionId=function(c){return En(s.state.focusableOptionsWithIds,c)},s.getFocusableOptionsWithIds=function(){return ra(Vs(s.props,s.state.selectValue),s.getElementId("option"))},s.getValue=function(){return s.state.selectValue},s.cx=function(){for(var c=arguments.length,g=new Array(c),p=0;p<c;p++)g[p]=arguments[p];return Rx_.apply(void 0,[s.props.classNamePrefix].concat(g))},s.getOptionLabel=function(c){return qr(s.props,c)},s.getOptionValue=function(c){return sn(s.props,c)},s.getStyles=function(c,g){var p=s.props.unstyled,w=D3_[c](g,p);w.boxSizing="border-box";var v=s.props.styles[c];return v?v(w,g):w},s.getClassNames=function(c,g){var p,w;return(p=(w=s.props.classNames)[c])===null||p===void 0?void 0:p.call(w,g)},s.getElementId=function(c){return"".concat(s.state.instancePrefix,"-").concat(c)},s.getComponents=function(){return a3_(s.props)},s.buildCategorizedOptions=function(){return Vs(s.props,s.state.selectValue)},s.getCategorizedOptions=function(){return s.props.menuIsOpen?s.buildCategorizedOptions():[]},s.buildFocusableOptions=function(){return jr(s.buildCategorizedOptions())},s.getFocusableOptions=function(){return s.props.menuIsOpen?s.buildFocusableOptions():[]},s.ariaOnChange=function(c,g){s.setState({ariaSelection:Ae({value:c},g)})},s.onMenuMouseDown=function(c){c.button===0&&(c.stopPropagation(),c.preventDefault(),s.focusInput())},s.onMenuMouseMove=function(c){s.blockOptionHover=!1},s.onControlMouseDown=function(c){if(!c.defaultPrevented){var g=s.props.openMenuOnClick;s.state.isFocused?s.props.menuIsOpen?c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&s.onMenuClose():g&&s.openMenu("first"):(g&&(s.openAfterFocus=!0),s.focusInput()),c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&c.preventDefault()}},s.onDropdownIndicatorMouseDown=function(c){if(!(c&&c.type==="mousedown"&&c.button!==0)&&!s.props.isDisabled){var g=s.props,p=g.isMulti,w=g.menuIsOpen;s.focusInput(),w?(s.setState({inputIsHiddenAfterUpdate:!p}),s.onMenuClose()):s.openMenu("first"),c.preventDefault()}},s.onClearIndicatorMouseDown=function(c){c&&c.type==="mousedown"&&c.button!==0||(s.clearValue(),c.preventDefault(),s.openAfterFocus=!1,c.type==="touchend"?s.focusInput():setTimeout(function(){return s.focusInput()}))},s.onScroll=function(c){typeof s.props.closeMenuOnScroll=="boolean"?c.target instanceof HTMLElement&&gn(c.target)&&s.props.onMenuClose():typeof s.props.closeMenuOnScroll=="function"&&s.props.closeMenuOnScroll(c)&&s.props.onMenuClose()},s.onCompositionStart=function(){s.isComposing=!0},s.onCompositionEnd=function(){s.isComposing=!1},s.onTouchStart=function(c){var g=c.touches,p=g&&g.item(0);p&&(s.initialTouchX=p.clientX,s.initialTouchY=p.clientY,s.userIsDragging=!1)},s.onTouchMove=function(c){var g=c.touches,p=g&&g.item(0);if(p){var w=Math.abs(p.clientX-s.initialTouchX),v=Math.abs(p.clientY-s.initialTouchY),A=5;s.userIsDragging=w>A||v>A}},s.onTouchEnd=function(c){s.userIsDragging||(s.controlRef&&!s.controlRef.contains(c.target)&&s.menuListRef&&!s.menuListRef.contains(c.target)&&s.blurInput(),s.initialTouchX=0,s.initialTouchY=0)},s.onControlTouchEnd=function(c){s.userIsDragging||s.onControlMouseDown(c)},s.onClearIndicatorTouchEnd=function(c){s.userIsDragging||s.onClearIndicatorMouseDown(c)},s.onDropdownIndicatorTouchEnd=function(c){s.userIsDragging||s.onDropdownIndicatorMouseDown(c)},s.handleInputChange=function(c){var g=s.props.inputValue,p=c.currentTarget.value;s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange(p,{action:"input-change",prevInputValue:g}),s.props.menuIsOpen||s.onMenuOpen()},s.onInputFocus=function(c){s.props.onFocus&&s.props.onFocus(c),s.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(s.openAfterFocus||s.props.openMenuOnFocus)&&s.openMenu("first"),s.openAfterFocus=!1},s.onInputBlur=function(c){var g=s.props.inputValue;if(s.menuListRef&&s.menuListRef.contains(document.activeElement)){s.inputRef.focus();return}s.props.onBlur&&s.props.onBlur(c),s.onInputChange("",{action:"input-blur",prevInputValue:g}),s.onMenuClose(),s.setState({focusedValue:null,isFocused:!1})},s.onOptionHover=function(c){if(!(s.blockOptionHover||s.state.focusedOption===c)){var g=s.getFocusableOptions(),p=g.indexOf(c);s.setState({focusedOption:c,focusedOptionId:p>-1?s.getFocusedOptionId(c):null})}},s.shouldHideSelectedOptions=function(){return Lr(s.props)},s.onValueInputFocus=function(c){c.preventDefault(),c.stopPropagation(),s.focus()},s.onKeyDown=function(c){var g=s.props,p=g.isMulti,w=g.backspaceRemovesValue,v=g.escapeClearsValue,A=g.inputValue,I=g.isClearable,E=g.isDisabled,$=g.menuIsOpen,k=g.onKeyDown,T=g.tabSelectsValue,j=g.openMenuOnFocus,R=s.state,M=R.focusedOption,P=R.focusedValue,D=R.selectValue;if(!E&&!(typeof k=="function"&&(k(c),c.defaultPrevented))){switch(s.blockOptionHover=!0,c.key){case"ArrowLeft":if(!p||A)return;s.focusValue("previous");break;case"ArrowRight":if(!p||A)return;s.focusValue("next");break;case"Delete":case"Backspace":if(A)return;if(P)s.removeValue(P);else{if(!w)return;p?s.popValue():I&&s.clearValue()}break;case"Tab":if(s.isComposing||c.shiftKey||!$||!T||!M||j&&s.isOptionSelected(M,D))return;s.selectOption(M);break;case"Enter":if(c.keyCode===229)break;if($){if(!M||s.isComposing)return;s.selectOption(M);break}return;case"Escape":$?(s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange("",{action:"menu-close",prevInputValue:A}),s.onMenuClose()):I&&v&&s.clearValue();break;case" ":if(A)return;if(!$){s.openMenu("first");break}if(!M)return;s.selectOption(M);break;case"ArrowUp":$?s.focusOption("up"):s.openMenu("last");break;case"ArrowDown":$?s.focusOption("down"):s.openMenu("first");break;case"PageUp":if(!$)return;s.focusOption("pageup");break;case"PageDown":if(!$)return;s.focusOption("pagedown");break;case"Home":if(!$)return;s.focusOption("first");break;case"End":if(!$)return;s.focusOption("last");break;default:return}c.preventDefault()}},s.state.instancePrefix="react-select-"+(s.props.instanceId||++Y3_),s.state.selectValue=tn(n.value),n.menuIsOpen&&s.state.selectValue.length){var r=s.getFocusableOptionsWithIds(),l=s.buildFocusableOptions(),h=l.indexOf(s.state.selectValue[0]);s.state.focusableOptionsWithIds=r,s.state.focusedOption=l[h],s.state.focusedOptionId=En(r,l[h])}return s}return a2_(_,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Xo(this.menuListRef,this.focusedOptionRef),L3_()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(s){var r=this.props,l=r.isDisabled,h=r.menuIsOpen,c=this.state.isFocused;(c&&!l&&s.isDisabled||c&&h&&!s.menuIsOpen)&&this.focusInput(),c&&l&&!s.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!c&&!l&&s.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Xo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(s,r){this.props.onInputChange(s,r)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(s){var r=this,l=this.state,h=l.selectValue,c=l.isFocused,g=this.buildFocusableOptions(),p=s==="first"?0:g.length-1;if(!this.props.isMulti){var w=g.indexOf(h[0]);w>-1&&(p=w)}this.scrollToFocusedOptionOnUpdate=!(c&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:g[p],focusedOptionId:this.getFocusedOptionId(g[p])},function(){return r.onMenuOpen()})}},{key:"focusValue",value:function(s){var r=this.state,l=r.selectValue,h=r.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var c=l.indexOf(h);h||(c=-1);var g=l.length-1,p=-1;if(l.length){switch(s){case"previous":c===0?p=0:c===-1?p=g:p=c-1;break;case"next":c>-1&&c<g&&(p=c+1);break}this.setState({inputIsHidden:p!==-1,focusedValue:l[p]})}}}},{key:"focusOption",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",r=this.props.pageSize,l=this.state.focusedOption,h=this.getFocusableOptions();if(h.length){var c=0,g=h.indexOf(l);l||(g=-1),s==="up"?c=g>0?g-1:h.length-1:s==="down"?c=(g+1)%h.length:s==="pageup"?(c=g-r,c<0&&(c=0)):s==="pagedown"?(c=g+r,c>h.length-1&&(c=h.length-1)):s==="last"&&(c=h.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:h[c],focusedValue:null,focusedOptionId:this.getFocusedOptionId(h[c])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(An):Ae(Ae({},An),this.props.theme):An}},{key:"getCommonProps",value:function(){var s=this.clearValue,r=this.cx,l=this.getStyles,h=this.getClassNames,c=this.getValue,g=this.selectOption,p=this.setValue,w=this.props,v=w.isMulti,A=w.isRtl,I=w.options,E=this.hasValue();return{clearValue:s,cx:r,getStyles:l,getClassNames:h,getValue:c,hasValue:E,isMulti:v,isRtl:A,options:I,selectOption:g,selectProps:w,setValue:p,theme:this.getTheme()}}},{key:"hasValue",value:function(){var s=this.state.selectValue;return s.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var s=this.props,r=s.isClearable,l=s.isMulti;return r===void 0?l:r}},{key:"isOptionDisabled",value:function(s,r){return Nr(this.props,s,r)}},{key:"isOptionSelected",value:function(s,r){return Pr(this.props,s,r)}},{key:"filterOption",value:function(s,r){return Rr(this.props,s,r)}},{key:"formatOptionLabel",value:function(s,r){if(typeof this.props.formatOptionLabel=="function"){var l=this.props.inputValue,h=this.state.selectValue;return this.props.formatOptionLabel(s,{context:r,inputValue:l,selectValue:h})}else return this.getOptionLabel(s)}},{key:"formatGroupLabel",value:function(s){return this.props.formatGroupLabel(s)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var s=this.props,r=s.isDisabled,l=s.isSearchable,h=s.inputId,c=s.inputValue,g=s.tabIndex,p=s.form,w=s.menuIsOpen,v=s.required,A=this.getComponents(),I=A.Input,E=this.state,$=E.inputIsHidden,k=E.ariaSelection,T=this.commonProps,j=h||this.getElementId("input"),R=Ae(Ae(Ae({"aria-autocomplete":"list","aria-expanded":w,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":v,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},w&&{"aria-controls":this.getElementId("listbox")}),!l&&{"aria-readonly":!0}),this.hasValue()?(k==null?void 0:k.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return l?Xe.createElement(I,Te({},T,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:j,innerRef:this.getInputRef,isDisabled:r,isHidden:$,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:g,form:p,type:"text",value:c},R)):Xe.createElement(b3_,Te({id:j,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:en,onFocus:this.onInputFocus,disabled:r,tabIndex:g,inputMode:"none",form:p,value:""},R))}},{key:"renderPlaceholderOrValue",value:function(){var s=this,r=this.getComponents(),l=r.MultiValue,h=r.MultiValueContainer,c=r.MultiValueLabel,g=r.MultiValueRemove,p=r.SingleValue,w=r.Placeholder,v=this.commonProps,A=this.props,I=A.controlShouldRenderValue,E=A.isDisabled,$=A.isMulti,k=A.inputValue,T=A.placeholder,j=this.state,R=j.selectValue,M=j.focusedValue,P=j.isFocused;if(!this.hasValue()||!I)return k?null:Xe.createElement(w,Te({},v,{key:"placeholder",isDisabled:E,isFocused:P,innerProps:{id:this.getElementId("placeholder")}}),T);if($)return R.map(function(O,G){var W=O===M,Q="".concat(s.getOptionLabel(O),"-").concat(s.getOptionValue(O));return Xe.createElement(l,Te({},v,{components:{Container:h,Label:c,Remove:g},isFocused:W,isDisabled:E,key:Q,index:G,removeProps:{onClick:function(){return s.removeValue(O)},onTouchEnd:function(){return s.removeValue(O)},onMouseDown:function(se){se.preventDefault()}},data:O}),s.formatOptionLabel(O,"value"))});if(k)return null;var D=R[0];return Xe.createElement(p,Te({},v,{data:D,isDisabled:E}),this.formatOptionLabel(D,"value"))}},{key:"renderClearIndicator",value:function(){var s=this.getComponents(),r=s.ClearIndicator,l=this.commonProps,h=this.props,c=h.isDisabled,g=h.isLoading,p=this.state.isFocused;if(!this.isClearable()||!r||c||!this.hasValue()||g)return null;var w={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Xe.createElement(r,Te({},l,{innerProps:w,isFocused:p}))}},{key:"renderLoadingIndicator",value:function(){var s=this.getComponents(),r=s.LoadingIndicator,l=this.commonProps,h=this.props,c=h.isDisabled,g=h.isLoading,p=this.state.isFocused;if(!r||!g)return null;var w={"aria-hidden":"true"};return Xe.createElement(r,Te({},l,{innerProps:w,isDisabled:c,isFocused:p}))}},{key:"renderIndicatorSeparator",value:function(){var s=this.getComponents(),r=s.DropdownIndicator,l=s.IndicatorSeparator;if(!r||!l)return null;var h=this.commonProps,c=this.props.isDisabled,g=this.state.isFocused;return Xe.createElement(l,Te({},h,{isDisabled:c,isFocused:g}))}},{key:"renderDropdownIndicator",value:function(){var s=this.getComponents(),r=s.DropdownIndicator;if(!r)return null;var l=this.commonProps,h=this.props.isDisabled,c=this.state.isFocused,g={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Xe.createElement(r,Te({},l,{innerProps:g,isDisabled:h,isFocused:c}))}},{key:"renderMenu",value:function(){var s=this,r=this.getComponents(),l=r.Group,h=r.GroupHeading,c=r.Menu,g=r.MenuList,p=r.MenuPortal,w=r.LoadingMessage,v=r.NoOptionsMessage,A=r.Option,I=this.commonProps,E=this.state.focusedOption,$=this.props,k=$.captureMenuScroll,T=$.inputValue,j=$.isLoading,R=$.loadingMessage,M=$.minMenuHeight,P=$.maxMenuHeight,D=$.menuIsOpen,O=$.menuPlacement,G=$.menuPosition,W=$.menuPortalTarget,Q=$.menuShouldBlockScroll,B=$.menuShouldScrollIntoView,se=$.noOptionsMessage,K=$.onMenuScrollToTop,ae=$.onMenuScrollToBottom;if(!D)return null;var Ie=function(Me,xt){var ye=Me.type,et=Me.data,dt=Me.isDisabled,Fe=Me.isSelected,Se=Me.label,St=Me.value,n_=E===et,ge=dt?void 0:function(){return s.onOptionHover(et)},Bt=dt?void 0:function(){return s.selectOption(et)},Ot="".concat(s.getElementId("option"),"-").concat(xt),Qt={id:Ot,onClick:Bt,onMouseMove:ge,onMouseOver:ge,tabIndex:-1,role:"option","aria-selected":s.state.isAppleDevice?void 0:Fe};return Xe.createElement(A,Te({},I,{innerProps:Qt,data:et,isDisabled:dt,isSelected:Fe,key:Ot,label:Se,type:ye,value:St,isFocused:n_,innerRef:n_?s.getFocusedOptionRef:void 0}),s.formatOptionLabel(Me.data,"menu"))},ne;if(this.hasOptions())ne=this.getCategorizedOptions().map(function(De){if(De.type==="group"){var Me=De.data,xt=De.options,ye=De.index,et="".concat(s.getElementId("group"),"-").concat(ye),dt="".concat(et,"-heading");return Xe.createElement(l,Te({},I,{key:et,data:Me,options:xt,Heading:h,headingProps:{id:dt,data:De.data},label:s.formatGroupLabel(De.data)}),De.options.map(function(Fe){return Ie(Fe,"".concat(ye,"-").concat(Fe.index))}))}else if(De.type==="option")return Ie(De,"".concat(De.index))});else if(j){var we=R({inputValue:T});if(we===null)return null;ne=Xe.createElement(w,I,we)}else{var Ze=se({inputValue:T});if(Ze===null)return null;ne=Xe.createElement(v,I,Ze)}var We={minMenuHeight:M,maxMenuHeight:P,menuPlacement:O,menuPosition:G,menuShouldScrollIntoView:B},wt=Xe.createElement(Jx_,Te({},I,We),function(De){var Me=De.ref,xt=De.placerProps,ye=xt.placement,et=xt.maxHeight;return Xe.createElement(c,Te({},I,We,{innerRef:Me,innerProps:{onMouseDown:s.onMenuMouseDown,onMouseMove:s.onMenuMouseMove},isLoading:j,placement:ye}),Xe.createElement(A3_,{captureEnabled:k,onTopArrive:K,onBottomArrive:ae,lockEnabled:Q},function(dt){return Xe.createElement(g,Te({},I,{innerRef:function(Se){s.getMenuListRef(Se),dt(Se)},innerProps:{role:"listbox","aria-multiselectable":I.isMulti,id:s.getElementId("listbox")},isLoading:j,maxHeight:et,focusedOption:E}),ne)}))});return W||G==="fixed"?Xe.createElement(p,Te({},I,{appendTo:W,controlElement:this.controlRef,menuPlacement:O,menuPosition:G}),wt):wt}},{key:"renderFormField",value:function(){var s=this,r=this.props,l=r.delimiter,h=r.isDisabled,c=r.isMulti,g=r.name,p=r.required,w=this.state.selectValue;if(p&&!this.hasValue()&&!h)return Xe.createElement(q3_,{name:g,onFocus:this.onValueInputFocus});if(!(!g||h))if(c)if(l){var v=w.map(function(E){return s.getOptionValue(E)}).join(l);return Xe.createElement("input",{name:g,type:"hidden",value:v})}else{var A=w.length>0?w.map(function(E,$){return Xe.createElement("input",{key:"i-".concat($),name:g,type:"hidden",value:s.getOptionValue(E)})}):Xe.createElement("input",{name:g,type:"hidden",value:""});return Xe.createElement("div",null,A)}else{var I=w[0]?this.getOptionValue(w[0]):"";return Xe.createElement("input",{name:g,type:"hidden",value:I})}}},{key:"renderLiveRegion",value:function(){var s=this.commonProps,r=this.state,l=r.ariaSelection,h=r.focusedOption,c=r.focusedValue,g=r.isFocused,p=r.selectValue,w=this.getFocusableOptions();return Xe.createElement(g3_,Te({},s,{id:this.getElementId("live-region"),ariaSelection:l,focusedOption:h,focusedValue:c,isFocused:g,selectValue:p,focusableOptions:w,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var s=this.getComponents(),r=s.Control,l=s.IndicatorsContainer,h=s.SelectContainer,c=s.ValueContainer,g=this.props,p=g.className,w=g.id,v=g.isDisabled,A=g.menuIsOpen,I=this.state.isFocused,E=this.commonProps=this.getCommonProps();return Xe.createElement(h,Te({},E,{className:p,innerProps:{id:w,onKeyDown:this.onKeyDown},isDisabled:v,isFocused:I}),this.renderLiveRegion(),Xe.createElement(r,Te({},E,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:v,isFocused:I,menuIsOpen:A}),Xe.createElement(c,Te({},E,{isDisabled:v}),this.renderPlaceholderOrValue(),this.renderInput()),Xe.createElement(l,Te({},E,{isDisabled:v}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(s,r){var l=r.prevProps,h=r.clearFocusValueOnUpdate,c=r.inputIsHiddenAfterUpdate,g=r.ariaSelection,p=r.isFocused,w=r.prevWasFocused,v=r.instancePrefix,A=s.options,I=s.value,E=s.menuIsOpen,$=s.inputValue,k=s.isMulti,T=tn(I),j={};if(l&&(I!==l.value||A!==l.options||E!==l.menuIsOpen||$!==l.inputValue)){var R=E?W3_(s,T):[],M=E?ra(Vs(s,T),"".concat(v,"-option")):[],P=h?U3_(r,T):null,D=X3_(r,R),O=En(M,D);j={selectValue:T,focusedOption:D,focusedOptionId:O,focusableOptionsWithIds:M,focusedValue:P,clearFocusValueOnUpdate:!1}}var G=c!=null&&s!==l?{inputIsHidden:c,inputIsHiddenAfterUpdate:void 0}:{},W=g,Q=p&&w;return p&&!Q&&(W={value:os(k,T,T[0]||null),options:T,action:"initial-input-focus"},Q=!w),(g==null?void 0:g.action)==="initial-input-focus"&&(W=null),Ae(Ae(Ae({},j),G),{},{prevProps:s,ariaSelection:W,prevWasFocused:Q})}}]),_})(C.Component);Mr.defaultProps=H3_;var Z3_=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function J3_(e){var t=e.defaultInputValue,_=t===void 0?"":t,n=e.defaultMenuIsOpen,s=n===void 0?!1:n,r=e.defaultValue,l=r===void 0?null:r,h=e.inputValue,c=e.menuIsOpen,g=e.onChange,p=e.onInputChange,w=e.onMenuClose,v=e.onMenuOpen,A=e.value,I=s_(e,Z3_),E=C.useState(h!==void 0?h:_),$=r_(E,2),k=$[0],T=$[1],j=C.useState(c!==void 0?c:s),R=r_(j,2),M=R[0],P=R[1],D=C.useState(A!==void 0?A:l),O=r_(D,2),G=O[0],W=O[1],Q=C.useCallback(function(we,Ze){typeof g=="function"&&g(we,Ze),W(we)},[g]),B=C.useCallback(function(we,Ze){var We;typeof p=="function"&&(We=p(we,Ze)),T(We!==void 0?We:we)},[p]),se=C.useCallback(function(){typeof v=="function"&&v(),P(!0)},[v]),K=C.useCallback(function(){typeof w=="function"&&w(),P(!1)},[w]),ae=h!==void 0?h:k,Ie=c!==void 0?c:M,ne=A!==void 0?A:G;return Ae(Ae({},I),{},{inputValue:ae,menuIsOpen:Ie,onChange:Q,onInputChange:B,onMenuClose:K,onMenuOpen:se,value:ne})}var Q3_=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],la=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,s=String(t).toLowerCase(),r=String(n.getOptionValue(_)).toLowerCase(),l=String(n.getOptionLabel(_)).toLowerCase();return r===s||l===s},Tn={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,_,n,s){return!(!t||_.some(function(r){return la(t,r,s)})||n.some(function(r){return la(t,r,s)}))},getNewOptionData:function(t,_){return{label:_,value:t,__isNew__:!0}}};function K3_(e){var t=e.allowCreateWhileLoading,_=t===void 0?!1:t,n=e.createOptionPosition,s=n===void 0?"last":n,r=e.formatCreateLabel,l=r===void 0?Tn.formatCreateLabel:r,h=e.isValidNewOption,c=h===void 0?Tn.isValidNewOption:h,g=e.getNewOptionData,p=g===void 0?Tn.getNewOptionData:g,w=e.onCreateOption,v=e.options,A=v===void 0?[]:v,I=e.onChange,E=s_(e,Q3_),$=E.getOptionValue,k=$===void 0?Er:$,T=E.getOptionLabel,j=T===void 0?Ar:T,R=E.inputValue,M=E.isLoading,P=E.isMulti,D=E.value,O=E.name,G=C.useMemo(function(){return c(R,tn(D),A,{getOptionValue:k,getOptionLabel:j})?p(R,l(R)):void 0},[l,p,j,k,R,c,A,D]),W=C.useMemo(function(){return(_||!M)&&G?s==="first"?[G].concat(M_(A)):[].concat(M_(A),[G]):A},[_,s,M,G,A]),Q=C.useCallback(function(B,se){if(se.action!=="select-option")return I(B,se);var K=Array.isArray(B)?B:[B];if(K[K.length-1]===G){if(w)w(R);else{var ae=p(R,R),Ie={action:"create-option",name:O,option:ae};I(os(P,[].concat(M_(tn(D)),[ae]),ae),Ie)}return}I(B,se)},[p,R,P,O,G,w,I,D]);return Ae(Ae({},E),{},{options:W,onChange:Q})}var e4_=C.forwardRef(function(e,t){var _=J3_(e),n=K3_(_);return Xe.createElement(Mr,Te({ref:t},n))}),zr=e4_;const as=({options:e,isDisabled:t,scrollBottom:_,onCreateOption:n,...s})=>{const[r,l]=C.useState(),h=p=>String(p).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/),c=p=>{if(h(p))l(void 0);else{l(`Invalid email format for email: ${p}`);return}const w={label:p,value:-new Date().getTime()};n==null||n(w)},g=()=>{l(void 0)};return o.jsxs("div",{className:"w-100",children:[o.jsx("div",{className:"w-100",children:o.jsx(zr,{isDisabled:t,options:e,menuPlacement:_?"top":"auto",onCreateOption:c,onFocus:g,...s})}),!!r&&o.jsx("p",{className:"text-danger mb-0 mt-1",children:r})]})},t4_=12,_4_=20,s4_=()=>{const e=ke.useDispatch(),[t,_]=C.useState([]),[n,s]=C.useState(Ik_),[r,l]=C.useState(0),[h,c]=C.useState(!1),[g,p]=C.useState([]),w=ke.useSelector(j=>{var R;return(R=j.common)==null?void 0:R.defaultFontSize}),v=C.useMemo(()=>w==_4_?"font-large":w==t4_?"font-small":"",[w]),A=j=>{const R={...n,...j};R.searchString&&j.searchString&&j.searchString!=n.searchString&&(R.currentPage=1),s(R)},I=C.useCallback(j=>{j!==n.sortBy?A({sortBy:j,orderBy:"ASC",currentPage:1}):A({sortBy:j,orderBy:n.orderBy!=="DESC"?"DESC":"ASC",currentPage:1})},[JSON.stringify(n)]),E=async()=>{var j,R,M,P;e(me(!0));try{const D=await vk_(n);_((j=D==null?void 0:D.data)==null?void 0:j.items),l((R=D==null?void 0:D.data)==null?void 0:R.totalItems)}catch(D){e(he({type:"danger",message:((P=(M=D.response)==null?void 0:M.data)==null?void 0:P.title)||D.message}))}e(me(!1))},$=()=>{c(!h),p(t.map(j=>j.id)),h&&p([])},k=j=>{const{id:R,checked:M}=j.target;p([...g,R]),M||p(g.filter(P=>P!==R))},T=C.useCallback(()=>{n.currentPage==1?E():A({currentPage:1}),p([]),c(!1)},[JSON.stringify(n)]);return C.useEffect(()=>{E()},[JSON.stringify(n)]),C.useEffect(()=>{document.title="User | Assign student"},[]),{handelSort:I,handleRetrievedData:T,totalItem:r,userList:t,filters:n,changeFilters:A,handleSelectAll:$,handleClickCheck:k,isCheckAll:h,isCheck:g,classFontSize:v}},n4_=()=>{const e=ke.useDispatch(),[t,_]=C.useState([]),[n,s]=C.useState(),r=async()=>{var c,g,p,w;try{const v=await bk_();v.data.items&&_(((g=(c=v.data.items).map)==null?void 0:g.call(c,A=>({label:A.email,value:A.id})))||[])}catch(v){e(he({type:"danger",message:((w=(p=v.response)==null?void 0:p.data)==null?void 0:w.title)||v.message}))}},l=C.useCallback((c,g)=>{let p=t.find(w=>w.value===c);s({...n,[g]:p})},[JSON.stringify(n),JSON.stringify(t)]),h=C.useCallback((c,g)=>{_([...t,c]),s({...n,[g]:c})},[JSON.stringify(t),JSON.stringify(n)]);return C.useEffect(()=>{r()},[]),{selectedCounselors:n,counselorOptions:t,handleSelectCounselor:l,handleCreateCounselorOption:h,setSelectedCounselors:s}},o4_=()=>{const e=ke.useDispatch(),[t,_]=C.useState([]),[n,s]=C.useState(),r=async()=>{var c,g,p,w;try{const v=await $k_();v.data.items&&_(((g=(c=v.data.items).map)==null?void 0:g.call(c,A=>({label:A.email,value:A.id})))||[])}catch(v){e(he({type:"danger",message:((w=(p=v.response)==null?void 0:p.data)==null?void 0:w.title)||v.message}))}},l=C.useCallback((c,g)=>{let p=t.find(w=>w.value===c);s({...n,[g]:p})},[JSON.stringify(n),JSON.stringify(t)]),h=C.useCallback((c,g)=>{_([...t,c]),s({...n,[g]:c})},[JSON.stringify(t),JSON.stringify(n)]);return C.useEffect(()=>{r()},[]),{selectedAssistants:n,assistantOptions:t,handleSelectAssistant:l,handleCreateAssistantOption:h,setSelectedAssistants:s}},a4_=()=>{const e=ke.useDispatch(),[t,_]=C.useState([]),[n,s]=C.useState(),r=async()=>{var c,g,p,w;try{const v=await Hi({sortBy:"Email"});v.data&&_(((g=(c=v.data).map)==null?void 0:g.call(c,A=>({label:A.email,value:A.id})))||[])}catch(v){e(he({type:"danger",message:((w=(p=v.response)==null?void 0:p.data)==null?void 0:w.title)||v.message}))}},l=C.useCallback((c,g)=>{let p=t.filter(w=>c.includes(w.value));s({...n,[g]:p})},[JSON.stringify(n),JSON.stringify(t)]),h=C.useCallback((c,g)=>{_([...t,c]),s({...n,[g]:c})},[JSON.stringify(t),JSON.stringify(n)]);return C.useEffect(()=>{r()},[]),{selectedTeachers:n,teacherOptions:t,handleSelectTeacher:l,handleCreateTeacherOption:h,setSelectedTeachers:s}},i4_=(e,t,_,n)=>{const s=ke.useDispatch(),{t:r}=yt.useTranslation(),[l,h]=C.useState(!1),[c,g]=C.useState(Ck_),[p,w]=C.useState(0),[v,A]=C.useState([]),[I,E]=C.useState(qo),$=()=>{h(!1),w(0),A([])},k=G=>{w(W=>W===G?-1:G)},T=(G,W)=>{switch(G){case"assistant":E({...I,assistantId:W.value,assistantEmail:W.label});break;case"secondary":E({...I,secondaryTeacherId:W.value,secondaryTeacherEmail:W.label});break;case"grade":E({...I,gradeLevel:W.value});break}},j=G=>{E({...I,teacher:G})},R=G=>{E({...I,counselors:G})},M=async G=>{var Q,B,se,K;if(I.teacher.length===0){s(he({type:"danger",message:"Please select teacher before assign!"}));return}const W={id:(c==null?void 0:c.id)||"",mainTeacherUserId:((Q=I.teacher.filter(ae=>{var Ie;return!((Ie=c==null?void 0:c.teachers)!=null&&Ie.some(ne=>ne.teacherUserId===ae.id))}))==null?void 0:Q.map(ae=>ae.id))||[],mainTeacherEmail:((B=I.teacher.filter(ae=>{var Ie;return!((Ie=c==null?void 0:c.teachers)!=null&&Ie.some(ne=>ne.teacherUserId===ae.id))}))==null?void 0:B.map(ae=>ae.email))||[],assistantUserId:I!=null&&I.assistantId?I==null?void 0:I.assistantId:void 0,assistantEmail:I!=null&&I.assistantEmail?I==null?void 0:I.assistantEmail:void 0,counselorUserIds:((se=I.counselors)==null?void 0:se.map(ae=>ae.id))||[],counselorEmails:((K=I.counselors)==null?void 0:K.map(ae=>ae.email))||[],secondaryTeacherUserId:I!=null&&I.secondaryTeacherId?I==null?void 0:I.secondaryTeacherId:void 0,secondaryTeacherEmail:I!=null&&I.secondaryTeacherEmail?I==null?void 0:I.secondaryTeacherEmail:void 0};P([W])},P=async G=>{var W,Q;s(me(!0));try{await kk_(G),s(he({type:"success",message:"Created Successfully"})),n==null||n()}catch(B){s(he({type:"danger",message:((Q=(W=B.response)==null?void 0:W.data)==null?void 0:Q.title)||B.message}))}s(me(!1))},D=C.useCallback(G=>{if(G.length===0){s(he({type:"danger",message:r("not_found_selected_student")}));return}if(G.some(B=>{const se=e==null?void 0:e[B],K=t==null?void 0:t[B],ae=_==null?void 0:_[B];return!se&&!K&&!ae})){s(he({type:"danger",message:r("please_select_add_teacher_for_all_selected_student_first")}));return}const Q=G==null?void 0:G.map(B=>{const se=e==null?void 0:e[B],K=t==null?void 0:t[B],ae=_==null?void 0:_[B],Ie=Array.isArray(ae)?ae:ae?[ae]:[],ne={id:B};return se&&(ne.mainTeacherUserId=se?se==null?void 0:se.map(we=>we.value):[],ne.mainTeacherEmail=se?se==null?void 0:se.map(we=>we.label):[]),K&&(ne.assistantUserId=K!=null&&K.value&&typeof(K==null?void 0:K.value)=="string"?K==null?void 0:K.value:void 0,ne.assistantEmail=K!=null&&K.value&&typeof(K==null?void 0:K.value)=="number"?K==null?void 0:K.label:void 0),ne.counselorUserIds=Ie.map(we=>we.value),ne.counselorEmails=Ie.map(we=>we.label),ne});P([...Q])},[JSON.stringify(e),JSON.stringify(t),JSON.stringify(_)]),O=C.useCallback(G=>{const W=e==null?void 0:e[G],Q=t==null?void 0:t[G],B=_==null?void 0:_[G];if(!W&&!Q&&!B){s(he({type:"danger",message:r("please_select_add_teacher_for_selected_student_first")}));return}const se={id:G};W&&(se.mainTeacherUserId=W?W==null?void 0:W.map(K=>K.value):void 0,se.mainTeacherEmail=W?W==null?void 0:W.map(K=>K.label):void 0),Q&&(se.assistantUserId=Q!=null&&Q.value&&typeof(Q==null?void 0:Q.value)=="string"?Q==null?void 0:Q.value:void 0,se.assistantEmail=Q!=null&&Q.value&&typeof(Q==null?void 0:Q.value)=="number"?Q==null?void 0:Q.label:void 0),B&&(se.counselorUserIds=B!=null&&B.value&&typeof(B==null?void 0:B.value)=="string"?[B==null?void 0:B.value]:[],se.counselorEmails=B!=null&&B.value&&typeof(B==null?void 0:B.value)=="number"?[B==null?void 0:B.label]:[]),P([se])},[JSON.stringify(e),JSON.stringify(t),JSON.stringify(_)]);return C.useEffect(()=>{var G,W;return c!=null&&c.id&&E({teacher:(G=c==null?void 0:c.teachers)==null?void 0:G.map(Q=>({id:Q.teacherUserId,email:Q.mainTeacherEmail})),assistantId:c==null?void 0:c.assistantUserId,assistantEmail:c==null?void 0:c.assistantEmail,counselors:(W=c==null?void 0:c.counselors)==null?void 0:W.map(Q=>({id:Q.counselorUserId,email:Q.counselorEmail})),secondaryTeacherEmail:c==null?void 0:c.secondaryTeacherEmail,secondaryTeacherId:c==null?void 0:c.secondaryTeacherUserId,gradeLevel:c==null?void 0:c.gradeLevel}),()=>{E(qo)}},[c]),{handleAssignSingleStudent:O,handleAssignMultiStudent:D,openDetailModal:l,setOpenDetailModal:h,selectedUser:c,setSelectedUser:g,onClose:$,toggleCollapse:k,activeIndex:p,staffBulkAssign:I,removeTeacherUserIds:v,handleChangeCounselorBulk:R,handleChangeTeacherBulk:j,handleEditAssignForStudents:M,handleChangeStaffBulk:T}},r4_=({openDetailModal:e,onClose:t,selectedUser:_,staffBulkAssign:n,teacherOptions:s,handleChangeTeacherBulk:r,handleChangeCounselorBulk:l,assistantOptions:h,counselorOptions:c,handleChangeStaffBulk:g,handleEditAssignForStudents:p,toggleCollapse:w,activeIndex:v})=>{var E,$;const{t:A}=yt.useTranslation(),I=[(_==null?void 0:_.teachers)||[],(_==null?void 0:_.counselors)||[]];return o.jsxs(S.Modal,{centered:!0,isOpen:e,toggle:()=>t(),children:[o.jsxs(S.ModalHeader,{className:L["header-assign-for-student"],children:[o.jsxs("div",{children:["Assign student ",_==null?void 0:_.fullName]}),o.jsxs("div",{children:["Grade ",_==null?void 0:_.gradeLevel]})]}),o.jsxs(S.ModalBody,{children:[I.map((k,T)=>o.jsxs("div",{children:[o.jsxs("button",{type:"button",className:`btn ${L["btn-collapse"]} ${v===T?"btn-link ":""}`,onClick:()=>w(T),children:[A(T===0?"current_teacher_name":"current_counselor_name")," ",`(${k.length})`," ",o.jsx("i",{className:`fa fa-angle-${v===T?"up":"down"}`})]}),o.jsx(S.Collapse,{isOpen:v===T,children:o.jsx(S.Card,{children:o.jsx(S.CardBody,{children:k.length>0?k.map(j=>T===0?o.jsxs("li",{children:[j.mainTeacherName," - ",j.mainTeacherEmail]},j.mainTeacherEmail):o.jsxs("li",{children:[j.counselorName," - ",j.counselorEmail]},j.counselorUserId)):o.jsx("div",{children:A("no_data")})})})})]},T)),o.jsx("div",{children:A("teacher_email")}),o.jsx(D_,{isMulti:!0,value:(E=n.teacher)==null?void 0:E.filter(k=>{var T;return!((T=_.teachers)!=null&&T.some(j=>j.teacherUserId===k.id))}).map(k=>({label:k.email,value:k.id})),options:s==null?void 0:s.filter(k=>{var T;return!((T=_.teachers)!=null&&T.some(j=>j.teacherUserId===k.value))}),placeholder:A("select_teacher"),className:`flex-grow-1 mb-3 ${L["custom-chip-teacher-select"]}`,onChange:k=>{const T=k.map(j=>({id:j.value,email:j.label}));r(T)},isClearable:!0,style:{maxWidth:120}}),o.jsx("div",{children:A("assistant_email")}),o.jsx(as,{value:h.find(k=>k.value==n.assistantId||k.label==n.assistantEmail)||null,options:h,onChange:k=>{g("assistant",k)},placeholder:A("select_assistant"),className:"flex-grow-1 mb-3"}),o.jsx("div",{children:A("counselor_email")}),o.jsx(D_,{isMulti:!0,value:($=n.counselors)==null?void 0:$.filter(k=>{var T;return!((T=_.counselors)!=null&&T.some(j=>j.counselorUserId===k.id))}).map(k=>({label:k.email,value:k.id})),options:c==null?void 0:c.filter(k=>{var T;return!((T=_.counselors)!=null&&T.some(j=>j.counselorUserId===k.value))}),placeholder:A("select_counselor"),className:`flex-grow-1 mb-3 ${L["custom-chip-teacher-select"]}`,onChange:k=>{const T=k.map(j=>({id:j.value,email:j.label}));l(T)},isClearable:!0,style:{maxWidth:120}}),o.jsx("div",{children:A("support_teacher_email")})]}),o.jsxs(S.ModalFooter,{className:"text-right",children:[o.jsx(S.Button,{onClick:()=>t(),children:A("cancel")}),o.jsx(S.Button,{color:"primary",onClick:()=>{p()},children:A("save")})]})]})},c4_=()=>{const{t:e}=yt.useTranslation(),{selectedTeachers:t,teacherOptions:_,handleSelectTeacher:n,setSelectedTeachers:s}=a4_(),{selectedAssistants:r,assistantOptions:l,handleCreateAssistantOption:h,handleSelectAssistant:c,setSelectedAssistants:g}=o4_(),{selectedCounselors:p,counselorOptions:w,handleCreateCounselorOption:v,handleSelectCounselor:A,setSelectedCounselors:I}=n4_(),{isCheck:E,isCheckAll:$,userList:k,filters:T,totalItem:j,handleClickCheck:R,handleSelectAll:M,changeFilters:P,handelSort:D,handleRetrievedData:O,classFontSize:G}=s4_(),W=()=>{O(),s(void 0),g(void 0),I(void 0),K(!1)},{handleAssignSingleStudent:Q,handleAssignMultiStudent:B,openDetailModal:se,setOpenDetailModal:K,selectedUser:ae,setSelectedUser:Ie,onClose:ne,toggleCollapse:we,activeIndex:Ze,staffBulkAssign:We,handleChangeCounselorBulk:wt,handleChangeTeacherBulk:De,handleEditAssignForStudents:Me,handleChangeStaffBulk:xt}=i4_(t,r,p,W);return o.jsxs("div",{className:`fadeIn animated ${L[G]}`,children:[o.jsx("h5",{className:`mt-4 mb-2 ${L["custom-title-font-size"]}`,children:e("assign_student")}),o.jsxs(S.Row,{className:"my-2",children:[o.jsx(S.Col,{md:8,children:o.jsx(vs,{initValue:(T==null?void 0:T.searchString)||"",onSearch:ye=>P({searchString:ye}),placeholder:e("type_something_to_search_students"),className:L["custom-font-size"]})}),o.jsxs(S.Col,{md:4,className:`d-flex justify-content-end align-items-center ${L["custom-font-size"]}`,children:[e("total_of_users"),": ",j]})]}),o.jsx(S.Row,{className:"mb-2",children:o.jsx(S.Col,{children:o.jsx(S.Button,{onClick:()=>B(E),color:"primary",className:L["custom-font-size"],children:e("assign_for_selected_students")})})}),o.jsxs(S.Row,{className:"mb-2",children:[o.jsx(S.Col,{md:12,children:k&&k.length>0?o.jsx("div",{children:o.jsxs(S.Table,{bordered:!0,hover:!0,striped:!0,size:"sm",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:"align-middle text-center",children:o.jsx("input",{type:"checkbox",onChange:M,checked:$})}),o.jsxs("th",{className:`align-top ${L.pointer} text-capitalize`,onClick:()=>D(jt.Name),children:[e("student_name"),T.sortBy===jt.Name&&o.jsx(C.Fragment,{children:T.orderBy==="DESC"?o.jsx(Xs,{className:"ml-1"}):o.jsx(Us,{className:"ml-1"})})]}),o.jsxs("th",{className:`align-top ${L.pointer}`,onClick:()=>D(jt.Email),children:[e("student_email"),T.sortBy===jt.Email&&o.jsx(C.Fragment,{children:T.orderBy==="DESC"?o.jsx(Xs,{className:"ml-1"}):o.jsx(Us,{className:"ml-1"})})]}),o.jsx("th",{style:{width:"20%"},children:e("teacher_email")}),o.jsx("th",{style:{width:"20%"},children:e("assistant_email")}),o.jsx("th",{style:{width:"20%"},children:e("counselor_email")}),o.jsx("th",{className:"align-top",children:e("action")})]})}),o.jsx("tbody",{children:k==null?void 0:k.map(ye=>{var et,dt;return o.jsxs("tr",{children:[o.jsx("td",{className:`align-middle ${L["custom-font-size"]} text-center`,children:o.jsx("input",{id:ye.id,type:"checkbox",onChange:R,checked:E.includes(ye.id)})}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:o.jsx("button",{type:"button",className:`${L["button-user-name"]} btn-link`,onClick:()=>{Ie(ye),K(!0)},children:ye.fullName})}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]} ${L["content-wrap"]}`,children:ye.email}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:ye.teachers&&ye.teachers.length>0?o.jsx(C.Fragment,{children:(et=ye.teachers)==null?void 0:et.map(Fe=>o.jsxs("p",{className:"mb-0",children:[Fe.mainTeacherName," - ",Fe.mainTeacherEmail]},Fe.mainTeacherEmail))}):o.jsx(as,{isMulti:!0,value:t==null?void 0:t[ye.id],options:_,onChange:Fe=>n(Fe.map(Se=>Se.value),ye.id),placeholder:e("select_teacher"),className:`flex-grow-1 mr-2 ${L["custom-font-size"]}`})}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:ye.assistantEmail?o.jsxs(C.Fragment,{children:[o.jsx("p",{className:`mb-0 ${L["custom-font-size"]}`,children:ye.assistantEmail}),o.jsx("p",{className:`mb-0 ${L["custom-font-size"]}`,children:ye.assistantName})]}):o.jsx(as,{value:r==null?void 0:r[ye.id],options:l,onChange:Fe=>c(Fe.value,ye.id),onCreateOption:Fe=>h(Fe,ye.id),placeholder:e("select_assistant"),className:`flex-grow-1 mr-2 ${L["custom-font-size"]}`})}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:ye.counselors&&ye.counselors.length>0?o.jsx(C.Fragment,{children:(dt=ye.counselors)==null?void 0:dt.map(Fe=>o.jsxs("p",{className:"mb-0",children:[Fe.counselorName," - ",Fe.counselorEmail]},Fe.counselorEmail))}):o.jsx(as,{value:p==null?void 0:p[ye.id],options:w,onChange:Fe=>A(Fe.value,ye.id),onCreateOption:Fe=>v(Fe,ye.id),placeholder:e("select_counselor"),className:`flex-grow-1 mr-2 ${L["custom-font-size"]}`})}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:o.jsx("div",{className:"d-flex",children:o.jsx(G_,{label:"Assign",onClick:()=>Q(ye.id),className:L["custom-font-size"]})})})]},ye.id)})})]})}):o.jsx(I_,{label:"student"})}),o.jsx(S.Col,{md:12,children:o.jsx(C_,{filters:T,totalRecordCount:j,changePageSize:ye=>P({pageSize:ye}),changePage:ye=>P({currentPage:ye}),className:L["custom-font-size"]})})]}),o.jsx(r4_,{openDetailModal:se,onClose:ne,selectedUser:ae,staffBulkAssign:We,teacherOptions:_,handleChangeTeacherBulk:De,handleChangeCounselorBulk:wt,assistantOptions:l,counselorOptions:w,handleChangeStaffBulk:xt,handleEditAssignForStudents:Me,toggleCollapse:we,activeIndex:Ze})]})},l4_=[{path:"/admin/users/user-list",title:"user_list",component:s2_},{path:"/admin/users/assign-student",title:"assign_student",component:c4_}],d4_=()=>o.jsx(Oi,{tabs:l4_});function u4_(e,t){return Gi(e,e)}function m4_(e){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 015 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 005 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}}]})(e)}const h4_=20097152,Dr=({fileName:e,maxWidth:t,maxHeight:_,setFile:n,canDelete:s,onDelete:r,isCheckFeedBack:l,onAddImage:h})=>{const c=ke.useDispatch(),[g,p]=C.useState(""),w={maxWidth:t||"100%",maxHeight:_||"100%"},v=g||Jt(e),A=E=>{E.preventDefault();let $=new FileReader,k=E.target.files[0];if(k.size>h4_){c(he({type:"danger",message:"File can't be larger than 2MB"}));return}$.onloadend=()=>{n(k),p($.result)},k&&$.readAsDataURL(k),h&&h()},I=g||e?o.jsx("img",{style:w,src:v,alt:"image"}):null;return o.jsxs("div",{className:"mb-2",children:[o.jsxs(S.Form,{className:"mb-2",children:[o.jsx(S.Input,{className:"d-none",type:"file",id:"uploadFile",onChange:A,accept:"image/*"}),o.jsxs("div",{className:"d-flex align-items-center",children:[o.jsx(S.Label,{htmlFor:"uploadFile",role:"button",tabIndex:0,className:L["input-file-label"],children:l==!0?o.jsx(m4_,{}):o.jsxs(C.Fragment,{children:[o.jsx("i",{className:"fa fa-paperclip mr-1","aria-hidden":"true"}),g||e?"Change file":"Choose file"]})}),s&&I&&o.jsx(S.Button,{size:"sm",color:"danger",className:`${L["delete-avatar-button"]} ml-2 d-flex align-items-center justify-content-center`,onClick:()=>{p(null),r&&r()},children:o.jsx(qi,{})})]})]}),I]})},g4_={id:"",firstName:"",lastName:"",email:"",dateOfBirth:"",roles:[],isActive:!0,profileImageFileName:"",teacherUserId:[]},da="/admin/users/user-list",p4_="User detail",f4_=12,y4_=20,w4_=e=>{const t=ke.useDispatch(),_=vt.useNavigate(),n=ke.useSelector(W=>{var Q;return(Q=W.common)==null?void 0:Q.defaultFontSize}),[s,r]=C.useState(g4_),[l,h]=C.useState(null),[c,g]=C.useState(!1),[p,w]=C.useState([]),[v,A]=C.useState([]),[I,E]=C.useState(!1),$=async()=>{localStorage.setItem(window.location.href,"true"),g(!0)},k=()=>{E(!I)},T=C.useMemo(()=>n==y4_?"font-large":n==f4_?"font-small":"",[n]);C.useEffect(()=>{document.title=p4_,g(!1),localStorage.getItem(window.location.href)&&localStorage.removeItem(window.location.href)},[]),C.useEffect(()=>{e&&j(),!e&&G()},[e]);const j=C.useCallback(async()=>{var W,Q,B,se;t(me(!0));try{const K=await jo(e);r({...K.data,dateOfBirth:m_.format(new Date(K.data.dateOfBirth),Un),roles:K.data.roles.includes("EduTeacher")?[i_.EDUTEACHER]:K.data.roles}),w(((W=K==null?void 0:K.data)==null?void 0:W.roles)??[]),document.title=(Q=K.data)==null?void 0:Q.fullName}catch(K){t(he({type:"danger",message:((se=(B=K.response)==null?void 0:B.data)==null?void 0:se.title)||K.message}))}t(me(!1))},[e]),R=C.useCallback(W=>{_(W&&typeof W=="string"?da+`?query=${W}`:da)},[]),M=W=>["Student","Parent","EduTeacher"].includes(W),P=C.useCallback(async W=>{var Q,B,se;t(me(!0));try{if(l){const Ie=new FormData,{name:ne}=l;Ie.append("file",l,ne);const we=await m1_(Ie),Ze=(Q=we==null?void 0:we.data)==null?void 0:Q.key;W.profileImageFileName=Ze}const K=e?gk_:hk_;!e&&delete W.id;const ae=await K(W);ae&&jo(ae.data.id).then(Ie=>{R(Ie.data.fullName)}),e||alert("Password of "+ae.data.email+` is "${ae.data.password}"`),t(he({type:"success",message:`${e?"Update":"Create"} user successfully`}))}catch(K){t(he({type:"danger",message:((se=(B=K.response)==null?void 0:B.data)==null?void 0:se.title)||K.message}))}t(me(!1))},[e,l]),D=async W=>{var Q,B;t(me(!0));try{await fk_(W),t(he({type:"success",message:"Change password successfully"}))}catch(se){t(he({type:"danger",message:((B=(Q=se.response)==null?void 0:Q.data)==null?void 0:B.title)||se.message}))}t(me(!1))},O=C.useCallback(async W=>{var Q,B;t(me(!0));try{await yk_(W),t(he({type:"success",message:"Send forgot password link successfully"}))}catch(se){t(he({type:"danger",message:((B=(Q=se.response)==null?void 0:Q.data)==null?void 0:B.title)||se.message||"Error occured"}))}t(me(!1))},[]),G=async()=>{var W,Q,B,se;try{const K=await Hi({sortBy:"Email"});K.data&&A(((Q=(W=K.data).map)==null?void 0:Q.call(W,ae=>({label:ae.email,value:ae.id})))||[])}catch(K){t(he({type:"danger",message:((se=(B=K.response)==null?void 0:B.data)==null?void 0:se.title)||K.message}))}};return{userDetail:s,backToList:R,confirmData:P,file:l,setFile:h,edited:c,currentRoles:p,setEdited:g,setEditedTrue:$,confirmChangePassword:D,forgotPasswordRequest:O,handleDisableRoles:M,classFontSize:T,teacherOptions:v,handleToggleModel:k,openModel:I}},v4_=nt.object({firstName:nt.string().required("First name is required"),lastName:nt.string().required("Last name is required"),dateOfBirth:nt.string().required("Date of birth is required"),email:nt.string().email("Email is invalid").required("Email is required"),roles:nt.array().of(nt.string()).min(1,"Role is required")}),b4_=nt.object({oldPassword:nt.string().required("Current password is required"),newPassword:nt.string().required("New password is required"),confirmedNewPassword:nt.string().required("Confirm password is required")}),$4_="create_user",k4_="edit_user",x4_="change_password",I4_=()=>{const{t:e}=yt.useTranslation(),{id:t}=vt.useParams(),_=ke.useSelector(O=>O.common.user),{userDetail:n,backToList:s,confirmData:r,file:l,setFile:h,edited:c,currentRoles:g,handleDisableRoles:p,setEdited:w,setEditedTrue:v,confirmChangePassword:A,forgotPasswordRequest:I,classFontSize:E,teacherOptions:$,openModel:k,handleToggleModel:T}=w4_(t),j={oldPassword:"",newPassword:"",confirmedNewPassword:""},R=t?k4_:$4_,M=t?"update":"create",P=()=>{var O=window.location.origin+"/api/ExportDataUser/"+t;window.open(O)},D=async O=>{var G={email:O};I(G)};return o.jsx(c_.Formik,{initialValues:n,enableReinitialize:!0,validationSchema:v4_,onSubmit:O=>{r({...O,roles:O.roles.includes(i_.EDUTEACHER)?["EduTeacher"]:O.roles}),w(!1),localStorage.getItem(window.location.href)&&localStorage.removeItem(window.location.href)},children:O=>{const{values:G,touched:W,errors:Q,setFieldValue:B,handleChange:se,handleBlur:K,handleSubmit:ae}=O,Ie=C.useCallback(ne=>{if(G.roles.includes(ne)){B("roles",G.roles.filter(we=>we!==ne));return}if([i_.STUDENT,i_.PARENT,i_.EDUTEACHER].includes(ne)){B("roles",[ne]);return}if(G.roles.includes(i_.EDUTEACHER)&&i_.EDUTEACHER!=ne){B("roles",[ne]);return}B("roles",[...G.roles,ne])},[G.roles]);return o.jsxs("div",{className:`animated fadeIn detail-buttons-padding ${L[E]}`,children:[o.jsx(fs,{when:c}),o.jsx("h5",{className:`mb-2 ${L["custom-title-font-size"]}`,children:e(R)}),o.jsxs(S.Row,{className:`pt-2 ${L["custom-font-size"]}`,children:[o.jsxs(S.Col,{md:8,children:[o.jsxs(S.Row,{children:[o.jsx(S.Col,{md:6,children:o.jsxs(S.FormGroup,{children:[o.jsx(zt,{className:` ${L["custom-font-size"]}`,text:e("first_name")}),o.jsx(S.Input,{name:"firstName",value:G.firstName,onChange:ne=>{se(ne),v()},onBlur:K("subject"),placeholder:e("first_name"),className:` ${L["custom-font-size"]}`}),W.firstName&&Q.firstName&&o.jsx(kt,{text:Q.firstName})]})}),o.jsx(S.Col,{md:6,children:o.jsxs(S.FormGroup,{children:[o.jsx(zt,{className:` ${L["custom-font-size"]}`,text:e("date_of_birth")}),o.jsx("div",{children:o.jsx(Tl,{value:G.dateOfBirth,todayButton:"Today",peekNextMonth:!0,showMonthDropdown:!0,showYearDropdown:!0,dropdownMode:"select",selected:G.dateOfBirth?u4_(new Date(G.dateOfBirth)):null,onChange:ne=>{O.setFieldValue("dateOfBirth",m_.format(ne,Un)),v()},placeholderText:e("date_of_birth"),customInput:o.jsx(S.Input,{type:"text",style:{width:"maxContent"},placeholder:e("date_of_birth"),className:` ${L["custom-font-size"]}`})})}),W.dateOfBirth&&Q.dateOfBirth&&o.jsx(kt,{text:Q.dateOfBirth})]})})]}),o.jsxs(S.Row,{children:[o.jsx(S.Col,{md:6,children:o.jsxs(S.FormGroup,{children:[o.jsx(zt,{className:` ${L["custom-font-size"]}`,text:e("last_name")}),o.jsx(S.Input,{name:"lastName",value:G.lastName,onChange:ne=>{se(ne),v()},onBlur:K("lastName"),placeholder:e("last_name"),className:` ${L["custom-font-size"]}`}),W.lastName&&Q.lastName&&o.jsx(kt,{text:Q.lastName})]})}),o.jsx(S.Col,{md:6,children:o.jsxs(S.FormGroup,{children:[o.jsx(zt,{className:` ${L["custom-font-size"]}`,text:e("roles")}),o.jsx(S.Row,{children:o.jsx(S.Col,{md:12,className:"d-flex flex-wrap align-items-center",children:Vv_.map(ne=>o.jsx("div",{className:"mr-3",children:o.jsx(S.Input,{type:"checkbox",id:`role-checkbox-${ne}`,label:ne,checked:G.roles.includes(ne),onChange:()=>{Ie(ne),v()},disabled:t?g.concat(["Student","Parent","General ED teacher"]).includes(ne)||g.every(p):["Parent"].includes(ne),className:` ${L["custom-font-size"]}`})},ne))})}),W.roles&&Q.roles&&o.jsx(kt,{text:Q.roles})]})})]}),o.jsxs(S.Row,{children:[o.jsx(S.Col,{md:6,children:o.jsxs(S.FormGroup,{children:[o.jsx(zt,{className:` ${L["custom-font-size"]}`,text:e("email")}),o.jsx(S.Input,{name:"email",value:G.email,onChange:ne=>{se(ne),v()},onBlur:K("email"),placeholder:e("email"),className:` ${L["custom-font-size"]}`}),W.email&&Q.email&&o.jsx(kt,{text:Q.email})]})}),o.jsx(S.Col,{md:6,children:o.jsxs(S.FormGroup,{children:[o.jsx(zt,{text:e("status"),className:` ${L["custom-font-size"]}`}),o.jsxs(S.Row,{children:[o.jsx(S.Col,{md:3,children:o.jsx(S.Input,{id:"role-checkbox-active",type:"radio",name:"active",label:e("active"),checked:!!G&&!!G.isActive,onChange:()=>{B("isActive",!0),v()},className:` ${L["custom-font-size"]}`})}),o.jsx(S.Col,{md:3,children:o.jsx(S.Input,{id:"role-checkbox-inActive",type:"radio",name:"active",label:e("inactive"),checked:!!G&&!G.isActive,onChange:()=>B("isActive",!1),className:` ${L["custom-font-size"]}`})})]})]})})]}),!!t&&o.jsxs(S.Row,{children:[o.jsx(S.Col,{md:6}),o.jsxs(S.Col,{md:6,children:[o.jsx(S.Button,{color:"primary",className:`w-100 ${L["custom-font-size"]}`,onClick:()=>{D(G.email||"")},children:e("send_forgot_password_link")}),o.jsx(S.Button,{className:`w-100 mt-3 ${L["custom-font-size"]}`,color:"success",onClick:()=>{P()},children:e("download_user_data")})]})]})]}),o.jsx(S.Col,{md:4,children:o.jsx(S.Row,{children:o.jsxs(S.Col,{md:8,children:[o.jsx(Dr,{setFile:h,fileName:G.profileImageFileName,onAddImage:v,canDelete:!0,onDelete:()=>{h(null),B("profileImageFileName",""),v()}}),!l&&!G.profileImageFileName&&o.jsx("img",{src:Uv_,style:{maxWidth:"100%"}})]})})})]}),_.id===t?o.jsxs("div",{children:[o.jsx("h5",{className:"mt-3",children:e(x4_)}),o.jsx(c_.Formik,{initialValues:j,enableReinitialize:!0,validationSchema:b4_,onSubmit:ne=>{A(ne)},children:ne=>{const{values:we,touched:Ze,errors:We,handleChange:wt,handleSubmit:De}=ne;return o.jsxs(S.Row,{className:"pt-2 pb-5",children:[o.jsx(S.Col,{md:7,children:o.jsxs(S.FormGroup,{children:[o.jsx(zt,{className:` ${L["custom-font-size"]}`,text:e("current_password")}),o.jsx(S.Input,{name:"oldPassword",type:"password",value:we.oldPassword,onChange:Me=>{wt(Me),v()},onBlur:K("subject"),placeholder:e("current_password"),className:` ${L["custom-font-size"]}`}),Ze.oldPassword&&We.oldPassword&&o.jsx(kt,{text:We.oldPassword})]})}),o.jsx(S.Col,{md:7,children:o.jsxs(S.FormGroup,{children:[o.jsx(zt,{text:e("new_password"),className:` ${L["custom-font-size"]}`}),o.jsx(S.Input,{name:"newPassword",type:"password",value:we.newPassword,onChange:Me=>{wt(Me),v()},onBlur:K("subject"),placeholder:e("new_password"),className:` ${L["custom-font-size"]}`}),Ze.newPassword&&We.newPassword&&o.jsx(kt,{text:We.newPassword})]})}),o.jsx(S.Col,{md:7,children:o.jsxs(S.FormGroup,{children:[o.jsx(zt,{text:e("confirm_password"),className:` ${L["custom-font-size"]}`}),o.jsx(S.Input,{name:"confirmedNewPassword",type:"password",value:we.confirmedNewPassword,onChange:Me=>{wt(Me),v()},onBlur:K("subject"),placeholder:e("confirm_password"),className:` ${L["custom-font-size"]}`}),Ze.confirmedNewPassword&&We.confirmedNewPassword&&o.jsx(kt,{text:We.confirmedNewPassword})]})}),o.jsx(S.Col,{md:12,children:o.jsx(S.Button,{color:"primary",size:"sm",className:`px-4 pl-1 mr-2 ml-3 ${L["custom-font-size"]}`,onClick:()=>De(),children:e("save")})})]})}})]}):null,o.jsx(Qn,{confirmText:M,onConfirm:G.roles.includes(i_.STUDENT)&&!t?T:ae,onCancel:s,className:` ${L["custom-font-size"]}`}),o.jsxs(S.Modal,{centered:!0,isOpen:k,toggle:()=>T(),children:[o.jsx(S.ModalHeader,{children:"Assign Teacher"}),o.jsx(S.ModalBody,{children:o.jsx(as,{value:$.filter(ne=>{var we;return(we=G.teacherUserId)==null?void 0:we.includes(ne.value)})||null,options:$,placeholder:e("select_teacher"),className:"flex-grow-1 mb-3",onChange:ne=>B("teacherUserId",[ne.value])})}),o.jsxs(S.ModalFooter,{className:"text-right",children:[o.jsx(S.Button,{onClick:()=>T(),children:"Cancel"}),o.jsx(S.Button,{disabled:!G.teacherUserId,color:"primary",onClick:()=>ae(),children:"Assign"})]})]})]})}})},C4_={minWidth:"100vw",minHeight:"100vh",position:"fixed",top:0,left:0,zIndex:999999999,backgroundColor:"rgba(0, 0, 0, 0.4)",display:"flex",justifyContent:"center",alignItems:"center"},S4_=()=>ke.useSelector(t=>t.common.isLoading)?o.jsx("div",{style:C4_,children:o.jsx("div",{className:"spinner-border text-secondary",role:"status",children:o.jsx("span",{className:"sr-only",children:"Loading..."})})}):null,A4_=()=>{const{pathname:e}=vt.useLocation();return C.useEffect(()=>{window.scrollTo(0,0)},[e]),null},ua=e=>{switch(e){case"danger":return{header:"Error",color:qs.DANGER};case"warning":return{header:"Warning",color:qs.WARNING};case"success":return{header:"Success",color:qs.SUCCESS};default:return{header:"Infomation",color:qs.INFO}}},E4_=()=>{const e=ke.useDispatch(),t=ke.useSelector(g=>g.common.modal),{isOpen:_,type:n,message:s,onConfirm:r}=t,l=C.useCallback(()=>{e(Xt({isOpen:!_,type:n}))},[_]),h={backgroundColor:ua(n).color},c=()=>{r&&r(),l()};return o.jsxs(S.Modal,{isOpen:_,toggle:l,fade:!0,children:[o.jsx(S.ModalHeader,{toggle:l,style:h,children:ua(n).header}),o.jsx(S.ModalBody,{children:s}),o.jsxs(S.ModalFooter,{children:[r&&o.jsx(S.Button,{color:n,onClick:c,children:"Confirm"}),o.jsx(S.Button,{color:"secondary",onClick:l,children:"Cancel"})]})]})},T4_={paddingBottom:"16px"},ma={fontSize:"1.5rem",textAlign:"center"},j4_=({header:e,rootHeader:t})=>o.jsx("div",{style:T4_,children:o.jsxs(S.Row,{children:[t&&o.jsx(S.Col,{md:4,children:o.jsx("span",{className:"text-muted",style:ma,children:t})}),o.jsx(S.Col,{md:4,children:o.jsx("span",{style:ma,children:e})})]})}),q4_=({onClick:e})=>o.jsx("div",{className:"d-inline text-center cursor-pointer hover-opacity",title:"Edit",onClick:e,children:o.jsx(q$_,{})}),N4_={DropdownIndicator:null},P4_=e=>{const{inputValue:t,value:_,placeholder:n,handleChange:s,handleInputChange:r,handleKeyDown:l}=e;return o.jsx(zr,{components:N4_,placeholder:n||"Type something to create option",isClearable:!0,isMulti:!0,menuIsOpen:!1,value:_,inputValue:t,onChange:s,onInputChange:r,onKeyDown:l})},R4_=e=>{const{id:t,className:_}=e,n=t&&Rn.find(s=>s.value===t)||null;return o.jsx(p_,{options:Rn,value:n,...e,className:_})},L4_=`${ht}/api/SuggestionCategory`,M4_=()=>xe.get(L4_),z4_=e=>{const[t,_]=C.useState([]);C.useEffect(()=>{n()},[]);const n=async()=>{try{const h=await M4_();_(h.data.items)}catch(h){console.error(h)}},{id:s}=e,r=t.map(h=>({id:h.id,value:h.id,label:h.name})),l=s&&r.find(h=>h.value===s)||null;return o.jsx(p_,{options:r,value:l,...e})},D4_=`${ht}/api/QuestionCategory`,F4_=()=>xe.get(D4_),O4_=e=>{const[t,_]=C.useState([]);C.useEffect(()=>{n()},[]);const n=async()=>{try{const c=await F4_();_(c.data.items)}catch(c){console.error(c)}},{id:s,className:r}=e,l=t.map(c=>({id:c.id,value:c.id,label:c.name})),h=s&&l.find(c=>c.value===s)||null;return o.jsx(p_,{options:l,value:h,...e,className:r})},G4_=e=>{const{id:t,className:_}=e,n=t&&$o.find(s=>s.value===t)||null;return o.jsx(p_,{options:$o,value:n,...e,menuPlacement:"top",className:_})},ha="primary",ga="secondary",B4_=({textLeft:e,textRight:t,isLeft:_,clickLeft:n,clickRight:s})=>o.jsxs("div",{className:"w-100 d-flex",children:[o.jsx(S.Button,{size:"sm",color:_?ha:ga,onClick:n,className:"toggle-btn toggle-btn-left flex-grow-1",children:e}),o.jsx(S.Button,{size:"sm",color:_?ga:ha,onClick:s,className:"toggle-btn toggle-btn-right flex-grow-1",children:t})]}),V4_=({icon:e,accept:t="*",callback:_})=>{const n=async s=>{try{const r=new FormData,l=s.target.files[0],h=l.name;r.append("file",l,h),r.append("customKey","conversation");const c=await Li(r),{name:g,key:p,type:w}=c.data;_(g,Jt(p),w)}catch(r){console.error(r.message)}};return o.jsxs(C.Fragment,{children:[o.jsx(S.Input,{className:"d-none",type:"file",id:"upload-file-btn",onChange:n,accept:t}),o.jsx(S.Label,{htmlFor:"upload-file-btn",role:"button",children:e})]})},H4_=[{value:!0,label:"Read"},{value:!1,label:"Unread"}],W4_=({value:e,onChange:t})=>{const _={menu:n=>({...n,zIndex:10})};return o.jsx(D_,{defaultValue:e,options:H4_,onChange:t,styles:_})},U4_=C.memo(W4_);var jn={exports:{}};/*!
28
+ `]))),I0_=function(t,_){var n=t.isFocused,s=t.size,r=t.theme,c=r.colors,h=r.spacing.baseUnit;return Ae({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:s,lineHeight:1,marginRight:s,textAlign:"center",verticalAlign:"middle"},_?{}:{color:n?c.neutral60:c.neutral20,padding:h*2})},xn=function(t){var _=t.delay,n=t.offset;return Ce("span",{css:so({animation:"".concat(x0_," 1s ease-in-out ").concat(_,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},C0_=function(t){var _=t.innerProps,n=t.isRtl,s=t.size,r=s===void 0?4:s,c=s_(t,g0_);return Ce("div",Te({},bt(Ae(Ae({},c),{},{innerProps:_,isRtl:n,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),_),Ce(xn,{delay:0,offset:n}),Ce(xn,{delay:160,offset:!0}),Ce(xn,{delay:320,offset:!n}))},S0_=function(t,_){var n=t.isDisabled,s=t.isFocused,r=t.theme,c=r.colors,h=r.borderRadius,l=r.spacing;return Ae({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},_?{}:{backgroundColor:n?c.neutral5:c.neutral0,borderColor:n?c.neutral10:s?c.primary:c.neutral20,borderRadius:h,borderStyle:"solid",borderWidth:1,boxShadow:s?"0 0 0 1px ".concat(c.primary):void 0,"&:hover":{borderColor:s?c.primary:c.neutral30}})},A0_=function(t){var _=t.children,n=t.isDisabled,s=t.isFocused,r=t.innerRef,c=t.innerProps,h=t.menuIsOpen;return Ce("div",Te({ref:r},bt(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":s,"control--menu-is-open":h}),c,{"aria-disabled":n||void 0}),_)},E0_=A0_,T0_=["data"],j0_=function(t,_){var n=t.theme.spacing;return _?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},q0_=function(t){var _=t.children,n=t.cx,s=t.getStyles,r=t.getClassNames,c=t.Heading,h=t.headingProps,l=t.innerProps,g=t.label,p=t.theme,w=t.selectProps;return Ce("div",Te({},bt(t,"group",{group:!0}),l),Ce(c,Te({},h,{selectProps:w,theme:p,getStyles:s,getClassNames:r,cx:n}),g),Ce("div",null,_))},N0_=function(t,_){var n=t.theme,s=n.colors,r=n.spacing;return Ae({label:"group",cursor:"default",display:"block"},_?{}:{color:s.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:r.baseUnit*3,paddingRight:r.baseUnit*3,textTransform:"uppercase"})},P0_=function(t){var _=hr(t);_.data;var n=s_(_,T0_);return Ce("div",Te({},bt(t,"groupHeading",{"group-heading":!0}),n))},R0_=q0_,L0_=["innerRef","isDisabled","isHidden","inputClassName"],M0_=function(t,_){var n=t.isDisabled,s=t.value,r=t.theme,c=r.spacing,h=r.colors;return Ae(Ae({visibility:n?"hidden":"visible",transform:s?"translateZ(0)":""},z0_),_?{}:{margin:c.baseUnit/2,paddingBottom:c.baseUnit/2,paddingTop:c.baseUnit/2,color:h.neutral80})},kr={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},z0_={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ae({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},kr)},D0_=function(t){return Ae({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},kr)},F0_=function(t){var _=t.cx,n=t.value,s=hr(t),r=s.innerRef,c=s.isDisabled,h=s.isHidden,l=s.inputClassName,g=s_(s,L0_);return Ce("div",Te({},bt(t,"input",{"input-container":!0}),{"data-value":n||""}),Ce("input",Te({className:_({input:!0},l),ref:r,style:D0_(h),disabled:c},g)))},O0_=F0_,G0_=function(t,_){var n=t.theme,s=n.spacing,r=n.borderRadius,c=n.colors;return Ae({label:"multiValue",display:"flex",minWidth:0},_?{}:{backgroundColor:c.neutral10,borderRadius:r/2,margin:s.baseUnit/2})},B0_=function(t,_){var n=t.theme,s=n.borderRadius,r=n.colors,c=t.cropWithEllipsis;return Ae({overflow:"hidden",textOverflow:c||c===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},_?{}:{borderRadius:s/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},V0_=function(t,_){var n=t.theme,s=n.spacing,r=n.borderRadius,c=n.colors,h=t.isFocused;return Ae({alignItems:"center",display:"flex"},_?{}:{borderRadius:r/2,backgroundColor:h?c.dangerLight:void 0,paddingLeft:s.baseUnit,paddingRight:s.baseUnit,":hover":{backgroundColor:c.dangerLight,color:c.danger}})},xr=function(t){var _=t.children,n=t.innerProps;return Ce("div",n,_)},H0_=xr,W0_=xr;function U0_(e){var t=e.children,_=e.innerProps;return Ce("div",Te({role:"button"},_),t||Ce(io,{size:14}))}var X0_=function(t){var _=t.children,n=t.components,s=t.data,r=t.innerProps,c=t.isDisabled,h=t.removeProps,l=t.selectProps,g=n.Container,p=n.Label,w=n.Remove;return Ce(g,{data:s,innerProps:Ae(Ae({},bt(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":c})),r),selectProps:l},Ce(p,{data:s,innerProps:Ae({},bt(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},_),Ce(w,{data:s,innerProps:Ae(Ae({},bt(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(_||"option")},h),selectProps:l}))},Y0_=X0_,Z0_=function(t,_){var n=t.isDisabled,s=t.isFocused,r=t.isSelected,c=t.theme,h=c.spacing,l=c.colors;return Ae({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},_?{}:{backgroundColor:r?l.primary:s?l.primary25:"transparent",color:n?l.neutral20:r?l.neutral0:"inherit",padding:"".concat(h.baseUnit*2,"px ").concat(h.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:r?l.primary:l.primary50}})},J0_=function(t){var _=t.children,n=t.isDisabled,s=t.isFocused,r=t.isSelected,c=t.innerRef,h=t.innerProps;return Ce("div",Te({},bt(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":s,"option--is-selected":r}),{ref:c,"aria-disabled":n},h),_)},Q0_=J0_,K0_=function(t,_){var n=t.theme,s=n.spacing,r=n.colors;return Ae({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},_?{}:{color:r.neutral50,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},e3_=function(t){var _=t.children,n=t.innerProps;return Ce("div",Te({},bt(t,"placeholder",{placeholder:!0}),n),_)},t3_=e3_,_3_=function(t,_){var n=t.isDisabled,s=t.theme,r=s.spacing,c=s.colors;return Ae({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},_?{}:{color:n?c.neutral40:c.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},s3_=function(t){var _=t.children,n=t.isDisabled,s=t.innerProps;return Ce("div",Te({},bt(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),s),_)},n3_=s3_,o3_={ClearIndicator:b0_,Control:E0_,DropdownIndicator:w0_,DownChevron:br,CrossIcon:io,Group:R0_,GroupHeading:P0_,IndicatorsContainer:m0_,IndicatorSeparator:k0_,Input:O0_,LoadingIndicator:C0_,Menu:Kx_,MenuList:t0_,MenuPortal:i0_,LoadingMessage:o0_,NoOptionsMessage:n0_,MultiValue:Y0_,MultiValueContainer:H0_,MultiValueLabel:W0_,MultiValueRemove:U0_,Option:Q0_,Placeholder:t3_,SelectContainer:c0_,SingleValue:n3_,ValueContainer:d0_},a3_=function(t){return Ae(Ae({},o3_),t.components)},Jo=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function i3_(e,t){return!!(e===t||Jo(e)&&Jo(t))}function r3_(e,t){if(e.length!==t.length)return!1;for(var _=0;_<e.length;_++)if(!i3_(e[_],t[_]))return!1;return!0}function c3_(e,t){t===void 0&&(t=r3_);var _=null;function n(){for(var s=[],r=0;r<arguments.length;r++)s[r]=arguments[r];if(_&&_.lastThis===this&&t(s,_.lastArgs))return _.lastResult;var c=e.apply(this,s);return _={lastResult:c,lastArgs:s,lastThis:this},c}return n.clear=function(){_=null},n}function l3_(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var d3_=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:l3_},u3_=function(t){return Ce("span",Te({css:d3_},t))},Qo=u3_,m3_={guidance:function(t){var _=t.isSearchable,n=t.isMulti,s=t.tabSelectsValue,r=t.context,c=t.isInitialFocus;switch(r){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(s?", press Tab to select the option and exit the menu":"",".");case"input":return c?"".concat(t["aria-label"]||"Select"," is focused ").concat(_?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var _=t.action,n=t.label,s=n===void 0?"":n,r=t.labels,c=t.isDisabled;switch(_){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(s,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return c?"option ".concat(s," is disabled. Select another option."):"option ".concat(s,", selected.");default:return""}},onFocus:function(t){var _=t.context,n=t.focused,s=t.options,r=t.label,c=r===void 0?"":r,h=t.selectValue,l=t.isDisabled,g=t.isSelected,p=t.isAppleDevice,w=function(E,$){return E&&E.length?"".concat(E.indexOf($)+1," of ").concat(E.length):""};if(_==="value"&&h)return"value ".concat(c," focused, ").concat(w(h,n),".");if(_==="menu"&&p){var v=l?" disabled":"",A="".concat(g?" selected":"").concat(v);return"".concat(c).concat(A,", ").concat(w(s,n),".")}return""},onFilter:function(t){var _=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(_?" for search term "+_:"",".")}},h3_=function(t){var _=t.ariaSelection,n=t.focusedOption,s=t.focusedValue,r=t.focusableOptions,c=t.isFocused,h=t.selectValue,l=t.selectProps,g=t.id,p=t.isAppleDevice,w=l.ariaLiveMessages,v=l.getOptionLabel,A=l.inputValue,I=l.isMulti,E=l.isOptionDisabled,$=l.isSearchable,k=l.menuIsOpen,T=l.options,j=l.screenReaderStatus,R=l.tabSelectsValue,M=l.isLoading,P=l["aria-label"],D=l["aria-live"],O=C.useMemo(function(){return Ae(Ae({},m3_),w||{})},[w]),G=C.useMemo(function(){var ae="";if(_&&O.onChange){var Ie=_.option,ne=_.options,we=_.removedValue,Ze=_.removedValues,We=_.value,wt=function(Fe){return Array.isArray(Fe)?null:Fe},De=we||Ie||wt(We),Me=De?v(De):"",xt=ne||Ze||void 0,ye=xt?xt.map(v):[],et=Ae({isDisabled:De&&E(De,h),label:Me,labels:ye},_);ae=O.onChange(et)}return ae},[_,O,E,h,v]),W=C.useMemo(function(){var ae="",Ie=n||s,ne=!!(n&&h&&h.includes(n));if(Ie&&O.onFocus){var we={focused:Ie,label:v(Ie),isDisabled:E(Ie,h),isSelected:ne,options:r,context:Ie===n?"menu":"value",selectValue:h,isAppleDevice:p};ae=O.onFocus(we)}return ae},[n,s,v,E,O,r,h,p]),Q=C.useMemo(function(){var ae="";if(k&&T.length&&!M&&O.onFilter){var Ie=j({count:r.length});ae=O.onFilter({inputValue:A,resultsMessage:Ie})}return ae},[r,A,k,O,T,j,M]),B=(_==null?void 0:_.action)==="initial-input-focus",te=C.useMemo(function(){var ae="";if(O.guidance){var Ie=s?"value":k?"menu":"input";ae=O.guidance({"aria-label":P,context:Ie,isDisabled:n&&E(n,h),isMulti:I,isSearchable:$,tabSelectsValue:R,isInitialFocus:B})}return ae},[P,n,s,I,E,$,k,O,h,R,B]),K=Ce(C.Fragment,null,Ce("span",{id:"aria-selection"},G),Ce("span",{id:"aria-focused"},W),Ce("span",{id:"aria-results"},Q),Ce("span",{id:"aria-guidance"},te));return Ce(C.Fragment,null,Ce(Qo,{id:g},B&&K),Ce(Qo,{"aria-live":D,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},c&&!B&&K))},g3_=h3_,Vn=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],p3_=new RegExp("["+Vn.map(function(e){return e.letters}).join("")+"]","g"),Ir={};for(var In=0;In<Vn.length;In++)for(var Cn=Vn[In],Sn=0;Sn<Cn.letters.length;Sn++)Ir[Cn.letters[Sn]]=Cn.base;var Cr=function(t){return t.replace(p3_,function(_){return Ir[_]})},f3_=c3_(Cr),Ko=function(t){return t.replace(/^\s+|\s+$/g,"")},y3_=function(t){return"".concat(t.label," ").concat(t.value)},w3_=function(t){return function(_,n){if(_.data.__isNew__)return!0;var s=Ae({ignoreCase:!0,ignoreAccents:!0,stringify:y3_,trim:!0,matchFrom:"any"},t),r=s.ignoreCase,c=s.ignoreAccents,h=s.stringify,l=s.trim,g=s.matchFrom,p=l?Ko(n):n,w=l?Ko(h(_)):h(_);return r&&(p=p.toLowerCase(),w=w.toLowerCase()),c&&(p=f3_(p),w=Cr(w)),g==="start"?w.substr(0,p.length)===p:w.indexOf(p)>-1}},v3_=["innerRef"];function b3_(e){var t=e.innerRef,_=s_(e,v3_),n=Hx_(_,"onExited","in","enter","exit","appear");return Ce("input",Te({ref:t},n,{css:so({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var $3_=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function k3_(e){var t=e.isEnabled,_=e.onBottomArrive,n=e.onBottomLeave,s=e.onTopArrive,r=e.onTopLeave,c=C.useRef(!1),h=C.useRef(!1),l=C.useRef(0),g=C.useRef(null),p=C.useCallback(function($,k){if(g.current!==null){var T=g.current,j=T.scrollTop,R=T.scrollHeight,M=T.clientHeight,P=g.current,D=k>0,O=R-M-j,G=!1;O>k&&c.current&&(n&&n($),c.current=!1),D&&h.current&&(r&&r($),h.current=!1),D&&k>O?(_&&!c.current&&_($),P.scrollTop=R,G=!0,c.current=!0):!D&&-k>j&&(s&&!h.current&&s($),P.scrollTop=0,G=!0,h.current=!0),G&&$3_($)}},[_,n,s,r]),w=C.useCallback(function($){p($,$.deltaY)},[p]),v=C.useCallback(function($){l.current=$.changedTouches[0].clientY},[]),A=C.useCallback(function($){var k=l.current-$.changedTouches[0].clientY;p($,k)},[p]),I=C.useCallback(function($){if($){var k=Gx_?{passive:!1}:!1;$.addEventListener("wheel",w,k),$.addEventListener("touchstart",v,k),$.addEventListener("touchmove",A,k)}},[A,v,w]),E=C.useCallback(function($){$&&($.removeEventListener("wheel",w,!1),$.removeEventListener("touchstart",v,!1),$.removeEventListener("touchmove",A,!1))},[A,v,w]);return C.useEffect(function(){if(t){var $=g.current;return I($),function(){E($)}}},[t,I,E]),function($){g.current=$}}var ea=["boxSizing","height","overflow","paddingRight","position"],ta={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function _a(e){e.cancelable&&e.preventDefault()}function sa(e){e.stopPropagation()}function na(){var e=this.scrollTop,t=this.scrollHeight,_=e+this.offsetHeight;e===0?this.scrollTop=1:_===t&&(this.scrollTop=e-1)}function oa(){return"ontouchstart"in window||navigator.maxTouchPoints}var aa=!!(typeof window<"u"&&window.document&&window.document.createElement),_s=0,R_={capture:!1,passive:!1};function x3_(e){var t=e.isEnabled,_=e.accountForScrollbars,n=_===void 0?!0:_,s=C.useRef({}),r=C.useRef(null),c=C.useCallback(function(l){if(aa){var g=document.body,p=g&&g.style;if(n&&ea.forEach(function(I){var E=p&&p[I];s.current[I]=E}),n&&_s<1){var w=parseInt(s.current.paddingRight,10)||0,v=document.body?document.body.clientWidth:0,A=window.innerWidth-v+w||0;Object.keys(ta).forEach(function(I){var E=ta[I];p&&(p[I]=E)}),p&&(p.paddingRight="".concat(A,"px"))}g&&oa()&&(g.addEventListener("touchmove",_a,R_),l&&(l.addEventListener("touchstart",na,R_),l.addEventListener("touchmove",sa,R_))),_s+=1}},[n]),h=C.useCallback(function(l){if(aa){var g=document.body,p=g&&g.style;_s=Math.max(_s-1,0),n&&_s<1&&ea.forEach(function(w){var v=s.current[w];p&&(p[w]=v)}),g&&oa()&&(g.removeEventListener("touchmove",_a,R_),l&&(l.removeEventListener("touchstart",na,R_),l.removeEventListener("touchmove",sa,R_)))}},[n]);return C.useEffect(function(){if(t){var l=r.current;return c(l),function(){h(l)}}},[t,c,h]),function(l){r.current=l}}function I3_(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var C3_=function(t){var _=t.target;return _.ownerDocument.activeElement&&_.ownerDocument.activeElement.blur()},S3_=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:I3_};function A3_(e){var t=e.children,_=e.lockEnabled,n=e.captureEnabled,s=n===void 0?!0:n,r=e.onBottomArrive,c=e.onBottomLeave,h=e.onTopArrive,l=e.onTopLeave,g=k3_({isEnabled:s,onBottomArrive:r,onBottomLeave:c,onTopArrive:h,onTopLeave:l}),p=x3_({isEnabled:_}),w=function(A){g(A),p(A)};return Ce(C.Fragment,null,_&&Ce("div",{onClick:C3_,css:S3_}),t(w))}function E3_(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var T3_=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:E3_},j3_=function(t){var _=t.name,n=t.onFocus;return Ce("input",{required:!0,name:_,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:T3_,value:"",onChange:function(){}})},q3_=j3_;function ro(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function N3_(){return ro(/^iPhone/i)}function Sr(){return ro(/^Mac/i)}function P3_(){return ro(/^iPad/i)||Sr()&&navigator.maxTouchPoints>1}function R3_(){return N3_()||P3_()}function L3_(){return Sr()||R3_()}var M3_=function(t){return t.label},Ar=function(t){return t.label},Er=function(t){return t.value},z3_=function(t){return!!t.isDisabled},D3_={clearIndicator:v0_,container:r0_,control:S0_,dropdownIndicator:y0_,group:j0_,groupHeading:N0_,indicatorsContainer:u0_,indicatorSeparator:$0_,input:M0_,loadingIndicator:I0_,loadingMessage:s0_,menu:Zx_,menuList:e0_,menuPortal:a0_,multiValue:G0_,multiValueLabel:B0_,multiValueRemove:V0_,noOptionsMessage:_0_,option:Z0_,placeholder:K0_,singleValue:_3_,valueContainer:l0_},F3_={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},O3_=4,Tr=4,G3_=38,B3_=Tr*2,V3_={baseUnit:Tr,controlHeight:G3_,menuGutter:B3_},An={borderRadius:O3_,colors:F3_,spacing:V3_},H3_={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Yo(),captureMenuScroll:!Yo(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:w3_(),formatGroupLabel:M3_,getOptionLabel:Ar,getOptionValue:Er,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:z3_,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Fx_(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var _=t.count;return"".concat(_," result").concat(_!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ia(e,t,_,n){var s=Nr(e,t,_),r=Pr(e,t,_),c=qr(e,t),h=sn(e,t);return{type:"option",data:t,isDisabled:s,isSelected:r,label:c,value:h,index:n}}function Vs(e,t){return e.options.map(function(_,n){if("options"in _){var s=_.options.map(function(c,h){return ia(e,c,t,h)}).filter(function(c){return ca(e,c)});return s.length>0?{type:"group",data:_,options:s,index:n}:void 0}var r=ia(e,_,t,n);return ca(e,r)?r:void 0}).filter(Bx_)}function jr(e){return e.reduce(function(t,_){return _.type==="group"?t.push.apply(t,M_(_.options.map(function(n){return n.data}))):t.push(_.data),t},[])}function ra(e,t){return e.reduce(function(_,n){return n.type==="group"?_.push.apply(_,M_(n.options.map(function(s){return{data:s.data,id:"".concat(t,"-").concat(n.index,"-").concat(s.index)}}))):_.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),_},[])}function W3_(e,t){return jr(Vs(e,t))}function ca(e,t){var _=e.inputValue,n=_===void 0?"":_,s=t.data,r=t.isSelected,c=t.label,h=t.value;return(!Lr(e)||!r)&&Rr(e,{label:c,value:h,data:s},n)}function U3_(e,t){var _=e.focusedValue,n=e.selectValue,s=n.indexOf(_);if(s>-1){var r=t.indexOf(_);if(r>-1)return _;if(s<t.length)return t[s]}return null}function X3_(e,t){var _=e.focusedOption;return _&&t.indexOf(_)>-1?_:t[0]}var En=function(t,_){var n,s=(n=t.find(function(r){return r.data===_}))===null||n===void 0?void 0:n.id;return s||null},qr=function(t,_){return t.getOptionLabel(_)},sn=function(t,_){return t.getOptionValue(_)};function Nr(e,t,_){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,_):!1}function Pr(e,t,_){if(_.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,_);var n=sn(e,t);return _.some(function(s){return sn(e,s)===n})}function Rr(e,t,_){return e.filterOption?e.filterOption(t,_):!0}var Lr=function(t){var _=t.hideSelectedOptions,n=t.isMulti;return _===void 0?n:_},Y3_=1,Mr=(function(e){i2_(_,e);var t=l2_(_);function _(n){var s;if(o2_(this,_),s=t.call(this,n),s.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},s.blockOptionHover=!1,s.isComposing=!1,s.commonProps=void 0,s.initialTouchX=0,s.initialTouchY=0,s.openAfterFocus=!1,s.scrollToFocusedOptionOnUpdate=!1,s.userIsDragging=void 0,s.controlRef=null,s.getControlRef=function(l){s.controlRef=l},s.focusedOptionRef=null,s.getFocusedOptionRef=function(l){s.focusedOptionRef=l},s.menuListRef=null,s.getMenuListRef=function(l){s.menuListRef=l},s.inputRef=null,s.getInputRef=function(l){s.inputRef=l},s.focus=s.focusInput,s.blur=s.blurInput,s.onChange=function(l,g){var p=s.props,w=p.onChange,v=p.name;g.name=v,s.ariaOnChange(l,g),w(l,g)},s.setValue=function(l,g,p){var w=s.props,v=w.closeMenuOnSelect,A=w.isMulti,I=w.inputValue;s.onInputChange("",{action:"set-value",prevInputValue:I}),v&&(s.setState({inputIsHiddenAfterUpdate:!A}),s.onMenuClose()),s.setState({clearFocusValueOnUpdate:!0}),s.onChange(l,{action:g,option:p})},s.selectOption=function(l){var g=s.props,p=g.blurInputOnSelect,w=g.isMulti,v=g.name,A=s.state.selectValue,I=w&&s.isOptionSelected(l,A),E=s.isOptionDisabled(l,A);if(I){var $=s.getOptionValue(l);s.setValue(A.filter(function(k){return s.getOptionValue(k)!==$}),"deselect-option",l)}else if(!E)w?s.setValue([].concat(M_(A),[l]),"select-option",l):s.setValue(l,"select-option");else{s.ariaOnChange(l,{action:"select-option",option:l,name:v});return}p&&s.blurInput()},s.removeValue=function(l){var g=s.props.isMulti,p=s.state.selectValue,w=s.getOptionValue(l),v=p.filter(function(I){return s.getOptionValue(I)!==w}),A=os(g,v,v[0]||null);s.onChange(A,{action:"remove-value",removedValue:l}),s.focusInput()},s.clearValue=function(){var l=s.state.selectValue;s.onChange(os(s.props.isMulti,[],null),{action:"clear",removedValues:l})},s.popValue=function(){var l=s.props.isMulti,g=s.state.selectValue,p=g[g.length-1],w=g.slice(0,g.length-1),v=os(l,w,w[0]||null);p&&s.onChange(v,{action:"pop-value",removedValue:p})},s.getFocusedOptionId=function(l){return En(s.state.focusableOptionsWithIds,l)},s.getFocusableOptionsWithIds=function(){return ra(Vs(s.props,s.state.selectValue),s.getElementId("option"))},s.getValue=function(){return s.state.selectValue},s.cx=function(){for(var l=arguments.length,g=new Array(l),p=0;p<l;p++)g[p]=arguments[p];return Rx_.apply(void 0,[s.props.classNamePrefix].concat(g))},s.getOptionLabel=function(l){return qr(s.props,l)},s.getOptionValue=function(l){return sn(s.props,l)},s.getStyles=function(l,g){var p=s.props.unstyled,w=D3_[l](g,p);w.boxSizing="border-box";var v=s.props.styles[l];return v?v(w,g):w},s.getClassNames=function(l,g){var p,w;return(p=(w=s.props.classNames)[l])===null||p===void 0?void 0:p.call(w,g)},s.getElementId=function(l){return"".concat(s.state.instancePrefix,"-").concat(l)},s.getComponents=function(){return a3_(s.props)},s.buildCategorizedOptions=function(){return Vs(s.props,s.state.selectValue)},s.getCategorizedOptions=function(){return s.props.menuIsOpen?s.buildCategorizedOptions():[]},s.buildFocusableOptions=function(){return jr(s.buildCategorizedOptions())},s.getFocusableOptions=function(){return s.props.menuIsOpen?s.buildFocusableOptions():[]},s.ariaOnChange=function(l,g){s.setState({ariaSelection:Ae({value:l},g)})},s.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),s.focusInput())},s.onMenuMouseMove=function(l){s.blockOptionHover=!1},s.onControlMouseDown=function(l){if(!l.defaultPrevented){var g=s.props.openMenuOnClick;s.state.isFocused?s.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&s.onMenuClose():g&&s.openMenu("first"):(g&&(s.openAfterFocus=!0),s.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},s.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!s.props.isDisabled){var g=s.props,p=g.isMulti,w=g.menuIsOpen;s.focusInput(),w?(s.setState({inputIsHiddenAfterUpdate:!p}),s.onMenuClose()):s.openMenu("first"),l.preventDefault()}},s.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(s.clearValue(),l.preventDefault(),s.openAfterFocus=!1,l.type==="touchend"?s.focusInput():setTimeout(function(){return s.focusInput()}))},s.onScroll=function(l){typeof s.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&gn(l.target)&&s.props.onMenuClose():typeof s.props.closeMenuOnScroll=="function"&&s.props.closeMenuOnScroll(l)&&s.props.onMenuClose()},s.onCompositionStart=function(){s.isComposing=!0},s.onCompositionEnd=function(){s.isComposing=!1},s.onTouchStart=function(l){var g=l.touches,p=g&&g.item(0);p&&(s.initialTouchX=p.clientX,s.initialTouchY=p.clientY,s.userIsDragging=!1)},s.onTouchMove=function(l){var g=l.touches,p=g&&g.item(0);if(p){var w=Math.abs(p.clientX-s.initialTouchX),v=Math.abs(p.clientY-s.initialTouchY),A=5;s.userIsDragging=w>A||v>A}},s.onTouchEnd=function(l){s.userIsDragging||(s.controlRef&&!s.controlRef.contains(l.target)&&s.menuListRef&&!s.menuListRef.contains(l.target)&&s.blurInput(),s.initialTouchX=0,s.initialTouchY=0)},s.onControlTouchEnd=function(l){s.userIsDragging||s.onControlMouseDown(l)},s.onClearIndicatorTouchEnd=function(l){s.userIsDragging||s.onClearIndicatorMouseDown(l)},s.onDropdownIndicatorTouchEnd=function(l){s.userIsDragging||s.onDropdownIndicatorMouseDown(l)},s.handleInputChange=function(l){var g=s.props.inputValue,p=l.currentTarget.value;s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange(p,{action:"input-change",prevInputValue:g}),s.props.menuIsOpen||s.onMenuOpen()},s.onInputFocus=function(l){s.props.onFocus&&s.props.onFocus(l),s.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(s.openAfterFocus||s.props.openMenuOnFocus)&&s.openMenu("first"),s.openAfterFocus=!1},s.onInputBlur=function(l){var g=s.props.inputValue;if(s.menuListRef&&s.menuListRef.contains(document.activeElement)){s.inputRef.focus();return}s.props.onBlur&&s.props.onBlur(l),s.onInputChange("",{action:"input-blur",prevInputValue:g}),s.onMenuClose(),s.setState({focusedValue:null,isFocused:!1})},s.onOptionHover=function(l){if(!(s.blockOptionHover||s.state.focusedOption===l)){var g=s.getFocusableOptions(),p=g.indexOf(l);s.setState({focusedOption:l,focusedOptionId:p>-1?s.getFocusedOptionId(l):null})}},s.shouldHideSelectedOptions=function(){return Lr(s.props)},s.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),s.focus()},s.onKeyDown=function(l){var g=s.props,p=g.isMulti,w=g.backspaceRemovesValue,v=g.escapeClearsValue,A=g.inputValue,I=g.isClearable,E=g.isDisabled,$=g.menuIsOpen,k=g.onKeyDown,T=g.tabSelectsValue,j=g.openMenuOnFocus,R=s.state,M=R.focusedOption,P=R.focusedValue,D=R.selectValue;if(!E&&!(typeof k=="function"&&(k(l),l.defaultPrevented))){switch(s.blockOptionHover=!0,l.key){case"ArrowLeft":if(!p||A)return;s.focusValue("previous");break;case"ArrowRight":if(!p||A)return;s.focusValue("next");break;case"Delete":case"Backspace":if(A)return;if(P)s.removeValue(P);else{if(!w)return;p?s.popValue():I&&s.clearValue()}break;case"Tab":if(s.isComposing||l.shiftKey||!$||!T||!M||j&&s.isOptionSelected(M,D))return;s.selectOption(M);break;case"Enter":if(l.keyCode===229)break;if($){if(!M||s.isComposing)return;s.selectOption(M);break}return;case"Escape":$?(s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange("",{action:"menu-close",prevInputValue:A}),s.onMenuClose()):I&&v&&s.clearValue();break;case" ":if(A)return;if(!$){s.openMenu("first");break}if(!M)return;s.selectOption(M);break;case"ArrowUp":$?s.focusOption("up"):s.openMenu("last");break;case"ArrowDown":$?s.focusOption("down"):s.openMenu("first");break;case"PageUp":if(!$)return;s.focusOption("pageup");break;case"PageDown":if(!$)return;s.focusOption("pagedown");break;case"Home":if(!$)return;s.focusOption("first");break;case"End":if(!$)return;s.focusOption("last");break;default:return}l.preventDefault()}},s.state.instancePrefix="react-select-"+(s.props.instanceId||++Y3_),s.state.selectValue=tn(n.value),n.menuIsOpen&&s.state.selectValue.length){var r=s.getFocusableOptionsWithIds(),c=s.buildFocusableOptions(),h=c.indexOf(s.state.selectValue[0]);s.state.focusableOptionsWithIds=r,s.state.focusedOption=c[h],s.state.focusedOptionId=En(r,c[h])}return s}return a2_(_,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Xo(this.menuListRef,this.focusedOptionRef),L3_()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(s){var r=this.props,c=r.isDisabled,h=r.menuIsOpen,l=this.state.isFocused;(l&&!c&&s.isDisabled||l&&h&&!s.menuIsOpen)&&this.focusInput(),l&&c&&!s.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!c&&s.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Xo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(s,r){this.props.onInputChange(s,r)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(s){var r=this,c=this.state,h=c.selectValue,l=c.isFocused,g=this.buildFocusableOptions(),p=s==="first"?0:g.length-1;if(!this.props.isMulti){var w=g.indexOf(h[0]);w>-1&&(p=w)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:g[p],focusedOptionId:this.getFocusedOptionId(g[p])},function(){return r.onMenuOpen()})}},{key:"focusValue",value:function(s){var r=this.state,c=r.selectValue,h=r.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=c.indexOf(h);h||(l=-1);var g=c.length-1,p=-1;if(c.length){switch(s){case"previous":l===0?p=0:l===-1?p=g:p=l-1;break;case"next":l>-1&&l<g&&(p=l+1);break}this.setState({inputIsHidden:p!==-1,focusedValue:c[p]})}}}},{key:"focusOption",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",r=this.props.pageSize,c=this.state.focusedOption,h=this.getFocusableOptions();if(h.length){var l=0,g=h.indexOf(c);c||(g=-1),s==="up"?l=g>0?g-1:h.length-1:s==="down"?l=(g+1)%h.length:s==="pageup"?(l=g-r,l<0&&(l=0)):s==="pagedown"?(l=g+r,l>h.length-1&&(l=h.length-1)):s==="last"&&(l=h.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:h[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(h[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(An):Ae(Ae({},An),this.props.theme):An}},{key:"getCommonProps",value:function(){var s=this.clearValue,r=this.cx,c=this.getStyles,h=this.getClassNames,l=this.getValue,g=this.selectOption,p=this.setValue,w=this.props,v=w.isMulti,A=w.isRtl,I=w.options,E=this.hasValue();return{clearValue:s,cx:r,getStyles:c,getClassNames:h,getValue:l,hasValue:E,isMulti:v,isRtl:A,options:I,selectOption:g,selectProps:w,setValue:p,theme:this.getTheme()}}},{key:"hasValue",value:function(){var s=this.state.selectValue;return s.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var s=this.props,r=s.isClearable,c=s.isMulti;return r===void 0?c:r}},{key:"isOptionDisabled",value:function(s,r){return Nr(this.props,s,r)}},{key:"isOptionSelected",value:function(s,r){return Pr(this.props,s,r)}},{key:"filterOption",value:function(s,r){return Rr(this.props,s,r)}},{key:"formatOptionLabel",value:function(s,r){if(typeof this.props.formatOptionLabel=="function"){var c=this.props.inputValue,h=this.state.selectValue;return this.props.formatOptionLabel(s,{context:r,inputValue:c,selectValue:h})}else return this.getOptionLabel(s)}},{key:"formatGroupLabel",value:function(s){return this.props.formatGroupLabel(s)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var s=this.props,r=s.isDisabled,c=s.isSearchable,h=s.inputId,l=s.inputValue,g=s.tabIndex,p=s.form,w=s.menuIsOpen,v=s.required,A=this.getComponents(),I=A.Input,E=this.state,$=E.inputIsHidden,k=E.ariaSelection,T=this.commonProps,j=h||this.getElementId("input"),R=Ae(Ae(Ae({"aria-autocomplete":"list","aria-expanded":w,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":v,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},w&&{"aria-controls":this.getElementId("listbox")}),!c&&{"aria-readonly":!0}),this.hasValue()?(k==null?void 0:k.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return c?Xe.createElement(I,Te({},T,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:j,innerRef:this.getInputRef,isDisabled:r,isHidden:$,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:g,form:p,type:"text",value:l},R)):Xe.createElement(b3_,Te({id:j,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:en,onFocus:this.onInputFocus,disabled:r,tabIndex:g,inputMode:"none",form:p,value:""},R))}},{key:"renderPlaceholderOrValue",value:function(){var s=this,r=this.getComponents(),c=r.MultiValue,h=r.MultiValueContainer,l=r.MultiValueLabel,g=r.MultiValueRemove,p=r.SingleValue,w=r.Placeholder,v=this.commonProps,A=this.props,I=A.controlShouldRenderValue,E=A.isDisabled,$=A.isMulti,k=A.inputValue,T=A.placeholder,j=this.state,R=j.selectValue,M=j.focusedValue,P=j.isFocused;if(!this.hasValue()||!I)return k?null:Xe.createElement(w,Te({},v,{key:"placeholder",isDisabled:E,isFocused:P,innerProps:{id:this.getElementId("placeholder")}}),T);if($)return R.map(function(O,G){var W=O===M,Q="".concat(s.getOptionLabel(O),"-").concat(s.getOptionValue(O));return Xe.createElement(c,Te({},v,{components:{Container:h,Label:l,Remove:g},isFocused:W,isDisabled:E,key:Q,index:G,removeProps:{onClick:function(){return s.removeValue(O)},onTouchEnd:function(){return s.removeValue(O)},onMouseDown:function(te){te.preventDefault()}},data:O}),s.formatOptionLabel(O,"value"))});if(k)return null;var D=R[0];return Xe.createElement(p,Te({},v,{data:D,isDisabled:E}),this.formatOptionLabel(D,"value"))}},{key:"renderClearIndicator",value:function(){var s=this.getComponents(),r=s.ClearIndicator,c=this.commonProps,h=this.props,l=h.isDisabled,g=h.isLoading,p=this.state.isFocused;if(!this.isClearable()||!r||l||!this.hasValue()||g)return null;var w={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Xe.createElement(r,Te({},c,{innerProps:w,isFocused:p}))}},{key:"renderLoadingIndicator",value:function(){var s=this.getComponents(),r=s.LoadingIndicator,c=this.commonProps,h=this.props,l=h.isDisabled,g=h.isLoading,p=this.state.isFocused;if(!r||!g)return null;var w={"aria-hidden":"true"};return Xe.createElement(r,Te({},c,{innerProps:w,isDisabled:l,isFocused:p}))}},{key:"renderIndicatorSeparator",value:function(){var s=this.getComponents(),r=s.DropdownIndicator,c=s.IndicatorSeparator;if(!r||!c)return null;var h=this.commonProps,l=this.props.isDisabled,g=this.state.isFocused;return Xe.createElement(c,Te({},h,{isDisabled:l,isFocused:g}))}},{key:"renderDropdownIndicator",value:function(){var s=this.getComponents(),r=s.DropdownIndicator;if(!r)return null;var c=this.commonProps,h=this.props.isDisabled,l=this.state.isFocused,g={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Xe.createElement(r,Te({},c,{innerProps:g,isDisabled:h,isFocused:l}))}},{key:"renderMenu",value:function(){var s=this,r=this.getComponents(),c=r.Group,h=r.GroupHeading,l=r.Menu,g=r.MenuList,p=r.MenuPortal,w=r.LoadingMessage,v=r.NoOptionsMessage,A=r.Option,I=this.commonProps,E=this.state.focusedOption,$=this.props,k=$.captureMenuScroll,T=$.inputValue,j=$.isLoading,R=$.loadingMessage,M=$.minMenuHeight,P=$.maxMenuHeight,D=$.menuIsOpen,O=$.menuPlacement,G=$.menuPosition,W=$.menuPortalTarget,Q=$.menuShouldBlockScroll,B=$.menuShouldScrollIntoView,te=$.noOptionsMessage,K=$.onMenuScrollToTop,ae=$.onMenuScrollToBottom;if(!D)return null;var Ie=function(Me,xt){var ye=Me.type,et=Me.data,dt=Me.isDisabled,Fe=Me.isSelected,Se=Me.label,St=Me.value,n_=E===et,ge=dt?void 0:function(){return s.onOptionHover(et)},Bt=dt?void 0:function(){return s.selectOption(et)},Ot="".concat(s.getElementId("option"),"-").concat(xt),Qt={id:Ot,onClick:Bt,onMouseMove:ge,onMouseOver:ge,tabIndex:-1,role:"option","aria-selected":s.state.isAppleDevice?void 0:Fe};return Xe.createElement(A,Te({},I,{innerProps:Qt,data:et,isDisabled:dt,isSelected:Fe,key:Ot,label:Se,type:ye,value:St,isFocused:n_,innerRef:n_?s.getFocusedOptionRef:void 0}),s.formatOptionLabel(Me.data,"menu"))},ne;if(this.hasOptions())ne=this.getCategorizedOptions().map(function(De){if(De.type==="group"){var Me=De.data,xt=De.options,ye=De.index,et="".concat(s.getElementId("group"),"-").concat(ye),dt="".concat(et,"-heading");return Xe.createElement(c,Te({},I,{key:et,data:Me,options:xt,Heading:h,headingProps:{id:dt,data:De.data},label:s.formatGroupLabel(De.data)}),De.options.map(function(Fe){return Ie(Fe,"".concat(ye,"-").concat(Fe.index))}))}else if(De.type==="option")return Ie(De,"".concat(De.index))});else if(j){var we=R({inputValue:T});if(we===null)return null;ne=Xe.createElement(w,I,we)}else{var Ze=te({inputValue:T});if(Ze===null)return null;ne=Xe.createElement(v,I,Ze)}var We={minMenuHeight:M,maxMenuHeight:P,menuPlacement:O,menuPosition:G,menuShouldScrollIntoView:B},wt=Xe.createElement(Jx_,Te({},I,We),function(De){var Me=De.ref,xt=De.placerProps,ye=xt.placement,et=xt.maxHeight;return Xe.createElement(l,Te({},I,We,{innerRef:Me,innerProps:{onMouseDown:s.onMenuMouseDown,onMouseMove:s.onMenuMouseMove},isLoading:j,placement:ye}),Xe.createElement(A3_,{captureEnabled:k,onTopArrive:K,onBottomArrive:ae,lockEnabled:Q},function(dt){return Xe.createElement(g,Te({},I,{innerRef:function(Se){s.getMenuListRef(Se),dt(Se)},innerProps:{role:"listbox","aria-multiselectable":I.isMulti,id:s.getElementId("listbox")},isLoading:j,maxHeight:et,focusedOption:E}),ne)}))});return W||G==="fixed"?Xe.createElement(p,Te({},I,{appendTo:W,controlElement:this.controlRef,menuPlacement:O,menuPosition:G}),wt):wt}},{key:"renderFormField",value:function(){var s=this,r=this.props,c=r.delimiter,h=r.isDisabled,l=r.isMulti,g=r.name,p=r.required,w=this.state.selectValue;if(p&&!this.hasValue()&&!h)return Xe.createElement(q3_,{name:g,onFocus:this.onValueInputFocus});if(!(!g||h))if(l)if(c){var v=w.map(function(E){return s.getOptionValue(E)}).join(c);return Xe.createElement("input",{name:g,type:"hidden",value:v})}else{var A=w.length>0?w.map(function(E,$){return Xe.createElement("input",{key:"i-".concat($),name:g,type:"hidden",value:s.getOptionValue(E)})}):Xe.createElement("input",{name:g,type:"hidden",value:""});return Xe.createElement("div",null,A)}else{var I=w[0]?this.getOptionValue(w[0]):"";return Xe.createElement("input",{name:g,type:"hidden",value:I})}}},{key:"renderLiveRegion",value:function(){var s=this.commonProps,r=this.state,c=r.ariaSelection,h=r.focusedOption,l=r.focusedValue,g=r.isFocused,p=r.selectValue,w=this.getFocusableOptions();return Xe.createElement(g3_,Te({},s,{id:this.getElementId("live-region"),ariaSelection:c,focusedOption:h,focusedValue:l,isFocused:g,selectValue:p,focusableOptions:w,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var s=this.getComponents(),r=s.Control,c=s.IndicatorsContainer,h=s.SelectContainer,l=s.ValueContainer,g=this.props,p=g.className,w=g.id,v=g.isDisabled,A=g.menuIsOpen,I=this.state.isFocused,E=this.commonProps=this.getCommonProps();return Xe.createElement(h,Te({},E,{className:p,innerProps:{id:w,onKeyDown:this.onKeyDown},isDisabled:v,isFocused:I}),this.renderLiveRegion(),Xe.createElement(r,Te({},E,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:v,isFocused:I,menuIsOpen:A}),Xe.createElement(l,Te({},E,{isDisabled:v}),this.renderPlaceholderOrValue(),this.renderInput()),Xe.createElement(c,Te({},E,{isDisabled:v}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(s,r){var c=r.prevProps,h=r.clearFocusValueOnUpdate,l=r.inputIsHiddenAfterUpdate,g=r.ariaSelection,p=r.isFocused,w=r.prevWasFocused,v=r.instancePrefix,A=s.options,I=s.value,E=s.menuIsOpen,$=s.inputValue,k=s.isMulti,T=tn(I),j={};if(c&&(I!==c.value||A!==c.options||E!==c.menuIsOpen||$!==c.inputValue)){var R=E?W3_(s,T):[],M=E?ra(Vs(s,T),"".concat(v,"-option")):[],P=h?U3_(r,T):null,D=X3_(r,R),O=En(M,D);j={selectValue:T,focusedOption:D,focusedOptionId:O,focusableOptionsWithIds:M,focusedValue:P,clearFocusValueOnUpdate:!1}}var G=l!=null&&s!==c?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},W=g,Q=p&&w;return p&&!Q&&(W={value:os(k,T,T[0]||null),options:T,action:"initial-input-focus"},Q=!w),(g==null?void 0:g.action)==="initial-input-focus"&&(W=null),Ae(Ae(Ae({},j),G),{},{prevProps:s,ariaSelection:W,prevWasFocused:Q})}}]),_})(C.Component);Mr.defaultProps=H3_;var Z3_=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function J3_(e){var t=e.defaultInputValue,_=t===void 0?"":t,n=e.defaultMenuIsOpen,s=n===void 0?!1:n,r=e.defaultValue,c=r===void 0?null:r,h=e.inputValue,l=e.menuIsOpen,g=e.onChange,p=e.onInputChange,w=e.onMenuClose,v=e.onMenuOpen,A=e.value,I=s_(e,Z3_),E=C.useState(h!==void 0?h:_),$=r_(E,2),k=$[0],T=$[1],j=C.useState(l!==void 0?l:s),R=r_(j,2),M=R[0],P=R[1],D=C.useState(A!==void 0?A:c),O=r_(D,2),G=O[0],W=O[1],Q=C.useCallback(function(we,Ze){typeof g=="function"&&g(we,Ze),W(we)},[g]),B=C.useCallback(function(we,Ze){var We;typeof p=="function"&&(We=p(we,Ze)),T(We!==void 0?We:we)},[p]),te=C.useCallback(function(){typeof v=="function"&&v(),P(!0)},[v]),K=C.useCallback(function(){typeof w=="function"&&w(),P(!1)},[w]),ae=h!==void 0?h:k,Ie=l!==void 0?l:M,ne=A!==void 0?A:G;return Ae(Ae({},I),{},{inputValue:ae,menuIsOpen:Ie,onChange:Q,onInputChange:B,onMenuClose:K,onMenuOpen:te,value:ne})}var Q3_=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],la=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,s=String(t).toLowerCase(),r=String(n.getOptionValue(_)).toLowerCase(),c=String(n.getOptionLabel(_)).toLowerCase();return r===s||c===s},Tn={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,_,n,s){return!(!t||_.some(function(r){return la(t,r,s)})||n.some(function(r){return la(t,r,s)}))},getNewOptionData:function(t,_){return{label:_,value:t,__isNew__:!0}}};function K3_(e){var t=e.allowCreateWhileLoading,_=t===void 0?!1:t,n=e.createOptionPosition,s=n===void 0?"last":n,r=e.formatCreateLabel,c=r===void 0?Tn.formatCreateLabel:r,h=e.isValidNewOption,l=h===void 0?Tn.isValidNewOption:h,g=e.getNewOptionData,p=g===void 0?Tn.getNewOptionData:g,w=e.onCreateOption,v=e.options,A=v===void 0?[]:v,I=e.onChange,E=s_(e,Q3_),$=E.getOptionValue,k=$===void 0?Er:$,T=E.getOptionLabel,j=T===void 0?Ar:T,R=E.inputValue,M=E.isLoading,P=E.isMulti,D=E.value,O=E.name,G=C.useMemo(function(){return l(R,tn(D),A,{getOptionValue:k,getOptionLabel:j})?p(R,c(R)):void 0},[c,p,j,k,R,l,A,D]),W=C.useMemo(function(){return(_||!M)&&G?s==="first"?[G].concat(M_(A)):[].concat(M_(A),[G]):A},[_,s,M,G,A]),Q=C.useCallback(function(B,te){if(te.action!=="select-option")return I(B,te);var K=Array.isArray(B)?B:[B];if(K[K.length-1]===G){if(w)w(R);else{var ae=p(R,R),Ie={action:"create-option",name:O,option:ae};I(os(P,[].concat(M_(tn(D)),[ae]),ae),Ie)}return}I(B,te)},[p,R,P,O,G,w,I,D]);return Ae(Ae({},E),{},{options:W,onChange:Q})}var e4_=C.forwardRef(function(e,t){var _=J3_(e),n=K3_(_);return Xe.createElement(Mr,Te({ref:t},n))}),zr=e4_;const as=({options:e,isDisabled:t,scrollBottom:_,onCreateOption:n,...s})=>{const[r,c]=C.useState(),h=p=>String(p).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/),l=p=>{if(h(p))c(void 0);else{c(`Invalid email format for email: ${p}`);return}const w={label:p,value:-new Date().getTime()};n==null||n(w)},g=()=>{c(void 0)};return o.jsxs("div",{className:"w-100",children:[o.jsx("div",{className:"w-100",children:o.jsx(zr,{isDisabled:t,options:e,menuPlacement:_?"top":"auto",onCreateOption:l,onFocus:g,...s})}),!!r&&o.jsx("p",{className:"text-danger mb-0 mt-1",children:r})]})},t4_=12,_4_=20,s4_=()=>{const e=ke.useDispatch(),[t,_]=C.useState([]),[n,s]=C.useState(Ik_),[r,c]=C.useState(0),[h,l]=C.useState(!1),[g,p]=C.useState([]),w=ke.useSelector(j=>{var R;return(R=j.common)==null?void 0:R.defaultFontSize}),v=C.useMemo(()=>w==_4_?"font-large":w==t4_?"font-small":"",[w]),A=j=>{const R={...n,...j};R.searchString&&j.searchString&&j.searchString!=n.searchString&&(R.currentPage=1),s(R)},I=C.useCallback(j=>{j!==n.sortBy?A({sortBy:j,orderBy:"ASC",currentPage:1}):A({sortBy:j,orderBy:n.orderBy!=="DESC"?"DESC":"ASC",currentPage:1})},[JSON.stringify(n)]),E=async()=>{var j,R,M,P;e(me(!0));try{const D=await vk_(n);_((j=D==null?void 0:D.data)==null?void 0:j.items),c((R=D==null?void 0:D.data)==null?void 0:R.totalItems)}catch(D){e(he({type:"danger",message:((P=(M=D.response)==null?void 0:M.data)==null?void 0:P.title)||D.message}))}e(me(!1))},$=()=>{l(!h),p(t.map(j=>j.id)),h&&p([])},k=j=>{const{id:R,checked:M}=j.target;p([...g,R]),M||p(g.filter(P=>P!==R))},T=C.useCallback(()=>{n.currentPage==1?E():A({currentPage:1}),p([]),l(!1)},[JSON.stringify(n)]);return C.useEffect(()=>{E()},[JSON.stringify(n)]),C.useEffect(()=>{document.title="User | Assign student"},[]),{handelSort:I,handleRetrievedData:T,totalItem:r,userList:t,filters:n,changeFilters:A,handleSelectAll:$,handleClickCheck:k,isCheckAll:h,isCheck:g,classFontSize:v}},n4_=()=>{const e=ke.useDispatch(),[t,_]=C.useState([]),[n,s]=C.useState(),r=async()=>{var l,g,p,w;try{const v=await bk_();v.data.items&&_(((g=(l=v.data.items).map)==null?void 0:g.call(l,A=>({label:A.email,value:A.id})))||[])}catch(v){e(he({type:"danger",message:((w=(p=v.response)==null?void 0:p.data)==null?void 0:w.title)||v.message}))}},c=C.useCallback((l,g)=>{let p=t.find(w=>w.value===l);s({...n,[g]:p})},[JSON.stringify(n),JSON.stringify(t)]),h=C.useCallback((l,g)=>{_([...t,l]),s({...n,[g]:l})},[JSON.stringify(t),JSON.stringify(n)]);return C.useEffect(()=>{r()},[]),{selectedCounselors:n,counselorOptions:t,handleSelectCounselor:c,handleCreateCounselorOption:h,setSelectedCounselors:s}},o4_=()=>{const e=ke.useDispatch(),[t,_]=C.useState([]),[n,s]=C.useState(),r=async()=>{var l,g,p,w;try{const v=await $k_();v.data.items&&_(((g=(l=v.data.items).map)==null?void 0:g.call(l,A=>({label:A.email,value:A.id})))||[])}catch(v){e(he({type:"danger",message:((w=(p=v.response)==null?void 0:p.data)==null?void 0:w.title)||v.message}))}},c=C.useCallback((l,g)=>{let p=t.find(w=>w.value===l);s({...n,[g]:p})},[JSON.stringify(n),JSON.stringify(t)]),h=C.useCallback((l,g)=>{_([...t,l]),s({...n,[g]:l})},[JSON.stringify(t),JSON.stringify(n)]);return C.useEffect(()=>{r()},[]),{selectedAssistants:n,assistantOptions:t,handleSelectAssistant:c,handleCreateAssistantOption:h,setSelectedAssistants:s}},a4_=()=>{const e=ke.useDispatch(),[t,_]=C.useState([]),[n,s]=C.useState(),r=async()=>{var l,g,p,w;try{const v=await Hi({sortBy:"Email"});v.data&&_(((g=(l=v.data).map)==null?void 0:g.call(l,A=>({label:A.email,value:A.id})))||[])}catch(v){e(he({type:"danger",message:((w=(p=v.response)==null?void 0:p.data)==null?void 0:w.title)||v.message}))}},c=C.useCallback((l,g)=>{let p=t.filter(w=>l.includes(w.value));s({...n,[g]:p})},[JSON.stringify(n),JSON.stringify(t)]),h=C.useCallback((l,g)=>{_([...t,l]),s({...n,[g]:l})},[JSON.stringify(t),JSON.stringify(n)]);return C.useEffect(()=>{r()},[]),{selectedTeachers:n,teacherOptions:t,handleSelectTeacher:c,handleCreateTeacherOption:h,setSelectedTeachers:s}},i4_=(e,t,_,n)=>{const s=ke.useDispatch(),{t:r}=yt.useTranslation(),[c,h]=C.useState(!1),[l,g]=C.useState(Ck_),[p,w]=C.useState(0),[v,A]=C.useState([]),[I,E]=C.useState(qo),$=()=>{h(!1),w(0),A([])},k=G=>{w(W=>W===G?-1:G)},T=(G,W)=>{switch(G){case"assistant":E({...I,assistantId:W.value,assistantEmail:W.label});break;case"secondary":E({...I,secondaryTeacherId:W.value,secondaryTeacherEmail:W.label});break;case"grade":E({...I,gradeLevel:W.value});break}},j=G=>{E({...I,teacher:G})},R=G=>{E({...I,counselors:G})},M=async G=>{var Q,B,te,K;if(I.teacher.length===0){s(he({type:"danger",message:"Please select teacher before assign!"}));return}const W={id:(l==null?void 0:l.id)||"",mainTeacherUserId:((Q=I.teacher.filter(ae=>{var Ie;return!((Ie=l==null?void 0:l.teachers)!=null&&Ie.some(ne=>ne.teacherUserId===ae.id))}))==null?void 0:Q.map(ae=>ae.id))||[],mainTeacherEmail:((B=I.teacher.filter(ae=>{var Ie;return!((Ie=l==null?void 0:l.teachers)!=null&&Ie.some(ne=>ne.teacherUserId===ae.id))}))==null?void 0:B.map(ae=>ae.email))||[],assistantUserId:I!=null&&I.assistantId?I==null?void 0:I.assistantId:void 0,assistantEmail:I!=null&&I.assistantEmail?I==null?void 0:I.assistantEmail:void 0,counselorUserIds:((te=I.counselors)==null?void 0:te.map(ae=>ae.id))||[],counselorEmails:((K=I.counselors)==null?void 0:K.map(ae=>ae.email))||[],secondaryTeacherUserId:I!=null&&I.secondaryTeacherId?I==null?void 0:I.secondaryTeacherId:void 0,secondaryTeacherEmail:I!=null&&I.secondaryTeacherEmail?I==null?void 0:I.secondaryTeacherEmail:void 0};P([W])},P=async G=>{var W,Q;s(me(!0));try{await kk_(G),s(he({type:"success",message:"Created Successfully"})),n==null||n()}catch(B){s(he({type:"danger",message:((Q=(W=B.response)==null?void 0:W.data)==null?void 0:Q.title)||B.message}))}s(me(!1))},D=C.useCallback(G=>{if(G.length===0){s(he({type:"danger",message:r("not_found_selected_student")}));return}if(G.some(B=>{const te=e==null?void 0:e[B],K=t==null?void 0:t[B],ae=_==null?void 0:_[B];return!te&&!K&&!ae})){s(he({type:"danger",message:r("please_select_add_teacher_for_all_selected_student_first")}));return}const Q=G==null?void 0:G.map(B=>{const te=e==null?void 0:e[B],K=t==null?void 0:t[B],ae=_==null?void 0:_[B],Ie=Array.isArray(ae)?ae:ae?[ae]:[],ne={id:B};return te&&(ne.mainTeacherUserId=te?te==null?void 0:te.map(we=>we.value):[],ne.mainTeacherEmail=te?te==null?void 0:te.map(we=>we.label):[]),K&&(ne.assistantUserId=K!=null&&K.value&&typeof(K==null?void 0:K.value)=="string"?K==null?void 0:K.value:void 0,ne.assistantEmail=K!=null&&K.value&&typeof(K==null?void 0:K.value)=="number"?K==null?void 0:K.label:void 0),ne.counselorUserIds=Ie.map(we=>we.value),ne.counselorEmails=Ie.map(we=>we.label),ne});P([...Q])},[JSON.stringify(e),JSON.stringify(t),JSON.stringify(_)]),O=C.useCallback(G=>{const W=e==null?void 0:e[G],Q=t==null?void 0:t[G],B=_==null?void 0:_[G];if(!W&&!Q&&!B){s(he({type:"danger",message:r("please_select_add_teacher_for_selected_student_first")}));return}const te={id:G};W&&(te.mainTeacherUserId=W?W==null?void 0:W.map(K=>K.value):void 0,te.mainTeacherEmail=W?W==null?void 0:W.map(K=>K.label):void 0),Q&&(te.assistantUserId=Q!=null&&Q.value&&typeof(Q==null?void 0:Q.value)=="string"?Q==null?void 0:Q.value:void 0,te.assistantEmail=Q!=null&&Q.value&&typeof(Q==null?void 0:Q.value)=="number"?Q==null?void 0:Q.label:void 0),B&&(te.counselorUserIds=B!=null&&B.value&&typeof(B==null?void 0:B.value)=="string"?[B==null?void 0:B.value]:[],te.counselorEmails=B!=null&&B.value&&typeof(B==null?void 0:B.value)=="number"?[B==null?void 0:B.label]:[]),P([te])},[JSON.stringify(e),JSON.stringify(t),JSON.stringify(_)]);return C.useEffect(()=>{var G,W;return l!=null&&l.id&&E({teacher:(G=l==null?void 0:l.teachers)==null?void 0:G.map(Q=>({id:Q.teacherUserId,email:Q.mainTeacherEmail})),assistantId:l==null?void 0:l.assistantUserId,assistantEmail:l==null?void 0:l.assistantEmail,counselors:(W=l==null?void 0:l.counselors)==null?void 0:W.map(Q=>({id:Q.counselorUserId,email:Q.counselorEmail})),secondaryTeacherEmail:l==null?void 0:l.secondaryTeacherEmail,secondaryTeacherId:l==null?void 0:l.secondaryTeacherUserId,gradeLevel:l==null?void 0:l.gradeLevel}),()=>{E(qo)}},[l]),{handleAssignSingleStudent:O,handleAssignMultiStudent:D,openDetailModal:c,setOpenDetailModal:h,selectedUser:l,setSelectedUser:g,onClose:$,toggleCollapse:k,activeIndex:p,staffBulkAssign:I,removeTeacherUserIds:v,handleChangeCounselorBulk:R,handleChangeTeacherBulk:j,handleEditAssignForStudents:M,handleChangeStaffBulk:T}},r4_=({openDetailModal:e,onClose:t,selectedUser:_,staffBulkAssign:n,teacherOptions:s,handleChangeTeacherBulk:r,handleChangeCounselorBulk:c,assistantOptions:h,counselorOptions:l,handleChangeStaffBulk:g,handleEditAssignForStudents:p,toggleCollapse:w,activeIndex:v})=>{var E,$;const{t:A}=yt.useTranslation(),I=[(_==null?void 0:_.teachers)||[],(_==null?void 0:_.counselors)||[]];return o.jsxs(S.Modal,{centered:!0,isOpen:e,toggle:()=>t(),children:[o.jsxs(S.ModalHeader,{className:L["header-assign-for-student"],children:[o.jsxs("div",{children:["Assign student ",_==null?void 0:_.fullName]}),o.jsxs("div",{children:["Grade ",_==null?void 0:_.gradeLevel]})]}),o.jsxs(S.ModalBody,{children:[I.map((k,T)=>o.jsxs("div",{children:[o.jsxs("button",{type:"button",className:`btn ${L["btn-collapse"]} ${v===T?"btn-link ":""}`,onClick:()=>w(T),children:[A(T===0?"current_teacher_name":"current_counselor_name")," ",`(${k.length})`," ",o.jsx("i",{className:`fa fa-angle-${v===T?"up":"down"}`})]}),o.jsx(S.Collapse,{isOpen:v===T,children:o.jsx(S.Card,{children:o.jsx(S.CardBody,{children:k.length>0?k.map(j=>T===0?o.jsxs("li",{children:[j.mainTeacherName," - ",j.mainTeacherEmail]},j.mainTeacherEmail):o.jsxs("li",{children:[j.counselorName," - ",j.counselorEmail]},j.counselorUserId)):o.jsx("div",{children:A("no_data")})})})})]},T)),o.jsx("div",{children:A("teacher_email")}),o.jsx(D_,{isMulti:!0,value:(E=n.teacher)==null?void 0:E.filter(k=>{var T;return!((T=_.teachers)!=null&&T.some(j=>j.teacherUserId===k.id))}).map(k=>({label:k.email,value:k.id})),options:s==null?void 0:s.filter(k=>{var T;return!((T=_.teachers)!=null&&T.some(j=>j.teacherUserId===k.value))}),placeholder:A("select_teacher"),className:`flex-grow-1 mb-3 ${L["custom-chip-teacher-select"]}`,onChange:k=>{const T=k.map(j=>({id:j.value,email:j.label}));r(T)},isClearable:!0,style:{maxWidth:120}}),o.jsx("div",{children:A("assistant_email")}),o.jsx(as,{value:h.find(k=>k.value==n.assistantId||k.label==n.assistantEmail)||null,options:h,onChange:k=>{g("assistant",k)},placeholder:A("select_assistant"),className:"flex-grow-1 mb-3"}),o.jsx("div",{children:A("counselor_email")}),o.jsx(D_,{isMulti:!0,value:($=n.counselors)==null?void 0:$.filter(k=>{var T;return!((T=_.counselors)!=null&&T.some(j=>j.counselorUserId===k.id))}).map(k=>({label:k.email,value:k.id})),options:l==null?void 0:l.filter(k=>{var T;return!((T=_.counselors)!=null&&T.some(j=>j.counselorUserId===k.value))}),placeholder:A("select_counselor"),className:`flex-grow-1 mb-3 ${L["custom-chip-teacher-select"]}`,onChange:k=>{const T=k.map(j=>({id:j.value,email:j.label}));c(T)},isClearable:!0,style:{maxWidth:120}}),o.jsx("div",{children:A("support_teacher_email")})]}),o.jsxs(S.ModalFooter,{className:"text-right",children:[o.jsx(S.Button,{onClick:()=>t(),children:A("cancel")}),o.jsx(S.Button,{color:"primary",onClick:()=>{p()},children:A("save")})]})]})},c4_=()=>{const{t:e}=yt.useTranslation(),{selectedTeachers:t,teacherOptions:_,handleSelectTeacher:n,setSelectedTeachers:s}=a4_(),{selectedAssistants:r,assistantOptions:c,handleCreateAssistantOption:h,handleSelectAssistant:l,setSelectedAssistants:g}=o4_(),{selectedCounselors:p,counselorOptions:w,handleCreateCounselorOption:v,handleSelectCounselor:A,setSelectedCounselors:I}=n4_(),{isCheck:E,isCheckAll:$,userList:k,filters:T,totalItem:j,handleClickCheck:R,handleSelectAll:M,changeFilters:P,handelSort:D,handleRetrievedData:O,classFontSize:G}=s4_(),W=()=>{O(),s(void 0),g(void 0),I(void 0),K(!1)},{handleAssignSingleStudent:Q,handleAssignMultiStudent:B,openDetailModal:te,setOpenDetailModal:K,selectedUser:ae,setSelectedUser:Ie,onClose:ne,toggleCollapse:we,activeIndex:Ze,staffBulkAssign:We,handleChangeCounselorBulk:wt,handleChangeTeacherBulk:De,handleEditAssignForStudents:Me,handleChangeStaffBulk:xt}=i4_(t,r,p,W);return o.jsxs("div",{className:`fadeIn animated ${L[G]}`,children:[o.jsx("h5",{className:`mt-4 mb-2 ${L["custom-title-font-size"]}`,children:e("assign_student")}),o.jsxs(S.Row,{className:"my-2",children:[o.jsx(S.Col,{md:8,children:o.jsx(vs,{initValue:(T==null?void 0:T.searchString)||"",onSearch:ye=>P({searchString:ye}),placeholder:e("type_something_to_search_students"),className:L["custom-font-size"]})}),o.jsxs(S.Col,{md:4,className:`d-flex justify-content-end align-items-center ${L["custom-font-size"]}`,children:[e("total_of_users"),": ",j]})]}),o.jsx(S.Row,{className:"mb-2",children:o.jsx(S.Col,{children:o.jsx(S.Button,{onClick:()=>B(E),color:"primary",className:L["custom-font-size"],children:e("assign_for_selected_students")})})}),o.jsxs(S.Row,{className:"mb-2",children:[o.jsx(S.Col,{md:12,children:k&&k.length>0?o.jsx("div",{children:o.jsxs(S.Table,{bordered:!0,hover:!0,striped:!0,size:"sm",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:"align-middle text-center",children:o.jsx("input",{type:"checkbox",onChange:M,checked:$})}),o.jsxs("th",{className:`align-top ${L.pointer} text-capitalize`,onClick:()=>D(jt.Name),children:[e("student_name"),T.sortBy===jt.Name&&o.jsx(C.Fragment,{children:T.orderBy==="DESC"?o.jsx(Xs,{className:"ml-1"}):o.jsx(Us,{className:"ml-1"})})]}),o.jsxs("th",{className:`align-top ${L.pointer}`,onClick:()=>D(jt.Email),children:[e("student_email"),T.sortBy===jt.Email&&o.jsx(C.Fragment,{children:T.orderBy==="DESC"?o.jsx(Xs,{className:"ml-1"}):o.jsx(Us,{className:"ml-1"})})]}),o.jsx("th",{style:{width:"20%"},children:e("teacher_email")}),o.jsx("th",{style:{width:"20%"},children:e("assistant_email")}),o.jsx("th",{style:{width:"20%"},children:e("counselor_email")}),o.jsx("th",{className:"align-top",children:e("action")})]})}),o.jsx("tbody",{children:k==null?void 0:k.map(ye=>{var et,dt;return o.jsxs("tr",{children:[o.jsx("td",{className:`align-middle ${L["custom-font-size"]} text-center`,children:o.jsx("input",{id:ye.id,type:"checkbox",onChange:R,checked:E.includes(ye.id)})}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:o.jsx("button",{type:"button",className:`${L["button-user-name"]} btn-link`,onClick:()=>{Ie(ye),K(!0)},children:ye.fullName})}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]} ${L["content-wrap"]}`,children:ye.email}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:ye.teachers&&ye.teachers.length>0?o.jsx(C.Fragment,{children:(et=ye.teachers)==null?void 0:et.map(Fe=>o.jsxs("p",{className:"mb-0",children:[Fe.mainTeacherName," - ",Fe.mainTeacherEmail]},Fe.mainTeacherEmail))}):o.jsx(as,{isMulti:!0,value:t==null?void 0:t[ye.id],options:_,onChange:Fe=>n(Fe.map(Se=>Se.value),ye.id),placeholder:e("select_teacher"),className:`flex-grow-1 mr-2 ${L["custom-font-size"]}`})}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:ye.assistantEmail?o.jsxs(C.Fragment,{children:[o.jsx("p",{className:`mb-0 ${L["custom-font-size"]}`,children:ye.assistantEmail}),o.jsx("p",{className:`mb-0 ${L["custom-font-size"]}`,children:ye.assistantName})]}):o.jsx(as,{value:r==null?void 0:r[ye.id],options:c,onChange:Fe=>l(Fe.value,ye.id),onCreateOption:Fe=>h(Fe,ye.id),placeholder:e("select_assistant"),className:`flex-grow-1 mr-2 ${L["custom-font-size"]}`})}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:ye.counselors&&ye.counselors.length>0?o.jsx(C.Fragment,{children:(dt=ye.counselors)==null?void 0:dt.map(Fe=>o.jsxs("p",{className:"mb-0",children:[Fe.counselorName," - ",Fe.counselorEmail]},Fe.counselorEmail))}):o.jsx(as,{value:p==null?void 0:p[ye.id],options:w,onChange:Fe=>A(Fe.value,ye.id),onCreateOption:Fe=>v(Fe,ye.id),placeholder:e("select_counselor"),className:`flex-grow-1 mr-2 ${L["custom-font-size"]}`})}),o.jsx("td",{className:`align-middle ${L["custom-font-size"]}`,children:o.jsx("div",{className:"d-flex",children:o.jsx(G_,{label:"Assign",onClick:()=>Q(ye.id),className:L["custom-font-size"]})})})]},ye.id)})})]})}):o.jsx(I_,{label:"student"})}),o.jsx(S.Col,{md:12,children:o.jsx(C_,{filters:T,totalRecordCount:j,changePageSize:ye=>P({pageSize:ye}),changePage:ye=>P({currentPage:ye}),className:L["custom-font-size"]})})]}),o.jsx(r4_,{openDetailModal:te,onClose:ne,selectedUser:ae,staffBulkAssign:We,teacherOptions:_,handleChangeTeacherBulk:De,handleChangeCounselorBulk:wt,assistantOptions:c,counselorOptions:w,handleChangeStaffBulk:xt,handleEditAssignForStudents:Me,toggleCollapse:we,activeIndex:Ze})]})},l4_=[{path:"/admin/users/user-list",title:"user_list",component:s2_},{path:"/admin/users/assign-student",title:"assign_student",component:c4_}],d4_=()=>o.jsx(Oi,{tabs:l4_});function u4_(e,t){return Gi(e,e)}function m4_(e){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 015 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 005 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}}]})(e)}const h4_=20097152,Dr=({fileName:e,maxWidth:t,maxHeight:_,setFile:n,canDelete:s,onDelete:r,isCheckFeedBack:c,onAddImage:h})=>{const l=ke.useDispatch(),[g,p]=C.useState(""),w={maxWidth:t||"100%",maxHeight:_||"100%"},v=g||Jt(e),A=E=>{E.preventDefault();let $=new FileReader,k=E.target.files[0];if(k.size>h4_){l(he({type:"danger",message:"File can't be larger than 2MB"}));return}$.onloadend=()=>{n(k),p($.result)},k&&$.readAsDataURL(k),h&&h()},I=g||e?o.jsx("img",{style:w,src:v,alt:"image"}):null;return o.jsxs("div",{className:"mb-2",children:[o.jsxs(S.Form,{className:"mb-2",children:[o.jsx(S.Input,{className:"d-none",type:"file",id:"uploadFile",onChange:A,accept:"image/*"}),o.jsxs("div",{className:"d-flex align-items-center",children:[o.jsx(S.Label,{htmlFor:"uploadFile",role:"button",tabIndex:0,className:L["input-file-label"],children:c==!0?o.jsx(m4_,{}):o.jsxs(C.Fragment,{children:[o.jsx("i",{className:"fa fa-paperclip mr-1","aria-hidden":"true"}),g||e?"Change file":"Choose file"]})}),s&&I&&o.jsx(S.Button,{size:"sm",color:"danger",className:`${L["delete-avatar-button"]} ml-2 d-flex align-items-center justify-content-center`,onClick:()=>{p(null),r&&r()},children:o.jsx(qi,{})})]})]}),I]})},g4_={id:"",firstName:"",lastName:"",email:"",dateOfBirth:"",roles:[],isActive:!0,profileImageFileName:"",teacherUserId:[]},da="/admin/users/user-list",p4_="User detail",f4_=12,y4_=20,w4_=e=>{const t=ke.useDispatch(),_=vt.useNavigate(),n=ke.useSelector(W=>{var Q;return(Q=W.common)==null?void 0:Q.defaultFontSize}),[s,r]=C.useState(g4_),[c,h]=C.useState(null),[l,g]=C.useState(!1),[p,w]=C.useState([]),[v,A]=C.useState([]),[I,E]=C.useState(!1),$=async()=>{localStorage.setItem(window.location.href,"true"),g(!0)},k=()=>{E(!I)},T=C.useMemo(()=>n==y4_?"font-large":n==f4_?"font-small":"",[n]);C.useEffect(()=>{document.title=p4_,g(!1),localStorage.getItem(window.location.href)&&localStorage.removeItem(window.location.href)},[]),C.useEffect(()=>{e&&j(),!e&&G()},[e]);const j=C.useCallback(async()=>{var W,Q,B,te;t(me(!0));try{const K=await jo(e);r({...K.data,dateOfBirth:m_.format(new Date(K.data.dateOfBirth),Un),roles:K.data.roles.includes("EduTeacher")?[i_.EDUTEACHER]:K.data.roles}),w(((W=K==null?void 0:K.data)==null?void 0:W.roles)??[]),document.title=(Q=K.data)==null?void 0:Q.fullName}catch(K){t(he({type:"danger",message:((te=(B=K.response)==null?void 0:B.data)==null?void 0:te.title)||K.message}))}t(me(!1))},[e]),R=C.useCallback(W=>{_(W&&typeof W=="string"?da+`?query=${W}`:da)},[]),M=W=>["Student","Parent","EduTeacher"].includes(W),P=C.useCallback(async W=>{var Q,B,te;t(me(!0));try{if(c){const Ie=new FormData,{name:ne}=c;Ie.append("file",c,ne);const we=await m1_(Ie),Ze=(Q=we==null?void 0:we.data)==null?void 0:Q.key;W.profileImageFileName=Ze}const K=e?gk_:hk_;!e&&delete W.id;const ae=await K(W);ae&&jo(ae.data.id).then(Ie=>{R(Ie.data.fullName)}),e||alert("Password of "+ae.data.email+` is "${ae.data.password}"`),t(he({type:"success",message:`${e?"Update":"Create"} user successfully`}))}catch(K){t(he({type:"danger",message:((te=(B=K.response)==null?void 0:B.data)==null?void 0:te.title)||K.message}))}t(me(!1))},[e,c]),D=async W=>{var Q,B;t(me(!0));try{await fk_(W),t(he({type:"success",message:"Change password successfully"}))}catch(te){t(he({type:"danger",message:((B=(Q=te.response)==null?void 0:Q.data)==null?void 0:B.title)||te.message}))}t(me(!1))},O=C.useCallback(async W=>{var Q,B;t(me(!0));try{await yk_(W),t(he({type:"success",message:"Send forgot password link successfully"}))}catch(te){t(he({type:"danger",message:((B=(Q=te.response)==null?void 0:Q.data)==null?void 0:B.title)||te.message||"Error occured"}))}t(me(!1))},[]),G=async()=>{var W,Q,B,te;try{const K=await Hi({sortBy:"Email"});K.data&&A(((Q=(W=K.data).map)==null?void 0:Q.call(W,ae=>({label:ae.email,value:ae.id})))||[])}catch(K){t(he({type:"danger",message:((te=(B=K.response)==null?void 0:B.data)==null?void 0:te.title)||K.message}))}};return{userDetail:s,backToList:R,confirmData:P,file:c,setFile:h,edited:l,currentRoles:p,setEdited:g,setEditedTrue:$,confirmChangePassword:D,forgotPasswordRequest:O,handleDisableRoles:M,classFontSize:T,teacherOptions:v,handleToggleModel:k,openModel:I}},v4_=nt.object({firstName:nt.string().required("First name is required"),lastName:nt.string().required("Last name is required"),dateOfBirth:nt.string().required("Date of birth is required"),email:nt.string().email("Email is invalid").required("Email is required"),roles:nt.array().of(nt.string()).min(1,"Role is required")}),b4_=nt.object({oldPassword:nt.string().required("Current password is required"),newPassword:nt.string().required("New password is required"),confirmedNewPassword:nt.string().required("Confirm password is required")}),$4_="create_user",k4_="edit_user",x4_="change_password",I4_=()=>{const{t:e}=yt.useTranslation(),{id:t}=vt.useParams(),_=ke.useSelector(O=>O.common.user),{userDetail:n,backToList:s,confirmData:r,file:c,setFile:h,edited:l,currentRoles:g,handleDisableRoles:p,setEdited:w,setEditedTrue:v,confirmChangePassword:A,forgotPasswordRequest:I,classFontSize:E,teacherOptions:$,openModel:k,handleToggleModel:T}=w4_(t),j={oldPassword:"",newPassword:"",confirmedNewPassword:""},R=t?k4_:$4_,M=t?"update":"create",P=()=>{var O=window.location.origin+"/api/ExportDataUser/"+t;window.open(O)},D=async O=>{var G={email:O};I(G)};return o.jsx(c_.Formik,{initialValues:n,enableReinitialize:!0,validationSchema:v4_,onSubmit:O=>{r({...O,roles:O.roles.includes(i_.EDUTEACHER)?["EduTeacher"]:O.roles}),w(!1),localStorage.getItem(window.location.href)&&localStorage.removeItem(window.location.href)},children:O=>{const{values:G,touched:W,errors:Q,setFieldValue:B,handleChange:te,handleBlur:K,handleSubmit:ae}=O,Ie=C.useCallback(ne=>{if(G.roles.includes(ne)){B("roles",G.roles.filter(we=>we!==ne));return}if([i_.STUDENT,i_.PARENT,i_.EDUTEACHER].includes(ne)){B("roles",[ne]);return}if(G.roles.includes(i_.EDUTEACHER)&&i_.EDUTEACHER!=ne){B("roles",[ne]);return}B("roles",[...G.roles,ne])},[G.roles]);return o.jsxs("div",{className:`animated fadeIn detail-buttons-padding ${L[E]}`,children:[o.jsx(fs,{when:l}),o.jsx("h5",{className:`mb-2 ${L["custom-title-font-size"]}`,children:e(R)}),o.jsxs(S.Row,{className:`pt-2 ${L["custom-font-size"]}`,children:[o.jsxs(S.Col,{md:8,children:[o.jsxs(S.Row,{children:[o.jsx(S.Col,{md:6,children:o.jsxs(S.FormGroup,{children:[o.jsx(zt,{className:` ${L["custom-font-size"]}`,text:e("first_name")}),o.jsx(S.Input,{name:"firstName",value:G.firstName,onChange:ne=>{te(ne),v()},onBlur:K("subject"),placeholder:e("first_name"),className:` ${L["custom-font-size"]}`}),W.firstName&&Q.firstName&&o.jsx(kt,{text:Q.firstName})]})}),o.jsx(S.Col,{md:6,children:o.jsxs(S.FormGroup,{children:[o.jsx(zt,{className:` ${L["custom-font-size"]}`,text:e("date_of_birth")}),o.jsx("div",{children:o.jsx(Tl,{value:G.dateOfBirth,todayButton:"Today",peekNextMonth:!0,showMonthDropdown:!0,showYearDropdown:!0,dropdownMode:"select",selected:G.dateOfBirth?u4_(new Date(G.dateOfBirth)):null,onChange:ne=>{O.setFieldValue("dateOfBirth",m_.format(ne,Un)),v()},placeholderText:e("date_of_birth"),customInput:o.jsx(S.Input,{type:"text",style:{width:"maxContent"},placeholder:e("date_of_birth"),className:` ${L["custom-font-size"]}`})})}),W.dateOfBirth&&Q.dateOfBirth&&o.jsx(kt,{text:Q.dateOfBirth})]})})]}),o.jsxs(S.Row,{children:[o.jsx(S.Col,{md:6,children:o.jsxs(S.FormGroup,{children:[o.jsx(zt,{className:` ${L["custom-font-size"]}`,text:e("last_name")}),o.jsx(S.Input,{name:"lastName",value:G.lastName,onChange:ne=>{te(ne),v()},onBlur:K("lastName"),placeholder:e("last_name"),className:` ${L["custom-font-size"]}`}),W.lastName&&Q.lastName&&o.jsx(kt,{text:Q.lastName})]})}),o.jsx(S.Col,{md:6,children:o.jsxs(S.FormGroup,{children:[o.jsx(zt,{className:` ${L["custom-font-size"]}`,text:e("roles")}),o.jsx(S.Row,{children:o.jsx(S.Col,{md:12,className:"d-flex flex-wrap align-items-center",children:Vv_.map(ne=>o.jsx("div",{className:"mr-3",children:o.jsx(S.Input,{type:"checkbox",id:`role-checkbox-${ne}`,label:ne,checked:G.roles.includes(ne),onChange:()=>{Ie(ne),v()},disabled:t?g.concat(["Student","Parent","General ED teacher"]).includes(ne)||g.every(p):["Parent"].includes(ne),className:` ${L["custom-font-size"]}`})},ne))})}),W.roles&&Q.roles&&o.jsx(kt,{text:Q.roles})]})})]}),o.jsxs(S.Row,{children:[o.jsx(S.Col,{md:6,children:o.jsxs(S.FormGroup,{children:[o.jsx(zt,{className:` ${L["custom-font-size"]}`,text:e("email")}),o.jsx(S.Input,{name:"email",value:G.email,onChange:ne=>{te(ne),v()},onBlur:K("email"),placeholder:e("email"),className:` ${L["custom-font-size"]}`}),W.email&&Q.email&&o.jsx(kt,{text:Q.email})]})}),o.jsx(S.Col,{md:6,children:o.jsxs(S.FormGroup,{children:[o.jsx(zt,{text:e("status"),className:` ${L["custom-font-size"]}`}),o.jsxs(S.Row,{children:[o.jsx(S.Col,{md:3,children:o.jsx(S.Input,{id:"role-checkbox-active",type:"radio",name:"active",label:e("active"),checked:!!G&&!!G.isActive,onChange:()=>{B("isActive",!0),v()},className:` ${L["custom-font-size"]}`})}),o.jsx(S.Col,{md:3,children:o.jsx(S.Input,{id:"role-checkbox-inActive",type:"radio",name:"active",label:e("inactive"),checked:!!G&&!G.isActive,onChange:()=>B("isActive",!1),className:` ${L["custom-font-size"]}`})})]})]})})]}),!!t&&o.jsxs(S.Row,{children:[o.jsx(S.Col,{md:6}),o.jsxs(S.Col,{md:6,children:[o.jsx(S.Button,{color:"primary",className:`w-100 ${L["custom-font-size"]}`,onClick:()=>{D(G.email||"")},children:e("send_forgot_password_link")}),o.jsx(S.Button,{className:`w-100 mt-3 ${L["custom-font-size"]}`,color:"success",onClick:()=>{P()},children:e("download_user_data")})]})]})]}),o.jsx(S.Col,{md:4,children:o.jsx(S.Row,{children:o.jsxs(S.Col,{md:8,children:[o.jsx(Dr,{setFile:h,fileName:G.profileImageFileName,onAddImage:v,canDelete:!0,onDelete:()=>{h(null),B("profileImageFileName",""),v()}}),!c&&!G.profileImageFileName&&o.jsx("img",{src:Uv_,style:{maxWidth:"100%"}})]})})})]}),_.id===t?o.jsxs("div",{children:[o.jsx("h5",{className:"mt-3",children:e(x4_)}),o.jsx(c_.Formik,{initialValues:j,enableReinitialize:!0,validationSchema:b4_,onSubmit:ne=>{A(ne)},children:ne=>{const{values:we,touched:Ze,errors:We,handleChange:wt,handleSubmit:De}=ne;return o.jsxs(S.Row,{className:"pt-2 pb-5",children:[o.jsx(S.Col,{md:7,children:o.jsxs(S.FormGroup,{children:[o.jsx(zt,{className:` ${L["custom-font-size"]}`,text:e("current_password")}),o.jsx(S.Input,{name:"oldPassword",type:"password",value:we.oldPassword,onChange:Me=>{wt(Me),v()},onBlur:K("subject"),placeholder:e("current_password"),className:` ${L["custom-font-size"]}`}),Ze.oldPassword&&We.oldPassword&&o.jsx(kt,{text:We.oldPassword})]})}),o.jsx(S.Col,{md:7,children:o.jsxs(S.FormGroup,{children:[o.jsx(zt,{text:e("new_password"),className:` ${L["custom-font-size"]}`}),o.jsx(S.Input,{name:"newPassword",type:"password",value:we.newPassword,onChange:Me=>{wt(Me),v()},onBlur:K("subject"),placeholder:e("new_password"),className:` ${L["custom-font-size"]}`}),Ze.newPassword&&We.newPassword&&o.jsx(kt,{text:We.newPassword})]})}),o.jsx(S.Col,{md:7,children:o.jsxs(S.FormGroup,{children:[o.jsx(zt,{text:e("confirm_password"),className:` ${L["custom-font-size"]}`}),o.jsx(S.Input,{name:"confirmedNewPassword",type:"password",value:we.confirmedNewPassword,onChange:Me=>{wt(Me),v()},onBlur:K("subject"),placeholder:e("confirm_password"),className:` ${L["custom-font-size"]}`}),Ze.confirmedNewPassword&&We.confirmedNewPassword&&o.jsx(kt,{text:We.confirmedNewPassword})]})}),o.jsx(S.Col,{md:12,children:o.jsx(S.Button,{color:"primary",size:"sm",className:`px-4 pl-1 mr-2 ml-3 ${L["custom-font-size"]}`,onClick:()=>De(),children:e("save")})})]})}})]}):null,o.jsx(Qn,{confirmText:M,onConfirm:G.roles.includes(i_.STUDENT)&&!t?T:ae,onCancel:s,className:` ${L["custom-font-size"]}`}),o.jsxs(S.Modal,{centered:!0,isOpen:k,toggle:()=>T(),children:[o.jsx(S.ModalHeader,{children:"Assign Teacher"}),o.jsx(S.ModalBody,{children:o.jsx(as,{value:$.filter(ne=>{var we;return(we=G.teacherUserId)==null?void 0:we.includes(ne.value)})||null,options:$,placeholder:e("select_teacher"),className:"flex-grow-1 mb-3",onChange:ne=>B("teacherUserId",[ne.value])})}),o.jsxs(S.ModalFooter,{className:"text-right",children:[o.jsx(S.Button,{onClick:()=>T(),children:"Cancel"}),o.jsx(S.Button,{disabled:!G.teacherUserId,color:"primary",onClick:()=>ae(),children:"Assign"})]})]})]})}})},C4_={minWidth:"100vw",minHeight:"100vh",position:"fixed",top:0,left:0,zIndex:999999999,backgroundColor:"rgba(0, 0, 0, 0.4)",display:"flex",justifyContent:"center",alignItems:"center"},S4_=()=>ke.useSelector(t=>t.common.isLoading)?o.jsx("div",{style:C4_,children:o.jsx("div",{className:"spinner-border text-secondary",role:"status",children:o.jsx("span",{className:"sr-only",children:"Loading..."})})}):null,A4_=()=>{const{pathname:e}=vt.useLocation();return C.useEffect(()=>{window.scrollTo(0,0)},[e]),null},ua=e=>{switch(e){case"danger":return{header:"Error",color:qs.DANGER};case"warning":return{header:"Warning",color:qs.WARNING};case"success":return{header:"Success",color:qs.SUCCESS};default:return{header:"Infomation",color:qs.INFO}}},E4_=()=>{const e=ke.useDispatch(),t=ke.useSelector(g=>g.common.modal),{isOpen:_,type:n,message:s,onConfirm:r}=t,c=C.useCallback(()=>{e(Xt({isOpen:!_,type:n}))},[_]),h={backgroundColor:ua(n).color},l=()=>{r&&r(),c()};return o.jsxs(S.Modal,{isOpen:_,toggle:c,fade:!0,children:[o.jsx(S.ModalHeader,{toggle:c,style:h,children:ua(n).header}),o.jsx(S.ModalBody,{children:s}),o.jsxs(S.ModalFooter,{children:[r&&o.jsx(S.Button,{color:n,onClick:l,children:"Confirm"}),o.jsx(S.Button,{color:"secondary",onClick:c,children:"Cancel"})]})]})},T4_={paddingBottom:"16px"},ma={fontSize:"1.5rem",textAlign:"center"},j4_=({header:e,rootHeader:t})=>o.jsx("div",{style:T4_,children:o.jsxs(S.Row,{children:[t&&o.jsx(S.Col,{md:4,children:o.jsx("span",{className:"text-muted",style:ma,children:t})}),o.jsx(S.Col,{md:4,children:o.jsx("span",{style:ma,children:e})})]})}),q4_=({onClick:e})=>o.jsx("div",{className:"d-inline text-center cursor-pointer hover-opacity",title:"Edit",onClick:e,children:o.jsx(q$_,{})}),N4_={DropdownIndicator:null},P4_=e=>{const{inputValue:t,value:_,placeholder:n,handleChange:s,handleInputChange:r,handleKeyDown:c}=e;return o.jsx(zr,{components:N4_,placeholder:n||"Type something to create option",isClearable:!0,isMulti:!0,menuIsOpen:!1,value:_,inputValue:t,onChange:s,onInputChange:r,onKeyDown:c})},R4_=e=>{const{id:t,className:_}=e,n=t&&Rn.find(s=>s.value===t)||null;return o.jsx(p_,{options:Rn,value:n,...e,className:_})},L4_=`${ht}/api/SuggestionCategory`,M4_=()=>xe.get(L4_),z4_=e=>{const[t,_]=C.useState([]);C.useEffect(()=>{n()},[]);const n=async()=>{try{const h=await M4_();_(h.data.items)}catch(h){console.error(h)}},{id:s}=e,r=t.map(h=>({id:h.id,value:h.id,label:h.name})),c=s&&r.find(h=>h.value===s)||null;return o.jsx(p_,{options:r,value:c,...e})},D4_=`${ht}/api/QuestionCategory`,F4_=()=>xe.get(D4_),O4_=e=>{const[t,_]=C.useState([]);C.useEffect(()=>{n()},[]);const n=async()=>{try{const l=await F4_();_(l.data.items)}catch(l){console.error(l)}},{id:s,className:r}=e,c=t.map(l=>({id:l.id,value:l.id,label:l.name})),h=s&&c.find(l=>l.value===s)||null;return o.jsx(p_,{options:c,value:h,...e,className:r})},G4_=e=>{const{id:t,className:_}=e,n=t&&$o.find(s=>s.value===t)||null;return o.jsx(p_,{options:$o,value:n,...e,menuPlacement:"top",className:_})},ha="primary",ga="secondary",B4_=({textLeft:e,textRight:t,isLeft:_,clickLeft:n,clickRight:s})=>o.jsxs("div",{className:"w-100 d-flex",children:[o.jsx(S.Button,{size:"sm",color:_?ha:ga,onClick:n,className:"toggle-btn toggle-btn-left flex-grow-1",children:e}),o.jsx(S.Button,{size:"sm",color:_?ga:ha,onClick:s,className:"toggle-btn toggle-btn-right flex-grow-1",children:t})]}),V4_=({icon:e,accept:t="*",callback:_})=>{const n=async s=>{try{const r=new FormData,c=s.target.files[0],h=c.name;r.append("file",c,h),r.append("customKey","conversation");const l=await Li(r),{name:g,key:p,type:w}=l.data;_(g,Jt(p),w)}catch(r){console.error(r.message)}};return o.jsxs(C.Fragment,{children:[o.jsx(S.Input,{className:"d-none",type:"file",id:"upload-file-btn",onChange:n,accept:t}),o.jsx(S.Label,{htmlFor:"upload-file-btn",role:"button",children:e})]})},H4_=[{value:!0,label:"Read"},{value:!1,label:"Unread"}],W4_=({value:e,onChange:t})=>{const _={menu:n=>({...n,zIndex:10})};return o.jsx(D_,{defaultValue:e,options:H4_,onChange:t,styles:_})},U4_=C.memo(W4_);var jn={exports:{}};/*!
29
29
  * Pusher JavaScript Library v8.4.0
30
30
  * https://pusher.com/
31
31
  *
32
32
  * Copyright 2020, Pusher
33
33
  * Released under the MIT licence.
34
- */var pa;function X4_(){return pa||(pa=1,(function(e,t){(function(n,s){e.exports=s()})(window,function(){return(function(_){var n={};function s(r){if(n[r])return n[r].exports;var l=n[r]={i:r,l:!1,exports:{}};return _[r].call(l.exports,l,l.exports,s),l.l=!0,l.exports}return s.m=_,s.c=n,s.d=function(r,l,h){s.o(r,l)||Object.defineProperty(r,l,{enumerable:!0,get:h})},s.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},s.t=function(r,l){if(l&1&&(r=s(r)),l&8||l&4&&typeof r=="object"&&r&&r.__esModule)return r;var h=Object.create(null);if(s.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:r}),l&2&&typeof r!="string")for(var c in r)s.d(h,c,(function(g){return r[g]}).bind(null,c));return h},s.n=function(r){var l=r&&r.__esModule?function(){return r.default}:function(){return r};return s.d(l,"a",l),l},s.o=function(r,l){return Object.prototype.hasOwnProperty.call(r,l)},s.p="",s(s.s=3)})([(function(_,n,s){var r=this&&this.__extends||(function(){var E=function($,k){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,j){T.__proto__=j}||function(T,j){for(var R in j)j.hasOwnProperty(R)&&(T[R]=j[R])},E($,k)};return function($,k){E($,k);function T(){this.constructor=$}$.prototype=k===null?Object.create(k):(T.prototype=k.prototype,new T)}})();Object.defineProperty(n,"__esModule",{value:!0});var l=256,h=(function(){function E($){$===void 0&&($="="),this._paddingCharacter=$}return E.prototype.encodedLength=function($){return this._paddingCharacter?($+2)/3*4|0:($*8+5)/6|0},E.prototype.encode=function($){for(var k="",T=0;T<$.length-2;T+=3){var j=$[T]<<16|$[T+1]<<8|$[T+2];k+=this._encodeByte(j>>>18&63),k+=this._encodeByte(j>>>12&63),k+=this._encodeByte(j>>>6&63),k+=this._encodeByte(j>>>0&63)}var R=$.length-T;if(R>0){var j=$[T]<<16|(R===2?$[T+1]<<8:0);k+=this._encodeByte(j>>>18&63),k+=this._encodeByte(j>>>12&63),R===2?k+=this._encodeByte(j>>>6&63):k+=this._paddingCharacter||"",k+=this._paddingCharacter||""}return k},E.prototype.maxDecodedLength=function($){return this._paddingCharacter?$/4*3|0:($*6+7)/8|0},E.prototype.decodedLength=function($){return this.maxDecodedLength($.length-this._getPaddingLength($))},E.prototype.decode=function($){if($.length===0)return new Uint8Array(0);for(var k=this._getPaddingLength($),T=$.length-k,j=new Uint8Array(this.maxDecodedLength(T)),R=0,M=0,P=0,D=0,O=0,G=0,W=0;M<T-4;M+=4)D=this._decodeChar($.charCodeAt(M+0)),O=this._decodeChar($.charCodeAt(M+1)),G=this._decodeChar($.charCodeAt(M+2)),W=this._decodeChar($.charCodeAt(M+3)),j[R++]=D<<2|O>>>4,j[R++]=O<<4|G>>>2,j[R++]=G<<6|W,P|=D&l,P|=O&l,P|=G&l,P|=W&l;if(M<T-1&&(D=this._decodeChar($.charCodeAt(M)),O=this._decodeChar($.charCodeAt(M+1)),j[R++]=D<<2|O>>>4,P|=D&l,P|=O&l),M<T-2&&(G=this._decodeChar($.charCodeAt(M+2)),j[R++]=O<<4|G>>>2,P|=G&l),M<T-3&&(W=this._decodeChar($.charCodeAt(M+3)),j[R++]=G<<6|W,P|=W&l),P!==0)throw new Error("Base64Coder: incorrect characters for decoding");return j},E.prototype._encodeByte=function($){var k=$;return k+=65,k+=25-$>>>8&6,k+=51-$>>>8&-75,k+=61-$>>>8&-15,k+=62-$>>>8&3,String.fromCharCode(k)},E.prototype._decodeChar=function($){var k=l;return k+=(42-$&$-44)>>>8&-l+$-43+62,k+=(46-$&$-48)>>>8&-l+$-47+63,k+=(47-$&$-58)>>>8&-l+$-48+52,k+=(64-$&$-91)>>>8&-l+$-65+0,k+=(96-$&$-123)>>>8&-l+$-97+26,k},E.prototype._getPaddingLength=function($){var k=0;if(this._paddingCharacter){for(var T=$.length-1;T>=0&&$[T]===this._paddingCharacter;T--)k++;if($.length<4||k>2)throw new Error("Base64Coder: incorrect padding")}return k},E})();n.Coder=h;var c=new h;function g(E){return c.encode(E)}n.encode=g;function p(E){return c.decode(E)}n.decode=p;var w=(function(E){r($,E);function $(){return E!==null&&E.apply(this,arguments)||this}return $.prototype._encodeByte=function(k){var T=k;return T+=65,T+=25-k>>>8&6,T+=51-k>>>8&-75,T+=61-k>>>8&-13,T+=62-k>>>8&49,String.fromCharCode(T)},$.prototype._decodeChar=function(k){var T=l;return T+=(44-k&k-46)>>>8&-l+k-45+62,T+=(94-k&k-96)>>>8&-l+k-95+63,T+=(47-k&k-58)>>>8&-l+k-48+52,T+=(64-k&k-91)>>>8&-l+k-65+0,T+=(96-k&k-123)>>>8&-l+k-97+26,T},$})(h);n.URLSafeCoder=w;var v=new w;function A(E){return v.encode(E)}n.encodeURLSafe=A;function I(E){return v.decode(E)}n.decodeURLSafe=I,n.encodedLength=function(E){return c.encodedLength(E)},n.maxDecodedLength=function(E){return c.maxDecodedLength(E)},n.decodedLength=function(E){return c.decodedLength(E)}}),(function(_,n,s){Object.defineProperty(n,"__esModule",{value:!0});var r="utf8: invalid string",l="utf8: invalid source encoding";function h(p){for(var w=new Uint8Array(c(p)),v=0,A=0;A<p.length;A++){var I=p.charCodeAt(A);I<128?w[v++]=I:I<2048?(w[v++]=192|I>>6,w[v++]=128|I&63):I<55296?(w[v++]=224|I>>12,w[v++]=128|I>>6&63,w[v++]=128|I&63):(A++,I=(I&1023)<<10,I|=p.charCodeAt(A)&1023,I+=65536,w[v++]=240|I>>18,w[v++]=128|I>>12&63,w[v++]=128|I>>6&63,w[v++]=128|I&63)}return w}n.encode=h;function c(p){for(var w=0,v=0;v<p.length;v++){var A=p.charCodeAt(v);if(A<128)w+=1;else if(A<2048)w+=2;else if(A<55296)w+=3;else if(A<=57343){if(v>=p.length-1)throw new Error(r);v++,w+=4}else throw new Error(r)}return w}n.encodedLength=c;function g(p){for(var w=[],v=0;v<p.length;v++){var A=p[v];if(A&128){var I=void 0;if(A<224){if(v>=p.length)throw new Error(l);var E=p[++v];if((E&192)!==128)throw new Error(l);A=(A&31)<<6|E&63,I=128}else if(A<240){if(v>=p.length-1)throw new Error(l);var E=p[++v],$=p[++v];if((E&192)!==128||($&192)!==128)throw new Error(l);A=(A&15)<<12|(E&63)<<6|$&63,I=2048}else if(A<248){if(v>=p.length-2)throw new Error(l);var E=p[++v],$=p[++v],k=p[++v];if((E&192)!==128||($&192)!==128||(k&192)!==128)throw new Error(l);A=(A&15)<<18|(E&63)<<12|($&63)<<6|k&63,I=65536}else throw new Error(l);if(A<I||A>=55296&&A<=57343)throw new Error(l);if(A>=65536){if(A>1114111)throw new Error(l);A-=65536,w.push(String.fromCharCode(55296|A>>10)),A=56320|A&1023}}w.push(String.fromCharCode(A))}return w.join("")}n.decode=g}),(function(_,n,s){(function(r){var l=function(m){var y,f=new Float64Array(16);if(m)for(y=0;y<m.length;y++)f[y]=m[y];return f},h=function(){throw new Error("no PRNG")},c=new Uint8Array(16),g=new Uint8Array(32);g[0]=9;var p=l(),w=l([1]),v=l([56129,1]),A=l([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),I=l([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),E=l([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),$=l([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),k=l([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function T(m,y,f,i){m[y]=f>>24&255,m[y+1]=f>>16&255,m[y+2]=f>>8&255,m[y+3]=f&255,m[y+4]=i>>24&255,m[y+5]=i>>16&255,m[y+6]=i>>8&255,m[y+7]=i&255}function j(m,y,f,i,b){var z,F=0;for(z=0;z<b;z++)F|=m[y+z]^f[i+z];return(1&F-1>>>8)-1}function R(m,y,f,i){return j(m,y,f,i,16)}function M(m,y,f,i){return j(m,y,f,i,32)}function P(m,y,f,i){for(var b=i[0]&255|(i[1]&255)<<8|(i[2]&255)<<16|(i[3]&255)<<24,z=f[0]&255|(f[1]&255)<<8|(f[2]&255)<<16|(f[3]&255)<<24,F=f[4]&255|(f[5]&255)<<8|(f[6]&255)<<16|(f[7]&255)<<24,Z=f[8]&255|(f[9]&255)<<8|(f[10]&255)<<16|(f[11]&255)<<24,_e=f[12]&255|(f[13]&255)<<8|(f[14]&255)<<16|(f[15]&255)<<24,pe=i[4]&255|(i[5]&255)<<8|(i[6]&255)<<16|(i[7]&255)<<24,le=y[0]&255|(y[1]&255)<<8|(y[2]&255)<<16|(y[3]&255)<<24,tt=y[4]&255|(y[5]&255)<<8|(y[6]&255)<<16|(y[7]&255)<<24,de=y[8]&255|(y[9]&255)<<8|(y[10]&255)<<16|(y[11]&255)<<24,je=y[12]&255|(y[13]&255)<<8|(y[14]&255)<<16|(y[15]&255)<<24,Ee=i[8]&255|(i[9]&255)<<8|(i[10]&255)<<16|(i[11]&255)<<24,Oe=f[16]&255|(f[17]&255)<<8|(f[18]&255)<<16|(f[19]&255)<<24,ze=f[20]&255|(f[21]&255)<<8|(f[22]&255)<<16|(f[23]&255)<<24,qe=f[24]&255|(f[25]&255)<<8|(f[26]&255)<<16|(f[27]&255)<<24,Le=f[28]&255|(f[29]&255)<<8|(f[30]&255)<<16|(f[31]&255)<<24,Ne=i[12]&255|(i[13]&255)<<8|(i[14]&255)<<16|(i[15]&255)<<24,re=b,ve=z,ie=F,ue=Z,fe=_e,ce=pe,V=le,H=tt,ee=de,X=je,J=Ee,te=Oe,$e=ze,Pe=qe,Ge=Le,Re=Ne,q,Ue=0;Ue<20;Ue+=2)q=re+$e|0,fe^=q<<7|q>>>25,q=fe+re|0,ee^=q<<9|q>>>23,q=ee+fe|0,$e^=q<<13|q>>>19,q=$e+ee|0,re^=q<<18|q>>>14,q=ce+ve|0,X^=q<<7|q>>>25,q=X+ce|0,Pe^=q<<9|q>>>23,q=Pe+X|0,ve^=q<<13|q>>>19,q=ve+Pe|0,ce^=q<<18|q>>>14,q=J+V|0,Ge^=q<<7|q>>>25,q=Ge+J|0,ie^=q<<9|q>>>23,q=ie+Ge|0,V^=q<<13|q>>>19,q=V+ie|0,J^=q<<18|q>>>14,q=Re+te|0,ue^=q<<7|q>>>25,q=ue+Re|0,H^=q<<9|q>>>23,q=H+ue|0,te^=q<<13|q>>>19,q=te+H|0,Re^=q<<18|q>>>14,q=re+ue|0,ve^=q<<7|q>>>25,q=ve+re|0,ie^=q<<9|q>>>23,q=ie+ve|0,ue^=q<<13|q>>>19,q=ue+ie|0,re^=q<<18|q>>>14,q=ce+fe|0,V^=q<<7|q>>>25,q=V+ce|0,H^=q<<9|q>>>23,q=H+V|0,fe^=q<<13|q>>>19,q=fe+H|0,ce^=q<<18|q>>>14,q=J+X|0,te^=q<<7|q>>>25,q=te+J|0,ee^=q<<9|q>>>23,q=ee+te|0,X^=q<<13|q>>>19,q=X+ee|0,J^=q<<18|q>>>14,q=Re+Ge|0,$e^=q<<7|q>>>25,q=$e+Re|0,Pe^=q<<9|q>>>23,q=Pe+$e|0,Ge^=q<<13|q>>>19,q=Ge+Pe|0,Re^=q<<18|q>>>14;re=re+b|0,ve=ve+z|0,ie=ie+F|0,ue=ue+Z|0,fe=fe+_e|0,ce=ce+pe|0,V=V+le|0,H=H+tt|0,ee=ee+de|0,X=X+je|0,J=J+Ee|0,te=te+Oe|0,$e=$e+ze|0,Pe=Pe+qe|0,Ge=Ge+Le|0,Re=Re+Ne|0,m[0]=re>>>0&255,m[1]=re>>>8&255,m[2]=re>>>16&255,m[3]=re>>>24&255,m[4]=ve>>>0&255,m[5]=ve>>>8&255,m[6]=ve>>>16&255,m[7]=ve>>>24&255,m[8]=ie>>>0&255,m[9]=ie>>>8&255,m[10]=ie>>>16&255,m[11]=ie>>>24&255,m[12]=ue>>>0&255,m[13]=ue>>>8&255,m[14]=ue>>>16&255,m[15]=ue>>>24&255,m[16]=fe>>>0&255,m[17]=fe>>>8&255,m[18]=fe>>>16&255,m[19]=fe>>>24&255,m[20]=ce>>>0&255,m[21]=ce>>>8&255,m[22]=ce>>>16&255,m[23]=ce>>>24&255,m[24]=V>>>0&255,m[25]=V>>>8&255,m[26]=V>>>16&255,m[27]=V>>>24&255,m[28]=H>>>0&255,m[29]=H>>>8&255,m[30]=H>>>16&255,m[31]=H>>>24&255,m[32]=ee>>>0&255,m[33]=ee>>>8&255,m[34]=ee>>>16&255,m[35]=ee>>>24&255,m[36]=X>>>0&255,m[37]=X>>>8&255,m[38]=X>>>16&255,m[39]=X>>>24&255,m[40]=J>>>0&255,m[41]=J>>>8&255,m[42]=J>>>16&255,m[43]=J>>>24&255,m[44]=te>>>0&255,m[45]=te>>>8&255,m[46]=te>>>16&255,m[47]=te>>>24&255,m[48]=$e>>>0&255,m[49]=$e>>>8&255,m[50]=$e>>>16&255,m[51]=$e>>>24&255,m[52]=Pe>>>0&255,m[53]=Pe>>>8&255,m[54]=Pe>>>16&255,m[55]=Pe>>>24&255,m[56]=Ge>>>0&255,m[57]=Ge>>>8&255,m[58]=Ge>>>16&255,m[59]=Ge>>>24&255,m[60]=Re>>>0&255,m[61]=Re>>>8&255,m[62]=Re>>>16&255,m[63]=Re>>>24&255}function D(m,y,f,i){for(var b=i[0]&255|(i[1]&255)<<8|(i[2]&255)<<16|(i[3]&255)<<24,z=f[0]&255|(f[1]&255)<<8|(f[2]&255)<<16|(f[3]&255)<<24,F=f[4]&255|(f[5]&255)<<8|(f[6]&255)<<16|(f[7]&255)<<24,Z=f[8]&255|(f[9]&255)<<8|(f[10]&255)<<16|(f[11]&255)<<24,_e=f[12]&255|(f[13]&255)<<8|(f[14]&255)<<16|(f[15]&255)<<24,pe=i[4]&255|(i[5]&255)<<8|(i[6]&255)<<16|(i[7]&255)<<24,le=y[0]&255|(y[1]&255)<<8|(y[2]&255)<<16|(y[3]&255)<<24,tt=y[4]&255|(y[5]&255)<<8|(y[6]&255)<<16|(y[7]&255)<<24,de=y[8]&255|(y[9]&255)<<8|(y[10]&255)<<16|(y[11]&255)<<24,je=y[12]&255|(y[13]&255)<<8|(y[14]&255)<<16|(y[15]&255)<<24,Ee=i[8]&255|(i[9]&255)<<8|(i[10]&255)<<16|(i[11]&255)<<24,Oe=f[16]&255|(f[17]&255)<<8|(f[18]&255)<<16|(f[19]&255)<<24,ze=f[20]&255|(f[21]&255)<<8|(f[22]&255)<<16|(f[23]&255)<<24,qe=f[24]&255|(f[25]&255)<<8|(f[26]&255)<<16|(f[27]&255)<<24,Le=f[28]&255|(f[29]&255)<<8|(f[30]&255)<<16|(f[31]&255)<<24,Ne=i[12]&255|(i[13]&255)<<8|(i[14]&255)<<16|(i[15]&255)<<24,re=b,ve=z,ie=F,ue=Z,fe=_e,ce=pe,V=le,H=tt,ee=de,X=je,J=Ee,te=Oe,$e=ze,Pe=qe,Ge=Le,Re=Ne,q,Ue=0;Ue<20;Ue+=2)q=re+$e|0,fe^=q<<7|q>>>25,q=fe+re|0,ee^=q<<9|q>>>23,q=ee+fe|0,$e^=q<<13|q>>>19,q=$e+ee|0,re^=q<<18|q>>>14,q=ce+ve|0,X^=q<<7|q>>>25,q=X+ce|0,Pe^=q<<9|q>>>23,q=Pe+X|0,ve^=q<<13|q>>>19,q=ve+Pe|0,ce^=q<<18|q>>>14,q=J+V|0,Ge^=q<<7|q>>>25,q=Ge+J|0,ie^=q<<9|q>>>23,q=ie+Ge|0,V^=q<<13|q>>>19,q=V+ie|0,J^=q<<18|q>>>14,q=Re+te|0,ue^=q<<7|q>>>25,q=ue+Re|0,H^=q<<9|q>>>23,q=H+ue|0,te^=q<<13|q>>>19,q=te+H|0,Re^=q<<18|q>>>14,q=re+ue|0,ve^=q<<7|q>>>25,q=ve+re|0,ie^=q<<9|q>>>23,q=ie+ve|0,ue^=q<<13|q>>>19,q=ue+ie|0,re^=q<<18|q>>>14,q=ce+fe|0,V^=q<<7|q>>>25,q=V+ce|0,H^=q<<9|q>>>23,q=H+V|0,fe^=q<<13|q>>>19,q=fe+H|0,ce^=q<<18|q>>>14,q=J+X|0,te^=q<<7|q>>>25,q=te+J|0,ee^=q<<9|q>>>23,q=ee+te|0,X^=q<<13|q>>>19,q=X+ee|0,J^=q<<18|q>>>14,q=Re+Ge|0,$e^=q<<7|q>>>25,q=$e+Re|0,Pe^=q<<9|q>>>23,q=Pe+$e|0,Ge^=q<<13|q>>>19,q=Ge+Pe|0,Re^=q<<18|q>>>14;m[0]=re>>>0&255,m[1]=re>>>8&255,m[2]=re>>>16&255,m[3]=re>>>24&255,m[4]=ce>>>0&255,m[5]=ce>>>8&255,m[6]=ce>>>16&255,m[7]=ce>>>24&255,m[8]=J>>>0&255,m[9]=J>>>8&255,m[10]=J>>>16&255,m[11]=J>>>24&255,m[12]=Re>>>0&255,m[13]=Re>>>8&255,m[14]=Re>>>16&255,m[15]=Re>>>24&255,m[16]=V>>>0&255,m[17]=V>>>8&255,m[18]=V>>>16&255,m[19]=V>>>24&255,m[20]=H>>>0&255,m[21]=H>>>8&255,m[22]=H>>>16&255,m[23]=H>>>24&255,m[24]=ee>>>0&255,m[25]=ee>>>8&255,m[26]=ee>>>16&255,m[27]=ee>>>24&255,m[28]=X>>>0&255,m[29]=X>>>8&255,m[30]=X>>>16&255,m[31]=X>>>24&255}function O(m,y,f,i){P(m,y,f,i)}function G(m,y,f,i){D(m,y,f,i)}var W=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Q(m,y,f,i,b,z,F){var Z=new Uint8Array(16),_e=new Uint8Array(64),pe,le;for(le=0;le<16;le++)Z[le]=0;for(le=0;le<8;le++)Z[le]=z[le];for(;b>=64;){for(O(_e,Z,F,W),le=0;le<64;le++)m[y+le]=f[i+le]^_e[le];for(pe=1,le=8;le<16;le++)pe=pe+(Z[le]&255)|0,Z[le]=pe&255,pe>>>=8;b-=64,y+=64,i+=64}if(b>0)for(O(_e,Z,F,W),le=0;le<b;le++)m[y+le]=f[i+le]^_e[le];return 0}function B(m,y,f,i,b){var z=new Uint8Array(16),F=new Uint8Array(64),Z,_e;for(_e=0;_e<16;_e++)z[_e]=0;for(_e=0;_e<8;_e++)z[_e]=i[_e];for(;f>=64;){for(O(F,z,b,W),_e=0;_e<64;_e++)m[y+_e]=F[_e];for(Z=1,_e=8;_e<16;_e++)Z=Z+(z[_e]&255)|0,z[_e]=Z&255,Z>>>=8;f-=64,y+=64}if(f>0)for(O(F,z,b,W),_e=0;_e<f;_e++)m[y+_e]=F[_e];return 0}function se(m,y,f,i,b){var z=new Uint8Array(32);G(z,i,b,W);for(var F=new Uint8Array(8),Z=0;Z<8;Z++)F[Z]=i[Z+16];return B(m,y,f,F,z)}function K(m,y,f,i,b,z,F){var Z=new Uint8Array(32);G(Z,z,F,W);for(var _e=new Uint8Array(8),pe=0;pe<8;pe++)_e[pe]=z[pe+16];return Q(m,y,f,i,b,_e,Z)}var ae=function(m){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var y,f,i,b,z,F,Z,_e;y=m[0]&255|(m[1]&255)<<8,this.r[0]=y&8191,f=m[2]&255|(m[3]&255)<<8,this.r[1]=(y>>>13|f<<3)&8191,i=m[4]&255|(m[5]&255)<<8,this.r[2]=(f>>>10|i<<6)&7939,b=m[6]&255|(m[7]&255)<<8,this.r[3]=(i>>>7|b<<9)&8191,z=m[8]&255|(m[9]&255)<<8,this.r[4]=(b>>>4|z<<12)&255,this.r[5]=z>>>1&8190,F=m[10]&255|(m[11]&255)<<8,this.r[6]=(z>>>14|F<<2)&8191,Z=m[12]&255|(m[13]&255)<<8,this.r[7]=(F>>>11|Z<<5)&8065,_e=m[14]&255|(m[15]&255)<<8,this.r[8]=(Z>>>8|_e<<8)&8191,this.r[9]=_e>>>5&127,this.pad[0]=m[16]&255|(m[17]&255)<<8,this.pad[1]=m[18]&255|(m[19]&255)<<8,this.pad[2]=m[20]&255|(m[21]&255)<<8,this.pad[3]=m[22]&255|(m[23]&255)<<8,this.pad[4]=m[24]&255|(m[25]&255)<<8,this.pad[5]=m[26]&255|(m[27]&255)<<8,this.pad[6]=m[28]&255|(m[29]&255)<<8,this.pad[7]=m[30]&255|(m[31]&255)<<8};ae.prototype.blocks=function(m,y,f){for(var i=this.fin?0:2048,b,z,F,Z,_e,pe,le,tt,de,je,Ee,Oe,ze,qe,Le,Ne,re,ve,ie,ue=this.h[0],fe=this.h[1],ce=this.h[2],V=this.h[3],H=this.h[4],ee=this.h[5],X=this.h[6],J=this.h[7],te=this.h[8],$e=this.h[9],Pe=this.r[0],Ge=this.r[1],Re=this.r[2],q=this.r[3],Ue=this.r[4],_t=this.r[5],st=this.r[6],Ve=this.r[7],Qe=this.r[8],Ke=this.r[9];f>=16;)b=m[y+0]&255|(m[y+1]&255)<<8,ue+=b&8191,z=m[y+2]&255|(m[y+3]&255)<<8,fe+=(b>>>13|z<<3)&8191,F=m[y+4]&255|(m[y+5]&255)<<8,ce+=(z>>>10|F<<6)&8191,Z=m[y+6]&255|(m[y+7]&255)<<8,V+=(F>>>7|Z<<9)&8191,_e=m[y+8]&255|(m[y+9]&255)<<8,H+=(Z>>>4|_e<<12)&8191,ee+=_e>>>1&8191,pe=m[y+10]&255|(m[y+11]&255)<<8,X+=(_e>>>14|pe<<2)&8191,le=m[y+12]&255|(m[y+13]&255)<<8,J+=(pe>>>11|le<<5)&8191,tt=m[y+14]&255|(m[y+15]&255)<<8,te+=(le>>>8|tt<<8)&8191,$e+=tt>>>5|i,de=0,je=de,je+=ue*Pe,je+=fe*(5*Ke),je+=ce*(5*Qe),je+=V*(5*Ve),je+=H*(5*st),de=je>>>13,je&=8191,je+=ee*(5*_t),je+=X*(5*Ue),je+=J*(5*q),je+=te*(5*Re),je+=$e*(5*Ge),de+=je>>>13,je&=8191,Ee=de,Ee+=ue*Ge,Ee+=fe*Pe,Ee+=ce*(5*Ke),Ee+=V*(5*Qe),Ee+=H*(5*Ve),de=Ee>>>13,Ee&=8191,Ee+=ee*(5*st),Ee+=X*(5*_t),Ee+=J*(5*Ue),Ee+=te*(5*q),Ee+=$e*(5*Re),de+=Ee>>>13,Ee&=8191,Oe=de,Oe+=ue*Re,Oe+=fe*Ge,Oe+=ce*Pe,Oe+=V*(5*Ke),Oe+=H*(5*Qe),de=Oe>>>13,Oe&=8191,Oe+=ee*(5*Ve),Oe+=X*(5*st),Oe+=J*(5*_t),Oe+=te*(5*Ue),Oe+=$e*(5*q),de+=Oe>>>13,Oe&=8191,ze=de,ze+=ue*q,ze+=fe*Re,ze+=ce*Ge,ze+=V*Pe,ze+=H*(5*Ke),de=ze>>>13,ze&=8191,ze+=ee*(5*Qe),ze+=X*(5*Ve),ze+=J*(5*st),ze+=te*(5*_t),ze+=$e*(5*Ue),de+=ze>>>13,ze&=8191,qe=de,qe+=ue*Ue,qe+=fe*q,qe+=ce*Re,qe+=V*Ge,qe+=H*Pe,de=qe>>>13,qe&=8191,qe+=ee*(5*Ke),qe+=X*(5*Qe),qe+=J*(5*Ve),qe+=te*(5*st),qe+=$e*(5*_t),de+=qe>>>13,qe&=8191,Le=de,Le+=ue*_t,Le+=fe*Ue,Le+=ce*q,Le+=V*Re,Le+=H*Ge,de=Le>>>13,Le&=8191,Le+=ee*Pe,Le+=X*(5*Ke),Le+=J*(5*Qe),Le+=te*(5*Ve),Le+=$e*(5*st),de+=Le>>>13,Le&=8191,Ne=de,Ne+=ue*st,Ne+=fe*_t,Ne+=ce*Ue,Ne+=V*q,Ne+=H*Re,de=Ne>>>13,Ne&=8191,Ne+=ee*Ge,Ne+=X*Pe,Ne+=J*(5*Ke),Ne+=te*(5*Qe),Ne+=$e*(5*Ve),de+=Ne>>>13,Ne&=8191,re=de,re+=ue*Ve,re+=fe*st,re+=ce*_t,re+=V*Ue,re+=H*q,de=re>>>13,re&=8191,re+=ee*Re,re+=X*Ge,re+=J*Pe,re+=te*(5*Ke),re+=$e*(5*Qe),de+=re>>>13,re&=8191,ve=de,ve+=ue*Qe,ve+=fe*Ve,ve+=ce*st,ve+=V*_t,ve+=H*Ue,de=ve>>>13,ve&=8191,ve+=ee*q,ve+=X*Re,ve+=J*Ge,ve+=te*Pe,ve+=$e*(5*Ke),de+=ve>>>13,ve&=8191,ie=de,ie+=ue*Ke,ie+=fe*Qe,ie+=ce*Ve,ie+=V*st,ie+=H*_t,de=ie>>>13,ie&=8191,ie+=ee*Ue,ie+=X*q,ie+=J*Re,ie+=te*Ge,ie+=$e*Pe,de+=ie>>>13,ie&=8191,de=(de<<2)+de|0,de=de+je|0,je=de&8191,de=de>>>13,Ee+=de,ue=je,fe=Ee,ce=Oe,V=ze,H=qe,ee=Le,X=Ne,J=re,te=ve,$e=ie,y+=16,f-=16;this.h[0]=ue,this.h[1]=fe,this.h[2]=ce,this.h[3]=V,this.h[4]=H,this.h[5]=ee,this.h[6]=X,this.h[7]=J,this.h[8]=te,this.h[9]=$e},ae.prototype.finish=function(m,y){var f=new Uint16Array(10),i,b,z,F;if(this.leftover){for(F=this.leftover,this.buffer[F++]=1;F<16;F++)this.buffer[F]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(i=this.h[1]>>>13,this.h[1]&=8191,F=2;F<10;F++)this.h[F]+=i,i=this.h[F]>>>13,this.h[F]&=8191;for(this.h[0]+=i*5,i=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=i,i=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=i,f[0]=this.h[0]+5,i=f[0]>>>13,f[0]&=8191,F=1;F<10;F++)f[F]=this.h[F]+i,i=f[F]>>>13,f[F]&=8191;for(f[9]-=8192,b=(i^1)-1,F=0;F<10;F++)f[F]&=b;for(b=~b,F=0;F<10;F++)this.h[F]=this.h[F]&b|f[F];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,z=this.h[0]+this.pad[0],this.h[0]=z&65535,F=1;F<8;F++)z=(this.h[F]+this.pad[F]|0)+(z>>>16)|0,this.h[F]=z&65535;m[y+0]=this.h[0]>>>0&255,m[y+1]=this.h[0]>>>8&255,m[y+2]=this.h[1]>>>0&255,m[y+3]=this.h[1]>>>8&255,m[y+4]=this.h[2]>>>0&255,m[y+5]=this.h[2]>>>8&255,m[y+6]=this.h[3]>>>0&255,m[y+7]=this.h[3]>>>8&255,m[y+8]=this.h[4]>>>0&255,m[y+9]=this.h[4]>>>8&255,m[y+10]=this.h[5]>>>0&255,m[y+11]=this.h[5]>>>8&255,m[y+12]=this.h[6]>>>0&255,m[y+13]=this.h[6]>>>8&255,m[y+14]=this.h[7]>>>0&255,m[y+15]=this.h[7]>>>8&255},ae.prototype.update=function(m,y,f){var i,b;if(this.leftover){for(b=16-this.leftover,b>f&&(b=f),i=0;i<b;i++)this.buffer[this.leftover+i]=m[y+i];if(f-=b,y+=b,this.leftover+=b,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(f>=16&&(b=f-f%16,this.blocks(m,y,b),y+=b,f-=b),f){for(i=0;i<f;i++)this.buffer[this.leftover+i]=m[y+i];this.leftover+=f}};function Ie(m,y,f,i,b,z){var F=new ae(z);return F.update(f,i,b),F.finish(m,y),0}function ne(m,y,f,i,b,z){var F=new Uint8Array(16);return Ie(F,0,f,i,b,z),R(m,y,F,0)}function we(m,y,f,i,b){var z;if(f<32)return-1;for(K(m,0,y,0,f,i,b),Ie(m,16,m,32,f-32,m),z=0;z<16;z++)m[z]=0;return 0}function Ze(m,y,f,i,b){var z,F=new Uint8Array(32);if(f<32||(se(F,0,32,i,b),ne(y,16,y,32,f-32,F)!==0))return-1;for(K(m,0,y,0,f,i,b),z=0;z<32;z++)m[z]=0;return 0}function We(m,y){var f;for(f=0;f<16;f++)m[f]=y[f]|0}function wt(m){var y,f,i=1;for(y=0;y<16;y++)f=m[y]+i+65535,i=Math.floor(f/65536),m[y]=f-i*65536;m[0]+=i-1+37*(i-1)}function De(m,y,f){for(var i,b=~(f-1),z=0;z<16;z++)i=b&(m[z]^y[z]),m[z]^=i,y[z]^=i}function Me(m,y){var f,i,b,z=l(),F=l();for(f=0;f<16;f++)F[f]=y[f];for(wt(F),wt(F),wt(F),i=0;i<2;i++){for(z[0]=F[0]-65517,f=1;f<15;f++)z[f]=F[f]-65535-(z[f-1]>>16&1),z[f-1]&=65535;z[15]=F[15]-32767-(z[14]>>16&1),b=z[15]>>16&1,z[14]&=65535,De(F,z,1-b)}for(f=0;f<16;f++)m[2*f]=F[f]&255,m[2*f+1]=F[f]>>8}function xt(m,y){var f=new Uint8Array(32),i=new Uint8Array(32);return Me(f,m),Me(i,y),M(f,0,i,0)}function ye(m){var y=new Uint8Array(32);return Me(y,m),y[0]&1}function et(m,y){var f;for(f=0;f<16;f++)m[f]=y[2*f]+(y[2*f+1]<<8);m[15]&=32767}function dt(m,y,f){for(var i=0;i<16;i++)m[i]=y[i]+f[i]}function Fe(m,y,f){for(var i=0;i<16;i++)m[i]=y[i]-f[i]}function Se(m,y,f){var i,b,z=0,F=0,Z=0,_e=0,pe=0,le=0,tt=0,de=0,je=0,Ee=0,Oe=0,ze=0,qe=0,Le=0,Ne=0,re=0,ve=0,ie=0,ue=0,fe=0,ce=0,V=0,H=0,ee=0,X=0,J=0,te=0,$e=0,Pe=0,Ge=0,Re=0,q=f[0],Ue=f[1],_t=f[2],st=f[3],Ve=f[4],Qe=f[5],Ke=f[6],mt=f[7],Je=f[8],gt=f[9],pt=f[10],ft=f[11],$t=f[12],At=f[13],Tt=f[14],Et=f[15];i=y[0],z+=i*q,F+=i*Ue,Z+=i*_t,_e+=i*st,pe+=i*Ve,le+=i*Qe,tt+=i*Ke,de+=i*mt,je+=i*Je,Ee+=i*gt,Oe+=i*pt,ze+=i*ft,qe+=i*$t,Le+=i*At,Ne+=i*Tt,re+=i*Et,i=y[1],F+=i*q,Z+=i*Ue,_e+=i*_t,pe+=i*st,le+=i*Ve,tt+=i*Qe,de+=i*Ke,je+=i*mt,Ee+=i*Je,Oe+=i*gt,ze+=i*pt,qe+=i*ft,Le+=i*$t,Ne+=i*At,re+=i*Tt,ve+=i*Et,i=y[2],Z+=i*q,_e+=i*Ue,pe+=i*_t,le+=i*st,tt+=i*Ve,de+=i*Qe,je+=i*Ke,Ee+=i*mt,Oe+=i*Je,ze+=i*gt,qe+=i*pt,Le+=i*ft,Ne+=i*$t,re+=i*At,ve+=i*Tt,ie+=i*Et,i=y[3],_e+=i*q,pe+=i*Ue,le+=i*_t,tt+=i*st,de+=i*Ve,je+=i*Qe,Ee+=i*Ke,Oe+=i*mt,ze+=i*Je,qe+=i*gt,Le+=i*pt,Ne+=i*ft,re+=i*$t,ve+=i*At,ie+=i*Tt,ue+=i*Et,i=y[4],pe+=i*q,le+=i*Ue,tt+=i*_t,de+=i*st,je+=i*Ve,Ee+=i*Qe,Oe+=i*Ke,ze+=i*mt,qe+=i*Je,Le+=i*gt,Ne+=i*pt,re+=i*ft,ve+=i*$t,ie+=i*At,ue+=i*Tt,fe+=i*Et,i=y[5],le+=i*q,tt+=i*Ue,de+=i*_t,je+=i*st,Ee+=i*Ve,Oe+=i*Qe,ze+=i*Ke,qe+=i*mt,Le+=i*Je,Ne+=i*gt,re+=i*pt,ve+=i*ft,ie+=i*$t,ue+=i*At,fe+=i*Tt,ce+=i*Et,i=y[6],tt+=i*q,de+=i*Ue,je+=i*_t,Ee+=i*st,Oe+=i*Ve,ze+=i*Qe,qe+=i*Ke,Le+=i*mt,Ne+=i*Je,re+=i*gt,ve+=i*pt,ie+=i*ft,ue+=i*$t,fe+=i*At,ce+=i*Tt,V+=i*Et,i=y[7],de+=i*q,je+=i*Ue,Ee+=i*_t,Oe+=i*st,ze+=i*Ve,qe+=i*Qe,Le+=i*Ke,Ne+=i*mt,re+=i*Je,ve+=i*gt,ie+=i*pt,ue+=i*ft,fe+=i*$t,ce+=i*At,V+=i*Tt,H+=i*Et,i=y[8],je+=i*q,Ee+=i*Ue,Oe+=i*_t,ze+=i*st,qe+=i*Ve,Le+=i*Qe,Ne+=i*Ke,re+=i*mt,ve+=i*Je,ie+=i*gt,ue+=i*pt,fe+=i*ft,ce+=i*$t,V+=i*At,H+=i*Tt,ee+=i*Et,i=y[9],Ee+=i*q,Oe+=i*Ue,ze+=i*_t,qe+=i*st,Le+=i*Ve,Ne+=i*Qe,re+=i*Ke,ve+=i*mt,ie+=i*Je,ue+=i*gt,fe+=i*pt,ce+=i*ft,V+=i*$t,H+=i*At,ee+=i*Tt,X+=i*Et,i=y[10],Oe+=i*q,ze+=i*Ue,qe+=i*_t,Le+=i*st,Ne+=i*Ve,re+=i*Qe,ve+=i*Ke,ie+=i*mt,ue+=i*Je,fe+=i*gt,ce+=i*pt,V+=i*ft,H+=i*$t,ee+=i*At,X+=i*Tt,J+=i*Et,i=y[11],ze+=i*q,qe+=i*Ue,Le+=i*_t,Ne+=i*st,re+=i*Ve,ve+=i*Qe,ie+=i*Ke,ue+=i*mt,fe+=i*Je,ce+=i*gt,V+=i*pt,H+=i*ft,ee+=i*$t,X+=i*At,J+=i*Tt,te+=i*Et,i=y[12],qe+=i*q,Le+=i*Ue,Ne+=i*_t,re+=i*st,ve+=i*Ve,ie+=i*Qe,ue+=i*Ke,fe+=i*mt,ce+=i*Je,V+=i*gt,H+=i*pt,ee+=i*ft,X+=i*$t,J+=i*At,te+=i*Tt,$e+=i*Et,i=y[13],Le+=i*q,Ne+=i*Ue,re+=i*_t,ve+=i*st,ie+=i*Ve,ue+=i*Qe,fe+=i*Ke,ce+=i*mt,V+=i*Je,H+=i*gt,ee+=i*pt,X+=i*ft,J+=i*$t,te+=i*At,$e+=i*Tt,Pe+=i*Et,i=y[14],Ne+=i*q,re+=i*Ue,ve+=i*_t,ie+=i*st,ue+=i*Ve,fe+=i*Qe,ce+=i*Ke,V+=i*mt,H+=i*Je,ee+=i*gt,X+=i*pt,J+=i*ft,te+=i*$t,$e+=i*At,Pe+=i*Tt,Ge+=i*Et,i=y[15],re+=i*q,ve+=i*Ue,ie+=i*_t,ue+=i*st,fe+=i*Ve,ce+=i*Qe,V+=i*Ke,H+=i*mt,ee+=i*Je,X+=i*gt,J+=i*pt,te+=i*ft,$e+=i*$t,Pe+=i*At,Ge+=i*Tt,Re+=i*Et,z+=38*ve,F+=38*ie,Z+=38*ue,_e+=38*fe,pe+=38*ce,le+=38*V,tt+=38*H,de+=38*ee,je+=38*X,Ee+=38*J,Oe+=38*te,ze+=38*$e,qe+=38*Pe,Le+=38*Ge,Ne+=38*Re,b=1,i=z+b+65535,b=Math.floor(i/65536),z=i-b*65536,i=F+b+65535,b=Math.floor(i/65536),F=i-b*65536,i=Z+b+65535,b=Math.floor(i/65536),Z=i-b*65536,i=_e+b+65535,b=Math.floor(i/65536),_e=i-b*65536,i=pe+b+65535,b=Math.floor(i/65536),pe=i-b*65536,i=le+b+65535,b=Math.floor(i/65536),le=i-b*65536,i=tt+b+65535,b=Math.floor(i/65536),tt=i-b*65536,i=de+b+65535,b=Math.floor(i/65536),de=i-b*65536,i=je+b+65535,b=Math.floor(i/65536),je=i-b*65536,i=Ee+b+65535,b=Math.floor(i/65536),Ee=i-b*65536,i=Oe+b+65535,b=Math.floor(i/65536),Oe=i-b*65536,i=ze+b+65535,b=Math.floor(i/65536),ze=i-b*65536,i=qe+b+65535,b=Math.floor(i/65536),qe=i-b*65536,i=Le+b+65535,b=Math.floor(i/65536),Le=i-b*65536,i=Ne+b+65535,b=Math.floor(i/65536),Ne=i-b*65536,i=re+b+65535,b=Math.floor(i/65536),re=i-b*65536,z+=b-1+37*(b-1),b=1,i=z+b+65535,b=Math.floor(i/65536),z=i-b*65536,i=F+b+65535,b=Math.floor(i/65536),F=i-b*65536,i=Z+b+65535,b=Math.floor(i/65536),Z=i-b*65536,i=_e+b+65535,b=Math.floor(i/65536),_e=i-b*65536,i=pe+b+65535,b=Math.floor(i/65536),pe=i-b*65536,i=le+b+65535,b=Math.floor(i/65536),le=i-b*65536,i=tt+b+65535,b=Math.floor(i/65536),tt=i-b*65536,i=de+b+65535,b=Math.floor(i/65536),de=i-b*65536,i=je+b+65535,b=Math.floor(i/65536),je=i-b*65536,i=Ee+b+65535,b=Math.floor(i/65536),Ee=i-b*65536,i=Oe+b+65535,b=Math.floor(i/65536),Oe=i-b*65536,i=ze+b+65535,b=Math.floor(i/65536),ze=i-b*65536,i=qe+b+65535,b=Math.floor(i/65536),qe=i-b*65536,i=Le+b+65535,b=Math.floor(i/65536),Le=i-b*65536,i=Ne+b+65535,b=Math.floor(i/65536),Ne=i-b*65536,i=re+b+65535,b=Math.floor(i/65536),re=i-b*65536,z+=b-1+37*(b-1),m[0]=z,m[1]=F,m[2]=Z,m[3]=_e,m[4]=pe,m[5]=le,m[6]=tt,m[7]=de,m[8]=je,m[9]=Ee,m[10]=Oe,m[11]=ze,m[12]=qe,m[13]=Le,m[14]=Ne,m[15]=re}function St(m,y){Se(m,y,y)}function n_(m,y){var f=l(),i;for(i=0;i<16;i++)f[i]=y[i];for(i=253;i>=0;i--)St(f,f),i!==2&&i!==4&&Se(f,f,y);for(i=0;i<16;i++)m[i]=f[i]}function ge(m,y){var f=l(),i;for(i=0;i<16;i++)f[i]=y[i];for(i=250;i>=0;i--)St(f,f),i!==1&&Se(f,f,y);for(i=0;i<16;i++)m[i]=f[i]}function Bt(m,y,f){var i=new Uint8Array(32),b=new Float64Array(80),z,F,Z=l(),_e=l(),pe=l(),le=l(),tt=l(),de=l();for(F=0;F<31;F++)i[F]=y[F];for(i[31]=y[31]&127|64,i[0]&=248,et(b,f),F=0;F<16;F++)_e[F]=b[F],le[F]=Z[F]=pe[F]=0;for(Z[0]=le[0]=1,F=254;F>=0;--F)z=i[F>>>3]>>>(F&7)&1,De(Z,_e,z),De(pe,le,z),dt(tt,Z,pe),Fe(Z,Z,pe),dt(pe,_e,le),Fe(_e,_e,le),St(le,tt),St(de,Z),Se(Z,pe,Z),Se(pe,_e,tt),dt(tt,Z,pe),Fe(Z,Z,pe),St(_e,Z),Fe(pe,le,de),Se(Z,pe,v),dt(Z,Z,le),Se(pe,pe,Z),Se(Z,le,de),Se(le,_e,b),St(_e,tt),De(Z,_e,z),De(pe,le,z);for(F=0;F<16;F++)b[F+16]=Z[F],b[F+32]=pe[F],b[F+48]=_e[F],b[F+64]=le[F];var je=b.subarray(32),Ee=b.subarray(16);return n_(je,je),Se(Ee,Ee,je),Me(m,Ee),0}function Ot(m,y){return Bt(m,y,g)}function Qt(m,y){return h(y,32),Ot(m,y)}function w_(m,y,f){var i=new Uint8Array(32);return Bt(i,f,y),G(m,c,i,W)}var $s=we,ks=Ze;function pn(m,y,f,i,b,z){var F=new Uint8Array(32);return w_(F,b,z),$s(m,y,f,i,F)}function fn(m,y,f,i,b,z){var F=new Uint8Array(32);return w_(F,b,z),ks(m,y,f,i,F)}var xs=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Is(m,y,f,i){for(var b=new Int32Array(16),z=new Int32Array(16),F,Z,_e,pe,le,tt,de,je,Ee,Oe,ze,qe,Le,Ne,re,ve,ie,ue,fe,ce,V,H,ee,X,J,te,$e=m[0],Pe=m[1],Ge=m[2],Re=m[3],q=m[4],Ue=m[5],_t=m[6],st=m[7],Ve=y[0],Qe=y[1],Ke=y[2],mt=y[3],Je=y[4],gt=y[5],pt=y[6],ft=y[7],$t=0;i>=128;){for(fe=0;fe<16;fe++)ce=8*fe+$t,b[fe]=f[ce+0]<<24|f[ce+1]<<16|f[ce+2]<<8|f[ce+3],z[fe]=f[ce+4]<<24|f[ce+5]<<16|f[ce+6]<<8|f[ce+7];for(fe=0;fe<80;fe++)if(F=$e,Z=Pe,_e=Ge,pe=Re,le=q,tt=Ue,de=_t,je=st,Ee=Ve,Oe=Qe,ze=Ke,qe=mt,Le=Je,Ne=gt,re=pt,ve=ft,V=st,H=ft,ee=H&65535,X=H>>>16,J=V&65535,te=V>>>16,V=(q>>>14|Je<<18)^(q>>>18|Je<<14)^(Je>>>9|q<<23),H=(Je>>>14|q<<18)^(Je>>>18|q<<14)^(q>>>9|Je<<23),ee+=H&65535,X+=H>>>16,J+=V&65535,te+=V>>>16,V=q&Ue^~q&_t,H=Je&gt^~Je&pt,ee+=H&65535,X+=H>>>16,J+=V&65535,te+=V>>>16,V=xs[fe*2],H=xs[fe*2+1],ee+=H&65535,X+=H>>>16,J+=V&65535,te+=V>>>16,V=b[fe%16],H=z[fe%16],ee+=H&65535,X+=H>>>16,J+=V&65535,te+=V>>>16,X+=ee>>>16,J+=X>>>16,te+=J>>>16,ie=J&65535|te<<16,ue=ee&65535|X<<16,V=ie,H=ue,ee=H&65535,X=H>>>16,J=V&65535,te=V>>>16,V=($e>>>28|Ve<<4)^(Ve>>>2|$e<<30)^(Ve>>>7|$e<<25),H=(Ve>>>28|$e<<4)^($e>>>2|Ve<<30)^($e>>>7|Ve<<25),ee+=H&65535,X+=H>>>16,J+=V&65535,te+=V>>>16,V=$e&Pe^$e&Ge^Pe&Ge,H=Ve&Qe^Ve&Ke^Qe&Ke,ee+=H&65535,X+=H>>>16,J+=V&65535,te+=V>>>16,X+=ee>>>16,J+=X>>>16,te+=J>>>16,je=J&65535|te<<16,ve=ee&65535|X<<16,V=pe,H=qe,ee=H&65535,X=H>>>16,J=V&65535,te=V>>>16,V=ie,H=ue,ee+=H&65535,X+=H>>>16,J+=V&65535,te+=V>>>16,X+=ee>>>16,J+=X>>>16,te+=J>>>16,pe=J&65535|te<<16,qe=ee&65535|X<<16,Pe=F,Ge=Z,Re=_e,q=pe,Ue=le,_t=tt,st=de,$e=je,Qe=Ee,Ke=Oe,mt=ze,Je=qe,gt=Le,pt=Ne,ft=re,Ve=ve,fe%16===15)for(ce=0;ce<16;ce++)V=b[ce],H=z[ce],ee=H&65535,X=H>>>16,J=V&65535,te=V>>>16,V=b[(ce+9)%16],H=z[(ce+9)%16],ee+=H&65535,X+=H>>>16,J+=V&65535,te+=V>>>16,ie=b[(ce+1)%16],ue=z[(ce+1)%16],V=(ie>>>1|ue<<31)^(ie>>>8|ue<<24)^ie>>>7,H=(ue>>>1|ie<<31)^(ue>>>8|ie<<24)^(ue>>>7|ie<<25),ee+=H&65535,X+=H>>>16,J+=V&65535,te+=V>>>16,ie=b[(ce+14)%16],ue=z[(ce+14)%16],V=(ie>>>19|ue<<13)^(ue>>>29|ie<<3)^ie>>>6,H=(ue>>>19|ie<<13)^(ie>>>29|ue<<3)^(ue>>>6|ie<<26),ee+=H&65535,X+=H>>>16,J+=V&65535,te+=V>>>16,X+=ee>>>16,J+=X>>>16,te+=J>>>16,b[ce]=J&65535|te<<16,z[ce]=ee&65535|X<<16;V=$e,H=Ve,ee=H&65535,X=H>>>16,J=V&65535,te=V>>>16,V=m[0],H=y[0],ee+=H&65535,X+=H>>>16,J+=V&65535,te+=V>>>16,X+=ee>>>16,J+=X>>>16,te+=J>>>16,m[0]=$e=J&65535|te<<16,y[0]=Ve=ee&65535|X<<16,V=Pe,H=Qe,ee=H&65535,X=H>>>16,J=V&65535,te=V>>>16,V=m[1],H=y[1],ee+=H&65535,X+=H>>>16,J+=V&65535,te+=V>>>16,X+=ee>>>16,J+=X>>>16,te+=J>>>16,m[1]=Pe=J&65535|te<<16,y[1]=Qe=ee&65535|X<<16,V=Ge,H=Ke,ee=H&65535,X=H>>>16,J=V&65535,te=V>>>16,V=m[2],H=y[2],ee+=H&65535,X+=H>>>16,J+=V&65535,te+=V>>>16,X+=ee>>>16,J+=X>>>16,te+=J>>>16,m[2]=Ge=J&65535|te<<16,y[2]=Ke=ee&65535|X<<16,V=Re,H=mt,ee=H&65535,X=H>>>16,J=V&65535,te=V>>>16,V=m[3],H=y[3],ee+=H&65535,X+=H>>>16,J+=V&65535,te+=V>>>16,X+=ee>>>16,J+=X>>>16,te+=J>>>16,m[3]=Re=J&65535|te<<16,y[3]=mt=ee&65535|X<<16,V=q,H=Je,ee=H&65535,X=H>>>16,J=V&65535,te=V>>>16,V=m[4],H=y[4],ee+=H&65535,X+=H>>>16,J+=V&65535,te+=V>>>16,X+=ee>>>16,J+=X>>>16,te+=J>>>16,m[4]=q=J&65535|te<<16,y[4]=Je=ee&65535|X<<16,V=Ue,H=gt,ee=H&65535,X=H>>>16,J=V&65535,te=V>>>16,V=m[5],H=y[5],ee+=H&65535,X+=H>>>16,J+=V&65535,te+=V>>>16,X+=ee>>>16,J+=X>>>16,te+=J>>>16,m[5]=Ue=J&65535|te<<16,y[5]=gt=ee&65535|X<<16,V=_t,H=pt,ee=H&65535,X=H>>>16,J=V&65535,te=V>>>16,V=m[6],H=y[6],ee+=H&65535,X+=H>>>16,J+=V&65535,te+=V>>>16,X+=ee>>>16,J+=X>>>16,te+=J>>>16,m[6]=_t=J&65535|te<<16,y[6]=pt=ee&65535|X<<16,V=st,H=ft,ee=H&65535,X=H>>>16,J=V&65535,te=V>>>16,V=m[7],H=y[7],ee+=H&65535,X+=H>>>16,J+=V&65535,te+=V>>>16,X+=ee>>>16,J+=X>>>16,te+=J>>>16,m[7]=st=J&65535|te<<16,y[7]=ft=ee&65535|X<<16,$t+=128,i-=128}return i}function Wt(m,y,f){var i=new Int32Array(8),b=new Int32Array(8),z=new Uint8Array(256),F,Z=f;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,b[0]=4089235720,b[1]=2227873595,b[2]=4271175723,b[3]=1595750129,b[4]=2917565137,b[5]=725511199,b[6]=4215389547,b[7]=327033209,Is(i,b,y,f),f%=128,F=0;F<f;F++)z[F]=y[Z-f+F];for(z[f]=128,f=256-128*(f<112?1:0),z[f-9]=0,T(z,f-8,Z/536870912|0,Z<<3),Is(i,b,z,f),F=0;F<8;F++)T(m,8*F,i[F],b[F]);return 0}function S_(m,y){var f=l(),i=l(),b=l(),z=l(),F=l(),Z=l(),_e=l(),pe=l(),le=l();Fe(f,m[1],m[0]),Fe(le,y[1],y[0]),Se(f,f,le),dt(i,m[0],m[1]),dt(le,y[0],y[1]),Se(i,i,le),Se(b,m[3],y[3]),Se(b,b,I),Se(z,m[2],y[2]),dt(z,z,z),Fe(F,i,f),Fe(Z,z,b),dt(_e,z,b),dt(pe,i,f),Se(m[0],F,Z),Se(m[1],pe,_e),Se(m[2],_e,Z),Se(m[3],F,pe)}function ut(m,y,f){var i;for(i=0;i<4;i++)De(m[i],y[i],f)}function V_(m,y){var f=l(),i=l(),b=l();n_(b,y[2]),Se(f,y[0],b),Se(i,y[1],b),Me(m,i),m[31]^=ye(f)<<7}function H_(m,y,f){var i,b;for(We(m[0],p),We(m[1],w),We(m[2],w),We(m[3],p),b=255;b>=0;--b)i=f[b/8|0]>>(b&7)&1,ut(m,y,i),S_(y,m),S_(m,m),ut(m,y,i)}function A_(m,y){var f=[l(),l(),l(),l()];We(f[0],E),We(f[1],$),We(f[2],w),Se(f[3],E,$),H_(m,f,y)}function W_(m,y,f){var i=new Uint8Array(64),b=[l(),l(),l(),l()],z;for(f||h(y,32),Wt(i,y,32),i[0]&=248,i[31]&=127,i[31]|=64,A_(b,i),V_(m,b),z=0;z<32;z++)y[z+32]=m[z];return 0}var E_=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function U_(m,y){var f,i,b,z;for(i=63;i>=32;--i){for(f=0,b=i-32,z=i-12;b<z;++b)y[b]+=f-16*y[i]*E_[b-(i-32)],f=Math.floor((y[b]+128)/256),y[b]-=f*256;y[b]+=f,y[i]=0}for(f=0,b=0;b<32;b++)y[b]+=f-(y[31]>>4)*E_[b],f=y[b]>>8,y[b]&=255;for(b=0;b<32;b++)y[b]-=f*E_[b];for(i=0;i<32;i++)y[i+1]+=y[i]>>8,m[i]=y[i]&255}function X_(m){var y=new Float64Array(64),f;for(f=0;f<64;f++)y[f]=m[f];for(f=0;f<64;f++)m[f]=0;U_(m,y)}function T_(m,y,f,i){var b=new Uint8Array(64),z=new Uint8Array(64),F=new Uint8Array(64),Z,_e,pe=new Float64Array(64),le=[l(),l(),l(),l()];Wt(b,i,32),b[0]&=248,b[31]&=127,b[31]|=64;var tt=f+64;for(Z=0;Z<f;Z++)m[64+Z]=y[Z];for(Z=0;Z<32;Z++)m[32+Z]=b[32+Z];for(Wt(F,m.subarray(32),f+32),X_(F),A_(le,F),V_(m,le),Z=32;Z<64;Z++)m[Z]=i[Z];for(Wt(z,m,f+64),X_(z),Z=0;Z<64;Z++)pe[Z]=0;for(Z=0;Z<32;Z++)pe[Z]=F[Z];for(Z=0;Z<32;Z++)for(_e=0;_e<32;_e++)pe[Z+_e]+=z[Z]*b[_e];return U_(m.subarray(32),pe),tt}function Y_(m,y){var f=l(),i=l(),b=l(),z=l(),F=l(),Z=l(),_e=l();return We(m[2],w),et(m[1],y),St(b,m[1]),Se(z,b,A),Fe(b,b,m[2]),dt(z,m[2],z),St(F,z),St(Z,F),Se(_e,Z,F),Se(f,_e,b),Se(f,f,z),ge(f,f),Se(f,f,b),Se(f,f,z),Se(f,f,z),Se(m[0],f,z),St(i,m[0]),Se(i,i,z),xt(i,b)&&Se(m[0],m[0],k),St(i,m[0]),Se(i,i,z),xt(i,b)?-1:(ye(m[0])===y[31]>>7&&Fe(m[0],p,m[0]),Se(m[3],m[0],m[1]),0)}function Z_(m,y,f,i){var b,z=new Uint8Array(32),F=new Uint8Array(64),Z=[l(),l(),l(),l()],_e=[l(),l(),l(),l()];if(f<64||Y_(_e,i))return-1;for(b=0;b<f;b++)m[b]=y[b];for(b=0;b<32;b++)m[b+32]=i[b];if(Wt(F,m,f),X_(F),H_(Z,_e,F),A_(_e,y.subarray(32)),S_(Z,_e),V_(z,Z),f-=64,M(y,0,z,0)){for(b=0;b<f;b++)m[b]=0;return-1}for(b=0;b<f;b++)m[b]=y[b+64];return f}var J_=32,j_=24,v_=32,Kt=16,Dt=32,q_=32,Ut=32,b_=32,N_=32,Q_=j_,Cs=v_,Ss=Kt,Zt=64,o_=32,d_=64,u_=32,K_=64;r.lowlevel={crypto_core_hsalsa20:G,crypto_stream_xor:K,crypto_stream:se,crypto_stream_salsa20_xor:Q,crypto_stream_salsa20:B,crypto_onetimeauth:Ie,crypto_onetimeauth_verify:ne,crypto_verify_16:R,crypto_verify_32:M,crypto_secretbox:we,crypto_secretbox_open:Ze,crypto_scalarmult:Bt,crypto_scalarmult_base:Ot,crypto_box_beforenm:w_,crypto_box_afternm:$s,crypto_box:pn,crypto_box_open:fn,crypto_box_keypair:Qt,crypto_hash:Wt,crypto_sign:T_,crypto_sign_keypair:W_,crypto_sign_open:Z_,crypto_secretbox_KEYBYTES:J_,crypto_secretbox_NONCEBYTES:j_,crypto_secretbox_ZEROBYTES:v_,crypto_secretbox_BOXZEROBYTES:Kt,crypto_scalarmult_BYTES:Dt,crypto_scalarmult_SCALARBYTES:q_,crypto_box_PUBLICKEYBYTES:Ut,crypto_box_SECRETKEYBYTES:b_,crypto_box_BEFORENMBYTES:N_,crypto_box_NONCEBYTES:Q_,crypto_box_ZEROBYTES:Cs,crypto_box_BOXZEROBYTES:Ss,crypto_sign_BYTES:Zt,crypto_sign_PUBLICKEYBYTES:o_,crypto_sign_SECRETKEYBYTES:d_,crypto_sign_SEEDBYTES:u_,crypto_hash_BYTES:K_,gf:l,D:A,L:E_,pack25519:Me,unpack25519:et,M:Se,A:dt,S:St,Z:Fe,pow2523:ge,add:S_,set25519:We,modL:U_,scalarmult:H_,scalarbase:A_};function es(m,y){if(m.length!==J_)throw new Error("bad key size");if(y.length!==j_)throw new Error("bad nonce size")}function yn(m,y){if(m.length!==Ut)throw new Error("bad public key size");if(y.length!==b_)throw new Error("bad secret key size")}function Ft(){for(var m=0;m<arguments.length;m++)if(!(arguments[m]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function As(m){for(var y=0;y<m.length;y++)m[y]=0}r.randomBytes=function(m){var y=new Uint8Array(m);return h(y,m),y},r.secretbox=function(m,y,f){Ft(m,y,f),es(f,y);for(var i=new Uint8Array(v_+m.length),b=new Uint8Array(i.length),z=0;z<m.length;z++)i[z+v_]=m[z];return we(b,i,i.length,y,f),b.subarray(Kt)},r.secretbox.open=function(m,y,f){Ft(m,y,f),es(f,y);for(var i=new Uint8Array(Kt+m.length),b=new Uint8Array(i.length),z=0;z<m.length;z++)i[z+Kt]=m[z];return i.length<32||Ze(b,i,i.length,y,f)!==0?null:b.subarray(v_)},r.secretbox.keyLength=J_,r.secretbox.nonceLength=j_,r.secretbox.overheadLength=Kt,r.scalarMult=function(m,y){if(Ft(m,y),m.length!==q_)throw new Error("bad n size");if(y.length!==Dt)throw new Error("bad p size");var f=new Uint8Array(Dt);return Bt(f,m,y),f},r.scalarMult.base=function(m){if(Ft(m),m.length!==q_)throw new Error("bad n size");var y=new Uint8Array(Dt);return Ot(y,m),y},r.scalarMult.scalarLength=q_,r.scalarMult.groupElementLength=Dt,r.box=function(m,y,f,i){var b=r.box.before(f,i);return r.secretbox(m,y,b)},r.box.before=function(m,y){Ft(m,y),yn(m,y);var f=new Uint8Array(N_);return w_(f,m,y),f},r.box.after=r.secretbox,r.box.open=function(m,y,f,i){var b=r.box.before(f,i);return r.secretbox.open(m,y,b)},r.box.open.after=r.secretbox.open,r.box.keyPair=function(){var m=new Uint8Array(Ut),y=new Uint8Array(b_);return Qt(m,y),{publicKey:m,secretKey:y}},r.box.keyPair.fromSecretKey=function(m){if(Ft(m),m.length!==b_)throw new Error("bad secret key size");var y=new Uint8Array(Ut);return Ot(y,m),{publicKey:y,secretKey:new Uint8Array(m)}},r.box.publicKeyLength=Ut,r.box.secretKeyLength=b_,r.box.sharedKeyLength=N_,r.box.nonceLength=Q_,r.box.overheadLength=r.secretbox.overheadLength,r.sign=function(m,y){if(Ft(m,y),y.length!==d_)throw new Error("bad secret key size");var f=new Uint8Array(Zt+m.length);return T_(f,m,m.length,y),f},r.sign.open=function(m,y){if(Ft(m,y),y.length!==o_)throw new Error("bad public key size");var f=new Uint8Array(m.length),i=Z_(f,m,m.length,y);if(i<0)return null;for(var b=new Uint8Array(i),z=0;z<b.length;z++)b[z]=f[z];return b},r.sign.detached=function(m,y){for(var f=r.sign(m,y),i=new Uint8Array(Zt),b=0;b<i.length;b++)i[b]=f[b];return i},r.sign.detached.verify=function(m,y,f){if(Ft(m,y,f),y.length!==Zt)throw new Error("bad signature size");if(f.length!==o_)throw new Error("bad public key size");var i=new Uint8Array(Zt+m.length),b=new Uint8Array(Zt+m.length),z;for(z=0;z<Zt;z++)i[z]=y[z];for(z=0;z<m.length;z++)i[z+Zt]=m[z];return Z_(b,i,i.length,f)>=0},r.sign.keyPair=function(){var m=new Uint8Array(o_),y=new Uint8Array(d_);return W_(m,y),{publicKey:m,secretKey:y}},r.sign.keyPair.fromSecretKey=function(m){if(Ft(m),m.length!==d_)throw new Error("bad secret key size");for(var y=new Uint8Array(o_),f=0;f<y.length;f++)y[f]=m[32+f];return{publicKey:y,secretKey:new Uint8Array(m)}},r.sign.keyPair.fromSeed=function(m){if(Ft(m),m.length!==u_)throw new Error("bad seed size");for(var y=new Uint8Array(o_),f=new Uint8Array(d_),i=0;i<32;i++)f[i]=m[i];return W_(y,f,!0),{publicKey:y,secretKey:f}},r.sign.publicKeyLength=o_,r.sign.secretKeyLength=d_,r.sign.seedLength=u_,r.sign.signatureLength=Zt,r.hash=function(m){Ft(m);var y=new Uint8Array(K_);return Wt(y,m,m.length),y},r.hash.hashLength=K_,r.verify=function(m,y){return Ft(m,y),m.length===0||y.length===0||m.length!==y.length?!1:j(m,0,y,0,m.length)===0},r.setPRNG=function(m){h=m},(function(){var m=typeof self<"u"?self.crypto||self.msCrypto:null;if(m&&m.getRandomValues){var y=65536;r.setPRNG(function(f,i){var b,z=new Uint8Array(i);for(b=0;b<i;b+=y)m.getRandomValues(z.subarray(b,b+Math.min(i-b,y)));for(b=0;b<i;b++)f[b]=z[b];As(z)})}else m=s(4),m&&m.randomBytes&&r.setPRNG(function(f,i){var b,z=m.randomBytes(i);for(b=0;b<i;b++)f[b]=z[b];As(z)})})()})(_.exports?_.exports:self.nacl=self.nacl||{})}),(function(_,n,s){_.exports=s(5).default}),(function(_,n){}),(function(_,n,s){s.r(n),s.d(n,"default",function(){return Ts});class r{constructor(a,d){this.lastId=0,this.prefix=a,this.name=d}create(a){this.lastId++;var d=this.lastId,x=this.prefix+d,N=this.name+"["+d+"]",U=!1,oe=function(){U||(a.apply(null,arguments),U=!0)};return this[d]=oe,{number:d,id:x,name:N,callback:oe}}remove(a){delete this[a.number]}}var l=new r("_pusher_script_","Pusher.ScriptReceivers"),h={VERSION:"8.4.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},c=h;class g{constructor(a){this.options=a,this.receivers=a.receivers||l,this.loading={}}load(a,d,x){var N=this;if(N.loading[a]&&N.loading[a].length>0)N.loading[a].push(x);else{N.loading[a]=[x];var U=He.createScriptRequest(N.getPath(a,d)),oe=N.receivers.create(function(be){if(N.receivers.remove(oe),N.loading[a]){var Be=N.loading[a];delete N.loading[a];for(var ot=function(It){It||U.cleanup()},lt=0;lt<Be.length;lt++)Be[lt](be,ot)}});U.send(oe)}}getRoot(a){var d,x=He.getDocument().location.protocol;return a&&a.useTLS||x==="https:"?d=this.options.cdn_https:d=this.options.cdn_http,d.replace(/\/*$/,"")+"/"+this.options.version}getPath(a,d){return this.getRoot(d)+"/"+a+this.options.suffix+".js"}}var p=new r("_pusher_dependencies","Pusher.DependenciesReceivers"),w=new g({cdn_http:c.cdn_http,cdn_https:c.cdn_https,version:c.VERSION,suffix:c.dependency_suffix,receivers:p});const v={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}};var I={buildLogSuffix:function(u){const a="See:",d=v.urls[u];if(!d)return"";let x;return d.fullUrl?x=d.fullUrl:d.path&&(x=v.baseUrl+d.path),x?`${a} ${x}`:""}},E;(function(u){u.UserAuthentication="user-authentication",u.ChannelAuthorization="channel-authorization"})(E||(E={}));class $ extends Error{constructor(a){super(a),Object.setPrototypeOf(this,new.target.prototype)}}class k extends Error{constructor(a){super(a),Object.setPrototypeOf(this,new.target.prototype)}}class T extends Error{constructor(a){super(a),Object.setPrototypeOf(this,new.target.prototype)}}class j extends Error{constructor(a){super(a),Object.setPrototypeOf(this,new.target.prototype)}}class R extends Error{constructor(a){super(a),Object.setPrototypeOf(this,new.target.prototype)}}class M extends Error{constructor(a){super(a),Object.setPrototypeOf(this,new.target.prototype)}}class P extends Error{constructor(a){super(a),Object.setPrototypeOf(this,new.target.prototype)}}class D extends Error{constructor(a){super(a),Object.setPrototypeOf(this,new.target.prototype)}}class O extends Error{constructor(a,d){super(d),this.status=a,Object.setPrototypeOf(this,new.target.prototype)}}var W=function(u,a,d,x,N){const U=He.createXHR();U.open("POST",d.endpoint,!0),U.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var oe in d.headers)U.setRequestHeader(oe,d.headers[oe]);if(d.headersProvider!=null){let be=d.headersProvider();for(var oe in be)U.setRequestHeader(oe,be[oe])}return U.onreadystatechange=function(){if(U.readyState===4)if(U.status===200){let be,Be=!1;try{be=JSON.parse(U.responseText),Be=!0}catch{N(new O(200,`JSON returned from ${x.toString()} endpoint was invalid, yet status code was 200. Data was: ${U.responseText}`),null)}Be&&N(null,be)}else{let be="";switch(x){case E.UserAuthentication:be=I.buildLogSuffix("authenticationEndpoint");break;case E.ChannelAuthorization:be=`Clients must be authorized to join private or presence channels. ${I.buildLogSuffix("authorizationEndpoint")}`;break}N(new O(U.status,`Unable to retrieve auth string from ${x.toString()} endpoint - received status: ${U.status} from ${d.endpoint}. ${be}`),null)}},U.send(a),U};function Q(u){return ne(ae(u))}var B=String.fromCharCode,se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",K=function(u){var a=u.charCodeAt(0);return a<128?u:a<2048?B(192|a>>>6)+B(128|a&63):B(224|a>>>12&15)+B(128|a>>>6&63)+B(128|a&63)},ae=function(u){return u.replace(/[^\x00-\x7F]/g,K)},Ie=function(u){var a=[0,2,1][u.length%3],d=u.charCodeAt(0)<<16|(u.length>1?u.charCodeAt(1):0)<<8|(u.length>2?u.charCodeAt(2):0),x=[se.charAt(d>>>18),se.charAt(d>>>12&63),a>=2?"=":se.charAt(d>>>6&63),a>=1?"=":se.charAt(d&63)];return x.join("")},ne=window.btoa||function(u){return u.replace(/[\s\S]{1,3}/g,Ie)};class we{constructor(a,d,x,N){this.clear=d,this.timer=a(()=>{this.timer&&(this.timer=N(this.timer))},x)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}var Ze=we;function We(u){window.clearTimeout(u)}function wt(u){window.clearInterval(u)}class De extends Ze{constructor(a,d){super(setTimeout,We,a,function(x){return d(),null})}}class Me extends Ze{constructor(a,d){super(setInterval,wt,a,function(x){return d(),x})}}var xt={now(){return Date.now?Date.now():new Date().valueOf()},defer(u){return new De(0,u)},method(u,...a){var d=Array.prototype.slice.call(arguments,1);return function(x){return x[u].apply(x,d.concat(arguments))}}},ye=xt;function et(u,...a){for(var d=0;d<a.length;d++){var x=a[d];for(var N in x)x[N]&&x[N].constructor&&x[N].constructor===Object?u[N]=et(u[N]||{},x[N]):u[N]=x[N]}return u}function dt(){for(var u=["Pusher"],a=0;a<arguments.length;a++)typeof arguments[a]=="string"?u.push(arguments[a]):u.push(Wt(arguments[a]));return u.join(" : ")}function Fe(u,a){var d=Array.prototype.indexOf;if(u===null)return-1;if(d&&u.indexOf===d)return u.indexOf(a);for(var x=0,N=u.length;x<N;x++)if(u[x]===a)return x;return-1}function Se(u,a){for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&a(u[d],d,u)}function St(u){var a=[];return Se(u,function(d,x){a.push(x)}),a}function n_(u){var a=[];return Se(u,function(d){a.push(d)}),a}function ge(u,a,d){for(var x=0;x<u.length;x++)a.call(d||window,u[x],x,u)}function Bt(u,a){for(var d=[],x=0;x<u.length;x++)d.push(a(u[x],x,u,d));return d}function Ot(u,a){var d={};return Se(u,function(x,N){d[N]=a(x)}),d}function Qt(u,a){a=a||function(N){return!!N};for(var d=[],x=0;x<u.length;x++)a(u[x],x,u,d)&&d.push(u[x]);return d}function w_(u,a){var d={};return Se(u,function(x,N){(a&&a(x,N,u,d)||x)&&(d[N]=x)}),d}function $s(u){var a=[];return Se(u,function(d,x){a.push([x,d])}),a}function ks(u,a){for(var d=0;d<u.length;d++)if(a(u[d],d,u))return!0;return!1}function pn(u,a){for(var d=0;d<u.length;d++)if(!a(u[d],d,u))return!1;return!0}function fn(u){return Ot(u,function(a){return typeof a=="object"&&(a=Wt(a)),encodeURIComponent(Q(a.toString()))})}function xs(u){var a=w_(u,function(x){return x!==void 0}),d=Bt($s(fn(a)),ye.method("join","=")).join("&");return d}function Is(u){var a=[],d=[];return(function x(N,U){var oe,be,Be;switch(typeof N){case"object":if(!N)return null;for(oe=0;oe<a.length;oe+=1)if(a[oe]===N)return{$ref:d[oe]};if(a.push(N),d.push(U),Object.prototype.toString.apply(N)==="[object Array]")for(Be=[],oe=0;oe<N.length;oe+=1)Be[oe]=x(N[oe],U+"["+oe+"]");else{Be={};for(be in N)Object.prototype.hasOwnProperty.call(N,be)&&(Be[be]=x(N[be],U+"["+JSON.stringify(be)+"]"))}return Be;case"number":case"string":case"boolean":return N}})(u,"$")}function Wt(u){try{return JSON.stringify(u)}catch{return JSON.stringify(Is(u))}}class S_{constructor(){this.globalLog=a=>{window.console&&window.console.log&&window.console.log(a)}}debug(...a){this.log(this.globalLog,a)}warn(...a){this.log(this.globalLogWarn,a)}error(...a){this.log(this.globalLogError,a)}globalLogWarn(a){window.console&&window.console.warn?window.console.warn(a):this.globalLog(a)}globalLogError(a){window.console&&window.console.error?window.console.error(a):this.globalLogWarn(a)}log(a,...d){var x=dt.apply(this,arguments);P_.log?P_.log(x):P_.logToConsole&&a.bind(this)(x)}}var ut=new S_,V_=function(u,a,d,x,N){(d.headers!==void 0||d.headersProvider!=null)&&ut.warn(`To send headers with the ${x.toString()} request, you must use AJAX, rather than JSONP.`);var U=u.nextAuthCallbackID.toString();u.nextAuthCallbackID++;var oe=u.getDocument(),be=oe.createElement("script");u.auth_callbacks[U]=function(lt){N(null,lt)};var Be="Pusher.auth_callbacks['"+U+"']";be.src=d.endpoint+"?callback="+encodeURIComponent(Be)+"&"+a;var ot=oe.getElementsByTagName("head")[0]||oe.documentElement;ot.insertBefore(be,ot.firstChild)},H_=V_;class A_{constructor(a){this.src=a}send(a){var d=this,x="Error loading "+d.src;d.script=document.createElement("script"),d.script.id=a.id,d.script.src=d.src,d.script.type="text/javascript",d.script.charset="UTF-8",d.script.addEventListener?(d.script.onerror=function(){a.callback(x)},d.script.onload=function(){a.callback(null)}):d.script.onreadystatechange=function(){(d.script.readyState==="loaded"||d.script.readyState==="complete")&&a.callback(null)},d.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(d.errorScript=document.createElement("script"),d.errorScript.id=a.id+"_error",d.errorScript.text=a.name+"('"+x+"');",d.script.async=d.errorScript.async=!1):d.script.async=!0;var N=document.getElementsByTagName("head")[0];N.insertBefore(d.script,N.firstChild),d.errorScript&&N.insertBefore(d.errorScript,d.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class W_{constructor(a,d){this.url=a,this.data=d}send(a){if(!this.request){var d=xs(this.data),x=this.url+"/"+a.number+"?"+d;this.request=He.createScriptRequest(x),this.request.send(a)}}cleanup(){this.request&&this.request.cleanup()}}var E_=function(u,a){return function(d,x){var N="http"+(a?"s":"")+"://",U=N+(u.host||u.options.host)+u.options.path,oe=He.createJSONPRequest(U,d),be=He.ScriptReceivers.create(function(Be,ot){l.remove(be),oe.cleanup(),ot&&ot.host&&(u.host=ot.host),x&&x(Be,ot)});oe.send(be)}},U_={name:"jsonp",getAgent:E_},X_=U_;function T_(u,a,d){var x=u+(a.useTLS?"s":""),N=a.useTLS?a.hostTLS:a.hostNonTLS;return x+"://"+N+d}function Y_(u,a){var d="/app/"+u,x="?protocol="+c.PROTOCOL+"&client=js&version="+c.VERSION+(a?"&"+a:"");return d+x}var Z_={getInitial:function(u,a){var d=(a.httpPath||"")+Y_(u,"flash=false");return T_("ws",a,d)}},J_={getInitial:function(u,a){var d=(a.httpPath||"/pusher")+Y_(u);return T_("http",a,d)}},j_={getInitial:function(u,a){return T_("http",a,a.httpPath||"/pusher")},getPath:function(u,a){return Y_(u)}};class v_{constructor(){this._callbacks={}}get(a){return this._callbacks[Kt(a)]}add(a,d,x){var N=Kt(a);this._callbacks[N]=this._callbacks[N]||[],this._callbacks[N].push({fn:d,context:x})}remove(a,d,x){if(!a&&!d&&!x){this._callbacks={};return}var N=a?[Kt(a)]:St(this._callbacks);d||x?this.removeCallback(N,d,x):this.removeAllCallbacks(N)}removeCallback(a,d,x){ge(a,function(N){this._callbacks[N]=Qt(this._callbacks[N]||[],function(U){return d&&d!==U.fn||x&&x!==U.context}),this._callbacks[N].length===0&&delete this._callbacks[N]},this)}removeAllCallbacks(a){ge(a,function(d){delete this._callbacks[d]},this)}}function Kt(u){return"_"+u}class Dt{constructor(a){this.callbacks=new v_,this.global_callbacks=[],this.failThrough=a}bind(a,d,x){return this.callbacks.add(a,d,x),this}bind_global(a){return this.global_callbacks.push(a),this}unbind(a,d,x){return this.callbacks.remove(a,d,x),this}unbind_global(a){return a?(this.global_callbacks=Qt(this.global_callbacks||[],d=>d!==a),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(a,d,x){for(var N=0;N<this.global_callbacks.length;N++)this.global_callbacks[N](a,d);var U=this.callbacks.get(a),oe=[];if(x?oe.push(d,x):d&&oe.push(d),U&&U.length>0)for(var N=0;N<U.length;N++)U[N].fn.apply(U[N].context||window,oe);else this.failThrough&&this.failThrough(a,d);return this}}class q_ extends Dt{constructor(a,d,x,N,U){super(),this.initialize=He.transportConnectionInitializer,this.hooks=a,this.name=d,this.priority=x,this.key=N,this.options=U,this.state="new",this.timeline=U.timeline,this.activityTimeout=U.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||this.state!=="initialized")return!1;var a=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(a,this.options)}catch(d){return ye.defer(()=>{this.onError(d),this.changeState("closed")}),!1}return this.bindListeners(),ut.debug("Connecting",{transport:this.name,url:a}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(a){return this.state==="open"?(ye.defer(()=>{this.socket&&this.socket.send(a)}),!0):!1}ping(){this.state==="open"&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(a){this.emit("error",{type:"WebSocketError",error:a}),this.timeline.error(this.buildTimelineMessage({error:a.toString()}))}onClose(a){a?this.changeState("closed",{code:a.code,reason:a.reason,wasClean:a.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(a){this.emit("message",a)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=a=>{this.onError(a)},this.socket.onclose=a=>{this.onClose(a)},this.socket.onmessage=a=>{this.onMessage(a)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(a,d){this.state=a,this.timeline.info(this.buildTimelineMessage({state:a,params:d})),this.emit(a,d)}buildTimelineMessage(a){return et({cid:this.id},a)}}class Ut{constructor(a){this.hooks=a}isSupported(a){return this.hooks.isSupported(a)}createConnection(a,d,x,N){return new q_(this.hooks,a,d,x,N)}}var b_=new Ut({urls:Z_,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!He.getWebSocketAPI()},isSupported:function(){return!!He.getWebSocketAPI()},getSocket:function(u){return He.createWebSocket(u)}}),N_={urls:J_,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},Q_=et({getSocket:function(u){return He.HTTPFactory.createStreamingSocket(u)}},N_),Cs=et({getSocket:function(u){return He.HTTPFactory.createPollingSocket(u)}},N_),Ss={isSupported:function(){return He.isXHRSupported()}},Zt=new Ut(et({},Q_,Ss)),o_=new Ut(et({},Cs,Ss)),d_={ws:b_,xhr_streaming:Zt,xhr_polling:o_},u_=d_,K_=new Ut({file:"sockjs",urls:j_,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(u,a){return new window.SockJS(u,null,{js_path:w.getPath("sockjs",{useTLS:a.useTLS}),ignore_null_origin:a.ignoreNullOrigin})},beforeOpen:function(u,a){u.send(JSON.stringify({path:a}))}}),es={isSupported:function(u){var a=He.isXDRSupported(u.useTLS);return a}},yn=new Ut(et({},Q_,es)),Ft=new Ut(et({},Cs,es));u_.xdr_streaming=yn,u_.xdr_polling=Ft,u_.sockjs=K_;var As=u_;class m extends Dt{constructor(){super();var a=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){a.emit("online")},!1),window.addEventListener("offline",function(){a.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var y=new m;class f{constructor(a,d,x){this.manager=a,this.transport=d,this.minPingDelay=x.minPingDelay,this.maxPingDelay=x.maxPingDelay,this.pingDelay=void 0}createConnection(a,d,x,N){N=et({},N,{activityTimeout:this.pingDelay});var U=this.transport.createConnection(a,d,x,N),oe=null,be=function(){U.unbind("open",be),U.bind("closed",Be),oe=ye.now()},Be=ot=>{if(U.unbind("closed",Be),ot.code===1002||ot.code===1003)this.manager.reportDeath();else if(!ot.wasClean&&oe){var lt=ye.now()-oe;lt<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(lt/2,this.minPingDelay))}};return U.bind("open",be),U}isSupported(a){return this.manager.isAlive()&&this.transport.isSupported(a)}}const i={decodeMessage:function(u){try{var a=JSON.parse(u.data),d=a.data;if(typeof d=="string")try{d=JSON.parse(a.data)}catch{}var x={event:a.event,channel:a.channel,data:d};return a.user_id&&(x.user_id=a.user_id),x}catch(N){throw{type:"MessageParseError",error:N,data:u.data}}},encodeMessage:function(u){return JSON.stringify(u)},processHandshake:function(u){var a=i.decodeMessage(u);if(a.event==="pusher:connection_established"){if(!a.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:a.data.socket_id,activityTimeout:a.data.activity_timeout*1e3}}else{if(a.event==="pusher:error")return{action:this.getCloseAction(a.data),error:this.getCloseError(a.data)};throw"Invalid handshake"}},getCloseAction:function(u){return u.code<4e3?u.code>=1002&&u.code<=1004?"backoff":null:u.code===4e3?"tls_only":u.code<4100?"refused":u.code<4200?"backoff":u.code<4300?"retry":"refused"},getCloseError:function(u){return u.code!==1e3&&u.code!==1001?{type:"PusherError",data:{code:u.code,message:u.reason||u.message}}:null}};var b=i;class z extends Dt{constructor(a,d){super(),this.id=a,this.transport=d,this.activityTimeout=d.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(a){return this.transport.send(a)}send_event(a,d,x){var N={event:a,data:d};return x&&(N.channel=x),ut.debug("Event sent",N),this.send(b.encodeMessage(N))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var a={message:x=>{var N;try{N=b.decodeMessage(x)}catch(U){this.emit("error",{type:"MessageParseError",error:U,data:x.data})}if(N!==void 0){switch(ut.debug("Event recd",N),N.event){case"pusher:error":this.emit("error",{type:"PusherError",data:N.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",N)}},activity:()=>{this.emit("activity")},error:x=>{this.emit("error",x)},closed:x=>{d(),x&&x.code&&this.handleCloseEvent(x),this.transport=null,this.emit("closed")}},d=()=>{Se(a,(x,N)=>{this.transport.unbind(N,x)})};Se(a,(x,N)=>{this.transport.bind(N,x)})}handleCloseEvent(a){var d=b.getCloseAction(a),x=b.getCloseError(a);x&&this.emit("error",x),d&&this.emit(d,{action:d,error:x})}}class F{constructor(a,d){this.transport=a,this.callback=d,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=a=>{this.unbindListeners();var d;try{d=b.processHandshake(a)}catch(x){this.finish("error",{error:x}),this.transport.close();return}d.action==="connected"?this.finish("connected",{connection:new z(d.id,this.transport),activityTimeout:d.activityTimeout}):(this.finish(d.action,{error:d.error}),this.transport.close())},this.onClosed=a=>{this.unbindListeners();var d=b.getCloseAction(a)||"backoff",x=b.getCloseError(a);this.finish(d,{error:x})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(a,d){this.callback(et({transport:this.transport,action:a},d))}}class Z{constructor(a,d){this.timeline=a,this.options=d||{}}send(a,d){this.timeline.isEmpty()||this.timeline.send(He.TimelineTransport.getAgent(this,a),d)}}class _e extends Dt{constructor(a,d){super(function(x,N){ut.debug("No callbacks on "+a+" for "+x)}),this.name=a,this.pusher=d,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(a,d){return d(null,{auth:""})}trigger(a,d){if(a.indexOf("client-")!==0)throw new $("Event '"+a+"' does not start with 'client-'");if(!this.subscribed){var x=I.buildLogSuffix("triggeringClientEvents");ut.warn(`Client event triggered before channel 'subscription_succeeded' event . ${x}`)}return this.pusher.send_event(a,d,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(a){var d=a.event,x=a.data;if(d==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(a);else if(d==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(a);else if(d.indexOf("pusher_internal:")!==0){var N={};this.emit(d,x,N)}}handleSubscriptionSucceededEvent(a){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",a.data)}handleSubscriptionCountEvent(a){a.data.subscription_count&&(this.subscriptionCount=a.data.subscription_count),this.emit("pusher:subscription_count",a.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(a,d)=>{a?(this.subscriptionPending=!1,ut.error(a.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:a.message},a instanceof O?{status:a.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:d.auth,channel_data:d.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class pe extends _e{authorize(a,d){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:a},d)}}class le{constructor(){this.reset()}get(a){return Object.prototype.hasOwnProperty.call(this.members,a)?{id:a,info:this.members[a]}:null}each(a){Se(this.members,(d,x)=>{a(this.get(x))})}setMyID(a){this.myID=a}onSubscription(a){this.members=a.presence.hash,this.count=a.presence.count,this.me=this.get(this.myID)}addMember(a){return this.get(a.user_id)===null&&this.count++,this.members[a.user_id]=a.user_info,this.get(a.user_id)}removeMember(a){var d=this.get(a.user_id);return d&&(delete this.members[a.user_id],this.count--),d}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var tt=function(u,a,d,x){function N(U){return U instanceof d?U:new d(function(oe){oe(U)})}return new(d||(d=Promise))(function(U,oe){function be(lt){try{ot(x.next(lt))}catch(It){oe(It)}}function Be(lt){try{ot(x.throw(lt))}catch(It){oe(It)}}function ot(lt){lt.done?U(lt.value):N(lt.value).then(be,Be)}ot((x=x.apply(u,a||[])).next())})};class de extends pe{constructor(a,d){super(a,d),this.members=new le}authorize(a,d){super.authorize(a,(x,N)=>tt(this,void 0,void 0,function*(){if(!x)if(N=N,N.channel_data!=null){var U=JSON.parse(N.channel_data);this.members.setMyID(U.user_id)}else if(yield this.pusher.user.signinDonePromise,this.pusher.user.user_data!=null)this.members.setMyID(this.pusher.user.user_data.id);else{let oe=I.buildLogSuffix("authorizationEndpoint");ut.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${oe}, or the user should be signed in.`),d("Invalid auth response");return}d(x,N)}))}handleEvent(a){var d=a.event;if(d.indexOf("pusher_internal:")===0)this.handleInternalEvent(a);else{var x=a.data,N={};a.user_id&&(N.user_id=a.user_id),this.emit(d,x,N)}}handleInternalEvent(a){var d=a.event,x=a.data;switch(d){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(a);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(a);break;case"pusher_internal:member_added":var N=this.members.addMember(x);this.emit("pusher:member_added",N);break;case"pusher_internal:member_removed":var U=this.members.removeMember(x);U&&this.emit("pusher:member_removed",U);break}}handleSubscriptionSucceededEvent(a){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(a.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var je=s(1),Ee=s(0);class Oe extends pe{constructor(a,d,x){super(a,d),this.key=null,this.nacl=x}authorize(a,d){super.authorize(a,(x,N)=>{if(x){d(x,N);return}let U=N.shared_secret;if(!U){d(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=Object(Ee.decode)(U),delete N.shared_secret,d(null,N)})}trigger(a,d){throw new M("Client events are not currently supported for encrypted channels")}handleEvent(a){var d=a.event,x=a.data;if(d.indexOf("pusher_internal:")===0||d.indexOf("pusher:")===0){super.handleEvent(a);return}this.handleEncryptedEvent(d,x)}handleEncryptedEvent(a,d){if(!this.key){ut.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!d.ciphertext||!d.nonce){ut.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+d);return}let x=Object(Ee.decode)(d.ciphertext);if(x.length<this.nacl.secretbox.overheadLength){ut.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${x.length}`);return}let N=Object(Ee.decode)(d.nonce);if(N.length<this.nacl.secretbox.nonceLength){ut.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${N.length}`);return}let U=this.nacl.secretbox.open(x,N,this.key);if(U===null){ut.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(oe,be)=>{if(oe){ut.error(`Failed to make a request to the authEndpoint: ${be}. Unable to fetch new key, so dropping encrypted event`);return}if(U=this.nacl.secretbox.open(x,N,this.key),U===null){ut.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(a,this.getDataToEmit(U))});return}this.emit(a,this.getDataToEmit(U))}getDataToEmit(a){let d=Object(je.decode)(a);try{return JSON.parse(d)}catch{return d}}}class ze extends Dt{constructor(a,d){super(),this.state="initialized",this.connection=null,this.key=a,this.options=d,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var x=He.getNetwork();x.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),x.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(a){return this.connection?this.connection.send(a):!1}send_event(a,d,x){return this.connection?this.connection.send_event(a,d,x):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var a=(d,x)=>{d?this.runner=this.strategy.connect(0,a):x.action==="error"?(this.emit("error",{type:"HandshakeError",error:x.error}),this.timeline.error({handshakeError:x.error})):(this.abortConnecting(),this.handshakeCallbacks[x.action](x))};this.runner=this.strategy.connect(0,a)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var a=this.abandonConnection();a.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(a){this.timeline.info({action:"retry",delay:a}),a>0&&this.emit("connecting_in",Math.round(a/1e3)),this.retryTimer=new De(a||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new De(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new De(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new De(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(a){return et({},a,{message:d=>{this.resetActivityCheck(),this.emit("message",d)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:d=>{this.emit("error",d)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(a){return et({},a,{connected:d=>{this.activityTimeout=Math.min(this.options.activityTimeout,d.activityTimeout,d.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(d.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let a=d=>x=>{x.error&&this.emit("error",{type:"WebSocketError",error:x.error}),d(x)};return{tls_only:a(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:a(()=>{this.disconnect()}),backoff:a(()=>{this.retryIn(1e3)}),retry:a(()=>{this.retryIn(0)})}}setConnection(a){this.connection=a;for(var d in this.connectionCallbacks)this.connection.bind(d,this.connectionCallbacks[d]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var a in this.connectionCallbacks)this.connection.unbind(a,this.connectionCallbacks[a]);var d=this.connection;return this.connection=null,d}}updateState(a,d){var x=this.state;if(this.state=a,x!==a){var N=a;N==="connected"&&(N+=" with new socket ID "+d.socket_id),ut.debug("State changed",x+" -> "+N),this.timeline.info({state:a,params:d}),this.emit("state_change",{previous:x,current:a}),this.emit(a,d)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class qe{constructor(){this.channels={}}add(a,d){return this.channels[a]||(this.channels[a]=Le(a,d)),this.channels[a]}all(){return n_(this.channels)}find(a){return this.channels[a]}remove(a){var d=this.channels[a];return delete this.channels[a],d}disconnect(){Se(this.channels,function(a){a.disconnect()})}}function Le(u,a){if(u.indexOf("private-encrypted-")===0){if(a.config.nacl)return re.createEncryptedChannel(u,a,a.config.nacl);let d="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",x=I.buildLogSuffix("encryptedChannelSupport");throw new M(`${d}. ${x}`)}else{if(u.indexOf("private-")===0)return re.createPrivateChannel(u,a);if(u.indexOf("presence-")===0)return re.createPresenceChannel(u,a);if(u.indexOf("#")===0)throw new k('Cannot create a channel with name "'+u+'".');return re.createChannel(u,a)}}var Ne={createChannels(){return new qe},createConnectionManager(u,a){return new ze(u,a)},createChannel(u,a){return new _e(u,a)},createPrivateChannel(u,a){return new pe(u,a)},createPresenceChannel(u,a){return new de(u,a)},createEncryptedChannel(u,a,d){return new Oe(u,a,d)},createTimelineSender(u,a){return new Z(u,a)},createHandshake(u,a){return new F(u,a)},createAssistantToTheTransportManager(u,a,d){return new f(u,a,d)}},re=Ne;class ve{constructor(a){this.options=a||{},this.livesLeft=this.options.lives||1/0}getAssistant(a){return re.createAssistantToTheTransportManager(this,a,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class ie{constructor(a,d){this.strategies=a,this.loop=!!d.loop,this.failFast=!!d.failFast,this.timeout=d.timeout,this.timeoutLimit=d.timeoutLimit}isSupported(){return ks(this.strategies,ye.method("isSupported"))}connect(a,d){var x=this.strategies,N=0,U=this.timeout,oe=null,be=(Be,ot)=>{ot?d(null,ot):(N=N+1,this.loop&&(N=N%x.length),N<x.length?(U&&(U=U*2,this.timeoutLimit&&(U=Math.min(U,this.timeoutLimit))),oe=this.tryStrategy(x[N],a,{timeout:U,failFast:this.failFast},be)):d(!0))};return oe=this.tryStrategy(x[N],a,{timeout:U,failFast:this.failFast},be),{abort:function(){oe.abort()},forceMinPriority:function(Be){a=Be,oe&&oe.forceMinPriority(Be)}}}tryStrategy(a,d,x,N){var U=null,oe=null;return x.timeout>0&&(U=new De(x.timeout,function(){oe.abort(),N(!0)})),oe=a.connect(d,function(be,Be){be&&U&&U.isRunning()&&!x.failFast||(U&&U.ensureAborted(),N(be,Be))}),{abort:function(){U&&U.ensureAborted(),oe.abort()},forceMinPriority:function(be){oe.forceMinPriority(be)}}}}class ue{constructor(a){this.strategies=a}isSupported(){return ks(this.strategies,ye.method("isSupported"))}connect(a,d){return fe(this.strategies,a,function(x,N){return function(U,oe){if(N[x].error=U,U){ce(N)&&d(!0);return}ge(N,function(be){be.forceMinPriority(oe.transport.priority)}),d(null,oe)}})}}function fe(u,a,d){var x=Bt(u,function(N,U,oe,be){return N.connect(a,d(U,be))});return{abort:function(){ge(x,V)},forceMinPriority:function(N){ge(x,function(U){U.forceMinPriority(N)})}}}function ce(u){return pn(u,function(a){return!!a.error})}function V(u){!u.error&&!u.aborted&&(u.abort(),u.aborted=!0)}class H{constructor(a,d,x){this.strategy=a,this.transports=d,this.ttl=x.ttl||1800*1e3,this.usingTLS=x.useTLS,this.timeline=x.timeline}isSupported(){return this.strategy.isSupported()}connect(a,d){var x=this.usingTLS,N=X(x),U=N&&N.cacheSkipCount?N.cacheSkipCount:0,oe=[this.strategy];if(N&&N.timestamp+this.ttl>=ye.now()){var be=this.transports[N.transport];be&&(["ws","wss"].includes(N.transport)||U>3?(this.timeline.info({cached:!0,transport:N.transport,latency:N.latency}),oe.push(new ie([be],{timeout:N.latency*2+1e3,failFast:!0}))):U++)}var Be=ye.now(),ot=oe.pop().connect(a,function lt(It,js){It?(te(x),oe.length>0?(Be=ye.now(),ot=oe.pop().connect(a,lt)):d(It)):(J(x,js.transport.name,ye.now()-Be,U),d(null,js))});return{abort:function(){ot.abort()},forceMinPriority:function(lt){a=lt,ot&&ot.forceMinPriority(lt)}}}}function ee(u){return"pusherTransport"+(u?"TLS":"NonTLS")}function X(u){var a=He.getLocalStorage();if(a)try{var d=a[ee(u)];if(d)return JSON.parse(d)}catch{te(u)}return null}function J(u,a,d,x){var N=He.getLocalStorage();if(N)try{N[ee(u)]=Wt({timestamp:ye.now(),transport:a,latency:d,cacheSkipCount:x})}catch{}}function te(u){var a=He.getLocalStorage();if(a)try{delete a[ee(u)]}catch{}}class $e{constructor(a,{delay:d}){this.strategy=a,this.options={delay:d}}isSupported(){return this.strategy.isSupported()}connect(a,d){var x=this.strategy,N,U=new De(this.options.delay,function(){N=x.connect(a,d)});return{abort:function(){U.ensureAborted(),N&&N.abort()},forceMinPriority:function(oe){a=oe,N&&N.forceMinPriority(oe)}}}}class Pe{constructor(a,d,x){this.test=a,this.trueBranch=d,this.falseBranch=x}isSupported(){var a=this.test()?this.trueBranch:this.falseBranch;return a.isSupported()}connect(a,d){var x=this.test()?this.trueBranch:this.falseBranch;return x.connect(a,d)}}class Ge{constructor(a){this.strategy=a}isSupported(){return this.strategy.isSupported()}connect(a,d){var x=this.strategy.connect(a,function(N,U){U&&x.abort(),d(N,U)});return x}}function Re(u){return function(){return u.isSupported()}}var q=function(u,a,d){var x={};function N(vo,$l,kl,xl,Il){var bo=d(u,vo,$l,kl,xl,Il);return x[vo]=bo,bo}var U=Object.assign({},a,{hostNonTLS:u.wsHost+":"+u.wsPort,hostTLS:u.wsHost+":"+u.wssPort,httpPath:u.wsPath}),oe=Object.assign({},U,{useTLS:!0}),be=Object.assign({},a,{hostNonTLS:u.httpHost+":"+u.httpPort,hostTLS:u.httpHost+":"+u.httpsPort,httpPath:u.httpPath}),Be={loop:!0,timeout:15e3,timeoutLimit:6e4},ot=new ve({minPingDelay:1e4,maxPingDelay:u.activityTimeout}),lt=new ve({lives:2,minPingDelay:1e4,maxPingDelay:u.activityTimeout}),It=N("ws","ws",3,U,ot),js=N("wss","ws",3,oe,ot),fl=N("sockjs","sockjs",1,be),ho=N("xhr_streaming","xhr_streaming",1,be,lt),yl=N("xdr_streaming","xdr_streaming",1,be,lt),go=N("xhr_polling","xhr_polling",1,be),wl=N("xdr_polling","xdr_polling",1,be),po=new ie([It],Be),vl=new ie([js],Be),bl=new ie([fl],Be),fo=new ie([new Pe(Re(ho),ho,yl)],Be),yo=new ie([new Pe(Re(go),go,wl)],Be),wo=new ie([new Pe(Re(fo),new ue([fo,new $e(yo,{delay:4e3})]),yo)],Be),vn=new Pe(Re(wo),wo,bl),bn;return a.useTLS?bn=new ue([po,new $e(vn,{delay:2e3})]):bn=new ue([po,new $e(vl,{delay:2e3}),new $e(vn,{delay:5e3})]),new H(new Ge(new Pe(Re(It),bn,vn)),x,{ttl:18e5,timeline:a.timeline,useTLS:a.useTLS})},Ue=q,_t=(function(){var u=this;u.timeline.info(u.buildTimelineMessage({transport:u.name+(u.options.useTLS?"s":"")})),u.hooks.isInitialized()?u.changeState("initialized"):u.hooks.file?(u.changeState("initializing"),w.load(u.hooks.file,{useTLS:u.options.useTLS},function(a,d){u.hooks.isInitialized()?(u.changeState("initialized"),d(!0)):(a&&u.onError(a),u.onClose(),d(!1))})):u.onClose()}),st={getRequest:function(u){var a=new window.XDomainRequest;return a.ontimeout=function(){u.emit("error",new T),u.close()},a.onerror=function(d){u.emit("error",d),u.close()},a.onprogress=function(){a.responseText&&a.responseText.length>0&&u.onChunk(200,a.responseText)},a.onload=function(){a.responseText&&a.responseText.length>0&&u.onChunk(200,a.responseText),u.emit("finished",200),u.close()},a},abortRequest:function(u){u.ontimeout=u.onerror=u.onprogress=u.onload=null,u.abort()}},Ve=st;const Qe=256*1024;class Ke extends Dt{constructor(a,d,x){super(),this.hooks=a,this.method=d,this.url=x}start(a){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},He.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(a)}close(){this.unloader&&(He.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(a,d){for(;;){var x=this.advanceBuffer(d);if(x)this.emit("chunk",{status:a,data:x});else break}this.isBufferTooLong(d)&&this.emit("buffer_too_long")}advanceBuffer(a){var d=a.slice(this.position),x=d.indexOf(`
35
- `);return x!==-1?(this.position+=x+1,d.slice(0,x)):null}isBufferTooLong(a){return this.position===a.length&&a.length>Qe}}var mt;(function(u){u[u.CONNECTING=0]="CONNECTING",u[u.OPEN=1]="OPEN",u[u.CLOSED=3]="CLOSED"})(mt||(mt={}));var Je=mt,gt=1;class pt{constructor(a,d){this.hooks=a,this.session=Et(1e3)+"/"+Rc(8),this.location=ft(d),this.readyState=Je.CONNECTING,this.openStream()}send(a){return this.sendRaw(JSON.stringify([a]))}ping(){this.hooks.sendHeartbeat(this)}close(a,d){this.onClose(a,d,!0)}sendRaw(a){if(this.readyState===Je.OPEN)try{return He.createSocketRequest("POST",At($t(this.location,this.session))).start(a),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(a,d,x){this.closeStream(),this.readyState=Je.CLOSED,this.onclose&&this.onclose({code:a,reason:d,wasClean:x})}onChunk(a){if(a.status===200){this.readyState===Je.OPEN&&this.onActivity();var d,x=a.data.slice(0,1);switch(x){case"o":d=JSON.parse(a.data.slice(1)||"{}"),this.onOpen(d);break;case"a":d=JSON.parse(a.data.slice(1)||"[]");for(var N=0;N<d.length;N++)this.onEvent(d[N]);break;case"m":d=JSON.parse(a.data.slice(1)||"null"),this.onEvent(d);break;case"h":this.hooks.onHeartbeat(this);break;case"c":d=JSON.parse(a.data.slice(1)||"[]"),this.onClose(d[0],d[1],!0);break}}}onOpen(a){this.readyState===Je.CONNECTING?(a&&a.hostname&&(this.location.base=Tt(this.location.base,a.hostname)),this.readyState=Je.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(a){this.readyState===Je.OPEN&&this.onmessage&&this.onmessage({data:a})}onActivity(){this.onactivity&&this.onactivity()}onError(a){this.onerror&&this.onerror(a)}openStream(){this.stream=He.createSocketRequest("POST",At(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",a=>{this.onChunk(a)}),this.stream.bind("finished",a=>{this.hooks.onFinished(this,a)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(a){ye.defer(()=>{this.onError(a),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function ft(u){var a=/([^\?]*)\/*(\??.*)/.exec(u);return{base:a[1],queryString:a[2]}}function $t(u,a){return u.base+"/"+a+"/xhr_send"}function At(u){var a=u.indexOf("?")===-1?"?":"&";return u+a+"t="+ +new Date+"&n="+gt++}function Tt(u,a){var d=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(u);return d[1]+a+d[3]}function Et(u){return He.randomInt(u)}function Rc(u){for(var a=[],d=0;d<u;d++)a.push(Et(32).toString(32));return a.join("")}var Lc=pt,Mc={getReceiveURL:function(u,a){return u.base+"/"+a+"/xhr_streaming"+u.queryString},onHeartbeat:function(u){u.sendRaw("[]")},sendHeartbeat:function(u){u.sendRaw("[]")},onFinished:function(u,a){u.onClose(1006,"Connection interrupted ("+a+")",!1)}},zc=Mc,Dc={getReceiveURL:function(u,a){return u.base+"/"+a+"/xhr"+u.queryString},onHeartbeat:function(){},sendHeartbeat:function(u){u.sendRaw("[]")},onFinished:function(u,a){a===200?u.reconnect():u.onClose(1006,"Connection interrupted ("+a+")",!1)}},Fc=Dc,Oc={getRequest:function(u){var a=He.getXHRAPI(),d=new a;return d.onreadystatechange=d.onprogress=function(){switch(d.readyState){case 3:d.responseText&&d.responseText.length>0&&u.onChunk(d.status,d.responseText);break;case 4:d.responseText&&d.responseText.length>0&&u.onChunk(d.status,d.responseText),u.emit("finished",d.status),u.close();break}},d},abortRequest:function(u){u.onreadystatechange=null,u.abort()}},Gc=Oc,Bc={createStreamingSocket(u){return this.createSocket(zc,u)},createPollingSocket(u){return this.createSocket(Fc,u)},createSocket(u,a){return new Lc(u,a)},createXHR(u,a){return this.createRequest(Gc,u,a)},createRequest(u,a,d){return new Ke(u,a,d)}},lo=Bc;lo.createXDR=function(u,a){return this.createRequest(Ve,u,a)};var Vc=lo,Hc={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:l,DependenciesReceivers:p,getDefaultStrategy:Ue,Transports:As,transportConnectionInitializer:_t,HTTPFactory:Vc,TimelineTransport:X_,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(u){window.Pusher=u;var a=()=>{this.onDocumentBody(u.ready)};window.JSON?a():w.load("json2",{},a)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:W,jsonp:H_}},onDocumentBody(u){document.body?u():setTimeout(()=>{this.onDocumentBody(u)},0)},createJSONPRequest(u,a){return new W_(u,a)},createScriptRequest(u){return new A_(u)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var u=this.getXHRAPI();return new u},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return y},createWebSocket(u){var a=this.getWebSocketAPI();return new a(u)},createSocketRequest(u,a){if(this.isXHRSupported())return this.HTTPFactory.createXHR(u,a);if(this.isXDRSupported(a.indexOf("https:")===0))return this.HTTPFactory.createXDR(u,a);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var u=this.getXHRAPI();return!!u&&new u().withCredentials!==void 0},isXDRSupported(u){var a=u?"https:":"http:",d=this.getProtocol();return!!window.XDomainRequest&&d===a},addUnloadListener(u){window.addEventListener!==void 0?window.addEventListener("unload",u,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",u)},removeUnloadListener(u){window.addEventListener!==void 0?window.removeEventListener("unload",u,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",u)},randomInt(u){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*u)}},He=Hc,wn;(function(u){u[u.ERROR=3]="ERROR",u[u.INFO=6]="INFO",u[u.DEBUG=7]="DEBUG"})(wn||(wn={}));var Es=wn;class Wc{constructor(a,d,x){this.key=a,this.session=d,this.events=[],this.options=x||{},this.sent=0,this.uniqueID=0}log(a,d){a<=this.options.level&&(this.events.push(et({},d,{timestamp:ye.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(a){this.log(Es.ERROR,a)}info(a){this.log(Es.INFO,a)}debug(a){this.log(Es.DEBUG,a)}isEmpty(){return this.events.length===0}send(a,d){var x=et({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],a(x,(N,U)=>{N||this.sent++,d&&d(N,U)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class Uc{constructor(a,d,x,N){this.name=a,this.priority=d,this.transport=x,this.options=N||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(a,d){if(this.isSupported()){if(this.priority<a)return uo(new j,d)}else return uo(new D,d);var x=!1,N=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),U=null,oe=function(){N.unbind("initialized",oe),N.connect()},be=function(){U=re.createHandshake(N,function(It){x=!0,lt(),d(null,It)})},Be=function(It){lt(),d(It)},ot=function(){lt();var It;It=Wt(N),d(new R(It))},lt=function(){N.unbind("initialized",oe),N.unbind("open",be),N.unbind("error",Be),N.unbind("closed",ot)};return N.bind("initialized",oe),N.bind("open",be),N.bind("error",Be),N.bind("closed",ot),N.initialize(),{abort:()=>{x||(lt(),U?U.close():N.close())},forceMinPriority:It=>{x||this.priority<It&&(U?U.close():N.close())}}}}function uo(u,a){return ye.defer(function(){a(u)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:Xc}=He;var Yc=function(u,a,d,x,N,U){var oe=Xc[d];if(!oe)throw new P(d);var be=(!u.enabledTransports||Fe(u.enabledTransports,a)!==-1)&&(!u.disabledTransports||Fe(u.disabledTransports,a)===-1),Be;return be?(N=Object.assign({ignoreNullOrigin:u.ignoreNullOrigin},N),Be=new Uc(a,x,U?U.getAssistant(oe):oe,N)):Be=Zc,Be},Zc={isSupported:function(){return!1},connect:function(u,a){var d=ye.defer(function(){a(new D)});return{abort:function(){d.ensureAborted()},forceMinPriority:function(){}}}};function mo(u){if(u==null)throw"You must pass an options object";if(u.cluster==null)throw"Options object must provide a cluster";"disableStats"in u&&ut.warn("The disableStats option is deprecated in favor of enableStats")}const Jc=(u,a)=>{var d="socket_id="+encodeURIComponent(u.socketId);for(var x in a.params)d+="&"+encodeURIComponent(x)+"="+encodeURIComponent(a.params[x]);if(a.paramsProvider!=null){let N=a.paramsProvider();for(var x in N)d+="&"+encodeURIComponent(x)+"="+encodeURIComponent(N[x])}return d};var Qc=u=>{if(typeof He.getAuthorizers()[u.transport]>"u")throw`'${u.transport}' is not a recognized auth transport`;return(a,d)=>{const x=Jc(a,u);He.getAuthorizers()[u.transport](He,x,u,E.UserAuthentication,d)}};const Kc=(u,a)=>{var d="socket_id="+encodeURIComponent(u.socketId);d+="&channel_name="+encodeURIComponent(u.channelName);for(var x in a.params)d+="&"+encodeURIComponent(x)+"="+encodeURIComponent(a.params[x]);if(a.paramsProvider!=null){let N=a.paramsProvider();for(var x in N)d+="&"+encodeURIComponent(x)+"="+encodeURIComponent(N[x])}return d};var el=u=>{if(typeof He.getAuthorizers()[u.transport]>"u")throw`'${u.transport}' is not a recognized auth transport`;return(a,d)=>{const x=Kc(a,u);He.getAuthorizers()[u.transport](He,x,u,E.ChannelAuthorization,d)}};const tl=(u,a,d)=>{const x={authTransport:a.transport,authEndpoint:a.endpoint,auth:{params:a.params,headers:a.headers}};return(N,U)=>{const oe=u.channel(N.channelName);d(oe,x).authorize(N.socketId,U)}};function _l(u,a){let d={activityTimeout:u.activityTimeout||c.activityTimeout,cluster:u.cluster,httpPath:u.httpPath||c.httpPath,httpPort:u.httpPort||c.httpPort,httpsPort:u.httpsPort||c.httpsPort,pongTimeout:u.pongTimeout||c.pongTimeout,statsHost:u.statsHost||c.stats_host,unavailableTimeout:u.unavailableTimeout||c.unavailableTimeout,wsPath:u.wsPath||c.wsPath,wsPort:u.wsPort||c.wsPort,wssPort:u.wssPort||c.wssPort,enableStats:il(u),httpHost:sl(u),useTLS:al(u),wsHost:nl(u),userAuthenticator:rl(u),channelAuthorizer:ll(u,a)};return"disabledTransports"in u&&(d.disabledTransports=u.disabledTransports),"enabledTransports"in u&&(d.enabledTransports=u.enabledTransports),"ignoreNullOrigin"in u&&(d.ignoreNullOrigin=u.ignoreNullOrigin),"timelineParams"in u&&(d.timelineParams=u.timelineParams),"nacl"in u&&(d.nacl=u.nacl),d}function sl(u){return u.httpHost?u.httpHost:u.cluster?`sockjs-${u.cluster}.pusher.com`:c.httpHost}function nl(u){return u.wsHost?u.wsHost:ol(u.cluster)}function ol(u){return`ws-${u}.pusher.com`}function al(u){return He.getProtocol()==="https:"?!0:u.forceTLS!==!1}function il(u){return"enableStats"in u?u.enableStats:"disableStats"in u?!u.disableStats:!1}function rl(u){const a=Object.assign(Object.assign({},c.userAuthentication),u.userAuthentication);return"customHandler"in a&&a.customHandler!=null?a.customHandler:Qc(a)}function cl(u,a){let d;return"channelAuthorization"in u?d=Object.assign(Object.assign({},c.channelAuthorization),u.channelAuthorization):(d={transport:u.authTransport||c.authTransport,endpoint:u.authEndpoint||c.authEndpoint},"auth"in u&&("params"in u.auth&&(d.params=u.auth.params),"headers"in u.auth&&(d.headers=u.auth.headers)),"authorizer"in u&&(d.customHandler=tl(a,d,u.authorizer))),d}function ll(u,a){const d=cl(u,a);return"customHandler"in d&&d.customHandler!=null?d.customHandler:el(d)}class dl extends Dt{constructor(a){super(function(d,x){ut.debug(`No callbacks on watchlist events for ${d}`)}),this.pusher=a,this.bindWatchlistInternalEvent()}handleEvent(a){a.data.events.forEach(d=>{this.emit(d.name,d)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",a=>{var d=a.event;d==="pusher_internal:watchlist_events"&&this.handleEvent(a)})}}function ul(){let u,a;return{promise:new Promise((x,N)=>{u=x,a=N}),resolve:u,reject:a}}var ml=ul;class hl extends Dt{constructor(a){super(function(d,x){ut.debug("No callbacks on user for "+d)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(d,x)=>{if(d){ut.warn(`Error during signin: ${d}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:x.auth,user_data:x.user_data})},this.pusher=a,this.pusher.connection.bind("state_change",({previous:d,current:x})=>{d!=="connected"&&x==="connected"&&this._signin(),d==="connected"&&x!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new dl(a),this.pusher.connection.bind("message",d=>{var x=d.event;x==="pusher:signin_success"&&this._onSigninSuccess(d.data),this.serverToUserChannel&&this.serverToUserChannel.name===d.channel&&this.serverToUserChannel.handleEvent(d)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(a){try{this.user_data=JSON.parse(a.user_data)}catch{ut.error(`Failed parsing user data after signin: ${a.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){ut.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const a=d=>{d.subscriptionPending&&d.subscriptionCancelled?d.reinstateSubscription():!d.subscriptionPending&&this.pusher.connection.state==="connected"&&d.subscribe()};this.serverToUserChannel=new _e(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((d,x)=>{d.indexOf("pusher_internal:")===0||d.indexOf("pusher:")===0||this.emit(d,x)}),a(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:a,resolve:d}=ml();a.done=!1;const x=()=>{a.done=!0};a.then(x).catch(x),this.signinDonePromise=a,this._signinDoneResolve=d}}class Pt{static ready(){Pt.isReady=!0;for(var a=0,d=Pt.instances.length;a<d;a++)Pt.instances[a].connect()}static getClientFeatures(){return St(w_({ws:He.Transports.ws},function(a){return a.isSupported({})}))}constructor(a,d){gl(a),mo(d),this.key=a,this.config=_l(d,this),this.channels=re.createChannels(),this.global_emitter=new Dt,this.sessionID=He.randomInt(1e9),this.timeline=new Wc(this.key,this.sessionID,{cluster:this.config.cluster,features:Pt.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:Es.INFO,version:c.VERSION}),this.config.enableStats&&(this.timelineSender=re.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+He.TimelineTransport.name}));var x=N=>He.getDefaultStrategy(this.config,N,Yc);this.connection=re.createConnectionManager(this.key,{getStrategy:x,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",N=>{var U=N.event,oe=U.indexOf("pusher_internal:")===0;if(N.channel){var be=this.channel(N.channel);be&&be.handleEvent(N)}oe||this.global_emitter.emit(N.event,N.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",N=>{ut.warn(N)}),Pt.instances.push(this),this.timeline.info({instances:Pt.instances.length}),this.user=new hl(this),Pt.isReady&&this.connect()}channel(a){return this.channels.find(a)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var a=this.connection.isUsingTLS(),d=this.timelineSender;this.timelineSenderTimer=new Me(6e4,function(){d.send(a)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(a,d,x){return this.global_emitter.bind(a,d,x),this}unbind(a,d,x){return this.global_emitter.unbind(a,d,x),this}bind_global(a){return this.global_emitter.bind_global(a),this}unbind_global(a){return this.global_emitter.unbind_global(a),this}unbind_all(a){return this.global_emitter.unbind_all(),this}subscribeAll(){var a;for(a in this.channels.channels)this.channels.channels.hasOwnProperty(a)&&this.subscribe(a)}subscribe(a){var d=this.channels.add(a,this);return d.subscriptionPending&&d.subscriptionCancelled?d.reinstateSubscription():!d.subscriptionPending&&this.connection.state==="connected"&&d.subscribe(),d}unsubscribe(a){var d=this.channels.find(a);d&&d.subscriptionPending?d.cancelSubscription():(d=this.channels.remove(a),d&&d.subscribed&&d.unsubscribe())}send_event(a,d,x){return this.connection.send_event(a,d,x)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}Pt.instances=[],Pt.isReady=!1,Pt.logToConsole=!1,Pt.Runtime=He,Pt.ScriptReceivers=He.ScriptReceivers,Pt.DependenciesReceivers=He.DependenciesReceivers,Pt.auth_callbacks=He.auth_callbacks;var P_=Pt;function gl(u){if(u==null)throw"You must pass your app key when you instantiate Pusher."}He.setup(Pt);var pl=s(2);class Ts extends P_{constructor(a,d){P_.logToConsole=Ts.logToConsole,P_.log=Ts.log,mo(d),d.nacl=pl,super(a,d)}}})])})})(jn)),jn.exports}var qn,fa;function Y4_(){return fa||(fa=1,qn=X4_()),qn}var Z4_=Y4_();const J4_=V2_(Z4_),co=`${ht}/api/notification`,Q4_=e=>xe.get(co,{params:{...e}}),K4_=e=>xe.put(`${co}/${e}`),eI_=()=>xe.put(`${co}/updateAllStatus`),Fr=Y.createAction("notifications/setNotification"),tI_=Y.createAction("notifications/setUnReadNotification"),_I_=Y.createAction("notifications/updateUnReadNotification"),sI_={currentPage:1,pageSize:30,searchString:"",isRead:!1},nI_="Notification list",ya="NOTIFICATION_CHANNEL",oI_="NEW_NOTIFICATION",aI_=()=>{const e=ke.useDispatch(),t=ke.useSelector($=>{var k;return(k=$.common.user)==null?void 0:k.id}),_=ke.useSelector($=>$.notification.notificationList),n=ke.useSelector($=>$.common.user.pusherKey),s=ke.useSelector($=>$.common.user.pusherCluster),r=ke.useSelector($=>$.notification.totalItems),l=ke.useSelector($=>$.notification.unReadNotification),[h,c]=C.useState(sI_),[g,p]=C.useState(!1),w=$=>c({...h,...$}),v=$=>{var j,R,M,P;const{source:k,extraData:T}=$;switch(k){case"NewConferenceCreated":window.open(`/start-conference/${(j=JSON.parse(T))==null?void 0:j[0]}/${(R=JSON.parse(T))==null?void 0:R[1]}`);break;case"NewSessionCreated":window.open(`/start-session/${(M=JSON.parse(T))==null?void 0:M[0]}/${(P=JSON.parse(T))==null?void 0:P[1]}`);break}},A=C.useCallback(async()=>{var $,k;e(me(!0));try{const T=await Q4_(h),{items:j,totalItems:R}=T.data;e(Fr({notificationList:j,totalItems:R}))}catch(T){e(he({type:"danger",message:((k=($=T.response)==null?void 0:$.data)==null?void 0:k.title)||T.message}))}e(me(!1))},[h]);C.useEffect(()=>{document.title=nI_},[]),C.useEffect(()=>{A();const $=new J4_(n,{cluster:s});return $.subscribe(`${ya}-${t}`).bind(oI_,A),()=>$.unsubscribe(`${ya}-${t}`)},[h,t]);const I=C.useCallback(($,k)=>{var T,j;try{e(Xt({isOpen:!0,type:"warning",message:`Do you want to mark this notification ${k?"read":"unread"}?`,onConfirm:async()=>{await K4_($),A()}}))}catch(R){e(he({type:"danger",message:((j=(T=R.response)==null?void 0:T.data)==null?void 0:j.title)||R.message}))}},[_,l]),E=C.useCallback(async()=>{var $,k;try{if(_.length===0)throw new Error("There are no unread messages");e(Xt({isOpen:!0,type:"warning",message:"Do you want to mark all notification ?",onConfirm:async()=>{p(!0),await eI_(),A(),p(!1)}}))}catch(T){e(he({type:"danger",message:((k=($=T.response)==null?void 0:$.data)==null?void 0:k.title)||T.message}))}},[_]);return{notificationList:_,totalItems:r,unReadNotification:l,filters:h,changeFilters:w,updateNotification:I,viewNotification:v,updateAll:E,toggleUpdateAllStatus:g}},iI_="Notification list",rI_=20,cI_=()=>{const{notificationList:e,totalItems:t,filters:_,changeFilters:n,updateNotification:s,viewNotification:r,updateAll:l,toggleUpdateAllStatus:h}=aI_();return o.jsxs("div",{className:"animated fadeIn",style:{padding:"20px 40px"},children:[o.jsx("h5",{className:"mb-2",children:iI_}),o.jsxs(S.Row,{className:"my-2",children:[o.jsx(S.Col,{md:8,children:o.jsx(vs,{initValue:_.searchString,onSearch:c=>n({searchString:c}),placeholder:"Type something to search"})}),o.jsx(S.Col,{md:4,children:o.jsx(U4_,{value:_.isRead,onChange:c=>n({isRead:c.value})})})]}),o.jsx(S.Row,{className:"my-2 d-flex justify-content-center",children:o.jsxs(S.Col,{md:12,className:"d-flex justify-content-end align-items-center",children:[_.isRead===!1&&o.jsxs("div",{className:"d-flex align-items-center justify-content-end mx-2",children:["Mark all as read",o.jsx(S.Input,{checked:h,className:"mx-2",type:"checkbox",id:"status-checkbox",onChange:()=>l()})]}),"Total of notifications: ",t]})}),o.jsxs(S.Row,{className:"mb-2",children:[o.jsx(S.Col,{md:12,children:e&&e.length>0?o.jsx("div",{children:o.jsxs(S.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:"align-top",children:"Text"}),o.jsx("th",{className:"align-top",children:"Time"}),o.jsx("th",{className:"text-center",children:"Is read"}),o.jsx("th",{className:"text-center",children:"Action"})]})}),o.jsx("tbody",{children:e.map(c=>o.jsxs("tr",{children:[o.jsx("td",{className:"align-middle",children:c.text}),o.jsx("td",{className:"align-middle",children:ln(c.time,"yyyy-MM-DD HH:mm")}),o.jsx("td",{className:`${L["control-input"]} text-center align-middle`,children:o.jsx(S.Input,{type:"checkbox",id:`status-checkbox-${c.id}`,checked:c.isRead,onChange:()=>s(c.id,!c.isRead)})}),o.jsx("td",{className:"text-center align-middle",children:["AssessmentAssignment","NewConferenceCreated","NewSessionCreated","CertificateApproved"].includes(c.source)&&o.jsx(Yk_,{className:"cursor-pointer",size:rI_,title:"Detail",onClick:()=>r(c)})})]},c.id))})]})}):o.jsx(I_,{label:"notification"})}),o.jsx(S.Col,{md:12,children:o.jsx(C_,{filters:_,totalRecordCount:t,changePageSize:c=>n({pageSize:c}),changePage:c=>n({currentPage:c})})})]})]})},wa={"app-alert":"_app-alert_1j0hk_1","app-alert--success":"_app-alert--success_1j0hk_17"},lI_=({className:e=""})=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`${e}`,children:[o.jsx("rect",{width:"20",height:"20",rx:"10",fill:"white"}),o.jsx("circle",{cx:"10",cy:"10",r:"10",fill:"#0F9655"}),o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9703 6.04351C16.3143 6.34927 16.3453 6.876 16.0395 7.21999L9.37284 14.72C9.22036 14.8915 9.00389 14.9926 8.77448 14.9993C8.54507 15.0061 8.32303 14.9179 8.16074 14.7556L5.24408 11.8389C4.91864 11.5135 4.91864 10.9859 5.24408 10.6604C5.56951 10.335 6.09715 10.335 6.42259 10.6604L8.71432 12.9522L14.7938 6.11271C15.0996 5.76873 15.6263 5.73774 15.9703 6.04351Z",fill:"#FFFFFF"})]}),dI_=()=>{var r;const e=ke.useDispatch(),t=ke.useSelector(l=>l.common.alert),_=C.useRef(null),n=()=>{e(he({message:""})),_&&_.current&&clearTimeout(_.current)};C.useEffect(()=>{var l;(l=t.message)!=null&&l.length&&(_&&_.current&&clearTimeout(_.current),_.current=setTimeout(()=>{e(he({message:""}))},3e3))},[t]);const s=!window.location.pathname.startsWith("/admin");return((r=t.message)==null?void 0:r.length)>0?o.jsx("div",{className:`app-alert ${s?`${wa["app-alert"]} ${wa[`app-alert--${t.type}`]}`:""}`,children:o.jsxs(S.Alert,{color:t.type,isOpen:t.message.length>0,onDismiss:s?n:void 0,children:[t.type==="success"&&s&&o.jsx(lI_,{className:"mr-2"}),t.message]})}):null},uI_=nt.object({name:nt.string().required("Name is required")}),mI_=(e,t)=>{const{targetMedia:_,onConfirm:n}=e,s=_!=null&&_.key?"Update":"Create",r=_!=null&&_.key?"Rename":"Folder";return o.jsx(c_.Formik,{initialValues:{name:_==null?void 0:_.name},enableReinitialize:!0,validationSchema:uI_,onSubmit:(l,h)=>{n&&n(l),h.resetForm()},children:l=>{const{values:h,touched:c,errors:g,handleChange:p,handleBlur:w,handleSubmit:v}=l;return o.jsx(cn,{header:r,confirmText:s,onConfirm:v,ref:t,children:o.jsx(S.Row,{children:o.jsxs(S.Col,{md:12,children:[o.jsx(S.Input,{name:"name",placeholder:`Enter your ${_!=null&&_.key?"file":"folder"} name`,value:h.name,onChange:p,onBlur:w("question")}),c.name&&g.name&&o.jsx(kt,{text:g.name})]})})})}})},hI_=C.forwardRef(mI_),gI_=({isLibrary:e,step:t,breadcumb:_,currentPrefix:n,targetMedia:s,handleSelectFile:r,handleCreateFolder:l,handleRenameFile:h,handleGoBack:c,handleDownloadMedia:g,handleDeleteMediaOrFolder:p,showErrorAlert:w,className:v})=>{const A=C.useRef(null),I=C.useRef(null),E=()=>{var k;return(k=A==null?void 0:A.current)==null?void 0:k.toggle()},$=()=>o.jsxs(S.Row,{className:"p-2 pl-3",children:[!!t&&o.jsxs(S.Button,{className:"mr-2",color:"secondary",onClick:c,children:[o.jsx(I$_,{}),o.jsx(S.Label,{className:`ml-1 h6 m-0 ${v}`,children:"Go up"})]}),s&&!s.isFolder&&o.jsxs(S.Button,{className:"mr-2",color:"success",onClick:g,children:[o.jsx(C$_,{}),o.jsx(S.Label,{className:`ml-1 h6 m-0 ${v}`,children:"Download"})]}),s&&!e&&o.jsxs(S.Button,{className:"mr-2",color:"danger",onClick:p,children:[o.jsx(T$_,{}),o.jsx(S.Label,{className:`ml-1 h6 m-0 ${v}`,children:"Delete"})]}),s&&!e&&!s.isFolder&&o.jsxs(S.Button,{className:"mr-2",color:"primary",onClick:E,children:[o.jsx(S$_,{}),o.jsx(S.Label,{className:`ml-1 h6 m-0 ${v}`,children:"Rename"})]}),!s&&!e&&o.jsxs(S.Button,{className:"mr-2",color:"success",onClick:E,children:[o.jsx(E$_,{}),o.jsx(S.Label,{className:`ml-1 h6 m-0 ${v}`,children:"New folder"})]}),!s&&!e&&o.jsxs(S.Button,{className:"mr-2",color:"info",onClick:()=>{var k;return(k=I==null?void 0:I.current)==null?void 0:k.click()},children:[o.jsx(A$_,{}),o.jsx(S.Label,{className:`ml-1 h6 m-0 ${v}`,children:"Upload"})]}),_&&o.jsx(S.Col,{className:"h-100 d-flex align-items-center",children:_})]});return o.jsxs("div",{children:[$(),o.jsx(hI_,{ref:A,targetMedia:s,onConfirm:async k=>{k.name!=""?s&&!s.isFolder?(E(),await h(k.name)):(E(),await l(n,k.name)):w("Name can't be empty")}}),o.jsx("input",{type:"file",id:"customMediaUpload",ref:I,style:{display:"none"},onChange:async k=>{var j;const T=(j=k==null?void 0:k.target)==null?void 0:j.files[0];T&&await r({key:n,file:T})}})]})},pI_=C.memo(gI_),is={"media-wrapper":"_media-wrapper_1nc2k_6","media-image":"_media-image_1nc2k_11","media-image-selected":"_media-image-selected_1nc2k_17","media-title":"_media-title_1nc2k_21","filter-media-file":"_filter-media-file_1nc2k_30"},$_={USER_CONVERSATION_AVATAR:"images/user.png",GROUP_CONVERSATION_AVATAR:"images/group.png",LOGO:"images/logoV1-1.png",LOGO_HEADER:"images/logo-header.png",LOGO_MINIMIZED:"images/logo-small.png",DOCS_IMAGE:"images/docs.png",AUDIO_IMAGE:"images/audio.png",PHOTO_IMAGE:"images/image.png",VIDEO_IMAGE:"images/video.png",FOLDER_IMAGE:"images/folder.png",UNKNOW_IMAGE:"images/unknow.png"};var Lt=(e=>(e[e.IMAGE=0]="IMAGE",e[e.VIDEO=1]="VIDEO",e[e.AUDIO=2]="AUDIO",e[e.DOC=3]="DOC",e[e.UNKNOW=4]="UNKNOW",e))(Lt||{});const fI_=["png","jpg","jpeg","gif"],yI_=["mp4","mp4v"],wI_=["txt","pdf","doc","docx","xls","csv"],vI_=["wav","mp3"],Or=e=>{if(e){if(fI_.includes(e))return Lt.IMAGE;if(yI_.includes(e))return Lt.VIDEO;if(wI_.includes(e))return Lt.DOC;if(vI_.includes(e))return Lt.AUDIO}return Lt.UNKNOW},bI_=e=>{if(e.isFolder)return $_.FOLDER_IMAGE;const t=Or(e.extension);return t===Lt.IMAGE?$_.PHOTO_IMAGE:t===Lt.VIDEO?$_.VIDEO_IMAGE:t===Lt.AUDIO?$_.AUDIO_IMAGE:t===Lt.DOC?$_.DOCS_IMAGE:$_.UNKNOW_IMAGE},$I_=({media:e,isTarget:t,className:_})=>{const n=bI_(e);return o.jsxs(S.Card,{className:`${t?is["media-image-selected"]:""} border-0 `,children:[o.jsx(S.CardImg,{className:`${is["media-image"]} p-1`,top:!0,width:"90%",src:n,alt:e.name}),o.jsx(S.CardBody,{className:"p-1",style:{height:45},children:o.jsx(S.CardTitle,{tag:"h6",className:`${is["media-title"]} ${_}`,children:e.name})})]})},kI_=C.memo($I_),xI_=({changeFilters:e,className:t})=>{const{t:_}=yt.useTranslation(),[n,s]=C.useState(),r=[{value:Lt.IMAGE,label:_("images")},{value:Lt.AUDIO,label:_("audios")},{value:Lt.DOC,label:_("docs")},{value:Lt.VIDEO,label:_("videos")}];return o.jsxs(S.Row,{className:`${is["filter-media-file"]}`,children:[o.jsx(S.Col,{sm:8,children:o.jsx(vs,{initValue:"",onSearch:l=>e({searchString:l}),placeholder:_("type_something_to_search_by_file_name"),className:t})}),o.jsx(S.Col,{sm:4,children:o.jsx(D_,{value:n,isMulti:!0,options:r,onChange:l=>{s(l);const h=l.map(c=>c.value);e({types:h})},className:t})})]})},Gr=Y.createAction("gallery/setGallery"),a_=Y.createAction("gallery/setTargetMedia"),II_=`${ht}/api/file`,CI_=e=>xe.get(`${II_}`,{params:e}),SI_="Gallery",AI_={searchString:""},Br=(e=!1)=>{const t=ke.useSelector(P=>P.gallery.mediaList),_=ke.useSelector(P=>P.gallery.totalItems),n=ke.useSelector(P=>P.gallery.targetMedia),s=ke.useDispatch(),[r,l]=C.useState(),[h,c]=C.useState(Object.assign({...AI_},e?{isLibrary:!0}:{})),[g,p]=C.useState({link:"",step:0}),w=P=>{P.isFolder&&(c({prefix:P.key,isLibrary:e}),P.key&&p({link:P.key,step:g.step+1}))},v=()=>{const{link:P,step:D}=g;if(!P||P==""||D<1)return;let O=P.split("/");O[O.length-1]===""?p({link:`${O.splice(0,O.length-2).join("/")}/`,step:D-1}):(O.pop(),p({link:`${O.join("/")}/`,step:D-1}))},A=P=>{s(a_({targetMedia:void 0})),n?P.key===n.key?s(a_({targetMedia:void 0})):s(a_({targetMedia:P})):s(a_({targetMedia:P}))},I=async P=>{n!=null&&n.key&&P&&(s(me(!0)),await w1_(n.key,P),s(a_({targetMedia:void 0})),s(me(!1)),R())},E=()=>{if(n!=null&&n.key){const P=Jt(n.key);window.open(P,"_blank")}else s(he({type:"danger",message:"Error to download media, please try later."}))},$=P=>{he({type:"danger",message:P})},k=async()=>{n!=null&&n.key?s(Xt({isOpen:!0,type:"warning",message:`Do you want to remove this ${n.isFolder?"folder":"file"}`,onConfirm:async()=>{s(me(!0)),n.isFolder?(await f1_(n.key||""),s(a_({targetMedia:void 0}))):(await p1_((n==null?void 0:n.key)||""),s(a_({targetMedia:void 0}))),s(me(!1)),R()}})):s(he({type:"danger",message:"Error to delete media, please try later."}))},T=async(P,D)=>{D&&(await y1_(P,D),R())},j=P=>c({...h,...P}),R=C.useCallback(async()=>{var P,D;s(me(!0));try{const O=await CI_(h);s(Gr({mediaList:O.data,totalItems:O.data.length||0}))}catch(O){s(he({type:"danger",message:((D=(P=O.response)==null?void 0:P.data)==null?void 0:D.title)||O.message}))}s(me(!1))},[s,h]);C.useEffect(()=>{document.title=SI_,s(a_({targetMedia:void 0}))},[]),C.useEffect(()=>{j({prefix:g.link})},[g.link]),C.useEffect(()=>{R()},[h]),C.useEffect(()=>{async function P(){var D,O;if(!e){s(me(!0));try{if(r){const{file:G,key:W}=r,{name:Q}=G,B=W,se=new FormData;se.append("file",G,Q),se.append("customKey",(B==null?void 0:B.slice(0,-1))||""),await Li(se),R()}}catch(G){s(he({type:"danger",message:((O=(D=G.response)==null?void 0:D.data)==null?void 0:O.title)||G.message}))}s(me(!1))}}P()},[r]);const M=C.useMemo(()=>{var P;try{const D=(P=g.link)==null?void 0:P.split("/");return D.splice(2,D.length).join("/")}catch{return""}},[g.link]);return{mediaList:t,filters:h,totalItems:_,targetMedia:n,router:g,breadcrumb:M,getData:R,changeFilters:j,handleSelectFile:l,handleOpenFolder:w,handleSelectMedia:A,handleRenameFile:I,handleDownloadMedia:E,handleDeleteMediaOrFolder:k,handleCreateFolder:T,handleGoBack:v,showErrorAlert:$}},Vr=({height:e,isLibrary:t})=>{const{classFontSize:_}=Jn(),{filters:n,mediaList:s,targetMedia:r,router:l,breadcrumb:h,changeFilters:c,handleOpenFolder:g,handleSelectMedia:p,handleSelectFile:w,handleCreateFolder:v,handleRenameFile:A,handleDownloadMedia:I,handleDeleteMediaOrFolder:E,handleGoBack:$,showErrorAlert:k}=Br(t),T=()=>s.map(j=>{const R=(r==null?void 0:r.key)===j.key;return o.jsx(S.Col,{className:"p-2",xs:"auto",children:o.jsx("div",{onDoubleClick:()=>g(j),onClick:()=>p(j),className:is["media-wrapper"],children:o.jsx(kI_,{media:j,isTarget:R,className:` ${L["custom-font-size"]}`})})},j.key)});return o.jsxs(S.Card,{className:L[_],children:[o.jsxs(S.CardHeader,{children:[o.jsx(xI_,{className:`${L["custom-font-size"]}`,changeFilters:c,filters:n}),o.jsx(pI_,{isLibrary:t,step:l.step,breadcumb:h,currentPrefix:n.prefix||"",targetMedia:r,handleSelectFile:w,handleCreateFolder:v,handleRenameFile:A,handleDownloadMedia:I,handleDeleteMediaOrFolder:E,handleGoBack:$,showErrorAlert:k,className:` ${L["custom-font-size"]}`})]}),o.jsx(S.CardBody,{style:{minHeight:e},children:o.jsx(S.Row,{className:"p-1",children:T()})})]})},EI_=({targetMedia:e})=>{var s;const{t}=yt.useTranslation();if(!e||e!=null&&e.isFolder)return o.jsx("div",{});const _=Or(e.extension),n=Jt(e.key||"");return o.jsxs(S.Card,{className:"position-sticky",children:[o.jsx(S.CardHeader,{children:(e==null?void 0:e.name)||"Media name"}),_===Lt.IMAGE&&o.jsx(S.CardImg,{className:"p-2",src:n,loading:"lazy"}),_===Lt.VIDEO&&o.jsx("div",{className:"p-2",children:o.jsx("video",{id:e.key,width:"100%",height:"100%",controls:!0,children:o.jsx("source",{src:n})})}),_===Lt.AUDIO&&o.jsx("div",{className:"p-2",children:o.jsx("audio",{controls:!0,className:"w-100",children:o.jsx("source",{src:n})})}),o.jsxs(S.CardBody,{children:[o.jsx(S.CardTitle,{tag:"h6",children:t("general_info")}),o.jsxs(S.CardText,{children:[t("file_extension"),": ",(s=e.extension)==null?void 0:s.toUpperCase()]})]})]})},TI_=C.memo(EI_),jI_="media_gallery",qI_=({isLibrary:e})=>{const{t}=yt.useTranslation(),_=ke.useSelector(n=>n.gallery.targetMedia);return o.jsxs("div",{className:"fadeIn animated",children:[!e&&o.jsx("h5",{className:"mb-2",children:t(jI_)}),o.jsxs(S.Row,{className:"mb-2",children:[o.jsx(S.Col,{md:8,children:o.jsx(Vr,{height:"100vh",isLibrary:e})}),o.jsx(S.Col,{md:4,children:o.jsx(TI_,{targetMedia:_},_==null?void 0:_.key)})]})]})},NI_=`${ht}/api/academicclass`,PI_=()=>xe.get(NI_),RI_=e=>{const[t,_]=C.useState([]);C.useEffect(()=>{n()},[]);const n=async()=>{try{const h=await PI_();_(h.data.items)}catch(h){console.error(h)}},{id:s}=e,r=t.map(h=>({id:h.id,value:h.id,label:h.name})),l=s&&r.find(h=>h.value===s)||null;return o.jsx(p_,{options:r,value:l,...e})},LI_=()=>o.jsx("div",{children:"District school list"});function Hn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Nn=()=>Math.random().toString(36).substring(7).split("").join("."),MI_={INIT:`@@redux/INIT${Nn()}`,REPLACE:`@@redux/REPLACE${Nn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Nn()}`},rs=MI_;function zI_(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function DI_(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(GI_(e))return"date";if(OI_(e))return"error";const _=FI_(e);switch(_){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return _}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function FI_(e){return typeof e.constructor=="function"?e.constructor.name:null}function OI_(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function GI_(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function BI_(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=DI_(e)),t}function va(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function VI_(e,t,_,n){const s=Object.keys(t),r=_&&_.type===rs.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(s.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!zI_(e))return`The ${r} has unexpected type of "${BI_(e)}". Expected argument to be an object with the following keys: "${s.join('", "')}"`;const l=Object.keys(e).filter(h=>!t.hasOwnProperty(h)&&!n[h]);if(l.forEach(h=>{n[h]=!0}),!(_&&_.type===rs.REPLACE)&&l.length>0)return`Unexpected ${l.length>1?"keys":"key"} "${l.join('", "')}" found in ${r}. Expected to find one of the known reducer keys instead: "${s.join('", "')}". Unexpected keys will be ignored.`}function HI_(e){Object.keys(e).forEach(t=>{const _=e[t];if(typeof _(void 0,{type:rs.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?Hn(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof _(void 0,{type:rs.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Hn(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${rs.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function WI_(e){const t=Object.keys(e),_={};for(let l=0;l<t.length;l++){const h=t[l];process.env.NODE_ENV!=="production"&&typeof e[h]>"u"&&va(`No reducer provided for key "${h}"`),typeof e[h]=="function"&&(_[h]=e[h])}const n=Object.keys(_);let s;process.env.NODE_ENV!=="production"&&(s={});let r;try{HI_(_)}catch(l){r=l}return function(h={},c){if(r)throw r;if(process.env.NODE_ENV!=="production"){const w=VI_(h,_,c,s);w&&va(w)}let g=!1;const p={};for(let w=0;w<n.length;w++){const v=n[w],A=_[v],I=h[v],E=A(I,c);if(typeof E>"u"){const $=c&&c.type;throw new Error(process.env.NODE_ENV==="production"?Hn(14):`When called with an action of type ${$?`"${String($)}"`:"(unknown type)"}, the slice reducer for key "${v}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}p[v]=E,g=g||E!==I}return g=g||n.length!==Object.keys(h).length,g?p:h}}const ba={sidebarShow:"responsive",isLoading:!1,alert:{type:"",message:""},modal:{isOpen:!1},user:null,currentStudentId:parseInt(localStorage.getItem("currentStudentId")??"0"),currentStudentUserId:localStorage.getItem("currentStudentUserId")||"",currentStudentName:localStorage.getItem("currentStudentName")||"",turnOffPassWhenChangeMode:!1,menuBar:!0,defaultFontSize:16,isEnableIEP:!0,isEnableSurvey:!1,isConversationOneToOne:!1,loadUnreadNotification:!1,language:Hs,isLoginGoogle:!1,inforUserGoogle:null},UI_=Y.createReducer(ba,e=>{e.addCase(me,(t,_)=>{t.isLoading=_.payload}).addCase(Xt,(t,_)=>{t.modal=_.payload}).addCase(nn,(t,_)=>{t.user=_.payload}).addCase(wb_,(t,_)=>{t.sidebarShow=_.payload}).addCase(hi,(t,_)=>{t.inforUserGoogle=_.payload}).addCase(he,(t,_)=>{t.alert=_.payload}).addCase(Ye,(t,_)=>(localStorage.removeItem("currentStudentId"),localStorage.removeItem("currentStudentUserId"),localStorage.removeItem("currentStudentName"),ba)).addCase(bi,(t,_)=>{t.currentStudentId=_.payload}).addCase($i,(t,_)=>{t.currentStudentUserId=_.payload}).addCase(ki,(t,_)=>{t.currentStudentName=_.payload}).addCase(xi,(t,_)=>{t.turnOffPassWhenChangeMode=_.payload}).addCase(gi,(t,_)=>{t.menuBar=_.payload}).addCase(fi,(t,_)=>{t.isEnableIEP=_.payload}).addCase(yi,(t,_)=>{t.isEnableSurvey=_.payload}).addCase(wi,(t,_)=>{t.isConversationOneToOne=_.payload}).addCase(vi,(t,_)=>{t.language=_.payload}).addCase(pi,(t,_)=>{t.defaultFontSize=_.payload}).addCase(Ii,(t,_)=>{t.loadUnreadNotification=_.payload})}),Hr=Y.createAction("classes/setClassList"),$a={classList:[],totalItems:0},XI_=Y.createReducer($a,e=>{e.addCase(Hr,(t,_)=>{t.classList=_.payload.classList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>$a)}),Wr=Y.createAction("conferenceRubric/setConferenceRubricList"),ka={conferenceRubricList:[],totalItems:0},YI_=Y.createReducer(ka,e=>{e.addCase(Wr,(t,_)=>{t.conferenceRubricList=_.payload.conferenceRubricList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>ka)}),xa={faqList:[],totalItems:0},ZI_=Y.createReducer(xa,e=>{e.addCase(zi,(t,_)=>{t.faqList=_.payload.faqList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>xa)}),Ia={skillList:[],totalItems:0},JI_=Y.createReducer(Ia,e=>{e.addCase(Fi,(t,_)=>{t.skillList=_.payload.skillList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Ia)}),Ca={emailTemplateList:[],totalItems:0},QI_=Y.createReducer(Ca,e=>{e.addCase(Ni,(t,_)=>{t.emailTemplateList=_.payload.emailTemplateList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Ca)}),Ur=Y.createAction("suggestionBank/setSuggestionList"),Sa={suggestionList:[],totalItems:0},KI_=Y.createReducer(Sa,e=>{e.addCase(Ur,(t,_)=>{t.suggestionList=_.payload.suggestionList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Sa)}),Xr=Y.createAction("learningStrategy/setStrategyList"),Aa={strategyList:[],totalItems:0},eC_=Y.createReducer(Aa,e=>{e.addCase(Xr,(t,_)=>{t.strategyList=_.payload.strategyList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Aa)}),Yr=Y.createAction("subjects/setSubjectList"),Ea={subjectList:[],totalItems:0},tC_=Y.createReducer(Ea,e=>{e.addCase(Yr,(t,_)=>{t.subjectList=_.payload.subjectList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Ea)}),Zr=Y.createAction("learningSupportCategories/setLearningSupportCategoryList"),Ta={learningSupportCategoryList:[],totalItems:0},_C_=Y.createReducer(Ta,e=>{e.addCase(Zr,(t,_)=>{t.learningSupportCategoryList=_.payload.learningSupportCategoryList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Ta)}),Jr=Y.createAction("questionBank/setQuestionList"),ja={questionList:[],totalItems:0},sC_=Y.createReducer(ja,e=>{e.addCase(Jr,(t,_)=>{t.questionList=_.payload.questionList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>ja)}),Qr=Y.createAction("badges/setBadgeList"),qa={badgeList:[],totalItems:0},nC_=Y.createReducer(qa,e=>{e.addCase(Qr,(t,_)=>{t.badgeList=_.payload.badgeList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>qa)}),Kr=Y.createAction("semester/setSemesterList"),oC_={semesterList:[],totalItems:0},aC_=Y.createReducer(oC_,e=>{e.addCase(Kr,(t,_)=>{t.semesterList=_.payload.semesterList,t.totalItems=_.payload.totalItems})}),ec=Y.createAction("assignment/setAssignmentList"),Na={assignmentList:[],totalItems:0},iC_=Y.createReducer(Na,e=>{e.addCase(ec,(t,_)=>{t.assignmentList=_.payload.assignmentList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Na)}),tc=Y.createAction("goalExamples/setGoalExampleList"),Pa={goalExampleList:[],totalItems:0},rC_=Y.createReducer(Pa,e=>{e.addCase(tc,(t,_)=>{t.goalExampleList=_.payload.goalExampleList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Pa)}),Ra={userList:[],totalItems:0,studentList:[]},cC_=Y.createReducer(Ra,e=>{e.addCase(Ws,(t,_)=>{t.userList=_.payload.userList,t.totalItems=_.payload.totalItems}).addCase(Bi,(t,_)=>{t.studentList=_.payload}).addCase(Ye,(t,_)=>Ra)}),_c=Y.createAction("feedback/setFeedbackList"),La={feedbackList:[],totalItems:0},lC_=Y.createReducer(La,e=>{e.addCase(_c,(t,_)=>{t.feedbackList=_.payload.feedbackList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>La)}),sc=Y.createAction("assessments/setAssessmentList"),Ma={assessmentList:[],totalItems:0},dC_=Y.createReducer(Ma,e=>{e.addCase(sc,(t,_)=>{t.assessmentList=_.payload.assessmentList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Ma)}),nc=Y.createAction("reflectionForms/setReflectionList"),za={reflectionList:[],totalItems:0},uC_=Y.createReducer(za,e=>{e.addCase(nc,(t,_)=>{t.reflectionList=_.payload.reflectionList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>za)}),oc=Y.createAction("reflectionForms/setReflectionResultList"),Da={reflectionResultList:[],totalItems:0},mC_=Y.createReducer(Da,e=>{e.addCase(oc,(t,_)=>{t.reflectionResultList=_.payload.reflectionResultList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Da)}),ac=Y.createAction("questionByCategory/setQuestionByCategory"),ic=Y.createAction("questionByCategory/setSelectQuestion"),hC_=Y.createAction("questionByCategory/setUnSelectQuestion"),rc=Y.createAction("questionByCategory/setMoveItemQuestion"),cc=Y.createAction("questionByCategory/setEditItemQuesion"),lc=Y.createAction("questionByCategory/setResetQuestionList"),Fa={questionByCategoryList:[],selectedQuestions:[],selectQuestion:[]},Fs=(e,t)=>{var _=new Set(e.map(s=>s.id)),n=[...e,...t.filter(s=>!_.has(s.id))];return n},gC_=Y.createReducer(Fa,e=>{e.addCase(ac,(t,_)=>{t.questionByCategoryList=_.payload,t.selectedQuestions.length>0&&(t.questionByCategoryList=t.questionByCategoryList.filter(n=>!t.selectedQuestions.some(s=>s.id===n.id)))}),e.addCase(ic,(t,_)=>{let n=t.selectQuestion.findIndex(s=>s.id===_.payload.id);n===-1?t.selectQuestion.push(_.payload):t.selectQuestion.splice(n,1)}),e.addCase(hC_,(t,_)=>{t.selectQuestion=_.payload}),e.addCase(rc,(t,_)=>{switch(_.payload){case"right":t.selectedQuestions=Fs(t.selectedQuestions,t.selectQuestion),t.questionByCategoryList=t.questionByCategoryList.filter(r=>!t.selectedQuestions.some(l=>l.id===r.id)),t.selectQuestion=[];break;case"right-all":t.selectedQuestions=Fs(t.selectedQuestions,t.questionByCategoryList),t.selectQuestion=[],t.questionByCategoryList=[];break;case"left":t.questionByCategoryList=Fs(t.questionByCategoryList,t.selectQuestion),t.selectedQuestions=t.selectedQuestions.filter(r=>!t.selectQuestion.some(l=>l.id===r.id)),t.selectQuestion=[];break;case"left-all":t.questionByCategoryList=Fs(t.questionByCategoryList,t.selectedQuestions),t.selectedQuestions=[],t.selectQuestion=[];break;case"move-up":const n=t.selectedQuestions.findIndex(r=>r.id===t.selectQuestion[0].id);n!==-1&&t.selectedQuestions.splice(n-1,0,t.selectedQuestions.splice(n,1)[0]);break;case"move-down":const s=t.selectedQuestions.findIndex(r=>r.id===t.selectQuestion[0].id);s!==-1&&t.selectedQuestions.splice(s+1,0,t.selectedQuestions.splice(s,1)[0]);break}}),e.addCase(cc,(t,_)=>{t.questionByCategoryList=[],t.selectedQuestions=_.payload}),e.addCase(lc,t=>{t.questionByCategoryList=[],t.selectedQuestions=[]}),e.addCase(Ye,(t,_)=>Fa)}),Oa={mailCategoryList:[]},pC_=Y.createReducer(Oa,e=>{e.addCase(on,(t,_)=>{t.mailCategoryList=_.payload}).addCase(Ye,(t,_)=>Oa)}),dc=Y.createAction("questionCate/setQuestionCateList"),Ga={questionCateList:[],totalItems:0},fC_=Y.createReducer(Ga,e=>{e.addCase(dc,(t,_)=>{t.questionCateList=_.payload.questionCateList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Ga)}),Ba={notificationList:[],totalItems:0,unReadNotification:0},yC_=Y.createReducer(Ba,e=>{e.addCase(Fr,(t,_)=>{t.notificationList=_.payload.notificationList,t.totalItems=_.payload.totalItems,t.unReadNotification=_.payload.unReadNotification}).addCase(tI_,(t,_)=>{t.unReadNotification=_.payload}).addCase(_I_,(t,_)=>{t.unReadNotification+=_.payload}).addCase(Ye,(t,_)=>Ba)}),uc=Y.createAction("myStudent/setMyStudentList"),Va={myStudentList:[],totalItems:0},wC_=Y.createReducer(Va,e=>{e.addCase(uc,(t,_)=>{t.myStudentList=_.payload}).addCase(Ye,(t,_)=>Va)}),mc=Y.createAction("assistants/setAssistantList"),Ha={assistantList:[]},vC_=Y.createReducer(Ha,e=>{e.addCase(mc,(t,_)=>{t.assistantList=_.payload}).addCase(Ye,(t,_)=>Ha)}),hc=Y.createAction("sessionTemplates/setSessionTemplateList"),Wa={sessionTemplateList:[],totalItems:0},bC_=Y.createReducer(Wa,e=>{e.addCase(hc,(t,_)=>{t.sessionTemplateList=_.payload.sessionTemplateList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Wa)}),gc=Y.createAction("sessionTemplateGeneralClasses/setSessionTemplateList"),Ua={sessionTemplateGeneralClassList:[],totalItems:0},$C_=Y.createReducer(Ua,e=>{e.addCase(gc,(t,_)=>{t.sessionTemplateGeneralClassList=_.payload.sessionTemplateGeneralClassList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Ua)}),pc=Y.createAction("tutorialScreens/setTutorialScreenList"),Xa={tutorialScreenList:[],totalItems:0},kC_=Y.createReducer(Xa,e=>{e.addCase(pc,(t,_)=>{t.tutorialScreenList=_.payload.tutorialScreenList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Xa)}),fc=Y.createAction("customAlerts/setCustomAlertList"),Ya={customAlertList:[],totalItems:0},xC_=Y.createReducer(Ya,e=>{e.addCase(fc,(t,_)=>{t.customAlertList=_.payload.customAlertList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Ya)}),Za={mediaList:[],totalItems:0,targetMedia:void 0},IC_=Y.createReducer(Za,e=>{e.addCase(Gr,(t,_)=>{t.mediaList=_.payload.mediaList,t.totalItems=_.payload.totalItems}).addCase(a_,(t,_)=>{t.targetMedia=_.payload.targetMedia}).addCase(Ye,(t,_)=>Za)}),yc=Y.createAction("dashboard/addTab"),wc=Y.createAction("dashboard/closeTab"),vc=Y.createAction("dashboard/editTab"),bc=Y.createAction("dashboard/clearTab"),CC_={tabs:localStorage.getItem("myTab")?JSON.parse(localStorage.getItem("myTab")??""):[]},SC_=Y.createReducer(CC_,e=>{e.addCase(yc,(t,_)=>t.tabs.some(n=>n.url===_.payload.url)?t:{...t,tabs:[_.payload,...t.tabs]}).addCase(wc,(t,_)=>{let n=JSON.parse(JSON.stringify(t.tabs));return delete n[_.payload],n=n.filter(Boolean),{...t,tabs:n}}).addCase(Ye,(t,_)=>(localStorage.removeItem("myTab"),{tabs:[]})).addCase(vc,(t,_)=>{const n=JSON.parse(JSON.stringify(t.tabs)),s=n.find(r=>_.payload.label===r.label);return s.url=_.payload.url,{...t,tabs:n}}).addCase(bc,(t,_)=>(localStorage.removeItem("myTab"),{tabs:[]}))}),$c=Y.createAction("sessionPlayer/changeNote"),kc=Y.createAction("sessionPlayer/changeTags"),xc=Y.createAction("sessionPlayer/answerQuestion"),Ic=Y.createAction("sessionPlayer/setSessionPlayer"),Cc=Y.createAction("sessionPlayer/setStartTime"),Ja={sessionId:0,session:{id:0,studentId:0,teacherId:0,duration:0,conferenceRubric:null,studentDefaultQuestions:[],teacherDefaultQuestions:[],additionalQuestions:[]},results:[],startTime:""},AC_=Y.createReducer(Ja,e=>{e.addCase(Ic,(t,_)=>_.payload).addCase($c,(t,_)=>{const{isConfidential:n,text:s}=_.payload,r=t.results.find(c=>c.isTeacherResult);if(!r)return t;const l=JSON.parse(JSON.stringify(r)),h=l.notes.find(c=>!!c.isConfidential===n);return h?h.text=s:l.notes.push({isConfidential:n,text:s}),{...t,results:t.results.map(c=>c.isTeacherResult?l:c)}}).addCase(kc,(t,_)=>{const n=_.payload,s=t.results.find(l=>l.isTeacherResult);if(!s)return t;const r=JSON.parse(JSON.stringify(s));return r.tags=n,{...t,results:t.results.map(l=>l.isTeacherResult?r:l)}}).addCase(xc,(t,_)=>{const{text:n,questionId:s,isTeacherResult:r}=_.payload,l=t.results.find(g=>g.isTeacherResult===r);if(!l)return t;const h=JSON.parse(JSON.stringify(l)),c=h.questionResponses.find(g=>g.questionId===s);return c?c.text=n:h.questionResponses.push({questionId:s,text:n}),{...t,results:t.results.map(g=>g.isTeacherResult===r?h:g)}}).addCase(Cc,(t,_)=>{const n=_.payload;if(!n)return t;t.startTime=n}).addCase(Ye,(t,_)=>Ja)}),Sc=Y.createAction("dataPlayer/setDataPlayer"),Ac=Y.createAction("dataPlayer/answerQuestionDataPlayer"),Qa={id:0,questions:[{id:0,text:"",type:"",subQuestions:[],answers:[]}],questionResponse:[]},EC_=Y.createReducer(Qa,e=>{e.addCase(Sc,(t,_)=>_.payload).addCase(Ac,(t,_)=>{const{questionId:n,text:s}=_.payload,r=t.questionResponse;if(!r)return t;const l=JSON.parse(JSON.stringify(r)),h=l.find(c=>c.questionId===n);return h?h.text=s:l.push({questionId:n,text:s}),{...t,questionResponse:l}}).addCase(Ye,(t,_)=>Qa)}),Ec=Y.createAction("certificates/setCertificateList"),Ka={certificateList:[],totalItems:0},TC_=Y.createReducer(Ka,e=>{e.addCase(Ec,(t,_)=>{t.certificateList=_.payload.certificateList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Ka)}),Tc=Y.createAction("improveMyClass/setImproveMyClass"),ei={improveMyClassList:[]},jC_=Y.createReducer(ei,e=>{e.addCase(Tc,(t,_)=>{t.improveMyClassList=_.payload}).addCase(Ye,(t,_)=>ei)}),jc=Y.createAction("setFilterWidget"),ti={filterWidget:"Year"},qC_=Y.createReducer(ti,e=>{e.addCase(jc,(t,_)=>{t.filterWidget=_.payload.filterWidget}).addCase(Ye,(t,_)=>ti)}),qc=Y.createAction("bandScores/setBandScoreList"),_i={bandScoreList:[],totalItems:0},NC_=Y.createReducer(_i,e=>{e.addCase(qc,(t,_)=>{t.bandScoreList=_.payload.bandScoreList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>_i)}),Nc=Y.createAction("schoolBlankDays/setSchoolBlankDayList"),si={schoolBlankDayList:[],totalItems:0},PC_=Y.createReducer(si,e=>{e.addCase(Nc,(t,_)=>{t.schoolBlankDayList=_.payload.schoolBlankDayList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>si)}),Pc=Y.createAction("navMobile/setStudentIdSelectedByTeacher"),ni={studentIdSelectedByTeacher:0},RC_=Y.createReducer(ni,e=>{e.addCase(Pc,(t,_)=>{t.studentIdSelectedByTeacher=_.payload}).addCase(Ye,(t,_)=>ni)}),LC_=WI_({common:UI_,classes:XI_,conferenceRubrics:YI_,faqs:ZI_,skills:JI_,emailTemplate:QI_,suggestionBank:KI_,learningStrategy:eC_,subjects:tC_,learningSupportCategories:_C_,questionBank:sC_,badges:nC_,semester:aC_,goalExamples:rC_,users:cC_,reflections:uC_,reflectionResults:mC_,feedbacks:lC_,assessments:dC_,questionByCategory:gC_,mailCategory:pC_,questionCate:fC_,notification:yC_,myStudent:wC_,assignments:iC_,assistants:vC_,sesstionTemplates:bC_,sessionTemplateGeneralClasses:$C_,tutorialScreens:kC_,customAlerts:xC_,gallery:IC_,dashboard:SC_,sessionPlayer:AC_,dataPlayer:EC_,certificate:TC_,improveMyClass:jC_,widget:qC_,bandScores:NC_,schoolBlankDays:PC_,navMobileReducer:RC_}),MC_=Y.configureStore({reducer:LC_,middleware:e=>e({serializableCheck:!1})}),zC_=async()=>{try{const e=O_();return!(!e||!(await $b_(e)).data)}catch{return!1}},DC_=(e,t)=>Array.isArray(e)?Array.isArray(t)?e.filter(n=>t.includes(n)).length>0:!0:!1,FC_=()=>xe.get(`${ht}/api/language`),OC_=e=>{const t=e==null?void 0:e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},GC_=(e,t)=>{let _=null;return(...n)=>{const s=()=>e(...n);clearTimeout(_),_=setTimeout(s,t)}},BC_=e=>{const t=document.createElement("p");t.innerHTML=e;const _=t.innerText;return t.remove(),_},VC_=()=>(Math.random()+1).toString(36).substring(7),HC_=13,Pn=15,WC_=()=>{const e=vt.useNavigate(),[t,_]=C.useState(!1),[n,s]=C.useState({minutes:0,timeLogout:""}),r=()=>{var g;try{return((g=localStorage==null?void 0:localStorage.getItem)==null?void 0:g.call(localStorage,"LAST_ACTIVITY_TIME"))??null}catch{return null}},l=()=>{localStorage.removeItem(qt),sessionStorage.removeItem(qt),localStorage.removeItem("ROLES"),localStorage.removeItem("LAST_ACTIVITY_TIME"),_(!1),e("/login",{replace:!0})},h=()=>{var E;if(!O_())return;const p=r();if(!p){(E=localStorage==null?void 0:localStorage.setItem)==null||E.call(localStorage,"LAST_ACTIVITY_TIME",new Date().toISOString());return}const w=m_.parse(p,"yyyy-MM-dd HH:mm",new Date),v=new Date,A=m_.differenceInMinutes(v,w);if(A>=Pn){l();return}const I=ln(m_.format(m_.addMinutes(v,Pn-A),"yyyy-MM-dd HH:mm"),"HH:mm");A>=HC_&&(s({minutes:A,timeLogout:I}),_(!0))};C.useEffect(()=>{const g=setInterval(()=>{h()},6e4);return()=>clearInterval(g)},[]);const c=()=>{_(!t)};return o.jsxs(S.Modal,{isOpen:t,toggle:c,size:"xs",children:[o.jsx(S.ModalHeader,{toggle:c,children:"Notification Logout"}),o.jsx(S.ModalBody,{children:`Are you still here? You have had no action for ${n==null?void 0:n.minutes} mins.
36
- Your account could be log out after ${Pn-(n==null?void 0:n.minutes)} mins at ${n==null?void 0:n.timeLogout} if you don't action.`}),o.jsx(S.ModalFooter,{className:"text-right",children:o.jsx(S.Button,{color:"primary",onClick:c,children:"Confirm"})})]})};exports.i18n=Wn;Object.defineProperty(exports,"I18nextProvider",{enumerable:!0,get:()=>yt.I18nextProvider});Object.defineProperty(exports,"useTranslation",{enumerable:!0,get:()=>yt.useTranslation});exports.ACCESS_TOKEN=qt;exports.ANSWER_EDITOR_HEIGHT=Xn;exports.AcademicClassSelector=RI_;exports.AddButton=hs;exports.BASE_URL=ht;exports.CHAT_CHANNEL=Hv_;exports.CommonAlert=dI_;exports.CommonHeader=j4_;exports.CommonModal=cn;exports.CreatableSelector=P4_;exports.CustomPagination=C_;exports.CustomSelector=D_;exports.CustomTab=Oi;exports.DATE_FORMAT=Un;exports.DATE_RESULT=li;exports.DEFAULT_FILTER=ci;exports.DEFAULT_LANGUAGE_CODE=Hs;exports.Dashboard=v$_;exports.DeleteButtonIcon=gs;exports.DetailActionButtons=Qn;exports.EMOTIONS=Xv_;exports.EditButtonIcon=q4_;exports.EmailTemplateDetail=q1_;exports.EmailTemplateList=W$_;exports.EmptyDataAlert=I_;exports.ErrorHandler=kt;exports.FULL_DATE_RESULT=Ov_;exports.FaqList=W1_;exports.FileInput=V4_;exports.GOOGLE_RECAPTCHA_KEY=Dv_;exports.GalleryList=qI_;exports.IS_USER_SESSION_BROWSER=k_;exports.Images=$_;exports.LANGUAGES=Zv_;exports.LICENSE_AGGRID=Gv_;exports.LinkEditButton=G_;exports.Loading=S4_;exports.Login=n$_;exports.MediaList=Vr;exports.NOTIFICATION_ALERT_KEY=ui;exports.NOTIFICATION_CHANNEL=Wv_;exports.NotFound=Zn;exports.NotificationList=cI_;exports.NotificationLogoutModal=WC_;exports.NotificationModal=E4_;exports.QUESTION_TYPES=Bv_;exports.QUESTION_TYPES_OPTIONS=Rn;exports.QuestionCategorySelector=O4_;exports.QuestionTypeSelector=R4_;exports.QuitPrompt=fs;exports.RequiredLabel=zt;exports.SUPPORTED_LANGUAGES_CODE=mi;exports.SchoolList=LI_;exports.ScrollToTop=A4_;exports.SearchBox=vs;exports.SearchBoxContainer=Ui;exports.SkillList=ak_;exports.StarRatingSelector=G4_;exports.SuggestionCategorySelector=z4_;exports.TAB_COLORS=Yv_;exports.TINY_MCE_API_KEY=zv_;exports.TheContent=x$_;exports.ToggleButton=B4_;exports.UploadFileButton=Dr;exports.UserContainer=d4_;exports.UserDetail=I4_;exports.addTab=yc;exports.answerQuestion=xc;exports.answerQuestionDataPlayer=Ac;exports.api=xe;exports.apiUpload=Yt;exports.canAccessRoute=DC_;exports.changeNote=$c;exports.changeTags=kc;exports.clearTab=bc;exports.closeTab=wc;exports.debounce=GC_;exports.editTab=vc;exports.editorConfig=Mi;exports.firstCheckToken=zC_;exports.generateRandomString=VC_;exports.getAccessToken=O_;exports.getFileUrl=Jt;exports.getInfo=kb_;exports.getLanguage=FC_;exports.getStaticFileUrl=g_;exports.getTextFromHTML=BC_;exports.isInViewport=OC_;exports.isLocalhost=ls;exports.reset=Ye;exports.setAlert=he;exports.setAssessmentList=sc;exports.setAssignmentList=ec;exports.setAssistantList=mc;exports.setBadgeList=Qr;exports.setBandScoreList=qc;exports.setCertificateList=Ec;exports.setClassList=Hr;exports.setConferenceRubricList=Wr;exports.setConversationOneToOne=wi;exports.setCurrentStudentId=bi;exports.setCurrentStudentName=ki;exports.setCurrentStudentUserId=$i;exports.setCustomAlertList=fc;exports.setDataPlayer=Sc;exports.setEditItemQuesion=cc;exports.setEnableIEP=fi;exports.setEnableSurvey=yi;exports.setFeedbackList=_c;exports.setFilterWidget=jc;exports.setGoalExampleList=tc;exports.setImproveMyClass=Tc;exports.setLanguage=vi;exports.setLearningSupportCategoryList=Zr;exports.setLoading=me;exports.setMailCategory=on;exports.setModal=Xt;exports.setMoveItemQuestion=rc;exports.setMyStudent=uc;exports.setQuestionByCategory=ac;exports.setQuestionCateList=dc;exports.setQuestionList=Jr;exports.setReflectionList=nc;exports.setReflectionResultList=oc;exports.setResetQuestionList=lc;exports.setSchoolBlankDayList=Nc;exports.setSelectQuestion=ic;exports.setSemesterList=Kr;exports.setSessionPlayer=Ic;exports.setSessionTemplateGeneralClassList=gc;exports.setSessionTemplateList=hc;exports.setStartTime=Cc;exports.setStrategyList=Xr;exports.setStudentIdSelectedByTeacher=Pc;exports.setStudentList=Bi;exports.setSubjectList=Yr;exports.setSuggestionList=Ur;exports.setTurnOffPassWhenChangeMode=xi;exports.setTutorialScreenList=pc;exports.setUnreadNotification=Ii;exports.setUser=nn;exports.setUserList=Ws;exports.showFontSize=pi;exports.showMenuBar=gi;exports.store=MC_;exports.systemCertificateUpload=u1_;exports.systemStudentBadge=d1_;exports.uploadFile=l1_;exports.useFilters=an;exports.useGalleryList=Br;exports.utcToLocalTime=ln;
34
+ */var pa;function X4_(){return pa||(pa=1,(function(e,t){(function(n,s){e.exports=s()})(window,function(){return(function(_){var n={};function s(r){if(n[r])return n[r].exports;var c=n[r]={i:r,l:!1,exports:{}};return _[r].call(c.exports,c,c.exports,s),c.l=!0,c.exports}return s.m=_,s.c=n,s.d=function(r,c,h){s.o(r,c)||Object.defineProperty(r,c,{enumerable:!0,get:h})},s.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},s.t=function(r,c){if(c&1&&(r=s(r)),c&8||c&4&&typeof r=="object"&&r&&r.__esModule)return r;var h=Object.create(null);if(s.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:r}),c&2&&typeof r!="string")for(var l in r)s.d(h,l,(function(g){return r[g]}).bind(null,l));return h},s.n=function(r){var c=r&&r.__esModule?function(){return r.default}:function(){return r};return s.d(c,"a",c),c},s.o=function(r,c){return Object.prototype.hasOwnProperty.call(r,c)},s.p="",s(s.s=3)})([(function(_,n,s){var r=this&&this.__extends||(function(){var E=function($,k){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,j){T.__proto__=j}||function(T,j){for(var R in j)j.hasOwnProperty(R)&&(T[R]=j[R])},E($,k)};return function($,k){E($,k);function T(){this.constructor=$}$.prototype=k===null?Object.create(k):(T.prototype=k.prototype,new T)}})();Object.defineProperty(n,"__esModule",{value:!0});var c=256,h=(function(){function E($){$===void 0&&($="="),this._paddingCharacter=$}return E.prototype.encodedLength=function($){return this._paddingCharacter?($+2)/3*4|0:($*8+5)/6|0},E.prototype.encode=function($){for(var k="",T=0;T<$.length-2;T+=3){var j=$[T]<<16|$[T+1]<<8|$[T+2];k+=this._encodeByte(j>>>18&63),k+=this._encodeByte(j>>>12&63),k+=this._encodeByte(j>>>6&63),k+=this._encodeByte(j>>>0&63)}var R=$.length-T;if(R>0){var j=$[T]<<16|(R===2?$[T+1]<<8:0);k+=this._encodeByte(j>>>18&63),k+=this._encodeByte(j>>>12&63),R===2?k+=this._encodeByte(j>>>6&63):k+=this._paddingCharacter||"",k+=this._paddingCharacter||""}return k},E.prototype.maxDecodedLength=function($){return this._paddingCharacter?$/4*3|0:($*6+7)/8|0},E.prototype.decodedLength=function($){return this.maxDecodedLength($.length-this._getPaddingLength($))},E.prototype.decode=function($){if($.length===0)return new Uint8Array(0);for(var k=this._getPaddingLength($),T=$.length-k,j=new Uint8Array(this.maxDecodedLength(T)),R=0,M=0,P=0,D=0,O=0,G=0,W=0;M<T-4;M+=4)D=this._decodeChar($.charCodeAt(M+0)),O=this._decodeChar($.charCodeAt(M+1)),G=this._decodeChar($.charCodeAt(M+2)),W=this._decodeChar($.charCodeAt(M+3)),j[R++]=D<<2|O>>>4,j[R++]=O<<4|G>>>2,j[R++]=G<<6|W,P|=D&c,P|=O&c,P|=G&c,P|=W&c;if(M<T-1&&(D=this._decodeChar($.charCodeAt(M)),O=this._decodeChar($.charCodeAt(M+1)),j[R++]=D<<2|O>>>4,P|=D&c,P|=O&c),M<T-2&&(G=this._decodeChar($.charCodeAt(M+2)),j[R++]=O<<4|G>>>2,P|=G&c),M<T-3&&(W=this._decodeChar($.charCodeAt(M+3)),j[R++]=G<<6|W,P|=W&c),P!==0)throw new Error("Base64Coder: incorrect characters for decoding");return j},E.prototype._encodeByte=function($){var k=$;return k+=65,k+=25-$>>>8&6,k+=51-$>>>8&-75,k+=61-$>>>8&-15,k+=62-$>>>8&3,String.fromCharCode(k)},E.prototype._decodeChar=function($){var k=c;return k+=(42-$&$-44)>>>8&-c+$-43+62,k+=(46-$&$-48)>>>8&-c+$-47+63,k+=(47-$&$-58)>>>8&-c+$-48+52,k+=(64-$&$-91)>>>8&-c+$-65+0,k+=(96-$&$-123)>>>8&-c+$-97+26,k},E.prototype._getPaddingLength=function($){var k=0;if(this._paddingCharacter){for(var T=$.length-1;T>=0&&$[T]===this._paddingCharacter;T--)k++;if($.length<4||k>2)throw new Error("Base64Coder: incorrect padding")}return k},E})();n.Coder=h;var l=new h;function g(E){return l.encode(E)}n.encode=g;function p(E){return l.decode(E)}n.decode=p;var w=(function(E){r($,E);function $(){return E!==null&&E.apply(this,arguments)||this}return $.prototype._encodeByte=function(k){var T=k;return T+=65,T+=25-k>>>8&6,T+=51-k>>>8&-75,T+=61-k>>>8&-13,T+=62-k>>>8&49,String.fromCharCode(T)},$.prototype._decodeChar=function(k){var T=c;return T+=(44-k&k-46)>>>8&-c+k-45+62,T+=(94-k&k-96)>>>8&-c+k-95+63,T+=(47-k&k-58)>>>8&-c+k-48+52,T+=(64-k&k-91)>>>8&-c+k-65+0,T+=(96-k&k-123)>>>8&-c+k-97+26,T},$})(h);n.URLSafeCoder=w;var v=new w;function A(E){return v.encode(E)}n.encodeURLSafe=A;function I(E){return v.decode(E)}n.decodeURLSafe=I,n.encodedLength=function(E){return l.encodedLength(E)},n.maxDecodedLength=function(E){return l.maxDecodedLength(E)},n.decodedLength=function(E){return l.decodedLength(E)}}),(function(_,n,s){Object.defineProperty(n,"__esModule",{value:!0});var r="utf8: invalid string",c="utf8: invalid source encoding";function h(p){for(var w=new Uint8Array(l(p)),v=0,A=0;A<p.length;A++){var I=p.charCodeAt(A);I<128?w[v++]=I:I<2048?(w[v++]=192|I>>6,w[v++]=128|I&63):I<55296?(w[v++]=224|I>>12,w[v++]=128|I>>6&63,w[v++]=128|I&63):(A++,I=(I&1023)<<10,I|=p.charCodeAt(A)&1023,I+=65536,w[v++]=240|I>>18,w[v++]=128|I>>12&63,w[v++]=128|I>>6&63,w[v++]=128|I&63)}return w}n.encode=h;function l(p){for(var w=0,v=0;v<p.length;v++){var A=p.charCodeAt(v);if(A<128)w+=1;else if(A<2048)w+=2;else if(A<55296)w+=3;else if(A<=57343){if(v>=p.length-1)throw new Error(r);v++,w+=4}else throw new Error(r)}return w}n.encodedLength=l;function g(p){for(var w=[],v=0;v<p.length;v++){var A=p[v];if(A&128){var I=void 0;if(A<224){if(v>=p.length)throw new Error(c);var E=p[++v];if((E&192)!==128)throw new Error(c);A=(A&31)<<6|E&63,I=128}else if(A<240){if(v>=p.length-1)throw new Error(c);var E=p[++v],$=p[++v];if((E&192)!==128||($&192)!==128)throw new Error(c);A=(A&15)<<12|(E&63)<<6|$&63,I=2048}else if(A<248){if(v>=p.length-2)throw new Error(c);var E=p[++v],$=p[++v],k=p[++v];if((E&192)!==128||($&192)!==128||(k&192)!==128)throw new Error(c);A=(A&15)<<18|(E&63)<<12|($&63)<<6|k&63,I=65536}else throw new Error(c);if(A<I||A>=55296&&A<=57343)throw new Error(c);if(A>=65536){if(A>1114111)throw new Error(c);A-=65536,w.push(String.fromCharCode(55296|A>>10)),A=56320|A&1023}}w.push(String.fromCharCode(A))}return w.join("")}n.decode=g}),(function(_,n,s){(function(r){var c=function(m){var y,f=new Float64Array(16);if(m)for(y=0;y<m.length;y++)f[y]=m[y];return f},h=function(){throw new Error("no PRNG")},l=new Uint8Array(16),g=new Uint8Array(32);g[0]=9;var p=c(),w=c([1]),v=c([56129,1]),A=c([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),I=c([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),E=c([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),$=c([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),k=c([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function T(m,y,f,i){m[y]=f>>24&255,m[y+1]=f>>16&255,m[y+2]=f>>8&255,m[y+3]=f&255,m[y+4]=i>>24&255,m[y+5]=i>>16&255,m[y+6]=i>>8&255,m[y+7]=i&255}function j(m,y,f,i,b){var z,F=0;for(z=0;z<b;z++)F|=m[y+z]^f[i+z];return(1&F-1>>>8)-1}function R(m,y,f,i){return j(m,y,f,i,16)}function M(m,y,f,i){return j(m,y,f,i,32)}function P(m,y,f,i){for(var b=i[0]&255|(i[1]&255)<<8|(i[2]&255)<<16|(i[3]&255)<<24,z=f[0]&255|(f[1]&255)<<8|(f[2]&255)<<16|(f[3]&255)<<24,F=f[4]&255|(f[5]&255)<<8|(f[6]&255)<<16|(f[7]&255)<<24,Z=f[8]&255|(f[9]&255)<<8|(f[10]&255)<<16|(f[11]&255)<<24,se=f[12]&255|(f[13]&255)<<8|(f[14]&255)<<16|(f[15]&255)<<24,pe=i[4]&255|(i[5]&255)<<8|(i[6]&255)<<16|(i[7]&255)<<24,le=y[0]&255|(y[1]&255)<<8|(y[2]&255)<<16|(y[3]&255)<<24,tt=y[4]&255|(y[5]&255)<<8|(y[6]&255)<<16|(y[7]&255)<<24,de=y[8]&255|(y[9]&255)<<8|(y[10]&255)<<16|(y[11]&255)<<24,je=y[12]&255|(y[13]&255)<<8|(y[14]&255)<<16|(y[15]&255)<<24,Ee=i[8]&255|(i[9]&255)<<8|(i[10]&255)<<16|(i[11]&255)<<24,Oe=f[16]&255|(f[17]&255)<<8|(f[18]&255)<<16|(f[19]&255)<<24,ze=f[20]&255|(f[21]&255)<<8|(f[22]&255)<<16|(f[23]&255)<<24,qe=f[24]&255|(f[25]&255)<<8|(f[26]&255)<<16|(f[27]&255)<<24,Le=f[28]&255|(f[29]&255)<<8|(f[30]&255)<<16|(f[31]&255)<<24,Ne=i[12]&255|(i[13]&255)<<8|(i[14]&255)<<16|(i[15]&255)<<24,re=b,ve=z,ie=F,ue=Z,fe=se,ce=pe,V=le,H=tt,ee=de,X=je,J=Ee,_e=Oe,$e=ze,Pe=qe,Ge=Le,Re=Ne,q,Ue=0;Ue<20;Ue+=2)q=re+$e|0,fe^=q<<7|q>>>25,q=fe+re|0,ee^=q<<9|q>>>23,q=ee+fe|0,$e^=q<<13|q>>>19,q=$e+ee|0,re^=q<<18|q>>>14,q=ce+ve|0,X^=q<<7|q>>>25,q=X+ce|0,Pe^=q<<9|q>>>23,q=Pe+X|0,ve^=q<<13|q>>>19,q=ve+Pe|0,ce^=q<<18|q>>>14,q=J+V|0,Ge^=q<<7|q>>>25,q=Ge+J|0,ie^=q<<9|q>>>23,q=ie+Ge|0,V^=q<<13|q>>>19,q=V+ie|0,J^=q<<18|q>>>14,q=Re+_e|0,ue^=q<<7|q>>>25,q=ue+Re|0,H^=q<<9|q>>>23,q=H+ue|0,_e^=q<<13|q>>>19,q=_e+H|0,Re^=q<<18|q>>>14,q=re+ue|0,ve^=q<<7|q>>>25,q=ve+re|0,ie^=q<<9|q>>>23,q=ie+ve|0,ue^=q<<13|q>>>19,q=ue+ie|0,re^=q<<18|q>>>14,q=ce+fe|0,V^=q<<7|q>>>25,q=V+ce|0,H^=q<<9|q>>>23,q=H+V|0,fe^=q<<13|q>>>19,q=fe+H|0,ce^=q<<18|q>>>14,q=J+X|0,_e^=q<<7|q>>>25,q=_e+J|0,ee^=q<<9|q>>>23,q=ee+_e|0,X^=q<<13|q>>>19,q=X+ee|0,J^=q<<18|q>>>14,q=Re+Ge|0,$e^=q<<7|q>>>25,q=$e+Re|0,Pe^=q<<9|q>>>23,q=Pe+$e|0,Ge^=q<<13|q>>>19,q=Ge+Pe|0,Re^=q<<18|q>>>14;re=re+b|0,ve=ve+z|0,ie=ie+F|0,ue=ue+Z|0,fe=fe+se|0,ce=ce+pe|0,V=V+le|0,H=H+tt|0,ee=ee+de|0,X=X+je|0,J=J+Ee|0,_e=_e+Oe|0,$e=$e+ze|0,Pe=Pe+qe|0,Ge=Ge+Le|0,Re=Re+Ne|0,m[0]=re>>>0&255,m[1]=re>>>8&255,m[2]=re>>>16&255,m[3]=re>>>24&255,m[4]=ve>>>0&255,m[5]=ve>>>8&255,m[6]=ve>>>16&255,m[7]=ve>>>24&255,m[8]=ie>>>0&255,m[9]=ie>>>8&255,m[10]=ie>>>16&255,m[11]=ie>>>24&255,m[12]=ue>>>0&255,m[13]=ue>>>8&255,m[14]=ue>>>16&255,m[15]=ue>>>24&255,m[16]=fe>>>0&255,m[17]=fe>>>8&255,m[18]=fe>>>16&255,m[19]=fe>>>24&255,m[20]=ce>>>0&255,m[21]=ce>>>8&255,m[22]=ce>>>16&255,m[23]=ce>>>24&255,m[24]=V>>>0&255,m[25]=V>>>8&255,m[26]=V>>>16&255,m[27]=V>>>24&255,m[28]=H>>>0&255,m[29]=H>>>8&255,m[30]=H>>>16&255,m[31]=H>>>24&255,m[32]=ee>>>0&255,m[33]=ee>>>8&255,m[34]=ee>>>16&255,m[35]=ee>>>24&255,m[36]=X>>>0&255,m[37]=X>>>8&255,m[38]=X>>>16&255,m[39]=X>>>24&255,m[40]=J>>>0&255,m[41]=J>>>8&255,m[42]=J>>>16&255,m[43]=J>>>24&255,m[44]=_e>>>0&255,m[45]=_e>>>8&255,m[46]=_e>>>16&255,m[47]=_e>>>24&255,m[48]=$e>>>0&255,m[49]=$e>>>8&255,m[50]=$e>>>16&255,m[51]=$e>>>24&255,m[52]=Pe>>>0&255,m[53]=Pe>>>8&255,m[54]=Pe>>>16&255,m[55]=Pe>>>24&255,m[56]=Ge>>>0&255,m[57]=Ge>>>8&255,m[58]=Ge>>>16&255,m[59]=Ge>>>24&255,m[60]=Re>>>0&255,m[61]=Re>>>8&255,m[62]=Re>>>16&255,m[63]=Re>>>24&255}function D(m,y,f,i){for(var b=i[0]&255|(i[1]&255)<<8|(i[2]&255)<<16|(i[3]&255)<<24,z=f[0]&255|(f[1]&255)<<8|(f[2]&255)<<16|(f[3]&255)<<24,F=f[4]&255|(f[5]&255)<<8|(f[6]&255)<<16|(f[7]&255)<<24,Z=f[8]&255|(f[9]&255)<<8|(f[10]&255)<<16|(f[11]&255)<<24,se=f[12]&255|(f[13]&255)<<8|(f[14]&255)<<16|(f[15]&255)<<24,pe=i[4]&255|(i[5]&255)<<8|(i[6]&255)<<16|(i[7]&255)<<24,le=y[0]&255|(y[1]&255)<<8|(y[2]&255)<<16|(y[3]&255)<<24,tt=y[4]&255|(y[5]&255)<<8|(y[6]&255)<<16|(y[7]&255)<<24,de=y[8]&255|(y[9]&255)<<8|(y[10]&255)<<16|(y[11]&255)<<24,je=y[12]&255|(y[13]&255)<<8|(y[14]&255)<<16|(y[15]&255)<<24,Ee=i[8]&255|(i[9]&255)<<8|(i[10]&255)<<16|(i[11]&255)<<24,Oe=f[16]&255|(f[17]&255)<<8|(f[18]&255)<<16|(f[19]&255)<<24,ze=f[20]&255|(f[21]&255)<<8|(f[22]&255)<<16|(f[23]&255)<<24,qe=f[24]&255|(f[25]&255)<<8|(f[26]&255)<<16|(f[27]&255)<<24,Le=f[28]&255|(f[29]&255)<<8|(f[30]&255)<<16|(f[31]&255)<<24,Ne=i[12]&255|(i[13]&255)<<8|(i[14]&255)<<16|(i[15]&255)<<24,re=b,ve=z,ie=F,ue=Z,fe=se,ce=pe,V=le,H=tt,ee=de,X=je,J=Ee,_e=Oe,$e=ze,Pe=qe,Ge=Le,Re=Ne,q,Ue=0;Ue<20;Ue+=2)q=re+$e|0,fe^=q<<7|q>>>25,q=fe+re|0,ee^=q<<9|q>>>23,q=ee+fe|0,$e^=q<<13|q>>>19,q=$e+ee|0,re^=q<<18|q>>>14,q=ce+ve|0,X^=q<<7|q>>>25,q=X+ce|0,Pe^=q<<9|q>>>23,q=Pe+X|0,ve^=q<<13|q>>>19,q=ve+Pe|0,ce^=q<<18|q>>>14,q=J+V|0,Ge^=q<<7|q>>>25,q=Ge+J|0,ie^=q<<9|q>>>23,q=ie+Ge|0,V^=q<<13|q>>>19,q=V+ie|0,J^=q<<18|q>>>14,q=Re+_e|0,ue^=q<<7|q>>>25,q=ue+Re|0,H^=q<<9|q>>>23,q=H+ue|0,_e^=q<<13|q>>>19,q=_e+H|0,Re^=q<<18|q>>>14,q=re+ue|0,ve^=q<<7|q>>>25,q=ve+re|0,ie^=q<<9|q>>>23,q=ie+ve|0,ue^=q<<13|q>>>19,q=ue+ie|0,re^=q<<18|q>>>14,q=ce+fe|0,V^=q<<7|q>>>25,q=V+ce|0,H^=q<<9|q>>>23,q=H+V|0,fe^=q<<13|q>>>19,q=fe+H|0,ce^=q<<18|q>>>14,q=J+X|0,_e^=q<<7|q>>>25,q=_e+J|0,ee^=q<<9|q>>>23,q=ee+_e|0,X^=q<<13|q>>>19,q=X+ee|0,J^=q<<18|q>>>14,q=Re+Ge|0,$e^=q<<7|q>>>25,q=$e+Re|0,Pe^=q<<9|q>>>23,q=Pe+$e|0,Ge^=q<<13|q>>>19,q=Ge+Pe|0,Re^=q<<18|q>>>14;m[0]=re>>>0&255,m[1]=re>>>8&255,m[2]=re>>>16&255,m[3]=re>>>24&255,m[4]=ce>>>0&255,m[5]=ce>>>8&255,m[6]=ce>>>16&255,m[7]=ce>>>24&255,m[8]=J>>>0&255,m[9]=J>>>8&255,m[10]=J>>>16&255,m[11]=J>>>24&255,m[12]=Re>>>0&255,m[13]=Re>>>8&255,m[14]=Re>>>16&255,m[15]=Re>>>24&255,m[16]=V>>>0&255,m[17]=V>>>8&255,m[18]=V>>>16&255,m[19]=V>>>24&255,m[20]=H>>>0&255,m[21]=H>>>8&255,m[22]=H>>>16&255,m[23]=H>>>24&255,m[24]=ee>>>0&255,m[25]=ee>>>8&255,m[26]=ee>>>16&255,m[27]=ee>>>24&255,m[28]=X>>>0&255,m[29]=X>>>8&255,m[30]=X>>>16&255,m[31]=X>>>24&255}function O(m,y,f,i){P(m,y,f,i)}function G(m,y,f,i){D(m,y,f,i)}var W=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Q(m,y,f,i,b,z,F){var Z=new Uint8Array(16),se=new Uint8Array(64),pe,le;for(le=0;le<16;le++)Z[le]=0;for(le=0;le<8;le++)Z[le]=z[le];for(;b>=64;){for(O(se,Z,F,W),le=0;le<64;le++)m[y+le]=f[i+le]^se[le];for(pe=1,le=8;le<16;le++)pe=pe+(Z[le]&255)|0,Z[le]=pe&255,pe>>>=8;b-=64,y+=64,i+=64}if(b>0)for(O(se,Z,F,W),le=0;le<b;le++)m[y+le]=f[i+le]^se[le];return 0}function B(m,y,f,i,b){var z=new Uint8Array(16),F=new Uint8Array(64),Z,se;for(se=0;se<16;se++)z[se]=0;for(se=0;se<8;se++)z[se]=i[se];for(;f>=64;){for(O(F,z,b,W),se=0;se<64;se++)m[y+se]=F[se];for(Z=1,se=8;se<16;se++)Z=Z+(z[se]&255)|0,z[se]=Z&255,Z>>>=8;f-=64,y+=64}if(f>0)for(O(F,z,b,W),se=0;se<f;se++)m[y+se]=F[se];return 0}function te(m,y,f,i,b){var z=new Uint8Array(32);G(z,i,b,W);for(var F=new Uint8Array(8),Z=0;Z<8;Z++)F[Z]=i[Z+16];return B(m,y,f,F,z)}function K(m,y,f,i,b,z,F){var Z=new Uint8Array(32);G(Z,z,F,W);for(var se=new Uint8Array(8),pe=0;pe<8;pe++)se[pe]=z[pe+16];return Q(m,y,f,i,b,se,Z)}var ae=function(m){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var y,f,i,b,z,F,Z,se;y=m[0]&255|(m[1]&255)<<8,this.r[0]=y&8191,f=m[2]&255|(m[3]&255)<<8,this.r[1]=(y>>>13|f<<3)&8191,i=m[4]&255|(m[5]&255)<<8,this.r[2]=(f>>>10|i<<6)&7939,b=m[6]&255|(m[7]&255)<<8,this.r[3]=(i>>>7|b<<9)&8191,z=m[8]&255|(m[9]&255)<<8,this.r[4]=(b>>>4|z<<12)&255,this.r[5]=z>>>1&8190,F=m[10]&255|(m[11]&255)<<8,this.r[6]=(z>>>14|F<<2)&8191,Z=m[12]&255|(m[13]&255)<<8,this.r[7]=(F>>>11|Z<<5)&8065,se=m[14]&255|(m[15]&255)<<8,this.r[8]=(Z>>>8|se<<8)&8191,this.r[9]=se>>>5&127,this.pad[0]=m[16]&255|(m[17]&255)<<8,this.pad[1]=m[18]&255|(m[19]&255)<<8,this.pad[2]=m[20]&255|(m[21]&255)<<8,this.pad[3]=m[22]&255|(m[23]&255)<<8,this.pad[4]=m[24]&255|(m[25]&255)<<8,this.pad[5]=m[26]&255|(m[27]&255)<<8,this.pad[6]=m[28]&255|(m[29]&255)<<8,this.pad[7]=m[30]&255|(m[31]&255)<<8};ae.prototype.blocks=function(m,y,f){for(var i=this.fin?0:2048,b,z,F,Z,se,pe,le,tt,de,je,Ee,Oe,ze,qe,Le,Ne,re,ve,ie,ue=this.h[0],fe=this.h[1],ce=this.h[2],V=this.h[3],H=this.h[4],ee=this.h[5],X=this.h[6],J=this.h[7],_e=this.h[8],$e=this.h[9],Pe=this.r[0],Ge=this.r[1],Re=this.r[2],q=this.r[3],Ue=this.r[4],_t=this.r[5],st=this.r[6],Ve=this.r[7],Qe=this.r[8],Ke=this.r[9];f>=16;)b=m[y+0]&255|(m[y+1]&255)<<8,ue+=b&8191,z=m[y+2]&255|(m[y+3]&255)<<8,fe+=(b>>>13|z<<3)&8191,F=m[y+4]&255|(m[y+5]&255)<<8,ce+=(z>>>10|F<<6)&8191,Z=m[y+6]&255|(m[y+7]&255)<<8,V+=(F>>>7|Z<<9)&8191,se=m[y+8]&255|(m[y+9]&255)<<8,H+=(Z>>>4|se<<12)&8191,ee+=se>>>1&8191,pe=m[y+10]&255|(m[y+11]&255)<<8,X+=(se>>>14|pe<<2)&8191,le=m[y+12]&255|(m[y+13]&255)<<8,J+=(pe>>>11|le<<5)&8191,tt=m[y+14]&255|(m[y+15]&255)<<8,_e+=(le>>>8|tt<<8)&8191,$e+=tt>>>5|i,de=0,je=de,je+=ue*Pe,je+=fe*(5*Ke),je+=ce*(5*Qe),je+=V*(5*Ve),je+=H*(5*st),de=je>>>13,je&=8191,je+=ee*(5*_t),je+=X*(5*Ue),je+=J*(5*q),je+=_e*(5*Re),je+=$e*(5*Ge),de+=je>>>13,je&=8191,Ee=de,Ee+=ue*Ge,Ee+=fe*Pe,Ee+=ce*(5*Ke),Ee+=V*(5*Qe),Ee+=H*(5*Ve),de=Ee>>>13,Ee&=8191,Ee+=ee*(5*st),Ee+=X*(5*_t),Ee+=J*(5*Ue),Ee+=_e*(5*q),Ee+=$e*(5*Re),de+=Ee>>>13,Ee&=8191,Oe=de,Oe+=ue*Re,Oe+=fe*Ge,Oe+=ce*Pe,Oe+=V*(5*Ke),Oe+=H*(5*Qe),de=Oe>>>13,Oe&=8191,Oe+=ee*(5*Ve),Oe+=X*(5*st),Oe+=J*(5*_t),Oe+=_e*(5*Ue),Oe+=$e*(5*q),de+=Oe>>>13,Oe&=8191,ze=de,ze+=ue*q,ze+=fe*Re,ze+=ce*Ge,ze+=V*Pe,ze+=H*(5*Ke),de=ze>>>13,ze&=8191,ze+=ee*(5*Qe),ze+=X*(5*Ve),ze+=J*(5*st),ze+=_e*(5*_t),ze+=$e*(5*Ue),de+=ze>>>13,ze&=8191,qe=de,qe+=ue*Ue,qe+=fe*q,qe+=ce*Re,qe+=V*Ge,qe+=H*Pe,de=qe>>>13,qe&=8191,qe+=ee*(5*Ke),qe+=X*(5*Qe),qe+=J*(5*Ve),qe+=_e*(5*st),qe+=$e*(5*_t),de+=qe>>>13,qe&=8191,Le=de,Le+=ue*_t,Le+=fe*Ue,Le+=ce*q,Le+=V*Re,Le+=H*Ge,de=Le>>>13,Le&=8191,Le+=ee*Pe,Le+=X*(5*Ke),Le+=J*(5*Qe),Le+=_e*(5*Ve),Le+=$e*(5*st),de+=Le>>>13,Le&=8191,Ne=de,Ne+=ue*st,Ne+=fe*_t,Ne+=ce*Ue,Ne+=V*q,Ne+=H*Re,de=Ne>>>13,Ne&=8191,Ne+=ee*Ge,Ne+=X*Pe,Ne+=J*(5*Ke),Ne+=_e*(5*Qe),Ne+=$e*(5*Ve),de+=Ne>>>13,Ne&=8191,re=de,re+=ue*Ve,re+=fe*st,re+=ce*_t,re+=V*Ue,re+=H*q,de=re>>>13,re&=8191,re+=ee*Re,re+=X*Ge,re+=J*Pe,re+=_e*(5*Ke),re+=$e*(5*Qe),de+=re>>>13,re&=8191,ve=de,ve+=ue*Qe,ve+=fe*Ve,ve+=ce*st,ve+=V*_t,ve+=H*Ue,de=ve>>>13,ve&=8191,ve+=ee*q,ve+=X*Re,ve+=J*Ge,ve+=_e*Pe,ve+=$e*(5*Ke),de+=ve>>>13,ve&=8191,ie=de,ie+=ue*Ke,ie+=fe*Qe,ie+=ce*Ve,ie+=V*st,ie+=H*_t,de=ie>>>13,ie&=8191,ie+=ee*Ue,ie+=X*q,ie+=J*Re,ie+=_e*Ge,ie+=$e*Pe,de+=ie>>>13,ie&=8191,de=(de<<2)+de|0,de=de+je|0,je=de&8191,de=de>>>13,Ee+=de,ue=je,fe=Ee,ce=Oe,V=ze,H=qe,ee=Le,X=Ne,J=re,_e=ve,$e=ie,y+=16,f-=16;this.h[0]=ue,this.h[1]=fe,this.h[2]=ce,this.h[3]=V,this.h[4]=H,this.h[5]=ee,this.h[6]=X,this.h[7]=J,this.h[8]=_e,this.h[9]=$e},ae.prototype.finish=function(m,y){var f=new Uint16Array(10),i,b,z,F;if(this.leftover){for(F=this.leftover,this.buffer[F++]=1;F<16;F++)this.buffer[F]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(i=this.h[1]>>>13,this.h[1]&=8191,F=2;F<10;F++)this.h[F]+=i,i=this.h[F]>>>13,this.h[F]&=8191;for(this.h[0]+=i*5,i=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=i,i=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=i,f[0]=this.h[0]+5,i=f[0]>>>13,f[0]&=8191,F=1;F<10;F++)f[F]=this.h[F]+i,i=f[F]>>>13,f[F]&=8191;for(f[9]-=8192,b=(i^1)-1,F=0;F<10;F++)f[F]&=b;for(b=~b,F=0;F<10;F++)this.h[F]=this.h[F]&b|f[F];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,z=this.h[0]+this.pad[0],this.h[0]=z&65535,F=1;F<8;F++)z=(this.h[F]+this.pad[F]|0)+(z>>>16)|0,this.h[F]=z&65535;m[y+0]=this.h[0]>>>0&255,m[y+1]=this.h[0]>>>8&255,m[y+2]=this.h[1]>>>0&255,m[y+3]=this.h[1]>>>8&255,m[y+4]=this.h[2]>>>0&255,m[y+5]=this.h[2]>>>8&255,m[y+6]=this.h[3]>>>0&255,m[y+7]=this.h[3]>>>8&255,m[y+8]=this.h[4]>>>0&255,m[y+9]=this.h[4]>>>8&255,m[y+10]=this.h[5]>>>0&255,m[y+11]=this.h[5]>>>8&255,m[y+12]=this.h[6]>>>0&255,m[y+13]=this.h[6]>>>8&255,m[y+14]=this.h[7]>>>0&255,m[y+15]=this.h[7]>>>8&255},ae.prototype.update=function(m,y,f){var i,b;if(this.leftover){for(b=16-this.leftover,b>f&&(b=f),i=0;i<b;i++)this.buffer[this.leftover+i]=m[y+i];if(f-=b,y+=b,this.leftover+=b,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(f>=16&&(b=f-f%16,this.blocks(m,y,b),y+=b,f-=b),f){for(i=0;i<f;i++)this.buffer[this.leftover+i]=m[y+i];this.leftover+=f}};function Ie(m,y,f,i,b,z){var F=new ae(z);return F.update(f,i,b),F.finish(m,y),0}function ne(m,y,f,i,b,z){var F=new Uint8Array(16);return Ie(F,0,f,i,b,z),R(m,y,F,0)}function we(m,y,f,i,b){var z;if(f<32)return-1;for(K(m,0,y,0,f,i,b),Ie(m,16,m,32,f-32,m),z=0;z<16;z++)m[z]=0;return 0}function Ze(m,y,f,i,b){var z,F=new Uint8Array(32);if(f<32||(te(F,0,32,i,b),ne(y,16,y,32,f-32,F)!==0))return-1;for(K(m,0,y,0,f,i,b),z=0;z<32;z++)m[z]=0;return 0}function We(m,y){var f;for(f=0;f<16;f++)m[f]=y[f]|0}function wt(m){var y,f,i=1;for(y=0;y<16;y++)f=m[y]+i+65535,i=Math.floor(f/65536),m[y]=f-i*65536;m[0]+=i-1+37*(i-1)}function De(m,y,f){for(var i,b=~(f-1),z=0;z<16;z++)i=b&(m[z]^y[z]),m[z]^=i,y[z]^=i}function Me(m,y){var f,i,b,z=c(),F=c();for(f=0;f<16;f++)F[f]=y[f];for(wt(F),wt(F),wt(F),i=0;i<2;i++){for(z[0]=F[0]-65517,f=1;f<15;f++)z[f]=F[f]-65535-(z[f-1]>>16&1),z[f-1]&=65535;z[15]=F[15]-32767-(z[14]>>16&1),b=z[15]>>16&1,z[14]&=65535,De(F,z,1-b)}for(f=0;f<16;f++)m[2*f]=F[f]&255,m[2*f+1]=F[f]>>8}function xt(m,y){var f=new Uint8Array(32),i=new Uint8Array(32);return Me(f,m),Me(i,y),M(f,0,i,0)}function ye(m){var y=new Uint8Array(32);return Me(y,m),y[0]&1}function et(m,y){var f;for(f=0;f<16;f++)m[f]=y[2*f]+(y[2*f+1]<<8);m[15]&=32767}function dt(m,y,f){for(var i=0;i<16;i++)m[i]=y[i]+f[i]}function Fe(m,y,f){for(var i=0;i<16;i++)m[i]=y[i]-f[i]}function Se(m,y,f){var i,b,z=0,F=0,Z=0,se=0,pe=0,le=0,tt=0,de=0,je=0,Ee=0,Oe=0,ze=0,qe=0,Le=0,Ne=0,re=0,ve=0,ie=0,ue=0,fe=0,ce=0,V=0,H=0,ee=0,X=0,J=0,_e=0,$e=0,Pe=0,Ge=0,Re=0,q=f[0],Ue=f[1],_t=f[2],st=f[3],Ve=f[4],Qe=f[5],Ke=f[6],mt=f[7],Je=f[8],gt=f[9],pt=f[10],ft=f[11],$t=f[12],At=f[13],Tt=f[14],Et=f[15];i=y[0],z+=i*q,F+=i*Ue,Z+=i*_t,se+=i*st,pe+=i*Ve,le+=i*Qe,tt+=i*Ke,de+=i*mt,je+=i*Je,Ee+=i*gt,Oe+=i*pt,ze+=i*ft,qe+=i*$t,Le+=i*At,Ne+=i*Tt,re+=i*Et,i=y[1],F+=i*q,Z+=i*Ue,se+=i*_t,pe+=i*st,le+=i*Ve,tt+=i*Qe,de+=i*Ke,je+=i*mt,Ee+=i*Je,Oe+=i*gt,ze+=i*pt,qe+=i*ft,Le+=i*$t,Ne+=i*At,re+=i*Tt,ve+=i*Et,i=y[2],Z+=i*q,se+=i*Ue,pe+=i*_t,le+=i*st,tt+=i*Ve,de+=i*Qe,je+=i*Ke,Ee+=i*mt,Oe+=i*Je,ze+=i*gt,qe+=i*pt,Le+=i*ft,Ne+=i*$t,re+=i*At,ve+=i*Tt,ie+=i*Et,i=y[3],se+=i*q,pe+=i*Ue,le+=i*_t,tt+=i*st,de+=i*Ve,je+=i*Qe,Ee+=i*Ke,Oe+=i*mt,ze+=i*Je,qe+=i*gt,Le+=i*pt,Ne+=i*ft,re+=i*$t,ve+=i*At,ie+=i*Tt,ue+=i*Et,i=y[4],pe+=i*q,le+=i*Ue,tt+=i*_t,de+=i*st,je+=i*Ve,Ee+=i*Qe,Oe+=i*Ke,ze+=i*mt,qe+=i*Je,Le+=i*gt,Ne+=i*pt,re+=i*ft,ve+=i*$t,ie+=i*At,ue+=i*Tt,fe+=i*Et,i=y[5],le+=i*q,tt+=i*Ue,de+=i*_t,je+=i*st,Ee+=i*Ve,Oe+=i*Qe,ze+=i*Ke,qe+=i*mt,Le+=i*Je,Ne+=i*gt,re+=i*pt,ve+=i*ft,ie+=i*$t,ue+=i*At,fe+=i*Tt,ce+=i*Et,i=y[6],tt+=i*q,de+=i*Ue,je+=i*_t,Ee+=i*st,Oe+=i*Ve,ze+=i*Qe,qe+=i*Ke,Le+=i*mt,Ne+=i*Je,re+=i*gt,ve+=i*pt,ie+=i*ft,ue+=i*$t,fe+=i*At,ce+=i*Tt,V+=i*Et,i=y[7],de+=i*q,je+=i*Ue,Ee+=i*_t,Oe+=i*st,ze+=i*Ve,qe+=i*Qe,Le+=i*Ke,Ne+=i*mt,re+=i*Je,ve+=i*gt,ie+=i*pt,ue+=i*ft,fe+=i*$t,ce+=i*At,V+=i*Tt,H+=i*Et,i=y[8],je+=i*q,Ee+=i*Ue,Oe+=i*_t,ze+=i*st,qe+=i*Ve,Le+=i*Qe,Ne+=i*Ke,re+=i*mt,ve+=i*Je,ie+=i*gt,ue+=i*pt,fe+=i*ft,ce+=i*$t,V+=i*At,H+=i*Tt,ee+=i*Et,i=y[9],Ee+=i*q,Oe+=i*Ue,ze+=i*_t,qe+=i*st,Le+=i*Ve,Ne+=i*Qe,re+=i*Ke,ve+=i*mt,ie+=i*Je,ue+=i*gt,fe+=i*pt,ce+=i*ft,V+=i*$t,H+=i*At,ee+=i*Tt,X+=i*Et,i=y[10],Oe+=i*q,ze+=i*Ue,qe+=i*_t,Le+=i*st,Ne+=i*Ve,re+=i*Qe,ve+=i*Ke,ie+=i*mt,ue+=i*Je,fe+=i*gt,ce+=i*pt,V+=i*ft,H+=i*$t,ee+=i*At,X+=i*Tt,J+=i*Et,i=y[11],ze+=i*q,qe+=i*Ue,Le+=i*_t,Ne+=i*st,re+=i*Ve,ve+=i*Qe,ie+=i*Ke,ue+=i*mt,fe+=i*Je,ce+=i*gt,V+=i*pt,H+=i*ft,ee+=i*$t,X+=i*At,J+=i*Tt,_e+=i*Et,i=y[12],qe+=i*q,Le+=i*Ue,Ne+=i*_t,re+=i*st,ve+=i*Ve,ie+=i*Qe,ue+=i*Ke,fe+=i*mt,ce+=i*Je,V+=i*gt,H+=i*pt,ee+=i*ft,X+=i*$t,J+=i*At,_e+=i*Tt,$e+=i*Et,i=y[13],Le+=i*q,Ne+=i*Ue,re+=i*_t,ve+=i*st,ie+=i*Ve,ue+=i*Qe,fe+=i*Ke,ce+=i*mt,V+=i*Je,H+=i*gt,ee+=i*pt,X+=i*ft,J+=i*$t,_e+=i*At,$e+=i*Tt,Pe+=i*Et,i=y[14],Ne+=i*q,re+=i*Ue,ve+=i*_t,ie+=i*st,ue+=i*Ve,fe+=i*Qe,ce+=i*Ke,V+=i*mt,H+=i*Je,ee+=i*gt,X+=i*pt,J+=i*ft,_e+=i*$t,$e+=i*At,Pe+=i*Tt,Ge+=i*Et,i=y[15],re+=i*q,ve+=i*Ue,ie+=i*_t,ue+=i*st,fe+=i*Ve,ce+=i*Qe,V+=i*Ke,H+=i*mt,ee+=i*Je,X+=i*gt,J+=i*pt,_e+=i*ft,$e+=i*$t,Pe+=i*At,Ge+=i*Tt,Re+=i*Et,z+=38*ve,F+=38*ie,Z+=38*ue,se+=38*fe,pe+=38*ce,le+=38*V,tt+=38*H,de+=38*ee,je+=38*X,Ee+=38*J,Oe+=38*_e,ze+=38*$e,qe+=38*Pe,Le+=38*Ge,Ne+=38*Re,b=1,i=z+b+65535,b=Math.floor(i/65536),z=i-b*65536,i=F+b+65535,b=Math.floor(i/65536),F=i-b*65536,i=Z+b+65535,b=Math.floor(i/65536),Z=i-b*65536,i=se+b+65535,b=Math.floor(i/65536),se=i-b*65536,i=pe+b+65535,b=Math.floor(i/65536),pe=i-b*65536,i=le+b+65535,b=Math.floor(i/65536),le=i-b*65536,i=tt+b+65535,b=Math.floor(i/65536),tt=i-b*65536,i=de+b+65535,b=Math.floor(i/65536),de=i-b*65536,i=je+b+65535,b=Math.floor(i/65536),je=i-b*65536,i=Ee+b+65535,b=Math.floor(i/65536),Ee=i-b*65536,i=Oe+b+65535,b=Math.floor(i/65536),Oe=i-b*65536,i=ze+b+65535,b=Math.floor(i/65536),ze=i-b*65536,i=qe+b+65535,b=Math.floor(i/65536),qe=i-b*65536,i=Le+b+65535,b=Math.floor(i/65536),Le=i-b*65536,i=Ne+b+65535,b=Math.floor(i/65536),Ne=i-b*65536,i=re+b+65535,b=Math.floor(i/65536),re=i-b*65536,z+=b-1+37*(b-1),b=1,i=z+b+65535,b=Math.floor(i/65536),z=i-b*65536,i=F+b+65535,b=Math.floor(i/65536),F=i-b*65536,i=Z+b+65535,b=Math.floor(i/65536),Z=i-b*65536,i=se+b+65535,b=Math.floor(i/65536),se=i-b*65536,i=pe+b+65535,b=Math.floor(i/65536),pe=i-b*65536,i=le+b+65535,b=Math.floor(i/65536),le=i-b*65536,i=tt+b+65535,b=Math.floor(i/65536),tt=i-b*65536,i=de+b+65535,b=Math.floor(i/65536),de=i-b*65536,i=je+b+65535,b=Math.floor(i/65536),je=i-b*65536,i=Ee+b+65535,b=Math.floor(i/65536),Ee=i-b*65536,i=Oe+b+65535,b=Math.floor(i/65536),Oe=i-b*65536,i=ze+b+65535,b=Math.floor(i/65536),ze=i-b*65536,i=qe+b+65535,b=Math.floor(i/65536),qe=i-b*65536,i=Le+b+65535,b=Math.floor(i/65536),Le=i-b*65536,i=Ne+b+65535,b=Math.floor(i/65536),Ne=i-b*65536,i=re+b+65535,b=Math.floor(i/65536),re=i-b*65536,z+=b-1+37*(b-1),m[0]=z,m[1]=F,m[2]=Z,m[3]=se,m[4]=pe,m[5]=le,m[6]=tt,m[7]=de,m[8]=je,m[9]=Ee,m[10]=Oe,m[11]=ze,m[12]=qe,m[13]=Le,m[14]=Ne,m[15]=re}function St(m,y){Se(m,y,y)}function n_(m,y){var f=c(),i;for(i=0;i<16;i++)f[i]=y[i];for(i=253;i>=0;i--)St(f,f),i!==2&&i!==4&&Se(f,f,y);for(i=0;i<16;i++)m[i]=f[i]}function ge(m,y){var f=c(),i;for(i=0;i<16;i++)f[i]=y[i];for(i=250;i>=0;i--)St(f,f),i!==1&&Se(f,f,y);for(i=0;i<16;i++)m[i]=f[i]}function Bt(m,y,f){var i=new Uint8Array(32),b=new Float64Array(80),z,F,Z=c(),se=c(),pe=c(),le=c(),tt=c(),de=c();for(F=0;F<31;F++)i[F]=y[F];for(i[31]=y[31]&127|64,i[0]&=248,et(b,f),F=0;F<16;F++)se[F]=b[F],le[F]=Z[F]=pe[F]=0;for(Z[0]=le[0]=1,F=254;F>=0;--F)z=i[F>>>3]>>>(F&7)&1,De(Z,se,z),De(pe,le,z),dt(tt,Z,pe),Fe(Z,Z,pe),dt(pe,se,le),Fe(se,se,le),St(le,tt),St(de,Z),Se(Z,pe,Z),Se(pe,se,tt),dt(tt,Z,pe),Fe(Z,Z,pe),St(se,Z),Fe(pe,le,de),Se(Z,pe,v),dt(Z,Z,le),Se(pe,pe,Z),Se(Z,le,de),Se(le,se,b),St(se,tt),De(Z,se,z),De(pe,le,z);for(F=0;F<16;F++)b[F+16]=Z[F],b[F+32]=pe[F],b[F+48]=se[F],b[F+64]=le[F];var je=b.subarray(32),Ee=b.subarray(16);return n_(je,je),Se(Ee,Ee,je),Me(m,Ee),0}function Ot(m,y){return Bt(m,y,g)}function Qt(m,y){return h(y,32),Ot(m,y)}function w_(m,y,f){var i=new Uint8Array(32);return Bt(i,f,y),G(m,l,i,W)}var $s=we,ks=Ze;function pn(m,y,f,i,b,z){var F=new Uint8Array(32);return w_(F,b,z),$s(m,y,f,i,F)}function fn(m,y,f,i,b,z){var F=new Uint8Array(32);return w_(F,b,z),ks(m,y,f,i,F)}var xs=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Is(m,y,f,i){for(var b=new Int32Array(16),z=new Int32Array(16),F,Z,se,pe,le,tt,de,je,Ee,Oe,ze,qe,Le,Ne,re,ve,ie,ue,fe,ce,V,H,ee,X,J,_e,$e=m[0],Pe=m[1],Ge=m[2],Re=m[3],q=m[4],Ue=m[5],_t=m[6],st=m[7],Ve=y[0],Qe=y[1],Ke=y[2],mt=y[3],Je=y[4],gt=y[5],pt=y[6],ft=y[7],$t=0;i>=128;){for(fe=0;fe<16;fe++)ce=8*fe+$t,b[fe]=f[ce+0]<<24|f[ce+1]<<16|f[ce+2]<<8|f[ce+3],z[fe]=f[ce+4]<<24|f[ce+5]<<16|f[ce+6]<<8|f[ce+7];for(fe=0;fe<80;fe++)if(F=$e,Z=Pe,se=Ge,pe=Re,le=q,tt=Ue,de=_t,je=st,Ee=Ve,Oe=Qe,ze=Ke,qe=mt,Le=Je,Ne=gt,re=pt,ve=ft,V=st,H=ft,ee=H&65535,X=H>>>16,J=V&65535,_e=V>>>16,V=(q>>>14|Je<<18)^(q>>>18|Je<<14)^(Je>>>9|q<<23),H=(Je>>>14|q<<18)^(Je>>>18|q<<14)^(q>>>9|Je<<23),ee+=H&65535,X+=H>>>16,J+=V&65535,_e+=V>>>16,V=q&Ue^~q&_t,H=Je&gt^~Je&pt,ee+=H&65535,X+=H>>>16,J+=V&65535,_e+=V>>>16,V=xs[fe*2],H=xs[fe*2+1],ee+=H&65535,X+=H>>>16,J+=V&65535,_e+=V>>>16,V=b[fe%16],H=z[fe%16],ee+=H&65535,X+=H>>>16,J+=V&65535,_e+=V>>>16,X+=ee>>>16,J+=X>>>16,_e+=J>>>16,ie=J&65535|_e<<16,ue=ee&65535|X<<16,V=ie,H=ue,ee=H&65535,X=H>>>16,J=V&65535,_e=V>>>16,V=($e>>>28|Ve<<4)^(Ve>>>2|$e<<30)^(Ve>>>7|$e<<25),H=(Ve>>>28|$e<<4)^($e>>>2|Ve<<30)^($e>>>7|Ve<<25),ee+=H&65535,X+=H>>>16,J+=V&65535,_e+=V>>>16,V=$e&Pe^$e&Ge^Pe&Ge,H=Ve&Qe^Ve&Ke^Qe&Ke,ee+=H&65535,X+=H>>>16,J+=V&65535,_e+=V>>>16,X+=ee>>>16,J+=X>>>16,_e+=J>>>16,je=J&65535|_e<<16,ve=ee&65535|X<<16,V=pe,H=qe,ee=H&65535,X=H>>>16,J=V&65535,_e=V>>>16,V=ie,H=ue,ee+=H&65535,X+=H>>>16,J+=V&65535,_e+=V>>>16,X+=ee>>>16,J+=X>>>16,_e+=J>>>16,pe=J&65535|_e<<16,qe=ee&65535|X<<16,Pe=F,Ge=Z,Re=se,q=pe,Ue=le,_t=tt,st=de,$e=je,Qe=Ee,Ke=Oe,mt=ze,Je=qe,gt=Le,pt=Ne,ft=re,Ve=ve,fe%16===15)for(ce=0;ce<16;ce++)V=b[ce],H=z[ce],ee=H&65535,X=H>>>16,J=V&65535,_e=V>>>16,V=b[(ce+9)%16],H=z[(ce+9)%16],ee+=H&65535,X+=H>>>16,J+=V&65535,_e+=V>>>16,ie=b[(ce+1)%16],ue=z[(ce+1)%16],V=(ie>>>1|ue<<31)^(ie>>>8|ue<<24)^ie>>>7,H=(ue>>>1|ie<<31)^(ue>>>8|ie<<24)^(ue>>>7|ie<<25),ee+=H&65535,X+=H>>>16,J+=V&65535,_e+=V>>>16,ie=b[(ce+14)%16],ue=z[(ce+14)%16],V=(ie>>>19|ue<<13)^(ue>>>29|ie<<3)^ie>>>6,H=(ue>>>19|ie<<13)^(ie>>>29|ue<<3)^(ue>>>6|ie<<26),ee+=H&65535,X+=H>>>16,J+=V&65535,_e+=V>>>16,X+=ee>>>16,J+=X>>>16,_e+=J>>>16,b[ce]=J&65535|_e<<16,z[ce]=ee&65535|X<<16;V=$e,H=Ve,ee=H&65535,X=H>>>16,J=V&65535,_e=V>>>16,V=m[0],H=y[0],ee+=H&65535,X+=H>>>16,J+=V&65535,_e+=V>>>16,X+=ee>>>16,J+=X>>>16,_e+=J>>>16,m[0]=$e=J&65535|_e<<16,y[0]=Ve=ee&65535|X<<16,V=Pe,H=Qe,ee=H&65535,X=H>>>16,J=V&65535,_e=V>>>16,V=m[1],H=y[1],ee+=H&65535,X+=H>>>16,J+=V&65535,_e+=V>>>16,X+=ee>>>16,J+=X>>>16,_e+=J>>>16,m[1]=Pe=J&65535|_e<<16,y[1]=Qe=ee&65535|X<<16,V=Ge,H=Ke,ee=H&65535,X=H>>>16,J=V&65535,_e=V>>>16,V=m[2],H=y[2],ee+=H&65535,X+=H>>>16,J+=V&65535,_e+=V>>>16,X+=ee>>>16,J+=X>>>16,_e+=J>>>16,m[2]=Ge=J&65535|_e<<16,y[2]=Ke=ee&65535|X<<16,V=Re,H=mt,ee=H&65535,X=H>>>16,J=V&65535,_e=V>>>16,V=m[3],H=y[3],ee+=H&65535,X+=H>>>16,J+=V&65535,_e+=V>>>16,X+=ee>>>16,J+=X>>>16,_e+=J>>>16,m[3]=Re=J&65535|_e<<16,y[3]=mt=ee&65535|X<<16,V=q,H=Je,ee=H&65535,X=H>>>16,J=V&65535,_e=V>>>16,V=m[4],H=y[4],ee+=H&65535,X+=H>>>16,J+=V&65535,_e+=V>>>16,X+=ee>>>16,J+=X>>>16,_e+=J>>>16,m[4]=q=J&65535|_e<<16,y[4]=Je=ee&65535|X<<16,V=Ue,H=gt,ee=H&65535,X=H>>>16,J=V&65535,_e=V>>>16,V=m[5],H=y[5],ee+=H&65535,X+=H>>>16,J+=V&65535,_e+=V>>>16,X+=ee>>>16,J+=X>>>16,_e+=J>>>16,m[5]=Ue=J&65535|_e<<16,y[5]=gt=ee&65535|X<<16,V=_t,H=pt,ee=H&65535,X=H>>>16,J=V&65535,_e=V>>>16,V=m[6],H=y[6],ee+=H&65535,X+=H>>>16,J+=V&65535,_e+=V>>>16,X+=ee>>>16,J+=X>>>16,_e+=J>>>16,m[6]=_t=J&65535|_e<<16,y[6]=pt=ee&65535|X<<16,V=st,H=ft,ee=H&65535,X=H>>>16,J=V&65535,_e=V>>>16,V=m[7],H=y[7],ee+=H&65535,X+=H>>>16,J+=V&65535,_e+=V>>>16,X+=ee>>>16,J+=X>>>16,_e+=J>>>16,m[7]=st=J&65535|_e<<16,y[7]=ft=ee&65535|X<<16,$t+=128,i-=128}return i}function Wt(m,y,f){var i=new Int32Array(8),b=new Int32Array(8),z=new Uint8Array(256),F,Z=f;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,b[0]=4089235720,b[1]=2227873595,b[2]=4271175723,b[3]=1595750129,b[4]=2917565137,b[5]=725511199,b[6]=4215389547,b[7]=327033209,Is(i,b,y,f),f%=128,F=0;F<f;F++)z[F]=y[Z-f+F];for(z[f]=128,f=256-128*(f<112?1:0),z[f-9]=0,T(z,f-8,Z/536870912|0,Z<<3),Is(i,b,z,f),F=0;F<8;F++)T(m,8*F,i[F],b[F]);return 0}function S_(m,y){var f=c(),i=c(),b=c(),z=c(),F=c(),Z=c(),se=c(),pe=c(),le=c();Fe(f,m[1],m[0]),Fe(le,y[1],y[0]),Se(f,f,le),dt(i,m[0],m[1]),dt(le,y[0],y[1]),Se(i,i,le),Se(b,m[3],y[3]),Se(b,b,I),Se(z,m[2],y[2]),dt(z,z,z),Fe(F,i,f),Fe(Z,z,b),dt(se,z,b),dt(pe,i,f),Se(m[0],F,Z),Se(m[1],pe,se),Se(m[2],se,Z),Se(m[3],F,pe)}function ut(m,y,f){var i;for(i=0;i<4;i++)De(m[i],y[i],f)}function V_(m,y){var f=c(),i=c(),b=c();n_(b,y[2]),Se(f,y[0],b),Se(i,y[1],b),Me(m,i),m[31]^=ye(f)<<7}function H_(m,y,f){var i,b;for(We(m[0],p),We(m[1],w),We(m[2],w),We(m[3],p),b=255;b>=0;--b)i=f[b/8|0]>>(b&7)&1,ut(m,y,i),S_(y,m),S_(m,m),ut(m,y,i)}function A_(m,y){var f=[c(),c(),c(),c()];We(f[0],E),We(f[1],$),We(f[2],w),Se(f[3],E,$),H_(m,f,y)}function W_(m,y,f){var i=new Uint8Array(64),b=[c(),c(),c(),c()],z;for(f||h(y,32),Wt(i,y,32),i[0]&=248,i[31]&=127,i[31]|=64,A_(b,i),V_(m,b),z=0;z<32;z++)y[z+32]=m[z];return 0}var E_=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function U_(m,y){var f,i,b,z;for(i=63;i>=32;--i){for(f=0,b=i-32,z=i-12;b<z;++b)y[b]+=f-16*y[i]*E_[b-(i-32)],f=Math.floor((y[b]+128)/256),y[b]-=f*256;y[b]+=f,y[i]=0}for(f=0,b=0;b<32;b++)y[b]+=f-(y[31]>>4)*E_[b],f=y[b]>>8,y[b]&=255;for(b=0;b<32;b++)y[b]-=f*E_[b];for(i=0;i<32;i++)y[i+1]+=y[i]>>8,m[i]=y[i]&255}function X_(m){var y=new Float64Array(64),f;for(f=0;f<64;f++)y[f]=m[f];for(f=0;f<64;f++)m[f]=0;U_(m,y)}function T_(m,y,f,i){var b=new Uint8Array(64),z=new Uint8Array(64),F=new Uint8Array(64),Z,se,pe=new Float64Array(64),le=[c(),c(),c(),c()];Wt(b,i,32),b[0]&=248,b[31]&=127,b[31]|=64;var tt=f+64;for(Z=0;Z<f;Z++)m[64+Z]=y[Z];for(Z=0;Z<32;Z++)m[32+Z]=b[32+Z];for(Wt(F,m.subarray(32),f+32),X_(F),A_(le,F),V_(m,le),Z=32;Z<64;Z++)m[Z]=i[Z];for(Wt(z,m,f+64),X_(z),Z=0;Z<64;Z++)pe[Z]=0;for(Z=0;Z<32;Z++)pe[Z]=F[Z];for(Z=0;Z<32;Z++)for(se=0;se<32;se++)pe[Z+se]+=z[Z]*b[se];return U_(m.subarray(32),pe),tt}function Y_(m,y){var f=c(),i=c(),b=c(),z=c(),F=c(),Z=c(),se=c();return We(m[2],w),et(m[1],y),St(b,m[1]),Se(z,b,A),Fe(b,b,m[2]),dt(z,m[2],z),St(F,z),St(Z,F),Se(se,Z,F),Se(f,se,b),Se(f,f,z),ge(f,f),Se(f,f,b),Se(f,f,z),Se(f,f,z),Se(m[0],f,z),St(i,m[0]),Se(i,i,z),xt(i,b)&&Se(m[0],m[0],k),St(i,m[0]),Se(i,i,z),xt(i,b)?-1:(ye(m[0])===y[31]>>7&&Fe(m[0],p,m[0]),Se(m[3],m[0],m[1]),0)}function Z_(m,y,f,i){var b,z=new Uint8Array(32),F=new Uint8Array(64),Z=[c(),c(),c(),c()],se=[c(),c(),c(),c()];if(f<64||Y_(se,i))return-1;for(b=0;b<f;b++)m[b]=y[b];for(b=0;b<32;b++)m[b+32]=i[b];if(Wt(F,m,f),X_(F),H_(Z,se,F),A_(se,y.subarray(32)),S_(Z,se),V_(z,Z),f-=64,M(y,0,z,0)){for(b=0;b<f;b++)m[b]=0;return-1}for(b=0;b<f;b++)m[b]=y[b+64];return f}var J_=32,j_=24,v_=32,Kt=16,Dt=32,q_=32,Ut=32,b_=32,N_=32,Q_=j_,Cs=v_,Ss=Kt,Zt=64,o_=32,d_=64,u_=32,K_=64;r.lowlevel={crypto_core_hsalsa20:G,crypto_stream_xor:K,crypto_stream:te,crypto_stream_salsa20_xor:Q,crypto_stream_salsa20:B,crypto_onetimeauth:Ie,crypto_onetimeauth_verify:ne,crypto_verify_16:R,crypto_verify_32:M,crypto_secretbox:we,crypto_secretbox_open:Ze,crypto_scalarmult:Bt,crypto_scalarmult_base:Ot,crypto_box_beforenm:w_,crypto_box_afternm:$s,crypto_box:pn,crypto_box_open:fn,crypto_box_keypair:Qt,crypto_hash:Wt,crypto_sign:T_,crypto_sign_keypair:W_,crypto_sign_open:Z_,crypto_secretbox_KEYBYTES:J_,crypto_secretbox_NONCEBYTES:j_,crypto_secretbox_ZEROBYTES:v_,crypto_secretbox_BOXZEROBYTES:Kt,crypto_scalarmult_BYTES:Dt,crypto_scalarmult_SCALARBYTES:q_,crypto_box_PUBLICKEYBYTES:Ut,crypto_box_SECRETKEYBYTES:b_,crypto_box_BEFORENMBYTES:N_,crypto_box_NONCEBYTES:Q_,crypto_box_ZEROBYTES:Cs,crypto_box_BOXZEROBYTES:Ss,crypto_sign_BYTES:Zt,crypto_sign_PUBLICKEYBYTES:o_,crypto_sign_SECRETKEYBYTES:d_,crypto_sign_SEEDBYTES:u_,crypto_hash_BYTES:K_,gf:c,D:A,L:E_,pack25519:Me,unpack25519:et,M:Se,A:dt,S:St,Z:Fe,pow2523:ge,add:S_,set25519:We,modL:U_,scalarmult:H_,scalarbase:A_};function es(m,y){if(m.length!==J_)throw new Error("bad key size");if(y.length!==j_)throw new Error("bad nonce size")}function yn(m,y){if(m.length!==Ut)throw new Error("bad public key size");if(y.length!==b_)throw new Error("bad secret key size")}function Ft(){for(var m=0;m<arguments.length;m++)if(!(arguments[m]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function As(m){for(var y=0;y<m.length;y++)m[y]=0}r.randomBytes=function(m){var y=new Uint8Array(m);return h(y,m),y},r.secretbox=function(m,y,f){Ft(m,y,f),es(f,y);for(var i=new Uint8Array(v_+m.length),b=new Uint8Array(i.length),z=0;z<m.length;z++)i[z+v_]=m[z];return we(b,i,i.length,y,f),b.subarray(Kt)},r.secretbox.open=function(m,y,f){Ft(m,y,f),es(f,y);for(var i=new Uint8Array(Kt+m.length),b=new Uint8Array(i.length),z=0;z<m.length;z++)i[z+Kt]=m[z];return i.length<32||Ze(b,i,i.length,y,f)!==0?null:b.subarray(v_)},r.secretbox.keyLength=J_,r.secretbox.nonceLength=j_,r.secretbox.overheadLength=Kt,r.scalarMult=function(m,y){if(Ft(m,y),m.length!==q_)throw new Error("bad n size");if(y.length!==Dt)throw new Error("bad p size");var f=new Uint8Array(Dt);return Bt(f,m,y),f},r.scalarMult.base=function(m){if(Ft(m),m.length!==q_)throw new Error("bad n size");var y=new Uint8Array(Dt);return Ot(y,m),y},r.scalarMult.scalarLength=q_,r.scalarMult.groupElementLength=Dt,r.box=function(m,y,f,i){var b=r.box.before(f,i);return r.secretbox(m,y,b)},r.box.before=function(m,y){Ft(m,y),yn(m,y);var f=new Uint8Array(N_);return w_(f,m,y),f},r.box.after=r.secretbox,r.box.open=function(m,y,f,i){var b=r.box.before(f,i);return r.secretbox.open(m,y,b)},r.box.open.after=r.secretbox.open,r.box.keyPair=function(){var m=new Uint8Array(Ut),y=new Uint8Array(b_);return Qt(m,y),{publicKey:m,secretKey:y}},r.box.keyPair.fromSecretKey=function(m){if(Ft(m),m.length!==b_)throw new Error("bad secret key size");var y=new Uint8Array(Ut);return Ot(y,m),{publicKey:y,secretKey:new Uint8Array(m)}},r.box.publicKeyLength=Ut,r.box.secretKeyLength=b_,r.box.sharedKeyLength=N_,r.box.nonceLength=Q_,r.box.overheadLength=r.secretbox.overheadLength,r.sign=function(m,y){if(Ft(m,y),y.length!==d_)throw new Error("bad secret key size");var f=new Uint8Array(Zt+m.length);return T_(f,m,m.length,y),f},r.sign.open=function(m,y){if(Ft(m,y),y.length!==o_)throw new Error("bad public key size");var f=new Uint8Array(m.length),i=Z_(f,m,m.length,y);if(i<0)return null;for(var b=new Uint8Array(i),z=0;z<b.length;z++)b[z]=f[z];return b},r.sign.detached=function(m,y){for(var f=r.sign(m,y),i=new Uint8Array(Zt),b=0;b<i.length;b++)i[b]=f[b];return i},r.sign.detached.verify=function(m,y,f){if(Ft(m,y,f),y.length!==Zt)throw new Error("bad signature size");if(f.length!==o_)throw new Error("bad public key size");var i=new Uint8Array(Zt+m.length),b=new Uint8Array(Zt+m.length),z;for(z=0;z<Zt;z++)i[z]=y[z];for(z=0;z<m.length;z++)i[z+Zt]=m[z];return Z_(b,i,i.length,f)>=0},r.sign.keyPair=function(){var m=new Uint8Array(o_),y=new Uint8Array(d_);return W_(m,y),{publicKey:m,secretKey:y}},r.sign.keyPair.fromSecretKey=function(m){if(Ft(m),m.length!==d_)throw new Error("bad secret key size");for(var y=new Uint8Array(o_),f=0;f<y.length;f++)y[f]=m[32+f];return{publicKey:y,secretKey:new Uint8Array(m)}},r.sign.keyPair.fromSeed=function(m){if(Ft(m),m.length!==u_)throw new Error("bad seed size");for(var y=new Uint8Array(o_),f=new Uint8Array(d_),i=0;i<32;i++)f[i]=m[i];return W_(y,f,!0),{publicKey:y,secretKey:f}},r.sign.publicKeyLength=o_,r.sign.secretKeyLength=d_,r.sign.seedLength=u_,r.sign.signatureLength=Zt,r.hash=function(m){Ft(m);var y=new Uint8Array(K_);return Wt(y,m,m.length),y},r.hash.hashLength=K_,r.verify=function(m,y){return Ft(m,y),m.length===0||y.length===0||m.length!==y.length?!1:j(m,0,y,0,m.length)===0},r.setPRNG=function(m){h=m},(function(){var m=typeof self<"u"?self.crypto||self.msCrypto:null;if(m&&m.getRandomValues){var y=65536;r.setPRNG(function(f,i){var b,z=new Uint8Array(i);for(b=0;b<i;b+=y)m.getRandomValues(z.subarray(b,b+Math.min(i-b,y)));for(b=0;b<i;b++)f[b]=z[b];As(z)})}else m=s(4),m&&m.randomBytes&&r.setPRNG(function(f,i){var b,z=m.randomBytes(i);for(b=0;b<i;b++)f[b]=z[b];As(z)})})()})(_.exports?_.exports:self.nacl=self.nacl||{})}),(function(_,n,s){_.exports=s(5).default}),(function(_,n){}),(function(_,n,s){s.r(n),s.d(n,"default",function(){return Ts});class r{constructor(a,d){this.lastId=0,this.prefix=a,this.name=d}create(a){this.lastId++;var d=this.lastId,x=this.prefix+d,N=this.name+"["+d+"]",U=!1,oe=function(){U||(a.apply(null,arguments),U=!0)};return this[d]=oe,{number:d,id:x,name:N,callback:oe}}remove(a){delete this[a.number]}}var c=new r("_pusher_script_","Pusher.ScriptReceivers"),h={VERSION:"8.4.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},l=h;class g{constructor(a){this.options=a,this.receivers=a.receivers||c,this.loading={}}load(a,d,x){var N=this;if(N.loading[a]&&N.loading[a].length>0)N.loading[a].push(x);else{N.loading[a]=[x];var U=He.createScriptRequest(N.getPath(a,d)),oe=N.receivers.create(function(be){if(N.receivers.remove(oe),N.loading[a]){var Be=N.loading[a];delete N.loading[a];for(var ot=function(It){It||U.cleanup()},lt=0;lt<Be.length;lt++)Be[lt](be,ot)}});U.send(oe)}}getRoot(a){var d,x=He.getDocument().location.protocol;return a&&a.useTLS||x==="https:"?d=this.options.cdn_https:d=this.options.cdn_http,d.replace(/\/*$/,"")+"/"+this.options.version}getPath(a,d){return this.getRoot(d)+"/"+a+this.options.suffix+".js"}}var p=new r("_pusher_dependencies","Pusher.DependenciesReceivers"),w=new g({cdn_http:l.cdn_http,cdn_https:l.cdn_https,version:l.VERSION,suffix:l.dependency_suffix,receivers:p});const v={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}};var I={buildLogSuffix:function(u){const a="See:",d=v.urls[u];if(!d)return"";let x;return d.fullUrl?x=d.fullUrl:d.path&&(x=v.baseUrl+d.path),x?`${a} ${x}`:""}},E;(function(u){u.UserAuthentication="user-authentication",u.ChannelAuthorization="channel-authorization"})(E||(E={}));class $ extends Error{constructor(a){super(a),Object.setPrototypeOf(this,new.target.prototype)}}class k extends Error{constructor(a){super(a),Object.setPrototypeOf(this,new.target.prototype)}}class T extends Error{constructor(a){super(a),Object.setPrototypeOf(this,new.target.prototype)}}class j extends Error{constructor(a){super(a),Object.setPrototypeOf(this,new.target.prototype)}}class R extends Error{constructor(a){super(a),Object.setPrototypeOf(this,new.target.prototype)}}class M extends Error{constructor(a){super(a),Object.setPrototypeOf(this,new.target.prototype)}}class P extends Error{constructor(a){super(a),Object.setPrototypeOf(this,new.target.prototype)}}class D extends Error{constructor(a){super(a),Object.setPrototypeOf(this,new.target.prototype)}}class O extends Error{constructor(a,d){super(d),this.status=a,Object.setPrototypeOf(this,new.target.prototype)}}var W=function(u,a,d,x,N){const U=He.createXHR();U.open("POST",d.endpoint,!0),U.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var oe in d.headers)U.setRequestHeader(oe,d.headers[oe]);if(d.headersProvider!=null){let be=d.headersProvider();for(var oe in be)U.setRequestHeader(oe,be[oe])}return U.onreadystatechange=function(){if(U.readyState===4)if(U.status===200){let be,Be=!1;try{be=JSON.parse(U.responseText),Be=!0}catch{N(new O(200,`JSON returned from ${x.toString()} endpoint was invalid, yet status code was 200. Data was: ${U.responseText}`),null)}Be&&N(null,be)}else{let be="";switch(x){case E.UserAuthentication:be=I.buildLogSuffix("authenticationEndpoint");break;case E.ChannelAuthorization:be=`Clients must be authorized to join private or presence channels. ${I.buildLogSuffix("authorizationEndpoint")}`;break}N(new O(U.status,`Unable to retrieve auth string from ${x.toString()} endpoint - received status: ${U.status} from ${d.endpoint}. ${be}`),null)}},U.send(a),U};function Q(u){return ne(ae(u))}var B=String.fromCharCode,te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",K=function(u){var a=u.charCodeAt(0);return a<128?u:a<2048?B(192|a>>>6)+B(128|a&63):B(224|a>>>12&15)+B(128|a>>>6&63)+B(128|a&63)},ae=function(u){return u.replace(/[^\x00-\x7F]/g,K)},Ie=function(u){var a=[0,2,1][u.length%3],d=u.charCodeAt(0)<<16|(u.length>1?u.charCodeAt(1):0)<<8|(u.length>2?u.charCodeAt(2):0),x=[te.charAt(d>>>18),te.charAt(d>>>12&63),a>=2?"=":te.charAt(d>>>6&63),a>=1?"=":te.charAt(d&63)];return x.join("")},ne=window.btoa||function(u){return u.replace(/[\s\S]{1,3}/g,Ie)};class we{constructor(a,d,x,N){this.clear=d,this.timer=a(()=>{this.timer&&(this.timer=N(this.timer))},x)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}var Ze=we;function We(u){window.clearTimeout(u)}function wt(u){window.clearInterval(u)}class De extends Ze{constructor(a,d){super(setTimeout,We,a,function(x){return d(),null})}}class Me extends Ze{constructor(a,d){super(setInterval,wt,a,function(x){return d(),x})}}var xt={now(){return Date.now?Date.now():new Date().valueOf()},defer(u){return new De(0,u)},method(u,...a){var d=Array.prototype.slice.call(arguments,1);return function(x){return x[u].apply(x,d.concat(arguments))}}},ye=xt;function et(u,...a){for(var d=0;d<a.length;d++){var x=a[d];for(var N in x)x[N]&&x[N].constructor&&x[N].constructor===Object?u[N]=et(u[N]||{},x[N]):u[N]=x[N]}return u}function dt(){for(var u=["Pusher"],a=0;a<arguments.length;a++)typeof arguments[a]=="string"?u.push(arguments[a]):u.push(Wt(arguments[a]));return u.join(" : ")}function Fe(u,a){var d=Array.prototype.indexOf;if(u===null)return-1;if(d&&u.indexOf===d)return u.indexOf(a);for(var x=0,N=u.length;x<N;x++)if(u[x]===a)return x;return-1}function Se(u,a){for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&a(u[d],d,u)}function St(u){var a=[];return Se(u,function(d,x){a.push(x)}),a}function n_(u){var a=[];return Se(u,function(d){a.push(d)}),a}function ge(u,a,d){for(var x=0;x<u.length;x++)a.call(d||window,u[x],x,u)}function Bt(u,a){for(var d=[],x=0;x<u.length;x++)d.push(a(u[x],x,u,d));return d}function Ot(u,a){var d={};return Se(u,function(x,N){d[N]=a(x)}),d}function Qt(u,a){a=a||function(N){return!!N};for(var d=[],x=0;x<u.length;x++)a(u[x],x,u,d)&&d.push(u[x]);return d}function w_(u,a){var d={};return Se(u,function(x,N){(a&&a(x,N,u,d)||x)&&(d[N]=x)}),d}function $s(u){var a=[];return Se(u,function(d,x){a.push([x,d])}),a}function ks(u,a){for(var d=0;d<u.length;d++)if(a(u[d],d,u))return!0;return!1}function pn(u,a){for(var d=0;d<u.length;d++)if(!a(u[d],d,u))return!1;return!0}function fn(u){return Ot(u,function(a){return typeof a=="object"&&(a=Wt(a)),encodeURIComponent(Q(a.toString()))})}function xs(u){var a=w_(u,function(x){return x!==void 0}),d=Bt($s(fn(a)),ye.method("join","=")).join("&");return d}function Is(u){var a=[],d=[];return(function x(N,U){var oe,be,Be;switch(typeof N){case"object":if(!N)return null;for(oe=0;oe<a.length;oe+=1)if(a[oe]===N)return{$ref:d[oe]};if(a.push(N),d.push(U),Object.prototype.toString.apply(N)==="[object Array]")for(Be=[],oe=0;oe<N.length;oe+=1)Be[oe]=x(N[oe],U+"["+oe+"]");else{Be={};for(be in N)Object.prototype.hasOwnProperty.call(N,be)&&(Be[be]=x(N[be],U+"["+JSON.stringify(be)+"]"))}return Be;case"number":case"string":case"boolean":return N}})(u,"$")}function Wt(u){try{return JSON.stringify(u)}catch{return JSON.stringify(Is(u))}}class S_{constructor(){this.globalLog=a=>{window.console&&window.console.log&&window.console.log(a)}}debug(...a){this.log(this.globalLog,a)}warn(...a){this.log(this.globalLogWarn,a)}error(...a){this.log(this.globalLogError,a)}globalLogWarn(a){window.console&&window.console.warn?window.console.warn(a):this.globalLog(a)}globalLogError(a){window.console&&window.console.error?window.console.error(a):this.globalLogWarn(a)}log(a,...d){var x=dt.apply(this,arguments);P_.log?P_.log(x):P_.logToConsole&&a.bind(this)(x)}}var ut=new S_,V_=function(u,a,d,x,N){(d.headers!==void 0||d.headersProvider!=null)&&ut.warn(`To send headers with the ${x.toString()} request, you must use AJAX, rather than JSONP.`);var U=u.nextAuthCallbackID.toString();u.nextAuthCallbackID++;var oe=u.getDocument(),be=oe.createElement("script");u.auth_callbacks[U]=function(lt){N(null,lt)};var Be="Pusher.auth_callbacks['"+U+"']";be.src=d.endpoint+"?callback="+encodeURIComponent(Be)+"&"+a;var ot=oe.getElementsByTagName("head")[0]||oe.documentElement;ot.insertBefore(be,ot.firstChild)},H_=V_;class A_{constructor(a){this.src=a}send(a){var d=this,x="Error loading "+d.src;d.script=document.createElement("script"),d.script.id=a.id,d.script.src=d.src,d.script.type="text/javascript",d.script.charset="UTF-8",d.script.addEventListener?(d.script.onerror=function(){a.callback(x)},d.script.onload=function(){a.callback(null)}):d.script.onreadystatechange=function(){(d.script.readyState==="loaded"||d.script.readyState==="complete")&&a.callback(null)},d.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(d.errorScript=document.createElement("script"),d.errorScript.id=a.id+"_error",d.errorScript.text=a.name+"('"+x+"');",d.script.async=d.errorScript.async=!1):d.script.async=!0;var N=document.getElementsByTagName("head")[0];N.insertBefore(d.script,N.firstChild),d.errorScript&&N.insertBefore(d.errorScript,d.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class W_{constructor(a,d){this.url=a,this.data=d}send(a){if(!this.request){var d=xs(this.data),x=this.url+"/"+a.number+"?"+d;this.request=He.createScriptRequest(x),this.request.send(a)}}cleanup(){this.request&&this.request.cleanup()}}var E_=function(u,a){return function(d,x){var N="http"+(a?"s":"")+"://",U=N+(u.host||u.options.host)+u.options.path,oe=He.createJSONPRequest(U,d),be=He.ScriptReceivers.create(function(Be,ot){c.remove(be),oe.cleanup(),ot&&ot.host&&(u.host=ot.host),x&&x(Be,ot)});oe.send(be)}},U_={name:"jsonp",getAgent:E_},X_=U_;function T_(u,a,d){var x=u+(a.useTLS?"s":""),N=a.useTLS?a.hostTLS:a.hostNonTLS;return x+"://"+N+d}function Y_(u,a){var d="/app/"+u,x="?protocol="+l.PROTOCOL+"&client=js&version="+l.VERSION+(a?"&"+a:"");return d+x}var Z_={getInitial:function(u,a){var d=(a.httpPath||"")+Y_(u,"flash=false");return T_("ws",a,d)}},J_={getInitial:function(u,a){var d=(a.httpPath||"/pusher")+Y_(u);return T_("http",a,d)}},j_={getInitial:function(u,a){return T_("http",a,a.httpPath||"/pusher")},getPath:function(u,a){return Y_(u)}};class v_{constructor(){this._callbacks={}}get(a){return this._callbacks[Kt(a)]}add(a,d,x){var N=Kt(a);this._callbacks[N]=this._callbacks[N]||[],this._callbacks[N].push({fn:d,context:x})}remove(a,d,x){if(!a&&!d&&!x){this._callbacks={};return}var N=a?[Kt(a)]:St(this._callbacks);d||x?this.removeCallback(N,d,x):this.removeAllCallbacks(N)}removeCallback(a,d,x){ge(a,function(N){this._callbacks[N]=Qt(this._callbacks[N]||[],function(U){return d&&d!==U.fn||x&&x!==U.context}),this._callbacks[N].length===0&&delete this._callbacks[N]},this)}removeAllCallbacks(a){ge(a,function(d){delete this._callbacks[d]},this)}}function Kt(u){return"_"+u}class Dt{constructor(a){this.callbacks=new v_,this.global_callbacks=[],this.failThrough=a}bind(a,d,x){return this.callbacks.add(a,d,x),this}bind_global(a){return this.global_callbacks.push(a),this}unbind(a,d,x){return this.callbacks.remove(a,d,x),this}unbind_global(a){return a?(this.global_callbacks=Qt(this.global_callbacks||[],d=>d!==a),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(a,d,x){for(var N=0;N<this.global_callbacks.length;N++)this.global_callbacks[N](a,d);var U=this.callbacks.get(a),oe=[];if(x?oe.push(d,x):d&&oe.push(d),U&&U.length>0)for(var N=0;N<U.length;N++)U[N].fn.apply(U[N].context||window,oe);else this.failThrough&&this.failThrough(a,d);return this}}class q_ extends Dt{constructor(a,d,x,N,U){super(),this.initialize=He.transportConnectionInitializer,this.hooks=a,this.name=d,this.priority=x,this.key=N,this.options=U,this.state="new",this.timeline=U.timeline,this.activityTimeout=U.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||this.state!=="initialized")return!1;var a=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(a,this.options)}catch(d){return ye.defer(()=>{this.onError(d),this.changeState("closed")}),!1}return this.bindListeners(),ut.debug("Connecting",{transport:this.name,url:a}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(a){return this.state==="open"?(ye.defer(()=>{this.socket&&this.socket.send(a)}),!0):!1}ping(){this.state==="open"&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(a){this.emit("error",{type:"WebSocketError",error:a}),this.timeline.error(this.buildTimelineMessage({error:a.toString()}))}onClose(a){a?this.changeState("closed",{code:a.code,reason:a.reason,wasClean:a.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(a){this.emit("message",a)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=a=>{this.onError(a)},this.socket.onclose=a=>{this.onClose(a)},this.socket.onmessage=a=>{this.onMessage(a)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(a,d){this.state=a,this.timeline.info(this.buildTimelineMessage({state:a,params:d})),this.emit(a,d)}buildTimelineMessage(a){return et({cid:this.id},a)}}class Ut{constructor(a){this.hooks=a}isSupported(a){return this.hooks.isSupported(a)}createConnection(a,d,x,N){return new q_(this.hooks,a,d,x,N)}}var b_=new Ut({urls:Z_,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!He.getWebSocketAPI()},isSupported:function(){return!!He.getWebSocketAPI()},getSocket:function(u){return He.createWebSocket(u)}}),N_={urls:J_,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},Q_=et({getSocket:function(u){return He.HTTPFactory.createStreamingSocket(u)}},N_),Cs=et({getSocket:function(u){return He.HTTPFactory.createPollingSocket(u)}},N_),Ss={isSupported:function(){return He.isXHRSupported()}},Zt=new Ut(et({},Q_,Ss)),o_=new Ut(et({},Cs,Ss)),d_={ws:b_,xhr_streaming:Zt,xhr_polling:o_},u_=d_,K_=new Ut({file:"sockjs",urls:j_,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(u,a){return new window.SockJS(u,null,{js_path:w.getPath("sockjs",{useTLS:a.useTLS}),ignore_null_origin:a.ignoreNullOrigin})},beforeOpen:function(u,a){u.send(JSON.stringify({path:a}))}}),es={isSupported:function(u){var a=He.isXDRSupported(u.useTLS);return a}},yn=new Ut(et({},Q_,es)),Ft=new Ut(et({},Cs,es));u_.xdr_streaming=yn,u_.xdr_polling=Ft,u_.sockjs=K_;var As=u_;class m extends Dt{constructor(){super();var a=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){a.emit("online")},!1),window.addEventListener("offline",function(){a.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var y=new m;class f{constructor(a,d,x){this.manager=a,this.transport=d,this.minPingDelay=x.minPingDelay,this.maxPingDelay=x.maxPingDelay,this.pingDelay=void 0}createConnection(a,d,x,N){N=et({},N,{activityTimeout:this.pingDelay});var U=this.transport.createConnection(a,d,x,N),oe=null,be=function(){U.unbind("open",be),U.bind("closed",Be),oe=ye.now()},Be=ot=>{if(U.unbind("closed",Be),ot.code===1002||ot.code===1003)this.manager.reportDeath();else if(!ot.wasClean&&oe){var lt=ye.now()-oe;lt<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(lt/2,this.minPingDelay))}};return U.bind("open",be),U}isSupported(a){return this.manager.isAlive()&&this.transport.isSupported(a)}}const i={decodeMessage:function(u){try{var a=JSON.parse(u.data),d=a.data;if(typeof d=="string")try{d=JSON.parse(a.data)}catch{}var x={event:a.event,channel:a.channel,data:d};return a.user_id&&(x.user_id=a.user_id),x}catch(N){throw{type:"MessageParseError",error:N,data:u.data}}},encodeMessage:function(u){return JSON.stringify(u)},processHandshake:function(u){var a=i.decodeMessage(u);if(a.event==="pusher:connection_established"){if(!a.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:a.data.socket_id,activityTimeout:a.data.activity_timeout*1e3}}else{if(a.event==="pusher:error")return{action:this.getCloseAction(a.data),error:this.getCloseError(a.data)};throw"Invalid handshake"}},getCloseAction:function(u){return u.code<4e3?u.code>=1002&&u.code<=1004?"backoff":null:u.code===4e3?"tls_only":u.code<4100?"refused":u.code<4200?"backoff":u.code<4300?"retry":"refused"},getCloseError:function(u){return u.code!==1e3&&u.code!==1001?{type:"PusherError",data:{code:u.code,message:u.reason||u.message}}:null}};var b=i;class z extends Dt{constructor(a,d){super(),this.id=a,this.transport=d,this.activityTimeout=d.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(a){return this.transport.send(a)}send_event(a,d,x){var N={event:a,data:d};return x&&(N.channel=x),ut.debug("Event sent",N),this.send(b.encodeMessage(N))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var a={message:x=>{var N;try{N=b.decodeMessage(x)}catch(U){this.emit("error",{type:"MessageParseError",error:U,data:x.data})}if(N!==void 0){switch(ut.debug("Event recd",N),N.event){case"pusher:error":this.emit("error",{type:"PusherError",data:N.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",N)}},activity:()=>{this.emit("activity")},error:x=>{this.emit("error",x)},closed:x=>{d(),x&&x.code&&this.handleCloseEvent(x),this.transport=null,this.emit("closed")}},d=()=>{Se(a,(x,N)=>{this.transport.unbind(N,x)})};Se(a,(x,N)=>{this.transport.bind(N,x)})}handleCloseEvent(a){var d=b.getCloseAction(a),x=b.getCloseError(a);x&&this.emit("error",x),d&&this.emit(d,{action:d,error:x})}}class F{constructor(a,d){this.transport=a,this.callback=d,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=a=>{this.unbindListeners();var d;try{d=b.processHandshake(a)}catch(x){this.finish("error",{error:x}),this.transport.close();return}d.action==="connected"?this.finish("connected",{connection:new z(d.id,this.transport),activityTimeout:d.activityTimeout}):(this.finish(d.action,{error:d.error}),this.transport.close())},this.onClosed=a=>{this.unbindListeners();var d=b.getCloseAction(a)||"backoff",x=b.getCloseError(a);this.finish(d,{error:x})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(a,d){this.callback(et({transport:this.transport,action:a},d))}}class Z{constructor(a,d){this.timeline=a,this.options=d||{}}send(a,d){this.timeline.isEmpty()||this.timeline.send(He.TimelineTransport.getAgent(this,a),d)}}class se extends Dt{constructor(a,d){super(function(x,N){ut.debug("No callbacks on "+a+" for "+x)}),this.name=a,this.pusher=d,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(a,d){return d(null,{auth:""})}trigger(a,d){if(a.indexOf("client-")!==0)throw new $("Event '"+a+"' does not start with 'client-'");if(!this.subscribed){var x=I.buildLogSuffix("triggeringClientEvents");ut.warn(`Client event triggered before channel 'subscription_succeeded' event . ${x}`)}return this.pusher.send_event(a,d,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(a){var d=a.event,x=a.data;if(d==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(a);else if(d==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(a);else if(d.indexOf("pusher_internal:")!==0){var N={};this.emit(d,x,N)}}handleSubscriptionSucceededEvent(a){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",a.data)}handleSubscriptionCountEvent(a){a.data.subscription_count&&(this.subscriptionCount=a.data.subscription_count),this.emit("pusher:subscription_count",a.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(a,d)=>{a?(this.subscriptionPending=!1,ut.error(a.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:a.message},a instanceof O?{status:a.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:d.auth,channel_data:d.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class pe extends se{authorize(a,d){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:a},d)}}class le{constructor(){this.reset()}get(a){return Object.prototype.hasOwnProperty.call(this.members,a)?{id:a,info:this.members[a]}:null}each(a){Se(this.members,(d,x)=>{a(this.get(x))})}setMyID(a){this.myID=a}onSubscription(a){this.members=a.presence.hash,this.count=a.presence.count,this.me=this.get(this.myID)}addMember(a){return this.get(a.user_id)===null&&this.count++,this.members[a.user_id]=a.user_info,this.get(a.user_id)}removeMember(a){var d=this.get(a.user_id);return d&&(delete this.members[a.user_id],this.count--),d}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var tt=function(u,a,d,x){function N(U){return U instanceof d?U:new d(function(oe){oe(U)})}return new(d||(d=Promise))(function(U,oe){function be(lt){try{ot(x.next(lt))}catch(It){oe(It)}}function Be(lt){try{ot(x.throw(lt))}catch(It){oe(It)}}function ot(lt){lt.done?U(lt.value):N(lt.value).then(be,Be)}ot((x=x.apply(u,a||[])).next())})};class de extends pe{constructor(a,d){super(a,d),this.members=new le}authorize(a,d){super.authorize(a,(x,N)=>tt(this,void 0,void 0,function*(){if(!x)if(N=N,N.channel_data!=null){var U=JSON.parse(N.channel_data);this.members.setMyID(U.user_id)}else if(yield this.pusher.user.signinDonePromise,this.pusher.user.user_data!=null)this.members.setMyID(this.pusher.user.user_data.id);else{let oe=I.buildLogSuffix("authorizationEndpoint");ut.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${oe}, or the user should be signed in.`),d("Invalid auth response");return}d(x,N)}))}handleEvent(a){var d=a.event;if(d.indexOf("pusher_internal:")===0)this.handleInternalEvent(a);else{var x=a.data,N={};a.user_id&&(N.user_id=a.user_id),this.emit(d,x,N)}}handleInternalEvent(a){var d=a.event,x=a.data;switch(d){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(a);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(a);break;case"pusher_internal:member_added":var N=this.members.addMember(x);this.emit("pusher:member_added",N);break;case"pusher_internal:member_removed":var U=this.members.removeMember(x);U&&this.emit("pusher:member_removed",U);break}}handleSubscriptionSucceededEvent(a){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(a.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var je=s(1),Ee=s(0);class Oe extends pe{constructor(a,d,x){super(a,d),this.key=null,this.nacl=x}authorize(a,d){super.authorize(a,(x,N)=>{if(x){d(x,N);return}let U=N.shared_secret;if(!U){d(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=Object(Ee.decode)(U),delete N.shared_secret,d(null,N)})}trigger(a,d){throw new M("Client events are not currently supported for encrypted channels")}handleEvent(a){var d=a.event,x=a.data;if(d.indexOf("pusher_internal:")===0||d.indexOf("pusher:")===0){super.handleEvent(a);return}this.handleEncryptedEvent(d,x)}handleEncryptedEvent(a,d){if(!this.key){ut.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!d.ciphertext||!d.nonce){ut.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+d);return}let x=Object(Ee.decode)(d.ciphertext);if(x.length<this.nacl.secretbox.overheadLength){ut.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${x.length}`);return}let N=Object(Ee.decode)(d.nonce);if(N.length<this.nacl.secretbox.nonceLength){ut.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${N.length}`);return}let U=this.nacl.secretbox.open(x,N,this.key);if(U===null){ut.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(oe,be)=>{if(oe){ut.error(`Failed to make a request to the authEndpoint: ${be}. Unable to fetch new key, so dropping encrypted event`);return}if(U=this.nacl.secretbox.open(x,N,this.key),U===null){ut.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(a,this.getDataToEmit(U))});return}this.emit(a,this.getDataToEmit(U))}getDataToEmit(a){let d=Object(je.decode)(a);try{return JSON.parse(d)}catch{return d}}}class ze extends Dt{constructor(a,d){super(),this.state="initialized",this.connection=null,this.key=a,this.options=d,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var x=He.getNetwork();x.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),x.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(a){return this.connection?this.connection.send(a):!1}send_event(a,d,x){return this.connection?this.connection.send_event(a,d,x):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var a=(d,x)=>{d?this.runner=this.strategy.connect(0,a):x.action==="error"?(this.emit("error",{type:"HandshakeError",error:x.error}),this.timeline.error({handshakeError:x.error})):(this.abortConnecting(),this.handshakeCallbacks[x.action](x))};this.runner=this.strategy.connect(0,a)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var a=this.abandonConnection();a.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(a){this.timeline.info({action:"retry",delay:a}),a>0&&this.emit("connecting_in",Math.round(a/1e3)),this.retryTimer=new De(a||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new De(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new De(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new De(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(a){return et({},a,{message:d=>{this.resetActivityCheck(),this.emit("message",d)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:d=>{this.emit("error",d)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(a){return et({},a,{connected:d=>{this.activityTimeout=Math.min(this.options.activityTimeout,d.activityTimeout,d.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(d.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let a=d=>x=>{x.error&&this.emit("error",{type:"WebSocketError",error:x.error}),d(x)};return{tls_only:a(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:a(()=>{this.disconnect()}),backoff:a(()=>{this.retryIn(1e3)}),retry:a(()=>{this.retryIn(0)})}}setConnection(a){this.connection=a;for(var d in this.connectionCallbacks)this.connection.bind(d,this.connectionCallbacks[d]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var a in this.connectionCallbacks)this.connection.unbind(a,this.connectionCallbacks[a]);var d=this.connection;return this.connection=null,d}}updateState(a,d){var x=this.state;if(this.state=a,x!==a){var N=a;N==="connected"&&(N+=" with new socket ID "+d.socket_id),ut.debug("State changed",x+" -> "+N),this.timeline.info({state:a,params:d}),this.emit("state_change",{previous:x,current:a}),this.emit(a,d)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class qe{constructor(){this.channels={}}add(a,d){return this.channels[a]||(this.channels[a]=Le(a,d)),this.channels[a]}all(){return n_(this.channels)}find(a){return this.channels[a]}remove(a){var d=this.channels[a];return delete this.channels[a],d}disconnect(){Se(this.channels,function(a){a.disconnect()})}}function Le(u,a){if(u.indexOf("private-encrypted-")===0){if(a.config.nacl)return re.createEncryptedChannel(u,a,a.config.nacl);let d="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",x=I.buildLogSuffix("encryptedChannelSupport");throw new M(`${d}. ${x}`)}else{if(u.indexOf("private-")===0)return re.createPrivateChannel(u,a);if(u.indexOf("presence-")===0)return re.createPresenceChannel(u,a);if(u.indexOf("#")===0)throw new k('Cannot create a channel with name "'+u+'".');return re.createChannel(u,a)}}var Ne={createChannels(){return new qe},createConnectionManager(u,a){return new ze(u,a)},createChannel(u,a){return new se(u,a)},createPrivateChannel(u,a){return new pe(u,a)},createPresenceChannel(u,a){return new de(u,a)},createEncryptedChannel(u,a,d){return new Oe(u,a,d)},createTimelineSender(u,a){return new Z(u,a)},createHandshake(u,a){return new F(u,a)},createAssistantToTheTransportManager(u,a,d){return new f(u,a,d)}},re=Ne;class ve{constructor(a){this.options=a||{},this.livesLeft=this.options.lives||1/0}getAssistant(a){return re.createAssistantToTheTransportManager(this,a,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class ie{constructor(a,d){this.strategies=a,this.loop=!!d.loop,this.failFast=!!d.failFast,this.timeout=d.timeout,this.timeoutLimit=d.timeoutLimit}isSupported(){return ks(this.strategies,ye.method("isSupported"))}connect(a,d){var x=this.strategies,N=0,U=this.timeout,oe=null,be=(Be,ot)=>{ot?d(null,ot):(N=N+1,this.loop&&(N=N%x.length),N<x.length?(U&&(U=U*2,this.timeoutLimit&&(U=Math.min(U,this.timeoutLimit))),oe=this.tryStrategy(x[N],a,{timeout:U,failFast:this.failFast},be)):d(!0))};return oe=this.tryStrategy(x[N],a,{timeout:U,failFast:this.failFast},be),{abort:function(){oe.abort()},forceMinPriority:function(Be){a=Be,oe&&oe.forceMinPriority(Be)}}}tryStrategy(a,d,x,N){var U=null,oe=null;return x.timeout>0&&(U=new De(x.timeout,function(){oe.abort(),N(!0)})),oe=a.connect(d,function(be,Be){be&&U&&U.isRunning()&&!x.failFast||(U&&U.ensureAborted(),N(be,Be))}),{abort:function(){U&&U.ensureAborted(),oe.abort()},forceMinPriority:function(be){oe.forceMinPriority(be)}}}}class ue{constructor(a){this.strategies=a}isSupported(){return ks(this.strategies,ye.method("isSupported"))}connect(a,d){return fe(this.strategies,a,function(x,N){return function(U,oe){if(N[x].error=U,U){ce(N)&&d(!0);return}ge(N,function(be){be.forceMinPriority(oe.transport.priority)}),d(null,oe)}})}}function fe(u,a,d){var x=Bt(u,function(N,U,oe,be){return N.connect(a,d(U,be))});return{abort:function(){ge(x,V)},forceMinPriority:function(N){ge(x,function(U){U.forceMinPriority(N)})}}}function ce(u){return pn(u,function(a){return!!a.error})}function V(u){!u.error&&!u.aborted&&(u.abort(),u.aborted=!0)}class H{constructor(a,d,x){this.strategy=a,this.transports=d,this.ttl=x.ttl||1800*1e3,this.usingTLS=x.useTLS,this.timeline=x.timeline}isSupported(){return this.strategy.isSupported()}connect(a,d){var x=this.usingTLS,N=X(x),U=N&&N.cacheSkipCount?N.cacheSkipCount:0,oe=[this.strategy];if(N&&N.timestamp+this.ttl>=ye.now()){var be=this.transports[N.transport];be&&(["ws","wss"].includes(N.transport)||U>3?(this.timeline.info({cached:!0,transport:N.transport,latency:N.latency}),oe.push(new ie([be],{timeout:N.latency*2+1e3,failFast:!0}))):U++)}var Be=ye.now(),ot=oe.pop().connect(a,function lt(It,js){It?(_e(x),oe.length>0?(Be=ye.now(),ot=oe.pop().connect(a,lt)):d(It)):(J(x,js.transport.name,ye.now()-Be,U),d(null,js))});return{abort:function(){ot.abort()},forceMinPriority:function(lt){a=lt,ot&&ot.forceMinPriority(lt)}}}}function ee(u){return"pusherTransport"+(u?"TLS":"NonTLS")}function X(u){var a=He.getLocalStorage();if(a)try{var d=a[ee(u)];if(d)return JSON.parse(d)}catch{_e(u)}return null}function J(u,a,d,x){var N=He.getLocalStorage();if(N)try{N[ee(u)]=Wt({timestamp:ye.now(),transport:a,latency:d,cacheSkipCount:x})}catch{}}function _e(u){var a=He.getLocalStorage();if(a)try{delete a[ee(u)]}catch{}}class $e{constructor(a,{delay:d}){this.strategy=a,this.options={delay:d}}isSupported(){return this.strategy.isSupported()}connect(a,d){var x=this.strategy,N,U=new De(this.options.delay,function(){N=x.connect(a,d)});return{abort:function(){U.ensureAborted(),N&&N.abort()},forceMinPriority:function(oe){a=oe,N&&N.forceMinPriority(oe)}}}}class Pe{constructor(a,d,x){this.test=a,this.trueBranch=d,this.falseBranch=x}isSupported(){var a=this.test()?this.trueBranch:this.falseBranch;return a.isSupported()}connect(a,d){var x=this.test()?this.trueBranch:this.falseBranch;return x.connect(a,d)}}class Ge{constructor(a){this.strategy=a}isSupported(){return this.strategy.isSupported()}connect(a,d){var x=this.strategy.connect(a,function(N,U){U&&x.abort(),d(N,U)});return x}}function Re(u){return function(){return u.isSupported()}}var q=function(u,a,d){var x={};function N(vo,$l,kl,xl,Il){var bo=d(u,vo,$l,kl,xl,Il);return x[vo]=bo,bo}var U=Object.assign({},a,{hostNonTLS:u.wsHost+":"+u.wsPort,hostTLS:u.wsHost+":"+u.wssPort,httpPath:u.wsPath}),oe=Object.assign({},U,{useTLS:!0}),be=Object.assign({},a,{hostNonTLS:u.httpHost+":"+u.httpPort,hostTLS:u.httpHost+":"+u.httpsPort,httpPath:u.httpPath}),Be={loop:!0,timeout:15e3,timeoutLimit:6e4},ot=new ve({minPingDelay:1e4,maxPingDelay:u.activityTimeout}),lt=new ve({lives:2,minPingDelay:1e4,maxPingDelay:u.activityTimeout}),It=N("ws","ws",3,U,ot),js=N("wss","ws",3,oe,ot),fl=N("sockjs","sockjs",1,be),ho=N("xhr_streaming","xhr_streaming",1,be,lt),yl=N("xdr_streaming","xdr_streaming",1,be,lt),go=N("xhr_polling","xhr_polling",1,be),wl=N("xdr_polling","xdr_polling",1,be),po=new ie([It],Be),vl=new ie([js],Be),bl=new ie([fl],Be),fo=new ie([new Pe(Re(ho),ho,yl)],Be),yo=new ie([new Pe(Re(go),go,wl)],Be),wo=new ie([new Pe(Re(fo),new ue([fo,new $e(yo,{delay:4e3})]),yo)],Be),vn=new Pe(Re(wo),wo,bl),bn;return a.useTLS?bn=new ue([po,new $e(vn,{delay:2e3})]):bn=new ue([po,new $e(vl,{delay:2e3}),new $e(vn,{delay:5e3})]),new H(new Ge(new Pe(Re(It),bn,vn)),x,{ttl:18e5,timeline:a.timeline,useTLS:a.useTLS})},Ue=q,_t=(function(){var u=this;u.timeline.info(u.buildTimelineMessage({transport:u.name+(u.options.useTLS?"s":"")})),u.hooks.isInitialized()?u.changeState("initialized"):u.hooks.file?(u.changeState("initializing"),w.load(u.hooks.file,{useTLS:u.options.useTLS},function(a,d){u.hooks.isInitialized()?(u.changeState("initialized"),d(!0)):(a&&u.onError(a),u.onClose(),d(!1))})):u.onClose()}),st={getRequest:function(u){var a=new window.XDomainRequest;return a.ontimeout=function(){u.emit("error",new T),u.close()},a.onerror=function(d){u.emit("error",d),u.close()},a.onprogress=function(){a.responseText&&a.responseText.length>0&&u.onChunk(200,a.responseText)},a.onload=function(){a.responseText&&a.responseText.length>0&&u.onChunk(200,a.responseText),u.emit("finished",200),u.close()},a},abortRequest:function(u){u.ontimeout=u.onerror=u.onprogress=u.onload=null,u.abort()}},Ve=st;const Qe=256*1024;class Ke extends Dt{constructor(a,d,x){super(),this.hooks=a,this.method=d,this.url=x}start(a){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},He.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(a)}close(){this.unloader&&(He.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(a,d){for(;;){var x=this.advanceBuffer(d);if(x)this.emit("chunk",{status:a,data:x});else break}this.isBufferTooLong(d)&&this.emit("buffer_too_long")}advanceBuffer(a){var d=a.slice(this.position),x=d.indexOf(`
35
+ `);return x!==-1?(this.position+=x+1,d.slice(0,x)):null}isBufferTooLong(a){return this.position===a.length&&a.length>Qe}}var mt;(function(u){u[u.CONNECTING=0]="CONNECTING",u[u.OPEN=1]="OPEN",u[u.CLOSED=3]="CLOSED"})(mt||(mt={}));var Je=mt,gt=1;class pt{constructor(a,d){this.hooks=a,this.session=Et(1e3)+"/"+Rc(8),this.location=ft(d),this.readyState=Je.CONNECTING,this.openStream()}send(a){return this.sendRaw(JSON.stringify([a]))}ping(){this.hooks.sendHeartbeat(this)}close(a,d){this.onClose(a,d,!0)}sendRaw(a){if(this.readyState===Je.OPEN)try{return He.createSocketRequest("POST",At($t(this.location,this.session))).start(a),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(a,d,x){this.closeStream(),this.readyState=Je.CLOSED,this.onclose&&this.onclose({code:a,reason:d,wasClean:x})}onChunk(a){if(a.status===200){this.readyState===Je.OPEN&&this.onActivity();var d,x=a.data.slice(0,1);switch(x){case"o":d=JSON.parse(a.data.slice(1)||"{}"),this.onOpen(d);break;case"a":d=JSON.parse(a.data.slice(1)||"[]");for(var N=0;N<d.length;N++)this.onEvent(d[N]);break;case"m":d=JSON.parse(a.data.slice(1)||"null"),this.onEvent(d);break;case"h":this.hooks.onHeartbeat(this);break;case"c":d=JSON.parse(a.data.slice(1)||"[]"),this.onClose(d[0],d[1],!0);break}}}onOpen(a){this.readyState===Je.CONNECTING?(a&&a.hostname&&(this.location.base=Tt(this.location.base,a.hostname)),this.readyState=Je.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(a){this.readyState===Je.OPEN&&this.onmessage&&this.onmessage({data:a})}onActivity(){this.onactivity&&this.onactivity()}onError(a){this.onerror&&this.onerror(a)}openStream(){this.stream=He.createSocketRequest("POST",At(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",a=>{this.onChunk(a)}),this.stream.bind("finished",a=>{this.hooks.onFinished(this,a)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(a){ye.defer(()=>{this.onError(a),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function ft(u){var a=/([^\?]*)\/*(\??.*)/.exec(u);return{base:a[1],queryString:a[2]}}function $t(u,a){return u.base+"/"+a+"/xhr_send"}function At(u){var a=u.indexOf("?")===-1?"?":"&";return u+a+"t="+ +new Date+"&n="+gt++}function Tt(u,a){var d=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(u);return d[1]+a+d[3]}function Et(u){return He.randomInt(u)}function Rc(u){for(var a=[],d=0;d<u;d++)a.push(Et(32).toString(32));return a.join("")}var Lc=pt,Mc={getReceiveURL:function(u,a){return u.base+"/"+a+"/xhr_streaming"+u.queryString},onHeartbeat:function(u){u.sendRaw("[]")},sendHeartbeat:function(u){u.sendRaw("[]")},onFinished:function(u,a){u.onClose(1006,"Connection interrupted ("+a+")",!1)}},zc=Mc,Dc={getReceiveURL:function(u,a){return u.base+"/"+a+"/xhr"+u.queryString},onHeartbeat:function(){},sendHeartbeat:function(u){u.sendRaw("[]")},onFinished:function(u,a){a===200?u.reconnect():u.onClose(1006,"Connection interrupted ("+a+")",!1)}},Fc=Dc,Oc={getRequest:function(u){var a=He.getXHRAPI(),d=new a;return d.onreadystatechange=d.onprogress=function(){switch(d.readyState){case 3:d.responseText&&d.responseText.length>0&&u.onChunk(d.status,d.responseText);break;case 4:d.responseText&&d.responseText.length>0&&u.onChunk(d.status,d.responseText),u.emit("finished",d.status),u.close();break}},d},abortRequest:function(u){u.onreadystatechange=null,u.abort()}},Gc=Oc,Bc={createStreamingSocket(u){return this.createSocket(zc,u)},createPollingSocket(u){return this.createSocket(Fc,u)},createSocket(u,a){return new Lc(u,a)},createXHR(u,a){return this.createRequest(Gc,u,a)},createRequest(u,a,d){return new Ke(u,a,d)}},lo=Bc;lo.createXDR=function(u,a){return this.createRequest(Ve,u,a)};var Vc=lo,Hc={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:c,DependenciesReceivers:p,getDefaultStrategy:Ue,Transports:As,transportConnectionInitializer:_t,HTTPFactory:Vc,TimelineTransport:X_,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(u){window.Pusher=u;var a=()=>{this.onDocumentBody(u.ready)};window.JSON?a():w.load("json2",{},a)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:W,jsonp:H_}},onDocumentBody(u){document.body?u():setTimeout(()=>{this.onDocumentBody(u)},0)},createJSONPRequest(u,a){return new W_(u,a)},createScriptRequest(u){return new A_(u)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var u=this.getXHRAPI();return new u},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return y},createWebSocket(u){var a=this.getWebSocketAPI();return new a(u)},createSocketRequest(u,a){if(this.isXHRSupported())return this.HTTPFactory.createXHR(u,a);if(this.isXDRSupported(a.indexOf("https:")===0))return this.HTTPFactory.createXDR(u,a);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var u=this.getXHRAPI();return!!u&&new u().withCredentials!==void 0},isXDRSupported(u){var a=u?"https:":"http:",d=this.getProtocol();return!!window.XDomainRequest&&d===a},addUnloadListener(u){window.addEventListener!==void 0?window.addEventListener("unload",u,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",u)},removeUnloadListener(u){window.addEventListener!==void 0?window.removeEventListener("unload",u,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",u)},randomInt(u){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*u)}},He=Hc,wn;(function(u){u[u.ERROR=3]="ERROR",u[u.INFO=6]="INFO",u[u.DEBUG=7]="DEBUG"})(wn||(wn={}));var Es=wn;class Wc{constructor(a,d,x){this.key=a,this.session=d,this.events=[],this.options=x||{},this.sent=0,this.uniqueID=0}log(a,d){a<=this.options.level&&(this.events.push(et({},d,{timestamp:ye.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(a){this.log(Es.ERROR,a)}info(a){this.log(Es.INFO,a)}debug(a){this.log(Es.DEBUG,a)}isEmpty(){return this.events.length===0}send(a,d){var x=et({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],a(x,(N,U)=>{N||this.sent++,d&&d(N,U)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class Uc{constructor(a,d,x,N){this.name=a,this.priority=d,this.transport=x,this.options=N||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(a,d){if(this.isSupported()){if(this.priority<a)return uo(new j,d)}else return uo(new D,d);var x=!1,N=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),U=null,oe=function(){N.unbind("initialized",oe),N.connect()},be=function(){U=re.createHandshake(N,function(It){x=!0,lt(),d(null,It)})},Be=function(It){lt(),d(It)},ot=function(){lt();var It;It=Wt(N),d(new R(It))},lt=function(){N.unbind("initialized",oe),N.unbind("open",be),N.unbind("error",Be),N.unbind("closed",ot)};return N.bind("initialized",oe),N.bind("open",be),N.bind("error",Be),N.bind("closed",ot),N.initialize(),{abort:()=>{x||(lt(),U?U.close():N.close())},forceMinPriority:It=>{x||this.priority<It&&(U?U.close():N.close())}}}}function uo(u,a){return ye.defer(function(){a(u)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:Xc}=He;var Yc=function(u,a,d,x,N,U){var oe=Xc[d];if(!oe)throw new P(d);var be=(!u.enabledTransports||Fe(u.enabledTransports,a)!==-1)&&(!u.disabledTransports||Fe(u.disabledTransports,a)===-1),Be;return be?(N=Object.assign({ignoreNullOrigin:u.ignoreNullOrigin},N),Be=new Uc(a,x,U?U.getAssistant(oe):oe,N)):Be=Zc,Be},Zc={isSupported:function(){return!1},connect:function(u,a){var d=ye.defer(function(){a(new D)});return{abort:function(){d.ensureAborted()},forceMinPriority:function(){}}}};function mo(u){if(u==null)throw"You must pass an options object";if(u.cluster==null)throw"Options object must provide a cluster";"disableStats"in u&&ut.warn("The disableStats option is deprecated in favor of enableStats")}const Jc=(u,a)=>{var d="socket_id="+encodeURIComponent(u.socketId);for(var x in a.params)d+="&"+encodeURIComponent(x)+"="+encodeURIComponent(a.params[x]);if(a.paramsProvider!=null){let N=a.paramsProvider();for(var x in N)d+="&"+encodeURIComponent(x)+"="+encodeURIComponent(N[x])}return d};var Qc=u=>{if(typeof He.getAuthorizers()[u.transport]>"u")throw`'${u.transport}' is not a recognized auth transport`;return(a,d)=>{const x=Jc(a,u);He.getAuthorizers()[u.transport](He,x,u,E.UserAuthentication,d)}};const Kc=(u,a)=>{var d="socket_id="+encodeURIComponent(u.socketId);d+="&channel_name="+encodeURIComponent(u.channelName);for(var x in a.params)d+="&"+encodeURIComponent(x)+"="+encodeURIComponent(a.params[x]);if(a.paramsProvider!=null){let N=a.paramsProvider();for(var x in N)d+="&"+encodeURIComponent(x)+"="+encodeURIComponent(N[x])}return d};var el=u=>{if(typeof He.getAuthorizers()[u.transport]>"u")throw`'${u.transport}' is not a recognized auth transport`;return(a,d)=>{const x=Kc(a,u);He.getAuthorizers()[u.transport](He,x,u,E.ChannelAuthorization,d)}};const tl=(u,a,d)=>{const x={authTransport:a.transport,authEndpoint:a.endpoint,auth:{params:a.params,headers:a.headers}};return(N,U)=>{const oe=u.channel(N.channelName);d(oe,x).authorize(N.socketId,U)}};function _l(u,a){let d={activityTimeout:u.activityTimeout||l.activityTimeout,cluster:u.cluster,httpPath:u.httpPath||l.httpPath,httpPort:u.httpPort||l.httpPort,httpsPort:u.httpsPort||l.httpsPort,pongTimeout:u.pongTimeout||l.pongTimeout,statsHost:u.statsHost||l.stats_host,unavailableTimeout:u.unavailableTimeout||l.unavailableTimeout,wsPath:u.wsPath||l.wsPath,wsPort:u.wsPort||l.wsPort,wssPort:u.wssPort||l.wssPort,enableStats:il(u),httpHost:sl(u),useTLS:al(u),wsHost:nl(u),userAuthenticator:rl(u),channelAuthorizer:ll(u,a)};return"disabledTransports"in u&&(d.disabledTransports=u.disabledTransports),"enabledTransports"in u&&(d.enabledTransports=u.enabledTransports),"ignoreNullOrigin"in u&&(d.ignoreNullOrigin=u.ignoreNullOrigin),"timelineParams"in u&&(d.timelineParams=u.timelineParams),"nacl"in u&&(d.nacl=u.nacl),d}function sl(u){return u.httpHost?u.httpHost:u.cluster?`sockjs-${u.cluster}.pusher.com`:l.httpHost}function nl(u){return u.wsHost?u.wsHost:ol(u.cluster)}function ol(u){return`ws-${u}.pusher.com`}function al(u){return He.getProtocol()==="https:"?!0:u.forceTLS!==!1}function il(u){return"enableStats"in u?u.enableStats:"disableStats"in u?!u.disableStats:!1}function rl(u){const a=Object.assign(Object.assign({},l.userAuthentication),u.userAuthentication);return"customHandler"in a&&a.customHandler!=null?a.customHandler:Qc(a)}function cl(u,a){let d;return"channelAuthorization"in u?d=Object.assign(Object.assign({},l.channelAuthorization),u.channelAuthorization):(d={transport:u.authTransport||l.authTransport,endpoint:u.authEndpoint||l.authEndpoint},"auth"in u&&("params"in u.auth&&(d.params=u.auth.params),"headers"in u.auth&&(d.headers=u.auth.headers)),"authorizer"in u&&(d.customHandler=tl(a,d,u.authorizer))),d}function ll(u,a){const d=cl(u,a);return"customHandler"in d&&d.customHandler!=null?d.customHandler:el(d)}class dl extends Dt{constructor(a){super(function(d,x){ut.debug(`No callbacks on watchlist events for ${d}`)}),this.pusher=a,this.bindWatchlistInternalEvent()}handleEvent(a){a.data.events.forEach(d=>{this.emit(d.name,d)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",a=>{var d=a.event;d==="pusher_internal:watchlist_events"&&this.handleEvent(a)})}}function ul(){let u,a;return{promise:new Promise((x,N)=>{u=x,a=N}),resolve:u,reject:a}}var ml=ul;class hl extends Dt{constructor(a){super(function(d,x){ut.debug("No callbacks on user for "+d)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(d,x)=>{if(d){ut.warn(`Error during signin: ${d}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:x.auth,user_data:x.user_data})},this.pusher=a,this.pusher.connection.bind("state_change",({previous:d,current:x})=>{d!=="connected"&&x==="connected"&&this._signin(),d==="connected"&&x!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new dl(a),this.pusher.connection.bind("message",d=>{var x=d.event;x==="pusher:signin_success"&&this._onSigninSuccess(d.data),this.serverToUserChannel&&this.serverToUserChannel.name===d.channel&&this.serverToUserChannel.handleEvent(d)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(a){try{this.user_data=JSON.parse(a.user_data)}catch{ut.error(`Failed parsing user data after signin: ${a.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){ut.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const a=d=>{d.subscriptionPending&&d.subscriptionCancelled?d.reinstateSubscription():!d.subscriptionPending&&this.pusher.connection.state==="connected"&&d.subscribe()};this.serverToUserChannel=new se(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((d,x)=>{d.indexOf("pusher_internal:")===0||d.indexOf("pusher:")===0||this.emit(d,x)}),a(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:a,resolve:d}=ml();a.done=!1;const x=()=>{a.done=!0};a.then(x).catch(x),this.signinDonePromise=a,this._signinDoneResolve=d}}class Pt{static ready(){Pt.isReady=!0;for(var a=0,d=Pt.instances.length;a<d;a++)Pt.instances[a].connect()}static getClientFeatures(){return St(w_({ws:He.Transports.ws},function(a){return a.isSupported({})}))}constructor(a,d){gl(a),mo(d),this.key=a,this.config=_l(d,this),this.channels=re.createChannels(),this.global_emitter=new Dt,this.sessionID=He.randomInt(1e9),this.timeline=new Wc(this.key,this.sessionID,{cluster:this.config.cluster,features:Pt.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:Es.INFO,version:l.VERSION}),this.config.enableStats&&(this.timelineSender=re.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+He.TimelineTransport.name}));var x=N=>He.getDefaultStrategy(this.config,N,Yc);this.connection=re.createConnectionManager(this.key,{getStrategy:x,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",N=>{var U=N.event,oe=U.indexOf("pusher_internal:")===0;if(N.channel){var be=this.channel(N.channel);be&&be.handleEvent(N)}oe||this.global_emitter.emit(N.event,N.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",N=>{ut.warn(N)}),Pt.instances.push(this),this.timeline.info({instances:Pt.instances.length}),this.user=new hl(this),Pt.isReady&&this.connect()}channel(a){return this.channels.find(a)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var a=this.connection.isUsingTLS(),d=this.timelineSender;this.timelineSenderTimer=new Me(6e4,function(){d.send(a)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(a,d,x){return this.global_emitter.bind(a,d,x),this}unbind(a,d,x){return this.global_emitter.unbind(a,d,x),this}bind_global(a){return this.global_emitter.bind_global(a),this}unbind_global(a){return this.global_emitter.unbind_global(a),this}unbind_all(a){return this.global_emitter.unbind_all(),this}subscribeAll(){var a;for(a in this.channels.channels)this.channels.channels.hasOwnProperty(a)&&this.subscribe(a)}subscribe(a){var d=this.channels.add(a,this);return d.subscriptionPending&&d.subscriptionCancelled?d.reinstateSubscription():!d.subscriptionPending&&this.connection.state==="connected"&&d.subscribe(),d}unsubscribe(a){var d=this.channels.find(a);d&&d.subscriptionPending?d.cancelSubscription():(d=this.channels.remove(a),d&&d.subscribed&&d.unsubscribe())}send_event(a,d,x){return this.connection.send_event(a,d,x)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}Pt.instances=[],Pt.isReady=!1,Pt.logToConsole=!1,Pt.Runtime=He,Pt.ScriptReceivers=He.ScriptReceivers,Pt.DependenciesReceivers=He.DependenciesReceivers,Pt.auth_callbacks=He.auth_callbacks;var P_=Pt;function gl(u){if(u==null)throw"You must pass your app key when you instantiate Pusher."}He.setup(Pt);var pl=s(2);class Ts extends P_{constructor(a,d){P_.logToConsole=Ts.logToConsole,P_.log=Ts.log,mo(d),d.nacl=pl,super(a,d)}}})])})})(jn)),jn.exports}var qn,fa;function Y4_(){return fa||(fa=1,qn=X4_()),qn}var Z4_=Y4_();const J4_=V2_(Z4_),co=`${ht}/api/notification`,Q4_=e=>xe.get(co,{params:{...e}}),K4_=e=>xe.put(`${co}/${e}`),eI_=()=>xe.put(`${co}/updateAllStatus`),Fr=Y.createAction("notifications/setNotification"),tI_=Y.createAction("notifications/setUnReadNotification"),_I_=Y.createAction("notifications/updateUnReadNotification"),sI_={currentPage:1,pageSize:30,searchString:"",isRead:!1},nI_="Notification list",ya="NOTIFICATION_CHANNEL",oI_="NEW_NOTIFICATION",aI_=()=>{const e=ke.useDispatch(),t=ke.useSelector($=>{var k;return(k=$.common.user)==null?void 0:k.id}),_=ke.useSelector($=>$.notification.notificationList),n=ke.useSelector($=>$.common.user.pusherKey),s=ke.useSelector($=>$.common.user.pusherCluster),r=ke.useSelector($=>$.notification.totalItems),c=ke.useSelector($=>$.notification.unReadNotification),[h,l]=C.useState(sI_),[g,p]=C.useState(!1),w=$=>l({...h,...$}),v=$=>{var j,R,M,P;const{source:k,extraData:T}=$;switch(k){case"NewConferenceCreated":window.open(`/start-conference/${(j=JSON.parse(T))==null?void 0:j[0]}/${(R=JSON.parse(T))==null?void 0:R[1]}`);break;case"NewSessionCreated":window.open(`/start-session/${(M=JSON.parse(T))==null?void 0:M[0]}/${(P=JSON.parse(T))==null?void 0:P[1]}`);break}},A=C.useCallback(async()=>{var $,k;e(me(!0));try{const T=await Q4_(h),{items:j,totalItems:R}=T.data;e(Fr({notificationList:j,totalItems:R}))}catch(T){e(he({type:"danger",message:((k=($=T.response)==null?void 0:$.data)==null?void 0:k.title)||T.message}))}e(me(!1))},[h]);C.useEffect(()=>{document.title=nI_},[]),C.useEffect(()=>{A();const $=new J4_(n,{cluster:s});return $.subscribe(`${ya}-${t}`).bind(oI_,A),()=>$.unsubscribe(`${ya}-${t}`)},[h,t]);const I=C.useCallback(($,k)=>{var T,j;try{e(Xt({isOpen:!0,type:"warning",message:`Do you want to mark this notification ${k?"read":"unread"}?`,onConfirm:async()=>{await K4_($),A()}}))}catch(R){e(he({type:"danger",message:((j=(T=R.response)==null?void 0:T.data)==null?void 0:j.title)||R.message}))}},[_,c]),E=C.useCallback(async()=>{var $,k;try{if(_.length===0)throw new Error("There are no unread messages");e(Xt({isOpen:!0,type:"warning",message:"Do you want to mark all notification ?",onConfirm:async()=>{p(!0),await eI_(),A(),p(!1)}}))}catch(T){e(he({type:"danger",message:((k=($=T.response)==null?void 0:$.data)==null?void 0:k.title)||T.message}))}},[_]);return{notificationList:_,totalItems:r,unReadNotification:c,filters:h,changeFilters:w,updateNotification:I,viewNotification:v,updateAll:E,toggleUpdateAllStatus:g}},iI_="Notification list",rI_=20,cI_=()=>{const{notificationList:e,totalItems:t,filters:_,changeFilters:n,updateNotification:s,viewNotification:r,updateAll:c,toggleUpdateAllStatus:h}=aI_();return o.jsxs("div",{className:"animated fadeIn",style:{padding:"20px 40px"},children:[o.jsx("h5",{className:"mb-2",children:iI_}),o.jsxs(S.Row,{className:"my-2",children:[o.jsx(S.Col,{md:8,children:o.jsx(vs,{initValue:_.searchString,onSearch:l=>n({searchString:l}),placeholder:"Type something to search"})}),o.jsx(S.Col,{md:4,children:o.jsx(U4_,{value:_.isRead,onChange:l=>n({isRead:l.value})})})]}),o.jsx(S.Row,{className:"my-2 d-flex justify-content-center",children:o.jsxs(S.Col,{md:12,className:"d-flex justify-content-end align-items-center",children:[_.isRead===!1&&o.jsxs("div",{className:"d-flex align-items-center justify-content-end mx-2",children:["Mark all as read",o.jsx(S.Input,{checked:h,className:"mx-2",type:"checkbox",id:"status-checkbox",onChange:()=>c()})]}),"Total of notifications: ",t]})}),o.jsxs(S.Row,{className:"mb-2",children:[o.jsx(S.Col,{md:12,children:e&&e.length>0?o.jsx("div",{children:o.jsxs(S.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:"align-top",children:"Text"}),o.jsx("th",{className:"align-top",children:"Time"}),o.jsx("th",{className:"text-center",children:"Is read"}),o.jsx("th",{className:"text-center",children:"Action"})]})}),o.jsx("tbody",{children:e.map(l=>o.jsxs("tr",{children:[o.jsx("td",{className:"align-middle",children:l.text}),o.jsx("td",{className:"align-middle",children:ln(l.time,"yyyy-MM-DD HH:mm")}),o.jsx("td",{className:`${L["control-input"]} text-center align-middle`,children:o.jsx(S.Input,{type:"checkbox",id:`status-checkbox-${l.id}`,checked:l.isRead,onChange:()=>s(l.id,!l.isRead)})}),o.jsx("td",{className:"text-center align-middle",children:["AssessmentAssignment","NewConferenceCreated","NewSessionCreated","CertificateApproved"].includes(l.source)&&o.jsx(Yk_,{className:"cursor-pointer",size:rI_,title:"Detail",onClick:()=>r(l)})})]},l.id))})]})}):o.jsx(I_,{label:"notification"})}),o.jsx(S.Col,{md:12,children:o.jsx(C_,{filters:_,totalRecordCount:t,changePageSize:l=>n({pageSize:l}),changePage:l=>n({currentPage:l})})})]})]})},wa={"app-alert":"_app-alert_1j0hk_1","app-alert--success":"_app-alert--success_1j0hk_17"},lI_=({className:e=""})=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`${e}`,children:[o.jsx("rect",{width:"20",height:"20",rx:"10",fill:"white"}),o.jsx("circle",{cx:"10",cy:"10",r:"10",fill:"#0F9655"}),o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9703 6.04351C16.3143 6.34927 16.3453 6.876 16.0395 7.21999L9.37284 14.72C9.22036 14.8915 9.00389 14.9926 8.77448 14.9993C8.54507 15.0061 8.32303 14.9179 8.16074 14.7556L5.24408 11.8389C4.91864 11.5135 4.91864 10.9859 5.24408 10.6604C5.56951 10.335 6.09715 10.335 6.42259 10.6604L8.71432 12.9522L14.7938 6.11271C15.0996 5.76873 15.6263 5.73774 15.9703 6.04351Z",fill:"#FFFFFF"})]}),dI_=()=>{var r;const e=ke.useDispatch(),t=ke.useSelector(c=>c.common.alert),_=C.useRef(null),n=()=>{e(he({message:""})),_&&_.current&&clearTimeout(_.current)};C.useEffect(()=>{var c;(c=t.message)!=null&&c.length&&(_&&_.current&&clearTimeout(_.current),_.current=setTimeout(()=>{e(he({message:""}))},3e3))},[t]);const s=!window.location.pathname.startsWith("/admin");return((r=t.message)==null?void 0:r.length)>0?o.jsx("div",{className:`app-alert ${s?`${wa["app-alert"]} ${wa[`app-alert--${t.type}`]}`:""}`,children:o.jsxs(S.Alert,{color:t.type,isOpen:t.message.length>0,onDismiss:s?n:void 0,children:[t.type==="success"&&s&&o.jsx(lI_,{className:"mr-2"}),t.message]})}):null},uI_=nt.object({name:nt.string().required("Name is required")}),mI_=(e,t)=>{const{targetMedia:_,onConfirm:n}=e,s=_!=null&&_.key?"Update":"Create",r=_!=null&&_.key?"Rename":"Folder";return o.jsx(c_.Formik,{initialValues:{name:_==null?void 0:_.name},enableReinitialize:!0,validationSchema:uI_,onSubmit:(c,h)=>{n&&n(c),h.resetForm()},children:c=>{const{values:h,touched:l,errors:g,handleChange:p,handleBlur:w,handleSubmit:v}=c;return o.jsx(cn,{header:r,confirmText:s,onConfirm:v,ref:t,children:o.jsx(S.Row,{children:o.jsxs(S.Col,{md:12,children:[o.jsx(S.Input,{name:"name",placeholder:`Enter your ${_!=null&&_.key?"file":"folder"} name`,value:h.name,onChange:p,onBlur:w("question")}),l.name&&g.name&&o.jsx(kt,{text:g.name})]})})})}})},hI_=C.forwardRef(mI_),gI_=({isLibrary:e,step:t,breadcumb:_,currentPrefix:n,targetMedia:s,handleSelectFile:r,handleCreateFolder:c,handleRenameFile:h,handleGoBack:l,handleDownloadMedia:g,handleDeleteMediaOrFolder:p,showErrorAlert:w,className:v})=>{const A=C.useRef(null),I=C.useRef(null),E=()=>{var k;return(k=A==null?void 0:A.current)==null?void 0:k.toggle()},$=()=>o.jsxs(S.Row,{className:"p-2 pl-3",children:[!!t&&o.jsxs(S.Button,{className:"mr-2",color:"secondary",onClick:l,children:[o.jsx(I$_,{}),o.jsx(S.Label,{className:`ml-1 h6 m-0 ${v}`,children:"Go up"})]}),s&&!s.isFolder&&o.jsxs(S.Button,{className:"mr-2",color:"success",onClick:g,children:[o.jsx(C$_,{}),o.jsx(S.Label,{className:`ml-1 h6 m-0 ${v}`,children:"Download"})]}),s&&!e&&o.jsxs(S.Button,{className:"mr-2",color:"danger",onClick:p,children:[o.jsx(T$_,{}),o.jsx(S.Label,{className:`ml-1 h6 m-0 ${v}`,children:"Delete"})]}),s&&!e&&!s.isFolder&&o.jsxs(S.Button,{className:"mr-2",color:"primary",onClick:E,children:[o.jsx(S$_,{}),o.jsx(S.Label,{className:`ml-1 h6 m-0 ${v}`,children:"Rename"})]}),!s&&!e&&o.jsxs(S.Button,{className:"mr-2",color:"success",onClick:E,children:[o.jsx(E$_,{}),o.jsx(S.Label,{className:`ml-1 h6 m-0 ${v}`,children:"New folder"})]}),!s&&!e&&o.jsxs(S.Button,{className:"mr-2",color:"info",onClick:()=>{var k;return(k=I==null?void 0:I.current)==null?void 0:k.click()},children:[o.jsx(A$_,{}),o.jsx(S.Label,{className:`ml-1 h6 m-0 ${v}`,children:"Upload"})]}),_&&o.jsx(S.Col,{className:"h-100 d-flex align-items-center",children:_})]});return o.jsxs("div",{children:[$(),o.jsx(hI_,{ref:A,targetMedia:s,onConfirm:async k=>{k.name!=""?s&&!s.isFolder?(E(),await h(k.name)):(E(),await c(n,k.name)):w("Name can't be empty")}}),o.jsx("input",{type:"file",id:"customMediaUpload",ref:I,style:{display:"none"},onChange:async k=>{var j;const T=(j=k==null?void 0:k.target)==null?void 0:j.files[0];T&&await r({key:n,file:T})}})]})},pI_=C.memo(gI_),is={"media-wrapper":"_media-wrapper_1nc2k_6","media-image":"_media-image_1nc2k_11","media-image-selected":"_media-image-selected_1nc2k_17","media-title":"_media-title_1nc2k_21","filter-media-file":"_filter-media-file_1nc2k_30"},$_={USER_CONVERSATION_AVATAR:"images/user.png",GROUP_CONVERSATION_AVATAR:"images/group.png",LOGO:"images/logoV1-1.png",LOGO_HEADER:"images/logo-header.png",LOGO_MINIMIZED:"images/logo-small.png",DOCS_IMAGE:"images/docs.png",AUDIO_IMAGE:"images/audio.png",PHOTO_IMAGE:"images/image.png",VIDEO_IMAGE:"images/video.png",FOLDER_IMAGE:"images/folder.png",UNKNOW_IMAGE:"images/unknow.png"};var Lt=(e=>(e[e.IMAGE=0]="IMAGE",e[e.VIDEO=1]="VIDEO",e[e.AUDIO=2]="AUDIO",e[e.DOC=3]="DOC",e[e.UNKNOW=4]="UNKNOW",e))(Lt||{});const fI_=["png","jpg","jpeg","gif"],yI_=["mp4","mp4v"],wI_=["txt","pdf","doc","docx","xls","csv"],vI_=["wav","mp3"],Or=e=>{if(e){if(fI_.includes(e))return Lt.IMAGE;if(yI_.includes(e))return Lt.VIDEO;if(wI_.includes(e))return Lt.DOC;if(vI_.includes(e))return Lt.AUDIO}return Lt.UNKNOW},bI_=e=>{if(e.isFolder)return $_.FOLDER_IMAGE;const t=Or(e.extension);return t===Lt.IMAGE?$_.PHOTO_IMAGE:t===Lt.VIDEO?$_.VIDEO_IMAGE:t===Lt.AUDIO?$_.AUDIO_IMAGE:t===Lt.DOC?$_.DOCS_IMAGE:$_.UNKNOW_IMAGE},$I_=({media:e,isTarget:t,className:_})=>{const n=bI_(e);return o.jsxs(S.Card,{className:`${t?is["media-image-selected"]:""} border-0 `,children:[o.jsx(S.CardImg,{className:`${is["media-image"]} p-1`,top:!0,width:"90%",src:n,alt:e.name}),o.jsx(S.CardBody,{className:"p-1",style:{height:45},children:o.jsx(S.CardTitle,{tag:"h6",className:`${is["media-title"]} ${_}`,children:e.name})})]})},kI_=C.memo($I_),xI_=({changeFilters:e,className:t})=>{const{t:_}=yt.useTranslation(),[n,s]=C.useState(),r=[{value:Lt.IMAGE,label:_("images")},{value:Lt.AUDIO,label:_("audios")},{value:Lt.DOC,label:_("docs")},{value:Lt.VIDEO,label:_("videos")}];return o.jsxs(S.Row,{className:`${is["filter-media-file"]}`,children:[o.jsx(S.Col,{sm:8,children:o.jsx(vs,{initValue:"",onSearch:c=>e({searchString:c}),placeholder:_("type_something_to_search_by_file_name"),className:t})}),o.jsx(S.Col,{sm:4,children:o.jsx(D_,{value:n,isMulti:!0,options:r,onChange:c=>{s(c);const h=c.map(l=>l.value);e({types:h})},className:t})})]})},Gr=Y.createAction("gallery/setGallery"),a_=Y.createAction("gallery/setTargetMedia"),II_=`${ht}/api/file`,CI_=e=>xe.get(`${II_}`,{params:e}),SI_="Gallery",AI_={searchString:""},Br=(e=!1)=>{const t=ke.useSelector(P=>P.gallery.mediaList),_=ke.useSelector(P=>P.gallery.totalItems),n=ke.useSelector(P=>P.gallery.targetMedia),s=ke.useDispatch(),[r,c]=C.useState(),[h,l]=C.useState(Object.assign({...AI_},e?{isLibrary:!0}:{})),[g,p]=C.useState({link:"",step:0}),w=P=>{P.isFolder&&(l({prefix:P.key,isLibrary:e}),P.key&&p({link:P.key,step:g.step+1}))},v=()=>{const{link:P,step:D}=g;if(!P||P==""||D<1)return;let O=P.split("/");O[O.length-1]===""?p({link:`${O.splice(0,O.length-2).join("/")}/`,step:D-1}):(O.pop(),p({link:`${O.join("/")}/`,step:D-1}))},A=P=>{s(a_({targetMedia:void 0})),n?P.key===n.key?s(a_({targetMedia:void 0})):s(a_({targetMedia:P})):s(a_({targetMedia:P}))},I=async P=>{n!=null&&n.key&&P&&(s(me(!0)),await w1_(n.key,P),s(a_({targetMedia:void 0})),s(me(!1)),R())},E=()=>{if(n!=null&&n.key){const P=Jt(n.key);window.open(P,"_blank")}else s(he({type:"danger",message:"Error to download media, please try later."}))},$=P=>{he({type:"danger",message:P})},k=async()=>{n!=null&&n.key?s(Xt({isOpen:!0,type:"warning",message:`Do you want to remove this ${n.isFolder?"folder":"file"}`,onConfirm:async()=>{s(me(!0)),n.isFolder?(await f1_(n.key||""),s(a_({targetMedia:void 0}))):(await p1_((n==null?void 0:n.key)||""),s(a_({targetMedia:void 0}))),s(me(!1)),R()}})):s(he({type:"danger",message:"Error to delete media, please try later."}))},T=async(P,D)=>{D&&(await y1_(P,D),R())},j=P=>l({...h,...P}),R=C.useCallback(async()=>{var P,D;s(me(!0));try{const O=await CI_(h);s(Gr({mediaList:O.data,totalItems:O.data.length||0}))}catch(O){s(he({type:"danger",message:((D=(P=O.response)==null?void 0:P.data)==null?void 0:D.title)||O.message}))}s(me(!1))},[s,h]);C.useEffect(()=>{document.title=SI_,s(a_({targetMedia:void 0}))},[]),C.useEffect(()=>{j({prefix:g.link})},[g.link]),C.useEffect(()=>{R()},[h]),C.useEffect(()=>{async function P(){var D,O;if(!e){s(me(!0));try{if(r){const{file:G,key:W}=r,{name:Q}=G,B=W,te=new FormData;te.append("file",G,Q),te.append("customKey",(B==null?void 0:B.slice(0,-1))||""),await Li(te),R()}}catch(G){s(he({type:"danger",message:((O=(D=G.response)==null?void 0:D.data)==null?void 0:O.title)||G.message}))}s(me(!1))}}P()},[r]);const M=C.useMemo(()=>{var P;try{const D=(P=g.link)==null?void 0:P.split("/");return D.splice(2,D.length).join("/")}catch{return""}},[g.link]);return{mediaList:t,filters:h,totalItems:_,targetMedia:n,router:g,breadcrumb:M,getData:R,changeFilters:j,handleSelectFile:c,handleOpenFolder:w,handleSelectMedia:A,handleRenameFile:I,handleDownloadMedia:E,handleDeleteMediaOrFolder:k,handleCreateFolder:T,handleGoBack:v,showErrorAlert:$}},Vr=({height:e,isLibrary:t})=>{const{classFontSize:_}=Jn(),{filters:n,mediaList:s,targetMedia:r,router:c,breadcrumb:h,changeFilters:l,handleOpenFolder:g,handleSelectMedia:p,handleSelectFile:w,handleCreateFolder:v,handleRenameFile:A,handleDownloadMedia:I,handleDeleteMediaOrFolder:E,handleGoBack:$,showErrorAlert:k}=Br(t),T=()=>s.map(j=>{const R=(r==null?void 0:r.key)===j.key;return o.jsx(S.Col,{className:"p-2",xs:"auto",children:o.jsx("div",{onDoubleClick:()=>g(j),onClick:()=>p(j),className:is["media-wrapper"],children:o.jsx(kI_,{media:j,isTarget:R,className:` ${L["custom-font-size"]}`})})},j.key)});return o.jsxs(S.Card,{className:L[_],children:[o.jsxs(S.CardHeader,{children:[o.jsx(xI_,{className:`${L["custom-font-size"]}`,changeFilters:l,filters:n}),o.jsx(pI_,{isLibrary:t,step:c.step,breadcumb:h,currentPrefix:n.prefix||"",targetMedia:r,handleSelectFile:w,handleCreateFolder:v,handleRenameFile:A,handleDownloadMedia:I,handleDeleteMediaOrFolder:E,handleGoBack:$,showErrorAlert:k,className:` ${L["custom-font-size"]}`})]}),o.jsx(S.CardBody,{style:{minHeight:e},children:o.jsx(S.Row,{className:"p-1",children:T()})})]})},EI_=({targetMedia:e})=>{var s;const{t}=yt.useTranslation();if(!e||e!=null&&e.isFolder)return o.jsx("div",{});const _=Or(e.extension),n=Jt(e.key||"");return o.jsxs(S.Card,{className:"position-sticky",children:[o.jsx(S.CardHeader,{children:(e==null?void 0:e.name)||"Media name"}),_===Lt.IMAGE&&o.jsx(S.CardImg,{className:"p-2",src:n,loading:"lazy"}),_===Lt.VIDEO&&o.jsx("div",{className:"p-2",children:o.jsx("video",{id:e.key,width:"100%",height:"100%",controls:!0,children:o.jsx("source",{src:n})})}),_===Lt.AUDIO&&o.jsx("div",{className:"p-2",children:o.jsx("audio",{controls:!0,className:"w-100",children:o.jsx("source",{src:n})})}),o.jsxs(S.CardBody,{children:[o.jsx(S.CardTitle,{tag:"h6",children:t("general_info")}),o.jsxs(S.CardText,{children:[t("file_extension"),": ",(s=e.extension)==null?void 0:s.toUpperCase()]})]})]})},TI_=C.memo(EI_),jI_="media_gallery",qI_=({isLibrary:e})=>{const{t}=yt.useTranslation(),_=ke.useSelector(n=>n.gallery.targetMedia);return o.jsxs("div",{className:"fadeIn animated",children:[!e&&o.jsx("h5",{className:"mb-2",children:t(jI_)}),o.jsxs(S.Row,{className:"mb-2",children:[o.jsx(S.Col,{md:8,children:o.jsx(Vr,{height:"100vh",isLibrary:e})}),o.jsx(S.Col,{md:4,children:o.jsx(TI_,{targetMedia:_},_==null?void 0:_.key)})]})]})},NI_=`${ht}/api/academicclass`,PI_=()=>xe.get(NI_),RI_=e=>{const[t,_]=C.useState([]);C.useEffect(()=>{n()},[]);const n=async()=>{try{const h=await PI_();_(h.data.items)}catch(h){console.error(h)}},{id:s}=e,r=t.map(h=>({id:h.id,value:h.id,label:h.name})),c=s&&r.find(h=>h.value===s)||null;return o.jsx(p_,{options:r,value:c,...e})},LI_=()=>o.jsx("div",{children:"District school list"});function Hn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Nn=()=>Math.random().toString(36).substring(7).split("").join("."),MI_={INIT:`@@redux/INIT${Nn()}`,REPLACE:`@@redux/REPLACE${Nn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Nn()}`},rs=MI_;function zI_(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function DI_(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(GI_(e))return"date";if(OI_(e))return"error";const _=FI_(e);switch(_){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return _}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function FI_(e){return typeof e.constructor=="function"?e.constructor.name:null}function OI_(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function GI_(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function BI_(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=DI_(e)),t}function va(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function VI_(e,t,_,n){const s=Object.keys(t),r=_&&_.type===rs.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(s.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!zI_(e))return`The ${r} has unexpected type of "${BI_(e)}". Expected argument to be an object with the following keys: "${s.join('", "')}"`;const c=Object.keys(e).filter(h=>!t.hasOwnProperty(h)&&!n[h]);if(c.forEach(h=>{n[h]=!0}),!(_&&_.type===rs.REPLACE)&&c.length>0)return`Unexpected ${c.length>1?"keys":"key"} "${c.join('", "')}" found in ${r}. Expected to find one of the known reducer keys instead: "${s.join('", "')}". Unexpected keys will be ignored.`}function HI_(e){Object.keys(e).forEach(t=>{const _=e[t];if(typeof _(void 0,{type:rs.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?Hn(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof _(void 0,{type:rs.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Hn(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${rs.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function WI_(e){const t=Object.keys(e),_={};for(let c=0;c<t.length;c++){const h=t[c];process.env.NODE_ENV!=="production"&&typeof e[h]>"u"&&va(`No reducer provided for key "${h}"`),typeof e[h]=="function"&&(_[h]=e[h])}const n=Object.keys(_);let s;process.env.NODE_ENV!=="production"&&(s={});let r;try{HI_(_)}catch(c){r=c}return function(h={},l){if(r)throw r;if(process.env.NODE_ENV!=="production"){const w=VI_(h,_,l,s);w&&va(w)}let g=!1;const p={};for(let w=0;w<n.length;w++){const v=n[w],A=_[v],I=h[v],E=A(I,l);if(typeof E>"u"){const $=l&&l.type;throw new Error(process.env.NODE_ENV==="production"?Hn(14):`When called with an action of type ${$?`"${String($)}"`:"(unknown type)"}, the slice reducer for key "${v}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}p[v]=E,g=g||E!==I}return g=g||n.length!==Object.keys(h).length,g?p:h}}const ba={sidebarShow:"responsive",isLoading:!1,alert:{type:"",message:""},modal:{isOpen:!1},user:null,currentStudentId:parseInt(localStorage.getItem("currentStudentId")??"0"),currentStudentUserId:localStorage.getItem("currentStudentUserId")||"",currentStudentName:localStorage.getItem("currentStudentName")||"",turnOffPassWhenChangeMode:!1,menuBar:!0,defaultFontSize:16,isEnableIEP:!0,isEnableSurvey:!1,isConversationOneToOne:!1,loadUnreadNotification:!1,language:Hs,isLoginGoogle:!1,inforUserGoogle:null},UI_=Y.createReducer(ba,e=>{e.addCase(me,(t,_)=>{t.isLoading=_.payload}).addCase(Xt,(t,_)=>{t.modal=_.payload}).addCase(nn,(t,_)=>{t.user=_.payload}).addCase(wb_,(t,_)=>{t.sidebarShow=_.payload}).addCase(hi,(t,_)=>{t.inforUserGoogle=_.payload}).addCase(he,(t,_)=>{t.alert=_.payload}).addCase(Ye,(t,_)=>(localStorage.removeItem("currentStudentId"),localStorage.removeItem("currentStudentUserId"),localStorage.removeItem("currentStudentName"),ba)).addCase(bi,(t,_)=>{t.currentStudentId=_.payload}).addCase($i,(t,_)=>{t.currentStudentUserId=_.payload}).addCase(ki,(t,_)=>{t.currentStudentName=_.payload}).addCase(xi,(t,_)=>{t.turnOffPassWhenChangeMode=_.payload}).addCase(gi,(t,_)=>{t.menuBar=_.payload}).addCase(fi,(t,_)=>{t.isEnableIEP=_.payload}).addCase(yi,(t,_)=>{t.isEnableSurvey=_.payload}).addCase(wi,(t,_)=>{t.isConversationOneToOne=_.payload}).addCase(vi,(t,_)=>{t.language=_.payload}).addCase(pi,(t,_)=>{t.defaultFontSize=_.payload}).addCase(Ii,(t,_)=>{t.loadUnreadNotification=_.payload})}),Hr=Y.createAction("classes/setClassList"),$a={classList:[],totalItems:0},XI_=Y.createReducer($a,e=>{e.addCase(Hr,(t,_)=>{t.classList=_.payload.classList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>$a)}),Wr=Y.createAction("conferenceRubric/setConferenceRubricList"),ka={conferenceRubricList:[],totalItems:0},YI_=Y.createReducer(ka,e=>{e.addCase(Wr,(t,_)=>{t.conferenceRubricList=_.payload.conferenceRubricList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>ka)}),xa={faqList:[],totalItems:0},ZI_=Y.createReducer(xa,e=>{e.addCase(zi,(t,_)=>{t.faqList=_.payload.faqList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>xa)}),Ia={skillList:[],totalItems:0},JI_=Y.createReducer(Ia,e=>{e.addCase(Fi,(t,_)=>{t.skillList=_.payload.skillList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Ia)}),Ca={emailTemplateList:[],totalItems:0},QI_=Y.createReducer(Ca,e=>{e.addCase(Ni,(t,_)=>{t.emailTemplateList=_.payload.emailTemplateList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Ca)}),Ur=Y.createAction("suggestionBank/setSuggestionList"),Sa={suggestionList:[],totalItems:0},KI_=Y.createReducer(Sa,e=>{e.addCase(Ur,(t,_)=>{t.suggestionList=_.payload.suggestionList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Sa)}),Xr=Y.createAction("learningStrategy/setStrategyList"),Aa={strategyList:[],totalItems:0},eC_=Y.createReducer(Aa,e=>{e.addCase(Xr,(t,_)=>{t.strategyList=_.payload.strategyList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Aa)}),Yr=Y.createAction("subjects/setSubjectList"),Ea={subjectList:[],totalItems:0},tC_=Y.createReducer(Ea,e=>{e.addCase(Yr,(t,_)=>{t.subjectList=_.payload.subjectList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Ea)}),Zr=Y.createAction("learningSupportCategories/setLearningSupportCategoryList"),Ta={learningSupportCategoryList:[],totalItems:0},_C_=Y.createReducer(Ta,e=>{e.addCase(Zr,(t,_)=>{t.learningSupportCategoryList=_.payload.learningSupportCategoryList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Ta)}),Jr=Y.createAction("questionBank/setQuestionList"),ja={questionList:[],totalItems:0},sC_=Y.createReducer(ja,e=>{e.addCase(Jr,(t,_)=>{t.questionList=_.payload.questionList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>ja)}),Qr=Y.createAction("badges/setBadgeList"),qa={badgeList:[],totalItems:0},nC_=Y.createReducer(qa,e=>{e.addCase(Qr,(t,_)=>{t.badgeList=_.payload.badgeList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>qa)}),Kr=Y.createAction("semester/setSemesterList"),oC_={semesterList:[],totalItems:0},aC_=Y.createReducer(oC_,e=>{e.addCase(Kr,(t,_)=>{t.semesterList=_.payload.semesterList,t.totalItems=_.payload.totalItems})}),ec=Y.createAction("assignment/setAssignmentList"),Na={assignmentList:[],totalItems:0},iC_=Y.createReducer(Na,e=>{e.addCase(ec,(t,_)=>{t.assignmentList=_.payload.assignmentList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Na)}),tc=Y.createAction("goalExamples/setGoalExampleList"),Pa={goalExampleList:[],totalItems:0},rC_=Y.createReducer(Pa,e=>{e.addCase(tc,(t,_)=>{t.goalExampleList=_.payload.goalExampleList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Pa)}),Ra={userList:[],totalItems:0,studentList:[]},cC_=Y.createReducer(Ra,e=>{e.addCase(Ws,(t,_)=>{t.userList=_.payload.userList,t.totalItems=_.payload.totalItems}).addCase(Bi,(t,_)=>{t.studentList=_.payload}).addCase(Ye,(t,_)=>Ra)}),_c=Y.createAction("feedback/setFeedbackList"),La={feedbackList:[],totalItems:0},lC_=Y.createReducer(La,e=>{e.addCase(_c,(t,_)=>{t.feedbackList=_.payload.feedbackList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>La)}),sc=Y.createAction("assessments/setAssessmentList"),Ma={assessmentList:[],totalItems:0},dC_=Y.createReducer(Ma,e=>{e.addCase(sc,(t,_)=>{t.assessmentList=_.payload.assessmentList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Ma)}),nc=Y.createAction("reflectionForms/setReflectionList"),za={reflectionList:[],totalItems:0},uC_=Y.createReducer(za,e=>{e.addCase(nc,(t,_)=>{t.reflectionList=_.payload.reflectionList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>za)}),oc=Y.createAction("reflectionForms/setReflectionResultList"),Da={reflectionResultList:[],totalItems:0},mC_=Y.createReducer(Da,e=>{e.addCase(oc,(t,_)=>{t.reflectionResultList=_.payload.reflectionResultList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Da)}),ac=Y.createAction("questionByCategory/setQuestionByCategory"),ic=Y.createAction("questionByCategory/setSelectQuestion"),hC_=Y.createAction("questionByCategory/setUnSelectQuestion"),rc=Y.createAction("questionByCategory/setMoveItemQuestion"),cc=Y.createAction("questionByCategory/setEditItemQuesion"),lc=Y.createAction("questionByCategory/setResetQuestionList"),Fa={questionByCategoryList:[],selectedQuestions:[],selectQuestion:[]},Fs=(e,t)=>{var _=new Set(e.map(s=>s.id)),n=[...e,...t.filter(s=>!_.has(s.id))];return n},gC_=Y.createReducer(Fa,e=>{e.addCase(ac,(t,_)=>{t.questionByCategoryList=_.payload,t.selectedQuestions.length>0&&(t.questionByCategoryList=t.questionByCategoryList.filter(n=>!t.selectedQuestions.some(s=>s.id===n.id)))}),e.addCase(ic,(t,_)=>{let n=t.selectQuestion.findIndex(s=>s.id===_.payload.id);n===-1?t.selectQuestion.push(_.payload):t.selectQuestion.splice(n,1)}),e.addCase(hC_,(t,_)=>{t.selectQuestion=_.payload}),e.addCase(rc,(t,_)=>{switch(_.payload){case"right":t.selectedQuestions=Fs(t.selectedQuestions,t.selectQuestion),t.questionByCategoryList=t.questionByCategoryList.filter(r=>!t.selectedQuestions.some(c=>c.id===r.id)),t.selectQuestion=[];break;case"right-all":t.selectedQuestions=Fs(t.selectedQuestions,t.questionByCategoryList),t.selectQuestion=[],t.questionByCategoryList=[];break;case"left":t.questionByCategoryList=Fs(t.questionByCategoryList,t.selectQuestion),t.selectedQuestions=t.selectedQuestions.filter(r=>!t.selectQuestion.some(c=>c.id===r.id)),t.selectQuestion=[];break;case"left-all":t.questionByCategoryList=Fs(t.questionByCategoryList,t.selectedQuestions),t.selectedQuestions=[],t.selectQuestion=[];break;case"move-up":const n=t.selectedQuestions.findIndex(r=>r.id===t.selectQuestion[0].id);n!==-1&&t.selectedQuestions.splice(n-1,0,t.selectedQuestions.splice(n,1)[0]);break;case"move-down":const s=t.selectedQuestions.findIndex(r=>r.id===t.selectQuestion[0].id);s!==-1&&t.selectedQuestions.splice(s+1,0,t.selectedQuestions.splice(s,1)[0]);break}}),e.addCase(cc,(t,_)=>{t.questionByCategoryList=[],t.selectedQuestions=_.payload}),e.addCase(lc,t=>{t.questionByCategoryList=[],t.selectedQuestions=[]}),e.addCase(Ye,(t,_)=>Fa)}),Oa={mailCategoryList:[]},pC_=Y.createReducer(Oa,e=>{e.addCase(on,(t,_)=>{t.mailCategoryList=_.payload}).addCase(Ye,(t,_)=>Oa)}),dc=Y.createAction("questionCate/setQuestionCateList"),Ga={questionCateList:[],totalItems:0},fC_=Y.createReducer(Ga,e=>{e.addCase(dc,(t,_)=>{t.questionCateList=_.payload.questionCateList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Ga)}),Ba={notificationList:[],totalItems:0,unReadNotification:0},yC_=Y.createReducer(Ba,e=>{e.addCase(Fr,(t,_)=>{t.notificationList=_.payload.notificationList,t.totalItems=_.payload.totalItems,t.unReadNotification=_.payload.unReadNotification}).addCase(tI_,(t,_)=>{t.unReadNotification=_.payload}).addCase(_I_,(t,_)=>{t.unReadNotification+=_.payload}).addCase(Ye,(t,_)=>Ba)}),uc=Y.createAction("myStudent/setMyStudentList"),Va={myStudentList:[],totalItems:0},wC_=Y.createReducer(Va,e=>{e.addCase(uc,(t,_)=>{t.myStudentList=_.payload}).addCase(Ye,(t,_)=>Va)}),mc=Y.createAction("assistants/setAssistantList"),Ha={assistantList:[]},vC_=Y.createReducer(Ha,e=>{e.addCase(mc,(t,_)=>{t.assistantList=_.payload}).addCase(Ye,(t,_)=>Ha)}),hc=Y.createAction("sessionTemplates/setSessionTemplateList"),Wa={sessionTemplateList:[],totalItems:0},bC_=Y.createReducer(Wa,e=>{e.addCase(hc,(t,_)=>{t.sessionTemplateList=_.payload.sessionTemplateList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Wa)}),gc=Y.createAction("sessionTemplateGeneralClasses/setSessionTemplateList"),Ua={sessionTemplateGeneralClassList:[],totalItems:0},$C_=Y.createReducer(Ua,e=>{e.addCase(gc,(t,_)=>{t.sessionTemplateGeneralClassList=_.payload.sessionTemplateGeneralClassList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Ua)}),pc=Y.createAction("tutorialScreens/setTutorialScreenList"),Xa={tutorialScreenList:[],totalItems:0},kC_=Y.createReducer(Xa,e=>{e.addCase(pc,(t,_)=>{t.tutorialScreenList=_.payload.tutorialScreenList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Xa)}),fc=Y.createAction("customAlerts/setCustomAlertList"),Ya={customAlertList:[],totalItems:0},xC_=Y.createReducer(Ya,e=>{e.addCase(fc,(t,_)=>{t.customAlertList=_.payload.customAlertList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Ya)}),Za={mediaList:[],totalItems:0,targetMedia:void 0},IC_=Y.createReducer(Za,e=>{e.addCase(Gr,(t,_)=>{t.mediaList=_.payload.mediaList,t.totalItems=_.payload.totalItems}).addCase(a_,(t,_)=>{t.targetMedia=_.payload.targetMedia}).addCase(Ye,(t,_)=>Za)}),yc=Y.createAction("dashboard/addTab"),wc=Y.createAction("dashboard/closeTab"),vc=Y.createAction("dashboard/editTab"),bc=Y.createAction("dashboard/clearTab"),CC_={tabs:localStorage.getItem("myTab")?JSON.parse(localStorage.getItem("myTab")??""):[]},SC_=Y.createReducer(CC_,e=>{e.addCase(yc,(t,_)=>t.tabs.some(n=>n.url===_.payload.url)?t:{...t,tabs:[_.payload,...t.tabs]}).addCase(wc,(t,_)=>{let n=JSON.parse(JSON.stringify(t.tabs));return delete n[_.payload],n=n.filter(Boolean),{...t,tabs:n}}).addCase(Ye,(t,_)=>(localStorage.removeItem("myTab"),{tabs:[]})).addCase(vc,(t,_)=>{const n=JSON.parse(JSON.stringify(t.tabs)),s=n.find(r=>_.payload.label===r.label);return s.url=_.payload.url,{...t,tabs:n}}).addCase(bc,(t,_)=>(localStorage.removeItem("myTab"),{tabs:[]}))}),$c=Y.createAction("sessionPlayer/changeNote"),kc=Y.createAction("sessionPlayer/changeTags"),xc=Y.createAction("sessionPlayer/answerQuestion"),Ic=Y.createAction("sessionPlayer/setSessionPlayer"),Cc=Y.createAction("sessionPlayer/setStartTime"),Ja={sessionId:0,session:{id:0,studentId:0,teacherId:0,duration:0,conferenceRubric:null,studentDefaultQuestions:[],teacherDefaultQuestions:[],additionalQuestions:[]},results:[],startTime:""},AC_=Y.createReducer(Ja,e=>{e.addCase(Ic,(t,_)=>_.payload).addCase($c,(t,_)=>{const{isConfidential:n,text:s}=_.payload,r=t.results.find(l=>l.isTeacherResult);if(!r)return t;const c=JSON.parse(JSON.stringify(r)),h=c.notes.find(l=>!!l.isConfidential===n);return h?h.text=s:c.notes.push({isConfidential:n,text:s}),{...t,results:t.results.map(l=>l.isTeacherResult?c:l)}}).addCase(kc,(t,_)=>{const n=_.payload,s=t.results.find(c=>c.isTeacherResult);if(!s)return t;const r=JSON.parse(JSON.stringify(s));return r.tags=n,{...t,results:t.results.map(c=>c.isTeacherResult?r:c)}}).addCase(xc,(t,_)=>{const{text:n,questionId:s,isTeacherResult:r}=_.payload,c=t.results.find(g=>g.isTeacherResult===r);if(!c)return t;const h=JSON.parse(JSON.stringify(c)),l=h.questionResponses.find(g=>g.questionId===s);return l?l.text=n:h.questionResponses.push({questionId:s,text:n}),{...t,results:t.results.map(g=>g.isTeacherResult===r?h:g)}}).addCase(Cc,(t,_)=>{const n=_.payload;if(!n)return t;t.startTime=n}).addCase(Ye,(t,_)=>Ja)}),Sc=Y.createAction("dataPlayer/setDataPlayer"),Ac=Y.createAction("dataPlayer/answerQuestionDataPlayer"),Qa={id:0,questions:[{id:0,text:"",type:"",subQuestions:[],answers:[]}],questionResponse:[]},EC_=Y.createReducer(Qa,e=>{e.addCase(Sc,(t,_)=>_.payload).addCase(Ac,(t,_)=>{const{questionId:n,text:s}=_.payload,r=t.questionResponse;if(!r)return t;const c=JSON.parse(JSON.stringify(r)),h=c.find(l=>l.questionId===n);return h?h.text=s:c.push({questionId:n,text:s}),{...t,questionResponse:c}}).addCase(Ye,(t,_)=>Qa)}),Ec=Y.createAction("certificates/setCertificateList"),Ka={certificateList:[],totalItems:0},TC_=Y.createReducer(Ka,e=>{e.addCase(Ec,(t,_)=>{t.certificateList=_.payload.certificateList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>Ka)}),Tc=Y.createAction("improveMyClass/setImproveMyClass"),ei={improveMyClassList:[]},jC_=Y.createReducer(ei,e=>{e.addCase(Tc,(t,_)=>{t.improveMyClassList=_.payload}).addCase(Ye,(t,_)=>ei)}),jc=Y.createAction("setFilterWidget"),ti={filterWidget:"Year"},qC_=Y.createReducer(ti,e=>{e.addCase(jc,(t,_)=>{t.filterWidget=_.payload.filterWidget}).addCase(Ye,(t,_)=>ti)}),qc=Y.createAction("bandScores/setBandScoreList"),_i={bandScoreList:[],totalItems:0},NC_=Y.createReducer(_i,e=>{e.addCase(qc,(t,_)=>{t.bandScoreList=_.payload.bandScoreList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>_i)}),Nc=Y.createAction("schoolBlankDays/setSchoolBlankDayList"),si={schoolBlankDayList:[],totalItems:0},PC_=Y.createReducer(si,e=>{e.addCase(Nc,(t,_)=>{t.schoolBlankDayList=_.payload.schoolBlankDayList,t.totalItems=_.payload.totalItems}).addCase(Ye,(t,_)=>si)}),Pc=Y.createAction("navMobile/setStudentIdSelectedByTeacher"),ni={studentIdSelectedByTeacher:0},RC_=Y.createReducer(ni,e=>{e.addCase(Pc,(t,_)=>{t.studentIdSelectedByTeacher=_.payload}).addCase(Ye,(t,_)=>ni)}),LC_=WI_({common:UI_,classes:XI_,conferenceRubrics:YI_,faqs:ZI_,skills:JI_,emailTemplate:QI_,suggestionBank:KI_,learningStrategy:eC_,subjects:tC_,learningSupportCategories:_C_,questionBank:sC_,badges:nC_,semester:aC_,goalExamples:rC_,users:cC_,reflections:uC_,reflectionResults:mC_,feedbacks:lC_,assessments:dC_,questionByCategory:gC_,mailCategory:pC_,questionCate:fC_,notification:yC_,myStudent:wC_,assignments:iC_,assistants:vC_,sesstionTemplates:bC_,sessionTemplateGeneralClasses:$C_,tutorialScreens:kC_,customAlerts:xC_,gallery:IC_,dashboard:SC_,sessionPlayer:AC_,dataPlayer:EC_,certificate:TC_,improveMyClass:jC_,widget:qC_,bandScores:NC_,schoolBlankDays:PC_,navMobileReducer:RC_}),MC_=Y.configureStore({reducer:LC_,middleware:e=>e({serializableCheck:!1})}),zC_=async()=>{try{const e=O_();return!(!e||!(await $b_(e)).data)}catch{return!1}},DC_=(e,t)=>Array.isArray(e)?Array.isArray(t)?e.filter(n=>t.includes(n)).length>0:!0:!1,FC_=()=>xe.get(`${ht}/api/language`),OC_=e=>{const t=e==null?void 0:e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},GC_=(e,t)=>{let _=null;return(...n)=>{const s=()=>e(...n);clearTimeout(_),_=setTimeout(s,t)}},BC_=e=>{const t=document.createElement("p");t.innerHTML=e;const _=t.innerText;return t.remove(),_},VC_=()=>(Math.random()+1).toString(36).substring(7),HC_=13,Pn=15,WC_=()=>{const e=vt.useNavigate(),[t,_]=C.useState(!1),[n,s]=C.useState({minutes:0,timeLogout:""}),r=()=>{var g;try{return((g=localStorage==null?void 0:localStorage.getItem)==null?void 0:g.call(localStorage,"LAST_ACTIVITY_TIME"))??null}catch{return null}},c=()=>{localStorage.removeItem(qt),sessionStorage.removeItem(qt),localStorage.removeItem("ROLES"),localStorage.removeItem("LAST_ACTIVITY_TIME"),_(!1),e("/login",{replace:!0})},h=()=>{var E;if(!O_())return;const p=r();if(!p){(E=localStorage==null?void 0:localStorage.setItem)==null||E.call(localStorage,"LAST_ACTIVITY_TIME",new Date().toISOString());return}const w=m_.parse(p,"yyyy-MM-dd HH:mm",new Date),v=new Date,A=m_.differenceInMinutes(v,w);if(A>=Pn){c();return}const I=ln(m_.format(m_.addMinutes(v,Pn-A),"yyyy-MM-dd HH:mm"),"HH:mm");A>=HC_&&(s({minutes:A,timeLogout:I}),_(!0))};C.useEffect(()=>{const g=setInterval(()=>{h()},6e4);return()=>clearInterval(g)},[]);const l=()=>{_(!t)};return o.jsxs(S.Modal,{isOpen:t,toggle:l,size:"xs",children:[o.jsx(S.ModalHeader,{toggle:l,children:"Notification Logout"}),o.jsx(S.ModalBody,{children:`Are you still here? You have had no action for ${n==null?void 0:n.minutes} mins.
36
+ Your account could be log out after ${Pn-(n==null?void 0:n.minutes)} mins at ${n==null?void 0:n.timeLogout} if you don't action.`}),o.jsx(S.ModalFooter,{className:"text-right",children:o.jsx(S.Button,{color:"primary",onClick:l,children:"Confirm"})})]})};exports.i18n=Wn;Object.defineProperty(exports,"I18nextProvider",{enumerable:!0,get:()=>yt.I18nextProvider});Object.defineProperty(exports,"useTranslation",{enumerable:!0,get:()=>yt.useTranslation});exports.ACCESS_TOKEN=qt;exports.ANSWER_EDITOR_HEIGHT=Xn;exports.AcademicClassSelector=RI_;exports.AddButton=hs;exports.BASE_URL=ht;exports.CHAT_CHANNEL=Hv_;exports.CommonAlert=dI_;exports.CommonHeader=j4_;exports.CommonModal=cn;exports.CreatableSelector=P4_;exports.CustomPagination=C_;exports.CustomSelector=D_;exports.CustomTab=Oi;exports.DATE_FORMAT=Un;exports.DATE_RESULT=li;exports.DEFAULT_FILTER=ci;exports.DEFAULT_LANGUAGE_CODE=Hs;exports.Dashboard=v$_;exports.DeleteButtonIcon=gs;exports.DetailActionButtons=Qn;exports.EMOTIONS=Xv_;exports.EditButtonIcon=q4_;exports.EmailTemplateDetail=q1_;exports.EmailTemplateList=W$_;exports.EmptyDataAlert=I_;exports.ErrorHandler=kt;exports.FULL_DATE_RESULT=Ov_;exports.FaqList=W1_;exports.FileInput=V4_;exports.GOOGLE_RECAPTCHA_KEY=Dv_;exports.GalleryList=qI_;exports.IS_USER_SESSION_BROWSER=k_;exports.Images=$_;exports.LANGUAGES=Zv_;exports.LICENSE_AGGRID=Gv_;exports.LinkEditButton=G_;exports.Loading=S4_;exports.Login=n$_;exports.MediaList=Vr;exports.NOTIFICATION_ALERT_KEY=ui;exports.NOTIFICATION_CHANNEL=Wv_;exports.NotFound=Zn;exports.NotificationList=cI_;exports.NotificationLogoutModal=WC_;exports.NotificationModal=E4_;exports.QUESTION_TYPES=Bv_;exports.QUESTION_TYPES_OPTIONS=Rn;exports.QuestionCategorySelector=O4_;exports.QuestionTypeSelector=R4_;exports.QuitPrompt=fs;exports.RequiredLabel=zt;exports.SUPPORTED_LANGUAGES_CODE=mi;exports.SchoolList=LI_;exports.ScrollToTop=A4_;exports.SearchBox=vs;exports.SearchBoxContainer=Ui;exports.SkillList=ak_;exports.StarRatingSelector=G4_;exports.SuggestionCategorySelector=z4_;exports.TAB_COLORS=Yv_;exports.TINY_MCE_API_KEY=zv_;exports.TheContent=x$_;exports.ToggleButton=B4_;exports.UploadFileButton=Dr;exports.UserContainer=d4_;exports.UserDetail=I4_;exports.addTab=yc;exports.answerQuestion=xc;exports.answerQuestionDataPlayer=Ac;exports.api=xe;exports.apiUpload=Yt;exports.canAccessRoute=DC_;exports.changeNote=$c;exports.changeTags=kc;exports.clearTab=bc;exports.closeTab=wc;exports.debounce=GC_;exports.editTab=vc;exports.editorConfig=Mi;exports.firstCheckToken=zC_;exports.generateRandomString=VC_;exports.getAccessToken=O_;exports.getFileUrl=Jt;exports.getInfo=kb_;exports.getLanguage=FC_;exports.getStaticFileUrl=g_;exports.getTextFromHTML=BC_;exports.isInViewport=OC_;exports.isLocalhost=ls;exports.reset=Ye;exports.setAlert=he;exports.setAssessmentList=sc;exports.setAssignmentList=ec;exports.setAssistantList=mc;exports.setBadgeList=Qr;exports.setBandScoreList=qc;exports.setCertificateList=Ec;exports.setClassList=Hr;exports.setConferenceRubricList=Wr;exports.setConversationOneToOne=wi;exports.setCurrentStudentId=bi;exports.setCurrentStudentName=ki;exports.setCurrentStudentUserId=$i;exports.setCustomAlertList=fc;exports.setDataPlayer=Sc;exports.setEditItemQuesion=cc;exports.setEnableIEP=fi;exports.setEnableSurvey=yi;exports.setFeedbackList=_c;exports.setFilterWidget=jc;exports.setGoalExampleList=tc;exports.setImproveMyClass=Tc;exports.setLanguage=vi;exports.setLearningSupportCategoryList=Zr;exports.setLoading=me;exports.setMailCategory=on;exports.setModal=Xt;exports.setMoveItemQuestion=rc;exports.setMyStudent=uc;exports.setQuestionByCategory=ac;exports.setQuestionCateList=dc;exports.setQuestionList=Jr;exports.setReflectionList=nc;exports.setReflectionResultList=oc;exports.setResetQuestionList=lc;exports.setSchoolBlankDayList=Nc;exports.setSelectQuestion=ic;exports.setSemesterList=Kr;exports.setSessionPlayer=Ic;exports.setSessionTemplateGeneralClassList=gc;exports.setSessionTemplateList=hc;exports.setStartTime=Cc;exports.setStrategyList=Xr;exports.setStudentIdSelectedByTeacher=Pc;exports.setStudentList=Bi;exports.setSubjectList=Yr;exports.setSuggestionList=Ur;exports.setTurnOffPassWhenChangeMode=xi;exports.setTutorialScreenList=pc;exports.setUnreadNotification=Ii;exports.setUser=nn;exports.setUserList=Ws;exports.showFontSize=pi;exports.showMenuBar=gi;exports.store=MC_;exports.systemCertificateUpload=u1_;exports.systemStudentBadge=d1_;exports.uploadFile=l1_;exports.useFilters=an;exports.useGalleryList=Br;exports.utcToLocalTime=ln;