PageSourceSearch

https://pte.edubenchmark.com/_next/static/chunks/pages/analytics-47ff0eb8f66bc64aa4bf.js

js edubenchmark.com collected 2026-09-29 18:44:39 UTC 104,603 bytes, 2 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[56],{"+Bmy":function(e,t,n){var r=n("+ERu"),o=n("Iv0v");e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}},"+ERu":function(e,t,n){var r=n("8u9v"),o=n("sMdj"),a=n("YhHV"),i=n("GCWF");e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},"+IPG":function(e,t,n){var r=n("GRrc"),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},"+IXE":function(e,t,n){var r=n("ZwQu"),o=n("S5PF");e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},"+KM7":function(e,t,n){var r=n("kSPP");e.exports=function(e,t){return r(e,t)}},"+TGe":function(e,t,n){"use strict";var r=n("EGhD"),o=n("ivGQ"),a=n.n(o),i=n("0evK"),c=n("/ENz"),l=n("kjpz"),u=n("gRM1"),s=n("Ud+c"),d=n("tbe6"),f=n("gwok"),p=n("oR6s"),h=n("T75W"),v=n("xLQt"),b=n("hP2C"),g=n.n(b),m=n("hbca"),y=n("8cmQ"),x=n("rZdQ"),j=n("vFJ3"),w=n("fWYq"),O=n("OY/u"),k=n("y78O"),C=n("IU9S"),S=o.forwardRef((function(e,t){var n=e.classes,r=e.className,a=e.color,i=void 0===a?"primary":a,c=e.component,l=void 0===c?"a":c,u=e.onBlur,s=e.onFocus,d=e.TypographyClasses,f=e.underline,p=void 0===f?"hover":f,h=e.variant,v=void 0===h?"inherit":h,b=Object(x.a)(e,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),g=Object(k.a)(),O=g.isFocusVisible,S=g.onBlurVisible,A=g.ref,_=o.useState(!1),E=_[0],T=_[1],R=Object(C.a)(t,A);return o.createElement(m.a,Object(y.a)({className:Object(j.default)(n.root,n["underline".concat(Object(w.a)(p))],r,E&&n.focusVisible,"button"===l&&n.button),classes:d,color:i,component:l,onBlur:function(e){E&&(S(),T(!1)),u&&u(e)},onFocus:function(e){O(e)&&T(!0),s&&s(e)},ref:R,variant:v},b))})),A=Object(O.a)({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(S),_=n("cdL5"),E=a.a.createElement,T=Object(c.a)((function(e){return{footerBox:Object(r.a)({position:"relative",bottom:"0",width:"-webkit-fill-available",backgroundColor:"#E7EEF4",display:"flex",justifyContent:"space-between",gap:"12px",padding:"12px 24px",flexDirection:"row",textAlign:"center"},e.breakpoints.down("xs"),{flexDirection:"column",justifyContent:"center"}),footerLinkBox:Object(r.a)({display:"flex",gap:"15px",alignItems:"center",flexWrap:"wrap"},e.breakpoints.down("xs"),{justifyContent:"center"}),footerLink:{color:"inherit",fontSize:"15px",fontWeight:500,textDecoration:"none","&:hover":{textDecoration:"underline"}}}})),R=function(){var e=T();return E(a.a.Fragment,null,E(f.a,{className:e.footerBox},E(m.a,{style:{fontSize:"15px",fontWeight:"500"}},"2026 Benchmark. All Rights Reserved"),E(f.a,{className:e.footerLinkBox},E(A,{href:"https://edubenchmark.com/privacy",target:"_blank",rel:"noopener noreferrer",className:e.footerLink},"Privacy Policy"),E(_.a,{orientation:"vertical",style:{height:"15px"}}),E(A,{href:"https://edubenchmark.com/terms-and-conditions",target:"_blank",rel:"noopener noreferrer",className:e.footerLink},"Terms & Services"))))},F=n("sA6F"),I=a.a.createElement,M=Object(c.a)((function(e){var t;return{container:{marginTop:e.spacing(4)},sidebar:Object(r.a)({borderRadius:0,background:"#fff",padding:e.spacing(2),paddingRight:0,borderRight:"1px solid #eee",height:"calc(100vh - 77px)",display:"flex",flexDirection:"column",justifyContent:"space-between",overflow:"hidden"},e.breakpoints.down("lg"),{height:"calc(100vh - 65px)"}),contentContainer:(t={height:"calc(100vh - 77px)",overflowY:"auto",overflowX:"hidden"},Object(r.a)(t,e.breakpoints.down("md"),{height:"calc(100vh - 64px)"}
1),Object(r.a)(t,e.breakpoints.down("xs"),{height:"calc(100vh - 56px)"}),Object(r.a)(t,"display","block"),t),avatarText:{color:"#000"},sidebarLink:{textDecoration:"none",fontWeight:"bold"},updatedBtnBox:Object(r.a)({zIndex:2,position:"relative",marginBottom:"-18px",marginLeft:"24px",paddingTop:"12px",display:"flex",justifyContent:"flex-start",pointerEvents:"none","& img":{width:"clamp(64px, 6vw, 96px)",height:"auto",maxWidth:"100%",objectFit:"contain",display:"block"}},e.breakpoints.down("lg"),{marginLeft:"12px",paddingTop:"4px","& img":{maxHeight:92}}),upgradeBox:{flexShrink:0,marginTop:e.spacing(1)}}})),P=function(e){var t=e.children,n=e.includeTopMargin,r=e.t,o=e.showSidebar,a=e.requireAuth,c=Object(i.useRouter)(),b=M(),m=Object(l.a)(),y=I(h.a,{includeTopMargin:n,t:r},I(u.a,{container:!0},o&&I(s.a,{mdDown:!0},I(u.a,{item:!0,md:2,xl:2},I(d.a,{elevation:0,className:b.sidebar},I(F.a,{t:r}),I(f.a,{className:b.upgradeBox,style:{marginRight:m.spacing(2)}},I(f.a,{className:b.updatedBtnBox},I("img",{src:g.a,alt:"installtion icon"})),I(p.a,{onClick:function(){c.push("/subscribe")},style:{textTransform:"capitalize",fontWeight:"600",backgroundColor:"#0F4C8F",borderRadius:"50px",width:"100%",color:"#fff",marginRight:m.spacing(2),padding:"12px 20px"}},r("packageUpdate")))))),I(u.a,{container:!0,item:!0,xl:10,lg:10,md:12,xs:12,className:b.contentContainer},t,I(R,null))));return a?I(v.a,null,y):y};P.defaultProps={includeTopMargin:!0,showSidebar:!0,requireAuth:!0};t.a=P},"/yh+":function(e,t,n){var r=n("+Bmy");e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},"0/NE":function(e,t,n){var r=n("8ltH"),o=n("EftX"),a=n("fO1A");e.exports=function(e,t,n,i,c,l){var u=1&n,s=e.length,d=t.length;if(s!=d&&!(u&&d>s))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,v=!0,b=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<s;){var g=e[h],m=t[h];if(i)var y=u?i(m,g,h,t,e,l):i(g,m,h,e,t,l);if(void 0!==y){if(y)continue;v=!1;break}if(b){if(!o(t,(function(e,t){if(!a(b,t)&&(g===e||c(g,e,n,i,l)))return b.push(t)}))){v=!1;break}}else if(g!==m&&!c(g,m,n,i,l)){v=!1;break}}return l.delete(e),l.delete(t),v}},"05c8":function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},"06hQ":function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"08s0":function(e,t,n){var r=n("euuj");e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},"1del":function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},"26Ja":function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},"2GSc":function(e,t,n){var r=n("WnzN");e.exports=function(){this.__data__=r?r(null):{},this.size=0}},"3UCn":function(e,t,n){var r=n("mKCr"),o=n("aB24")((function(e,t,n){r(e,n,t)}));e.exports=o},"3wGQ":function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},"4FGL":function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},"4Fdj":function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},"67e+":function(e,t,n){var r=n("i91D"),o=n("Jnpc")(r);e.exports=o},"6ZUk":function(e,t,n){var r=n("M+cw"),o=n("S5PF"),a=Object.prototype,i=a.hasOwnProperty,c=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!c.call(e,"callee")};e.exports=l},"6m9v":function(e,t,n){var r=n("+Bmy");e.exports=function(e){return function(t){return r(t,e)}}},"74bI":function(e,t,n){var r=n("06hQ");e.exports=function(e){return e===e&&!r(e)}},"7mna":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("COXm");function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=o(n("ivGQ")),i=["\\+https:\\/\\/developers.google.com\\/\\+\\/web\\/snippet\\/","googlebot","baiduspider","gurujibot","yandexbot","slurp","msnbot","bingbot","facebookexternalhit","linkedinbot","twitterbot","slackbot","telegrambot","applebot","pingdom","tumblr"];function c(e){var t=new r.UAParser(e).getResult(),n=new RegExp("("+i.join("|")+")","ig"),o=!!e&&n.test(e.toLowerCase()),a=t.browser.name,c=t.device.type||null,l=t.os.name,u=t.engine.name,s="mobile"===c,d="tablet"===c,f="iOS"===l;return Object.freeze({browser:a,deviceType:c,os:l,engine:u,isMobile:s,isTablet:d,isIos:f,source:e,deviceVendor:t.device.vendor||null,osVersion:parseInt(t.os.version,10),browserVersion:parseFloat(t.browser.version),engineVersion:parseFloat(t.engine.version),isIphone:s&&f,isIpad:d&&f,isDesktop:!s&&!d,isChrome:"Chrome"===a,isFirefox:"Firefox"===a,isSafari:"Safari"===a,isIE:"IE"===a,isEdge:"Edge"===a,isOpera:"Opera"===a,isMac:"Mac OS"===l,isChromeOS:"Chromium OS"===l,isWindows:"Windows"===l,isAndroid:"Android"===l,isBot:o})}var l=function(e,t){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};var u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};
1function s(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(t){a(t)}}function c(e){try{l(r.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}t.parse=c,t.useUserAgent=function(e){return c(e)},t.withUserAgent=function(e){var t,n=this,r=e.displayName||e.name,o=function(n){function o(){return null!==n&&n.apply(this,arguments)||this}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(o,n),o.prototype.render=function(){return t||"undefined"===typeof window||(t=c(window.navigator.userAgent)),a.createElement(e,u({ua:t},this.props))},o.displayName="withUserAgent("+r+")",o}(a.Component);return e.getInitialProps&&(o.getInitialProps=function(r){return s(n,void 0,void 0,(function(){var n,o;return d(this,(function(a){switch(a.label){case 0:return n={},o="","undefined"!==typeof r.req?o=r.req.headers["user-agent"]:"undefined"!==typeof window&&(o=window.navigator.userAgent),t=c(o),r.ua=Object.assign({},t),[4,e.getInitialProps(r)];case 1:return n=a.sent(),r.ua&&delete r.ua,[2,n]}}))}))}),o}},"7tyZ":function(e,t,n){(function(e){var r=n("XeXG"),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,c=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=c}).call(this,n("hoOo")(e))},"87D/":function(e,t,n){var r=n("ZwQu"),o=n("06hQ");e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},"8CAL":function(e,t,n){var r=n("S+LB")(n("GMq6"),"Map");e.exports=r},"8ltH":function(e,t,n){var r=n("kNUc"),o=n("3wGQ"),a=n("rfY1");function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},"8u9v":function(e,t){var n=Array.isArray;e.exports=n},"8xrp":function(e,t,n){var r=n("74bI"),o=n("NHjt");e.exports=function(e){for(var t=o(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}},"9Cpk":function(e,t,n){var r=n("Tusy"),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},"9lmZ":function(e,t,n){"use strict";var r;t.__esModule=!0,t.HeadManagerContext=void 0;var o=((r=n("ivGQ"))&&r.__esModule?r:{default:r}).default.createContext({});t.HeadManagerContext=o},"9yx8":function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},AJRS:function(e,t,n){var r=n("WnzN"),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},AdZl:function(e,t,n){var r=n("+ERu"),o=n("6ZUk"),a=n("8u9v"),i=n("9yx8"),c=n("hGls"),l=n("Iv0v");e.exports=function(e,t,n){for(var u=-1,s=(t=r(t,e)).length,d=!1;++u<s;){var f=l(t[u]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++u!=s?d:!!(s=null==e?0:e.length)&&c(s)&&i(f,s)&&(a(e)||o(e))}},AmD6:function(e,t,n){"use strict";var r=n("Mnut"),o=n("kplu"),a=n("v5NU"),i=(n("aUTa"),n("SvKh")),c=n("sBTQ"),l=n("lOt2");function u(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}
1t.__esModule=!0,t.default=void 0;var s=n("ivGQ"),d=function(e){i(n,e);var t=u(n);function n(e){var a;return o(this,n),(a=t.call(this,e))._hasHeadManager=void 0,a.emitChange=function(){a._hasHeadManager&&a.props.headManager.updateHead(a.props.reduceComponentsToState(r(a.props.headManager.mountedInstances),a.props))},a._hasHeadManager=a.props.headManager&&a.props.headManager.mountedInstances,a}return a(n,[{key:"componentDidMount",value:function(){this._hasHeadManager&&this.props.headManager.mountedInstances.add(this),this.emitChange()}},{key:"componentDidUpdate",value:function(){this.emitChange()}},{key:"componentWillUnmount",value:function(){this._hasHeadManager&&this.props.headManager.mountedInstances.delete(this),this.emitChange()}},{key:"render",value:function(){return null}}]),n}(s.Component);t.default=d},CJ9k:function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},Cz70:function(e,t,n){var r=n("v64C"),o=n("0/NE"),a=n("xlIW"),i=n("DeF7"),c=n("FqJm"),l=n("8u9v"),u=n("cjAe"),s=n("HvXq"),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,b,g){var m=l(e),y=l(t),x=m?f:c(e),j=y?f:c(t),w=(x=x==d?p:x)==p,O=(j=j==d?p:j)==p,k=x==j;if(k&&u(e)){if(!u(t))return!1;m=!0,w=!1}if(k&&!w)return g||(g=new r),m||s(e)?o(e,t,n,v,b,g):a(e,t,x,n,v,b,g);if(!(1&n)){var C=w&&h.call(e,"__wrapped__"),S=O&&h.call(t,"__wrapped__");
1if(C||S){var A=C?e.value():e,_=S?t.value():t;return g||(g=new r),b(A,_,n,v,g)}}return!!k&&(g||(g=new r),i(e,t,n,v,b,g))}},Dcxy:function(e,t,n){var r=n("kSPP"),o=n("/yh+"),a=n("QlLD"),i=n("sMdj"),c=n("74bI"),l=n("PBFE"),u=n("Iv0v");e.exports=function(e,t){return i(e)&&c(t)?l(u(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},DeF7:function(e,t,n){var r=n("sAcZ"),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,c){var l=1&n,u=r(e),s=u.length;if(s!=r(t).length&&!l)return!1;for(var d=s;d--;){var f=u[d];if(!(l?f in t:o.call(t,f)))return!1}var p=c.get(e),h=c.get(t);if(p&&h)return p==t&&h==e;var v=!0;c.set(e,t),c.set(t,e);for(var b=l;++d<s;){var g=e[f=u[d]],m=t[f];if(a)var y=l?a(m,g,f,t,e,c):a(g,m,f,e,t,c);if(!(void 0===y?g===m||i(g,m,n,a,c):y)){v=!1;break}b||(b="constructor"==f)}if(v&&!b){var x=e.constructor,j=t.constructor;x==j||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof j&&j instanceof j||(v=!1)}return c.delete(e),c.delete(t),v}},EEoB:function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},EftX:function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},FpGR:function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}},FqJm:function(e,t,n){var r=n("xWNZ"),o=n("8CAL"),a=n("hIBh"),i=n("rYRw"),c=n("Q92J"),l=n("ZwQu"),u=n("zvTh"),s="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",v=u(r),b=u(o),g=u(a),m=u(i),y=u(c),x=l;(r&&x(new r(new ArrayBuffer(1)))!=h||o&&x(new o)!=s||a&&x(a.resolve())!=d||i&&x(new i)!=f||c&&x(new c)!=p)&&(x=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case v:return h;case b:return s;case g:return d;case m:return f;case y:return p}return t}),e.exports=x},GARA:function(e,t,n){"use strict";t.__esModule=!0,t.isInAmpMode=i,t.useAmp=function(){return i(o.default.useContext(a.AmpStateContext))};var r,o=(r=n("ivGQ"))&&r.__esModule?r:{default:r},a=n("HgJi");function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,n=void 0!==t&&t,r=e.hybrid,o=void 0!==r&&r,a=e.hasQuery,i=void 0!==a&&a;return n||o&&i}},GCWF:function(e,t,n){var r=n("xl7M");e.exports=function(e){return null==e?"":r(e)}},GMq6:function(e,t,n){var r=n("XeXG"),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},GRrc:function(e,t,n){var r=n("GMq6")["__core-js_shared__"];e.exports=r},HIuA:function(e,t,n){var r=n("67e+");e.exports=function(e,t,n,o){return r(e,(function(e,r,a){t(o,e,n(e),a)})),o}},HgJi:function(e,t,n){"use strict";var r;t.__esModule=!0,t.AmpStateContext=void 0;var o=((r=n("ivGQ"))&&r.__esModule?r:{default:r}).default.createContext({});t.AmpStateContext=o},HvLc:function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},HvXq:function(e,t,n){var r=n("KOVl"),o=n("Ijh8"),a=n("7tyZ"),i=a&&a.isTypedArray,c=i?o(i):r;e.exports=c},Ijh8:function(e,t){e.exports=function(e){return function(t){return e(t)}}},Iv0v:function(e,t,n){var r=n("+IXE");e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},J5x9:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},JF7T:function(e,t,n){var r=n("O905"),o=n("Dcxy"),a=n("Q7kj"),i=n("8u9v"),c=n("z578");e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):r(e):c(e)}},Jnpc:function(e,t,n){var r=n("yTJ1");e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,c=Object(n);(t?i--:++i<a)&&!1!==o(c[i],i,c););return n}}},JtWf:function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"===typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var l,u=[],s=!1,d=-1;function f(){s&&l&&(s=!1,l.length?u=l.concat(u):d=-1,u.length&&p())}function p(){if(!s){var e=c(f);s=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,s=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||s||c(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},KOVl:function(e,t,n){var r=n("ZwQu"),o=n("hGls"),a=n("S5PF"),i={};
1i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},KSRS:function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},L3Nm:function(e,t,n){var r=n("WnzN"),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},"M+cw":function(e,t,n){var r=n("ZwQu"),o=n("S5PF");e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},Mnut:function(e,t,n){var r=n("gt6P"),o=n("KSRS"),a=n("daAQ"),i=n("05c8");e.exports=function(e){return r(e)||o(e)||a(e)||i()}},NHjt:function(e,t,n){var r=n("mOXy"),o=n("qzN0"),a=n("yTJ1");e.exports=function(e){return a(e)?r(e):o(e)}},NmSH:function(e,t,n){var r=n("wWEB");e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},"O/3r":function(e,t,n){"use strict";var r=n("8cmQ"),o=n("rZdQ"),a=n("ivGQ"),i=n("vFJ3"),c=n("OY/u"),l=n("E8//"),u={variant:"head"},s="thead",d=a.forwardRef((function(e,t){var n=e.classes,c=e.className,d=e.component,f=void 0===d?s:d,p=Object(o.a)(e,["classes","className","component"]);return a.createElement(l.a.Provider,{value:u},a.createElement(f,Object(r.a)({className:Object(i.default)(n.root,c),ref:t,role:f===s?null:"rowgroup"},p)))}));t.a=Object(c.a)({root:{display:"table-header-group"}},{name:"MuiTableHead"})(d)},O4Jw:function(e,t,n){"use strict";var r=n("ivGQ"),o=n.n(r),a=n("j14v"),i=n.n(a),c=o.a.createElement;t.a=function(e){var t=e.title,n=e.description,r=e.children;return c(o.a.Fragment,null,c(i.a,null,c("title",null,t),c("meta",{name:"og:description",content:n})),r)}},O905:function(e,t,n){var r=n("mFIo"),o=n("8xrp"),a=n("PBFE");e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},OvQD:function(e,t,n){var r=n("Tu0e"),o=n("rZ9V"),a=n("8CAL");e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),str
1ing:new r}}},PBFE:function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},Q7kj:function(e,t){e.exports=function(e){return e}},Q92J:function(e,t,n){var r=n("S+LB")(n("GMq6"),"WeakMap");e.exports=r},QlLD:function(e,t,n){var r=n("zpyt"),o=n("AdZl");e.exports=function(e,t){return null!=e&&o(e,t,r)}},"R+nh":function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},Ri2D:function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},Rvbi:function(e,t,n){var r=n("rZ9V");e.exports=function(){this.__data__=new r,this.size=0}},"S+LB":function(e,t,n){var r=n("ZZVX"),o=n("26Ja");e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},"S/+J":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Chart",{enumerable:!0,get:function(){return a.default}}),t.defaults=t.Scatter=t.Bubble=t.Polar=t.Radar=t.HorizontalBar=t.Bar=t.Line=t.Pie=t.Doughnut=t.default=void 0;var r=l(n("ivGQ")),o=l(n("ii0b")),a=l(n("6BdO")),i=l(n("+KM7")),c=l(n("3UCn"));function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function g(e,t){if("function"!==typeof t&&null!==t)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}}),t&&m(e,t)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?j(e):t}function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k="undefined"!==typeof e&&e.env&&"production",C=function(e){g(n,e);var t=y(n);function n(){var e;return h(this,n),O(j(e=t.call(this)),"handleOnClick",(function(t){var n=e.chartInstance,r=e.props,o=r.getDatasetAtEvent,a=r.getElementAtEvent,i=r.getElementsAtEvent,c=r.onElementsClick;o&&o(n.getDatasetAtEvent(t),t),a&&a(n.getElementAtEvent(t),t),i&&i(n.getElementsAtEvent(t),t),c&&c(n.getElementsAtEvent(t),t)})),O(j(e),"ref",(function(t){e.element=t})),e.chartInstance=void 0,e}
1return b(n,[{key:"componentDidMount",value:function(){this.renderChart()}},{key:"componentDidUpdate",value:function(){if(this.props.redraw)return this.destroyChart(),void this.renderChart();this.updateChart()}},{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=(t.redraw,t.type),r=t.options,o=t.plugins,a=t.legend,c=t.height,l=t.width;if(!0===e.redraw)return!0;if(c!==e.height||l!==e.width)return!0;if(n!==e.type)return!0;if(!(0,i.default)(a,e.legend))return!0;if(!(0,i.default)(r,e.options))return!0;var u=this.transformDataProp(e);return!(0,i.default)(this.shadowDataProp,u)||!(0,i.default)(o,e.plugins)}},{key:"componentWillUnmount",value:function(){this.destroyChart()}},{key:"transformDataProp",value:function(e){var t=e.data;return"function"==typeof t?t(this.element):t}},{key:"memoizeDataProps",value:function(){if(this.props.data){var e=this.transformDataProp(this.props);return this.shadowDataProp=p(p({},e),{},{datasets:e.datasets&&e.datasets.map((function(e){return p({},e)}))}),this.saveCurrentDatasets(),e}}},{key:"checkDatasets",value:function(e){var t="production"!==k&&"prod"!==k,r=this.props.datasetKeyProvider!==n.getLabelAsKey,o=e.length>1;if(t&&o&&!r){var a=!1;e.forEach((function(e){e.label||(a=!0)})),a&&console.error('[react-chartjs-2] Warning: Each dataset needs a unique key. By default, the "label" property on each dataset is used. Alternatively, you may provide a "datasetKeyProvider" as a prop that returns a unique key.')}}},{key:"getCurrentDatasets",value:function(){return this.chartInstance&&this.chartInstance.config.data&&this.chartInstance.config.data.datasets||[]}},{key:"saveCurrentDatasets",value:function(){var e=this;this.datasets=this.datasets||{},this.getCurrentDatasets().forEach((function(t){e.datasets[e.props.datasetKeyProvider(t)]=t}))}},{key:"updateChart",value:function(){var e=this,t=this.props.options,n=this.memoizeDataProps(this.props);if(this.chartInstance){t&&(this.chartInstance.options=a.default.helpers.configMerge(this.chartInstance.options,t));var r=this.getCurrentDatasets(),o=n.datasets||[];this.checkDatasets(r);var i=(0,c.default)(r,this.props.datasetKeyProvider);this.chartInstance.config.data.datasets=o.map((function(t){var n=i[e.props.datasetKeyProvider(t)];if(n&&n.type===t.type&&t.data){n.data.splice(t.data.length),t.data.forEach((function(e,r){n.data[r]=t.data[r]}));t.data;var r=d(t,["data"]);return p(p({},n),r)}return t}));n.datasets;var l=d(n,["datasets"]);this.chartInstance.config.data=p(p({},this.chartInstance.config.data),l),this.chartInstance.update()}}},{key:"renderChart",value:function(){var e=this.props,t=e.options,r=e.legend,o=e.type,c=e.plugins,l=this.element,u=this.memoizeDataProps();"undefined"===typeof r||(0,i.default)(n.defaultProps.legend,r)||(t.legend=r),this.chartInstance=new a.default(l,{type:o,data:u,options:t,plugins:c})}},{key:"destroyChart",value:function(){if(this.chartInstance){this.saveCurrentDatasets();var e=Object.values(this.datasets);this.chartInstance.config.data.datasets=e,this.chartInstance.destroy()}}},{key:"render",value:function(){var e=this.props,t=e.height,n=e.width,o=e.id;return r.default.createElement("canvas",{ref:this.ref,height:t,width:n,id:o,onClick:this.handleOnClick})}}]),n}(r.default.Component);O(C,"getLabelAsKey",(function(e){return e.label})),O(C,"propTypes",{data:o.default.oneOfType([o.default.object,o.default.func]).isRequired,getDatasetAtEvent:o.default.func,getElementAtEvent:o.default.func,getElementsAtEvent:o.default.func,height:o.default.number,legend:o.default.object,onElementsClick:o.default.func,options:o.default.object,plugins:o.default.arrayOf(o.default.object),redraw:o.default.bool,type:function(e,t,n){if(!a.default.controllers[e[t]])return new Error("Invalid chart type `"+e[t]+"` supplied to `"+n+"`.")},width:o.default.number,datasetKeyProvider:o.default.func}),O(C,"defaultProps",{legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:C.getLabelAsKey});var S=C;t.default=S;var A=function(e){g(n,e);var t=y(n);function n(){return h(this,n),t.apply(this,arguments)}return b(n,[{key:"render",value:function(){var e=this;return r.default.createElement(C,u({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"doughnut"}))}}]),n}(r.default.Component);t.Doughnut=A;var _=function(e){g(n,e);var t=y(n);function n(){return h(this,n),t.apply(this,arguments)}return b(n,[{key:"render",value:function(){var e=this;return r.default.createElement(C,u({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"pie"}))}}]),n}(r.default.Component);t.Pie=_;var E=function(e){g(n,e);var t=y(n);function n(){return h(this,n),t.apply(this,arguments)}return b(n,[{key:"render",value:function(){var e=this;return r.default.createElement(C,u({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"line"}))}}]),n}(r.default.Component);t.Line=E;var T=function(e){g(n,e);var t=y(n);function n(){return h(this,n),t.apply(this,arguments)}return b(n,[{key:"render",value:function(){var e=this;return r.default.createElement(C,u({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bar"}))}}]),n}(r.default.Component);t.Bar=T;var R=function(e){g(n,e);var t=y(n);function n(){return h(this,n),t.apply(this,arguments)}return b(n,[{key:"render",value:function(){var e=this;return r.default.createElement(C,u({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"horizontalBar"}))}}]),n}(r.default.Component);t.HorizontalBar=R;var F=function(e){g(n,e);var t=y(n);function n(){return h(this,n),t.apply(this,arguments)}return b(n,[{key:"render",value:function(){var e=this;return r.default.createElement(C,u({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"radar"}))}}]),n}(r.default.Component);t.Radar=F;var I=function(e){g(n,e);var t=y(n);function n(){return h(this,n),t.apply(this,arguments)}return b(n,[{key:"render",value:function(){var e=this;return r.default.createElement(C,u({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"polarArea"}))}}]),n}(r.default.Component);t.Polar=I;var M=function(e){g(n,e);var t=y(n);function n(){return h(this,n),t.apply(this,arguments)}return b(n,[{key:"render",value:function(){var e=this;return r.default.createElement(C,u({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bubble"}))}}]),n}(r.default.Component);t.Bubble=M;var P=function(e){g(n,e);var t=y(n);function n(){return h(this,n),t.apply(this,arguments)}return b(n,[{key:"render",value:function(){var e=this;return r.default.createElement(C,u({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"scatter"}))}}]),n}(r.default.Component);t.Scatter=P;var W=a.default.defaults;t.defaults=W}).call(this,n("JtWf"))},S5PF:function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},SvKh:function(e,t,n){var r=n("YPTo");e.exports=function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&r(e,t)}},"T+ZP":function(e,t,n){"use strict";var r=n("J5x9");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}
1t.__esModule=!0,t.defaultHead=f,t.default=void 0;var a,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n("ivGQ")),c=(a=n("AmD6"))&&a.__esModule?a:{default:a},l=n("HgJi"),u=n("9lmZ"),s=n("GARA");function d(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[i.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function p(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var h=["name","httpEquiv","charSet","itemProp"];function v(e,t){return e.reduce((function(e,t){var n=i.default.Children.toArray(t.props.children);return e.concat(n)}),[]).reduce(p,[]).reverse().concat(f(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,n=new Set,r={};return function(o){var a=!0,i=!1;if(o.key&&"number"!==typeof o.key&&o.key.indexOf("$")>0){i=!0;var c=o.key.slice(o.key.indexOf("$")+1);e.has(c)?a=!1:e.add(c)}switch(o.type){case"title":case"base":t.has(o.type)?a=!1:t.add(o.type);break;case"meta":for(var l=0,u=h.length;l<u;l++){var s=h[l];if(o.props.hasOwnProperty(s))if("charSet"===s)n.has(s)?a=!1:n.add(s);else{var d=o.props[s],f=r[s]||new Set;"name"===s&&i||!f.has(d)?(f.add(d),r[s]=f):a=!1}}}return a}}()).reverse().map((function(e,n){var a=e.key||n;if(!t.inAmpMode&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some((function(t){return e.props.href.startsWith(t)}))){var c=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.props||{});return c["data-href"]=c.href,c.href=void 0,c["data-optimized-fonts"]=!0,i.default.cloneElement(e,c)}return i.default.cloneElement(e,{key:a})}))}function b(e){var t=e.children,n=(0,i.useContext)(l.AmpStateContext),r=(0,i.useContext)(u.HeadManagerContext);return i.default.createElement(c.default,{reduceComponentsToState:v,headManager:r,inAmpMode:(0,s.isInAmpMode)(n)},t)}b.rewind=function(){};var g=b;t.default=g},TCx2:function(e,t,n){var r=n("Tusy");e.exports=function(e){return r(this.__data__,e)>-1}},Tu0e:function(e,t,n){var r=n("2GSc"),o=n("Ri2D"),a=n("AJRS"),i=n("L3Nm"),c=n("wTd/");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=c,e.exports=l},Tusy:function(e,t,n){var r=n("lBlV");e.exports=function(e,t){for(var n=e.length;n--;
1)if(r(e[n][0],t))return n;return-1}},VOpw:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/analytics",function(){return n("z+dP")}])},WC1d:function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),c=i.length;c--;){var l=i[e?c:++o];if(!1===n(a[l],l,a))break}return t}}},Wnee:function(e,t,n){var r=n("rZ9V"),o=n("8CAL"),a=n("kNUc");e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},WnzN:function(e,t,n){var r=n("S+LB")(Object,"create");e.exports=r},XeXG:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("jGzV"))},XrMh:function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},XyWS:function(e,t,n){"use strict";var r=n("8cmQ"),o=n("rZdQ"),a=n("ivGQ"),i=n("vFJ3"),c=n("RyfF"),l=Object(c.a)(a.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),u=n("OY/u"),s=n("l81d"),d=n("fWYq"),f=a.forwardRef((function(e,t){var n=e.active,c=void 0!==n&&n,u=e.children,f=e.classes,p=e.className,h=e.direction,v=void 0===h?"asc":h,b=e.hideSortIcon,g=void 0!==b&&b,m=e.IconComponent,y=void 0===m?l:m,x=Object(o.a)(e,["active","children","classes","className","direction","hideSortIcon","IconComponent"]);return a.createElement(s.a,Object(r.a)({className:Object(i.default)(f.root,p,c&&f.active),component:"span",disableRipple:!0,ref:t},x),u,g&&!c?null:a.createElement(y,{className:Object(i.default)(f.icon,f["iconDirection".concat(Object(d.a)(v))])}))}));t.a=Object(u.a)((function(e){return{root:{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:e.palette.text.secondary},"&:hover":{color:e.palette.text.secondary,"& $icon":{opacity:.5}},"&$active":{color:e.palette.text.primary,"&& $icon":{opacity:1,color:e.palette.text.secondary}}},active:{},icon:{fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}}),{name:"MuiTableSortLabel"})(f)},YhHV:function(e,t,n){var r=n("08s0"),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)})),t}));e.exports=i},ZFuC:function(e,t,n){var r=n("wWEB");e.exports=function(e){return r(this,e).has(e)}},ZZVX:function(e,t,n){var r=n("87D/"),o=n("+IPG"),a=n("06hQ"),i=n("zvTh"),c=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,s=l.toString,d=u.hasOwnProperty,f=RegExp("^"+s.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?f:c).test(i(e))}},ZwQu:function(e,t,n){var r=n("gOYI"),o=n("gzBq"),a=n("CJ9k"),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},aB24:function(e,t,n){var r=n("l+XL"),o=n("HIuA"),a=n("JF7T"),i=n("8u9v");e.exports=function(e,t){return function(n,c){var l=i(n)?r:o,u=t?t():{};return l(n,e,a(c,2),u)}}},aUTa:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},aqRq:function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},b7tc:function(e,t,n){var r=n("FpGR"),o=n("lZWV"),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,c=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=c},brbn:function(e,t,n){var r=n("S+LB"),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},bxQA:function(e,t,n){var r=n("Mnut"),o={"read-aloud":"ReadAloud","describe-image":"DescribeImage","repeat-sentence":"RepeatSentence","retell-lecture":"RetellLecture","answer-short-question":"AnswerShortQuestion","summarize-written-text":"SummarizeWrittenText","write-essay":"WriteEssay","write-email":"WriteEmail","reading-multiple-choice-single-answer":"ReadingMultipleChoiceSingleAnswer","reading-multiple-choice-multiple-answer":"ReadingMultipleChoiceMultipleAnswer","reorder-paragraph":"ReorderParagraph","reading-fill-in-the-blanks":"ReadingFillInTheBlanks","reading-and-writing-fill-in-the-blanks":"ReadingAndWritingFillInTheBlanks","summarize-spoken-text":"SummarizeSpokenText","listening-multiple-choice-single-answer":"ListeningMultipleChoiceSingleAnswer","listening-multiple-choice-multiple-answer":"ListeningMultipleChoiceMultipleAnswer","listening-fill-in-the-blanks":"ListeningFillInTheBlanks","highlight-incorrect-words":"HighlightIncorrectWords","highlight-correct-summary":"HighlightCorrectSummary","select-missing-word":"SelectMissingWord","write-from-dictation":"WriteFromDictation"},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(!t)return"";var n="";return Object.keys(e).forEach((function(r){Object.keys(e[r]||{}
1).forEach((function(o){o===t&&(n=e[r][o])}))})),n},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(!t)return"";var n="";return Object.keys(e).forEach((function(r){Object.keys(e[r]||{}).forEach((function(e){e===t&&(n=r)}))})),n},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new Set([].concat(r(Object.keys(e)),r(Object.keys(t)))),o={};return n.forEach((function(n){var r=e[n]||{count:0,accuracy:0},a=t[n]||{count:0,accuracy:0},i=(r.count||0)+(a.count||0);o[n]={count:i,accuracy:i>0?((r.accuracy||0)*(r.count||0)+(a.accuracy||0)*(a.count||0))/i:0}})),o};e.exports={mapped:o,getTitle:a,getSkill:i,buildMockAccuracyItems:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&e.last?Object.keys(e.last).map((function(n){var r=e.last[n],c=e.all&&e.all[n];return{type:o[n]||n,title:a(t,o[n]||n),skill:i(t,o[n]||n),average:c?(100*c.accuracy).toFixed(0):"-",Last2MT:e.last_two&&null!=e.last_two[n]?(100*e.last_two[n]).toFixed(0):"-",LastMT:r?(100*r.accuracy).toFixed(0):"-"}})):[]},buildMockAccuracyItemsFromMocks:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(t)||0===t.length)return[];var l=r(t).filter((function(e){return null===e||void 0===e?void 0:e.is_finished})).sort((function(e,t){return new Date((null===t||void 0===t?void 0:t.created_at)||0)-new Date((null===e||void 0===e?void 0:e.created_at)||0)}));if(0===l.length)return[];var u=(null===(e=l[0])||void 0===e?void 0:e.single_question_accuracy)||{},s=l.slice(0,2).reduce((function(e,t){return c(e,(null===t||void 0===t?void 0:t.single_question_accuracy)||{})}),{}),d=l.reduce((function(e,t){return c(e,(null===t||void 0===t?void 0:t.single_question_accuracy)||{})}),{}),f=new Set([].concat(r(Object.keys(u)),r(Object.keys(s)),r(Object.keys(d))));return r(f).map((function(e){return{type:o[e]||e,title:a(n,o[e]||e),skill:i(n,o[e]||e),average:d[e]?(100*d[e].accuracy).toFixed(0):"-",Last2MT:s[e]?(100*s[e].accuracy).toFixed(0):"-",LastMT:u[e]?(100*u[e].accuracy).toFixed(0):"-"}}))}}},cSIU:function(e,t,n){var r=n("Tusy");e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},cjAe:function(e,t,n){(function(e){var r=n("GMq6"),o=n("vCDb"),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,c=i&&i.exports===a?r.Buffer:void 0,l=(c?c.isBuffer:void 0)||o;e.exports=l}).call(this,n("hoOo")(e))},dWv3:function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},euuj:function(e,t,n){var r=n("kNUc");function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},f5Ht:function(e,t,n){"use strict";var r=n("ivGQ"),o=r.createElement;t.a=function(e){return o("svg",{xmlns:"http://www.w3.org/2000/svg",width:e.width||24,height:e.height||24,viewBox:"0 0 24 24",fill:"none"},o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C11.4477 20 11 19.5523 11 19L11 5C11 4.44771 11.4477 4 12 4C12.5523 4 13 4.44771 13 5L13 19C13 19.5523 12.5523 20 12 20Z",fill:e.color}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.7071 12.7071C19.3166 13.0976 18.6834 13.0976 18.2929 12.7071L12 6.41421L5.70711 12.7071C5.31658 13.0976 4.68342 13.0976 4.29289 12.7071C3.90237 12.3166 3.90237 11.6834 4.29289 11.2929L11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289L19.7071 11.2929C20.0976 11.6834 20.0976 12.3166 19.7071 12.7071Z",fill:e.color}))}},fO1A:function(e,t){e.exports=function(e,t){return e.has(t)}},fOHp:function(e,t){e.exports=function(e){return this.__data__.has(e)}},flbY:function(e,t,n){var r=n("EEoB")(Object.keys,Object);e.exports=r},g6ov:function(e,t,n){var r=n("1del"),o=n("8u9v");e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},gOYI:function(e,t,n){var r=n("GMq6").Symbol;e.exports=r},gYS1:function(e,t,n){var r=n("wWEB");e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},gt6P:function(e,t,n){var r=n("jKzZ");e.exports=function(e){if(Array.isArray(e))return r(e)}},gzBq:function(e,t,n){var r=n("gOYI"),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(l){}var o=i.call(e);return r&&(t?e[c]=n:delete e[c]),o}},hGls:function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},hIBh:function(e,t,n){var r=n("S+LB")(n("GMq6"),"Promise");e.exports=r},hP2C:function(e,t){e.exports="/_next/static/images/rocket-e39819a74aeedc9d33123809feefc1c8fff5ea5ffd6522a8727ec12fa6ae18f2.svg"},i91D:function(e,t,n){var r=n("rlNI"),o=n("NHjt");e.exports=function(e,t){return e&&r(e,t,o)}},j14v:function(e,t,n){e.exports=n("T+ZP")},jGzV:function(e,t){(function(t){e.exports=function(){var e={149:function(e){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(n){"object"===typeof window&&(t=window)}e.exports=t}},n={};function r(t){if(n[t])return n[t].exports;var o=n[t]={exports:{}},a=!0;try{e[t](o,o.exports,r),a=!1}finally{a&&delete n[t]}return o.exports}return r.ab=t+"/",r(149)}()}).call(this,"/")},kNUc:function(e,t,n){var r=n("OvQD"),o=n("gYS1"),a=n("u7v4"),i=n("ZFuC"),c=n("NmSH");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=c,e.exports=l},kSPP:function(e,t,n){var r=n("Cz70"),o=n("S5PF");e.exports=function e(t,n,a,i,c){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,a,i,e,c))}},"l+XL":function(e,t){e.exports=function(e,t,n,r){for(var o=-1,a=null==e?0:e.length;++o<a;){var i=e[o];t(r,i,n(i),e)}return r}},l9ml:function(e,t,n){"use strict";var r=n("krTq"),o=n("ivGQ"),a=o.createElement;t.a=function(e){return a("svg",Object(r.a)({width:24,height:24,viewBox:"0 0 24 24",fill:"none"},e),a("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.293 8.293a1 1 0 011.414 0L12 13.586l5.293-5.293a1 1 0 111.414 1.414l-6 6a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414z",fill:e.color}))}},lBlV:function(e,t){e.exports=function(e,t){return e===t||e!==e&&t!==t}}
1,lOt2:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},lZWV:function(e,t){e.exports=function(){return[]}},m0eP:function(e,t,n){var r=n("GMq6").Uint8Array;e.exports=r},mFIo:function(e,t,n){var r=n("v64C"),o=n("kSPP");e.exports=function(e,t,n,a){var i=n.length,c=i,l=!a;if(null==e)return!c;for(e=Object(e);i--;){var u=n[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<c;){var s=(u=n[i])[0],d=e[s],f=u[1];if(l&&u[2]){if(void 0===d&&!(s in e))return!1}else{var p=new r;if(a)var h=a(d,f,s,e,t,p);if(!(void 0===h?o(f,d,3,a,p):h))return!1}}return!0}},mKCr:function(e,t,n){var r=n("brbn");e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},mOXy:function(e,t,n){var r=n("uLwU"),o=n("6ZUk"),a=n("8u9v"),i=n("cjAe"),c=n("9yx8"),l=n("HvXq"),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),s=!n&&o(e),d=!n&&!s&&i(e),f=!n&&!s&&!d&&l(e),p=n||s||d||f,h=p?r(e.length,String):[],v=h.length;for(var b in e)!t&&!u.call(e,b)||p&&("length"==b||d&&("offset"==b||"parent"==b)||f&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||c(b,v))||h.push(b);return h}},mSjw:function(e,t,n){"use strict";var r=n("ivGQ"),o=r.createElement;t.a=function(e){return o("svg",{xmlns:"http://www.w3.org/2000/svg",width:e.width||24,height:e.height||24,viewBox:"0 0 24 24",fill:"none"},o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C12.5523 4 13 4.44772 13 5L13 19C13 19.5523 12.5523 20 12 20C11.4477 20 11 19.5523 11 19L11 5C11 4.44772 11.4477 4 12 4Z",fill:e.color}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.29289 11.2929C4.68342 10.9024 5.31658 10.9024 5.70711 11.2929L12 17.5858L18.2929 11.2929C18.6834 10.9024 19.3166 10.9024 19.7071 11.2929C20.0976 11.6834 20.0976 12.3166 19.7071 12.7071L12.7071 19.7071C12.3166 20.0976 11.6834 20.0976 11.2929 19.7071L4.29289 12.7071C3.90237 12.3166 3.90237 11.6834 4.29289 11.2929Z",fill:e.color}))}},oJbo:function(e,t,n){"use strict";var r=n("8cmQ"),o=n("rZdQ"),a=n("ivGQ"),i=n("vFJ3"),c=n("OY/u"),l=a.forwardRef((function(e,t){var n=e.classes,c=e.className,l=e.component,u=void 0===l?"div":l,s=Object(o.a)(e,["classes","className","component"]);return a.createElement(u,Object(r.a)({ref:t,className:Object(i.default)(n.root,c)},s))}));t.a=Object(c.a)({root:{width:"100%",overflowX:"auto"}},{name:"MuiTableContainer"})(l)},qzN0:function(e,t,n){var r=n("R+nh"),o=n("flbY"),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},rYRw:function(e,t,n){var r=n("S+LB")(n("GMq6"),"Set");e.exports=r},rZ9V:function(e,t,n){var r=n("s44W"),o=n("9Cpk"),a=n("x9yZ"),i=n("TCx2"),c=n("cSIU");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=c,e.exports=l},rfY1:function(e,t){e.exports=function(e){return this.__data__.has(e)}},rlNI:function(e,t,n){var r=n("WC1d")();e.exports=r},s44W:function(e,t){e.exports=function(){this.__data__=[],this.size=0}},sAcZ:function(e,t,n){var r=n("g6ov"),o=n("b7tc"),a=n("NHjt");e.exports=function(e){return r(e,a,o)}},sBTQ:function(e,t,n){var r=n("61eJ"),o=n("aUTa");e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?o(e):t}},sLi9:function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];switch(e){case"Speaking":return o(t);case"Writing":return a(t);case"Reading":return i(t);case"Listening":return c(t)}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[];return e.forEach((function(e){switch(e.type){case"ReadAloud":t[0]=e;break;case"RepeatSentence":t[1]=e;break;case"DescribeImage":t[2]=e;break;case"RetellLecture":t[3]=e;break;case"AnswerShortQuestion":t[4]=e;break;case"RespondToASituation":t[5]=e;break;case"SummarizeGroupDiscussion":t[6]=e}})),t}function a(e){var t=[];return e.forEach((function(e){switch(e.type){case"SummarizeWrittenText":t[0]=e;break;case"WriteEssay":t[1]=e;break;case"WriteEmail":t[2]=e}})),t}function i(e){var t=[];return e.forEach((function(e){switch(e.type){case"ReadingAndWritingFillInTheBlanks":t[0]=e;break;case"ReadingMultipleChoiceMultipleAnswer":t[1]=e;break;case"ReorderParagraph":t[2]=e;break;case"ReadingFillInTheBlanks":t[3]=e;break;case"ReadingMultipleChoiceSingleAnswer":t[4]=e}})),t}function c(e){var t=[];return e.forEach((function(e){switch(e.type){case"SummarizeSpokenText":t[0]=e;break;case"ListeningMultipleChoiceSingleAnswer":t[1]=e;break;case"ListeningMultipleChoiceMultipleAnswer":t[2]=e;break;case"ListeningFillInTheBlanks":t[3]=e;break;case"HighlightCorrectSummary":t[4]=e;break;case"SelectMissingWord":t[5]=e;break;case"HighlightIncorrectWords":t[6]=e;break;case"WriteFromDictation":t[7]=e}})),t}function l(e){var t=[];return e.forEach((function(e){switch(e.type){case"ReadAloud":t[0]=e;break;case"RepeatSentence":t[1]=e;break;case"DescribeImage":t[2]=e;break;case"RetellLecture":t[3]=e;break;case"AnswerShortQuestion":t[4]=e;break;case"RespondToASituation":t[5]=e;break;case"SummarizeGroupDiscussion":t[6]=e;break;case"SummarizeWrittenText":t[7]=e;break;case"WriteEssay":t[8]=e;break;case"WriteEmail":t[9]=e;break;case"ReadingAndWritingFillInTheBlanks":t[10]=e;break;case"ReadingMultipleChoiceMultipleAnswer":t[11]=e;break;case"ReorderParagraph":t[12]=e;break;case"ReadingFillInTheBlanks":t[13]=e;break;case"ReadingMultipleChoiceSingleAnswer":t[14]=e;break;case"SummarizeSpokenText":t[15]=e;break;case"ListeningMultipleChoiceSingleAnswer":t[16]=e;break;case"ListeningMultipleChoiceMultipleAnswer":t[17]=e;break;case"ListeningFillInTheBlanks":t[18]=e;break;case"HighlightCorrectSummary":t[19]=e;break;case"SelectMissingWord":t[20]=e;break;case"HighlightIncorrectWords":t[21]=e;break;case"WriteFromDictation":t[22]=e}})),t}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return l}))},sMdj:function(e,t,n){var r=n("8u9v"),o=n("+IXE"),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},ttZt:function(e,t){e.exports=function(e){return this.__data__.get(e)}},u7v4:function(e,t,n){var r=n("wWEB");e.exports=function(e){return r(this,e).get(e)}},uLwU:function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},v64C:function(e,t,n){var r=n("rZ9V"),o=n("Rvbi"),a=n("HvLc"),i=n("ttZt"),c=n("fOHp"),l=n("Wnee");function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=c,u.prototype.set=l,e.exports=u},vCDb:function(e,t){e.exports=function(){return!1}},"wTd/":function(e,t,n){var r=n("WnzN");e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},wWEB:function(e,t,n){var r=n("aqRq");e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},x9yZ:function(e,t,n){var r=n("Tusy");e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},xLQt:function(e,t,n){"use strict";var r=n("ivGQ"),o=n.n(r),a=n("CoHH"),i=n("0evK"),c=n("pJep"),l=n("9Tpm"),u=n.n(l),s=o.a.createElement;t.a=function(e){var t=e.children,n=Object(a.e)((function(e){return e.auth})),l=Object(r.useState)(n.isAuth),d=l[0],f=l[1],p=Object(i.useRouter)(),h=u.a.get("token");return Object(r.useEffect)((function(){f(n.isAuth),h||(p.asPath?p.push("/login?return=".concat(p.asPath)):p.push("/login"))}),[n]),s(o.a.Fragment,null,d?t:s(c.a,null))}},xWNZ:function(e,t,n){var r=n("S+LB")(n("GMq6"),"DataView");e.exports=r},xl7M:function(e,t,n){var r=n("gOYI"),o=n("4FGL"),a=n("8u9v"),i=n("+IXE"),c=r?r.prototype:void 0,l=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},xlIW:function(e,t,n){var r=n("gOYI"),o=n("m0eP"),a=n("lBlV"),i=n("0/NE"),c=n("dWv3"),l=n("4Fdj"),u=r?r.prototype:void 0,s=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=c;case"[object Set]":var h=1&r;if(p||(p=l),e.size!=t.size&&!h)return!1;var v=f.get(e);if(v)return v==t;r|=2,f.set(e,t);var b=i(p(e),p(t),r,u,d,f);return f.delete(e),b;case"[object Symbol]":if(s)return s.call(e)==s.call(t)}return!1}},yTJ1:function(e,t,n){var r=n("87D/"),o=n("hGls");e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},"z+dP":function(e,t,n){"use strict";n.r(t),n.d(t,"__N_SSP",(function(){return Me}));var r=n("ivGQ"),o=n.n(r),a=n("oLC8"),i=n("7mna"),c=n("tbe6"),l=n("gRM1"),u=n("/ENz"),s=n("+TGe"),d=n("EGhD"),f=n("vFJ3"),p=n("CoHH"),h=n("EMQU"),v=n("krTq"),b=n("OY/u"),g=n("GXf6"),m=o.a.createElement,y=Object(b.a)((function(e){return{root:{color:"#999",textTransform:"none",minWidth:72,fontWeight:500,fontSize:14,marginRight:e.spacing(2),"&:hover":{color:"black",opacity:1},"&$selected":{color:"black",fontWeight:600},"&:focus":{color:"black"}},selected:{}}}))((function(e){return m(g.a,Object(v.a)({disableRipple:!0},e))})),x=n("AW5y"),j=Object(b.a)((function(e){return{root:{width:"100%",justifyContent:"flex-start"},indicator:{backgroundColor:e.palette.primary.main,borderRadius:"6px 6px 0px 0px",height:3}}}))(x.a),w=n("sLi9"),O=n("mSjw"),k=n("f5Ht"),C=n("l9ml"),S=o.a.createElement,A=Object(u.a)((function(e){return{table:{width:"100%",marginTop:39},tableHeader:{"& th":{fontSize:14,fontWeight:600,color:"#797979",cursor:"pointer",padding:"5px 10px","&:first-child":{textAlign:"left",cursor:"text"},"&:last-child":{cursor:"text"}}},tableBody:{"& td":{fontSize:15,fontWeight:600,textAlign:"center",padding:"15px 26px","&:first-child":{textAlign:"left",display:"flex",alignItems:"center",paddingBottom:21}}},coloredCell:{backgroundColor:"#E5E5E5"},typeBadge:{color:"#0F4C8F",backgroundColor:"rgba(15, 76, 143, 0.1);",fontWeight:600,padding:"3px 8px",fontSize:12,borderRadius:3}}}
1)),_={"Read Loud":"ReadAloud","Describes Images":"DescribeImage","Repeat Sentence":"RepeatSentence","Re-tell Lecture":"RetellLecture","Answer short question":"AnswerShortQuestion","Sumarize writen text":"SummarizeWrittenText","Write essay":"WriteEssay","Write email":"WriteEmail","R: Multiple-choice, choose single answer":"ReadingMultipleChoiceSingleAnswer","R: Multiple-choice, choose multiple answer":"ReadingMultipleChoiceMultipleAnswer","Re-order paragraphs":"ReorderParagraph","Reading : Fill in the blanks":"ReadingFillInTheBlanks","Reading & writing : Fill in the blanks":"ReadingAndWritingFillInTheBlanks","Sumarize spoken text":"SummarizeSpokenText","L: Multiple-choice, choose single answer":"ListeningMultipleChoiceSingleAnswer","L: Multiple-choice, choose multiple answer":"ListeningMultipleChoiceMultipleAnswer","Fill in the blanks":"ListeningFillInTheBlanks","Highlight incorrect words":"HighlightIncorrectWords","Highlight correct summary":"HighlightCorrectSummary","Select missing words":"SelectMissingWord","Write from dictation":"WriteFromDictation"},E=function(e,t,n){return parseInt(t[n],10)<parseInt(e[n],10)?-1:parseInt(t[n],10)>parseInt(e[n],10)?1:0},T=function(e){var t,n,a=e.week,i=A(),c=Object(p.d)(),u=Object(r.useState)([]),s=u[0],v=u[1],b=Object(r.useState)("asc"),g=b[0],m=b[1],y=Object(r.useState)(""),x=y[0],j=y[1],T=Object(p.e)((function(e){var t;return null===e||void 0===e||null===(t=e.analytic)||void 0===t?void 0:t.practiceProgress}))||{},R=Object(p.e)((function(e){var t;return null===e||void 0===e||null===(t=e.questions)||void 0===t?void 0:t.categorized}))||{},F=Object(p.e)((function(e){var t;return null===e||void 0===e||null===(t=e.studyPlan)||void 0===t?void 0:t.studyPlan}))||{},I=null===F||void 0===F?void 0:F.Recommended,M=null===F||void 0===F||null===(t=F.targets)||void 0===t?void 0:t.week,P=function(e){m(x===e&&"asc"===g?"desc":"asc"),j(e)},W=function(e){if(R&&e){var t="";return Object.keys(R).forEach((function(n){Object.keys(R[n]).forEach((function(r){r===e&&(t=R[n][r])}))})),t}},z=function(e){if(R&&e){var t="";return Object.keys(R).forEach((function(n){Object.keys(R[n]).forEach((function(r){r===e&&(t=n)}))})),t}},L=function(e){if(F&&I&&e){var t="";return Object.keys(I).forEach((function(n){_[I[n].qt]===e&&(t=parseInt(I[n].a/M*a,10))})),t}},N=function(e){var t=T.weeks,n=[];return Object.keys(t).forEach((function(r){t[r][e].accuracy>0&&n.push(t[r][e].accuracy)})),n.length>0?parseInt(n.reduce((function(e,t){return e+t}),0)/n.length*100,10):0};return Object(r.useEffect)((function(){var e=[];if(T){var t=T.weeks,n={},r={};t&&Object.keys(t).forEach((function(o){Object.keys(t[o]).forEach((function(i){N(i),n[i]?n[i]+=t[o][i].count:n[i]=t[o][i].count,r[i]?r[i]+=t[o][i].accuracy:r[i]=t[o][i].accuracy,e.push({type:i,advice:L(i),skill:z(i),title:W(i),practiced:n[i].toFixed(0),cumulativeAccuracy:N(i),accuracy:(100*t[a][i].accuracy).toFixed(0)})}))}))}v(e)}),[T,I]),Object(r.useEffect)((function(){c(Object(h.fetchPracticeProgressAction)({week:a,page:1,per_page:15})),c(Object(h.fetchStudyPlanAction)())}),[a]),S(l.a,null,S("table",{className:i.table},S("thead",{className:i.tableHeader},S("tr",null,S("th",null,"Question Type"),S("th",{onClick:function(){return P("advice")}},"Advice",S("br",null),"(No. of Questions)","advice"===x&&S(o.a.Fragment,null,S(C.a,"desc"===g?{color:"#797979"}:{style:{transform:"rotate(180deg)"},color:"#797979"}))),S("th",{onClick:function(){return P("practiced")}},"You",S("br",null)," Practiced","practiced"===x&&S(o.a.Fragment,null,S(C.a,"desc"===g?{color:"#797979"}:{style:{transform:"rotate(180deg)"},color:"#797979"}))),S("th",{onClick:function(){return P("accuracy")}},"Cummulative",S("br",null)," Accuracy (%)","accuracy"===x&&S(o.a.Fragment,null,S(C.a,"desc"===g?{color:"#797979"}:{style:{transform:"rotate(180deg)"},color:"#797979"}))),S("th",{onClick:function(){return P("accuracyLast10")}},"Accuracy(%)","accuracyLast10"===x&&S(o.a.Fragment,null,S(C.a,"desc"===g?{color:"#797979"}:{style:{transform:"rotate(180deg)"},color:"#797979"}))),S("th",null,"Progress"))),S("tbody",{className:i.tableBody},s&&(null===(n=function(e,t){var n=null===e||void 0===e?void 0:e.map((function(e,t){return[e,t]}));return null===n||void 0===n||n.sort((function(e,n){var r=t(e[0],n[0]);return 0!==r?r:e[1]-n[1]})),null===n||void 0===n?void 0:n.map((function(e){return e[0]}))}(Object(w.b)(s),function(e,t){return"desc"===e?function(e,n){return E(e,n,t)}:function(e,n){return-E(e,n,t)}}(g,x)))||void 0===n?void 0:n.map((function(e,t){return S("tr",{key:t},S("td",{className:Object(f.default)(Object(d.a)({},i.coloredCell,t%2===0))}
1,e.title," ",S("span",{className:i.typeBadge},e.skill)),S("td",{className:Object(f.default)(Object(d.a)({},i.coloredCell,t%2===0))},e.advice),S("td",{className:Object(f.default)(Object(d.a)({},i.coloredCell,t%2===0))},e.practiced),S("td",{className:Object(f.default)(Object(d.a)({},i.coloredCell,t%2===0))},e.cumulativeAccuracy,"%"),S("td",{className:Object(f.default)(Object(d.a)({},i.coloredCell,t%2===0))},e.accuracy,"%"),S("td",{className:Object(f.default)(Object(d.a)({},i.coloredCell,t%2===0))},e.practiced>0&&e.cumulativeAccuracy<e.accuracy&&S(k.a,{color:"green"}),e.practiced>0&&e.cumulativeAccuracy>e.accuracy&&S(O.a,{color:"red"}),e.practiced>0&&e.cumulativeAccuracy==e.accuracy&&"=",0==e.practiced&&"N/A"))}))))))};T.defaultProps={week:1};var R=T,F=n("hbca"),I=n("aYjb"),M=n("S/+J"),P=o.a.createElement,W=function(e){var t,n,r,a,i,c,l,u=e.yTitle,s=void 0===u?"":u,d=e.data,f={scales:{yAxes:[{ticks:{beginAtZero:!0,max:parseInt(null===d||void 0===d||null===(t=d.datasets[1])||void 0===t||null===(n=t.data)||void 0===n?void 0:n[0],10)>100?parseInt(null===d||void 0===d||null===(r=d.datasets[1])||void 0===r||null===(a=r.data)||void 0===a?void 0:a[0],10)-parseInt(null===d||void 0===d||null===(i=d.datasets[1])||void 0===i||null===(c=i.data)||void 0===c?void 0:c[0],10)%10+100:100,stepSize:20,backdropPaddingX:2},type:"linear",display:!0,position:"left",id:"y-axis-1"}]},maintainAspectRatio:!0,responsive:!0,legend:{display:!1}};return P(o.a.Fragment,null,P("div",{style:{width:"100%",textAlign:"left",color:"rgba(44, 53, 66, 0.65)",fontWeight:600,fontSize:13,marginBottom:10}},s),P(M.Line,{data:d,options:f,width:1,height:1}),P("div",{style:{width:"100%",textAlign:"center",color:"rgba(44, 53, 66, 0.65)",fontWeight:600}},"Week"),P("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",marginTop:20}},P("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},P("div",{style:{borderRadius:3,borderBottom:"2px solid #0F4C8F",width:15,marginRight:4}})," ",P("span",{style:{color:"#0F4C8F",fontWeight:500,fontSize:11,marginRight:8}},"Your Practice")),P("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},P("div",{style:{borderRadius:3,borderBottom:"2px solid #00AC5A",width:15,marginRight:4}})," ",P("span",{style:{color:"#00AC5A",fontWeight:500,fontSize:11}},null===d||void 0===d||null===(l=d.datasets[1])||void 0===l?void 0:l.label))))},z=o.a.createElement,L=Object(u.a)((function(e){return{root:{padding:"20px 0px",width:"100%",borderTop:"2px solid rgba(228, 228, 228, 0.4)",marginTop:20},mobileRoot:{padding:"20px 0px",width:"100%",overflowX:"auto"},skillContainerMobile:{flexWrap:"nowrap",overflowX:"auto"},skillBox:{padding:"10px 0px",width:75,border:"1px solid #E5E5E5",marginRight:15,cursor:"pointer",background:"transparent",outline:"none"},suggestedText:{color:"#808080",fontSize:16,fontWeight:500,marginTop:20},skillTitle:{color:"#303030",fontSize:14,fontWeight:600,marginTop:30},innerGraphContainer:{border:"1px solid #D7D7D7",width:"100%",padding:20},graphContainer:{marginTop:30},activeTab:{border:"1px solid #0F4C8F",color:e.palette.primary.main,fontWeight:600,backgroundColor:"rgba(15, 76, 143, 0.07)"}}})),N={"Read Loud":"ReadAloud","Describes Images":"DescribeImage","Repeat Sentence":"RepeatSentence","Re-tell Lecture":"RetellLecture","Answer short question":"AnswerShortQuestion","Sumarize writen text":"SummarizeWrittenText","Write essay":"WriteEssay","Write email":"WriteEmail","R: Multiple-choice, choose single answer":"ReadingMultipleChoiceSingleAnswer","R: Multiple-choice, choose multiple answer":"ReadingMultipleChoiceMultipleAnswer","Re-order paragraphs":"ReorderParagraph","Reading : Fill in the blanks":"ReadingFillInTheBlanks","Reading & writing : Fill in the blanks":"ReadingAndWritingFillInTheBlanks","Sumarize spoken text":"SummarizeSpokenText","L: Multiple-choice, choose single answer":"ListeningMultipleChoiceSingleAnswer","L: Multiple-choice, choose multiple answer":"ListeningMultipleChoiceMultipleAnswer","Fill in the blanks":"ListeningFillInTheBlanks","Highlight incorrect words":"HighlightIncorrectWords","Highlight correct summary":"HighlightCorrectSummary","Select missing words":"SelectMissingWord","Write from dictation":"WriteFromDictation"},B=function(e){var t,n=e.week,a=L(),i=Object(p.d)(),c=Object(r.useState)("Speaking"),u=c[0],s=c[1],v=Object(r.useState)([]),b=v[0],g=v[1],m=Object(r.useState)(1),y=m[0],x=m[1],j=Object(p.e)((function(e){var t;
1return null===e||void 0===e||null===(t=e.analytic)||void 0===t?void 0:t.practiceProgress}))||{},w=Object(p.e)((function(e){var t;return null===e||void 0===e||null===(t=e.questions)||void 0===t?void 0:t.categorized}))||{},O=j&&(null===j||void 0===j?void 0:j.weeks)||{},k=Object(p.e)((function(e){var t;return null===e||void 0===e||null===(t=e.studyPlan)||void 0===t?void 0:t.studyPlan}))||{},C=k&&(null===k||void 0===k?void 0:k.Recommended)||{},S=null===k||void 0===k||null===(t=k.targets)||void 0===t?void 0:t.week,A=function(e,t){if(O&&!j.loading){var n=[0];return Object.keys(O).forEach((function(r,o){"accuracy"===t?n.push(parseInt(100*O[r][e][t],10)):n.push(parseInt(O[r][e][t],10))})),n}},_=function(){for(var e=[0],t=1;t<=n;t++)e.push("W".concat(t));return e},E=function(e){if(C&&C.length>0){var t=[],r="";Object.keys(C).forEach((function(t){N[C[t].qt]===e&&(r=parseInt(C[t].a/S,10))}));for(var o=0;o<=Number(n);o++)t.push(r);return t}},T=function(e){if(O){var t=[],r=[];Object.keys(O).forEach((function(n){O[n][e].accuracy>0&&t.push(O[n][e].accuracy)}));for(var o=t.length>0?parseInt(t.reduce((function(e,t){return e+t}),0)/t.length*100,10):0,a=0;a<=Number(n);a++)r.push(o);return r}};return Object(r.useEffect)((function(){if(u&&w&&O&&!j.loading&&C){var e=[];Object.keys(w[u]).forEach((function(t){e.push({title:w[u][t],countOptions:{labels:_(),datasets:[{label:"Your Practice",data:A(t,"count"),fill:!1,backgroundColor:"#0F4C8F",borderColor:"#0F4C8F",borderWidth:2},{label:"Avg Weekly Recommended Practice",data:E(t),fill:!1,backgroundColor:"#00AC5A",borderColor:"#00AC5A",pointStyle:"line",borderWidth:2}]},accuracyOptions:{labels:_(),datasets:[{label:"Your Practice",data:A(t,"accuracy"),fill:!1,backgroundColor:"#0F4C8F",borderColor:"#0F4C8F",borderWidth:2},{label:"Avg Accuracy",data:T(t),fill:!1,backgroundColor:"#00AC5A",borderColor:"#00AC5A",pointStyle:"line",borderWidth:2}]}})})),g(e)}}),[u,w,O,n]),Object(r.useEffect)((function(){i(Object(h.fetchPracticeProgressAction)({week:n,page:1,per_page:15})),i(Object(h.fetchStudyPlanAction)())}),[n]),z(o.a.Fragment,null,z(l.a,{className:a.root},z(l.a,{container:!0,direction:"row",justify:"flex-start",alignItems:"flex-start"},Object.keys(w).map((function(e){return z(l.a,{container:!0,item:!0,direction:"row",justify:"center",alignItems:"center",className:Object(f.default)(a.skillBox,Object(d.a)({},a.activeTab,u===e)),onClick:function(){s(e),x(1)},xs:2},e)}))),b.slice(3*(y-1),3*y).map((function(e){return z(o.a.Fragment,null,z(F.a,{variant:"subtitle1",className:a.skillTitle},e.title),z(l.a,{container:!0,spacing:3,justify:"space-between",alignItems:"center",className:a.graphContainer},z(l.a,{item:!0,lg:6,md:6,sm:12,xs:12},z(l.a,{container:!0,className:a.innerGraphContainer},z(W,{yTitle:"No. of Questions",data:e.countOptions}))),z(l.a,{item:!0,lg:6,md:6,sm:12,xs:12},z(l.a,{container:!0,className:a.innerGraphContainer},z(W,{yTitle:"Accuracy (%)",data:e.accuracyOptions})))))})),z(l.a,{container:!0,justify:"center",alignItems:"center",style:{marginTop:20}},z(I.a,{count:Math.round(b.length/3),color:"primary",onChange:function(e,t){x(t)},page:y}))))},D=n("2gEP"),H=n.n(D),G=o.a.createElement,Q=Object(u.a)((function(e){return{table:{width:"100%",marginTop:39,borderCollapse:"Collapse"},tableHeader:{"& th":{fontSize:14,fontWeight:600,color:"#797979",cursor:"pointer",padding:"5px 10px","&:first-child":{textAlign:"left",cursor:"text"},"&:last-child":{cursor:"text"}}},tableBody:{"& td":{fontSize:15,fontWeight:600,textAlign:"center",padding:"15px 26px","&:first-child":{textAlign:"left",display:"flex",alignItems:"center",paddingBottom:21}}},coloredCell:{backgroundColor:"#E5E5E5"},typeBadge:{color:"#0F4C8F",backgroundColor:"rgba(15, 76, 143, 0.1);",fontWeight:600,padding:"3px 8px",fontSize:12,borderRadius:3}}})),q=function(){var e,t,n=Q(),a=Object(p.d)(),i=Object(r.useState)(1),c=i[0],u=i[1],s=Object(p.e)((function(e){var t;return null===e||void 0===e||null===(t=e.analytic)||void 0===t?void 0:t.mockTests}))||{},d=Array.isArray(null===s||void 0===s?void 0:s.data)?s.data:[],f=Object(p.e)((function(e){var t;return null===e||void 0===e||null===(t=e.studyPlan)||void 0===t?void 0:t.studyPlan}))||{},v=null===f||void 0===f?void 0:f.targets,b=function(e){return e?e<10?10:e.toFixed(0):"-"};return Object(r.useEffect)((function(){a(Object(h.fetchMockTestsAction)({page:c,per_page:3})),a(Object(h.fetchMockTestsAccuracyAction)({page:c,per_page:3})),a(Object(h.fetchStudyPlanAction)())}),[c]),G(o.a.Fragment,null,G(l.a,{style:{overflowX:"auto"}},G("table",{className:n.table},G("thead",{className:n.tableHeader},G("tr",null,G("th",null,"Communicative Skills"),G("th",null,"Target"),d.map((function(e){return G("th",null,G("div",null,G("div",null,e.name),G("div",{style:{color:"#0F4C8F",fontSize:12}}
1,H()(e.created_at).format("Do MMM, YYYY"))))})))),G("tbody",{className:n.tableBody},G("tr",{className:n.coloredCell},G("td",null,"Listening"),G("td",null,(null===v||void 0===v?void 0:v.target_l)||"-"),d.map((function(e){var t,n;return G("td",null,b(null===e||void 0===e||null===(t=e.scores)||void 0===t||null===(n=t.all)||void 0===n?void 0:n.score_listening))}))),G("tr",null,G("td",null,"Reading"),G("td",null,(null===v||void 0===v?void 0:v.target_r)||"-"),d.map((function(e){var t,n;return G("td",null,b(null===e||void 0===e||null===(t=e.scores)||void 0===t||null===(n=t.all)||void 0===n?void 0:n.score_reading))}))),G("tr",{className:n.coloredCell},G("td",null,"Speaking"),G("td",null,(null===v||void 0===v?void 0:v.target_s)||"-"),d.map((function(e){var t,n;return G("td",null,b(null===e||void 0===e||null===(t=e.scores)||void 0===t||null===(n=t.all)||void 0===n?void 0:n.score_speaking))}))),G("tr",null,G("td",null,"Writing"),G("td",null,(null===v||void 0===v?void 0:v.target_w)||"-"),d.map((function(e){var t,n;return G("td",null,b(null===e||void 0===e||null===(t=e.scores)||void 0===t||null===(n=t.all)||void 0===n?void 0:n.score_writing))})))),G("thead",{className:n.tableHeader},G("tr",null,G("th",null,"Communicative Skills"),G("th",null,"Target"),d.map((function(e){return G("th",null,G("div",null,G("div",null,e.name),G("div",{style:{color:"#0F4C8F",fontSize:12}},H()(e.created_at).format("Do MMM, YYYY"))))})))),G("tbody",{className:n.tableBody},G("tr",{className:n.coloredCell},G("td",null,"Grammar"),G("td",null,(null===v||void 0===v?void 0:v.grammar)||"-"),d.map((function(e){var t,n;return G("td",null,b(null===e||void 0===e||null===(t=e.scores)||void 0===t||null===(n=t.all)||void 0===n?void 0:n.score_grammar))}))),G("tr",null,G("td",null,"Oral Fluency"),G("td",null,(null===v||void 0===v?void 0:v.fluency)||"-"),d.map((function(e){var t,n;return G("td",null,b(null===e||void 0===e||null===(t=e.scores)||void 0===t||null===(n=t.all)||void 0===n?void 0:n.score_oral_fluency))}))),G("tr",{className:n.coloredCell},G("td",null,"Pronunciation"),G("td",null,(null===v||void 0===v?void 0:v.pronunciation)||"-"),d.map((function(e){var t,n;return G("td",null,b(null===e||void 0===e||null===(t=e.scores)||void 0===t||null===(n=t.all)||void 0===n?void 0:n.score_pronunciation))}))),G("tr",null,G("td",null,"Spelling"),G("td",null,(null===v||void 0===v?void 0:v.spelling)||"-"),d.map((function(e){var t,n;return G("td",null,b(null===e||void 0===e||null===(t=e.scores)||void 0===t||null===(n=t.all)||void 0===n?void 0:n.score_spelling))}))),G("tr",{className:n.coloredCell},G("td",null,"Vocabulary"),G("td",null,(null===v||void 0===v?void 0:v.vocabulary)||"-"),d.map((function(e){var t,n;return G("td",null,b(null===e||void 0===e||null===(t=e.scores)||void 0===t||null===(n=t.all)||void 0===n?void 0:n.score_vocabulary))}))),G("tr",null,G("td",null,"Written Discourse"),G("td",null,(null===v||void 0===v?void 0:v.discourse)||"-"),d.map((function(e){var t,n;return G("td",null,b(null===e||void 0===e||null===(t=e.scores)||void 0===t||null===(n=t.all)||void 0===n?void 0:n.score_written_discourse))})))))),G(l.a,{container:!0,justify:"center",alignItems:"center"},G(I.a,{count:(null===s||void 0===s||null===(e=s.meta)||void 0===e||null===(t=e.pagination)||void 0===t?void 0:t.total_pages)||1,color:"primary",onChange:function(e,t){return u(t)}})))},Z=n("RHl7"),Y=n("hlA/"),J=n("1iPU"),U=n("nsNp"),X=n("oJbo"),V=n("O/3r"),K=n("7wwr"),$=n("XyWS"),ee=o.a.createElement;function te(e,t,n,r){return{name:e,average:t,Last2MT:n,LastMT:r}}var ne=[te("Repeat Sentence",305,3.7,67),te("Describe Image",452,25,51),te("Retell Lecture",262,16,24),te("Answer Short Question",159,6,24),te("Write Essay",356,16,49),te("Summarize Written Text",408,3.2,87),te("Read Aloud",237,9,37),te("Choose Single Answer",375,0,94),te("Choose Multiple Answers",518,26,65),te("Re-Order Paragraphs",392,.2,98),te("Fill in the Blanks",318,0,81),te("R.W: Fill in the Blanks",360,19,9),te("Choose Multiple Answers ",437,18,63)];function re(e,t,n){return parseInt(t[n],10)<parseInt(e[n],10)?-1:t[n]>e[n]?1:0}var oe=[{id:"name",numeric:!1,disablePadding:!0,label:"Cummunicative Skills"},{id:"average",numeric:!0,disablePadding:!1,label:"Average"},{id:"Last2MT",numeric:!0,disablePadding:!1,label:"Last 2 MT"},{id:"LastMT",numeric:!0,disablePadding:!1,label:"Last MT"}];function ae(e){var t=e.classes,n=(e.onSelectAllClick,e.order),r=e.orderBy,o=(e.numSelected,e.rowCount,e.onRequestSort);return ee(V.a,null,ee(K.a,null,oe.map((function(e){return ee(U.a,{key:e.id,align:e.numeric?"center":"left",style:{width:e.numeric?"25%":"15%",color:"#797979",fontWeight:600},padding:e.disablePadding?"none":"default",sortDirection:r===e.id&&n},ee($.a,{active:r===e.id,direction:r===e.id?n:"asc",onClick:(a=e.id,function(e){o(e,a)})},e.label,r===e.id?ee("span",{className:t.visuallyHidden},"desc"===n?"sorted descending":"sorted ascending"):null));var a}))))}var ie=Object(u.a)((function(e){return{root:{width:"100%",marginTop:40},paper:{width:"100%",marginBottom:e.spacing(2)},table:{minWidth:750},visuallyHidden:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1},tabelCell:{color:"black",fontWeight:600},typeBadg:{color:"#0F4C8F",backgroundColor:"rgba(15, 76, 143, 0.1);",fontWeight:600,padding:"3px 8px",fontSize:12,borderRadius:3}}}));function ce(e){var t=e.data,n=ie(),r=o.a.useState("asc"),a=Object(Z.a)(r,2),i=a[0],l=a[1],u=o.a.useState("calories"),s=Object(Z.a)(u,2),d=s[0],f=s[1],p=o.a.useState([]),h=Object(Z.a)(p,2),v=h[0],b=(h[1],o.a.useState(0)),g=Object(Z.a)(b,2),m=g[0],y=(g[1],o.a.useState(!1)),x=Object(Z.a)(y,2),j=x[0],w=(x[1],o.a.useState(5)),O=Object(Z.a)(w,2),k=O[0],C=(O[1],k-Math.min(k,ne.length-m*k));return ee("div",{className:n.root},ee(c.a,{className:n.paper,elevation:0},ee(X.a,null,ee(Y.a,{className:n.table,"aria-labelledby":"tableTitle",size:j?"small":"medium","aria-label":"enhanced table"},ee(ae,{classes:n,numSelected:v.length,order:i,orderBy:d,onRequestSort:function(e,t){l(d===t&&"asc"===i?"desc":"asc"),f(t)},rowCount:ne.length}),ee(J.a,null,function(e,t){var n=e.map((function(e,t){return[e,t]}));return n.sort((function(e,n){var r=t(e[0],n[0]);return 0!==r?r:e[1]-n[1]})),n.map((function(e){return e[0]}))}(t,function(e,t){return"desc"===e?function(e,n){return re(e,n,t)}:function(e,n){return-re(e,n,t)}}
1(i,d)).map((function(e,t){var r,o=(r=e.name,-1!==v.indexOf(r)),a="enhanced-table-checkbox-".concat(t);return ee(K.a,{hover:!0,role:"checkbox","aria-checked":o,tabIndex:-1,key:e.name,selected:o},ee(U.a,{align:"left",id:a,className:n.tabelCell,scope:"row",padding:"none",style:{width:"35%",backgroundColor:t%2==0?"#E5E5E5":"#fff",paddingLeft:10}},e.title," ",ee("span",{className:n.typeBadg},e.skill)),ee(U.a,{align:"center",style:{width:"15%",backgroundColor:t%2==0?"#E5E5E5":"#fff"},className:n.tabelCell},e.average),ee(U.a,{align:"center",style:{width:"15%",backgroundColor:t%2==0?"#E5E5E5":"#fff"},className:n.tabelCell},e.Last2MT),ee(U.a,{align:"center",style:{width:"15%",backgroundColor:t%2==0?"#E5E5E5":"#fff"},className:n.tabelCell},e.LastMT))})),C>0&&ee(K.a,{style:{height:(j?33:53)*C}},ee(U.a,{colSpan:6})))))))}var le=n("bxQA"),ue=o.a.createElement,se=Object(u.a)((function(e){return{tabRoot:{fontSize:17,color:"#808080 !important",fontWeight:500},tabSelected:{fontSize:"17px",fontWeight:"700 !important",color:"".concat(e.palette.primary.main," !important")},weekSelect:{width:"120px",height:"39px",color:"#767676",fontSize:"17px",fontWeight:600,background:"#F4F4F4",border:"none",outline:"none",borderRadius:5},subTabContainer:{marginTop:25},subTab:{border:"1px solid #E5E5E5",marginRight:15,cursor:"pointer",maxWidth:"97px",padding:"13px 20px",fontSize:14,fontWeight:600,background:"#fff",outline:"none",display:"flex",alignItems:"center",justifyContent:"center"},activeSubTab:{fontSize:"17px",fontWeight:700,color:"".concat(e.palette.primary.main," !important"),borderBottom:"3px solid #0F4C8F"}}})),de=function(e){var t=e.useragent,n=se(),a=Object(p.d)(),i=Object(r.useState)(0),c=i[0],u=i[1],s=Object(r.useState)(0),v=s[0],b=s[1],g=Object(r.useState)(1),m=g[0],x=g[1],w=Object(r.useState)([]),O=w[0],k=w[1],C=Object(p.e)((function(e){var t;return null===e||void 0===e||null===(t=e.analytic)||void 0===t?void 0:t.mockTests}))||{},S=null===C||void 0===C?void 0:C.data,A=Object(p.e)((function(e){var t;return null===e||void 0===e||null===(t=e.analytic)||void 0===t?void 0:t.mockTestsAccuracy}))||{},_=Object(p.e)((function(e){var t;return null===e||void 0===e||null===(t=e.questions)||void 0===t?void 0:t.categorized}))||{};return Object(r.useEffect)((function(){var e=Object(le.buildMockAccuracyItemsFromMocks)(S,_);if(e.length>0)k(e);else{var t=Object(le.buildMockAccuracyItems)(A,_);k(t)}}),[S,A,_]),Object(r.useEffect)((function(){a(Object(h.fetchMockTestsAction)({page:1,per_page:4})),a(Object(h.fetchMockTestsAccuracyAction)({page:1,per_page:4})),a(Object(h.fetchStudyPlanAction)())}),[]),ue(o.a.Fragment,null,ue(l.a,{container:!0,justify:"space-between"},ue(l.a,{item:!0,xs:6},ue(j,{value:c,onChange:function(e,t){u(t),x(1)},indicatorColor:"primary",textColor:"primary"},ue(y,{label:"Practice Questions",classes:{root:n.tabRoot,selected:n.tabSelected}}),ue(y,{label:"Mock Tests",classes:{root:n.tabRoot,selected:n.tabSelected}}))),0===c&&ue(l.a,{container:!0,item:!0,xs:6,justify:"flex-end"},ue("select",{name:"weeks",id:"weeks",className:n.weekSelect,value:m,onChange:function(e){x(e.target.value)}},function(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n}(1,26).map((function(e){return ue("option",{value:e},"".concat(e,1===e?" week":" weeks"))}))))),0===c?ue(l.a,{container:!0,justify:"flex-start",alignItems:"flex-start",className:n.subTabContainer},ue("button",{type:"button",className:Object(f.default)(n.subTab,Object(d.a)({},n.activeSubTab,0===v)),onClick:function(){return b(0)}},"Table"),ue("button",{type:"button",className:Object(f.default)(n.subTab,Object(d.a)({},n.activeSubTab,1===v)),onClick:function(){return b(1)}},"Graph")):ue(l.a,{container:!0,justify:"flex-start",alignItems:"flex-start",className:n.subTabContainer},ue("button",{type:"button",className:Object(f.default)(n.subTab,Object(d.a)({},n.activeSubTab,0===v)),onClick:function(){return b(0)}},"Results"),ue("button",{type:"button",className:Object(f.default)(n.subTab,Object(d.a)({},n.activeSubTab,1===v)),onClick:function(){return b(1)}},"Accuracy")),ue("div",null,0===c&&0===v?ue(R,{week:m}):0===c&&1===v?ue(B,{useragent:t,week:m,isInDashboard:!1}):1===c&&0===v?ue(q,{useragent:t,data:S}):1===c&&1===v?ue(ce,{data:O}):void 0))};de.defaultProps={useragent:{}};var fe=de,pe=o.a.createElement,he=Object(u.a)((function(e){return{table:{width:"100%",marginTop:39},tableHeader:{"& th":{fontSize:14,fontWeight:600,color:"#797979",cursor:"pointer",padding:"5px 10px","&:first-child":{textAlign:"left",cursor:"text",position:"sticky",left:0,zIndex:10,backgroundColor:"#fff"},"&:last-child":{cursor:"text"}}},tableBody:{"& td":{fontSize:15,fontWeight:600,textAlign:"center",padding:"15px 10px",zIndex:0,"&:first-child":{textAlign:"left",display:"flex",alignItems:"center",paddingBottom:21,position:"sticky",left:0,zIndex:10,backgroundColor:"#fff"}}},coloredCell:{backgroundColor:"#E5E5E5 !important"},typeBadge:{color:"#0F4C8F",backgroundColor:"rgba(15, 76, 143, 0.1);",fontWeight:600,padding:"3px 8px",fontSize:12,borderRadius:3}}}
1)),ve={"Read Loud":"ReadAloud","Describes Images":"DescribeImage","Repeat Sentence":"RepeatSentence","Re-tell Lecture":"RetellLecture","Answer short question":"AnswerShortQuestion","Sumarize writen text":"SummarizeWrittenText","Write essay":"WriteEssay","Write email":"WriteEmail","R: Multiple-choice, choose single answer":"ReadingMultipleChoiceSingleAnswer","R: Multiple-choice, choose multiple answer":"ReadingMultipleChoiceMultipleAnswer","Re-order paragraphs":"ReorderParagraph","Reading : Fill in the blanks":"ReadingFillInTheBlanks","Reading & writing : Fill in the blanks":"ReadingAndWritingFillInTheBlanks","Sumarize spoken text":"SummarizeSpokenText","L: Multiple-choice, choose single answer":"ListeningMultipleChoiceSingleAnswer","L: Multiple-choice, choose multiple answer":"ListeningMultipleChoiceMultipleAnswer","Fill in the blanks":"ListeningFillInTheBlanks","Highlight incorrect words":"HighlightIncorrectWords","Highlight correct summary":"HighlightCorrectSummary","Select missing words":"SelectMissingWord","Write from dictation":"WriteFromDictation"},be=function(e,t,n){return parseInt(t[n],10)<parseInt(e[n],10)?-1:parseInt(t[n],10)>parseInt(e[n],10)?1:0},ge=function(e){var t,n,a=e.week,i=he(),c=Object(p.d)(),u=Object(r.useState)([]),s=u[0],v=u[1],b=o.a.useState("asc"),g=Object(Z.a)(b,2),m=g[0],y=g[1],x=o.a.useState("calories"),j=Object(Z.a)(x,2),S=j[0],A=j[1],_=Object(p.e)((function(e){var t;return null===e||void 0===e||null===(t=e.analytic)||void 0===t?void 0:t.practiceProgress}))||{},E=Object(p.e)((function(e){var t;return null===e||void 0===e||null===(t=e.questions)||void 0===t?void 0:t.categorized}))||{},T=Object(p.e)((function(e){var t;return null===e||void 0===e||null===(t=e.studyPlan)||void 0===t?void 0:t.studyPlan}))||{},R=null===T||void 0===T?void 0:T.Recommended,F=null===T||void 0===T||null===(t=T.targets)||void 0===t?void 0:t.week,I=function(e){y(S===e&&"asc"===m?"desc":"asc"),A(e)},M=function(e){if(E&&e){var t="";
1return Object.keys(E).forEach((function(n){Object.keys(E[n]).forEach((function(r){r===e&&(t=E[n][r])}))})),t}},P=function(e){if(E&&e){var t="";return Object.keys(E).forEach((function(n){Object.keys(E[n]).forEach((function(r){r===e&&(t=n)}))})),t}},W=function(e){if(T&&R&&e){var t="";return Object.keys(R).forEach((function(n){ve[R[n].qt]===e&&(t=(R[n].a/F*a).toFixed(0))})),t}};return Object(r.useEffect)((function(){var e=[];if(_&&R){var t=_.weeks,n=(_.last_10,{}),r={};t&&Object.keys(t).forEach((function(o){Object.keys(t[o]).forEach((function(i){n[i]?n[i]+=t[o][i].count:n[i]=t[o][i].count,r[i]?r[i]+=t[o][i].accuracy:r[i]=t[o][i].accuracy,e.push({type:i,advice:W(i),skill:P(i),title:M(i),practiced:n[i].toFixed(0),cumulativeAccuracy:(r[i]/a*100).toFixed(0),accuracy:(100*t[a][i].accuracy).toFixed(0)})}))}))}v(e)}),[_,R]),Object(r.useEffect)((function(){c(Object(h.fetchPracticeProgressAction)({week:a,page:1,per_page:15})),c(Object(h.fetchStudyPlanAction)())}),[a]),pe(l.a,{style:{overflowX:"auto"}},pe("table",{className:i.table},pe("thead",{className:i.tableHeader},pe("tr",null,pe("th",null,"Question Type"),pe("th",{onClick:function(){return I("advice")}},"Advice",pe("br",null),"(No. of Questions)","advice"===S&&pe(o.a.Fragment,null,pe(C.a,"desc"===m?{color:"#797979"}:{style:{transform:"rotate(180deg)"},color:"#797979"}))),pe("th",{onClick:function(){return I("practiced")}},"You",pe("br",null)," Practiced","practiced"===S&&pe(o.a.Fragment,null,pe(C.a,"desc"===m?{color:"#797979"}:{style:{transform:"rotate(180deg)"},color:"#797979"}))),pe("th",{onClick:function(){return I("accuracy")}},"Cummulative",pe("br",null)," Accuracy (%)","accuracy"===S&&pe(o.a.Fragment,null,pe(C.a,"desc"===m?{color:"#797979"}:{style:{transform:"rotate(180deg)"},color:"#797979"}))),pe("th",{onClick:function(){return I("accuracyLast10")}},"Accuracy(%)","accuracyLast10"===S&&pe(o.a.Fragment,null,pe(C.a,"desc"===m?{color:"#797979"}:{style:{transform:"rotate(180deg)"},color:"#797979"}))),pe("th",null,"Progress"))),pe("tbody",{className:i.tableBody},s&&(null===(n=function(e,t){var n=null===e||void 0===e?void 0:e.map((function(e,t){return[e,t]}));return null===n||void 0===n||n.sort((function(e,n){var r=t(e[0],n[0]);return 0!==r?r:e[1]-n[1]})),null===n||void 0===n?void 0:n.map((function(e){return e[0]}))}(Object(w.b)(s),function(e,t){return"desc"===e?function(e,n){return be(e,n,t)}:function(e,n){return-be(e,n,t)}}(m,S)))||void 0===n?void 0:n.map((function(e,t){return pe("tr",{key:t},pe("td",{className:Object(f.default)(Object(d.a)({},i.coloredCell,t%2===0))},e.title," ",pe("span",{className:i.typeBadge},e.skill.substring(0,1))),pe("td",{className:Object(f.default)(Object(d.a)({},i.coloredCell,t%2===0))},e.advice),pe("td",{className:Object(f.default)(Object(d.a)({},i.coloredCell,t%2===0))},e.practiced),pe("td",{className:Object(f.default)(Object(d.a)({},i.coloredCell,t%2===0))},e.accuracy),pe("td",{className:Object(f.default)(Object(d.a)({},i.coloredCell,t%2===0))},e.accuracyLast10),pe("td",{className:Object(f.default)(Object(d.a)({},i.coloredCell,t%2===0))},e.practiced>0&&e.cumulativeAccuracy<e.accuracy&&pe(k.a,{color:"green"}),e.practiced>0&&e.cumulativeAccuracy>e.accuracy&&pe(O.a,{color:"red"}),e.practiced>0&&e.cumulativeAccuracy===e.accuracy&&"=",0==e.practiced&&"N/A"))}))))))};ge.defaultProps={week:1};var me=ge,ye=n("Cw3s"),xe=n("fx5b"),je=o.a.createElement,we=function(e){var t=e.yTitle,n=void 0===t?"":t,r=e.data;return je(o.a.Fragment,null,je("div",{style:{width:"100%",textAlign:"left",color:"rgba(44, 53, 66, 0.65)",fontWeight:600,fontSize:13,marginBottom:10}},n),je(M.Line,{data:r,options:{scales:{yAxes:[{ticks:{beginAtZero:!0,max:100,stepSize:20,backdropPaddingX:2},type:"linear",display:!0,position:"left",id:"y-axis-1"}]},maintainAspectRatio:!0,responsive:!0,legend:{display:!1}},width:1,height:1}),je("div",{style:{width:"100%",textAlign:"center",color:"rgba(44, 53, 66, 0.65)",fontWeight:600}},"Week"),je("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",marginTop:20}},je("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}}
1,je("div",{style:{borderRadius:3,borderBottom:"2px solid #0F4C8F",width:15,marginRight:4}})," ",je("span",{style:{color:"#0F4C8F",fontWeight:500,fontSize:11,marginRight:8}},"Your Practice")),je("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},je("div",{style:{borderRadius:3,borderBottom:"2px solid #00AC5A",width:15,marginRight:4}})," ",je("span",{style:{color:"#00AC5A",fontWeight:500,fontSize:11}},"Avg Weekly Recommended Practice"))))},Oe=o.a.createElement,ke=Object(u.a)((function(e){return{root:{padding:"20px 0px",width:"100%",borderTop:"2px solid rgba(228, 228, 228, 0.4)",marginTop:20},mobileRoot:{padding:"20px 0px",width:"100%",overflowX:"auto"},skillContainerMobile:{flexWrap:"nowrap",overflowX:"auto"},skillBox:{display:"flex",justifyContent:"center",alignItems:"center",padding:"10px 0px",width:75,border:"1px solid #E5E5E5",marginRight:15,cursor:"pointer",background:"transparent",outline:"none"},suggestedText:{color:"#808080",fontSize:16,fontWeight:500,marginTop:20},skillTitle:{color:"#303030",fontSize:14,fontWeight:600,marginTop:30},innerGraphContainer:{border:"1px solid #D7D7D7",width:"100%",padding:20,marginTop:36},graphContainer:{marginTop:0},activeTab:{border:"1px solid #0F4C8F",color:"#0F4C8F",fontWeight:600,backgroundColor:"rgba(15, 76, 143, 0.07)"}}})),Ce={"Read Loud":"ReadAloud","Describe Image":"DescribeImage","Repeat Sentence":"RepeatSentence","Re-tell Lecture":"RetellLecture","Answer short question":"AnswerShortQuestion","Sumarize writen text":"SummarizeWrittenText","Write essay":"WriteEssay","Write email":"WriteEmail","R: Multiple-choice, choose single answer":"ReadingMultipleChoiceSingleAnswer","R: Multiple-choice, choose multiple answer":"ReadingMultipleChoiceMultipleAnswer","Re-order paragraphs":"ReorderParagraph","Reading : Fill in the blanks":"ReadingFillInTheBlanks","Reading & writing : Fill in the blanks":"ReadingAndWritingFillInTheBlanks","Sumarize spoken text":"SummarizeSpokenText","L: Multiple-choice, choose single answer":"ListeningMultipleChoiceSingleAnswer","L: Multiple-choice, choose multiple answer":"ListeningMultipleChoiceMultipleAnswer","Fill in the blanks":"ListeningFillInTheBlanks","Highlight incorrect words":"HighlightIncorrectWords","Highlight correct summary":"HighlightCorrectSummary","Select missing words":"SelectMissingWord","Write from dictation":"WriteFromDictation"},Se=function(e){var t,n=e.week,a=ke(),i=Object(p.d)(),c=Object(r.useState)(null),u=c[0],s=c[1],v=Object(r.useState)({}),b=v[0],g=v[1],m=Object(r.useState)("Speaking"),y=m[0],x=m[1],j=Object(r.useState)("Read Aloud"),w=j[0],O=j[1],k=Object(r.useState)([]),C=k[0],S=k[1],A=Object(r.useState)("Speaking"),_=A[0],E=A[1],T=Object(p.e)((function(e){var t;return null===e||void 0===e||null===(t=e.analytic)||void 0===t?void 0:t.practiceProgress}))||{},R=Object(p.e)((function(e){var t;return null===e||void 0===e||null===(t=e.questions)||void 0===t?void 0:t.categorized}))||{},I=T&&T.weeks||{},M=Object(p.e)((function(e){var t;return null===e||void 0===e||null===(t=e.studyPlan)||void 0===t?void 0:t.studyPlan}))||{},P=M&&M.Recommended||{},W=null===M||void 0===M||null===(t=M.targets)||void 0===t?void 0:t.week,z=function(){s(null)},L=function(e,t){if(I&&!T.loading){var n=[0];return Object.keys(I).forEach((function(r,o){"accuracy"===t?n.push(parseInt(100*I[r][e][t],10)):n.push(n[o]+parseInt(I[r][e][t],10))})),n}},N=function(){for(var e=[0],t=1;t<=n;t++)e.push("W".concat(t));return e},B=function(e){if(P&&P.length>0){var t=[],r="";Object.keys(P).forEach((function(t){Ce[P[t].qt]===e&&(r=parseInt(P[t].a/W*n,10))}));for(var o=0;o<=Number(n);o++)t.push(r);return t}},D=function(e){if(I){var t=[],r=[];Object.keys(I).forEach((function(n){I[n][e].accuracy>0&&t.push(I[n][e].accuracy)}));for(var o=t.length>0?parseInt(t.reduce((function(e,t){return e+t}),0)/t.length*100,10):0,a=0;a<=Number(n);a++)r.push(o);return r}};return Object(r.useEffect)((function(){if(y&&R&&I&&!T.loading&&P){var e=[];Object.keys(R[y]).forEach((function(t){e.push({title:R[y][t],countOptions:{labels:N(),datasets:[{label:"Your Practice",data:L(t,"count"),fill:!1,backgroundColor:"#0F4C8F",borderColor:"#0F4C8F",borderWidth:2},{label:"Avg Weekly Recommended Practice",data:B(t),fill:!1,backgroundColor:"#00AC5A",borderColor:"#00AC5A",pointStyle:"line",borderWidth:2}]},accuracyOptions:{labels:N(),datasets:[{label:"Your Practice",data:L(t,"accuracy"),fill:!1,backgroundColor:"#0F4C8F",borderColor:"#0F4C8F",borderWidth:2},{label:"Avg Accuracy",data:D(t),fill:!1,backgroundColor:"#00AC5A",borderColor:"#00AC5A",pointStyle:"line",borderWidth:2}]}})})),S(e)}}),[y,R,I,n]),Object(r.useEffect)((function(){i(Object(h.fetchPracticeProgressAction)({week:n,page:1,per_page:15})),i(Object(h.fetchStudyPlanAction)())}),[n]),Oe(o.a.Fragment,null,Oe(l.a,{className:a.root},Oe(l.a,{container:!0,justify:"flex-start",alignItems:"flex-start"},Object.keys(R).map((function(e){return Oe(l.a,{item:!0,xs:3,spacing:2},Oe("div",{"aria-controls":"".concat(e,"-menu"),"aria-haspopup":"true",className:Object(f.default)(a.skillBox,Object(d.a)({},a.activeTab,y===e)),onClick:function(t){return function(e,t){s(e.currentTarget),g(R[t]),E(t)}(t,e)}}
1,e),Oe(ye.a,{id:"".concat(e,"-menu"),anchorEl:u,keepMounted:!0,open:Boolean(u),onClose:z},Object.keys(b).map((function(e){return Oe(xe.a,{onClick:function(){return t=b[e],x(_),O(t),void s(null);var t}},b[e])}))))}))),C.filter((function(e){return e.title===w})).map((function(e){return Oe(o.a.Fragment,null,Oe(F.a,{variant:"subtitle1",className:a.skillTitle},e.title),Oe(l.a,{container:!0,justify:"space-between",alignItems:"center",className:a.graphContainer},Oe(l.a,{container:!0,item:!0,xs:12,lg:6,className:a.innerGraphContainer},Oe(we,{yTitle:"No. of Questions",data:e.countOptions})),Oe(l.a,{container:!0,item:!0,xs:12,lg:6,className:a.innerGraphContainer},Oe(we,{yTitle:"Accuracy (%)",data:e.accuracyOptions}))))}))))},Ae=o.a.createElement,_e=Object(u.a)((function(e){return{tabRoot:{fontSize:17,color:"#808080 !important",fontWeight:500},tabSelected:{fontSize:"17px",fontWeight:"700 !important",color:"".concat(e.palette.primary.main," !important")},weekSelect:{width:"120px",height:"39px",color:"#767676",fontSize:"17px",fontWeight:600,background:"#F4F4F4",border:"none",outline:"none",borderRadius:5},subTabContainer:{marginTop:25},subTab:{border:"1px solid #E5E5E5",marginRight:15,cursor:"pointer",maxWidth:"97px",padding:"13px 20px",fontSize:14,fontWeight:600,background:"#fff",outline:"none",display:"flex",alignItems:"center",justifyContent:"center"},activeSubTab:{fontSize:"17px",fontWeight:700,color:"".concat(e.palette.primary.main," !important"),borderBottom:"3px solid #0F4C8F"}}})),Ee=function(e){var t=e.useragent,n=_e(),a=Object(p.d)(),i=Object(r.useState)(0),c=i[0],u=i[1],s=Object(r.useState)(0),v=s[0],b=s[1],g=Object(r.useState)(1),m=g[0],x=g[1],w=Object(r.useState)([]),O=w[0],k=w[1],C=Object(p.e)((function(e){var t;return null===e||void 0===e||null===(t=e.analytic)||void 0===t?void 0:t.mockTests}))||{},S=null===C||void 0===C?void 0:C.data,A=Object(p.e)((function(e){var t;return null===e||void 0===e||null===(t=e.analytic)||void 0===t?void 0:t.mockTestsAccuracy}))||{},_=Object(p.e)((function(e){var t;return null===e||void 0===e||null===(t=e.questions)||void 0===t?void 0:t.categorized}))||{};return Object(r.useEffect)((function(){var e=Object(le.buildMockAccuracyItemsFromMocks)(S,_);if(e.length>0)k(e);else{var t=Object(le.buildMockAccuracyItems)(A,_);k(t)}}),[S,A,_]),Object(r.useEffect)((function(){a(Object(h.fetchMockTestsAction)({page:1,per_page:4})),a(Object(h.fetchMockTestsAccuracyAction)({page:1,per_page:4})),a(Object(h.fetchStudyPlanAction)())}),[]),Ae(o.a.Fragment,null,Ae(l.a,{container:!0,justify:"space-between"},Ae(l.a,{item:!0,xs:12},Ae(j,{value:c,onChange:function(e,t){return u(t)},indicatorColor:"primary",textColor:"primary"},Ae(y,{label:"Practice Questions",classes:{root:n.tabRoot,selected:n.tabSelected}}),Ae(y,{label:"Mock Tests",classes:{root:n.tabRoot,selected:n.tabSelected}})))),0===c?Ae(l.a,{container:!0,justify:"space-between",alignItems:"flex-start",className:n.subTabContainer},Ae(l.a,{container:!0,item:!0,xs:8},Ae("button",{type:"button",className:Object(f.default)(n.subTab,Object(d.a)({},n.activeSubTab,0===v)),onClick:function(){return b(0)}},"Table"),Ae("button",{type:"button",className:Object(f.default)(n.subTab,Object(d.a)({},n.activeSubTab,1===v)),onClick:function(){return b(1)}},"Graph")),Ae(l.a,{item:!0,xs:4},Ae("select",{name:"weeks",id:"weeks",className:n.weekSelect,onChange:function(e){return x(e.target.value)}},function(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n}(1,26).map((function(e){return Ae("option",{value:e},"".concat(e,1===e?" week":" weeks"))}))))):Ae(l.a,{container:!0,justify:"flex-start",alignItems:"flex-start",className:n.subTabContainer},Ae("button",{type:"button",className:Object(f.default)(n.subTab,Object(d.a)({},n.activeSubTab,0===v)),onClick:function(){return b(0)}},"Results"),Ae("button",{type:"button",className:Object(f.default)(n.subTab,Object(d.a)({},n.activeSubTab,1===v)),onClick:function(){return b(1)}},"Accuracy")),Ae("div",null,0===c&&0===v?Ae(me,{week:m}):0===c&&1===v?Ae(Se,{useragent:t,week:m,isInDashboard:!1}):1===c&&0===v?Ae(q,{useragent:t,data:S}):1===c&&1===v?Ae(ce,{data:O}):void 0))};Ee.defaultProps={useragent:{}};var Te=Ee,Re=n("O4Jw"),Fe=o.a.createElement,Ie=Object(u.a)((function(e){return{ro:{borderTop:"3px solid #30F4C8F",padding:"58px 68px",width:"100%"},mobileRoot:{borderTop:"3px solid #30F4C8F",padding:"20px 15px",width:"100%"},headerLeft:{fontSize:20,color:"#0F4C8F",fontWeight:700},headerRight:{fontSize:"16px","& span":{fontWeight:"bold"}},headerRightMobile:{textAlign:"center",marginTop:40,width:"100%"},box:{background:"#F9F9F9",marginTop:"10px",padding:"50px 40px"},category:{fontSize:"16px",marginRight:"26px",cursor:"pointer"},activeCategory:{fontWeight:"bold",color:"#0F4C8F",textDecoration:"underline solid #0F4C8F 4px",textUnderlineOffset:"7px"}}})),Me=!0;t.default=Object(i.withUserAgent)((function(e){var t=e.useragent,n=Ie(),r=Object(a.a)().t;return Fe(Re.a,{title:"Analytics"},Fe(s.a,{t:r},Fe(c.a,{className:t.isMobile||t.isTablet?n.mobileRoot:n.ro},Fe(l.a,{container:!0,justify:"space-between"},Fe(l.a,{item:!0,className:n.headerLeft},"Analytics")),t.isDesktop?Fe(fe,{useragent:t,isInDashboard:!1}):Fe(Te,{useragent:t,isInDashboard:!1}))))}))},z578:function(e,t,n){var r=n("XrMh"),o=n("6m9v"),a=n("sMdj"),i=n("Iv0v");e.exports=function(e){return a(e)?r(i(e)):o(e)}},zpyt:function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},zvTh:function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}},[["VOpw",0,1,18,50,2,3,4,5,6,8,7,9,10,11,12,13,14,15,16,17,19,21,23,24,37]]]);
2//# sourceMappingURL=analytics-47ff0eb8f66bc64aa4bf.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.