Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 3.137.175.166
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
tdvsapp /
static /
js /
[ HOME SHELL ]
Name
Size
Permission
Action
0.0eb6c13f.chunk.js
27.08
KB
-rw-rw-r--
0.0eb6c13f.chunk.js.map
113.84
KB
-rw-rw-r--
0.2a8c8e14.chunk.js
27.08
KB
-rw-rw-r--
0.2a8c8e14.chunk.js.map
113.84
KB
-rw-rw-r--
1.02e3e9fa.chunk.js
36.12
KB
-rw-rw-r--
1.02e3e9fa.chunk.js.map
183.91
KB
-rw-rw-r--
1.5b25a566.chunk.js
36.12
KB
-rw-rw-r--
1.5b25a566.chunk.js.map
183.91
KB
-rw-rw-r--
10.4070e960.chunk.js
28.68
KB
-rw-rw-r--
10.4070e960.chunk.js.map
79.85
KB
-rw-rw-r--
10.a31b7e5b.chunk.js
36.5
KB
-rw-rw-r--
10.a31b7e5b.chunk.js.map
92.86
KB
-rw-rw-r--
11.1d23ce16.chunk.js
3.11
KB
-rw-rw-r--
11.1d23ce16.chunk.js.map
11.24
KB
-rw-rw-r--
11.acaee0aa.chunk.js
3.1
KB
-rw-rw-r--
11.acaee0aa.chunk.js.map
11.25
KB
-rw-rw-r--
12.4bd43931.chunk.js
10.07
KB
-rw-rw-r--
12.4bd43931.chunk.js.map
45.98
KB
-rw-rw-r--
12.d34d8c55.chunk.js
10.07
KB
-rw-rw-r--
12.d34d8c55.chunk.js.map
45.97
KB
-rw-rw-r--
13.0b93b679.chunk.js
11.87
KB
-rw-rw-r--
13.0b93b679.chunk.js.map
26.08
KB
-rw-rw-r--
13.89e27764.chunk.js
11.86
KB
-rw-rw-r--
13.89e27764.chunk.js.map
26.08
KB
-rw-rw-r--
14.2fd531d9.chunk.js
14.6
KB
-rw-rw-r--
14.2fd531d9.chunk.js.map
35.21
KB
-rw-rw-r--
14.cd7f09b1.chunk.js
14.6
KB
-rw-rw-r--
14.cd7f09b1.chunk.js.map
35.21
KB
-rw-rw-r--
15.12754be9.chunk.js
7.77
KB
-rw-rw-r--
15.12754be9.chunk.js.map
12.92
KB
-rw-rw-r--
15.cff866e5.chunk.js
7.77
KB
-rw-rw-r--
15.cff866e5.chunk.js.map
12.92
KB
-rw-rw-r--
16.45419109.chunk.js
532.24
KB
-rw-rw-r--
16.45419109.chunk.js.map
1.62
MB
-rw-rw-r--
16.7fd30f9c.chunk.js
532.23
KB
-rw-rw-r--
16.7fd30f9c.chunk.js.map
1.62
MB
-rw-rw-r--
17.554f74a4.chunk.js
24.25
KB
-rw-rw-r--
17.554f74a4.chunk.js.map
64.23
KB
-rw-rw-r--
17.bfc51017.chunk.js
24.23
KB
-rw-rw-r--
17.bfc51017.chunk.js.map
64.23
KB
-rw-rw-r--
18.41dde321.chunk.js
35.14
KB
-rw-rw-r--
18.41dde321.chunk.js.map
88.56
KB
-rw-rw-r--
18.a8287c74.chunk.js
35.15
KB
-rw-rw-r--
18.a8287c74.chunk.js.map
88.56
KB
-rw-rw-r--
19.75de75df.chunk.js
493.6
KB
-rw-rw-r--
19.75de75df.chunk.js.map
2.24
MB
-rw-rw-r--
19.7977b260.chunk.js
493.63
KB
-rw-rw-r--
19.7977b260.chunk.js.map
2.24
MB
-rw-rw-r--
2.03a0ba5f.chunk.js
29.97
KB
-rw-rw-r--
2.03a0ba5f.chunk.js.map
134.19
KB
-rw-rw-r--
2.e6d9f977.chunk.js
29.97
KB
-rw-rw-r--
2.e6d9f977.chunk.js.map
134.19
KB
-rw-rw-r--
20.58d47a8a.chunk.js
8.88
KB
-rw-rw-r--
20.58d47a8a.chunk.js.map
48.64
KB
-rw-rw-r--
20.675e319b.chunk.js
8.88
KB
-rw-rw-r--
20.675e319b.chunk.js.map
48.64
KB
-rw-rw-r--
21.20cd6cbb.chunk.js
54.23
KB
-rw-rw-r--
21.20cd6cbb.chunk.js.map
168.02
KB
-rw-rw-r--
21.4c5bdbd1.chunk.js
54.23
KB
-rw-rw-r--
21.4c5bdbd1.chunk.js.map
168.02
KB
-rw-rw-r--
3.0f9e9fe4.chunk.js
10.63
KB
-rw-rw-r--
3.0f9e9fe4.chunk.js.map
57.4
KB
-rw-rw-r--
3.58c3c7ed.chunk.js
10.63
KB
-rw-rw-r--
3.58c3c7ed.chunk.js.map
57.36
KB
-rw-rw-r--
5.057af134.chunk.js
145.02
KB
-rw-rw-r--
5.057af134.chunk.js.map
346.55
KB
-rw-rw-r--
5.cceb84cc.chunk.js
145.01
KB
-rw-rw-r--
5.cceb84cc.chunk.js.map
346.55
KB
-rw-rw-r--
6.2c17c533.chunk.js
52.42
KB
-rw-rw-r--
6.2c17c533.chunk.js.map
91.31
KB
-rw-rw-r--
6.d4267600.chunk.js
52.42
KB
-rw-rw-r--
6.d4267600.chunk.js.map
91.35
KB
-rw-rw-r--
7.1712ad5d.chunk.js
48.94
KB
-rw-rw-r--
7.1712ad5d.chunk.js.map
78.27
KB
-rw-rw-r--
7.24fda52a.chunk.js
48.93
KB
-rw-rw-r--
7.24fda52a.chunk.js.map
78.27
KB
-rw-rw-r--
8.9b4d1011.chunk.js
1.95
MB
-rw-rw-r--
8.9b4d1011.chunk.js.map
6.28
MB
-rw-rw-r--
8.fae877be.chunk.js
1.92
MB
-rw-rw-r--
8.fae877be.chunk.js.map
6.23
MB
-rw-rw-r--
9.c7f08bdd.chunk.js
27.45
KB
-rw-rw-r--
9.c7f08bdd.chunk.js.map
54.52
KB
-rw-rw-r--
9.f678ad45.chunk.js
27.44
KB
-rw-rw-r--
9.f678ad45.chunk.js.map
54.52
KB
-rw-rw-r--
main.38565251.chunk.js
8.08
KB
-rw-rw-r--
main.38565251.chunk.js.map
24.24
KB
-rw-rw-r--
main.b013322d.chunk.js
8.07
KB
-rw-rw-r--
main.b013322d.chunk.js.map
24.24
KB
-rw-rw-r--
runtime~main.196f2ffb.js
3.53
KB
-rw-rw-r--
runtime~main.196f2ffb.js.map
16.05
KB
-rw-rw-r--
runtime~main.436a0018.js
3.53
KB
-rw-rw-r--
runtime~main.436a0018.js.map
16.05
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : 8.fae877be.chunk.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{1150:function(e,t,n){"use strict";var r=n(1300);var a=n(1256),o=n(1301);function i(e,t){return Object(r.a)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(s){u=!0,a=s}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return c}}(e,t)||Object(a.a)(e,t)||Object(o.a)()}n.d(t,"a",function(){return i})},1151:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(75);function a(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){Object(r.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}},1153:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",function(){return r})},1154:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return r})},1155:function(e,t,n){"use strict";function r(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 a(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",function(){return a})},1156:function(e,t,n){"use strict";var r=n(1298);var a=n(1299),o=n(1256);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(a.a)(e)||Object(o.a)(e)||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.")}()}n.d(t,"a",function(){return i})},1157:function(e,t,n){"use strict";function r(e){return(r="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 a(e){return(a="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}var o=n(1196);function i(e,t){return!t||"object"!==a(t)&&"function"!==typeof t?Object(o.a)(e):t}n.d(t,"a",function(){return i})},1158:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(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)}n.d(t,"a",function(){return a})},1159:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(115);function a(e,t){if(null==e)return{};var n,a,o=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},1160:function(e,t,n){"use strict";n.d(t,"d",function(){return o}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return s});var r={},a=[];function o(e,t){}function i(e,t){}function c(){r={}}function l(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function u(e,t){l(o,e,t)}function s(e,t){l(i,e,t)}u.preMessage=function(e){a.push(e)},u.resetWarned=c,u.noteOnce=s,t.a=u},1161:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,o(n)))}return e}function o(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=i(t,r));return t}function i(e,t){return t?e?e+" "+t:e+t:e}"undefined"!==typeof e&&e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},1163:function(e,t,n){(function(e,r){var a;(function(){var o,i=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",f=500,d="__lodash_placeholder__",h=1,p=2,m=4,v=1,g=2,y=1,b=2,w=4,E=8,x=16,O=32,j=64,k=128,S=256,_=512,C=30,L="...",A=800,P=16,M=1,N=2,T=1/0,I=9007199254740991,F=1.7976931348623157e308,D=NaN,R=4294967295,G=R-1,B=R>>>1,H=[["ary",k],["bind",y],["bindKey",b],["curry",E],["curryRight",x],["flip",_],["partial",O],["partialRight",j],["rearg",S]],z="[object Arguments]",V="[object Array]",q="[object AsyncFunction]",Y="[object Boolean]",W="[object Date]",U="[object DOMException]",X="[object Error]",Q="[object Function]",K="[object GeneratorFunction]",J="[object Map]",Z="[object Number]",$="[object Null]",ee="[object Object]",te="[object Proxy]",ne="[object RegExp]",re="[object Set]",ae="[object String]",oe="[object Symbol]",ie="[object Undefined]",ce="[object WeakMap]",le="[object WeakSet]",ue="[object ArrayBuffer]",se="[object DataView]",fe="[object Float32Array]",de="[object Float64Array]",he="[object Int8Array]",pe="[object Int16Array]",me="[object Int32Array]",ve="[object Uint8Array]",ge="[object Uint8ClampedArray]",ye="[object Uint16Array]",be="[object Uint32Array]",we=/\b__p \+= '';/g,Ee=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Oe=/&(?:amp|lt|gt|quot|#39);/g,je=/[&<>"']/g,ke=RegExp(Oe.source),Se=RegExp(je.source),_e=/<%-([\s\S]+?)%>/g,Ce=/<%([\s\S]+?)%>/g,Le=/<%=([\s\S]+?)%>/g,Ae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pe=/^\w*$/,Me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/[\\^$.*+?()[\]{}|]/g,Te=RegExp(Ne.source),Ie=/^\s+/,Fe=/\s/,De=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Re=/\{\n\/\* \[wrapped with (.+)\] \*/,Ge=/,? & /,Be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/[()=,{}\[\]\/\s]/,ze=/\\(\\)?/g,Ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,Ye=/^[-+]0x[0-9a-f]+$/i,We=/^0b[01]+$/i,Ue=/^\[object .+?Constructor\]$/,Xe=/^0o[0-7]+$/i,Qe=/^(?:0|[1-9]\d*)$/,Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Je=/($^)/,Ze=/['\n\r\u2028\u2029\\]/g,$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",et="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tt="[\\ud800-\\udfff]",nt="["+et+"]",rt="["+$e+"]",at="\\d+",ot="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",ct="[^\\ud800-\\udfff"+et+at+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",lt="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",st="(?:\\ud83c[\\udde6-\\uddff]){2}",ft="[\\ud800-\\udbff][\\udc00-\\udfff]",dt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ht="(?:"+it+"|"+ct+")",pt="(?:"+dt+"|"+ct+")",mt="(?:"+rt+"|"+lt+")"+"?",vt="[\\ufe0e\\ufe0f]?"+mt+("(?:\\u200d(?:"+[ut,st,ft].join("|")+")[\\ufe0e\\ufe0f]?"+mt+")*"),gt="(?:"+[ot,st,ft].join("|")+")"+vt,yt="(?:"+[ut+rt+"?",rt,st,ft,tt].join("|")+")",bt=RegExp("['\u2019]","g"),wt=RegExp(rt,"g"),Et=RegExp(lt+"(?="+lt+")|"+yt+vt,"g"),xt=RegExp([dt+"?"+it+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[nt,dt,"$"].join("|")+")",pt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[nt,dt+ht,"$"].join("|")+")",dt+"?"+ht+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",dt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",at,gt].join("|"),"g"),Ot=RegExp("[\\u200d\\ud800-\\udfff"+$e+"\\ufe0e\\ufe0f]"),jt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],St=-1,_t={};_t[fe]=_t[de]=_t[he]=_t[pe]=_t[me]=_t[ve]=_t[ge]=_t[ye]=_t[be]=!0,_t[z]=_t[V]=_t[ue]=_t[Y]=_t[se]=_t[W]=_t[X]=_t[Q]=_t[J]=_t[Z]=_t[ee]=_t[ne]=_t[re]=_t[ae]=_t[ce]=!1;var Ct={};Ct[z]=Ct[V]=Ct[ue]=Ct[se]=Ct[Y]=Ct[W]=Ct[fe]=Ct[de]=Ct[he]=Ct[pe]=Ct[me]=Ct[J]=Ct[Z]=Ct[ee]=Ct[ne]=Ct[re]=Ct[ae]=Ct[oe]=Ct[ve]=Ct[ge]=Ct[ye]=Ct[be]=!0,Ct[X]=Ct[Q]=Ct[ce]=!1;var Lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},At=parseFloat,Pt=parseInt,Mt="object"==typeof e&&e&&e.Object===Object&&e,Nt="object"==typeof self&&self&&self.Object===Object&&self,Tt=Mt||Nt||Function("return this")(),It="object"==typeof t&&t&&!t.nodeType&&t,Ft=It&&"object"==typeof r&&r&&!r.nodeType&&r,Dt=Ft&&Ft.exports===It,Rt=Dt&&Mt.process,Gt=function(){try{var e=Ft&&Ft.require&&Ft.require("util").types;return e||Rt&&Rt.binding&&Rt.binding("util")}catch(t){}}(),Bt=Gt&&Gt.isArrayBuffer,Ht=Gt&&Gt.isDate,zt=Gt&&Gt.isMap,Vt=Gt&&Gt.isRegExp,qt=Gt&&Gt.isSet,Yt=Gt&&Gt.isTypedArray;function Wt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ut(e,t,n,r){for(var a=-1,o=null==e?0:e.length;++a<o;){var i=e[a];t(r,i,n(i),e)}return r}function Xt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Qt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Kt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Jt(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}function Zt(e,t){return!!(null==e?0:e.length)&&un(e,t,0)>-1}function $t(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}function en(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}function tn(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}function nn(e,t,n,r){var a=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++a]);++a<o;)n=t(n,e[a],a,e);return n}function rn(e,t,n,r){var a=null==e?0:e.length;for(r&&a&&(n=e[--a]);a--;)n=t(n,e[a],a,e);return n}function an(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var on=hn("length");function cn(e,t,n){var r;return n(e,function(e,n,a){if(t(e,n,a))return r=n,!1}),r}function ln(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return-1}function un(e,t,n){return t===t?function(e,t,n){var r=n-1,a=e.length;for(;++r<a;)if(e[r]===t)return r;return-1}(e,t,n):ln(e,fn,n)}function sn(e,t,n,r){for(var a=n-1,o=e.length;++a<o;)if(r(e[a],t))return a;return-1}function fn(e){return e!==e}function dn(e,t){var n=null==e?0:e.length;return n?vn(e,t)/n:D}function hn(e){return function(t){return null==t?o:t[e]}}function pn(e){return function(t){return null==e?o:e[t]}}function mn(e,t,n,r,a){return a(e,function(e,a,o){n=r?(r=!1,e):t(n,e,a,o)}),n}function vn(e,t){for(var n,r=-1,a=e.length;++r<a;){var i=t(e[r]);i!==o&&(n=n===o?i:n+i)}return n}function gn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function yn(e){return e?e.slice(0,In(e)+1).replace(Ie,""):e}function bn(e){return function(t){return e(t)}}function wn(e,t){return en(t,function(t){return e[t]})}function En(e,t){return e.has(t)}function xn(e,t){for(var n=-1,r=e.length;++n<r&&un(t,e[n],0)>-1;);return n}function On(e,t){for(var n=e.length;n--&&un(t,e[n],0)>-1;);return n}var jn=pn({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),kn=pn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Sn(e){return"\\"+Lt[e]}function _n(e){return Ot.test(e)}function Cn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Ln(e,t){return function(n){return e(t(n))}}function An(e,t){for(var n=-1,r=e.length,a=0,o=[];++n<r;){var i=e[n];i!==t&&i!==d||(e[n]=d,o[a++]=n)}return o}function Pn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function Mn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function Nn(e){return _n(e)?function(e){var t=Et.lastIndex=0;for(;Et.test(e);)++t;return t}(e):on(e)}function Tn(e){return _n(e)?function(e){return e.match(Et)||[]}(e):function(e){return e.split("")}(e)}function In(e){for(var t=e.length;t--&&Fe.test(e.charAt(t)););return t}var Fn=pn({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Dn=function e(t){var n=(t=null==t?Tt:Dn.defaults(Tt.Object(),t,Dn.pick(Tt,kt))).Array,r=t.Date,a=t.Error,Fe=t.Function,$e=t.Math,et=t.Object,tt=t.RegExp,nt=t.String,rt=t.TypeError,at=n.prototype,ot=Fe.prototype,it=et.prototype,ct=t["__core-js_shared__"],lt=ot.toString,ut=it.hasOwnProperty,st=0,ft=function(){var e=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),dt=it.toString,ht=lt.call(et),pt=Tt._,mt=tt("^"+lt.call(ut).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=Dt?t.Buffer:o,gt=t.Symbol,yt=t.Uint8Array,Et=vt?vt.allocUnsafe:o,Ot=Ln(et.getPrototypeOf,et),Lt=et.create,Mt=it.propertyIsEnumerable,Nt=at.splice,It=gt?gt.isConcatSpreadable:o,Ft=gt?gt.iterator:o,Rt=gt?gt.toStringTag:o,Gt=function(){try{var e=Bo(et,"defineProperty");return e({},"",{}),e}catch(t){}}(),on=t.clearTimeout!==Tt.clearTimeout&&t.clearTimeout,pn=r&&r.now!==Tt.Date.now&&r.now,Rn=t.setTimeout!==Tt.setTimeout&&t.setTimeout,Gn=$e.ceil,Bn=$e.floor,Hn=et.getOwnPropertySymbols,zn=vt?vt.isBuffer:o,Vn=t.isFinite,qn=at.join,Yn=Ln(et.keys,et),Wn=$e.max,Un=$e.min,Xn=r.now,Qn=t.parseInt,Kn=$e.random,Jn=at.reverse,Zn=Bo(t,"DataView"),$n=Bo(t,"Map"),er=Bo(t,"Promise"),tr=Bo(t,"Set"),nr=Bo(t,"WeakMap"),rr=Bo(et,"create"),ar=nr&&new nr,or={},ir=di(Zn),cr=di($n),lr=di(er),ur=di(tr),sr=di(nr),fr=gt?gt.prototype:o,dr=fr?fr.valueOf:o,hr=fr?fr.toString:o;function pr(e){if(Lc(e)&&!yc(e)&&!(e instanceof yr)){if(e instanceof gr)return e;if(ut.call(e,"__wrapped__"))return hi(e)}return new gr(e)}var mr=function(){function e(){}return function(t){if(!Cc(t))return{};if(Lt)return Lt(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function vr(){}function gr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function yr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function br(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])}}function wr(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])}}function Er(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])}}function xr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Er;++t<n;)this.add(e[t])}function Or(e){var t=this.__data__=new wr(e);this.size=t.size}function jr(e,t){var n=yc(e),r=!n&&gc(e),a=!n&&!r&&xc(e),o=!n&&!r&&!a&&Dc(e),i=n||r||a||o,c=i?gn(e.length,nt):[],l=c.length;for(var u in e)!t&&!ut.call(e,u)||i&&("length"==u||a&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Uo(u,l))||c.push(u);return c}function kr(e){var t=e.length;return t?e[xa(0,t-1)]:o}function Sr(e,t){return ui(ro(e),Ir(t,0,e.length))}function _r(e){return ui(ro(e))}function Cr(e,t,n){(n===o||pc(e[t],n))&&(n!==o||t in e)||Nr(e,t,n)}function Lr(e,t,n){var r=e[t];ut.call(e,t)&&pc(r,n)&&(n!==o||t in e)||Nr(e,t,n)}function Ar(e,t){for(var n=e.length;n--;)if(pc(e[n][0],t))return n;return-1}function Pr(e,t,n,r){return Br(e,function(e,a,o){t(r,e,n(e),o)}),r}function Mr(e,t){return e&&ao(t,ol(t),e)}function Nr(e,t,n){"__proto__"==t&&Gt?Gt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Tr(e,t){for(var r=-1,a=t.length,i=n(a),c=null==e;++r<a;)i[r]=c?o:el(e,t[r]);return i}function Ir(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function Fr(e,t,n,r,a,i){var c,l=t&h,u=t&p,s=t&m;if(n&&(c=a?n(e,r,a,i):n(e)),c!==o)return c;if(!Cc(e))return e;var f=yc(e);if(f){if(c=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ut.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return ro(e,c)}else{var d=Vo(e),v=d==Q||d==K;if(xc(e))return Ja(e,l);if(d==ee||d==z||v&&!a){if(c=u||v?{}:Yo(e),!l)return u?function(e,t){return ao(e,zo(e),t)}(e,function(e,t){return e&&ao(t,il(t),e)}(c,e)):function(e,t){return ao(e,Ho(e),t)}(e,Mr(c,e))}else{if(!Ct[d])return a?e:{};c=function(e,t,n){var r,a=e.constructor;switch(t){case ue:return Za(e);case Y:case W:return new a(+e);case se:return function(e,t){var n=t?Za(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case fe:case de:case he:case pe:case me:case ve:case ge:case ye:case be:return $a(e,n);case J:return new a;case Z:case ae:return new a(e);case ne:return function(e){var t=new e.constructor(e.source,qe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case re:return new a;case oe:return r=e,dr?et(dr.call(r)):{}}}(e,d,l)}}i||(i=new Or);var g=i.get(e);if(g)return g;i.set(e,c),Tc(e)?e.forEach(function(r){c.add(Fr(r,t,n,r,e,i))}):Ac(e)&&e.forEach(function(r,a){c.set(a,Fr(r,t,n,a,e,i))});var y=f?o:(s?u?No:Mo:u?il:ol)(e);return Xt(y||e,function(r,a){y&&(r=e[a=r]),Lr(c,a,Fr(r,t,n,a,e,i))}),c}function Dr(e,t,n){var r=n.length;if(null==e)return!r;for(e=et(e);r--;){var a=n[r],i=t[a],c=e[a];if(c===o&&!(a in e)||!i(c))return!1}return!0}function Rr(e,t,n){if("function"!=typeof e)throw new rt(l);return oi(function(){e.apply(o,n)},t)}function Gr(e,t,n,r){var a=-1,o=Zt,c=!0,l=e.length,u=[],s=t.length;if(!l)return u;n&&(t=en(t,bn(n))),r?(o=$t,c=!1):t.length>=i&&(o=En,c=!1,t=new xr(t));e:for(;++a<l;){var f=e[a],d=null==n?f:n(f);if(f=r||0!==f?f:0,c&&d===d){for(var h=s;h--;)if(t[h]===d)continue e;u.push(f)}else o(t,d,r)||u.push(f)}return u}pr.templateSettings={escape:_e,evaluate:Ce,interpolate:Le,variable:"",imports:{_:pr}},pr.prototype=vr.prototype,pr.prototype.constructor=pr,gr.prototype=mr(vr.prototype),gr.prototype.constructor=gr,yr.prototype=mr(vr.prototype),yr.prototype.constructor=yr,br.prototype.clear=function(){this.__data__=rr?rr(null):{},this.size=0},br.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},br.prototype.get=function(e){var t=this.__data__;if(rr){var n=t[e];return n===s?o:n}return ut.call(t,e)?t[e]:o},br.prototype.has=function(e){var t=this.__data__;return rr?t[e]!==o:ut.call(t,e)},br.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=rr&&t===o?s:t,this},wr.prototype.clear=function(){this.__data__=[],this.size=0},wr.prototype.delete=function(e){var t=this.__data__,n=Ar(t,e);return!(n<0)&&(n==t.length-1?t.pop():Nt.call(t,n,1),--this.size,!0)},wr.prototype.get=function(e){var t=this.__data__,n=Ar(t,e);return n<0?o:t[n][1]},wr.prototype.has=function(e){return Ar(this.__data__,e)>-1},wr.prototype.set=function(e,t){var n=this.__data__,r=Ar(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Er.prototype.clear=function(){this.size=0,this.__data__={hash:new br,map:new($n||wr),string:new br}},Er.prototype.delete=function(e){var t=Ro(this,e).delete(e);return this.size-=t?1:0,t},Er.prototype.get=function(e){return Ro(this,e).get(e)},Er.prototype.has=function(e){return Ro(this,e).has(e)},Er.prototype.set=function(e,t){var n=Ro(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},xr.prototype.add=xr.prototype.push=function(e){return this.__data__.set(e,s),this},xr.prototype.has=function(e){return this.__data__.has(e)},Or.prototype.clear=function(){this.__data__=new wr,this.size=0},Or.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Or.prototype.get=function(e){return this.__data__.get(e)},Or.prototype.has=function(e){return this.__data__.has(e)},Or.prototype.set=function(e,t){var n=this.__data__;if(n instanceof wr){var r=n.__data__;if(!$n||r.length<i-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Er(r)}return n.set(e,t),this.size=n.size,this};var Br=co(Xr),Hr=co(Qr,!0);function zr(e,t){var n=!0;return Br(e,function(e,r,a){return n=!!t(e,r,a)}),n}function Vr(e,t,n){for(var r=-1,a=e.length;++r<a;){var i=e[r],c=t(i);if(null!=c&&(l===o?c===c&&!Fc(c):n(c,l)))var l=c,u=i}return u}function qr(e,t){var n=[];return Br(e,function(e,r,a){t(e,r,a)&&n.push(e)}),n}function Yr(e,t,n,r,a){var o=-1,i=e.length;for(n||(n=Wo),a||(a=[]);++o<i;){var c=e[o];t>0&&n(c)?t>1?Yr(c,t-1,n,r,a):tn(a,c):r||(a[a.length]=c)}return a}var Wr=lo(),Ur=lo(!0);function Xr(e,t){return e&&Wr(e,t,ol)}function Qr(e,t){return e&&Ur(e,t,ol)}function Kr(e,t){return Jt(t,function(t){return kc(e[t])})}function Jr(e,t){for(var n=0,r=(t=Ua(t,e)).length;null!=e&&n<r;)e=e[fi(t[n++])];return n&&n==r?e:o}function Zr(e,t,n){var r=t(e);return yc(e)?r:tn(r,n(e))}function $r(e){return null==e?e===o?ie:$:Rt&&Rt in et(e)?function(e){var t=ut.call(e,Rt),n=e[Rt];try{e[Rt]=o;var r=!0}catch(i){}var a=dt.call(e);return r&&(t?e[Rt]=n:delete e[Rt]),a}(e):function(e){return dt.call(e)}(e)}function ea(e,t){return e>t}function ta(e,t){return null!=e&&ut.call(e,t)}function na(e,t){return null!=e&&t in et(e)}function ra(e,t,r){for(var a=r?$t:Zt,i=e[0].length,c=e.length,l=c,u=n(c),s=1/0,f=[];l--;){var d=e[l];l&&t&&(d=en(d,bn(t))),s=Un(d.length,s),u[l]=!r&&(t||i>=120&&d.length>=120)?new xr(l&&d):o}d=e[0];var h=-1,p=u[0];e:for(;++h<i&&f.length<s;){var m=d[h],v=t?t(m):m;if(m=r||0!==m?m:0,!(p?En(p,v):a(f,v,r))){for(l=c;--l;){var g=u[l];if(!(g?En(g,v):a(e[l],v,r)))continue e}p&&p.push(v),f.push(m)}}return f}function aa(e,t,n){var r=null==(e=ni(e,t=Ua(t,e)))?e:e[fi(ji(t))];return null==r?o:Wt(r,e,n)}function oa(e){return Lc(e)&&$r(e)==z}function ia(e,t,n,r,a){return e===t||(null==e||null==t||!Lc(e)&&!Lc(t)?e!==e&&t!==t:function(e,t,n,r,a,i){var c=yc(e),l=yc(t),u=c?V:Vo(e),s=l?V:Vo(t),f=(u=u==z?ee:u)==ee,d=(s=s==z?ee:s)==ee,h=u==s;if(h&&xc(e)){if(!xc(t))return!1;c=!0,f=!1}if(h&&!f)return i||(i=new Or),c||Dc(e)?Ao(e,t,n,r,a,i):function(e,t,n,r,a,o,i){switch(n){case se:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ue:return!(e.byteLength!=t.byteLength||!o(new yt(e),new yt(t)));case Y:case W:case Z:return pc(+e,+t);case X:return e.name==t.name&&e.message==t.message;case ne:case ae:return e==t+"";case J:var c=Cn;case re:var l=r&v;if(c||(c=Pn),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;r|=g,i.set(e,t);var s=Ao(c(e),c(t),r,a,o,i);return i.delete(e),s;case oe:if(dr)return dr.call(e)==dr.call(t)}return!1}(e,t,u,n,r,a,i);if(!(n&v)){var p=f&&ut.call(e,"__wrapped__"),m=d&&ut.call(t,"__wrapped__");if(p||m){var y=p?e.value():e,b=m?t.value():t;return i||(i=new Or),a(y,b,n,r,i)}}return!!h&&(i||(i=new Or),function(e,t,n,r,a,i){var c=n&v,l=Mo(e),u=l.length,s=Mo(t).length;if(u!=s&&!c)return!1;for(var f=u;f--;){var d=l[f];if(!(c?d in t:ut.call(t,d)))return!1}var h=i.get(e),p=i.get(t);if(h&&p)return h==t&&p==e;var m=!0;i.set(e,t),i.set(t,e);for(var g=c;++f<u;){d=l[f];var y=e[d],b=t[d];if(r)var w=c?r(b,y,d,t,e,i):r(y,b,d,e,t,i);if(!(w===o?y===b||a(y,b,n,r,i):w)){m=!1;break}g||(g="constructor"==d)}if(m&&!g){var E=e.constructor,x=t.constructor;E!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof E&&E instanceof E&&"function"==typeof x&&x instanceof x)&&(m=!1)}return i.delete(e),i.delete(t),m}(e,t,n,r,a,i))}(e,t,n,r,ia,a))}function ca(e,t,n,r){var a=n.length,i=a,c=!r;if(null==e)return!i;for(e=et(e);a--;){var l=n[a];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<i;){var u=(l=n[a])[0],s=e[u],f=l[1];if(c&&l[2]){if(s===o&&!(u in e))return!1}else{var d=new Or;if(r)var h=r(s,f,u,e,t,d);if(!(h===o?ia(f,s,v|g,r,d):h))return!1}}return!0}function la(e){return!(!Cc(e)||(t=e,ft&&ft in t))&&(kc(e)?mt:Ue).test(di(e));var t}function ua(e){return"function"==typeof e?e:null==e?Pl:"object"==typeof e?yc(e)?ma(e[0],e[1]):pa(e):Bl(e)}function sa(e){if(!Zo(e))return Yn(e);var t=[];for(var n in et(e))ut.call(e,n)&&"constructor"!=n&&t.push(n);return t}function fa(e){if(!Cc(e))return function(e){var t=[];if(null!=e)for(var n in et(e))t.push(n);return t}(e);var t=Zo(e),n=[];for(var r in e)("constructor"!=r||!t&&ut.call(e,r))&&n.push(r);return n}function da(e,t){return e<t}function ha(e,t){var r=-1,a=wc(e)?n(e.length):[];return Br(e,function(e,n,o){a[++r]=t(e,n,o)}),a}function pa(e){var t=Go(e);return 1==t.length&&t[0][2]?ei(t[0][0],t[0][1]):function(n){return n===e||ca(n,e,t)}}function ma(e,t){return Qo(e)&&$o(t)?ei(fi(e),t):function(n){var r=el(n,e);return r===o&&r===t?tl(n,e):ia(t,r,v|g)}}function va(e,t,n,r,a){e!==t&&Wr(t,function(i,c){if(a||(a=new Or),Cc(i))!function(e,t,n,r,a,i,c){var l=ri(e,n),u=ri(t,n),s=c.get(u);if(s)Cr(e,n,s);else{var f=i?i(l,u,n+"",e,t,c):o,d=f===o;if(d){var h=yc(u),p=!h&&xc(u),m=!h&&!p&&Dc(u);f=u,h||p||m?yc(l)?f=l:Ec(l)?f=ro(l):p?(d=!1,f=Ja(u,!0)):m?(d=!1,f=$a(u,!0)):f=[]:Mc(u)||gc(u)?(f=l,gc(l)?f=Yc(l):Cc(l)&&!kc(l)||(f=Yo(u))):d=!1}d&&(c.set(u,f),a(f,u,r,i,c),c.delete(u)),Cr(e,n,f)}}(e,t,c,n,va,r,a);else{var l=r?r(ri(e,c),i,c+"",e,t,a):o;l===o&&(l=i),Cr(e,c,l)}},il)}function ga(e,t){var n=e.length;if(n)return Uo(t+=t<0?n:0,n)?e[t]:o}function ya(e,t,n){t=t.length?en(t,function(e){return yc(e)?function(t){return Jr(t,1===e.length?e[0]:e)}:e}):[Pl];var r=-1;return t=en(t,bn(Do())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(ha(e,function(e,n,a){return{criteria:en(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){for(var r=-1,a=e.criteria,o=t.criteria,i=a.length,c=n.length;++r<i;){var l=eo(a[r],o[r]);if(l){if(r>=c)return l;var u=n[r];return l*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)})}function ba(e,t,n){for(var r=-1,a=t.length,o={};++r<a;){var i=t[r],c=Jr(e,i);n(c,i)&&_a(o,Ua(i,e),c)}return o}function wa(e,t,n,r){var a=r?sn:un,o=-1,i=t.length,c=e;for(e===t&&(t=ro(t)),n&&(c=en(e,bn(n)));++o<i;)for(var l=0,u=t[o],s=n?n(u):u;(l=a(c,s,l,r))>-1;)c!==e&&Nt.call(c,l,1),Nt.call(e,l,1);return e}function Ea(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==o){var o=a;Uo(a)?Nt.call(e,a,1):Ga(e,a)}}return e}function xa(e,t){return e+Bn(Kn()*(t-e+1))}function Oa(e,t){var n="";if(!e||t<1||t>I)return n;do{t%2&&(n+=e),(t=Bn(t/2))&&(e+=e)}while(t);return n}function ja(e,t){return ii(ti(e,t,Pl),e+"")}function ka(e){return kr(pl(e))}function Sa(e,t){var n=pl(e);return ui(n,Ir(t,0,n.length))}function _a(e,t,n,r){if(!Cc(e))return e;for(var a=-1,i=(t=Ua(t,e)).length,c=i-1,l=e;null!=l&&++a<i;){var u=fi(t[a]),s=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(a!=c){var f=l[u];(s=r?r(f,u,l):o)===o&&(s=Cc(f)?f:Uo(t[a+1])?[]:{})}Lr(l,u,s),l=l[u]}return e}var Ca=ar?function(e,t){return ar.set(e,t),e}:Pl,La=Gt?function(e,t){return Gt(e,"toString",{configurable:!0,enumerable:!1,value:Cl(t),writable:!0})}:Pl;function Aa(e){return ui(pl(e))}function Pa(e,t,r){var a=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=n(o);++a<o;)i[a]=e[a+t];return i}function Ma(e,t){var n;return Br(e,function(e,r,a){return!(n=t(e,r,a))}),!!n}function Na(e,t,n){var r=0,a=null==e?r:e.length;if("number"==typeof t&&t===t&&a<=B){for(;r<a;){var o=r+a>>>1,i=e[o];null!==i&&!Fc(i)&&(n?i<=t:i<t)?r=o+1:a=o}return a}return Ta(e,t,Pl,n)}function Ta(e,t,n,r){var a=0,i=null==e?0:e.length;if(0===i)return 0;for(var c=(t=n(t))!==t,l=null===t,u=Fc(t),s=t===o;a<i;){var f=Bn((a+i)/2),d=n(e[f]),h=d!==o,p=null===d,m=d===d,v=Fc(d);if(c)var g=r||m;else g=s?m&&(r||h):l?m&&h&&(r||!p):u?m&&h&&!p&&(r||!v):!p&&!v&&(r?d<=t:d<t);g?a=f+1:i=f}return Un(i,G)}function Ia(e,t){for(var n=-1,r=e.length,a=0,o=[];++n<r;){var i=e[n],c=t?t(i):i;if(!n||!pc(c,l)){var l=c;o[a++]=0===i?0:i}}return o}function Fa(e){return"number"==typeof e?e:Fc(e)?D:+e}function Da(e){if("string"==typeof e)return e;if(yc(e))return en(e,Da)+"";if(Fc(e))return hr?hr.call(e):"";var t=e+"";return"0"==t&&1/e==-T?"-0":t}function Ra(e,t,n){var r=-1,a=Zt,o=e.length,c=!0,l=[],u=l;if(n)c=!1,a=$t;else if(o>=i){var s=t?null:jo(e);if(s)return Pn(s);c=!1,a=En,u=new xr}else u=t?[]:l;e:for(;++r<o;){var f=e[r],d=t?t(f):f;if(f=n||0!==f?f:0,c&&d===d){for(var h=u.length;h--;)if(u[h]===d)continue e;t&&u.push(d),l.push(f)}else a(u,d,n)||(u!==l&&u.push(d),l.push(f))}return l}function Ga(e,t){return null==(e=ni(e,t=Ua(t,e)))||delete e[fi(ji(t))]}function Ba(e,t,n,r){return _a(e,t,n(Jr(e,t)),r)}function Ha(e,t,n,r){for(var a=e.length,o=r?a:-1;(r?o--:++o<a)&&t(e[o],o,e););return n?Pa(e,r?0:o,r?o+1:a):Pa(e,r?o+1:0,r?a:o)}function za(e,t){var n=e;return n instanceof yr&&(n=n.value()),nn(t,function(e,t){return t.func.apply(t.thisArg,tn([e],t.args))},n)}function Va(e,t,r){var a=e.length;if(a<2)return a?Ra(e[0]):[];for(var o=-1,i=n(a);++o<a;)for(var c=e[o],l=-1;++l<a;)l!=o&&(i[o]=Gr(i[o]||c,e[l],t,r));return Ra(Yr(i,1),t,r)}function qa(e,t,n){for(var r=-1,a=e.length,i=t.length,c={};++r<a;){var l=r<i?t[r]:o;n(c,e[r],l)}return c}function Ya(e){return Ec(e)?e:[]}function Wa(e){return"function"==typeof e?e:Pl}function Ua(e,t){return yc(e)?e:Qo(e,t)?[e]:si(Wc(e))}var Xa=ja;function Qa(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:Pa(e,t,n)}var Ka=on||function(e){return Tt.clearTimeout(e)};function Ja(e,t){if(t)return e.slice();var n=e.length,r=Et?Et(n):new e.constructor(n);return e.copy(r),r}function Za(e){var t=new e.constructor(e.byteLength);return new yt(t).set(new yt(e)),t}function $a(e,t){var n=t?Za(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var n=e!==o,r=null===e,a=e===e,i=Fc(e),c=t!==o,l=null===t,u=t===t,s=Fc(t);if(!l&&!s&&!i&&e>t||i&&c&&u&&!l&&!s||r&&c&&u||!n&&u||!a)return 1;if(!r&&!i&&!s&&e<t||s&&n&&a&&!r&&!i||l&&n&&a||!c&&a||!u)return-1}return 0}function to(e,t,r,a){for(var o=-1,i=e.length,c=r.length,l=-1,u=t.length,s=Wn(i-c,0),f=n(u+s),d=!a;++l<u;)f[l]=t[l];for(;++o<c;)(d||o<i)&&(f[r[o]]=e[o]);for(;s--;)f[l++]=e[o++];return f}function no(e,t,r,a){for(var o=-1,i=e.length,c=-1,l=r.length,u=-1,s=t.length,f=Wn(i-l,0),d=n(f+s),h=!a;++o<f;)d[o]=e[o];for(var p=o;++u<s;)d[p+u]=t[u];for(;++c<l;)(h||o<i)&&(d[p+r[c]]=e[o++]);return d}function ro(e,t){var r=-1,a=e.length;for(t||(t=n(a));++r<a;)t[r]=e[r];return t}function ao(e,t,n,r){var a=!n;n||(n={});for(var i=-1,c=t.length;++i<c;){var l=t[i],u=r?r(n[l],e[l],l,n,e):o;u===o&&(u=e[l]),a?Nr(n,l,u):Lr(n,l,u)}return n}function oo(e,t){return function(n,r){var a=yc(n)?Ut:Pr,o=t?t():{};return a(n,e,Do(r,2),o)}}function io(e){return ja(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:o,c=a>2?n[2]:o;for(i=e.length>3&&"function"==typeof i?(a--,i):o,c&&Xo(n[0],n[1],c)&&(i=a<3?o:i,a=1),t=et(t);++r<a;){var l=n[r];l&&e(t,l,r,i)}return t})}function co(e,t){return function(n,r){if(null==n)return n;if(!wc(n))return e(n,r);for(var a=n.length,o=t?a:-1,i=et(n);(t?o--:++o<a)&&!1!==r(i[o],o,i););return n}}function lo(e){return function(t,n,r){for(var a=-1,o=et(t),i=r(t),c=i.length;c--;){var l=i[e?c:++a];if(!1===n(o[l],l,o))break}return t}}function uo(e){return function(t){var n=_n(t=Wc(t))?Tn(t):o,r=n?n[0]:t.charAt(0),a=n?Qa(n,1).join(""):t.slice(1);return r[e]()+a}}function so(e){return function(t){return nn(kl(gl(t).replace(bt,"")),e,"")}}function fo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=mr(e.prototype),r=e.apply(n,t);return Cc(r)?r:n}}function ho(e){return function(t,n,r){var a=et(t);if(!wc(t)){var i=Do(n,3);t=ol(t),n=function(e){return i(a[e],e,a)}}var c=e(t,n,r);return c>-1?a[i?t[c]:c]:o}}function po(e){return Po(function(t){var n=t.length,r=n,a=gr.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new rt(l);if(a&&!c&&"wrapper"==Io(i))var c=new gr([],!0)}for(r=c?r:n;++r<n;){var u=Io(i=t[r]),s="wrapper"==u?To(i):o;c=s&&Ko(s[0])&&s[1]==(k|E|O|S)&&!s[4].length&&1==s[9]?c[Io(s[0])].apply(c,s[3]):1==i.length&&Ko(i)?c[u]():c.thru(i)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&yc(r))return c.plant(r).value();for(var a=0,o=n?t[a].apply(this,e):r;++a<n;)o=t[a].call(this,o);return o}})}function mo(e,t,r,a,i,c,l,u,s,f){var d=t&k,h=t&y,p=t&b,m=t&(E|x),v=t&_,g=p?o:fo(e);return function y(){for(var b=arguments.length,w=n(b),E=b;E--;)w[E]=arguments[E];if(m)var x=Fo(y),O=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,x);if(a&&(w=to(w,a,i,m)),c&&(w=no(w,c,l,m)),b-=O,m&&b<f){var j=An(w,x);return xo(e,t,mo,y.placeholder,r,w,j,u,s,f-b)}var k=h?r:this,S=p?k[e]:e;return b=w.length,u?w=function(e,t){for(var n=e.length,r=Un(t.length,n),a=ro(e);r--;){var i=t[r];e[r]=Uo(i,n)?a[i]:o}return e}(w,u):v&&b>1&&w.reverse(),d&&s<b&&(w.length=s),this&&this!==Tt&&this instanceof y&&(S=g||fo(S)),S.apply(k,w)}}function vo(e,t){return function(n,r){return function(e,t,n,r){return Xr(e,function(e,a,o){t(r,n(e),a,o)}),r}(n,e,t(r),{})}}function go(e,t){return function(n,r){var a;if(n===o&&r===o)return t;if(n!==o&&(a=n),r!==o){if(a===o)return r;"string"==typeof n||"string"==typeof r?(n=Da(n),r=Da(r)):(n=Fa(n),r=Fa(r)),a=e(n,r)}return a}}function yo(e){return Po(function(t){return t=en(t,bn(Do())),ja(function(n){var r=this;return e(t,function(e){return Wt(e,r,n)})})})}function bo(e,t){var n=(t=t===o?" ":Da(t)).length;if(n<2)return n?Oa(t,e):t;var r=Oa(t,Gn(e/Nn(t)));return _n(t)?Qa(Tn(r),0,e).join(""):r.slice(0,e)}function wo(e){return function(t,r,a){return a&&"number"!=typeof a&&Xo(t,r,a)&&(r=a=o),t=Hc(t),r===o?(r=t,t=0):r=Hc(r),function(e,t,r,a){for(var o=-1,i=Wn(Gn((t-e)/(r||1)),0),c=n(i);i--;)c[a?i:++o]=e,e+=r;return c}(t,r,a=a===o?t<r?1:-1:Hc(a),e)}}function Eo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=qc(t),n=qc(n)),e(t,n)}}function xo(e,t,n,r,a,i,c,l,u,s){var f=t&E;t|=f?O:j,(t&=~(f?j:O))&w||(t&=~(y|b));var d=[e,t,a,f?i:o,f?c:o,f?o:i,f?o:c,l,u,s],h=n.apply(o,d);return Ko(e)&&ai(h,d),h.placeholder=r,ci(h,e,t)}function Oo(e){var t=$e[e];return function(e,n){if(e=qc(e),(n=null==n?0:Un(zc(n),292))&&Vn(e)){var r=(Wc(e)+"e").split("e");return+((r=(Wc(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var jo=tr&&1/Pn(new tr([,-0]))[1]==T?function(e){return new tr(e)}:Fl;function ko(e){return function(t){var n=Vo(t);return n==J?Cn(t):n==re?Mn(t):function(e,t){return en(t,function(t){return[t,e[t]]})}(t,e(t))}}function So(e,t,r,a,i,c,u,s){var f=t&b;if(!f&&"function"!=typeof e)throw new rt(l);var h=a?a.length:0;if(h||(t&=~(O|j),a=i=o),u=u===o?u:Wn(zc(u),0),s=s===o?s:zc(s),h-=i?i.length:0,t&j){var p=a,m=i;a=i=o}var v=f?o:To(e),g=[e,t,r,a,i,p,m,c,u,s];if(v&&function(e,t){var n=e[1],r=t[1],a=n|r,o=a<(y|b|k),i=r==k&&n==E||r==k&&n==S&&e[7].length<=t[8]||r==(k|S)&&t[7].length<=t[8]&&n==E;if(!o&&!i)return e;r&y&&(e[2]=t[2],a|=n&y?0:w);var c=t[3];if(c){var l=e[3];e[3]=l?to(l,c,t[4]):c,e[4]=l?An(e[3],d):t[4]}(c=t[5])&&(l=e[5],e[5]=l?no(l,c,t[6]):c,e[6]=l?An(e[5],d):t[6]),(c=t[7])&&(e[7]=c),r&k&&(e[8]=null==e[8]?t[8]:Un(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=a}(g,v),e=g[0],t=g[1],r=g[2],a=g[3],i=g[4],!(s=g[9]=g[9]===o?f?0:e.length:Wn(g[9]-h,0))&&t&(E|x)&&(t&=~(E|x)),t&&t!=y)_=t==E||t==x?function(e,t,r){var a=fo(e);return function i(){for(var c=arguments.length,l=n(c),u=c,s=Fo(i);u--;)l[u]=arguments[u];var f=c<3&&l[0]!==s&&l[c-1]!==s?[]:An(l,s);return(c-=f.length)<r?xo(e,t,mo,i.placeholder,o,l,f,o,o,r-c):Wt(this&&this!==Tt&&this instanceof i?a:e,this,l)}}(e,t,s):t!=O&&t!=(y|O)||i.length?mo.apply(o,g):function(e,t,r,a){var o=t&y,i=fo(e);return function t(){for(var c=-1,l=arguments.length,u=-1,s=a.length,f=n(s+l),d=this&&this!==Tt&&this instanceof t?i:e;++u<s;)f[u]=a[u];for(;l--;)f[u++]=arguments[++c];return Wt(d,o?r:this,f)}}(e,t,r,a);else var _=function(e,t,n){var r=t&y,a=fo(e);return function t(){return(this&&this!==Tt&&this instanceof t?a:e).apply(r?n:this,arguments)}}(e,t,r);return ci((v?Ca:ai)(_,g),e,t)}function _o(e,t,n,r){return e===o||pc(e,it[n])&&!ut.call(r,n)?t:e}function Co(e,t,n,r,a,i){return Cc(e)&&Cc(t)&&(i.set(t,e),va(e,t,o,Co,i),i.delete(t)),e}function Lo(e){return Mc(e)?o:e}function Ao(e,t,n,r,a,i){var c=n&v,l=e.length,u=t.length;if(l!=u&&!(c&&u>l))return!1;var s=i.get(e),f=i.get(t);if(s&&f)return s==t&&f==e;var d=-1,h=!0,p=n&g?new xr:o;for(i.set(e,t),i.set(t,e);++d<l;){var m=e[d],y=t[d];if(r)var b=c?r(y,m,d,t,e,i):r(m,y,d,e,t,i);if(b!==o){if(b)continue;h=!1;break}if(p){if(!an(t,function(e,t){if(!En(p,t)&&(m===e||a(m,e,n,r,i)))return p.push(t)})){h=!1;break}}else if(m!==y&&!a(m,y,n,r,i)){h=!1;break}}return i.delete(e),i.delete(t),h}function Po(e){return ii(ti(e,o,bi),e+"")}function Mo(e){return Zr(e,ol,Ho)}function No(e){return Zr(e,il,zo)}var To=ar?function(e){return ar.get(e)}:Fl;function Io(e){for(var t=e.name+"",n=or[t],r=ut.call(or,t)?n.length:0;r--;){var a=n[r],o=a.func;if(null==o||o==e)return a.name}return t}function Fo(e){return(ut.call(pr,"placeholder")?pr:e).placeholder}function Do(){var e=pr.iteratee||Ml;return e=e===Ml?ua:e,arguments.length?e(arguments[0],arguments[1]):e}function Ro(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Go(e){for(var t=ol(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,$o(a)]}return t}function Bo(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return la(n)?n:o}var Ho=Hn?function(e){return null==e?[]:(e=et(e),Jt(Hn(e),function(t){return Mt.call(e,t)}))}:Vl,zo=Hn?function(e){for(var t=[];e;)tn(t,Ho(e)),e=Ot(e);return t}:Vl,Vo=$r;function qo(e,t,n){for(var r=-1,a=(t=Ua(t,e)).length,o=!1;++r<a;){var i=fi(t[r]);if(!(o=null!=e&&n(e,i)))break;e=e[i]}return o||++r!=a?o:!!(a=null==e?0:e.length)&&_c(a)&&Uo(i,a)&&(yc(e)||gc(e))}function Yo(e){return"function"!=typeof e.constructor||Zo(e)?{}:mr(Ot(e))}function Wo(e){return yc(e)||gc(e)||!!(It&&e&&e[It])}function Uo(e,t){var n=typeof e;return!!(t=null==t?I:t)&&("number"==n||"symbol"!=n&&Qe.test(e))&&e>-1&&e%1==0&&e<t}function Xo(e,t,n){if(!Cc(n))return!1;var r=typeof t;return!!("number"==r?wc(n)&&Uo(t,n.length):"string"==r&&t in n)&&pc(n[t],e)}function Qo(e,t){if(yc(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Fc(e))||Pe.test(e)||!Ae.test(e)||null!=t&&e in et(t)}function Ko(e){var t=Io(e),n=pr[t];if("function"!=typeof n||!(t in yr.prototype))return!1;if(e===n)return!0;var r=To(n);return!!r&&e===r[0]}(Zn&&Vo(new Zn(new ArrayBuffer(1)))!=se||$n&&Vo(new $n)!=J||er&&"[object Promise]"!=Vo(er.resolve())||tr&&Vo(new tr)!=re||nr&&Vo(new nr)!=ce)&&(Vo=function(e){var t=$r(e),n=t==ee?e.constructor:o,r=n?di(n):"";if(r)switch(r){case ir:return se;case cr:return J;case lr:return"[object Promise]";case ur:return re;case sr:return ce}return t});var Jo=ct?kc:ql;function Zo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||it)}function $o(e){return e===e&&!Cc(e)}function ei(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in et(n))}}function ti(e,t,r){return t=Wn(t===o?e.length-1:t,0),function(){for(var a=arguments,o=-1,i=Wn(a.length-t,0),c=n(i);++o<i;)c[o]=a[t+o];o=-1;for(var l=n(t+1);++o<t;)l[o]=a[o];return l[t]=r(c),Wt(e,this,l)}}function ni(e,t){return t.length<2?e:Jr(e,Pa(t,0,-1))}function ri(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var ai=li(Ca),oi=Rn||function(e,t){return Tt.setTimeout(e,t)},ii=li(La);function ci(e,t,n){var r=t+"";return ii(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(De,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Xt(H,function(n){var r="_."+n[0];t&n[1]&&!Zt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Re);return t?t[1].split(Ge):[]}(r),n)))}function li(e){var t=0,n=0;return function(){var r=Xn(),a=P-(r-n);if(n=r,a>0){if(++t>=A)return arguments[0]}else t=0;return e.apply(o,arguments)}}function ui(e,t){var n=-1,r=e.length,a=r-1;for(t=t===o?r:t;++n<t;){var i=xa(n,a),c=e[i];e[i]=e[n],e[n]=c}return e.length=t,e}var si=function(e){var t=lc(e,function(e){return n.size===f&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Me,function(e,n,r,a){t.push(r?a.replace(ze,"$1"):n||e)}),t});function fi(e){if("string"==typeof e||Fc(e))return e;var t=e+"";return"0"==t&&1/e==-T?"-0":t}function di(e){if(null!=e){try{return lt.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function hi(e){if(e instanceof yr)return e.clone();var t=new gr(e.__wrapped__,e.__chain__);return t.__actions__=ro(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var pi=ja(function(e,t){return Ec(e)?Gr(e,Yr(t,1,Ec,!0)):[]}),mi=ja(function(e,t){var n=ji(t);return Ec(n)&&(n=o),Ec(e)?Gr(e,Yr(t,1,Ec,!0),Do(n,2)):[]}),vi=ja(function(e,t){var n=ji(t);return Ec(n)&&(n=o),Ec(e)?Gr(e,Yr(t,1,Ec,!0),o,n):[]});function gi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:zc(n);return a<0&&(a=Wn(r+a,0)),ln(e,Do(t,3),a)}function yi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r-1;return n!==o&&(a=zc(n),a=n<0?Wn(r+a,0):Un(a,r-1)),ln(e,Do(t,3),a,!0)}function bi(e){return null!=e&&e.length?Yr(e,1):[]}function wi(e){return e&&e.length?e[0]:o}var Ei=ja(function(e){var t=en(e,Ya);return t.length&&t[0]===e[0]?ra(t):[]}),xi=ja(function(e){var t=ji(e),n=en(e,Ya);return t===ji(n)?t=o:n.pop(),n.length&&n[0]===e[0]?ra(n,Do(t,2)):[]}),Oi=ja(function(e){var t=ji(e),n=en(e,Ya);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?ra(n,o,t):[]});function ji(e){var t=null==e?0:e.length;return t?e[t-1]:o}var ki=ja(Si);function Si(e,t){return e&&e.length&&t&&t.length?wa(e,t):e}var _i=Po(function(e,t){var n=null==e?0:e.length,r=Tr(e,t);return Ea(e,en(t,function(e){return Uo(e,n)?+e:e}).sort(eo)),r});function Ci(e){return null==e?e:Jn.call(e)}var Li=ja(function(e){return Ra(Yr(e,1,Ec,!0))}),Ai=ja(function(e){var t=ji(e);return Ec(t)&&(t=o),Ra(Yr(e,1,Ec,!0),Do(t,2))}),Pi=ja(function(e){var t=ji(e);return t="function"==typeof t?t:o,Ra(Yr(e,1,Ec,!0),o,t)});function Mi(e){if(!e||!e.length)return[];var t=0;return e=Jt(e,function(e){if(Ec(e))return t=Wn(e.length,t),!0}),gn(t,function(t){return en(e,hn(t))})}function Ni(e,t){if(!e||!e.length)return[];var n=Mi(e);return null==t?n:en(n,function(e){return Wt(t,o,e)})}var Ti=ja(function(e,t){return Ec(e)?Gr(e,t):[]}),Ii=ja(function(e){return Va(Jt(e,Ec))}),Fi=ja(function(e){var t=ji(e);return Ec(t)&&(t=o),Va(Jt(e,Ec),Do(t,2))}),Di=ja(function(e){var t=ji(e);return t="function"==typeof t?t:o,Va(Jt(e,Ec),o,t)}),Ri=ja(Mi);var Gi=ja(function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,Ni(e,n)});function Bi(e){var t=pr(e);return t.__chain__=!0,t}function Hi(e,t){return t(e)}var zi=Po(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return Tr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof yr&&Uo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Hi,args:[a],thisArg:o}),new gr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(a)});var Vi=oo(function(e,t,n){ut.call(e,n)?++e[n]:Nr(e,n,1)});var qi=ho(gi),Yi=ho(yi);function Wi(e,t){return(yc(e)?Xt:Br)(e,Do(t,3))}function Ui(e,t){return(yc(e)?Qt:Hr)(e,Do(t,3))}var Xi=oo(function(e,t,n){ut.call(e,n)?e[n].push(t):Nr(e,n,[t])});var Qi=ja(function(e,t,r){var a=-1,o="function"==typeof t,i=wc(e)?n(e.length):[];return Br(e,function(e){i[++a]=o?Wt(t,e,r):aa(e,t,r)}),i}),Ki=oo(function(e,t,n){Nr(e,n,t)});function Ji(e,t){return(yc(e)?en:ha)(e,Do(t,3))}var Zi=oo(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var $i=ja(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Xo(e,t[0],t[1])?t=[]:n>2&&Xo(t[0],t[1],t[2])&&(t=[t[0]]),ya(e,Yr(t,1),[])}),ec=pn||function(){return Tt.Date.now()};function tc(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,So(e,k,o,o,o,o,t)}function nc(e,t){var n;if("function"!=typeof t)throw new rt(l);return e=zc(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var rc=ja(function(e,t,n){var r=y;if(n.length){var a=An(n,Fo(rc));r|=O}return So(e,r,t,n,a)}),ac=ja(function(e,t,n){var r=y|b;if(n.length){var a=An(n,Fo(ac));r|=O}return So(t,r,e,n,a)});function oc(e,t,n){var r,a,i,c,u,s,f=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new rt(l);function m(t){var n=r,i=a;return r=a=o,f=t,c=e.apply(i,n)}function v(e){var n=e-s;return s===o||n>=t||n<0||h&&e-f>=i}function g(){var e=ec();if(v(e))return y(e);u=oi(g,function(e){var n=t-(e-s);return h?Un(n,i-(e-f)):n}(e))}function y(e){return u=o,p&&r?m(e):(r=a=o,c)}function b(){var e=ec(),n=v(e);if(r=arguments,a=this,s=e,n){if(u===o)return function(e){return f=e,u=oi(g,t),d?m(e):c}(s);if(h)return Ka(u),u=oi(g,t),m(s)}return u===o&&(u=oi(g,t)),c}return t=qc(t)||0,Cc(n)&&(d=!!n.leading,i=(h="maxWait"in n)?Wn(qc(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),b.cancel=function(){u!==o&&Ka(u),f=0,r=s=a=u=o},b.flush=function(){return u===o?c:y(ec())},b}var ic=ja(function(e,t){return Rr(e,1,t)}),cc=ja(function(e,t,n){return Rr(e,qc(t)||0,n)});function lc(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new rt(l);var n=function n(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(lc.Cache||Er),n}function uc(e){if("function"!=typeof e)throw new rt(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}lc.Cache=Er;var sc=Xa(function(e,t){var n=(t=1==t.length&&yc(t[0])?en(t[0],bn(Do())):en(Yr(t,1),bn(Do()))).length;return ja(function(r){for(var a=-1,o=Un(r.length,n);++a<o;)r[a]=t[a].call(this,r[a]);return Wt(e,this,r)})}),fc=ja(function(e,t){var n=An(t,Fo(fc));return So(e,O,o,t,n)}),dc=ja(function(e,t){var n=An(t,Fo(dc));return So(e,j,o,t,n)}),hc=Po(function(e,t){return So(e,S,o,o,o,t)});function pc(e,t){return e===t||e!==e&&t!==t}var mc=Eo(ea),vc=Eo(function(e,t){return e>=t}),gc=oa(function(){return arguments}())?oa:function(e){return Lc(e)&&ut.call(e,"callee")&&!Mt.call(e,"callee")},yc=n.isArray,bc=Bt?bn(Bt):function(e){return Lc(e)&&$r(e)==ue};function wc(e){return null!=e&&_c(e.length)&&!kc(e)}function Ec(e){return Lc(e)&&wc(e)}var xc=zn||ql,Oc=Ht?bn(Ht):function(e){return Lc(e)&&$r(e)==W};function jc(e){if(!Lc(e))return!1;var t=$r(e);return t==X||t==U||"string"==typeof e.message&&"string"==typeof e.name&&!Mc(e)}function kc(e){if(!Cc(e))return!1;var t=$r(e);return t==Q||t==K||t==q||t==te}function Sc(e){return"number"==typeof e&&e==zc(e)}function _c(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=I}function Cc(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Lc(e){return null!=e&&"object"==typeof e}var Ac=zt?bn(zt):function(e){return Lc(e)&&Vo(e)==J};function Pc(e){return"number"==typeof e||Lc(e)&&$r(e)==Z}function Mc(e){if(!Lc(e)||$r(e)!=ee)return!1;var t=Ot(e);if(null===t)return!0;var n=ut.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&<.call(n)==ht}var Nc=Vt?bn(Vt):function(e){return Lc(e)&&$r(e)==ne};var Tc=qt?bn(qt):function(e){return Lc(e)&&Vo(e)==re};function Ic(e){return"string"==typeof e||!yc(e)&&Lc(e)&&$r(e)==ae}function Fc(e){return"symbol"==typeof e||Lc(e)&&$r(e)==oe}var Dc=Yt?bn(Yt):function(e){return Lc(e)&&_c(e.length)&&!!_t[$r(e)]};var Rc=Eo(da),Gc=Eo(function(e,t){return e<=t});function Bc(e){if(!e)return[];if(wc(e))return Ic(e)?Tn(e):ro(e);if(Ft&&e[Ft])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ft]());var t=Vo(e);return(t==J?Cn:t==re?Pn:pl)(e)}function Hc(e){return e?(e=qc(e))===T||e===-T?(e<0?-1:1)*F:e===e?e:0:0===e?e:0}function zc(e){var t=Hc(e),n=t%1;return t===t?n?t-n:t:0}function Vc(e){return e?Ir(zc(e),0,R):0}function qc(e){if("number"==typeof e)return e;if(Fc(e))return D;if(Cc(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Cc(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=yn(e);var n=We.test(e);return n||Xe.test(e)?Pt(e.slice(2),n?2:8):Ye.test(e)?D:+e}function Yc(e){return ao(e,il(e))}function Wc(e){return null==e?"":Da(e)}var Uc=io(function(e,t){if(Zo(t)||wc(t))ao(t,ol(t),e);else for(var n in t)ut.call(t,n)&&Lr(e,n,t[n])}),Xc=io(function(e,t){ao(t,il(t),e)}),Qc=io(function(e,t,n,r){ao(t,il(t),e,r)}),Kc=io(function(e,t,n,r){ao(t,ol(t),e,r)}),Jc=Po(Tr);var Zc=ja(function(e,t){e=et(e);var n=-1,r=t.length,a=r>2?t[2]:o;for(a&&Xo(t[0],t[1],a)&&(r=1);++n<r;)for(var i=t[n],c=il(i),l=-1,u=c.length;++l<u;){var s=c[l],f=e[s];(f===o||pc(f,it[s])&&!ut.call(e,s))&&(e[s]=i[s])}return e}),$c=ja(function(e){return e.push(o,Co),Wt(ll,o,e)});function el(e,t,n){var r=null==e?o:Jr(e,t);return r===o?n:r}function tl(e,t){return null!=e&&qo(e,t,na)}var nl=vo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=dt.call(t)),e[t]=n},Cl(Pl)),rl=vo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=dt.call(t)),ut.call(e,t)?e[t].push(n):e[t]=[n]},Do),al=ja(aa);function ol(e){return wc(e)?jr(e):sa(e)}function il(e){return wc(e)?jr(e,!0):fa(e)}var cl=io(function(e,t,n){va(e,t,n)}),ll=io(function(e,t,n,r){va(e,t,n,r)}),ul=Po(function(e,t){var n={};if(null==e)return n;var r=!1;t=en(t,function(t){return t=Ua(t,e),r||(r=t.length>1),t}),ao(e,No(e),n),r&&(n=Fr(n,h|p|m,Lo));for(var a=t.length;a--;)Ga(n,t[a]);return n});var sl=Po(function(e,t){return null==e?{}:function(e,t){return ba(e,t,function(t,n){return tl(e,n)})}(e,t)});function fl(e,t){if(null==e)return{};var n=en(No(e),function(e){return[e]});return t=Do(t),ba(e,n,function(e,n){return t(e,n[0])})}var dl=ko(ol),hl=ko(il);function pl(e){return null==e?[]:wn(e,ol(e))}var ml=so(function(e,t,n){return t=t.toLowerCase(),e+(n?vl(t):t)});function vl(e){return jl(Wc(e).toLowerCase())}function gl(e){return(e=Wc(e))&&e.replace(Ke,jn).replace(wt,"")}var yl=so(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),bl=so(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),wl=uo("toLowerCase");var El=so(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var xl=so(function(e,t,n){return e+(n?" ":"")+jl(t)});var Ol=so(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),jl=uo("toUpperCase");function kl(e,t,n){return e=Wc(e),(t=n?o:t)===o?function(e){return jt.test(e)}(e)?function(e){return e.match(xt)||[]}(e):function(e){return e.match(Be)||[]}(e):e.match(t)||[]}var Sl=ja(function(e,t){try{return Wt(e,o,t)}catch(n){return jc(n)?n:new a(n)}}),_l=Po(function(e,t){return Xt(t,function(t){t=fi(t),Nr(e,t,rc(e[t],e))}),e});function Cl(e){return function(){return e}}var Ll=po(),Al=po(!0);function Pl(e){return e}function Ml(e){return ua("function"==typeof e?e:Fr(e,h))}var Nl=ja(function(e,t){return function(n){return aa(n,e,t)}}),Tl=ja(function(e,t){return function(n){return aa(e,n,t)}});function Il(e,t,n){var r=ol(t),a=Kr(t,r);null!=n||Cc(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=Kr(t,ol(t)));var o=!(Cc(n)&&"chain"in n)||!!n.chain,i=kc(e);return Xt(a,function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=ro(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,tn([this.value()],arguments))})}),e}function Fl(){}var Dl=yo(en),Rl=yo(Kt),Gl=yo(an);function Bl(e){return Qo(e)?hn(fi(e)):function(e){return function(t){return Jr(t,e)}}(e)}var Hl=wo(),zl=wo(!0);function Vl(){return[]}function ql(){return!1}var Yl=go(function(e,t){return e+t},0),Wl=Oo("ceil"),Ul=go(function(e,t){return e/t},1),Xl=Oo("floor");var Ql=go(function(e,t){return e*t},1),Kl=Oo("round"),Jl=go(function(e,t){return e-t},0);return pr.after=function(e,t){if("function"!=typeof t)throw new rt(l);return e=zc(e),function(){if(--e<1)return t.apply(this,arguments)}},pr.ary=tc,pr.assign=Uc,pr.assignIn=Xc,pr.assignInWith=Qc,pr.assignWith=Kc,pr.at=Jc,pr.before=nc,pr.bind=rc,pr.bindAll=_l,pr.bindKey=ac,pr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return yc(e)?e:[e]},pr.chain=Bi,pr.chunk=function(e,t,r){t=(r?Xo(e,t,r):t===o)?1:Wn(zc(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var i=0,c=0,l=n(Gn(a/t));i<a;)l[c++]=Pa(e,i,i+=t);return l},pr.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,a=[];++t<n;){var o=e[t];o&&(a[r++]=o)}return a},pr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],a=e;a--;)t[a-1]=arguments[a];return tn(yc(r)?ro(r):[r],Yr(t,1))},pr.cond=function(e){var t=null==e?0:e.length,n=Do();return e=t?en(e,function(e){if("function"!=typeof e[1])throw new rt(l);return[n(e[0]),e[1]]}):[],ja(function(n){for(var r=-1;++r<t;){var a=e[r];if(Wt(a[0],this,n))return Wt(a[1],this,n)}})},pr.conforms=function(e){return function(e){var t=ol(e);return function(n){return Dr(n,e,t)}}(Fr(e,h))},pr.constant=Cl,pr.countBy=Vi,pr.create=function(e,t){var n=mr(e);return null==t?n:Mr(n,t)},pr.curry=function e(t,n,r){var a=So(t,E,o,o,o,o,o,n=r?o:n);return a.placeholder=e.placeholder,a},pr.curryRight=function e(t,n,r){var a=So(t,x,o,o,o,o,o,n=r?o:n);return a.placeholder=e.placeholder,a},pr.debounce=oc,pr.defaults=Zc,pr.defaultsDeep=$c,pr.defer=ic,pr.delay=cc,pr.difference=pi,pr.differenceBy=mi,pr.differenceWith=vi,pr.drop=function(e,t,n){var r=null==e?0:e.length;return r?Pa(e,(t=n||t===o?1:zc(t))<0?0:t,r):[]},pr.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Pa(e,0,(t=r-(t=n||t===o?1:zc(t)))<0?0:t):[]},pr.dropRightWhile=function(e,t){return e&&e.length?Ha(e,Do(t,3),!0,!0):[]},pr.dropWhile=function(e,t){return e&&e.length?Ha(e,Do(t,3),!0):[]},pr.fill=function(e,t,n,r){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&Xo(e,t,n)&&(n=0,r=a),function(e,t,n,r){var a=e.length;for((n=zc(n))<0&&(n=-n>a?0:a+n),(r=r===o||r>a?a:zc(r))<0&&(r+=a),r=n>r?0:Vc(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},pr.filter=function(e,t){return(yc(e)?Jt:qr)(e,Do(t,3))},pr.flatMap=function(e,t){return Yr(Ji(e,t),1)},pr.flatMapDeep=function(e,t){return Yr(Ji(e,t),T)},pr.flatMapDepth=function(e,t,n){return n=n===o?1:zc(n),Yr(Ji(e,t),n)},pr.flatten=bi,pr.flattenDeep=function(e){return null!=e&&e.length?Yr(e,T):[]},pr.flattenDepth=function(e,t){return null!=e&&e.length?Yr(e,t=t===o?1:zc(t)):[]},pr.flip=function(e){return So(e,_)},pr.flow=Ll,pr.flowRight=Al,pr.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r},pr.functions=function(e){return null==e?[]:Kr(e,ol(e))},pr.functionsIn=function(e){return null==e?[]:Kr(e,il(e))},pr.groupBy=Xi,pr.initial=function(e){return null!=e&&e.length?Pa(e,0,-1):[]},pr.intersection=Ei,pr.intersectionBy=xi,pr.intersectionWith=Oi,pr.invert=nl,pr.invertBy=rl,pr.invokeMap=Qi,pr.iteratee=Ml,pr.keyBy=Ki,pr.keys=ol,pr.keysIn=il,pr.map=Ji,pr.mapKeys=function(e,t){var n={};return t=Do(t,3),Xr(e,function(e,r,a){Nr(n,t(e,r,a),e)}),n},pr.mapValues=function(e,t){var n={};return t=Do(t,3),Xr(e,function(e,r,a){Nr(n,r,t(e,r,a))}),n},pr.matches=function(e){return pa(Fr(e,h))},pr.matchesProperty=function(e,t){return ma(e,Fr(t,h))},pr.memoize=lc,pr.merge=cl,pr.mergeWith=ll,pr.method=Nl,pr.methodOf=Tl,pr.mixin=Il,pr.negate=uc,pr.nthArg=function(e){return e=zc(e),ja(function(t){return ga(t,e)})},pr.omit=ul,pr.omitBy=function(e,t){return fl(e,uc(Do(t)))},pr.once=function(e){return nc(2,e)},pr.orderBy=function(e,t,n,r){return null==e?[]:(yc(t)||(t=null==t?[]:[t]),yc(n=r?o:n)||(n=null==n?[]:[n]),ya(e,t,n))},pr.over=Dl,pr.overArgs=sc,pr.overEvery=Rl,pr.overSome=Gl,pr.partial=fc,pr.partialRight=dc,pr.partition=Zi,pr.pick=sl,pr.pickBy=fl,pr.property=Bl,pr.propertyOf=function(e){return function(t){return null==e?o:Jr(e,t)}},pr.pull=ki,pr.pullAll=Si,pr.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?wa(e,t,Do(n,2)):e},pr.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?wa(e,t,o,n):e},pr.pullAt=_i,pr.range=Hl,pr.rangeRight=zl,pr.rearg=hc,pr.reject=function(e,t){return(yc(e)?Jt:qr)(e,uc(Do(t,3)))},pr.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,a=[],o=e.length;for(t=Do(t,3);++r<o;){var i=e[r];t(i,r,e)&&(n.push(i),a.push(r))}return Ea(e,a),n},pr.rest=function(e,t){if("function"!=typeof e)throw new rt(l);return ja(e,t=t===o?t:zc(t))},pr.reverse=Ci,pr.sampleSize=function(e,t,n){return t=(n?Xo(e,t,n):t===o)?1:zc(t),(yc(e)?Sr:Sa)(e,t)},pr.set=function(e,t,n){return null==e?e:_a(e,t,n)},pr.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:_a(e,t,n,r)},pr.shuffle=function(e){return(yc(e)?_r:Aa)(e)},pr.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Xo(e,t,n)?(t=0,n=r):(t=null==t?0:zc(t),n=n===o?r:zc(n)),Pa(e,t,n)):[]},pr.sortBy=$i,pr.sortedUniq=function(e){return e&&e.length?Ia(e):[]},pr.sortedUniqBy=function(e,t){return e&&e.length?Ia(e,Do(t,2)):[]},pr.split=function(e,t,n){return n&&"number"!=typeof n&&Xo(e,t,n)&&(t=n=o),(n=n===o?R:n>>>0)?(e=Wc(e))&&("string"==typeof t||null!=t&&!Nc(t))&&!(t=Da(t))&&_n(e)?Qa(Tn(e),0,n):e.split(t,n):[]},pr.spread=function(e,t){if("function"!=typeof e)throw new rt(l);return t=null==t?0:Wn(zc(t),0),ja(function(n){var r=n[t],a=Qa(n,0,t);return r&&tn(a,r),Wt(e,this,a)})},pr.tail=function(e){var t=null==e?0:e.length;return t?Pa(e,1,t):[]},pr.take=function(e,t,n){return e&&e.length?Pa(e,0,(t=n||t===o?1:zc(t))<0?0:t):[]},pr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Pa(e,(t=r-(t=n||t===o?1:zc(t)))<0?0:t,r):[]},pr.takeRightWhile=function(e,t){return e&&e.length?Ha(e,Do(t,3),!1,!0):[]},pr.takeWhile=function(e,t){return e&&e.length?Ha(e,Do(t,3)):[]},pr.tap=function(e,t){return t(e),e},pr.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new rt(l);return Cc(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),oc(e,t,{leading:r,maxWait:t,trailing:a})},pr.thru=Hi,pr.toArray=Bc,pr.toPairs=dl,pr.toPairsIn=hl,pr.toPath=function(e){return yc(e)?en(e,fi):Fc(e)?[e]:ro(si(Wc(e)))},pr.toPlainObject=Yc,pr.transform=function(e,t,n){var r=yc(e),a=r||xc(e)||Dc(e);if(t=Do(t,4),null==n){var o=e&&e.constructor;n=a?r?new o:[]:Cc(e)&&kc(o)?mr(Ot(e)):{}}return(a?Xt:Xr)(e,function(e,r,a){return t(n,e,r,a)}),n},pr.unary=function(e){return tc(e,1)},pr.union=Li,pr.unionBy=Ai,pr.unionWith=Pi,pr.uniq=function(e){return e&&e.length?Ra(e):[]},pr.uniqBy=function(e,t){return e&&e.length?Ra(e,Do(t,2)):[]},pr.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?Ra(e,o,t):[]},pr.unset=function(e,t){return null==e||Ga(e,t)},pr.unzip=Mi,pr.unzipWith=Ni,pr.update=function(e,t,n){return null==e?e:Ba(e,t,Wa(n))},pr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Ba(e,t,Wa(n),r)},pr.values=pl,pr.valuesIn=function(e){return null==e?[]:wn(e,il(e))},pr.without=Ti,pr.words=kl,pr.wrap=function(e,t){return fc(Wa(t),e)},pr.xor=Ii,pr.xorBy=Fi,pr.xorWith=Di,pr.zip=Ri,pr.zipObject=function(e,t){return qa(e||[],t||[],Lr)},pr.zipObjectDeep=function(e,t){return qa(e||[],t||[],_a)},pr.zipWith=Gi,pr.entries=dl,pr.entriesIn=hl,pr.extend=Xc,pr.extendWith=Qc,Il(pr,pr),pr.add=Yl,pr.attempt=Sl,pr.camelCase=ml,pr.capitalize=vl,pr.ceil=Wl,pr.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=qc(n))===n?n:0),t!==o&&(t=(t=qc(t))===t?t:0),Ir(qc(e),t,n)},pr.clone=function(e){return Fr(e,m)},pr.cloneDeep=function(e){return Fr(e,h|m)},pr.cloneDeepWith=function(e,t){return Fr(e,h|m,t="function"==typeof t?t:o)},pr.cloneWith=function(e,t){return Fr(e,m,t="function"==typeof t?t:o)},pr.conformsTo=function(e,t){return null==t||Dr(e,t,ol(t))},pr.deburr=gl,pr.defaultTo=function(e,t){return null==e||e!==e?t:e},pr.divide=Ul,pr.endsWith=function(e,t,n){e=Wc(e),t=Da(t);var r=e.length,a=n=n===o?r:Ir(zc(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},pr.eq=pc,pr.escape=function(e){return(e=Wc(e))&&Se.test(e)?e.replace(je,kn):e},pr.escapeRegExp=function(e){return(e=Wc(e))&&Te.test(e)?e.replace(Ne,"\\$&"):e},pr.every=function(e,t,n){var r=yc(e)?Kt:zr;return n&&Xo(e,t,n)&&(t=o),r(e,Do(t,3))},pr.find=qi,pr.findIndex=gi,pr.findKey=function(e,t){return cn(e,Do(t,3),Xr)},pr.findLast=Yi,pr.findLastIndex=yi,pr.findLastKey=function(e,t){return cn(e,Do(t,3),Qr)},pr.floor=Xl,pr.forEach=Wi,pr.forEachRight=Ui,pr.forIn=function(e,t){return null==e?e:Wr(e,Do(t,3),il)},pr.forInRight=function(e,t){return null==e?e:Ur(e,Do(t,3),il)},pr.forOwn=function(e,t){return e&&Xr(e,Do(t,3))},pr.forOwnRight=function(e,t){return e&&Qr(e,Do(t,3))},pr.get=el,pr.gt=mc,pr.gte=vc,pr.has=function(e,t){return null!=e&&qo(e,t,ta)},pr.hasIn=tl,pr.head=wi,pr.identity=Pl,pr.includes=function(e,t,n,r){e=wc(e)?e:pl(e),n=n&&!r?zc(n):0;var a=e.length;return n<0&&(n=Wn(a+n,0)),Ic(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&un(e,t,n)>-1},pr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:zc(n);return a<0&&(a=Wn(r+a,0)),un(e,t,a)},pr.inRange=function(e,t,n){return t=Hc(t),n===o?(n=t,t=0):n=Hc(n),function(e,t,n){return e>=Un(t,n)&&e<Wn(t,n)}(e=qc(e),t,n)},pr.invoke=al,pr.isArguments=gc,pr.isArray=yc,pr.isArrayBuffer=bc,pr.isArrayLike=wc,pr.isArrayLikeObject=Ec,pr.isBoolean=function(e){return!0===e||!1===e||Lc(e)&&$r(e)==Y},pr.isBuffer=xc,pr.isDate=Oc,pr.isElement=function(e){return Lc(e)&&1===e.nodeType&&!Mc(e)},pr.isEmpty=function(e){if(null==e)return!0;if(wc(e)&&(yc(e)||"string"==typeof e||"function"==typeof e.splice||xc(e)||Dc(e)||gc(e)))return!e.length;var t=Vo(e);if(t==J||t==re)return!e.size;if(Zo(e))return!sa(e).length;for(var n in e)if(ut.call(e,n))return!1;return!0},pr.isEqual=function(e,t){return ia(e,t)},pr.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?ia(e,t,o,n):!!r},pr.isError=jc,pr.isFinite=function(e){return"number"==typeof e&&Vn(e)},pr.isFunction=kc,pr.isInteger=Sc,pr.isLength=_c,pr.isMap=Ac,pr.isMatch=function(e,t){return e===t||ca(e,t,Go(t))},pr.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,ca(e,t,Go(t),n)},pr.isNaN=function(e){return Pc(e)&&e!=+e},pr.isNative=function(e){if(Jo(e))throw new a(c);return la(e)},pr.isNil=function(e){return null==e},pr.isNull=function(e){return null===e},pr.isNumber=Pc,pr.isObject=Cc,pr.isObjectLike=Lc,pr.isPlainObject=Mc,pr.isRegExp=Nc,pr.isSafeInteger=function(e){return Sc(e)&&e>=-I&&e<=I},pr.isSet=Tc,pr.isString=Ic,pr.isSymbol=Fc,pr.isTypedArray=Dc,pr.isUndefined=function(e){return e===o},pr.isWeakMap=function(e){return Lc(e)&&Vo(e)==ce},pr.isWeakSet=function(e){return Lc(e)&&$r(e)==le},pr.join=function(e,t){return null==e?"":qn.call(e,t)},pr.kebabCase=yl,pr.last=ji,pr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==o&&(a=(a=zc(n))<0?Wn(r+a,0):Un(a,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):ln(e,fn,a,!0)},pr.lowerCase=bl,pr.lowerFirst=wl,pr.lt=Rc,pr.lte=Gc,pr.max=function(e){return e&&e.length?Vr(e,Pl,ea):o},pr.maxBy=function(e,t){return e&&e.length?Vr(e,Do(t,2),ea):o},pr.mean=function(e){return dn(e,Pl)},pr.meanBy=function(e,t){return dn(e,Do(t,2))},pr.min=function(e){return e&&e.length?Vr(e,Pl,da):o},pr.minBy=function(e,t){return e&&e.length?Vr(e,Do(t,2),da):o},pr.stubArray=Vl,pr.stubFalse=ql,pr.stubObject=function(){return{}},pr.stubString=function(){return""},pr.stubTrue=function(){return!0},pr.multiply=Ql,pr.nth=function(e,t){return e&&e.length?ga(e,zc(t)):o},pr.noConflict=function(){return Tt._===this&&(Tt._=pt),this},pr.noop=Fl,pr.now=ec,pr.pad=function(e,t,n){e=Wc(e);var r=(t=zc(t))?Nn(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return bo(Bn(a),n)+e+bo(Gn(a),n)},pr.padEnd=function(e,t,n){e=Wc(e);var r=(t=zc(t))?Nn(e):0;return t&&r<t?e+bo(t-r,n):e},pr.padStart=function(e,t,n){e=Wc(e);var r=(t=zc(t))?Nn(e):0;return t&&r<t?bo(t-r,n)+e:e},pr.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Qn(Wc(e).replace(Ie,""),t||0)},pr.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Xo(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=Hc(e),t===o?(t=e,e=0):t=Hc(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var a=Kn();return Un(e+a*(t-e+At("1e-"+((a+"").length-1))),t)}return xa(e,t)},pr.reduce=function(e,t,n){var r=yc(e)?nn:mn,a=arguments.length<3;return r(e,Do(t,4),n,a,Br)},pr.reduceRight=function(e,t,n){var r=yc(e)?rn:mn,a=arguments.length<3;return r(e,Do(t,4),n,a,Hr)},pr.repeat=function(e,t,n){return t=(n?Xo(e,t,n):t===o)?1:zc(t),Oa(Wc(e),t)},pr.replace=function(){var e=arguments,t=Wc(e[0]);return e.length<3?t:t.replace(e[1],e[2])},pr.result=function(e,t,n){var r=-1,a=(t=Ua(t,e)).length;for(a||(a=1,e=o);++r<a;){var i=null==e?o:e[fi(t[r])];i===o&&(r=a,i=n),e=kc(i)?i.call(e):i}return e},pr.round=Kl,pr.runInContext=e,pr.sample=function(e){return(yc(e)?kr:ka)(e)},pr.size=function(e){if(null==e)return 0;if(wc(e))return Ic(e)?Nn(e):e.length;var t=Vo(e);return t==J||t==re?e.size:sa(e).length},pr.snakeCase=El,pr.some=function(e,t,n){var r=yc(e)?an:Ma;return n&&Xo(e,t,n)&&(t=o),r(e,Do(t,3))},pr.sortedIndex=function(e,t){return Na(e,t)},pr.sortedIndexBy=function(e,t,n){return Ta(e,t,Do(n,2))},pr.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Na(e,t);if(r<n&&pc(e[r],t))return r}return-1},pr.sortedLastIndex=function(e,t){return Na(e,t,!0)},pr.sortedLastIndexBy=function(e,t,n){return Ta(e,t,Do(n,2),!0)},pr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Na(e,t,!0)-1;if(pc(e[n],t))return n}return-1},pr.startCase=xl,pr.startsWith=function(e,t,n){return e=Wc(e),n=null==n?0:Ir(zc(n),0,e.length),t=Da(t),e.slice(n,n+t.length)==t},pr.subtract=Jl,pr.sum=function(e){return e&&e.length?vn(e,Pl):0},pr.sumBy=function(e,t){return e&&e.length?vn(e,Do(t,2)):0},pr.template=function(e,t,n){var r=pr.templateSettings;n&&Xo(e,t,n)&&(t=o),e=Wc(e),t=Qc({},t,r,_o);var i,c,l=Qc({},t.imports,r.imports,_o),s=ol(l),f=wn(l,s),d=0,h=t.interpolate||Je,p="__p += '",m=tt((t.escape||Je).source+"|"+h.source+"|"+(h===Le?Ve:Je).source+"|"+(t.evaluate||Je).source+"|$","g"),v="//# sourceURL="+(ut.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++St+"]")+"\n";e.replace(m,function(t,n,r,a,o,l){return r||(r=a),p+=e.slice(d,l).replace(Ze,Sn),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),o&&(c=!0,p+="';\n"+o+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=l+t.length,t}),p+="';\n";var g=ut.call(t,"variable")&&t.variable;if(g){if(He.test(g))throw new a(u)}else p="with (obj) {\n"+p+"\n}\n";p=(c?p.replace(we,""):p).replace(Ee,"$1").replace(xe,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Sl(function(){return Fe(s,v+"return "+p).apply(o,f)});if(y.source=p,jc(y))throw y;return y},pr.times=function(e,t){if((e=zc(e))<1||e>I)return[];var n=R,r=Un(e,R);t=Do(t),e-=R;for(var a=gn(r,t);++n<e;)t(n);return a},pr.toFinite=Hc,pr.toInteger=zc,pr.toLength=Vc,pr.toLower=function(e){return Wc(e).toLowerCase()},pr.toNumber=qc,pr.toSafeInteger=function(e){return e?Ir(zc(e),-I,I):0===e?e:0},pr.toString=Wc,pr.toUpper=function(e){return Wc(e).toUpperCase()},pr.trim=function(e,t,n){if((e=Wc(e))&&(n||t===o))return yn(e);if(!e||!(t=Da(t)))return e;var r=Tn(e),a=Tn(t);return Qa(r,xn(r,a),On(r,a)+1).join("")},pr.trimEnd=function(e,t,n){if((e=Wc(e))&&(n||t===o))return e.slice(0,In(e)+1);if(!e||!(t=Da(t)))return e;var r=Tn(e);return Qa(r,0,On(r,Tn(t))+1).join("")},pr.trimStart=function(e,t,n){if((e=Wc(e))&&(n||t===o))return e.replace(Ie,"");if(!e||!(t=Da(t)))return e;var r=Tn(e);return Qa(r,xn(r,Tn(t))).join("")},pr.truncate=function(e,t){var n=C,r=L;if(Cc(t)){var a="separator"in t?t.separator:a;n="length"in t?zc(t.length):n,r="omission"in t?Da(t.omission):r}var i=(e=Wc(e)).length;if(_n(e)){var c=Tn(e);i=c.length}if(n>=i)return e;var l=n-Nn(r);if(l<1)return r;var u=c?Qa(c,0,l).join(""):e.slice(0,l);if(a===o)return u+r;if(c&&(l+=u.length-l),Nc(a)){if(e.slice(l).search(a)){var s,f=u;for(a.global||(a=tt(a.source,Wc(qe.exec(a))+"g")),a.lastIndex=0;s=a.exec(f);)var d=s.index;u=u.slice(0,d===o?l:d)}}else if(e.indexOf(Da(a),l)!=l){var h=u.lastIndexOf(a);h>-1&&(u=u.slice(0,h))}return u+r},pr.unescape=function(e){return(e=Wc(e))&&ke.test(e)?e.replace(Oe,Fn):e},pr.uniqueId=function(e){var t=++st;return Wc(e)+t},pr.upperCase=Ol,pr.upperFirst=jl,pr.each=Wi,pr.eachRight=Ui,pr.first=wi,Il(pr,function(){var e={};return Xr(pr,function(t,n){ut.call(pr.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),pr.VERSION="4.17.21",Xt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){pr[e].placeholder=pr}),Xt(["drop","take"],function(e,t){yr.prototype[e]=function(n){n=n===o?1:Wn(zc(n),0);var r=this.__filtered__&&!t?new yr(this):this.clone();return r.__filtered__?r.__takeCount__=Un(n,r.__takeCount__):r.__views__.push({size:Un(n,R),type:e+(r.__dir__<0?"Right":"")}),r},yr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Xt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==M||3==n;yr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Do(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Xt(["head","last"],function(e,t){var n="take"+(t?"Right":"");yr.prototype[e]=function(){return this[n](1).value()[0]}}),Xt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");yr.prototype[e]=function(){return this.__filtered__?new yr(this):this[n](1)}}),yr.prototype.compact=function(){return this.filter(Pl)},yr.prototype.find=function(e){return this.filter(e).head()},yr.prototype.findLast=function(e){return this.reverse().find(e)},yr.prototype.invokeMap=ja(function(e,t){return"function"==typeof e?new yr(this):this.map(function(n){return aa(n,e,t)})}),yr.prototype.reject=function(e){return this.filter(uc(Do(e)))},yr.prototype.slice=function(e,t){e=zc(e);var n=this;return n.__filtered__&&(e>0||t<0)?new yr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=zc(t))<0?n.dropRight(-t):n.take(t-e)),n)},yr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},yr.prototype.toArray=function(){return this.take(R)},Xr(yr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=pr[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);a&&(pr.prototype[t]=function(){var t=this.__wrapped__,c=r?[1]:arguments,l=t instanceof yr,u=c[0],s=l||yc(t),f=function(e){var t=a.apply(pr,tn([e],c));return r&&d?t[0]:t};s&&n&&"function"==typeof u&&1!=u.length&&(l=s=!1);var d=this.__chain__,h=!!this.__actions__.length,p=i&&!d,m=l&&!h;if(!i&&s){t=m?t:new yr(this);var v=e.apply(t,c);return v.__actions__.push({func:Hi,args:[f],thisArg:o}),new gr(v,d)}return p&&m?e.apply(this,c):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})}),Xt(["pop","push","shift","sort","splice","unshift"],function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);pr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(yc(a)?a:[],e)}return this[n](function(n){return t.apply(yc(n)?n:[],e)})}}),Xr(yr.prototype,function(e,t){var n=pr[t];if(n){var r=n.name+"";ut.call(or,r)||(or[r]=[]),or[r].push({name:t,func:n})}}),or[mo(o,b).name]=[{name:"wrapper",func:o}],yr.prototype.clone=function(){var e=new yr(this.__wrapped__);return e.__actions__=ro(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ro(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ro(this.__views__),e},yr.prototype.reverse=function(){if(this.__filtered__){var e=new yr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},yr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=yc(e),r=t<0,a=n?e.length:0,o=function(e,t,n){for(var r=-1,a=n.length;++r<a;){var o=n[r],i=o.size;switch(o.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=Un(t,e+i);break;case"takeRight":e=Wn(e,t-i)}}return{start:e,end:t}}(0,a,this.__views__),i=o.start,c=o.end,l=c-i,u=r?c:i-1,s=this.__iteratees__,f=s.length,d=0,h=Un(l,this.__takeCount__);if(!n||!r&&a==l&&h==l)return za(e,this.__actions__);var p=[];e:for(;l--&&d<h;){for(var m=-1,v=e[u+=t];++m<f;){var g=s[m],y=g.iteratee,b=g.type,w=y(v);if(b==N)v=w;else if(!w){if(b==M)continue e;break e}}p[d++]=v}return p},pr.prototype.at=zi,pr.prototype.chain=function(){return Bi(this)},pr.prototype.commit=function(){return new gr(this.value(),this.__chain__)},pr.prototype.next=function(){this.__values__===o&&(this.__values__=Bc(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},pr.prototype.plant=function(e){for(var t,n=this;n instanceof vr;){var r=hi(n);r.__index__=0,r.__values__=o,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},pr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof yr){var t=e;return this.__actions__.length&&(t=new yr(this)),(t=t.reverse()).__actions__.push({func:Hi,args:[Ci],thisArg:o}),new gr(t,this.__chain__)}return this.thru(Ci)},pr.prototype.toJSON=pr.prototype.valueOf=pr.prototype.value=function(){return za(this.__wrapped__,this.__actions__)},pr.prototype.first=pr.prototype.head,Ft&&(pr.prototype[Ft]=function(){return this}),pr}();Tt._=Dn,(a=function(){return Dn}.call(t,n,t,r))===o||(r.exports=a)}).call(this)}).call(this,n(250),n(251)(e))},1166:function(e,t,n){"use strict";var r=n(1148),a=n.n(r),o=n(71),i=a.a.create({baseURL:o.a,headers:{"X-Auth-Origin":"E-GOVERNANCE"}});t.a=i},1167:function(e,t,n){"use strict";n.d(t,"b",function(){return c});var r=n(1),a=n(1170),o=Object(a.a)()?r.useLayoutEffect:r.useEffect,i=function(e,t){var n=r.useRef(!0);o(function(){return e(n.current)},t),o(function(){return n.current=!1,function(){n.current=!0}},[])},c=function(e,t){i(function(t){if(!t)return e()},t)};t.a=i},1168:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return c}),n.d(t,"d",function(){return l}),n.d(t,"c",function(){return u});var r=n(69),a=(n(1),n(1303)),o=n(1214);function i(e,t){"function"===typeof e?e(t):"object"===Object(r.a)(e)&&e&&"current"in e&&(e.current=t)}function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(e){return e});return r.length<=1?r[0]:function(e){t.forEach(function(t){i(t,e)})}}function l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(o.a)(function(){return c.apply(void 0,t)},t,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})}function u(e){var t,n,r=Object(a.isMemo)(e)?e.type.type:e.type;return!!("function"!==typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render)&&!!("function"!==typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render)}},1169:function(e,t,n){"use strict";var r=n(1147),a=n(1148),o=n.n(a),i=n(71);function c(){c=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(L){u=function(e,t,n){return e[t]=n}}function s(e,t,n,a){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),c=new S(a||[]);return r(i,"_invoke",{value:x(e,n,c)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(L){return{type:"throw",arg:L}}}e.wrap=s;var d={};function h(){}function p(){}function m(){}var v={};u(v,o,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(_([])));y&&y!==t&&n.call(y,o)&&(v=y);var b=m.prototype=h.prototype=Object.create(v);function w(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function E(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=f(e[a],e,o);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(s).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function x(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return C()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=O(i,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function O(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=f(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function _(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=m,r(b,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:p,configurable:!0}),p.displayName=u(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},w(E.prototype),u(E.prototype,i,function(){return this}),e.AsyncIterator=E,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new E(s(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},w(b),u(b,l,"Generator"),u(b,o,function(){return this}),u(b,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var l=n(1204).a.load();Object(r.a)(c().mark(function e(){var t,n;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l;case 2:return t=e.sent,e.next=5,t.get();case 5:n=e.sent,n.visitorId;case 7:case"end":return e.stop()}},e)}))();var u=o.a.create({baseURL:i.a,headers:{"X-Auth-Origin":"TDVS"}});u.defaults.params={},u.interceptors.request.use(function(e){var t=sessionStorage.getItem("token"),n=sessionStorage.getItem("univcode");return n&&(e.params.univcode=n),t&&(e.headers.Authorization=t),e},function(e){return Promise.reject(e)}),t.a=u},1170:function(e,t,n){"use strict";function r(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}n.d(t,"a",function(){return r})},1171:function(e,t,n){"use strict";var r=n(1220),a="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),o=Object.prototype.toString,i=Array.prototype.concat,c=Object.defineProperty,l=n(1272)(),u=c&&l,s=function(e,t,n,r){var a;t in e&&("function"!==typeof(a=r)||"[object Function]"!==o.call(a)||!r())||(u?c(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},f=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);a&&(o=i.call(o,Object.getOwnPropertySymbols(t)));for(var c=0;c<o.length;c+=1)s(e,o[c],t[o[c]],n[o[c]])};f.supportsDescriptors=!!u,e.exports=f},1172:function(e,t,n){e.exports=n.p+"static/media/rcu_logo.a2ed2d98.jpeg"},1173:function(e,t,n){e.exports=n.p+"static/media/demo_logo.d6ebe4f2.jpg"},1174:function(e,t,n){e.exports=n.p+"static/media/bcu_logo.292198b1.jpeg"},1175:function(e,t,n){e.exports=n.p+"static/media/gcg_logo.01eb8f62.jpg"},1176:function(e,t,n){e.exports=n.p+"static/media/srun_logo.618346f8.jpg"},1177:function(e,t,n){e.exports=n.p+"static/media/vskub_logo.41c6edb8.jpg"},1178:function(e,t,n){e.exports=n.p+"static/media/surana_logo.e3a832b0.jpg"},1180:function(e,t,n){"use strict";var r=n(11),a=n.n(r),o=n(12),i=n.n(o),c=n(1),l=n.n(c),u=n(77),s=n(514),f=n(515),d=n(15);function h(e){var t=e.children,n=e.className,r=e.content,o=e.fluid,c=e.text,p=e.textAlign,m=i()("ui",Object(u.a)(c,"text"),Object(u.a)(o,"fluid"),Object(u.d)(p),"container",n),v=Object(s.a)(h,e),g=Object(f.a)(h,e);return l.a.createElement(g,a()({},v,{className:m}),d.a.isNil(t)?r:t)}h.handledProps=["as","children","className","content","fluid","text","textAlign"],h.propTypes={},t.a=h},1181:function(e,t,n){"use strict";var r=function(e){return+setTimeout(e,16)},a=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},a=function(e){return window.cancelAnimationFrame(e)});var o=0,i=new Map;function c(e){i.delete(e)}var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=o+=1;return function t(a){if(0===a)c(n),e();else{var o=r(function(){t(a-1)});i.set(n,o)}}(t),n};l.cancel=function(e){var t=i.get(e);return c(e),a(t)},t.a=l},1182:function(e,t,n){e.exports=n(1242)},1183:function(e,t,n){"use strict";var r=n(75),a=n(1151),o=n(1150),i=n(69),c=n(12),l=n.n(c),u=n(1216),s=n(1168),f=n(1),d=n(1159),h=["children"],p=f.createContext({});function m(e){var t=e.children,n=Object(d.a)(e,h);return f.createElement(p.Provider,{value:n},t)}var v=n(185),g=n(186),y=n(188),b=n(1184),w=function(e){Object(y.a)(n,e);var t=Object(b.a)(n);function n(){return Object(v.a)(this,n),t.apply(this,arguments)}return Object(g.a)(n,[{key:"render",value:function(){return this.props.children}}]),n}(f.Component),E=n(1257),x="none",O="appear",j="enter",k="leave",S="prepare",_="start",C="active",L="end",A="prepared",P=n(1170);function M(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var N=function(e,t){var n={animationend:M("Animation","AnimationEnd"),transitionend:M("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(Object(P.a)(),"undefined"!==typeof window?window:{}),T={};if(Object(P.a)()){var I=document.createElement("div");T=I.style}var F={};function D(e){if(F[e])return F[e];var t=N[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a<r;a+=1){var o=n[a];if(Object.prototype.hasOwnProperty.call(t,o)&&o in T)return F[e]=t[o],F[e]}return""}var R=D("animationend"),G=D("transitionend"),B=!(!R||!G),H=R||"animationend",z=G||"transitionend";function V(e,t){return e?"object"===Object(i.a)(e)?e[t.replace(/-\w/g,function(e){return e[1].toUpperCase()})]:"".concat(e,"-").concat(t):null}var q=function(e){var t=Object(f.useRef)(),n=Object(f.useRef)(e);n.current=e;var r=f.useCallback(function(e){n.current(e)},[]);function a(e){e&&(e.removeEventListener(z,r),e.removeEventListener(H,r))}return f.useEffect(function(){return function(){a(t.current)}},[]),[function(e){t.current&&t.current!==e&&a(t.current),e&&e!==t.current&&(e.addEventListener(z,r),e.addEventListener(H,r),t.current=e)},a]},Y=Object(P.a)()?f.useLayoutEffect:f.useEffect,W=n(1181),U=[S,_,C,L],X=[S,A],Q=!1,K=!0;function J(e){return e===C||e===L}var Z=function(e,t,n){var r=Object(E.a)("none"),a=Object(o.a)(r,2),i=a[0],c=a[1],l=function(){var e=f.useRef(null);function t(){W.a.cancel(e.current)}return f.useEffect(function(){return function(){t()}},[]),[function n(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var o=Object(W.a)(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o},t]}(),u=Object(o.a)(l,2),s=u[0],d=u[1];var h=t?X:U;return Y(function(){if("none"!==i&&i!==L){var e=h.indexOf(i),t=h[e+1],r=n(i);r===Q?c(t,!0):t&&s(function(e){function n(){e.isCanceled()||c(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,i]),f.useEffect(function(){return function(){d()}},[]),[function(){c(S,!0)},i]};var $=function(e){var t=e;"object"===Object(i.a)(e)&&(t=e.transitionSupport);var n=f.forwardRef(function(e,n){var i=e.visible,c=void 0===i||i,d=e.removeOnLeave,h=void 0===d||d,m=e.forceRender,v=e.children,g=e.motionName,y=e.leavedClassName,b=e.eventProps,L=function(e,n){return!(!e.motionName||!t||!1===n)}(e,f.useContext(p).motion),P=Object(f.useRef)(),M=Object(f.useRef)(),N=function(e,t,n,i){var c=i.motionEnter,l=void 0===c||c,u=i.motionAppear,s=void 0===u||u,d=i.motionLeave,h=void 0===d||d,p=i.motionDeadline,m=i.motionLeaveImmediately,v=i.onAppearPrepare,g=i.onEnterPrepare,y=i.onLeavePrepare,b=i.onAppearStart,w=i.onEnterStart,L=i.onLeaveStart,P=i.onAppearActive,M=i.onEnterActive,N=i.onLeaveActive,T=i.onAppearEnd,I=i.onEnterEnd,F=i.onLeaveEnd,D=i.onVisibleChanged,R=Object(E.a)(),G=Object(o.a)(R,2),B=G[0],H=G[1],z=Object(E.a)(x),V=Object(o.a)(z,2),W=V[0],U=V[1],X=Object(E.a)(null),$=Object(o.a)(X,2),ee=$[0],te=$[1],ne=Object(f.useRef)(!1),re=Object(f.useRef)(null);function ae(){return n()}var oe=Object(f.useRef)(!1);function ie(){U(x,!0),te(null,!0)}function ce(e){var t=ae();if(!e||e.deadline||e.target===t){var n,r=oe.current;W===O&&r?n=null===T||void 0===T?void 0:T(t,e):W===j&&r?n=null===I||void 0===I?void 0:I(t,e):W===k&&r&&(n=null===F||void 0===F?void 0:F(t,e)),W!==x&&r&&!1!==n&&ie()}}var le=q(ce),ue=Object(o.a)(le,1)[0],se=function(e){var t,n,a;switch(e){case O:return t={},Object(r.a)(t,S,v),Object(r.a)(t,_,b),Object(r.a)(t,C,P),t;case j:return n={},Object(r.a)(n,S,g),Object(r.a)(n,_,w),Object(r.a)(n,C,M),n;case k:return a={},Object(r.a)(a,S,y),Object(r.a)(a,_,L),Object(r.a)(a,C,N),a;default:return{}}},fe=f.useMemo(function(){return se(W)},[W]),de=Z(W,!e,function(e){if(e===S){var t=fe[S];return t?t(ae()):Q}var n;return me in fe&&te((null===(n=fe[me])||void 0===n?void 0:n.call(fe,ae(),null))||null),me===C&&(ue(ae()),p>0&&(clearTimeout(re.current),re.current=setTimeout(function(){ce({deadline:!0})},p))),me===A&&ie(),K}),he=Object(o.a)(de,2),pe=he[0],me=he[1],ve=J(me);oe.current=ve,Y(function(){H(t);var n,r=ne.current;ne.current=!0,!r&&t&&s&&(n=O),r&&t&&l&&(n=j),(r&&!t&&h||!r&&m&&!t&&h)&&(n=k);var a=se(n);n&&(e||a[S])?(U(n),pe()):U(x)},[t]),Object(f.useEffect)(function(){(W===O&&!s||W===j&&!l||W===k&&!h)&&U(x)},[s,l,h]),Object(f.useEffect)(function(){return function(){ne.current=!1,clearTimeout(re.current)}},[]);var ge=f.useRef(!1);Object(f.useEffect)(function(){B&&(ge.current=!0),void 0!==B&&W===x&&((ge.current||B)&&(null===D||void 0===D||D(B)),ge.current=!0)},[B,W]);var ye=ee;return fe[S]&&me===_&&(ye=Object(a.a)({transition:"none"},ye)),[W,me,ye,null!==B&&void 0!==B?B:t]}(L,c,function(){try{return P.current instanceof HTMLElement?P.current:Object(u.a)(M.current)}catch(e){return null}},e),T=Object(o.a)(N,4),I=T[0],F=T[1],D=T[2],R=T[3],G=f.useRef(R);R&&(G.current=!0);var B,H=f.useCallback(function(e){P.current=e,Object(s.b)(n,e)},[n]),z=Object(a.a)(Object(a.a)({},b),{},{visible:c});if(v)if(I===x)B=R?v(Object(a.a)({},z),H):!h&&G.current&&y?v(Object(a.a)(Object(a.a)({},z),{},{className:y}),H):m||!h&&!y?v(Object(a.a)(Object(a.a)({},z),{},{style:{display:"none"}}),H):null;else{var W,U;F===S?U="prepare":J(F)?U="active":F===_&&(U="start");var X=V(g,"".concat(I,"-").concat(U));B=v(Object(a.a)(Object(a.a)({},z),{},{className:l()(V(g,I),(W={},Object(r.a)(W,X,X&&U),Object(r.a)(W,g,"string"===typeof g),W)),style:D}),H)}else B=null;return f.isValidElement(B)&&Object(s.c)(B)&&(B.ref||(B=f.cloneElement(B,{ref:H}))),f.createElement(w,{ref:M},B)});return n.displayName="CSSMotion",n}(B),ee=n(48),te=n(135),ne="add",re="keep",ae="remove",oe="removed";function ie(e){var t;return t=e&&"object"===Object(i.a)(e)&&"key"in e?e:{key:e},Object(a.a)(Object(a.a)({},t),{},{key:String(t.key)})}function ce(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ie)}var le=["component","children","onVisibleChanged","onAllRemoved"],ue=["status"],se=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,n=function(e){Object(y.a)(o,e);var n=Object(b.a)(o);function o(){var e;Object(v.a)(this,o);for(var t=arguments.length,i=new Array(t),c=0;c<t;c++)i[c]=arguments[c];return e=n.call.apply(n,[this].concat(i)),Object(r.a)(Object(te.a)(e),"state",{keyEntities:[]}),Object(r.a)(Object(te.a)(e),"removeKey",function(t){var n=e.state.keyEntities.map(function(e){return e.key!==t?e:Object(a.a)(Object(a.a)({},e),{},{status:oe})});return e.setState({keyEntities:n}),n.filter(function(e){return e.status!==oe}).length}),e}return Object(g.a)(o,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,c=r.onVisibleChanged,l=r.onAllRemoved,u=Object(d.a)(r,le),s=o||f.Fragment,h={};return se.forEach(function(e){h[e]=u[e],delete u[e]}),delete u.keys,f.createElement(s,u,n.map(function(n,r){var o=n.status,u=Object(d.a)(n,ue),s=o===ne||o===re;return f.createElement(t,Object(ee.a)({},h,{key:u.key,visible:s,eventProps:u,onVisibleChanged:function(t){null===c||void 0===c||c(t,{key:u.key}),t||0===e.removeKey(u.key)&&l&&l()}}),function(e,t){return i(Object(a.a)(Object(a.a)({},e),{},{index:r}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=ce(n);return{keyEntities:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=ce(e),c=ce(t);i.forEach(function(e){for(var t=!1,i=r;i<o;i+=1){var l=c[i];if(l.key===e.key){r<i&&(n=n.concat(c.slice(r,i).map(function(e){return Object(a.a)(Object(a.a)({},e),{},{status:ne})})),r=i),n.push(Object(a.a)(Object(a.a)({},l),{},{status:re})),r+=1,t=!0;break}}t||n.push(Object(a.a)(Object(a.a)({},e),{},{status:ae}))}),r<o&&(n=n.concat(c.slice(r).map(function(e){return Object(a.a)(Object(a.a)({},e),{},{status:ne})})));var l={};return n.forEach(function(e){var t=e.key;l[t]=(l[t]||0)+1}),Object.keys(l).filter(function(e){return l[e]>1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==ae})).forEach(function(t){t.key===e&&(t.status=re)})}),n}(r,o).filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==oe||e.status!==ae})}}}]),o}(f.Component);return Object(r.a)(n,"defaultProps",{component:"div"}),n}(B);n.d(t,"b",function(){return m}),n.d(t,"a",function(){return fe});t.c=$},1184:function(e,t,n){"use strict";var r=n(248);var a=n(247);function o(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,o=Object(r.a)(e);if(t){var i=Object(r.a)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Object(a.a)(this,n)}}n.d(t,"a",function(){return o})},1187:function(e,t,n){e.exports=n.p+"static/media/sdu_logo.d4afec09.jpeg"},1188:function(e,t,n){e.exports=n.p+"static/media/acu_logo.cb6e4a77.jpg"},1189:function(e,t){e.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCABeAOIDASIAAhEBAxEB/8QAHQABAAICAwEBAAAAAAAAAAAAAAUGAQcCBAgDCf/EAEMQAAEDAwMCBAQDAwgJBQAAAAECAwQABQYHERIhMRMiQVEIFBVhIzJxFhdCJDM3OHaRk9FSVmJ1gaGxsrNjd5Kitf/EABsBAQABBQEAAAAAAAAAAAAAAAABAwQFBgcC/8QALhEAAQQBBAEDBAEEAwEAAAAAAQACAxEEBRIhMUEGIlETMkJx0RQVYYEWYoKh/9oADAMBAAIRAxEAPwD9USTv3rG596HvSiJufem596b11nLnbmZzNrdnMImSEKcaYU4A44hO3JQT3IG4ry5zW/caUgF3S7O596bn3pSvShNz703PvSlETc+9Nz71VLrqtpzZLg/abtmFuizIyuDzLizyQrvsen3rqjWvSjfb9vLV1/8AUP8AlWNdrGnxuLHzsBHje3+Vet0zNeA5sLyD/wBT/Cuu596bn3rpwrxarlbUXi33BiTBcQXUyGlhSCkdzuP0NVX99elH+vlq/wAQ/wCVVptQxMYNdNK1od1bgL/VnlU4sPJnJEUbnV3QJr90rtufem596pP769J9t/28tX+If8qkbzqVgeOux2b5lMGEuUwmSyl1ZBcaV2UOnY1Tbq+nuaXtnYQOzubQvq+VUOm5jXBhhdZ6G08/rhWXc+9Nz71BWDO8PylqU9juQxJ6ISQqQplW4bBBIJ/uP91Q41r0oJ2/bu1/4h/yqXapgsY2R0zA13R3CjXdG+V5bp+W9xY2JxI7G02P3xwrrufem596jrxkVjsFoXfrzc2IlvbSlapDh8oCttv133FdfGcxxfM4jk7F71HuLDLnhOLaJ8qtt9iCAe1XByoBKIC8byLAsWR813X+VREEpjMwadoNXRq/i+rUzufem596UquqSbn3pufelKIm596bn3pSiJufem596Uoibn3pufelKIuQ7UoO1KIuJ70oe9fF+XEjKaRJlMtKfX4TQWsJLi9ieKd+52B6D2qC4NFlSATwFW9RdQ7FpvYF3y9LK1KPCNGQoByQ5/op37D1J7AVq2TjeK57kVu18iZy/Cs0JlL05pbhDsZxoDZpJ/gB7FPrv035VEZmybNrtDu+sSDNx+QSizPJH8kY6jilxB9j+b3JCuo6VVdRY0lm4XCDaMFuNtwK0XVD9zTH8qpbiyD4vLqOHHbhtulII7E1yrXNckyXynJiBjifTYzu3h7fcJHFvTCLJ8bRxyug6RpLIGxiCQh8jbc8bdpa7gsaD2+6HzuPPC9B6aavYxqciYm0eJGlQ3FBUV8jxFNb+VwAeh9R6HoavW9eaMktDF3zvDLvoVaXIL0iKHDcmk8YfgoISUOpH8SR0WD1O4HU9a9HR5bCnTCVLYXLabSt1pCxySD2Vx33AJB23rcPTuqZOax8OZTnMIG9vDH2LG3/ACB3XHkFazreBj4rmS4thrwTsdy5lGiHV8nro/IXZpQdaVsywa84fE/huM2w2jIINpbauF3unCa+FK5PJ4joQTsO3pV4yXQvSmHilznRcOjtSGLe8824l13dC0tkg/m9xVe+LNsu2HGmgsoK7oUhQ7jdG29RmXaDZda8UuN0j6tXucY0Rb6or6lhDqAndSSQs9xv6VyjOxo4dX1D6WC2YbWE/YNpLSSfd2T2a54XRMSeSTTcIPzDEdzx+Z3AObQ9vgdc8cqe+FXeVphMiSRzZ+ovthJPTipCOQ+3c/31TrhprhDXxE2/DGseZFlegeMuIFr4qX4azvvvv3A9fStnfDjcrZctLoSrZambf4D7rL7bSlKC3Qdy4Sok7qBB71rnU3FG82+IyJjjt0lW9Mm2oPzEU7OJ4oWrp+u21ec3Fj/47phDGzOD4gL8g/jZHAPRv/a9YmVJ/fNQBcYgWyE14rzQPJHY/wDhVm1T+HjHpeLFnTbEoUa8mQ2QtUlSB4XXmN1kj2r76z6YW66aYG8O21ByCxWxhKX0qJIbaALiB12I25ddqseI4pjuiFmuEu9ZrKfhzX2uUi6O+VtQBASD96vKhb8gs6g26iRCuEcgLQd0uNrT3H2INbK305gZcM7HwtjllYA6MFpDa3bXCgObPf8ACwJ13NxpYnNldIyN5LXncC69u4GyeOOv5Wsfh0tOKPabR7pa7U0xLuCFRbopKlEvLbKk9dz03B36bd611iOmuE5brlkFqi2FkY3YGi2YyVr4LeGyep33/NzPf+GpXQS+fsIxn2J3V3icecdnJB9UoBSoj9eKP76sfwwWZ1vEbll0wEysgnuPKUe5Qkkf9xXWuYEONrMWl4T4m2zc54ocfT9pHX5PokefKzmZLPpcmoZbJHe/a1ps8/U9wP8A5YCB8Xwvh8Rz/wA8ximmsAgOXq4t8m0n8rKCEj/mr/61F6NNt6f6z5VpsgKRDlJ+YhpUfRICk/r5Fn/41B5tld9uGv7t3xnFJOSKxVkR0RWt9kL2IUskA9lLP/EVD5LmeWx9V8b1FyfBZWM8XG4jgdKimQgEhR3IHUIX/wAhWOztUx26s7VRe6OZrAdrtv0gNjvdW37iT34V7h6fO7TW6bxtfE5xG5t/UJ3t9t7vtAHXlet6VhBCkhSSCCNwfcVmuzg2LXLkpSlSiUpSiJSlKIlKUoi5DtSg7Uoi6lynN2yDJuL6HVtxmlvLS0grWUpG5CUjqT07V5mat2VfEhPuuXoyFqyQrCSmzxS55mnR5gtzbqncDqv36DoDXqIgbk1ovUbQK7XHI1XfTu7fR49+Py98YQ4UI8MndTiUj8wO3VHufYmtN9X4GVmRxmNhliaTujadpcT9pv4aeSP9+Fs3prMx8V7w9wjkIG15G4NH5Cvlw4B5+PNqOgZBeNZ7k1p08xDvOPW2L4N5vJb8PxZfHyuxz6KBB4j+Icidga6TWS5ngsVnRKzzYWWXhcpSPxWytiHb+n4TxPqU7k79EJO3XpUhn+L4tZGMf0z0/wAhkW3KrYVXCA00s8ZDwTufHI6BxYB4k+xHQGoK1ZVpRMw7JUZQiRi+U3h5MO7iOFF4vE9Vtp7hsqBUtH6j2rT5nzY8xjyJg2eiDJv4LdoJiaarc3ge+zyXjk0tjiZHNEHwxF0Nghm3ndZAlcO9p5PsoWAw8C1LT0yPhxuFykWm8My4F8aBtmPDk44JijsVb9w2ntv3VuE9xvUFPxPUvTq3s66XDJGlX558KucCQoJStlZADPfYkeqB+X06pNS2nT1shagQcX1YhpXklsj/AC9iu61kNy2D/N9T3WBvwUevUg+YCpGD8Ol4fzNUTJMjk3DDIchVwixnn1KceeWfMhY9O3mV6g/c1H9BkahEDgxu2hxaxgeR9B/BLng/BugPaG9XuXsZcOFIRmPFloL3Ft/WZyA1h/yKsn3F3ZG1biwjK4ubYxAyaHFfjNzW+fhPoKVJIOxH3G++xHQjrU7XzYZZjstsMNIbaaSEIQgbJSkdAAPQV9K67jtkZE1srtzgBZqrPk14XN5XMdI50YppJod0Pi15v1tsutOb35VqhYcmRZbVN+Yt77PFKnPKOqiV9fX0FbSxI5/lGntyhZ5ambZd5SJERppCQE+GW9kKOylepPrVSzbN9frTqta8DxmJp8uBkDUuVbnp4m+M0zGS2Vh7gePIlzpx6dOtWTWzKdS8IwWXmWCsYzINkhyJ10Zu/wAxs4223y4seER5iQr83TtWCxfTbcbNmzTO9xlFOaSKrx0L9oNDlZfI1t2RiRYgiY0RmwQDd+eyRzVnhUnQiyau4KqZit5xduNaAiRJQ+opWpcniAkBQV+U8faqlIt3xEyc+Y1GcwFr6rHZ+XQkJR4PDiU9U+Jvvso+tXbJtQtfcd0Yb1MVD0+cmssfUpcfab4Pya0ILSW+vLxQVK5bnjtttVrwHUDLtQdOrhKhQbNbs5tMiRap8GUp1UKPcGlbdeP4haWkpcSR1KVise/0XEcSHDbkyBkTrbRbdiq/H8fH7KvW+qJBky5ZgjLpBTuHVR7/AC/Lz+lqfOk/EjqFYF45fcAYTFW6h4mOlCF8knp1Lh6V6GwqDLtmHWW3T2SzJjQGWnWyRuhaUAEdPvWrtMs518zhvMUXKJp/Hex+dLscPwBN4uXBko87nI7+AUqPbzbgVy0vzfXzNhlf1eLp/H+gzZtkj/LCb+JcGOHFa+R/mDyO+3mrJ6X6ebpmU/MdO+V7mhpLyDwCSOgPlWGoay7Px2YzYmRsaS6mgjkgA9k/Cqes2luoj2e3W84JZnZcLIYKWZhbWgAK6BaTuR34JO/3NbYk23KcC0piWfA7a1NvNtjR2mmVgKS4vkPFPce6j3qt6L57rBmWU5TZ8/h4bEj4rPXapDVqEr5hb/Btxp4eKSnwVoWSP4txXWy7Otd4uscXTjDoWAvwp8B67NPThM8eLEaU22S9wPHktxagjiNvKd+xqni+l8bCyMjJge4PmB8j2WbOzjizz55XvI17Iy4IMeZrS2KvB91Chu55oceOFVNI7HrZiebPTrhhiW4uQTUuXWW8EKW2jdRPDZfQbqPofSpT4hLDqtm1zGO2TEkTrFGLUmPKb4h0OlJCxyKx06+1TeZ5f8QNu1Og4TisbTxUG9xpk23PXATfGbajeCFpe4HbkS+NuPTYHevq5f8A4mMfvNg/aazYDcbRcrvHt876I1PVJjMub8n/AD+UJTt1J6DcVZt9HRDS3aV/USfTcbPLb55I+3onk+bV0fU0p1BupfRZvaK6NccA/d2Bx3VeFZdHZeokjHXI+o1oRBlQ1oYi7ABTrKUAclbKO53/AEq+1pHKs3+ISFq0zp5jMTTpUS6QZd0t0ieJ3iIjMONIKXuB28Ql0HyjbYGuyjPdbsLy7GrdqpacJk2LJ7gLO1Lx92Ul6JMU2tbRcQ/0UhXhqT5TuCRWzYOIcPHZAXl+0Vbuz++lgcqcZMzpg0Ns3Q6H67W5aVrXVHPM6tGTY1gGmdosku/ZA3LlrkXl51ESJFjhHNSktDmpSlOISkDp33qrZRn/AMQ2mUSJlee2vTyfjiLhEiXFNmcmomNtvvIZDjfi7oUUqcSSDtuAau6Vut50rTutedaz4LerCMKiYVItOQXaHY2PqvzfzDcp/n51eGQnwxx9PNXayLLtY28wx/T/ABtOGN3eXj794ucie1Lcj+I08y0pDAQpKgkl3ccuuwpSLbFK0ZjmYfElkmS5RjMZ3TJl7FpceI+6uJcCl5TsdDwKR4vQALCTv6g1Hr1f12vGhkLVvDscxCZMit3By7294St3ExpK2t4oSrc+RtSylR3PYdaUi9B0rXMLLc4maNjN0XfClXd2D9SanJMn6P8ALfnDit/xQPC3J/2vtXz0PybV7MscaynU60Y3bI9zYbk22NbEyBIS2onZT4dJA5J4KAHUb7HrUItmDtSg7Uoi4nvSh70oi8/ag43edHs5c1kxmEbpbJalC7RXfM4xz23UlZ3KUkgbH+E9D0NRFnwrM8wF210umNxJF1cR49js7iOKVBO3F1ae6yEjdIPVR6n0r0o8w1IbUy+0hxtYKVoWAUqB7gg9CK1Rk+DamztYLPklmyRMbH4rYSUDYJjoG3Not9l8/RXp9thvz7VvTTceX6sQe+JzwRG2qZI7gyc+B3t6B56W5adrrpo/pyFrJAyjI67cxvIj48nq+yOO1RLY1knxL5Lb7herULLj2PbJfU2PxXpPQrQhZAUOo7fwj7mvSjSA02ltO/FICRudzsPvXFmOxGSUR2G2kqUVkISEgqJ3J6epPc19K2XRdG/tbXySvMk0ht7yKuuBwOAAOgsFqmp/3AtZGzZEwU1o5q+TyeSSeylKUrOLFLVOZ/1itNP90X7/ALY9S3xBf0GZ9/Z2f/4VVGaw2jO4uTYZqRgeMpyR/GXpkedaESm4z0mLKaCCppxzZHJC0IVxJG4361WNQ8l1o1Jw26af2rQO72VzIo6rc5crpeIBjQmnPK46pLTqlr2SVbJSNydqmukUlqh/VNn/ANlIv/jbrncz+7DWyz5MhBbsOpLLNmuah0QzeGUExHT6AuthbJ9yluu7rraMnc0flaf4RhU/IJNxt/01v5V+OyiMEJSEqc8ZxPlO23l3PSpHI8dn6yaU3LHb5jlxxS4yEfyJM11lx+JLZKVx5KVMrWno4lKh136HtvQdIo74f/5/Uv8A9wLr/wBGq5aAdtRv7fXf/q3UToRB1QxDT7Lb9nOCPJye53+ZeBaIsthSpJWhsfhuc/DAUpKiORGw71y0CVqJbLplcDL9K7rj0a+X6ff2JsifEebSl4o4sKS04pXPYE77cenehRSDaUYf8SzqQCiJqFjwc39FXC3q2P8AxUw8P8Os6XM/tLqtqPqKs82WZbGKW5XcBqGnk+R9i+6sfqiu9rlYMnl2uwZjg1iN4yHEbw1co0FDyGlymFJUzIZClkJG7bhPUjqkVK6L4dNwTTSyY/d9jdfBVMuigQeU19annzuOh/EWob/anhFS9X5OeRdZcAc07tVluF0+jX0Fq7S3I7Ia5wuRCm0KPLfbYbbdTWw8Dl6kS7fIXqVZrBbpoe2jos812S2priOqi4hBCt9+gBG1a2zm86nM6x2bJLLojfbxa8cg3KAJTFzgNiWZJjKSttLjqVBI8FQPIA9RtUg9qBrZf7zj9utui18xuIq7x1XadOn259tMAb+Kni26pe56bFI36URQurd5zex/EBh0zAcJj5Tcji92QuE9dEQEpaMiLu54i0qBIISOO3Xf7VG3zJdTcq1E04tOremsXCrM3kBmRH492RdTNuLUZ0sR1cEJ8BOxcXzIO5QE9N96lMsuWqTOu1vy+16I3252iyWqdZhJZucBAlF95haXkJW6FBADStwoBXUdKtGvFozKfasSvOFY6/e5uO5TCu78BiQ0y67GQh1LgQp1SUb7Oep96lE1Xw3UKVlGN6k6X/RJF6x9iZBet13W40xNiyfD5APICi2tKmkqHlIPXeqnkOsmquI2357Wf4eYiMZZeaTcLpbL/HuDMdJcSA+qO4hCyhKik9N1DbfbpUzmMrViFmOIam45p9crtENnlW68443dI7MiI66tpxt3zrDLhSW1IOytxy6HY1Bam3HVzWDDJumbOhN5sCMgUzGfutxu8BTEJkOoWt0padWtZCUnZIHUkdqgIrH8Qp5HTMjqDqDaCD79Ha20plkvCQWkeKlJSF8RyCSdyN++3QdK0jr6NRrrd8StmIaUXa/xMcyC3396cxPhstuoZDgWylLriVc/MOpHH71uCFcrhKsLV1k2KTFmuRfHVbVuNqdbc47+CVJJQVb9NwdvvtTwi17pZ/Stq/8A75tv/wCczWz2o0dhrwGGW22+vkQkBPU7noOnXc1pDSedqbH1Ny655Hoze7Lbcvnx5aJj9yguphpZhoaIcS26pRKlN9OIP5hvW8zUFF5tGG3hjPV/DQjj+wst1WXhYd2U3aw8OdqCe/Ayyk79vBKk16RSlKEhKEhKQNgANgB7Voddy1TX8QDOafuQvv0ZuzOY4ZX1OBtsqYlwSuPi8vD4JJ47cvtW+akouQ7UoO1KhFxPelD3pRErG33rNKIlKUoiUpSiJSlKIlKUoiUpSiJSlKIlKUoiwSEpKj2A3NQePZziGWPORsdyCHPeab8VTba/N4fIp5gEAlPIEbjpv0qdJIG4G5Hp715sZ0l1Wlwdk26RbnY0Yx3kSLw1I+aZVcGpCmIwSAGUqbQsL5HZX4aT0BNKRek9vtTb7V5+haVZza73GuUWzzpPySLKIj8m8oDrJalPLlApSoIOzLjbY6HkEAem9VO04rmWQC6WLHbGmZJtrEGLdpK7s48zLnJVK8aQjxFJR4hKmypCvygg7bpRU0i9O2+/Wq6XC5WqFIUuVaHUMzG1NqSW1LQFp6kAKBSoHcbipDb7VoKLp/qfEeauUjHEzXmG4jL7KrwlJmA2hUV4lf8AsvcVebqR5h1G1crVphmsaP8AWZOMq+tW8Y6tne9cvmvlQ384hJ5cUlXA9VDz9N6Ui3jdbnb7JbZN3u0tuLChNKfkPuHZLTaRupRPoAOtfWJKYnRWZsRwOsSG0utLT2WhQ3BH6gitS2Ky5uvR/I9OZ2NyG7ym1zmo63ZiVsvrlOSS22l49+CC3yJ6DkB6VXpmmepC7m9cLFY1WqbJccYXN+sjZLC7R4H5ATttKCV7Ab9OQ69KikW6Y+VWWXcH7Ww8+qTFm/T3kfKujw3/AAvFAJ47BJbIIX+U7gA7napevP1t05z+3voesWBNWdsXdcxEdy/+KlLJtCoxS4tJ5qBfCCQD28w2Iq76G4xmWK2a7w8wiiMZFwTIhMpkIcS00Y7KVJASSE/iocO2535bk7k1NItmDtSg7UqEXE96Vkg04miLFKzxNOJoixSs8TTiaIsUrPE04miLFKzxNOJoixSs8TTiaIsUrPE04miLFKzxNOJoixSs8TTiaIsUrPE04miLFO9Z4mnE0RYpWeJpxNEWKVniacTRFilZ4mnE0RZHalKURf/Z"},1190:function(e,t){e.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gAfQ29tcHJlc3NlZCBieSBqcGVnLXJlY29tcHJlc3P/2wCEAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFwBBAQEBAQEBAQEBAYGBQYGCAcHBwcIDAkJCQkJDBMMDgwMDgwTERQQDxAUER4XFRUXHiIdGx0iKiUlKjQyNEREXP/CABEIAOEA4QMBIgACEQEDEQH/xAAdAAEAAgIDAQEAAAAAAAAAAAAABggFBwIDBAEJ/9oACAEBAAAAAL/AAK+b+7QAAB8ofqjL4THdsnx8svbKAAAYX8s8oBwu1vsAAEJ/Nb2gLaWeAABqf8/fQS2JCz9swAAaLo9zyUw7cP1xRYe5YAAK11Bzkt9OHkuNjkV3feMAAFUKuZHZ2vsblJtBMJtS/wAAACm1dpnwtTuiNUIy8Imf6NAAAgP5+Y5sfb2udQPPdvf4AAGF/OuNfZtCXG+m4AAADH/nHGZtCeF/NsgAABhvzZkUBvnugAAADX1FrE2hAAAAIBPwAAAAAAD5+f8AZnSFrpPQm9tVba+X8/ZPdWp1o4FXjY+3agXxoHfr3AoXfTX2gLgRqiN984oJtuxtYfFb6qm8pzQ++FBr8gUDv3X2S7eUJvsULvpX2RVcv/VbeE9oZfP8/wC/+OyQ+ai4S+ZOOn9wcvLqnbuttlwj14bPybUG0taYvZMkAwPs8PDMYLskMTl7Fe+ITV8jPfIAB4/R1fe7zc+/wZB188dknzx8/UAIBLY3iMjjPkzhPJ9ycghWKkPnyU8AGmtmwDVOXzG8KpWDg2O7ZXwjGf2No3fOQAHDWez4z3eOWYH0RX39/jzmEyuWjsq5AcY79D5x7R08nznxdgzvYAMfzYz2ez5jPZ6MJl+nJAACFxXGZvL/ACI93f6Yp75jsMAAAAAD/8QAGQEBAAMBAQAAAAAAAAAAAAAAAAIEBQED/9oACAECEAAAAAecYy9JADLgW7gAye9jZugHMr2infAOZsrNKzcAEc6PveABCtcAAAAAAAAAAAAAAAAAAAAA/8QAGwEBAQADAQEBAAAAAAAAAAAAAAEEBgcDBQL/2gAIAQMQAAAAB9XIy8P5uKAOw5ppGkAF7P8AnGzdU0AA9OyfHyvPA5wAevVsTVN/1bRABl9S99c5/AAztq0iAAACpZQIVLLKlQAAAoIAAABUAAAD/8QAQxAAAQUAAQIDBAUGCgsAAAAABAECAwUGBwARCBITEBQVQCAhMDFVFiQ2UmF0FyMlMjU3QVBRdSIzOENTVmJjcnaF/9oACAEBAAESAPtVVrUVVXsidarxCZfObeizwxUJlaiysuDgbCusQhzq02AsWZqPjm+WmlbBDLM/+ZGxz1613iM2WujUXHCpQVi/cSLebMFyvC3N7E9VVzlbveT2NVich2vbqztdTeMWG+19wfCqdliiBFhiWBkLfI5OzkrnWtJK6bPX1jVvc7zL0ze8oRp5Wci26J0Xpt5YN8h++vJWfq4/mLkXBKyJp63tOz7w8DtA95kqzTAiTCxlpK1YfktbOomU05v3NgqTX9UrfLWj/t832EjfMx7f8WqnXheISfi+CLv3UWzNi+T5am9z4w3crV7dqQxvVc3ygjJ/0d/sfClO5MVpBP8AhaGX5Pn4xonEmw/wfAPD0GnYQVP+0z6FXUglY7X280SqYARVsHf9DwpENQbfBKv1R2I03l+S8Tk/pcU2Mfft65wMfUaeWNjf8Gonspia8S1rybYL3sBkzVJgXHgi7yszhxkjqexnjcGbXDTBYXkoIlPLOPY1EMiW+YUN+PrAElnuLeuHKkh2A9LX2kdNStSRK2BopZns8Ksys0u/D/XgBm+T8VRPkwNMG3759BB7KEGmsSJxbe5WsV8f5qQNTwZmWan21Sx1RatYo11dd6eiiorYti2lMREfnLC72EFmm1hFq1gh0JgRbuhNNFa3+hv6cWVdEf6FXnwC6UWCFcNma1l5oZXsdZH3tDWUI0Yz76E289VEIG68MpaQcl6QVf8Af0Tn/J+Kuf8AkvDhd/qltpZO3VUypedCy7mKiBXzJI+rfHSBGJnN3TW1S5jpCqYelvb6WaenoDyB/O/yMJr7AMv3AsAqAzuie7z5jVVsXvxOdthYmJ5/XALJsMzAEmnocxS+VIyB7obPCPGioLUs9Ea9J5uvD/P7vzBAn9pNIZF8n4qpv5b49B838xDpl9g2yYMPAOuLyk6xRtZ6puvaYGUGmOyw3rRqz1vDwV6+GIHVe/u1pPH0TT1JNgFbTAwynBtkZARyRP7rg9hN93apKb1TaX4MK8Vc5Q2HmkWT1fy7T/kbH9Ty+vNNN6UcfqSOf6fDxCC8yY16/dK0uFU+S5I4yzfJlYg9pEsBwyOUOx1GZ0PH1y6i1UCI1yqoZvsyHJ9/h6c2qooBfOUb7y+ao530s2R0loXVgSH10oMcTrjmrV6GkuKG5HAkGOh9PzezuWUYJU1AkhloXIkQ43EHBgeKWHT6d8Z+oenmZ8psMnn9rTEUOiCaSNJ9bV3eBveLLhtbbqpNMS9Ur7JFRURUXui+yn/QTd/vdJ7RRbS6tA8/ng3mWpb/ACRRcS8PVXHQKHFKw3Rkx/nZ3yumz9Lq6Y6gvgmlAlRq2Rm/wNxxXepWWLnkUZSvWtP+/wCtOqf9BN3+90nsgHs7ezCz9AG8u1MekcUXFHFFXxtVq56sLvi2Ip53y+uydJs6E/O3gyShzt+/U5W3480U+Wve7m/6wAun/QTd/vdJ1M8iSYavrh5CbEqRsQ8HDXEw/HtY+wtPIRpj2IppHzPKvG4PJWXmrZEbDbD9560utlKq8HyWFcDPHsK6xpxyYfD3xQ6rgZyJpxu1udF3rYPm9HxhmtDbl2RsHdDpq2awg/u0iCIoeYYiNr4pWKx7eVA5KrmoPK1dnZBVBhVQyQYjgPIywvQS604Un9k+vl5h4EPCsBtaToMxPMkbeuO9tVcgZcLRVbVj9RXRkDnAhWIswJ40ZA0rfLJFy9kj+I9vTaWqQgzMklsIiDz91XX9HW31bMjwTRmkxyZDMhctck6rdq2WPGBF+6hQCCCgDQhhDxwDxN8scVrnqe9FQO5AiLiRVcicIZ8PachXGe0hdkVXDV5s0cXK1Jp+DLukvcNqbWOpOfIjRMxdt0OZodA2D0fiVeOWkXic39iHbZzN0REkU1VNDdFvx2lE1uWptIB2aywFZKrdhxPBudjJf3l1YjBjV0AYUHPWFE43qM6Znb+/9Y02WGVcNw7ndNh8tenX2nadYVkBE7uOcWThqW0z5B05o77MgiGfmkL4Jy/V0FMWWDWmMqlkGAqq6sASuAFjhGTzfxXiKroM7yKJW0CyVwZVQJM+CqoqejG90p66AMbv5lZ9LmP/AGi6P9+z3s5jqxrHi3cQEsa5I6qYpi+EYwlINyGvdRGygTN9m9xVdu8ra5o/sxCIu8E+Q1u0qqa/4LFhVl1ZW3w0SfK5uuyOeqs5VR+QMCBIme3w7Fxgco6wyWOV7Iaaze5vIub1XNl5RU4lMbS5KtlfMRZzSVeYoHOXsLU1APWGxsnJmF5O1tyxGW23nmeB14VdhJCmgwFmqxyjvU4SPrxc/o9jf80n64e/qtwX+Siezn3+vjNf+FH7PFF9fKdP/kYP2HM5MUPiEqyZ3pHFCXQvkcnXiC5ArqzLnYasmQvRXrUCYDwZx1Px7jGR28aMuLKb3w1nsAXt4rP/AL5CfQ8M8rP4XL9f16qx7ezxCXBxFZneNqSTtbaw+IZUg8O3FcUEMUtHPK9jGtV+7qG8F8w0d5RQSw06+kXDEGYMeGKaHK2UciJk0Uni47Jn8WxPxMjrh6VP4LcJ+ymFT2c/PYnO2fcq9kjjpFX2eKORIeTq5z17+lQhOXqKaKaKOaGRr45GI9jqnQV9sXeiAu876oxoUz/oSM9Rj2eZzfM1U73PAPHN4cVa3QtgYeT2WUhvAuNgjZBFc6mIRiI1o2T4zwuLkUvP5wYYpUVHF+wwdSRZ4EIlHV7Fakv8AuIZeLp2E3KXXvSloeCKteLGO80gtze/8d1a1nxMRwinlh91RVkpOBMPlj2W+eJtwD2RvjSdg7oxGjOJme5Ikj9abhrOF6IbXF293PfD9vROiYsUUcayOkVjUb599xhleQ2VqaVhT0A9VR0yOJBxAkdbUWtnMBDGscI+y4lzO8JhL1BtmWyBz1HHyeMr8SJBW1FnZPAgidHCG5O7VTuqd0+++4GxOitJLy+KuDrN6Rp7zV1j6oaSBbQ4zzuRUffcDYbU2Ulxo3Wh5742RrMzw4cfQxpCMRejxfqYzFUOBpVoc5FLGIs8hEjvp3d0dVWFDXggjkTWcpESLm72K/px7SIZw7llJglizujnuLS+AeCyGKvLkGSS80U1Rb0NXCGyb4i6ZFfd2C1VPaWbIHTe5iyzpFRbit0doyvBjf6a1kB6S6nRTZ1aFkAUZK2RzxOiZlGEJJa1HOjie9G5rakXJNEIfUsEfcUiXIbvZqLcvO0FpeihREtAFnLmjrjDCQYJzYIYZpE8ytH2z5FrjUq2rUmXUtOyb2TyLDBNK1qKrI3ORMPsk2NOtmoSCSt9HvC7STx7D8lmgs9FgMBjiPsrOlqrKUKYyGR04jnvgkDDFAGhEEgZDBE3syManra0o0wOJ8c5cj5ZurOmrbKcIsyGR04vn9B5YY540ohcfngkREcwPOUYBbDgqyEchnvXZ1vTVtv7k6wgfI8SZ0w7pIY5oXjyN7xvYrHJU5ympGxKAH6SRDsGiT2WIAlkAZVmwpKKXC+CeOGJkMUcMaKjGNRjUjzdEKY42AFGzqQ8rt7JGNlY+N6d2varVSooqigH91qAmjw+WNvUlNWOtfjiwvQ/0o4XS/Zcq7Cz49yJmrACFNaI6Jko1SZZG52vNlUWM4oZkyJxjqrLZ5tdDZCCi+oWUOyHjTlao3RN3SSMaHfVZhMMol3pr2q2+TzAkITw7uM2RSOVdzb8fDZw2vrQjmWduPVKzlPaarAZhNQFUgWg0D4YzYy9CMPjpNMho3usdWtg4p+x1ovFs+9PqABjmVfxV9Zj9RutFW5PRPpKaOptWRTTpyTtbzF2OOErQAC2X9tDVM6o9/cN38vHOrpBgzpK/wCIgGafYmV2szGIpxxXWtzAWV6+bK0skNyPpRAYCxTVhGmwW6u9Rp9vSHAADxZs1All1+15Dx+audYfnqBQQl87IKS65HsGUJ0lNQsrrGBJHy4Hf2l5qNhjdRVC1d3TvifFBmtRc6PQaNooYKZyrOcDAd9l4jhZZuINOkDFd6ahyO6zZEJGVzc8MiOjfViPa7geN8fG1bK5OzJz7WeN1Vx0RssJTa/JmrWbensbhwBuR367neYYe3AfWamjHvB7YDxJf0Lx3/7tW9X1IBoqG1obFFUSwElGl6wZtjoKCr4MtO6nVF9ONc9cssZHxdvf2URvXEtHfx4zji2Zsz/hiAxPmree2lJY8Pe6LC0ldmJ6PWXtFZzPdDcgCwi6j4VEPQS8o8eV3IsQ6gW7qzU0nYqvO4Z2eg0tHcVuviRL/PWk1QbNw52ZyFzt+y/hTrxBManEOx/W9IXrIORmQy39veoCVOvEIKRQPyPIeeLUHQDH/B/eKCnBzdJWUNaxWhgjsgi+zPACswS6yxGjIDKifDPCJxPW1YK0QOr0kdAqOb8JHrBQKyGpq2oANBA2AdMlkQcRWPpqk4yYL1pZmRl43Py6wHbe6+ndjiShrPt+P6XfRVkV6WcyCuKaYOweJ0MLInkSTOan1yA5Giq9Lf6oIbyWdvELGXJps6Jp6M6isSCIhDY3QzpUcXVlEPUgj6O/fV1ssUo4GwwFPsSaI21OPifTlsMBZrsDn9iJWRXvvLzK6Zk4Z52BdNYQ3MGxvhLJA2BTT53K1OVrZwatkrVIImKnnzPHtVlLm8vqy0sXk3M/r2KbLHVm1oiM/cElMAIVizx0NRHQVAVTEYQQOJEyGBdzhabfiBV94UcgYpDSmRjQPgHjhlKlIc1Oyy/TMUpBp1BZE6dGO9JGS8gonb4dQderyD3X8woOvV5B8yfmGf69bkHzf0fQdunT8gN+v4fn+vV5B8yfmGf6fPyAieb3DPp02XkH6kSvoUTr1uQPw/PdetyB+H57r1uQPw/PdetyB+H57r1eQWJ/R9D2TpkvIKfV8PoO3Sz8gp3719B163ILWdvhtB02XkBGonw7P9On5BRVX4fQdumy8gp2T4fQduvW5A/D89163IH4fnuvW5A/D89163IH4fnuqp126GVbyAGKbz/6CfZXN5V0IcZ9uZGIG4iAZJnW9fHcBUkrpPfSh5iYGRXlVLcHULCmusQw4TJhYNznC6MnQwFSuAHMcHIougqybwvNwzSfFBhIS54rCyAp4xZrElkDCSoRI3/Fq5luNRvJYlhOJMXFBHtKCav0VpHPN7tRSzQ2DmXtVHNUQykenPaNe4Ng1nXz2NjVQkI80CGCYmKj3OYvj1rKw97jPzxGRpb1Trp+ecZH8TYE05Rg9BWE3x+cike6yCGhJnj+Q3lZ8Yqq6tmqlsBJ7cJCoMxmtNmNeCGURLaZiuqLFtWdBSagDQ5zkhgM00555Y1qBDkLIff2yRxJ+ShhI2hclZXWEXLOntZAJ21xGfqhYSuSsw/YD0ObRs7BpSiJ5Sqam2Eeswu10dUq2s4p9ZbpJXXQAXLOcSmMll0hxpFYTvstd2xdO+lHlWxzVU46qnyNFc0e8sbk8KVUv6EaawIxNDpq3RVdiytNH8l7qX2TCKTVRXdTyRADNMSt1PAVXVAR4/KuwtpACGVxlHTjjk/3L//EAEQQAAIBAwIDBAcEBQkJAAAAAAECAwAEERIxEyFBEBRRYQUiQEJScdMwMoGDIHKEwcIVJDNQYmNzgpEjkpOhorGys9L/2gAIAQEAEz8A+2hPES1ZhiMJo+8VPOSoHEkcg8Qy5BHs/koyaYiS9cfPmqfhQvZiCTuca6L5NTXUhjI80JIojOatLiSIE+YQjNGQk0LyVB/0tV+5aRF/u5ebrUpBZHhkMTc13GV5ex/KJq/H7Hw1Pxf4/Y/N4ytfPn9j+tbQ+x+ctxGlfh+hqICi4kdXyNjkD9H9dXT+H2P5TCT+Htyyl4jybBUg6gOYqAjM1rdg93lUsCNyA9eDxzyK1EjSJLxyIY08PVALZoMSLu7UkyyKDsgJ0r2/JpP/AK9j8lglPY0Jlg42dpypyiH4hVmBPwXUHRPbSpykTn68e5FQZkhvLG4cEqjj3FI4i581oyZaFrcl3A5YOtmJoDUbWN4hC0+rYMiLgeBJJqJOIkBjORBbMfuKp5SSnGashxLa2TByrz7PLnoowOz/AApYvY/8OML/AB9loiPKpxyIDkAjO9emIXtVnAGSFhmyDJ4FGBq1gmnjhUsW4YYBuQzUsLpNltgEYA8+lSWk0aoB1LFRirdna+u3j5NJNHHqlkz0BIWp7UWsZPLTwk1M2N86uz/df+D2P5tF2T+jdcr6RjU7axljVt6OMc0efejbWcMK8AypJ/FTIC8Ql5MFPTNebxla9I2XHlGQBpDalwtfyWfqVGulE1HOlR0UbAV+tbS+xwgCaAn/AMkPVDSZMFzGOqt/3B5jtuFMmkcMJhVBHM6d6TWkT97Zly6ZP3dNQRvE8ZDhurMCO2IanZjX3oLHUMFYvik6F/ZNpIZMYEsbbq60q+q430SfDIOo7fzZe1BnT4sx2AG5J5AURkJneKDOyee7ezE4Kno6sOauu6kcxRHJlG8cnQSL2fmy9iDOnPvN0CgcyTyArH48KLO0Y9oAHEikH3ZIz0dehoDEdzAfusv7x0NfmS1Eup3dzgACtxCp5iCI+A94+8faiOcM/gf7t9mpxhhIk0oqQc7S2cf0nlJIP9F9sH3Lk+jGd4dfzL4fxUAf1cdirDBBq2vZ0RRdMqSaBqwtQem7p2z8pWcV6QzOM78KbUS0bEbOhpzl4J05NG37j1FSqGRhnOCDVzPJLAs0R1yWr6yfVYc0o8vUYZw3gRsRUUjxRekrmIDVM4QjUnvGo1Coi+AAqQfdYjGpSNjg7ih6RuoTrinjjUlonUnk1Xd1JdRRzRYYxuJCQ8bivgMyB8VHnCSh8Wwkrfhvs6HzRgVr0bcm3fOt5JXlYDrqAAq49KTy+oseqofTEwUSSLkkA1cycSaSCZFwJD8Q2q2upooszzGN9IVsLkClHq+scknPjVpI8UfEkmljLBFIAOFqJQupgAupj1bA3P6f5qdh92W2HFQj8VrwlcSK3/JB2dYLhOaSj5Gi3KxErlLsfqEDUtEc3bdpG8Wc5J7YYnmkIF3FyVIwWY16RiNvNcO40kQQSYfkNi4rpFb26fuAqUf0ENkSLUfg6U+689FxF+DYPZ+TX+Ts/aj2ftM32BPJVV0Ynst/9rMkMp9dnVdiw5IK34RI0pDkb6F7fMWbfoftUR7BulojjWx8iaN9dAsR1wJK1vJmDHBuocsSWpDlXSQalYHwINfk1/k7Plck9nyuJjSnIZWGQQaGCnGMKTEAj4RIAf0VOCM9Qam9IXJdtICj36T07drFgdAoepC0902d8yylm7YSBImeq6gRmu/vxTOd2q5ZWkbJzz0hRy7LN1jkx8Opg2AahvXZir7giTUDRI4h5Y1E4xqp7zLxgAgBExoA5nlpp8amwNzjHM1BMYsGXGrON86avJxNHECc+oSNQoXJihhLgBtAjA3xVzOJoowzauRK6/lzobipL5lkHC5LgRhQMVeOjyKAMYBVVqW+lBCJsoCkAAVB6UnValkMsjyybksfsJp2hWMwwmbmVR9wuKchjHNazNBKuR94B0IB6ig0jGUppOeaKuzbBiRTNIBGItOeUaP8XXA8TSnBkMalggPi21P6ozKecJG4eMFS46ahTtIAhS3kuNREUcrEYiI2onAJUZqKczKYRw9aSZRNLrxl8Qe2WYxZigjMh0kK+WOMAVDK0qhTzXmyoc48qExNwkqTPbCRo9ONDSJjk2QCD2nkCQM1xC5AngSdSdSoRyk6jnuKLSasTmZQoCoVBBg95hkH7OOeWFo2ddDEGJlPMHFIMACuNIyl5MamCMxUE4GwpJpIiokxqB4bLkNgZBrUVyAc7qQaiyg/nkonmJA5Eu41GkmkiaORkaMsDGyn7rEVkj1SMbinlklMcEf3Y0MhbSg+Ecu0kgPHINLKcYOCDRJPIctzXEcxLcSAhpliJ0LI2TlgMnPbnHI1qZzpiQRouXJOFUAAdBSzSKGSLUUVkDBWClyRkcifs5y6a+NIIxpddsZpUcwoZBqAwWycbZyKgLtjus7wEsz76itFs8aCKUos8Wd1+IdDTh+JALJEdhgHD69WAeWKuHeMxvOGYSApnIGnamMkLRiQ6eKmC+V1EDTWhuBwhHxNenVnSR50xlOiIR8QRPJuJCKiuZ2uYIZEJzpZArEEAGrlpYjBLLs5KZ1JVjcNNBdQjkwZZEVo3Wr12FvBBaj4Uw0sjHZARVoJDBcwGJHWbTIcqdTFSuelQGRnuWfVh8NyjGFrvlwLkxPMI4w+I9OvBBaoLi4lltxJAZULIyICNWFbDVBI8i3Vq+1wjPjK0C7S3c8QxMqDOkCF8oX6kH7P+ytzGTQOVKmIYNfFHJfSsrClOkTIt/N/N5qdMaJGijxImfcevy5K6hZVK5HmNxXj6G9GuJh/klfTCB1SvyjUsdqLcxvCyqiOkQl9VyCMtUwJjD9Nemoc9yn9HAmSXgaufHL511CxDw8Y4AfTg6HMdJjTO8IB18q/4lftKV+StIM8S1vkcaXHXQea0xLO+kc3cnmzsebE7n7OQZR43GCpHgRQvE4CxNvEspj46p5CSrZEHBRBpUIGDLyGwIq5dH0PM5lchgoPrMxNRnHFhl92Ue9p92raRYgLhAQshOkkkA1IFDN89AUf6Cs8iLZSq6fAkH1vHAq3ZVd4mGGTLA4B8sGpbtWgzC+tFYaNRQEA4zVvIiKlyhBEhyhLHyPKoJeBeQzL76PEFxnHMAYqB7X+cwxOzoJUkheMlC5wwUGpXMs9xczHLzyu+dTtU7xsk8uWIONA0YLe5irZ1QyiNg6gsVJABHSrkoZFijUKqEoq5wBucmraRIhx0BCuSVJOM1LoDt89Cqv+g+wlYrGX6BiASBnfAo3lx+6Gu+XH0a75cfRrvlxj/wBNd8uPo13y4+jQvLj6Nd8n+jXfLn6Nd8ufo13y5+jXfLn6Nd8n+jRvLj6Nd8n+jXfJ/o13y4+jXfJ/o0byf6Nd8ufo13y5+jXfLn6Nd8ufo1ZyySqVx1Mioc/ZzHSgluHEcYJ6amIFCNihjgKhyXA0jSXHI+NLzkEM7OqNjzMZo20olFwk3AMfCK69Qf1cYpoXURwzllRtRGk6ihH4U5wDNO2hEHmxOK94wQOiO/yBkFG3lBieBdcgxpy+lTn1akUqZBGnEIAOxCnNDdFuNXDz+toNSwSw6zYy8C4CGRQHMUh0vjas+uLd3MYf5FgRRjcBIpyVRtRGk6ih2PT2Hg8VGt1fMpcfCFqQmS8gSeSAixn6y6BGeFJuV5GkgIuYPR14AE1+uQ5tzBHsPixWdvSkUfAMWg+6xVZ89HFFDwnmt5rl5EB8hKtRISLaRLWUQS5GzJMyuvmKtTxIrS34acED+y8sZfyL1Gmq2kW/tEh9eTaIxODr1VjTFLfpJEeAW6cWOIxt5PUY4kK+kLeeVuDq8EjlCIeoUVex5hHoy/uJLiB7bqJpHEZKpuM66S2xdJ6IuMWwGovzEYiSfQBvmmjxHJLbSXDyIPNRKv8AU3//xAApEQACAQIFAQgDAAAAAAAAAAABAgADEQQSITAxQRMgIiNRUmFxQnCR/9oACAECAQE/AO61VFNi0OIpe6DEoSQbidvS90VlcXU326hu7ffcwv5jbY6mBCwuPW0KGy2HTX+wixIMwp8TD42jwYORpDoLAamBnvci8YC1wBMMfMI+NphcERlekbSlUyvmf0jV6eX5ImcjQGYem2btDxtuiuLMJUpmmSDx0MbhPqUaGbxvx03XQVFKmJQJZcw0UfoD/8QANhEAAgECAgYHBAsAAAAAAAAAAQIDBBEABQYSITFBURATICIwYXEUQFKRMjM0QlByc6KxwtH/2gAIAQMBAT8A7NLkuY1cfXQ051OBJAv6XwmjebMwHs4XzLC2JtFK9I0aJ45Gt3lBtY4GjmbE29m/cMVVHU0UnV1MRRuF9x8PLV1aCjXlCn8djTBfsT/nHhLvHrinXVggXlGo+QGJamOFykgItGZAeYXeB5jENUiyziRyQ0p1OQUIGPoMQyCaNJQpAYXAO+2NL1vS0r8pCPmPCgXXmiXm6j5nEoIgYKzKQuwoLts5DEa9dK0s8wVEILMboCd25/okjYeBxJS0OoqJKilhZO+O8NmzzB1RikaXreqeVxZyWAUnWI+JiLAeQxpWutlqt8Mq+FBIIZ4pSLhHDW9DfFJVUebQLIhvbetyCp87EYzjKzVUBp6NQHMqN3mPD1vil0fzNqhC4XUglQNd+AIJthqOndizR7Tv7zf7jSfMqUwHLozryayliDsW3h0VbPQTrPA9iN44EcjjLMygzKASxmzjY6cVOKb62s/W/quM+z4U2tR0bXl3O4+75DzwxLEsxJJ3nxMvr5svqUniOy/eXgwxW6QRx005pGvNO9wfgGqBhmLEsxJJNyT7uOnf0DB6Bg4PDB7Axs7V/e+X4v8A/9k="},1191:function(e,t,n){e.exports=n.p+"static/media/msrus_logo.9660d5ef.jpg"},1192:function(e,t,n){e.exports=n.p+"static/media/kus_logo.c55adcae.jpg"},1193:function(e,t,n){e.exports=n.p+"static/media/acm_logo.b27f2874.jpg"},1194:function(e,t,n){e.exports=n.p+"static/media/epcet_logo.a45c2751.jpg"},1195:function(e,t,n){e.exports=n.p+"static/media/jssun_logo.31ef9801.jpg"},1196:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",function(){return r})},1197:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(1150),a=n(1205),o=n(1167),i=n(1257);function c(e){return void 0!==e}function l(e,t){var n=t||{},l=n.defaultValue,u=n.value,s=n.onChange,f=n.postState,d=Object(i.a)(function(){return c(u)?u:c(l)?"function"===typeof l?l():l:"function"===typeof e?e():e}),h=Object(r.a)(d,2),p=h[0],m=h[1],v=void 0!==u?u:p,g=f?f(v):v,y=Object(a.a)(s),b=Object(i.a)([v]),w=Object(r.a)(b,2),E=w[0],x=w[1];return Object(o.b)(function(){var e=E[0];p!==e&&y(p,e)},[E]),Object(o.b)(function(){c(u)||m(u)},[u]),[g,Object(a.a)(function(e,t){m(e,t),x([v],t)})]}},1198:function(e,t,n){"use strict";n.d(t,"a",function(){return p}),n.d(t,"b",function(){return m});var r=n(1170),a=n(1385),o="data-rc-order",i="data-rc-priority",c="rc-util-key",l=new Map;function u(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):c}function s(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function f(e){return Array.from((l.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Object(r.a)())return null;var n=t.csp,a=t.prepend,c=t.priority,l=void 0===c?0:c,u=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(a),d="prependQueue"===u,h=document.createElement("style");h.setAttribute(o,u),d&&l&&h.setAttribute(i,"".concat(l)),null!==n&&void 0!==n&&n.nonce&&(h.nonce=null===n||void 0===n?void 0:n.nonce),h.innerHTML=e;var p=s(t),m=p.firstChild;if(a){if(d){var v=f(p).filter(function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(o)))return!1;var t=Number(e.getAttribute(i)||0);return l>=t});if(v.length)return p.insertBefore(h,v[v.length-1].nextSibling),h}p.insertBefore(h,m)}else p.appendChild(h);return h}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f(s(t)).find(function(n){return n.getAttribute(u(t))===e})}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=h(e,t);n&&s(t).removeChild(n)}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=l.get(e);if(!n||!Object(a.a)(document,n)){var r=d("",t),o=r.parentNode;l.set(e,o),e.removeChild(r)}}(s(n),n);var r=h(t,n);if(r){var o,i,c;if(null!==(o=n.csp)&&void 0!==o&&o.nonce&&r.nonce!==(null===(i=n.csp)||void 0===i?void 0:i.nonce))r.nonce=null===(c=n.csp)||void 0===c?void 0:c.nonce;return r.innerHTML!==e&&(r.innerHTML=e),r}var f=d(e,n);return f.setAttribute(u(n),t),f}},1199:function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return f});var r=n(69),a=n(1151),o=n(1156),i=n(1305),c=n(1218);function l(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Object(c.a)(e,t.slice(0,-1))?e:function e(t,n,r,c){if(!n.length)return r;var l,u=Object(i.a)(n),s=u[0],f=u.slice(1);return l=t||"number"!==typeof s?Array.isArray(t)?Object(o.a)(t):Object(a.a)({},t):[],c&&void 0===r&&1===f.length?delete l[s][f[0]]:l[s]=e(l[s],f,r,c),l}(e,t,n,r)}function u(e){return Array.isArray(e)?[]:{}}var s="undefined"===typeof Reflect?Object.keys:Reflect.ownKeys;function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=u(t[0]);return t.forEach(function(e){!function t(n,i){var f,d=new Set(i),h=Object(c.a)(e,n),p=Array.isArray(h);if(p||(f=h,"object"===Object(r.a)(f)&&null!==f&&Object.getPrototypeOf(f)===Object.prototype)){if(!d.has(h)){d.add(h);var m=Object(c.a)(a,n);p?a=l(a,n,[]):m&&"object"===Object(r.a)(m)||(a=l(a,n,u(h))),s(h).forEach(function(e){t([].concat(Object(o.a)(n),[e]),d)})}}else a=l(a,n,h)}([])}),a}},1200:function(e,t,n){"use strict";var r=n(1222);e.exports=function(){return r()&&!!Symbol.toStringTag}},1201:function(e,t,n){"use strict";var r=SyntaxError,a=Function,o=TypeError,i=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(_){c=null}var l=function(){throw new o},u=c?function(){try{return arguments.callee,l}catch(e){try{return c(arguments,"callee").get}catch(t){return l}}}():l,s=n(1268)(),f=Object.getPrototypeOf||function(e){return e.__proto__},d={},h="undefined"===typeof Uint8Array?void 0:f(Uint8Array),p={"%AggregateError%":"undefined"===typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":s?f([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"===typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"===typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":d,"%Int8Array%":"undefined"===typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":s?f(f([][Symbol.iterator]())):void 0,"%JSON%":"object"===typeof JSON?JSON:void 0,"%Map%":"undefined"===typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&s?f((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?void 0:Promise,"%Proxy%":"undefined"===typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&s?f((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":s?f(""[Symbol.iterator]()):void 0,"%Symbol%":s?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":u,"%TypedArray%":h,"%TypeError%":o,"%Uint8Array%":"undefined"===typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?void 0:WeakSet};try{null.error}catch(_){var m=f(f(_));p["%Error.prototype%"]=m}var v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(1202),y=n(1270),b=g.call(Function.call,Array.prototype.concat),w=g.call(Function.apply,Array.prototype.splice),E=g.call(Function.call,String.prototype.replace),x=g.call(Function.call,String.prototype.slice),O=g.call(Function.call,RegExp.prototype.exec),j=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,S=function(e,t){var n,a=e;if(y(v,a)&&(a="%"+(n=v[a])[0]+"%"),y(p,a)){var c=p[a];if(c===d&&(c=function e(t){var n;if("%AsyncFunction%"===t)n=i("async function () {}");else if("%GeneratorFunction%"===t)n=i("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=i("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&(n=f(a.prototype))}return p[t]=n,n}(a)),"undefined"===typeof c&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:c}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,e))throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=x(e,0,1),n=x(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var a=[];return E(e,j,function(e,t,n,r){a[a.length]=n?E(r,k,"$1"):t||e}),a}(e),a=n.length>0?n[0]:"",i=S("%"+a+"%",t),l=i.name,u=i.value,s=!1,f=i.alias;f&&(a=f[0],w(n,b([0,1],f)));for(var d=1,h=!0;d<n.length;d+=1){var m=n[d],v=x(m,0,1),g=x(m,-1);if(('"'===v||"'"===v||"`"===v||'"'===g||"'"===g||"`"===g)&&v!==g)throw new r("property names with quotes must have matching quotes");if("constructor"!==m&&h||(s=!0),y(p,l="%"+(a+="."+m)+"%"))u=p[l];else if(null!=u){if(!(m in u)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&d+1>=n.length){var _=c(u,m);u=(h=!!_)&&"get"in _&&!("originalValue"in _.get)?_.get:u[m]}else h=y(u,m),u=u[m];h&&!s&&(p[l]=u)}}return u}},1202:function(e,t,n){"use strict";var r=n(1269);e.exports=Function.prototype.bind||r},1203:function(e,t,n){"use strict";var r=n(1202),a=n(1201),o=a("%Function.prototype.apply%"),i=a("%Function.prototype.call%"),c=a("%Reflect.apply%",!0)||r.call(i,o),l=a("%Object.getOwnPropertyDescriptor%",!0),u=a("%Object.defineProperty%",!0),s=a("%Math.max%");if(u)try{u({},"a",{value:1})}catch(d){u=null}e.exports=function(e){var t=c(r,i,arguments);l&&u&&(l(t,"length").configurable&&u(t,"length",{value:1+s(0,e.length-(arguments.length-1))}));return t};var f=function(){return c(r,o,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},1205:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(1);function a(e){var t=r.useRef();return t.current=e,r.useCallback(function(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))},[])}},1206:function(e,t,n){(function(e){e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(i(e,t))return!1;return!0}function l(e){return void 0===e}function u(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function s(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],a=e.length;for(n=0;n<a;++n)r.push(t(e[n],n));return r}function d(e,t){for(var n in t)i(t,n)&&(e[n]=t[n]);return i(t,"toString")&&(e.toString=t.toString),i(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return At(e,t,n,r,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=p(e),r=n.call(t.parsedDateParts,function(e){return null!=e}),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function v(e){var t=h(NaN);return null!=e?d(p(t),e):p(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var g=r.momentProperties=[],y=!1;function b(e,t){var n,r,a,o=g.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=p(t)),l(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)r=g[n],l(a=t[r])||(e[r]=a);return e}function w(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,r.updateOffset(this),y=!1)}function E(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function x(e){!1===r.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function O(e,t){var n=!0;return d(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var a,o,c,l=[],u=arguments.length;for(o=0;o<u;o++){if(a="","object"===typeof arguments[o]){for(c in a+="\n["+o+"] ",arguments[0])i(arguments[0],c)&&(a+=c+": "+arguments[0][c]+", ");a=a.slice(0,-2)}else a=arguments[o];l.push(a)}x(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var j,k={};function S(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),k[e]||(x(t),k[e]=!0)}function _(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function C(e,t){var n,r=d({},e);for(n in t)i(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)i(e,n)&&!i(t,n)&&o(e[n])&&(r[n]=d({},r[n]));return r}function L(e){null!=e&&this.set(e)}function A(e,t,n){var r=""+Math.abs(e),a=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,j=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)i(e,t)&&n.push(t);return n};var P=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,M=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},T={};function I(e,t,n,r){var a=r;"string"===typeof r&&(a=function(){return this[r]()}),e&&(T[e]=a),t&&(T[t[0]]=function(){return A(a.apply(this,arguments),t[1],t[2])}),n&&(T[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function F(e,t){return e.isValid()?(t=D(t,e.localeData()),N[t]=N[t]||function(e){var t,n,r,a=e.match(P);for(t=0,n=a.length;t<n;t++)T[a[t]]?a[t]=T[a[t]]:a[t]=(r=a[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=_(a[r])?a[r].call(t,e):a[r];return o}}(t),N[t](e)):e.localeData().invalidDate()}function D(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(M.lastIndex=0;n>=0&&M.test(e);)e=e.replace(M,r),M.lastIndex=0,n-=1;return e}var R={};function G(e,t){var n=e.toLowerCase();R[n]=R[n+"s"]=R[t]=e}function B(e){return"string"===typeof e?R[e]||R[e.toLowerCase()]:void 0}function H(e){var t,n,r={};for(n in e)i(e,n)&&(t=B(n))&&(r[t]=e[n]);return r}var z={};function V(e,t){z[e]=t}function q(e){return e%4===0&&e%100!==0||e%400===0}function Y(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function W(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Y(t)),n}function U(e,t){return function(n){return null!=n?(Q(this,e,n),r.updateOffset(this,t),this):X(this,e)}}function X(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Q(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&q(e.year())&&1===e.month()&&29===e.date()?(n=W(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ae(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var K,J=/\d/,Z=/\d\d/,$=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,re=/\d\d\d\d?/,ae=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,ie=/\d{1,4}/,ce=/[+-]?\d{1,6}/,le=/\d+/,ue=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,fe=/Z|[+-]\d\d(?::?\d\d)?/gi,de=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function he(e,t,n){K[e]=_(t)?t:function(e,r){return e&&n?n:t}}function pe(e,t){return i(K,e)?K[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,a){return t||n||r||a})))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}K={};var ve={};function ge(e,t){var n,r,a=t;for("string"===typeof e&&(e=[e]),u(t)&&(a=function(e,n){n[t]=W(e)}),r=e.length,n=0;n<r;n++)ve[e[n]]=a}function ye(e,t){ge(e,function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)})}function be(e,t,n){null!=t&&i(ve,e)&&ve[e](t,n._a,n,e)}var we,Ee=0,xe=1,Oe=2,je=3,ke=4,Se=5,_e=6,Ce=7,Le=8;function Ae(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?q(e)?29:28:31-r%7%2}we=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},I("M",["MM",2],"Mo",function(){return this.month()+1}),I("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),I("MMMM",0,0,function(e){return this.localeData().months(this,e)}),G("month","M"),V("month",8),he("M",ne),he("MM",ne,Z),he("MMM",function(e,t){return t.monthsShortRegex(e)}),he("MMMM",function(e,t){return t.monthsRegex(e)}),ge(["M","MM"],function(e,t){t[xe]=W(e)-1}),ge(["MMM","MMMM"],function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[xe]=a:p(n).invalidMonth=e});var Pe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Me="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ne=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Te=de,Ie=de;function Fe(e,t){var n;if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=W(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ae(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function De(e){return null!=e?(Fe(this,e),r.updateOffset(this,!0),this):X(this,"Month")}function Re(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],o=[];for(t=0;t<12;t++)n=h([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),o.sort(e),t=0;t<12;t++)r[t]=me(r[t]),a[t]=me(a[t]);for(t=0;t<24;t++)o[t]=me(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ge(e){return q(e)?366:365}I("Y",0,0,function(){var e=this.year();return e<=9999?A(e,4):"+"+e}),I(0,["YY",2],0,function(){return this.year()%100}),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),G("year","y"),V("year",1),he("Y",ue),he("YY",ne,Z),he("YYYY",ie,ee),he("YYYYY",ce,te),he("YYYYYY",ce,te),ge(["YYYYY","YYYYYY"],Ee),ge("YYYY",function(e,t){t[Ee]=2===e.length?r.parseTwoDigitYear(e):W(e)}),ge("YY",function(e,t){t[Ee]=r.parseTwoDigitYear(e)}),ge("Y",function(e,t){t[Ee]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return W(e)+(W(e)>68?1900:2e3)};var Be=U("FullYear",!0);function He(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ze(e,t,n){var r=7+t-n,a=(7+He(e,0,r).getUTCDay()-t)%7;return-a+r-1}function Ve(e,t,n,r,a){var o,i,c=(7+n-r)%7,l=ze(e,r,a),u=1+7*(t-1)+c+l;return u<=0?i=Ge(o=e-1)+u:u>Ge(e)?(o=e+1,i=u-Ge(e)):(o=e,i=u),{year:o,dayOfYear:i}}function qe(e,t,n){var r,a,o=ze(e.year(),t,n),i=Math.floor((e.dayOfYear()-o-1)/7)+1;return i<1?(a=e.year()-1,r=i+Ye(a,t,n)):i>Ye(e.year(),t,n)?(r=i-Ye(e.year(),t,n),a=e.year()+1):(a=e.year(),r=i),{week:r,year:a}}function Ye(e,t,n){var r=ze(e,t,n),a=ze(e+1,t,n);return(Ge(e)-r+a)/7}function We(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),G("week","w"),G("isoWeek","W"),V("week",5),V("isoWeek",5),he("w",ne),he("ww",ne,Z),he("W",ne),he("WW",ne,Z),ye(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=W(e)}),I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),G("day","d"),G("weekday","e"),G("isoWeekday","E"),V("day",11),V("weekday",11),V("isoWeekday",11),he("d",ne),he("e",ne),he("E",ne),he("dd",function(e,t){return t.weekdaysMinRegex(e)}),he("ddd",function(e,t){return t.weekdaysShortRegex(e)}),he("dddd",function(e,t){return t.weekdaysRegex(e)}),ye(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:p(n).invalidWeekday=e}),ye(["d","e","E"],function(e,t,n,r){t[r]=W(e)});var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=de,Je=de,Ze=de;function $e(){function e(e,t){return t.length-e.length}var t,n,r,a,o,i=[],c=[],l=[],u=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=me(this.weekdaysMin(n,"")),a=me(this.weekdaysShort(n,"")),o=me(this.weekdays(n,"")),i.push(r),c.push(a),l.push(o),u.push(r),u.push(a),u.push(o);i.sort(e),c.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,et),I("k",["kk",2],0,function(){return this.hours()||24}),I("hmm",0,0,function(){return""+et.apply(this)+A(this.minutes(),2)}),I("hmmss",0,0,function(){return""+et.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+A(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)}),tt("a",!0),tt("A",!1),G("hour","h"),V("hour",13),he("a",nt),he("A",nt),he("H",ne),he("h",ne),he("k",ne),he("HH",ne,Z),he("hh",ne,Z),he("kk",ne,Z),he("hmm",re),he("hmmss",ae),he("Hmm",re),he("Hmmss",ae),ge(["H","HH"],je),ge(["k","kk"],function(e,t,n){var r=W(e);t[je]=24===r?0:r}),ge(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ge(["h","hh"],function(e,t,n){t[je]=W(e),p(n).bigHour=!0}),ge("hmm",function(e,t,n){var r=e.length-2;t[je]=W(e.substr(0,r)),t[ke]=W(e.substr(r)),p(n).bigHour=!0}),ge("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[je]=W(e.substr(0,r)),t[ke]=W(e.substr(r,2)),t[Se]=W(e.substr(a)),p(n).bigHour=!0}),ge("Hmm",function(e,t,n){var r=e.length-2;t[je]=W(e.substr(0,r)),t[ke]=W(e.substr(r))}),ge("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[je]=W(e.substr(0,r)),t[ke]=W(e.substr(r,2)),t[Se]=W(e.substr(a))});var rt,at=U("Hours",!0),ot={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Pe,monthsShort:Me,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:Qe,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},it={},ct={};function lt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function ut(e){return e?e.toLowerCase().replace("_","-"):e}function st(t){var n=null;if(void 0===it[t]&&"undefined"!==typeof e&&e&&e.exports&&function(e){return null!=e.match("^[^/\\\\]*$")}(t))try{n=rt._abbr,function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),ft(n)}catch(r){it[t]=null}return it[t]}function ft(e,t){var n;return e&&((n=l(t)?ht(e):dt(e,t))?rt=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rt._abbr}function dt(e,t){if(null!==t){var n,r=ot;if(t.abbr=e,null!=it[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])r=it[t.parentLocale]._config;else{if(null==(n=st(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;r=n._config}return it[e]=new L(C(r,t)),ct[e]&&ct[e].forEach(function(e){dt(e.name,e.config)}),ft(e),it[e]}return delete it[e],null}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rt;if(!a(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,n,r,a,o=0;o<e.length;){for(a=ut(e[o]).split("-"),t=a.length,n=(n=ut(e[o+1]))?n.split("-"):null;t>0;){if(r=st(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&<(a,n)>=t-1)break;t--}o++}return rt}(e)}function pt(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[xe]<0||n[xe]>11?xe:n[Oe]<1||n[Oe]>Ae(n[Ee],n[xe])?Oe:n[je]<0||n[je]>24||24===n[je]&&(0!==n[ke]||0!==n[Se]||0!==n[_e])?je:n[ke]<0||n[ke]>59?ke:n[Se]<0||n[Se]>59?Se:n[_e]<0||n[_e]>999?_e:-1,p(e)._overflowDayOfYear&&(t<Ee||t>Oe)&&(t=Oe),p(e)._overflowWeeks&&-1===t&&(t=Ce),p(e)._overflowWeekday&&-1===t&&(t=Le),p(e).overflow=t),e}var mt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((-?\d+)/i,Et=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ot(e){var t,n,r,a,o,i,c=e._i,l=mt.exec(c)||vt.exec(c),u=yt.length,s=bt.length;if(l){for(p(e).iso=!0,t=0,n=u;t<n;t++)if(yt[t][1].exec(l[1])){a=yt[t][0],r=!1!==yt[t][2];break}if(null==a)return void(e._isValid=!1);if(l[3]){for(t=0,n=s;t<n;t++)if(bt[t][1].exec(l[3])){o=(l[2]||" ")+bt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!gt.exec(l[4]))return void(e._isValid=!1);i="Z"}e._f=a+(o||"")+(i||""),Ct(e)}else e._isValid=!1}function jt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function kt(e){var t,n=Et.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(n){if(t=function(e,t,n,r,a,o){var i=[jt(e),Me.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return o&&i.push(parseInt(o,10)),i}(n[4],n[3],n[2],n[5],n[6],n[7]),!function(e,t,n){if(e){var r=Xe.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(r!==a)return p(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}(n[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return xt[e];if(t)return 0;var r=parseInt(n,10),a=r%100,o=(r-a)/100;return 60*o+a}(n[8],n[9],n[10]),e._d=He.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function St(e,t,n){return null!=e?e:null!=t?t:n}function _t(e){var t,n,a,o,i,c=[];if(!e._d){for(a=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[Oe]&&null==e._a[xe]&&function(e){var t,n,r,a,o,i,c,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,i=4,n=St(t.GG,e._a[Ee],qe(Pt(),1,4).year),r=St(t.W,1),((a=St(t.E,1))<1||a>7)&&(l=!0)):(o=e._locale._week.dow,i=e._locale._week.doy,u=qe(Pt(),o,i),n=St(t.gg,e._a[Ee],u.year),r=St(t.w,u.week),null!=t.d?((a=t.d)<0||a>6)&&(l=!0):null!=t.e?(a=t.e+o,(t.e<0||t.e>6)&&(l=!0)):a=o),r<1||r>Ye(n,o,i)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(c=Ve(n,r,a,o,i),e._a[Ee]=c.year,e._dayOfYear=c.dayOfYear)}(e),null!=e._dayOfYear&&(i=St(e._a[Ee],a[Ee]),(e._dayOfYear>Ge(i)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=He(i,0,e._dayOfYear),e._a[xe]=n.getUTCMonth(),e._a[Oe]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=a[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[je]&&0===e._a[ke]&&0===e._a[Se]&&0===e._a[_e]&&(e._nextDay=!0,e._a[je]=0),e._d=(e._useUTC?He:function(e,t,n,r,a,o,i){var c;return e<100&&e>=0?(c=new Date(e+400,t,n,r,a,o,i),isFinite(c.getFullYear())&&c.setFullYear(e)):c=new Date(e,t,n,r,a,o,i),c}).apply(null,c),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[je]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==o&&(p(e).weekdayMismatch=!0)}}function Ct(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],p(e).empty=!0;var t,n,a,o,i,c,l,u=""+e._i,s=u.length,f=0;for(a=D(e._f,e._locale).match(P)||[],l=a.length,t=0;t<l;t++)o=a[t],(n=(u.match(pe(o,e))||[])[0])&&((i=u.substr(0,u.indexOf(n))).length>0&&p(e).unusedInput.push(i),u=u.slice(u.indexOf(n)+n.length),f+=n.length),T[o]?(n?p(e).empty=!1:p(e).unusedTokens.push(o),be(o,n,e)):e._strict&&!n&&p(e).unusedTokens.push(o);p(e).charsLeftOver=s-f,u.length>0&&p(e).unusedInput.push(u),e._a[je]<=12&&!0===p(e).bigHour&&e._a[je]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[je]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[je],e._meridiem),null!==(c=p(e).era)&&(e._a[Ee]=e._locale.erasConvertYear(c,e._a[Ee])),_t(e),pt(e)}else kt(e);else Ot(e)}function Lt(e){var t=e._i,n=e._f;return e._locale=e._locale||ht(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),E(t)?new w(pt(t)):(s(t)?e._d=t:a(n)?function(e){var t,n,r,a,o,i,c=!1,l=e._f.length;if(0===l)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<l;a++)o=0,i=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Ct(t),m(t)&&(i=!0),o+=p(t).charsLeftOver,o+=10*p(t).unusedTokens.length,p(t).score=o,c?o<r&&(r=o,n=t):(null==r||o<r||i)&&(r=o,n=t,i&&(c=!0));d(e,n||t)}(e):n?Ct(e):function(e){var t=e._i;l(t)?e._d=new Date(r.now()):s(t)?e._d=new Date(t.valueOf()):"string"===typeof t?function(e){var t=wt.exec(e._i);null===t?(Ot(e),!1===e._isValid&&(delete e._isValid,kt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):a(t)?(e._a=f(t.slice(0),function(e){return parseInt(e,10)}),_t(e)):o(t)?function(e){if(!e._d){var t=H(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),_t(e)}}(e):u(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function At(e,t,n,r,i){var l={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&c(e)||a(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=n,l._i=e,l._f=t,l._strict=r,function(e){var t=new w(pt(Lt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}(l)}function Pt(e,t,n,r){return At(e,t,n,r,!1)}r.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var Mt=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Nt=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()});function Tt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Pt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var It=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ft(e){var t=H(e),n=t.year||0,r=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,c=t.day||0,l=t.hour||0,u=t.minute||0,s=t.second||0,f=t.millisecond||0;this._isValid=function(e){var t,n,r=!1,a=It.length;for(t in e)if(i(e,t)&&(-1===we.call(It,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<a;++n)if(e[It[n]]){if(r)return!1;parseFloat(e[It[n]])!==W(e[It[n]])&&(r=!0)}return!0}(t),this._milliseconds=+f+1e3*s+6e4*u+1e3*l*60*60,this._days=+c+7*o,this._months=+a+3*r+12*n,this._data={},this._locale=ht(),this._bubble()}function Dt(e){return e instanceof Ft}function Rt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Gt(e,t){I(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+A(~~(e/60),2)+t+A(~~e%60,2)})}Gt("Z",":"),Gt("ZZ",""),he("Z",fe),he("ZZ",fe),ge(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ht(fe,e)});var Bt=/([\+\-]|\d\d)/gi;function Ht(e,t){var n,r,a,o=(t||"").match(e);return null===o?null:(n=o[o.length-1]||[],r=(n+"").match(Bt)||["-",0,0],0===(a=60*r[1]+W(r[2]))?0:"+"===r[0]?a:-a)}function zt(e,t){var n,a;return t._isUTC?(n=t.clone(),a=(E(e)||s(e)?e.valueOf():Pt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),r.updateOffset(n,!1),n):Pt(e).local()}function Vt(e){return-Math.round(e._d.getTimezoneOffset())}function qt(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Yt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ut(e,t){var n,r,a,o=e,c=null;return Dt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(c=Yt.exec(e))?(n="-"===c[1]?-1:1,o={y:0,d:W(c[Oe])*n,h:W(c[je])*n,m:W(c[ke])*n,s:W(c[Se])*n,ms:W(Rt(1e3*c[_e]))*n}):(c=Wt.exec(e))?(n="-"===c[1]?-1:1,o={y:Xt(c[2],n),M:Xt(c[3],n),w:Xt(c[4],n),d:Xt(c[5],n),h:Xt(c[6],n),m:Xt(c[7],n),s:Xt(c[8],n)}):null==o?o={}:"object"===typeof o&&("from"in o||"to"in o)&&(a=function(e,t){var n;return e.isValid()&&t.isValid()?(t=zt(t,e),e.isBefore(t)?n=Qt(e,t):((n=Qt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(Pt(o.from),Pt(o.to)),(o={}).ms=a.milliseconds,o.M=a.months),r=new Ft(o),Dt(e)&&i(e,"_locale")&&(r._locale=e._locale),Dt(e)&&i(e,"_isValid")&&(r._isValid=e._isValid),r}function Xt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Qt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Kt(e,t){return function(n,r){var a;return null===r||isNaN(+r)||(S(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),Jt(this,Ut(n,r),e),this}}function Jt(e,t,n,a){var o=t._milliseconds,i=Rt(t._days),c=Rt(t._months);e.isValid()&&(a=null==a||a,c&&Fe(e,X(e,"Month")+c*n),i&&Q(e,"Date",X(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),a&&r.updateOffset(e,i||c))}Ut.fn=Ft.prototype,Ut.invalid=function(){return Ut(NaN)};var Zt=Kt(1,"add"),$t=Kt(-1,"subtract");function en(e){return"string"===typeof e||e instanceof String}function tn(e,t){if(e.date()<t.date())return-tn(t,e);var n,r,a=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(a,"months");return t-o<0?(n=e.clone().add(a-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(a+1,"months"),r=(t-o)/(n-o)),-(a+r)||0}function nn(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ht(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var rn=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function an(){return this._locale}var on=1e3,cn=60*on,ln=60*cn,un=3506328*ln;function sn(e,t){return(e%t+t)%t}function fn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-un:new Date(e,t,n).valueOf()}function dn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-un:Date.UTC(e,t,n)}function hn(e,t){return t.erasAbbrRegex(e)}function pn(){var e,t,n=[],r=[],a=[],o=[],i=this.eras();for(e=0,t=i.length;e<t;++e)r.push(me(i[e].name)),n.push(me(i[e].abbr)),a.push(me(i[e].narrow)),o.push(me(i[e].name)),o.push(me(i[e].abbr)),o.push(me(i[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function mn(e,t){I(0,[e,e.length],0,t)}function vn(e,t,n,r,a){var o;return null==e?qe(this,r,a).year:(o=Ye(e,r,a),t>o&&(t=o),function(e,t,n,r,a){var o=Ve(e,t,n,r,a),i=He(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}.call(this,e,t,n,r,a))}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),he("N",hn),he("NN",hn),he("NNN",hn),he("NNNN",function(e,t){return t.erasNameRegex(e)}),he("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ge(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?p(n).era=a:p(n).invalidEra=e}),he("y",le),he("yy",le),he("yyy",le),he("yyyy",le),he("yo",function(e,t){return t._eraYearOrdinalRegex||le}),ge(["y","yy","yyy","yyyy"],Ee),ge(["yo"],function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ee]=n._locale.eraYearOrdinalParse(e,a):t[Ee]=parseInt(e,10)}),I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),mn("gggg","weekYear"),mn("ggggg","weekYear"),mn("GGGG","isoWeekYear"),mn("GGGGG","isoWeekYear"),G("weekYear","gg"),G("isoWeekYear","GG"),V("weekYear",1),V("isoWeekYear",1),he("G",ue),he("g",ue),he("GG",ne,Z),he("gg",ne,Z),he("GGGG",ie,ee),he("gggg",ie,ee),he("GGGGG",ce,te),he("ggggg",ce,te),ye(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=W(e)}),ye(["gg","GG"],function(e,t,n,a){t[a]=r.parseTwoDigitYear(e)}),I("Q",0,"Qo","quarter"),G("quarter","Q"),V("quarter",7),he("Q",J),ge("Q",function(e,t){t[xe]=3*(W(e)-1)}),I("D",["DD",2],"Do","date"),G("date","D"),V("date",9),he("D",ne),he("DD",ne,Z),he("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ge(["D","DD"],Oe),ge("Do",function(e,t){t[Oe]=W(e.match(ne)[0])});var gn=U("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),G("dayOfYear","DDD"),V("dayOfYear",4),he("DDD",oe),he("DDDD",$),ge(["DDD","DDDD"],function(e,t,n){n._dayOfYear=W(e)}),I("m",["mm",2],0,"minute"),G("minute","m"),V("minute",14),he("m",ne),he("mm",ne,Z),ge(["m","mm"],ke);var yn=U("Minutes",!1);I("s",["ss",2],0,"second"),G("second","s"),V("second",15),he("s",ne),he("ss",ne,Z),ge(["s","ss"],Se);var bn,wn,En=U("Seconds",!1);for(I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),G("millisecond","ms"),V("millisecond",16),he("S",oe,J),he("SS",oe,Z),he("SSS",oe,$),bn="SSSS";bn.length<=9;bn+="S")he(bn,le);function xn(e,t){t[_e]=W(1e3*("0."+e))}for(bn="S";bn.length<=9;bn+="S")ge(bn,xn);wn=U("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var On=w.prototype;function jn(e){return e}On.add=Zt,On.calendar=function(e,t){var n;1===arguments.length&&(arguments[0]?E(n=arguments[0])||s(n)||en(n)||u(n)||function(e){var t=a(e),n=!1;return t&&(n=0===e.filter(function(t){return!u(t)&&en(e)}).length),t&&n}(n)||function(e){var t,n,r=o(e)&&!c(e),a=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=l.length;for(t=0;t<u;t+=1)n=l[t],a=a||i(e,n);return r&&a}(n)||null===n||void 0===n?(e=arguments[0],t=void 0):function(e){var t,n,r=o(e)&&!c(e),a=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<l.length;t+=1)n=l[t],a=a||i(e,n);return r&&a}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var l=e||Pt(),f=zt(l,this).startOf("day"),d=r.calendarFormat(this,f)||"sameElse",h=t&&(_(t[d])?t[d].call(this,l):t[d]);return this.format(h||this.localeData().calendar(d,this,Pt(l)))},On.clone=function(){return new w(this)},On.diff=function(e,t,n){var r,a,o;if(!this.isValid())return NaN;if(!(r=zt(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=B(t)){case"year":o=tn(this,r)/12;break;case"month":o=tn(this,r);break;case"quarter":o=tn(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-a)/864e5;break;case"week":o=(this-r-a)/6048e5;break;default:o=this-r}return n?o:Y(o)},On.endOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?dn:fn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ln-sn(t+(this._isUTC?0:this.utcOffset()*cn),ln)-1;break;case"minute":t=this._d.valueOf(),t+=cn-sn(t,cn)-1;break;case"second":t=this._d.valueOf(),t+=on-sn(t,on)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},On.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=F(this,e);return this.localeData().postformat(t)},On.from=function(e,t){return this.isValid()&&(E(e)&&e.isValid()||Pt(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},On.fromNow=function(e){return this.from(Pt(),e)},On.to=function(e,t){return this.isValid()&&(E(e)&&e.isValid()||Pt(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},On.toNow=function(e){return this.to(Pt(),e)},On.get=function(e){return _(this[e=B(e)])?this[e]():this},On.invalidAt=function(){return p(this).overflow},On.isAfter=function(e,t){var n=E(e)?e:Pt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},On.isBefore=function(e,t){var n=E(e)?e:Pt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},On.isBetween=function(e,t,n,r){var a=E(e)?e:Pt(e),o=E(t)?t:Pt(t);return!!(this.isValid()&&a.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))},On.isSame=function(e,t){var n,r=E(e)?e:Pt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},On.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},On.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},On.isValid=function(){return m(this)},On.lang=rn,On.locale=nn,On.localeData=an,On.max=Nt,On.min=Mt,On.parsingFlags=function(){return d({},p(this))},On.set=function(e,t){if("object"===typeof e){var n,r=function(e){var t,n=[];for(t in e)i(e,t)&&n.push({unit:t,priority:z[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=H(e)),a=r.length;for(n=0;n<a;n++)this[r[n].unit](e[r[n].unit])}else if(_(this[e=B(e)]))return this[e](t);return this},On.startOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?dn:fn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=sn(t+(this._isUTC?0:this.utcOffset()*cn),ln);break;case"minute":t=this._d.valueOf(),t-=sn(t,cn);break;case"second":t=this._d.valueOf(),t-=sn(t,on)}return this._d.setTime(t),r.updateOffset(this,!0),this},On.subtract=$t,On.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},On.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},On.toDate=function(){return new Date(this.valueOf())},On.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?F(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(n,"Z")):F(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},On.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",a="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=a+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!==typeof Symbol&&null!=Symbol.for&&(On[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),On.toJSON=function(){return this.isValid()?this.toISOString():null},On.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},On.unix=function(){return Math.floor(this.valueOf()/1e3)},On.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},On.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},On.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},On.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},On.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},On.eraYear=function(){var e,t,n,a,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,a=this.clone().startOf("day").valueOf(),o[e].since<=a&&a<=o[e].until||o[e].until<=a&&a<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()},On.year=Be,On.isLeapYear=function(){return q(this.year())},On.weekYear=function(e){return vn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},On.isoWeekYear=function(e){return vn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},On.quarter=On.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},On.month=De,On.daysInMonth=function(){return Ae(this.year(),this.month())},On.week=On.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},On.isoWeek=On.isoWeeks=function(e){var t=qe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},On.weeksInYear=function(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)},On.weeksInWeekYear=function(){var e=this.localeData()._week;return Ye(this.weekYear(),e.dow,e.doy)},On.isoWeeksInYear=function(){return Ye(this.year(),1,4)},On.isoWeeksInISOWeekYear=function(){return Ye(this.isoWeekYear(),1,4)},On.date=gn,On.day=On.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},On.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},On.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},On.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},On.hour=On.hours=at,On.minute=On.minutes=yn,On.second=On.seconds=En,On.millisecond=On.milliseconds=wn,On.utcOffset=function(e,t,n){var a,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=Ht(fe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(a=Vt(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),o!==e&&(!t||this._changeInProgress?Jt(this,Ut(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Vt(this)},On.utc=function(e){return this.utcOffset(0,e)},On.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Vt(this),"m")),this},On.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=Ht(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},On.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Pt(e).utcOffset():0,(this.utcOffset()-e)%60===0)},On.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},On.isLocal=function(){return!!this.isValid()&&!this._isUTC},On.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},On.isUtc=qt,On.isUTC=qt,On.zoneAbbr=function(){return this._isUTC?"UTC":""},On.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},On.dates=O("dates accessor is deprecated. Use date instead.",gn),On.months=O("months accessor is deprecated. Use month instead",De),On.years=O("years accessor is deprecated. Use year instead",Be),On.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),On.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Lt(t))._a?(e=t._isUTC?h(t._a):Pt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,a=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&W(e[r])!==W(t[r]))&&i++;return i+o}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var kn=L.prototype;function Sn(e,t,n,r){var a=ht(),o=h().set(r,t);return a[n](o,e)}function _n(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Sn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Sn(e,r,n,"month");return a}function Cn(e,t,n,r){"boolean"===typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var a,o=ht(),i=e?o._week.dow:0,c=[];if(null!=n)return Sn(t,(n+i)%7,r,"day");for(a=0;a<7;a++)c[a]=Sn(t,(a+i)%7,r,"day");return c}kn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return _(r)?r.call(t,n):r},kn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},kn.invalidDate=function(){return this._invalidDate},kn.ordinal=function(e){return this._ordinal.replace("%d",e)},kn.preparse=jn,kn.postformat=jn,kn.relativeTime=function(e,t,n,r){var a=this._relativeTime[n];return _(a)?a(e,t,n,r):a.replace(/%d/i,e)},kn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return _(n)?n(t):n.replace(/%s/i,t)},kn.set=function(e){var t,n;for(n in e)i(e,n)&&(_(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},kn.eras=function(e,t){var n,a,o,i=this._eras||ht("en")._eras;for(n=0,a=i.length;n<a;++n){switch(typeof i[n].since){case"string":o=r(i[n].since).startOf("day"),i[n].since=o.valueOf()}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":o=r(i[n].until).startOf("day").valueOf(),i[n].until=o.valueOf()}}return i},kn.erasParse=function(e,t,n){var r,a,o,i,c,l=this.eras();for(e=e.toUpperCase(),r=0,a=l.length;r<a;++r)if(o=l[r].name.toUpperCase(),i=l[r].abbr.toUpperCase(),c=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(c===e)return l[r]}else if([o,i,c].indexOf(e)>=0)return l[r]},kn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},kn.erasAbbrRegex=function(e){return i(this,"_erasAbbrRegex")||pn.call(this),e?this._erasAbbrRegex:this._erasRegex},kn.erasNameRegex=function(e){return i(this,"_erasNameRegex")||pn.call(this),e?this._erasNameRegex:this._erasRegex},kn.erasNarrowRegex=function(e){return i(this,"_erasNarrowRegex")||pn.call(this),e?this._erasNarrowRegex:this._erasRegex},kn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ne).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},kn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ne.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},kn.monthsParse=function(e,t,n){var r,a,o;if(this._monthsParseExact)return function(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=we.call(this._shortMonthsParse,i))?a:null:-1!==(a=we.call(this._longMonthsParse,i))?a:null:"MMM"===t?-1!==(a=we.call(this._shortMonthsParse,i))?a:-1!==(a=we.call(this._longMonthsParse,i))?a:null:-1!==(a=we.call(this._longMonthsParse,i))?a:-1!==(a=we.call(this._shortMonthsParse,i))?a:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},kn.monthsRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||Re.call(this),e?this._monthsStrictRegex:this._monthsRegex):(i(this,"_monthsRegex")||(this._monthsRegex=Ie),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},kn.monthsShortRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||Re.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(i(this,"_monthsShortRegex")||(this._monthsShortRegex=Te),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},kn.week=function(e){return qe(e,this._week.dow,this._week.doy).week},kn.firstDayOfYear=function(){return this._week.doy},kn.firstDayOfWeek=function(){return this._week.dow},kn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?We(n,this._week.dow):e?n[e.day()]:n},kn.weekdaysMin=function(e){return!0===e?We(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},kn.weekdaysShort=function(e){return!0===e?We(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},kn.weekdaysParse=function(e,t,n){var r,a,o;if(this._weekdaysParseExact)return function(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=we.call(this._weekdaysParse,i))?a:null:"ddd"===t?-1!==(a=we.call(this._shortWeekdaysParse,i))?a:null:-1!==(a=we.call(this._minWeekdaysParse,i))?a:null:"dddd"===t?-1!==(a=we.call(this._weekdaysParse,i))?a:-1!==(a=we.call(this._shortWeekdaysParse,i))?a:-1!==(a=we.call(this._minWeekdaysParse,i))?a:null:"ddd"===t?-1!==(a=we.call(this._shortWeekdaysParse,i))?a:-1!==(a=we.call(this._weekdaysParse,i))?a:-1!==(a=we.call(this._minWeekdaysParse,i))?a:null:-1!==(a=we.call(this._minWeekdaysParse,i))?a:-1!==(a=we.call(this._weekdaysParse,i))?a:-1!==(a=we.call(this._shortWeekdaysParse,i))?a:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},kn.weekdaysRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(i(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},kn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Je),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},kn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},kn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},kn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ft("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===W(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),r.lang=O("moment.lang is deprecated. Use moment.locale instead.",ft),r.langData=O("moment.langData is deprecated. Use moment.localeData instead.",ht);var Ln=Math.abs;function An(e,t,n,r){var a=Ut(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Pn(e){return e<0?Math.floor(e):Math.ceil(e)}function Mn(e){return 4800*e/146097}function Nn(e){return 146097*e/4800}function Tn(e){return function(){return this.as(e)}}var In=Tn("ms"),Fn=Tn("s"),Dn=Tn("m"),Rn=Tn("h"),Gn=Tn("d"),Bn=Tn("w"),Hn=Tn("M"),zn=Tn("Q"),Vn=Tn("y");function qn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Yn=qn("milliseconds"),Wn=qn("seconds"),Un=qn("minutes"),Xn=qn("hours"),Qn=qn("days"),Kn=qn("months"),Jn=qn("years"),Zn=Math.round,$n={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},er=Math.abs;function tr(e){return(e>0)-(e<0)||+e}function nr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,o,i,c,l=er(this._milliseconds)/1e3,u=er(this._days),s=er(this._months),f=this.asSeconds();return f?(e=Y(l/60),t=Y(e/60),l%=60,e%=60,n=Y(s/12),s%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=f<0?"-":"",o=tr(this._months)!==tr(f)?"-":"",i=tr(this._days)!==tr(f)?"-":"",c=tr(this._milliseconds)!==tr(f)?"-":"",a+"P"+(n?o+n+"Y":"")+(s?o+s+"M":"")+(u?i+u+"D":"")+(t||e||l?"T":"")+(t?c+t+"H":"")+(e?c+e+"M":"")+(l?c+r+"S":"")):"P0D"}var rr=Ft.prototype;return rr.isValid=function(){return this._isValid},rr.abs=function(){var e=this._data;return this._milliseconds=Ln(this._milliseconds),this._days=Ln(this._days),this._months=Ln(this._months),e.milliseconds=Ln(e.milliseconds),e.seconds=Ln(e.seconds),e.minutes=Ln(e.minutes),e.hours=Ln(e.hours),e.months=Ln(e.months),e.years=Ln(e.years),this},rr.add=function(e,t){return An(this,e,t,1)},rr.subtract=function(e,t){return An(this,e,t,-1)},rr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Mn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Nn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},rr.asMilliseconds=In,rr.asSeconds=Fn,rr.asMinutes=Dn,rr.asHours=Rn,rr.asDays=Gn,rr.asWeeks=Bn,rr.asMonths=Hn,rr.asQuarters=zn,rr.asYears=Vn,rr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*W(this._months/12):NaN},rr._bubble=function(){var e,t,n,r,a,o=this._milliseconds,i=this._days,c=this._months,l=this._data;return o>=0&&i>=0&&c>=0||o<=0&&i<=0&&c<=0||(o+=864e5*Pn(Nn(c)+i),i=0,c=0),l.milliseconds=o%1e3,e=Y(o/1e3),l.seconds=e%60,t=Y(e/60),l.minutes=t%60,n=Y(t/60),l.hours=n%24,i+=Y(n/24),a=Y(Mn(i)),c+=a,i-=Pn(Nn(a)),r=Y(c/12),c%=12,l.days=i,l.months=c,l.years=r,this},rr.clone=function(){return Ut(this)},rr.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},rr.milliseconds=Yn,rr.seconds=Wn,rr.minutes=Un,rr.hours=Xn,rr.days=Qn,rr.weeks=function(){return Y(this.days()/7)},rr.months=Kn,rr.years=Jn,rr.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,o=$n;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(a=e),"object"===typeof t&&(o=Object.assign({},$n,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var a=Ut(e).abs(),o=Zn(a.as("s")),i=Zn(a.as("m")),c=Zn(a.as("h")),l=Zn(a.as("d")),u=Zn(a.as("M")),s=Zn(a.as("w")),f=Zn(a.as("y")),d=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||i<=1&&["m"]||i<n.m&&["mm",i]||c<=1&&["h"]||c<n.h&&["hh",c]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(d=d||s<=1&&["w"]||s<n.w&&["ww",s]),(d=d||u<=1&&["M"]||u<n.M&&["MM",u]||f<=1&&["y"]||["yy",f])[2]=t,d[3]=+e>0,d[4]=r,function(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}.apply(null,d)}(this,!a,o,n),a&&(r=n.pastFuture(+this,r)),n.postformat(r)},rr.toISOString=nr,rr.toString=nr,rr.toJSON=nr,rr.locale=nn,rr.localeData=an,rr.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nr),rr.lang=rn,I("X",0,0,"unix"),I("x",0,0,"valueOf"),he("x",ue),he("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),ge("x",function(e,t,n){n._d=new Date(W(e))}),r.version="2.29.4",t=Pt,r.fn=On,r.min=function(){return Tt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Tt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=h,r.unix=function(e){return Pt(1e3*e)},r.months=function(e,t){return _n(e,t,"months")},r.isDate=s,r.locale=ft,r.invalid=v,r.duration=Ut,r.isMoment=E,r.weekdays=function(e,t,n){return Cn(e,t,n,"weekdays")},r.parseZone=function(){return Pt.apply(null,arguments).parseZone()},r.localeData=ht,r.isDuration=Dt,r.monthsShort=function(e,t){return _n(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return Cn(e,t,n,"weekdaysMin")},r.defineLocale=dt,r.updateLocale=function(e,t){if(null!=t){var n,r,a=ot;null!=it[e]&&null!=it[e].parentLocale?it[e].set(C(it[e]._config,t)):(null!=(r=st(e))&&(a=r._config),t=C(a,t),null==r&&(t.abbr=e),(n=new L(t)).parentLocale=it[e],it[e]=n),ft(e)}else null!=it[e]&&(null!=it[e].parentLocale?(it[e]=it[e].parentLocale,e===ft()&&ft(e)):null!=it[e]&&delete it[e]);return it[e]},r.locales=function(){return j(it)},r.weekdaysShort=function(e,t,n){return Cn(e,t,n,"weekdaysShort")},r.normalizeUnits=B,r.relativeTimeRounding=function(e){return void 0===e?Zn:"function"===typeof e&&(Zn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==$n[e]&&(void 0===t?$n[e]:($n[e]=t,"s"===e&&($n.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=On,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(251)(e))},1207:function(e,t,n){"use strict";var r=n(48),a=n(1),o=n(1215),i=(n(1160),n(1151)),c=n(69),l=n(1216),u=n(1168),s=a.createContext(null);var f=n(1258),d=new Map;var h=new f.default(function(e){e.forEach(function(e){var t,n=e.target;null===(t=d.get(n))||void 0===t||t.forEach(function(e){return e(n)})})});var p=n(185),m=n(186),v=n(188),g=n(1184),y=function(e){Object(v.a)(n,e);var t=Object(g.a)(n);function n(){return Object(p.a)(this,n),t.apply(this,arguments)}return Object(m.a)(n,[{key:"render",value:function(){return this.props.children}}]),n}(a.Component);function b(e,t){var n=e.children,r=e.disabled,o=a.useRef(null),f=a.useRef(null),p=a.useContext(s),m="function"===typeof n,v=m?n(o):n,g=a.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),b=!m&&a.isValidElement(v)&&Object(u.c)(v),w=b?v.ref:null,E=Object(u.d)(w,o),x=function(){var e;return Object(l.a)(o.current)||(o.current&&"object"===Object(c.a)(o.current)?Object(l.a)(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||Object(l.a)(f.current)};a.useImperativeHandle(t,function(){return x()});var O=a.useRef(e);O.current=e;var j=a.useCallback(function(e){var t=O.current,n=t.onResize,r=t.data,a=e.getBoundingClientRect(),o=a.width,c=a.height,l=e.offsetWidth,u=e.offsetHeight,s=Math.floor(o),f=Math.floor(c);if(g.current.width!==s||g.current.height!==f||g.current.offsetWidth!==l||g.current.offsetHeight!==u){var d={width:s,height:f,offsetWidth:l,offsetHeight:u};g.current=d;var h=l===Math.round(o)?o:l,m=u===Math.round(c)?c:u,v=Object(i.a)(Object(i.a)({},d),{},{offsetWidth:h,offsetHeight:m});null===p||void 0===p||p(v,e,r),n&&Promise.resolve().then(function(){n(v,e)})}},[]);return a.useEffect(function(){var e,t,n=x();return n&&!r&&(e=n,t=j,d.has(e)||(d.set(e,new Set),h.observe(e)),d.get(e).add(t)),function(){return e=n,t=j,void(d.has(e)&&(d.get(e).delete(t),d.get(e).size||(h.unobserve(e),d.delete(e))));var e,t}},[o.current,r]),a.createElement(y,{ref:f},b?a.cloneElement(v,{ref:E}):v)}var w=a.forwardRef(b),E="rc-observer-key";function x(e,t){var n=e.children;return("function"===typeof n?[n]:Object(o.a)(n)).map(function(n,o){var i=(null===n||void 0===n?void 0:n.key)||"".concat(E,"-").concat(o);return a.createElement(w,Object(r.a)({},e,{key:i,ref:0===o?t:void 0}),n)})}var O=a.forwardRef(x);O.Collection=function(e){var t=e.children,n=e.onBatchResize,r=a.useRef(0),o=a.useRef([]),i=a.useContext(s),c=a.useCallback(function(e,t,a){r.current+=1;var c=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then(function(){c===r.current&&(null===n||void 0===n||n(o.current),o.current=[])}),null===i||void 0===i||i(e,t,a)},[n,i]);return a.createElement(s.Provider,{value:c},t)};t.a=O},1211:function(e,t,n){var r=n(336),a=n(192);e.exports=function(e,t,n){(void 0===n||a(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},1212:function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},1213:function(e,t,n){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.a=r},1214:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(1);function a(e,t,n){var a=r.useRef({});return"value"in a.current&&!n(a.current.condition,t)||(a.current.value=e(),a.current.condition=t),a.current.value}},1215:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(1),a=n.n(r),o=n(1303);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return a.a.Children.forEach(e,function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(i(e)):Object(o.isFragment)(e)&&e.props?n=n.concat(i(e.props.children,t)):n.push(e))}),n}},1216:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return l});var r=n(1),a=n.n(r),o=n(114),i=n.n(o);function c(e){return e instanceof HTMLElement||e instanceof SVGElement}function l(e){return c(e)?e:e instanceof a.a.Component?i.a.findDOMNode(e):null}},1217:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(1151);function a(e,t){var n=Object(r.a)({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}},1218:function(e,t,n){"use strict";function r(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null===n||void 0===n)return;n=n[t[r]]}return n}n.d(t,"a",function(){return r})},1219:function(e,t,n){var r=n(532);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},1220:function(e,t,n){"use strict";var r=Array.prototype.slice,a=n(1221),o=Object.keys,i=o?function(e){return o(e)}:n(1266),c=Object.keys;i.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return a(e)?c(r.call(e)):c(e)}):Object.keys=i;return Object.keys||i},e.exports=i},1221:function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},1222:function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},1223:function(e,t,n){"use strict";var r=n(1201),a=n(1203),o=a(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?a(n):n}},1224:function(e,t,n){"use strict";var r=function(e){return e!==e};e.exports=function(e,t){return 0===e&&0===t?1/e===1/t:e===t||!(!r(e)||!r(t))}},1225:function(e,t,n){"use strict";var r=n(1224);e.exports=function(){return"function"===typeof Object.is?Object.is:r}},1226:function(e,t,n){"use strict";var r=n(1276).functionsHaveConfigurableNames(),a=Object,o=TypeError;e.exports=function(){if(null!=this&&this!==a(this))throw new o("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e},r&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})},1227:function(e,t,n){"use strict";var r=n(1226),a=n(1171).supportsDescriptors,o=Object.getOwnPropertyDescriptor;e.exports=function(){if(a&&"gim"===/a/gim.flags){var e=o(RegExp.prototype,"flags");if(e&&"function"===typeof e.get&&"boolean"===typeof RegExp.prototype.dotAll&&"boolean"===typeof RegExp.prototype.hasIndices){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),"dy"===t)return e.get}}return r}},1231:function(e,t,n){var r=n(1253),a=n(1232)(function(e,t,n){r(e,t,n)});e.exports=a},1232:function(e,t,n){var r=n(189),a=n(332);e.exports=function(e){return r(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,c=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,c&&a(n[0],n[1],c)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,i)}return t})}},1233:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(1151),a="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),o="aria-",i="data-";function c(e,t){return 0===e.indexOf(t)}function l(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Object(r.a)({},n);var l={};return Object.keys(e).forEach(function(n){(t.aria&&("role"===n||c(n,o))||t.data&&c(n,i)||t.attr&&a.includes(n))&&(l[n]=e[n])}),l}},1234:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,o(n)))}return e}function o(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=i(t,r));return t}function i(e,t){return t?e?e+" "+t:e+t:e}"undefined"!==typeof e&&e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},1235:function(e,t,n){"use strict";var r=n(1205);n.d(t,"a",function(){return r.a});n(1197),n(1168),n(1218),n(1199),n(1160)},1242:function(e,t,n){"use strict";var r,a=(r=n(1))&&"object"==typeof r&&"default"in r?r.default:r,o=n(114);function i(){return(i=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 c(e,t){e.prototype=Object.create(t.prototype),function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var a=n[r],o=Object.getOwnPropertyDescriptor(t,a);o&&o.configurable&&void 0===e[a]&&Object.defineProperty(e,a,o)}}(e.prototype.constructor=e,t)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(e,t,n,r,a,o,i,c){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,o,i,c],s=0;(l=new Error(t.replace(/%s/g,function(){return u[s++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}};function s(e,t,n){if("selectionStart"in e&&"selectionEnd"in e)e.selectionStart=t,e.selectionEnd=n;else{var r=e.createTextRange();r.collapse(!0),r.moveStart("character",t),r.moveEnd("character",n-t),r.select()}}var f={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},d="_";function h(e,t,n){var r="",a="",o=null,i=[];if(void 0===t&&(t=d),null==n&&(n=f),!e||"string"!=typeof e)return{maskChar:t,formatChars:n,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var c=!1;return e.split("").forEach(function(e){c=!c&&"\\"===e||(c||!n[e]?(i.push(r.length),r.length===i.length-1&&(a+=e)):o=r.length+1,r+=e,!1)}),{maskChar:t,formatChars:n,prefix:a,mask:r,lastEditablePosition:o,permanents:i}}function p(e,t){return-1!==e.permanents.indexOf(t)}function m(e,t,n){var r=e.mask,a=e.formatChars;if(!n)return!1;if(p(e,t))return r[t]===n;var o=a[r[t]];return new RegExp(o).test(n)}function v(e,t){return t.split("").every(function(t,n){return p(e,n)||!m(e,n,t)})}function g(e,t){var n=e.maskChar,r=e.prefix;if(!n){for(;t.length>r.length&&p(e,t.length-1);)t=t.slice(0,t.length-1);return t.length}for(var a=r.length,o=t.length;o>=r.length;o--){var i=t[o];if(!p(e,o)&&m(e,o,i)){a=o+1;break}}return a}function y(e,t){return g(e,t)===e.mask.length}function b(e,t){var n=e.maskChar,r=e.mask,a=e.prefix;if(!n){for((t=w(e,"",t,0)).length<a.length&&(t=a);t.length<r.length&&p(e,t.length);)t+=r[t.length];return t}if(t)return w(e,b(e,""),t,0);for(var o=0;o<r.length;o++)p(e,o)?t+=r[o]:t+=n;return t}function w(e,t,n,r){var a=e.mask,o=e.maskChar,i=e.prefix,c=n.split(""),l=y(e,t);return!o&&r>t.length&&(t+=a.slice(t.length,r)),c.every(function(n){for(;s=n,p(e,u=r)&&s!==a[u];){if(r>=t.length&&(t+=a[r]),c=n,o&&p(e,r)&&c===o)return!0;if(++r>=a.length)return!1}var c,u,s;return!m(e,r,n)&&n!==o||(r<t.length?t=o||l||r<i.length?t.slice(0,r)+n+t.slice(r+1):(t=t.slice(0,r)+n+t.slice(r),b(e,t)):o||(t+=n),++r<a.length)}),t}function E(e,t){for(var n=e.mask,r=t;r<n.length;++r)if(!p(e,r))return r;return null}function x(e){return e||0===e?e+"":""}function O(e,t,n,r,a){var o=e.mask,i=e.prefix,c=e.lastEditablePosition,l=t,u="",s=0,f=0,d=Math.min(a.start,n.start);return n.end>a.start?f=(s=function(e,t,n,r){var a=e.mask,o=e.maskChar,i=n.split(""),c=r;return i.every(function(t){for(;i=t,p(e,n=r)&&i!==a[n];)if(++r>=a.length)return!1;var n,i;return(m(e,r,t)||t===o)&&r++,r<a.length}),r-c}(e,0,u=l.slice(a.start,n.end),d))?a.length:0:l.length<r.length&&(f=r.length-l.length),l=r,f&&(1!==f||a.length||(d=a.start===n.start?E(e,n.start):function(e,t){for(var n=t;0<=n;--n)if(!p(e,n))return n;return null}(e,n.start)),l=function(e,t,n,r){var a=n+r,o=e.maskChar,i=e.mask,c=e.prefix,l=t.split("");if(o)return l.map(function(t,r){return r<n||a<=r?t:p(e,r)?i[r]:o}).join("");for(var u=a;u<l.length;u++)p(e,u)&&(l[u]="");return n=Math.max(c.length,n),l.splice(n,a-n),t=l.join(""),b(e,t)}(e,l,d,f)),l=w(e,l,u,d),(d+=s)>=o.length?d=o.length:d<i.length&&!s?d=i.length:d>=i.length&&d<c&&s&&(d=E(e,d)),u||(u=null),{value:l=b(e,l),enteredString:u,selection:{start:d,end:d}}}function j(e){return"function"==typeof e}function k(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function S(e){return(k()?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame:function(){return setTimeout(e,1e3/60)})(e)}function _(e){(k()||clearTimeout)(e)}var C=function(e){function t(t){var n=e.call(this,t)||this;n.focused=!1,n.mounted=!1,n.previousSelection=null,n.selectionDeferId=null,n.saveSelectionLoopDeferId=null,n.saveSelectionLoop=function(){n.previousSelection=n.getSelection(),n.saveSelectionLoopDeferId=S(n.saveSelectionLoop)},n.runSaveSelectionLoop=function(){null===n.saveSelectionLoopDeferId&&n.saveSelectionLoop()},n.stopSaveSelectionLoop=function(){null!==n.saveSelectionLoopDeferId&&(_(n.saveSelectionLoopDeferId),n.saveSelectionLoopDeferId=null,n.previousSelection=null)},n.getInputDOMNode=function(){if(!n.mounted)return null;var e=o.findDOMNode(l(l(n))),t="undefined"!=typeof window&&e instanceof window.Element;if(e&&!t)return null;if("INPUT"!==e.nodeName&&(e=e.querySelector("input")),!e)throw new Error("react-input-mask: inputComponent doesn't contain input node");return e},n.getInputValue=function(){var e=n.getInputDOMNode();return e?e.value:null},n.setInputValue=function(e){var t=n.getInputDOMNode();t&&(n.value=e,t.value=e)},n.setCursorToEnd=function(){var e=g(n.maskOptions,n.value),t=E(n.maskOptions,e);null!==t&&n.setCursorPosition(t)},n.setSelection=function(e,t,r){void 0===r&&(r={});var a=n.getInputDOMNode(),o=n.isFocused();a&&o&&(r.deferred||s(a,e,t),null!==n.selectionDeferId&&_(n.selectionDeferId),n.selectionDeferId=S(function(){n.selectionDeferId=null,s(a,e,t)}),n.previousSelection={start:e,end:t,length:Math.abs(t-e)})},n.getSelection=function(){return function(e){var t=0,n=0;if("selectionStart"in e&&"selectionEnd"in e)t=e.selectionStart,n=e.selectionEnd;else{var r=document.selection.createRange();r.parentElement()===e&&(t=-r.moveStart("character",-e.value.length),n=-r.moveEnd("character",-e.value.length))}return{start:t,end:n,length:n-t}}(n.getInputDOMNode())},n.getCursorPosition=function(){return n.getSelection().start},n.setCursorPosition=function(e){n.setSelection(e,e)},n.isFocused=function(){return n.focused},n.getBeforeMaskedValueChangeConfig=function(){var e=n.maskOptions,t=e.mask,r=e.maskChar,a=e.permanents,o=e.formatChars;return{mask:t,maskChar:r,permanents:a,alwaysShowMask:!!n.props.alwaysShowMask,formatChars:o}},n.isInputAutofilled=function(e,t,r,a){var o=n.getInputDOMNode();try{if(o.matches(":-webkit-autofill"))return!0}catch(u){}return!n.focused||a.end<r.length&&t.end===e.length},n.onChange=function(e){var t=l(l(n)).beforePasteState,r=l(l(n)).previousSelection,a=n.props.beforeMaskedValueChange,o=n.getInputValue(),i=n.value,c=n.getSelection();n.isInputAutofilled(o,c,i,r)&&(i=b(n.maskOptions,""),r={start:0,end:0,length:0}),t&&(r=t.selection,i=t.value,c={start:r.start+o.length,end:r.start+o.length,length:0},o=i.slice(0,r.start)+o+i.slice(r.end),n.beforePasteState=null);var u=O(n.maskOptions,o,c,i,r),s=u.enteredString,f=u.selection,d=u.value;if(j(a)){var h=a({value:d,selection:f},{value:i,selection:r},s,n.getBeforeMaskedValueChangeConfig());d=h.value,f=h.selection}n.setInputValue(d),j(n.props.onChange)&&n.props.onChange(e),n.isWindowsPhoneBrowser?n.setSelection(f.start,f.end,{deferred:!0}):n.setSelection(f.start,f.end)},n.onFocus=function(e){var t=n.props.beforeMaskedValueChange,r=n.maskOptions,a=r.mask,o=r.prefix;if(n.focused=!0,n.mounted=!0,a){if(n.value)g(n.maskOptions,n.value)<n.maskOptions.mask.length&&n.setCursorToEnd();else{var i=b(n.maskOptions,o),c=b(n.maskOptions,i),l=g(n.maskOptions,c),u=E(n.maskOptions,l),s={start:u,end:u};if(j(t)){var f=t({value:c,selection:s},{value:n.value,selection:null},null,n.getBeforeMaskedValueChangeConfig());c=f.value,s=f.selection}var d=c!==n.getInputValue();d&&n.setInputValue(c),d&&j(n.props.onChange)&&n.props.onChange(e),n.setSelection(s.start,s.end)}n.runSaveSelectionLoop()}j(n.props.onFocus)&&n.props.onFocus(e)},n.onBlur=function(e){var t=n.props.beforeMaskedValueChange,r=n.maskOptions.mask;if(n.stopSaveSelectionLoop(),n.focused=!1,r&&!n.props.alwaysShowMask&&v(n.maskOptions,n.value)){var a="";j(t)&&(a=t({value:a,selection:null},{value:n.value,selection:n.previousSelection},null,n.getBeforeMaskedValueChangeConfig()).value);var o=a!==n.getInputValue();o&&n.setInputValue(a),o&&j(n.props.onChange)&&n.props.onChange(e)}j(n.props.onBlur)&&n.props.onBlur(e)},n.onMouseDown=function(e){if(!n.focused&&document.addEventListener){n.mouseDownX=e.clientX,n.mouseDownY=e.clientY,n.mouseDownTime=(new Date).getTime();document.addEventListener("mouseup",function e(t){if(document.removeEventListener("mouseup",e),n.focused){var r=Math.abs(t.clientX-n.mouseDownX),a=Math.abs(t.clientY-n.mouseDownY),o=Math.max(r,a),i=(new Date).getTime()-n.mouseDownTime;(o<=10&&i<=200||o<=5&&i<=300)&&n.setCursorToEnd()}})}j(n.props.onMouseDown)&&n.props.onMouseDown(e)},n.onPaste=function(e){j(n.props.onPaste)&&n.props.onPaste(e),e.defaultPrevented||(n.beforePasteState={value:n.getInputValue(),selection:n.getSelection()},n.setInputValue(""))},n.handleRef=function(e){null==n.props.children&&j(n.props.inputRef)&&n.props.inputRef(e)};var r=t.mask,a=t.maskChar,i=t.formatChars,c=t.alwaysShowMask,u=t.beforeMaskedValueChange,f=t.defaultValue,d=t.value;n.maskOptions=h(r,a,i),null==f&&(f=""),null==d&&(d=f);var p=x(d);if(n.maskOptions.mask&&(c||p)&&(p=b(n.maskOptions,p),j(u))){var m=t.value;null==t.value&&(m=f),p=u({value:p,selection:null},{value:m=x(m),selection:null},null,n.getBeforeMaskedValueChangeConfig()).value}return n.value=p,n}c(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=function(){var e=new RegExp("windows","i"),t=new RegExp("phone","i"),n=navigator.userAgent;return e.test(n)&&t.test(n)}(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},n.componentDidUpdate=function(){var e=this.previousSelection,t=this.props,n=t.beforeMaskedValueChange,r=t.alwaysShowMask,a=t.mask,o=t.maskChar,i=t.formatChars,c=this.maskOptions,l=r||this.isFocused(),u=null!=this.props.value,s=u?x(this.props.value):this.value,f=e?e.start:null;if(this.maskOptions=h(a,o,i),this.maskOptions.mask){!c.mask&&this.isFocused()&&this.runSaveSelectionLoop();var d=this.maskOptions.mask&&this.maskOptions.mask!==c.mask;if(c.mask||u||(s=this.getInputValue()),(d||this.maskOptions.mask&&(s||l))&&(s=b(this.maskOptions,s)),d){var p=g(this.maskOptions,s);(null===f||p<f)&&(f=y(this.maskOptions,s)?p:E(this.maskOptions,p))}!this.maskOptions.mask||!v(this.maskOptions,s)||l||u&&this.props.value||(s="");var m={start:f,end:f};if(j(n)){var w=n({value:s,selection:m},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());s=w.value,m=w.selection}this.value=s;var O=this.getInputValue()!==this.value;O?(this.setInputValue(this.value),this.forceUpdate()):d&&this.forceUpdate();var k=!1;null!=m.start&&null!=m.end&&(k=!e||e.start!==m.start||e.end!==m.end),(k||O)&&this.setSelection(m.start,m.end)}else c.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},n.componentWillUnmount=function(){this.mounted=!1,null!==this.selectionDeferId&&_(this.selectionDeferId),this.stopSaveSelectionLoop()},n.render=function(){var e,t=this.props,n=(t.mask,t.alwaysShowMask,t.maskChar,t.formatChars,t.inputRef,t.beforeMaskedValueChange,t.children),r=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||(a[n]=e[n]);return a}(t,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(n){j(n)||u(!1);var o=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],c=i({},r);o.forEach(function(e){return delete c[e]}),e=n(c),o.filter(function(t){return null!=e.props[t]&&e.props[t]!==r[t]}).length&&u(!1)}else e=a.createElement("input",i({ref:this.handleRef},r));var l={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(r.disabled||r.readOnly||(l.onChange=this.onChange,l.onPaste=this.onPaste,l.onMouseDown=this.onMouseDown),null!=r.value&&(l.value=this.value)),e=a.cloneElement(e,l)},t}(a.Component);e.exports=C},1243:function(e,t,n){var r=n(1230);e.exports=function(e,t){if(null==e)return{};var n,a,o=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},e.exports.__esModule=!0,e.exports.default=e.exports},1244:function(e,t,n){var r=n(1245),a=n(1251),o=r(function(e,t,n){return e+(n?" ":"")+a(t)});e.exports=o},1245:function(e,t,n){var r=n(508),a=n(1246),o=n(1247),i=RegExp("['\u2019]","g");e.exports=function(e){return function(t){return r(o(a(t).replace(i,"")),e,"")}}},1247:function(e,t,n){var r=n(1248),a=n(1249),o=n(187),i=n(1250);e.exports=function(e,t,n){return e=o(e),void 0===(t=n?void 0:t)?a(e)?i(e):r(e):e.match(t)||[]}},1248:function(e,t){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(n)||[]}},1249:function(e,t){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return n.test(e)}},1250:function(e,t){var n="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",r="["+n+"]",a="\\d+",o="[\\u2700-\\u27bf]",i="[a-z\\xdf-\\xf6\\xf8-\\xff]",c="[^\\ud800-\\udfff"+n+a+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",s="[A-Z\\xc0-\\xd6\\xd8-\\xde]",f="(?:"+i+"|"+c+")",d="(?:"+s+"|"+c+")",h="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",p="[\\ufe0e\\ufe0f]?"+h+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",l,u].join("|")+")[\\ufe0e\\ufe0f]?"+h+")*"),m="(?:"+[o,l,u].join("|")+")"+p,v=RegExp([s+"?"+i+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[r,s,"$"].join("|")+")",d+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[r,s+f,"$"].join("|")+")",s+"?"+f+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",s+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",a,m].join("|"),"g");e.exports=function(e){return e.match(v)||[]}},1251:function(e,t,n){var r=n(1252)("toUpperCase");e.exports=r},1252:function(e,t,n){var r=n(512),a=n(333),o=n(339),i=n(187);e.exports=function(e){return function(t){t=i(t);var n=a(t)?o(t):void 0,c=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return c[e]()+l}}},1253:function(e,t,n){var r=n(254),a=n(1211),o=n(473),i=n(1254),c=n(92),l=n(252),u=n(1212);e.exports=function e(t,n,s,f,d){t!==n&&o(n,function(o,l){if(d||(d=new r),c(o))i(t,n,l,s,e,f,d);else{var h=f?f(u(t,l),o,l+"",t,n,d):void 0;void 0===h&&(h=o),a(t,l,h)}},l)}},1254:function(e,t,n){var r=n(1211),a=n(509),o=n(510),i=n(162),c=n(511),l=n(193),u=n(33),s=n(253),f=n(194),d=n(137),h=n(92),p=n(257),m=n(255),v=n(1212),g=n(1255);e.exports=function(e,t,n,y,b,w,E){var x=v(e,n),O=v(t,n),j=E.get(O);if(j)r(e,n,j);else{var k=w?w(x,O,n+"",e,t,E):void 0,S=void 0===k;if(S){var _=u(O),C=!_&&f(O),L=!_&&!C&&m(O);k=O,_||C||L?u(x)?k=x:s(x)?k=i(x):C?(S=!1,k=a(O,!0)):L?(S=!1,k=o(O,!0)):k=[]:p(O)||l(O)?(k=x,l(x)?k=g(x):h(x)&&!d(x)||(k=c(O))):S=!1}S&&(E.set(O,k),b(k,O,y,w,E),E.delete(O)),r(e,n,k)}}},1255:function(e,t,n){var r=n(191),a=n(252);e.exports=function(e){return r(e,a(e))}},1256:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(1298);function a(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},1257:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(1150),a=n(1);function o(e){var t=a.useRef(!1),n=a.useState(e),o=Object(r.a)(n,2),i=o[0],c=o[1];return a.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[i,function(e,n){n&&t.current||c(e)}]}},1258:function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var a=r[n];e.call(t,a[1],a[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,a="undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),o="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(a):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},i=2;var c=20,l=["top","right","bottom","left","width","height","size","weight"],u="undefined"!==typeof MutationObserver,s=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,a=0;function c(){n&&(n=!1,e()),r&&u()}function l(){o(c)}function u(){var e=Date.now();if(n){if(e-a<i)return;r=!0}else n=!0,r=!1,setTimeout(l,t);a=e}return u}(this.refresh.bind(this),c)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||a},h=b(0,0,0,0);function p(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+p(e["border-"+n+"-width"])},0)}function v(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return h;var r=d(e).getComputedStyle(e),a=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var a=r[n],o=e["padding-"+a];t[a]=p(o)}return t}(r),o=a.left+a.right,i=a.top+a.bottom,c=p(r.width),l=p(r.height);if("border-box"===r.boxSizing&&(Math.round(c+o)!==t&&(c-=m(r,"left","right")+o),Math.round(l+i)!==n&&(l-=m(r,"top","bottom")+i)),!function(e){return e===d(e).document.documentElement}(e)){var u=Math.round(c+o)-t,s=Math.round(l+i)-n;1!==Math.abs(u)&&(c-=u),1!==Math.abs(s)&&(l-=s)}return b(a.left,a.top,c,l)}var g="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"===typeof e.getBBox};function y(e){return r?g(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):v(e):h}function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var w=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),E=function(){return function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,a=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,i=Object.create(o.prototype);return f(i,{x:t,y:n,width:r,height:a,top:n,right:t+r,bottom:a+n,left:t}),i}(t);f(this,{target:e,contentRect:n})}}(),x=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new w(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new E(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),O="undefined"!==typeof WeakMap?new WeakMap:new n,j=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),r=new x(t,n,this);O.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){j.prototype[e]=function(){var t;return(t=O.get(this))[e].apply(t,arguments)}});var k="undefined"!==typeof a.ResizeObserver?a.ResizeObserver:j;t.default=k}.call(this,n(250))},1259:function(e,t,n){"use strict";function r(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function a(e){return function(e){return r(e)instanceof ShadowRoot}(e)?r(e):null}n.d(t,"a",function(){return a})},1260:function(e,t,n){"use strict";var r=n(69),a=n(1160);t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,i){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=o.has(t);if(Object(a.a)(!l,"Warning: There may be circular references"),l)return!1;if(t===i)return!0;if(n&&c>1)return!1;o.add(t);var u=c+1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(var s=0;s<t.length;s++)if(!e(t[s],i[s],u))return!1;return!0}if(t&&i&&"object"===Object(r.a)(t)&&"object"===Object(r.a)(i)){var f=Object.keys(t);return f.length===Object.keys(i).length&&f.every(function(n){return e(t[n],i[n],u)})}return!1}(e,t)}},1261:function(e,t,n){"use strict";function r(e,t){(function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function a(e){return Math.min(1,Math.max(0,e))}function o(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function i(e){return e<=1?"".concat(100*Number(e),"%"):e}function c(e){return 1===e.length?"0"+e:String(e)}n.d(t,"a",function(){return r}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return o}),n.d(t,"d",function(){return i}),n.d(t,"e",function(){return c})},1262:function(e,t,n){var r=n(459),a=n(1263),o=n(136),i=Object.prototype.toString,c=a(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=i.call(t)),e[t]=n},r(o));e.exports=c},1263:function(e,t,n){var r=n(1264);e.exports=function(e,t){return function(n,a){return r(n,e,t(a),{})}}},1264:function(e,t,n){var r=n(472);e.exports=function(e,t,n,a){return r(e,function(e,r,o){t(a,n(e),r,o)}),a}},1265:function(e,t,n){var r=n(1220),a=n(1267),o=n(1271),i=n(1274),c=n(1275),l=n(1278),u=Date.prototype.getTime;function s(e,t,n){var h=n||{};return!(h.strict?!o(e,t):e!==t)||(!e||!t||"object"!==typeof e&&"object"!==typeof t?h.strict?o(e,t):e==t:function(e,t,n){var o,h;if(typeof e!==typeof t)return!1;if(f(e)||f(t))return!1;if(e.prototype!==t.prototype)return!1;if(a(e)!==a(t))return!1;var p=i(e),m=i(t);if(p!==m)return!1;if(p||m)return e.source===t.source&&c(e)===c(t);if(l(e)&&l(t))return u.call(e)===u.call(t);var v=d(e),g=d(t);if(v!==g)return!1;if(v||g){if(e.length!==t.length)return!1;for(o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}if(typeof e!==typeof t)return!1;try{var y=r(e),b=r(t)}catch(w){return!1}if(y.length!==b.length)return!1;for(y.sort(),b.sort(),o=y.length-1;o>=0;o--)if(y[o]!=b[o])return!1;for(o=y.length-1;o>=0;o--)if(h=y[o],!s(e[h],t[h],n))return!1;return!0}(e,t,h))}function f(e){return null===e||void 0===e}function d(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&("function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0]))}e.exports=s},1266:function(e,t,n){"use strict";var r;if(!Object.keys){var a=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=n(1221),c=Object.prototype.propertyIsEnumerable,l=!c.call({toString:null},"toString"),u=c.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&a.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{f(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();r=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===o.call(e),r=i(e),c=t&&"[object String]"===o.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var p=u&&n;if(c&&e.length>0&&!a.call(e,0))for(var m=0;m<e.length;++m)d.push(String(m));if(r&&e.length>0)for(var v=0;v<e.length;++v)d.push(String(v));else for(var g in e)p&&"prototype"===g||!a.call(e,g)||d.push(String(g));if(l)for(var y=function(e){if("undefined"===typeof window||!h)return f(e);try{return f(e)}catch(t){return!1}}(e),b=0;b<s.length;++b)y&&"constructor"===s[b]||!a.call(e,s[b])||d.push(s[b]);return d}}e.exports=r},1267:function(e,t,n){"use strict";var r=n(1200)(),a=n(1223)("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===a(e)},i=function(e){return!!o(e)||null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==a(e)&&"[object Function]"===a(e.callee)},c=function(){return o(arguments)}();o.isLegacyArguments=i,e.exports=c?o:i},1268:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,a=n(1222);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&a())))}},1269:function(e,t,n){"use strict";var r=Array.prototype.slice,a=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!==typeof t||"[object Function]"!==a.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,o=r.call(arguments,1),i=Math.max(0,t.length-o.length),c=[],l=0;l<i;l++)c.push("$"+l);if(n=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof n){var a=t.apply(this,o.concat(r.call(arguments)));return Object(a)===a?a:this}return t.apply(e,o.concat(r.call(arguments)))}),t.prototype){var u=function(){};u.prototype=t.prototype,n.prototype=new u,u.prototype=null}return n}},1270:function(e,t,n){"use strict";var r=n(1202);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},1271:function(e,t,n){"use strict";var r=n(1171),a=n(1203),o=n(1224),i=n(1225),c=n(1273),l=a(i(),Object);r(l,{getPolyfill:i,implementation:o,shim:c}),e.exports=l},1272:function(e,t,n){"use strict";var r=n(1201)("%Object.defineProperty%",!0),a=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};a.hasArrayLengthDefineBug=function(){if(!a())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=a},1273:function(e,t,n){"use strict";var r=n(1225),a=n(1171);e.exports=function(){var e=r();return a(Object,{is:e},{is:function(){return Object.is!==e}}),e}},1274:function(e,t,n){"use strict";var r,a,o,i,c=n(1223),l=n(1200)();if(l){r=c("Object.prototype.hasOwnProperty"),a=c("RegExp.prototype.exec"),o={};var u=function(){throw o};i={toString:u,valueOf:u},"symbol"===typeof Symbol.toPrimitive&&(i[Symbol.toPrimitive]=u)}var s=c("Object.prototype.toString"),f=Object.getOwnPropertyDescriptor;e.exports=l?function(e){if(!e||"object"!==typeof e)return!1;var t=f(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{a(e,i)}catch(n){return n===o}}:function(e){return!(!e||"object"!==typeof e&&"function"!==typeof e)&&"[object RegExp]"===s(e)}},1275:function(e,t,n){"use strict";var r=n(1171),a=n(1203),o=n(1226),i=n(1227),c=n(1277),l=a(i());r(l,{getPolyfill:i,implementation:o,shim:c}),e.exports=l},1276:function(e,t,n){"use strict";var r=function(){return"string"===typeof function(){}.name},a=Object.getOwnPropertyDescriptor;if(a)try{a([],"length")}catch(i){a=null}r.functionsHaveConfigurableNames=function(){return r()&&a&&!!a(function(){},"name").configurable};var o=Function.prototype.bind;r.boundFunctionsHaveNames=function(){return r()&&"function"===typeof o&&""!==function(){}.bind().name},e.exports=r},1277:function(e,t,n){"use strict";var r=n(1171).supportsDescriptors,a=n(1227),o=Object.getOwnPropertyDescriptor,i=Object.defineProperty,c=TypeError,l=Object.getPrototypeOf,u=/a/;e.exports=function(){if(!r||!l)throw new c("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=a(),t=l(u),n=o(t,"flags");return n&&n.get===e||i(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},1278:function(e,t,n){"use strict";var r=Date.prototype.getDay,a=Object.prototype.toString,o=n(1200)();e.exports=function(e){return"object"===typeof e&&null!==e&&(o?function(e){try{return r.call(e),!0}catch(t){return!1}}(e):"[object Date]"===a.call(e))}},1279:function(e,t,n){"use strict";(function(e){var n="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var a=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},r))}};function o(e){return e&&"[object Function]"==={}.toString.call(e)}function i(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function c(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=i(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/(auto|scroll|overlay)/.test(n+a+r)?e:l(c(e))}function u(e){return e&&e.referenceNode?e.referenceNode:e}var s=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?s:10===e?f:s||f}function h(e){if(!e)return document.documentElement;for(var t=d(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===i(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function p(e){return null!==e.parentNode?p(e.parentNode):e}function m(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,a=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(a,0);var i=o.commonAncestorContainer;if(e!==i&&t!==i||r.contains(a))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||h(e.firstElementChild)===e)}(i)?i:h(i);var c=p(e);return c.host?m(c.host,t):m(e,p(t).host)}function v(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function g(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function y(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function b(e){var t=e.body,n=e.documentElement,r=d(10)&&getComputedStyle(n);return{height:y("Height",t,n,r),width:y("Width",t,n,r)}}var w=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},E=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),x=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},O=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};function j(e){return O({},e,{right:e.left+e.width,bottom:e.top+e.height})}function k(e){var t={};try{if(d(10)){t=e.getBoundingClientRect();var n=v(e,"top"),r=v(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(h){}var a={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?b(e.ownerDocument):{},c=o.width||e.clientWidth||a.width,l=o.height||e.clientHeight||a.height,u=e.offsetWidth-c,s=e.offsetHeight-l;if(u||s){var f=i(e);u-=g(f,"x"),s-=g(f,"y"),a.width-=u,a.height-=s}return j(a)}function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=d(10),a="HTML"===t.nodeName,o=k(e),c=k(t),u=l(e),s=i(t),f=parseFloat(s.borderTopWidth),h=parseFloat(s.borderLeftWidth);n&&a&&(c.top=Math.max(c.top,0),c.left=Math.max(c.left,0));var p=j({top:o.top-c.top-f,left:o.left-c.left-h,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!r&&a){var m=parseFloat(s.marginTop),g=parseFloat(s.marginLeft);p.top-=f-m,p.bottom-=f-m,p.left-=h-g,p.right-=h-g,p.marginTop=m,p.marginLeft=g}return(r&&!n?t.contains(u):t===u&&"BODY"!==u.nodeName)&&(p=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=v(t,"top"),a=v(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=a*o,e.right+=a*o,e}(p,t)),p}function _(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===i(t,"transform");)t=t.parentElement;return t||document.documentElement}function C(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},s=a?_(e):m(e,u(t));if("viewport"===r)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=S(e,n),a=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:v(n),c=t?0:v(n,"left");return j({top:i-r.top+r.marginTop,left:c-r.left+r.marginLeft,width:a,height:o})}(s,a);else{var f=void 0;"scrollParent"===r?"BODY"===(f=l(c(t))).nodeName&&(f=e.ownerDocument.documentElement):f="window"===r?e.ownerDocument.documentElement:r;var d=S(f,s,a);if("HTML"!==f.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===i(t,"position"))return!0;var r=c(t);return!!r&&e(r)}(s))o=d;else{var h=b(e.ownerDocument),p=h.height,g=h.width;o.top+=d.top-d.marginTop,o.bottom=p+d.top,o.left+=d.left-d.marginLeft,o.right=g+d.left}}var y="number"===typeof(n=n||0);return o.left+=y?n:n.left||0,o.top+=y?n:n.top||0,o.right-=y?n:n.right||0,o.bottom-=y?n:n.bottom||0,o}function L(e,t,n,r,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var i=C(n,r,o,a),c={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},l=Object.keys(c).map(function(e){return O({key:e},c[e],{area:(t=c[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),u=l.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),s=u.length>0?u[0].key:l[0].key,f=e.split("-")[1];return s+(f?"-"+f:"")}function A(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return S(n,r?_(t):m(t,u(n)),r)}function P(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function M(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function N(e,t,n){n=n.split("-")[0];var r=P(e),a={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),i=o?"top":"left",c=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return a[i]=t[i]+t[l]/2-r[l]/2,a[c]=n===c?t[c]-r[u]:t[M(c)],a}function T(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function I(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=T(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=j(t.offsets.popper),t.offsets.reference=j(t.offsets.reference),t=n(t,e))}),t}function F(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function D(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var a=t[r],o=a?""+a+n:e;if("undefined"!==typeof document.body.style[o])return o}return null}function R(e){var t=e.ownerDocument;return t?t.defaultView:window}function G(e,t,n,r){n.updateBound=r,R(e).addEventListener("resize",n.updateBound,{passive:!0});var a=l(e);return function e(t,n,r,a){var o="BODY"===t.nodeName,i=o?t.ownerDocument.defaultView:t;i.addEventListener(n,r,{passive:!0}),o||e(l(i.parentNode),n,r,a),a.push(i)}(a,"scroll",n.updateBound,n.scrollParents),n.scrollElement=a,n.eventsEnabled=!0,n}function B(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,R(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function H(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function z(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&H(t[n])&&(r="px"),e.style[n]=t[n]+r})}var V=n&&/Firefox/i.test(navigator.userAgent);function q(e,t,n){var r=T(e,function(e){return e.name===t}),a=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!a){var o="`"+t+"`",i="`"+n+"`";console.warn(i+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return a}var Y=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],W=Y.slice(3);function U(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=W.indexOf(e),r=W.slice(n+1).concat(W.slice(0,n));return t?r.reverse():r}var X={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Q(e,t,n,r){var a=[0,0],o=-1!==["right","left"].indexOf(r),i=e.split(/(\+|\-)/).map(function(e){return e.trim()}),c=i.indexOf(T(i,function(e){return-1!==e.search(/,|\s/)}));i[c]&&-1===i[c].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==c?[i.slice(0,c).concat([i[c].split(l)[0]]),[i[c].split(l)[1]].concat(i.slice(c+1))]:[i];return(u=u.map(function(e,r){var a=(1===r?!o:o)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var a=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+a[1],i=a[2];if(!o)return e;if(0===i.indexOf("%")){var c=void 0;switch(i){case"%p":c=n;break;case"%":case"%r":default:c=r}return j(c)[t]/100*o}if("vh"===i||"vw"===i)return("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,a,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){H(n)&&(a[t]+=n*("-"===e[r-1]?-1:1))})}),a}var K={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var a=e.offsets,o=a.reference,i=a.popper,c=-1!==["bottom","top"].indexOf(n),l=c?"left":"top",u=c?"width":"height",s={start:x({},l,o[l]),end:x({},l,o[l]+o[u]-i[u])};e.offsets.popper=O({},i,s[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,a=e.offsets,o=a.popper,i=a.reference,c=r.split("-")[0],l=void 0;return l=H(+n)?[+n,0]:Q(n,o,i,c),"left"===c?(o.top+=l[0],o.left-=l[1]):"right"===c?(o.top+=l[0],o.left+=l[1]):"top"===c?(o.left+=l[0],o.top-=l[1]):"bottom"===c&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var r=D("transform"),a=e.instance.popper.style,o=a.top,i=a.left,c=a[r];a.top="",a.left="",a[r]="";var l=C(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);a.top=o,a.left=i,a[r]=c,t.boundaries=l;var u=t.priority,s=e.offsets.popper,f={primary:function(e){var n=s[e];return s[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(s[e],l[e])),x({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=s[n];return s[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(s[n],l[e]-("right"===e?s.width:s.height))),x({},n,r)}};return u.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";s=O({},s,f[t](e))}),e.offsets.popper=s,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,a=e.placement.split("-")[0],o=Math.floor,i=-1!==["top","bottom"].indexOf(a),c=i?"right":"bottom",l=i?"left":"top",u=i?"width":"height";return n[c]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[u]),n[l]>o(r[c])&&(e.offsets.popper[l]=o(r[c])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!q(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var a=e.placement.split("-")[0],o=e.offsets,c=o.popper,l=o.reference,u=-1!==["left","right"].indexOf(a),s=u?"height":"width",f=u?"Top":"Left",d=f.toLowerCase(),h=u?"left":"top",p=u?"bottom":"right",m=P(r)[s];l[p]-m<c[d]&&(e.offsets.popper[d]-=c[d]-(l[p]-m)),l[d]+m>c[p]&&(e.offsets.popper[d]+=l[d]+m-c[p]),e.offsets.popper=j(e.offsets.popper);var v=l[d]+l[s]/2-m/2,g=i(e.instance.popper),y=parseFloat(g["margin"+f]),b=parseFloat(g["border"+f+"Width"]),w=v-e.offsets.popper[d]-y-b;return w=Math.max(Math.min(c[s]-m,w),0),e.arrowElement=r,e.offsets.arrow=(x(n={},d,Math.round(w)),x(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(F(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=C(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],a=M(r),o=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case X.FLIP:i=[r,a];break;case X.CLOCKWISE:i=U(r);break;case X.COUNTERCLOCKWISE:i=U(r,!0);break;default:i=t.behavior}return i.forEach(function(c,l){if(r!==c||i.length===l+1)return e;r=e.placement.split("-")[0],a=M(r);var u=e.offsets.popper,s=e.offsets.reference,f=Math.floor,d="left"===r&&f(u.right)>f(s.left)||"right"===r&&f(u.left)<f(s.right)||"top"===r&&f(u.bottom)>f(s.top)||"bottom"===r&&f(u.top)<f(s.bottom),h=f(u.left)<f(n.left),p=f(u.right)>f(n.right),m=f(u.top)<f(n.top),v=f(u.bottom)>f(n.bottom),g="left"===r&&h||"right"===r&&p||"top"===r&&m||"bottom"===r&&v,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===o&&h||y&&"end"===o&&p||!y&&"start"===o&&m||!y&&"end"===o&&v),w=!!t.flipVariationsByContent&&(y&&"start"===o&&p||y&&"end"===o&&h||!y&&"start"===o&&v||!y&&"end"===o&&m),E=b||w;(d||g||E)&&(e.flipped=!0,(d||g)&&(r=i[l+1]),E&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=O({},e.offsets.popper,N(e.instance.popper,e.offsets.reference,e.placement)),e=I(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,a=r.popper,o=r.reference,i=-1!==["left","right"].indexOf(n),c=-1===["top","left"].indexOf(n);return a[i?"left":"top"]=o[n]-(c?a[i?"width":"height"]:0),e.placement=M(t),e.offsets.popper=j(a),e}},hide:{order:800,enabled:!0,fn:function(e){if(!q(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=T(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,a=e.offsets.popper,o=T(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var i=void 0!==o?o:t.gpuAcceleration,c=h(e.instance.popper),l=k(c),u={position:a.position},s=function(e,t){var n=e.offsets,r=n.popper,a=n.reference,o=Math.round,i=Math.floor,c=function(e){return e},l=o(a.width),u=o(r.width),s=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?s||f||l%2===u%2?o:i:c,h=t?o:c;return{left:d(l%2===1&&u%2===1&&!f&&t?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!V),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",p=D("transform"),m=void 0,v=void 0;if(v="bottom"===f?"HTML"===c.nodeName?-c.clientHeight+s.bottom:-l.height+s.bottom:s.top,m="right"===d?"HTML"===c.nodeName?-c.clientWidth+s.right:-l.width+s.right:s.left,i&&p)u[p]="translate3d("+m+"px, "+v+"px, 0)",u[f]=0,u[d]=0,u.willChange="transform";else{var g="bottom"===f?-1:1,y="right"===d?-1:1;u[f]=v*g,u[d]=m*y,u.willChange=f+", "+d}var b={"x-placement":e.placement};return e.attributes=O({},b,e.attributes),e.styles=O({},u,e.styles),e.arrowStyles=O({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return z(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&z(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,a){var o=A(a,t,e,n.positionFixed),i=L(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),z(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},J=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=a(this.update.bind(this)),this.options=O({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(O({},e.Defaults.modifiers,i.modifiers)).forEach(function(t){r.options.modifiers[t]=O({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return O({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&o(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var c=this.options.eventsEnabled;c&&this.enableEventListeners(),this.state.eventsEnabled=c}return E(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=A(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=L(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=N(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=I(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,F(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[D("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=G(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return B.call(this)}}]),e}();J.Utils=("undefined"!==typeof window?window:e).PopperUtils,J.placements=Y,J.Defaults=K,t.a=J}).call(this,n(250))},1280:function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(1)),a=o(n(1281));function o(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||a.default,e.exports=t.default},1281:function(e,t,n){"use strict";t.__esModule=!0;var r=n(1),a=(i(r),i(n(24))),o=i(n(1282));i(n(1283));function i(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=1073741823;t.default=function(e,t){var n,i,f="__create-react-context-"+(0,o.default)()+"__",d=function(e){function n(){var t,r;c(this,n);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return t=r=l(this,e.call.apply(e,[this].concat(o))),r.emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter(function(t){return t!==e})},get:function(){return e},set:function(n,r){e=n,t.forEach(function(t){return t(e,r)})}}}(r.props.value),l(r,t)}return u(n,e),n.prototype.getChildContext=function(){var e;return(e={})[f]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,a=void 0;((o=n)===(i=r)?0!==o||1/o===1/i:o!==o&&i!==i)?a=0:(a="function"===typeof t?t(n,r):s,0!==(a|=0)&&this.emitter.set(e.value,a))}var o,i},n.prototype.render=function(){return this.props.children},n}(r.Component);d.childContextTypes=((n={})[f]=a.default.object.isRequired,n);var h=function(t){function n(){var e,r;c(this,n);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return e=r=l(this,t.call.apply(t,[this].concat(o))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!==((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},l(r,e)}return u(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?s:t},n.prototype.componentDidMount=function(){this.context[f]&&this.context[f].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?s:e},n.prototype.componentWillUnmount=function(){this.context[f]&&this.context[f].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[f]?this.context[f].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return h.contextTypes=((i={})[f]=a.default.object,i),{Provider:d,Consumer:h}},e.exports=t.default},1282:function(e,t,n){"use strict";(function(t){var n="__global_unique_id__";e.exports=function(){return t[n]=(t[n]||0)+1}}).call(this,n(250))},1283:function(e,t,n){"use strict";var r=function(){};e.exports=r},1286:function(e,t,n){"use strict";var r=n(11),a=n.n(r),o=n(32),i=n.n(o),c=n(37),l=n.n(c),u=n(39),s=n.n(u),f=n(38),d=n.n(f),h=n(7),p=n.n(h),m=n(40),v=n.n(m),g=n(3),y=n.n(g),b=n(134),w=n.n(b),E=n(22),x=n.n(E),O=(n(331),n(12)),j=n.n(O),k=n(1),S=n.n(k),_=n(77),C=n(514),L=n(515),A=n(15),P=n(476),M=n(517);function N(e){var t=e.children,n=e.className,r=e.content,o=j()("header",n),i=Object(C.a)(N,e),c=Object(L.a)(N,e);return S.a.createElement(c,a()({},i,{className:o}),A.a.isNil(t)?r:t)}N.handledProps=["as","children","className","content"],N.propTypes={};var T=N,I=n(1244),F=n.n(I),D=n(520),R=function(e){function t(){var e,n;i()(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=s()(this,(e=d()(t)).call.apply(e,[this].concat(a))),y()(p()(n),"handleClick",function(e){n.props.disabled||x()(n.props,"onClick",e,n.props)}),n}return v()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,n=e.active,r=e.children,o=e.className,i=e.color,c=e.content,l=e.disabled,u=e.fitted,s=e.header,f=e.icon,d=e.link,h=e.name,p=e.onClick,m=e.position,v=j()(i,m,Object(_.a)(n,"active"),Object(_.a)(l,"disabled"),Object(_.a)(!0===f||f&&!(h||c),"icon"),Object(_.a)(s,"header"),Object(_.a)(d,"link"),Object(_.b)(u,"fitted"),"item",o),g=Object(L.a)(t,this.props,function(){if(p)return"a"}),y=Object(C.a)(t,this.props);return A.a.isNil(r)?S.a.createElement(g,a()({},y,{className:v,onClick:this.handleClick}),D.a.create(f,{autoGenerateKey:!1}),A.a.isNil(c)?F()(h):c):S.a.createElement(g,a()({},y,{className:v,onClick:this.handleClick}),r)}}]),t}(k.Component);function G(e){var t=e.children,n=e.className,r=e.content,o=e.position,i=j()(o,"menu",n),c=Object(C.a)(G,e),l=Object(L.a)(G,e);return S.a.createElement(l,a()({},c,{className:i}),A.a.isNil(t)?r:t)}y()(R,"handledProps",["active","as","children","className","color","content","disabled","fitted","header","icon","index","link","name","onClick","position"]),R.propTypes={},R.create=Object(M.f)(R,function(e){return{content:e,name:e}}),G.handledProps=["as","children","className","content","position"],G.propTypes={};var B=G,H=function(e){function t(){var e,n;i()(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=s()(this,(e=d()(t)).call.apply(e,[this].concat(a))),y()(p()(n),"handleItemOverrides",function(e){return{onClick:function(t,r){var a=r.index;n.trySetState({activeIndex:a}),x()(e,"onClick",t,r),x()(n.props,"onItemClick",t,r)}}}),n}return v()(t,e),l()(t,[{key:"renderItems",value:function(){var e=this,t=this.props.items,n=this.state.activeIndex;return w()(t,function(t,r){return R.create(t,{defaultProps:{active:parseInt(n,10)===r,index:r},overrideProps:e.handleItemOverrides})})}},{key:"render",value:function(){var e=this.props,n=e.attached,r=e.borderless,o=e.children,i=e.className,c=e.color,l=e.compact,u=e.fixed,s=e.floated,f=e.fluid,d=e.icon,h=e.inverted,p=e.pagination,m=e.pointing,v=e.secondary,g=e.size,y=e.stackable,b=e.tabular,w=e.text,E=e.vertical,x=e.widths,O=j()("ui",c,g,Object(_.a)(r,"borderless"),Object(_.a)(l,"compact"),Object(_.a)(f,"fluid"),Object(_.a)(h,"inverted"),Object(_.a)(p,"pagination"),Object(_.a)(m,"pointing"),Object(_.a)(v,"secondary"),Object(_.a)(y,"stackable"),Object(_.a)(w,"text"),Object(_.a)(E,"vertical"),Object(_.b)(n,"attached"),Object(_.b)(s,"floated"),Object(_.b)(d,"icon"),Object(_.b)(b,"tabular"),Object(_.e)(u,"fixed"),Object(_.g)(x,"item"),i,"menu"),k=Object(C.a)(t,this.props),P=Object(L.a)(t,this.props);return S.a.createElement(P,a()({},k,{className:O}),A.a.isNil(o)?this.renderItems():o)}}]),t}(P.a);y()(H,"autoControlledProps",["activeIndex"]),y()(H,"Header",T),y()(H,"Item",R),y()(H,"Menu",B),y()(H,"handledProps",["activeIndex","as","attached","borderless","children","className","color","compact","defaultActiveIndex","fixed","floated","fluid","icon","inverted","items","onItemClick","pagination","pointing","secondary","size","stackable","tabular","text","vertical","widths"]),H.propTypes={},H.create=Object(M.f)(H,function(e){return{items:e}});t.a=H},1298:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",function(){return r})},1299:function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,"a",function(){return r})},1300:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return r})},1301:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",function(){return r})},1302:function(e,t,n){"use strict";t.a=function(){if("undefined"===typeof navigator||"undefined"===typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substr(0,4))}},1303:function(e,t,n){"use strict";e.exports=n(1384)},1304:function(e,t,n){"use strict";t.a=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1}},1305:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(1300),a=n(1299),o=n(1256),i=n(1301);function c(e){return Object(r.a)(e)||Object(a.a)(e)||Object(o.a)(e)||Object(i.a)()}},1306:function(e,t,n){"use strict";n.d(t,"i",function(){return a}),n.d(t,"g",function(){return o}),n.d(t,"b",function(){return c}),n.d(t,"h",function(){return l}),n.d(t,"c",function(){return u}),n.d(t,"f",function(){return s}),n.d(t,"j",function(){return f}),n.d(t,"a",function(){return h}),n.d(t,"e",function(){return p}),n.d(t,"d",function(){return m});var r=n(1261);function a(e,t,n){return{r:255*Object(r.a)(e,255),g:255*Object(r.a)(t,255),b:255*Object(r.a)(n,255)}}function o(e,t,n){e=Object(r.a)(e,255),t=Object(r.a)(t,255),n=Object(r.a)(n,255);var a=Math.max(e,t,n),o=Math.min(e,t,n),i=0,c=0,l=(a+o)/2;if(a===o)c=0,i=0;else{var u=a-o;switch(c=l>.5?u/(2-a-o):u/(a+o),a){case e:i=(t-n)/u+(t<n?6:0);break;case t:i=(n-e)/u+2;break;case n:i=(e-t)/u+4}i/=6}return{h:i,s:c,l:l}}function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function c(e,t,n){var a,o,c;if(e=Object(r.a)(e,360),t=Object(r.a)(t,100),n=Object(r.a)(n,100),0===t)o=n,c=n,a=n;else{var l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;a=i(u,l,e+1/3),o=i(u,l,e),c=i(u,l,e-1/3)}return{r:255*a,g:255*o,b:255*c}}function l(e,t,n){e=Object(r.a)(e,255),t=Object(r.a)(t,255),n=Object(r.a)(n,255);var a=Math.max(e,t,n),o=Math.min(e,t,n),i=0,c=a,l=a-o,u=0===a?0:l/a;if(a===o)i=0;else{switch(a){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:u,v:c}}function u(e,t,n){e=6*Object(r.a)(e,360),t=Object(r.a)(t,100),n=Object(r.a)(n,100);var a=Math.floor(e),o=e-a,i=n*(1-t),c=n*(1-o*t),l=n*(1-(1-o)*t),u=a%6;return{r:255*[n,c,i,i,l,n][u],g:255*[l,n,n,c,i,i][u],b:255*[i,i,l,n,n,c][u]}}function s(e,t,n,a){var o=[Object(r.e)(Math.round(e).toString(16)),Object(r.e)(Math.round(t).toString(16)),Object(r.e)(Math.round(n).toString(16))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function f(e,t,n,a,o){var i=[Object(r.e)(Math.round(e).toString(16)),Object(r.e)(Math.round(t).toString(16)),Object(r.e)(Math.round(n).toString(16)),Object(r.e)(d(a))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function d(e){return Math.round(255*parseFloat(e)).toString(16)}function h(e){return p(e)/255}function p(e){return parseInt(e,16)}function m(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}},1307:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},1337:function(e,t,n){"use strict";function r(e){return(r="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 a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:String(t)}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}function i(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){var r,o,i;r=e,o=t,i=n[t],(o=a(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return c}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var f=n(1521),d=n(1234),h=n.n(d),p=n(1207),m=n(1216),v=n(1259),g=n(1205),y=n(1387),b=n(1167),w=n(1302),E=n(1);function x(){return(x=Object.assign?Object.assign.bind():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)}var O=n(1183),j=n(1168);function k(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,o=r||{},i=o.className,c=o.content,l=a.x,u=void 0===l?0:l,s=a.y,f=void 0===s?0:s,d=E.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],v=n.points[1],g=m[0],y=m[1],b=v[0],w=v[1];g!==b&&["t","b"].includes(g)?"t"===g?p.top=0:p.bottom=0:p.top=f,y!==w&&["l","r"].includes(y)?"l"===y?p.left=0:p.right=0:p.left=u}return E.createElement("div",{ref:d,className:h()("".concat(t,"-arrow"),i),style:p},c)}function S(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,o=e.motion;return a?E.createElement(O.c,x({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return E.createElement("div",{style:{zIndex:r},className:h()("".concat(t,"-mask"),n)})}):null}var _=E.memo(function(e){return e.children},function(e,t){return t.cache});var C=E.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,o=e.style,c=e.target,l=e.onVisibleChanged,s=e.open,f=e.keepDom,d=e.fresh,m=e.onClick,v=e.mask,g=e.arrow,y=e.arrowPos,w=e.align,C=e.motion,L=e.maskMotion,A=e.forceRender,P=e.getPopupContainer,M=e.autoDestroy,N=e.portal,T=e.zIndex,I=e.onMouseEnter,F=e.onMouseLeave,D=e.onPointerEnter,R=e.ready,G=e.offsetX,B=e.offsetY,H=e.offsetR,z=e.offsetB,V=e.onAlign,q=e.onPrepare,Y=e.stretch,W=e.targetWidth,U=e.targetHeight,X="function"===typeof n?n():n,Q=s||f,K=(null===P||void 0===P?void 0:P.length)>0,J=u(E.useState(!P||!K),2),Z=J[0],$=J[1];if(Object(b.a)(function(){!Z&&K&&c&&$(!0)},[Z,K,c]),!Z)return null;var ee={left:"-1000vw",top:"-1000vh",right:"auto",bottom:"auto"};if(R||!s){var te,ne=w.points,re=w.dynamicInset||(null===(te=w._experimental)||void 0===te?void 0:te.dynamicInset),ae=re&&"r"===ne[0][1],oe=re&&"b"===ne[0][0];ae?(ee.right=H,ee.left="auto"):(ee.left=G,ee.right="auto"),oe?(ee.bottom=z,ee.top="auto"):(ee.top=B,ee.bottom="auto")}var ie={};return Y&&(Y.includes("height")&&U?ie.height=U:Y.includes("minHeight")&&U&&(ie.minHeight=U),Y.includes("width")&&W?ie.width=W:Y.includes("minWidth")&&W&&(ie.minWidth=W)),s||(ie.pointerEvents="none"),E.createElement(N,{open:A||Q,getContainer:P&&function(){return P(c)},autoDestroy:M},E.createElement(S,{prefixCls:a,open:s,zIndex:T,mask:v,motion:L}),E.createElement(p.a,{onResize:V,disabled:!s},function(e){return E.createElement(O.c,x({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:A,leavedClassName:"".concat(a,"-hidden")},C,{onAppearPrepare:q,onEnterPrepare:q,visible:s,onVisibleChanged:function(e){var t;null===C||void 0===C||null===(t=C.onVisibleChanged)||void 0===t||t.call(C,e),l(e)}}),function(n,c){var l=n.className,u=n.style,f=h()(a,l,r);return E.createElement("div",{ref:Object(j.a)(e,t,c),className:f,style:i(i(i(i({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},ee),ie),u),{},{boxSizing:"border-box",zIndex:T},o),onMouseEnter:I,onMouseLeave:F,onPointerEnter:D,onClick:m},g&&E.createElement(k,{prefixCls:a,arrow:g,arrowPos:y,align:w}),E.createElement(_,{cache:!s&&!d},X))})}))});var L=E.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=Object(j.c)(n),o=E.useCallback(function(e){Object(j.b)(t,r?r(e):e)},[r]),i=Object(j.d)(o,n.ref);return a?E.cloneElement(n,{ref:i}):n}),A=E.createContext(null);function P(e){return e?Array.isArray(e)?e:[e]:[]}var M=n(1304);function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function T(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function I(e){return e.ownerDocument.defaultView}function F(e){for(var t=[],n=null===e||void 0===e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var a=I(n).getComputedStyle(n);[a.overflowX,a.overflowY,a.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function R(e){return D(parseFloat(e),0)}function G(e,t){var n=i({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=I(e).getComputedStyle(e),r=t.overflow,a=t.overflowClipMargin,o=t.borderTopWidth,i=t.borderBottomWidth,c=t.borderLeftWidth,l=t.borderRightWidth,u=e.getBoundingClientRect(),s=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,h=e.clientWidth,p=R(o),m=R(i),v=R(c),g=R(l),y=D(Math.round(u.width/d*1e3)/1e3),b=D(Math.round(u.height/s*1e3)/1e3),w=(d-h-v-g)*y,E=(s-f-p-m)*b,x=p*b,O=m*b,j=v*y,k=g*y,S=0,_=0;if("clip"===r){var C=R(a);S=C*y,_=C*b}var L=u.x+j-S,A=u.y+x-_,P=L+u.width+2*S-j-k-w,M=A+u.height+2*_-x-O-E;n.left=Math.max(n.left,L),n.top=Math.max(n.top,A),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,M)}}),n}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function H(e,t){var n=u(t||[],2),r=n[0],a=n[1];return[B(e.width,r),B(e.height,a)]}function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function V(e,t){var n,r=t[0],a=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===a?e.x:"r"===a?e.x+e.width:e.x+e.width/2,y:n}}function q(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}function Y(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||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.")}()}n(1160);var W=n(1181);var U=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return E.forwardRef(function(t,n){var r=t.prefixCls,a=void 0===r?"rc-trigger-popup":r,o=t.children,c=t.action,l=void 0===c?"hover":c,f=t.showAction,d=t.hideAction,x=t.popupVisible,O=t.defaultPopupVisible,j=t.onPopupVisibleChange,k=t.afterPopupVisibleChange,S=t.mouseEnterDelay,_=t.mouseLeaveDelay,R=void 0===_?.1:_,B=t.focusDelay,X=t.blurDelay,Q=t.mask,K=t.maskClosable,J=void 0===K||K,Z=t.getPopupContainer,$=t.forceRender,ee=t.autoDestroy,te=t.destroyPopupOnHide,ne=t.popup,re=t.popupClassName,ae=t.popupStyle,oe=t.popupPlacement,ie=t.builtinPlacements,ce=void 0===ie?{}:ie,le=t.popupAlign,ue=t.zIndex,se=t.stretch,fe=t.getPopupClassNameFromAlign,de=t.fresh,he=t.alignPoint,pe=t.onPopupClick,me=t.onPopupAlign,ve=t.arrow,ge=t.popupMotion,ye=t.maskMotion,be=t.popupTransitionName,we=t.popupAnimation,Ee=t.maskTransitionName,xe=t.maskAnimation,Oe=t.className,je=t.getTriggerDOMNode,ke=s(t,U),Se=ee||te||!1,_e=u(E.useState(!1),2),Ce=_e[0],Le=_e[1];Object(b.a)(function(){Le(Object(w.a)())},[]);var Ae=E.useRef({}),Pe=E.useContext(A),Me=E.useMemo(function(){return{registerSubPopup:function(e,t){Ae.current[e]=t,null===Pe||void 0===Pe||Pe.registerSubPopup(e,t)}}},[Pe]),Ne=Object(y.a)(),Te=u(E.useState(null),2),Ie=Te[0],Fe=Te[1],De=Object(g.a)(function(e){Object(m.b)(e)&&Ie!==e&&Fe(e),null===Pe||void 0===Pe||Pe.registerSubPopup(Ne,e)}),Re=u(E.useState(null),2),Ge=Re[0],Be=Re[1],He=E.useRef(null),ze=Object(g.a)(function(e){Object(m.b)(e)&&Ge!==e&&(Be(e),He.current=e)}),Ve=E.Children.only(o),qe=(null===Ve||void 0===Ve?void 0:Ve.props)||{},Ye={},We=Object(g.a)(function(e){var t,n,r=Ge;return(null===r||void 0===r?void 0:r.contains(e))||(null===(t=Object(v.a)(r))||void 0===t?void 0:t.host)===e||e===r||(null===Ie||void 0===Ie?void 0:Ie.contains(e))||(null===(n=Object(v.a)(Ie))||void 0===n?void 0:n.host)===e||e===Ie||Object.values(Ae.current).some(function(t){return(null===t||void 0===t?void 0:t.contains(e))||e===t})}),Ue=T(a,ge,we,be),Xe=T(a,ye,xe,Ee),Qe=u(E.useState(O||!1),2),Ke=Qe[0],Je=Qe[1],Ze=null!==x&&void 0!==x?x:Ke,$e=Object(g.a)(function(e){void 0===x&&Je(e)});Object(b.a)(function(){Je(x||!1)},[x]);var et=E.useRef(Ze);et.current=Ze;var tt=E.useRef([]);tt.current=[];var nt=Object(g.a)(function(e){var t;$e(e),(null!==(t=tt.current[tt.current.length-1])&&void 0!==t?t:Ze)!==e&&(tt.current.push(e),null===j||void 0===j||j(e))}),rt=E.useRef(),at=function(){clearTimeout(rt.current)},ot=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;at(),0===t?nt(e):rt.current=setTimeout(function(){nt(e)},1e3*t)};E.useEffect(function(){return at},[]);var it=u(E.useState(!1),2),ct=it[0],lt=it[1];Object(b.a)(function(e){e&&!Ze||lt(!0)},[Ze]);var ut=u(E.useState(null),2),st=ut[0],ft=ut[1],dt=u(E.useState([0,0]),2),ht=dt[0],pt=dt[1],mt=function(e){pt([e.clientX,e.clientY])},vt=function(e,t,n,r,a,o,c){var l=u(E.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),2),s=l[0],f=l[1],d=E.useRef(0),h=E.useMemo(function(){return t?F(t):[]},[t]),p=E.useRef({});e||(p.current={});var v=Object(g.a)(function(){if(t&&n&&e){var l,s,d,v=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ae,r=N.x+e,a=N.y+t,o=r+Q,i=a+X,c=Math.max(r,n.left),l=Math.max(a,n.top),u=Math.min(o,n.right),s=Math.min(i,n.bottom);return Math.max(0,(u-c)*(s-l))},g=function(){ge=N.y+Le,ye=ge+X,be=N.x+Ce,we=be+Q},y=t,b=y.ownerDocument,w=I(y).getComputedStyle(y),E=w.width,x=w.height,O=w.position,j=y.style.left,k=y.style.top,S=y.style.right,_=y.style.bottom,C=y.style.overflow,L=i(i({},a[r]),o),A=b.createElement("div");if(null===(l=y.parentElement)||void 0===l||l.appendChild(A),A.style.left="".concat(y.offsetLeft,"px"),A.style.top="".concat(y.offsetTop,"px"),A.style.position=O,A.style.height="".concat(y.offsetHeight,"px"),A.style.width="".concat(y.offsetWidth,"px"),y.style.left="0",y.style.top="0",y.style.right="auto",y.style.bottom="auto",y.style.overflow="hidden",Array.isArray(n))d={x:n[0],y:n[1],width:0,height:0};else{var P=n.getBoundingClientRect();d={x:P.x,y:P.y,width:P.width,height:P.height}}var N=y.getBoundingClientRect(),T=b.documentElement,F=T.clientWidth,R=T.clientHeight,B=T.scrollWidth,Y=T.scrollHeight,W=T.scrollTop,U=T.scrollLeft,X=N.height,Q=N.width,K=d.height,J=d.width,Z={left:0,top:0,right:F,bottom:R},$={left:-U,top:-W,right:B-U,bottom:Y-W},ee=L.htmlRegion;"scroll"!==ee&&"visibleFirst"!==ee&&(ee="visible");var te="visibleFirst"===ee,ne=G($,h),re=G(Z,h),ae="visible"===ee?re:ne,oe=te?re:ae;y.style.left="auto",y.style.top="auto",y.style.right="0",y.style.bottom="0";var ie=y.getBoundingClientRect();y.style.left=j,y.style.top=k,y.style.right=S,y.style.bottom=_,y.style.overflow=C,null===(s=y.parentElement)||void 0===s||s.removeChild(A);var ce=D(Math.round(Q/parseFloat(E)*1e3)/1e3),le=D(Math.round(X/parseFloat(x)*1e3)/1e3);if(0===ce||0===le||Object(m.b)(n)&&!Object(M.a)(n))return;var ue=L.offset,se=L.targetOffset,fe=u(H(N,ue),2),de=fe[0],he=fe[1],pe=u(H(d,se),2),me=pe[0],ve=pe[1];d.x-=me,d.y-=ve;var ge,ye,be,we,Ee=u(L.points||[],2),xe=Ee[0],Oe=z(Ee[1]),je=z(xe),ke=V(d,Oe),Se=V(N,je),_e=i({},L),Ce=ke.x-Se.x+de,Le=ke.y-Se.y+he,Ae=v(Ce,Le),Pe=v(Ce,Le,re),Me=V(d,["t","l"]),Ne=V(N,["t","l"]),Te=V(d,["b","r"]),Ie=V(N,["b","r"]),Fe=L.overflow||{},De=Fe.adjustX,Re=Fe.adjustY,Ge=Fe.shiftX,Be=Fe.shiftY,He=function(e){return"boolean"===typeof e?e:e>=0};g();var ze=He(Re),Ve=je[0]===Oe[0];if(ze&&"t"===je[0]&&(ye>oe.bottom||p.current.bt)){var qe=Le;Ve?qe-=X-K:qe=Me.y-Ie.y-he;var Ye=v(Ce,qe),We=v(Ce,qe,re);Ye>Ae||Ye===Ae&&(!te||We>=Pe)?(p.current.bt=!0,Le=qe,he=-he,_e.points=[q(je,0),q(Oe,0)]):p.current.bt=!1}if(ze&&"b"===je[0]&&(ge<oe.top||p.current.tb)){var Ue=Le;Ve?Ue+=X-K:Ue=Te.y-Ne.y-he;var Xe=v(Ce,Ue),Qe=v(Ce,Ue,re);Xe>Ae||Xe===Ae&&(!te||Qe>=Pe)?(p.current.tb=!0,Le=Ue,he=-he,_e.points=[q(je,0),q(Oe,0)]):p.current.tb=!1}var Ke=He(De),Je=je[1]===Oe[1];if(Ke&&"l"===je[1]&&(we>oe.right||p.current.rl)){var Ze=Ce;Je?Ze-=Q-J:Ze=Me.x-Ie.x-de;var $e=v(Ze,Le),et=v(Ze,Le,re);$e>Ae||$e===Ae&&(!te||et>=Pe)?(p.current.rl=!0,Ce=Ze,de=-de,_e.points=[q(je,1),q(Oe,1)]):p.current.rl=!1}if(Ke&&"r"===je[1]&&(be<oe.left||p.current.lr)){var tt=Ce;Je?tt+=Q-J:tt=Te.x-Ne.x-de;var nt=v(tt,Le),rt=v(tt,Le,re);nt>Ae||nt===Ae&&(!te||rt>=Pe)?(p.current.lr=!0,Ce=tt,de=-de,_e.points=[q(je,1),q(Oe,1)]):p.current.lr=!1}g();var at=!0===Ge?0:Ge;"number"===typeof at&&(be<re.left&&(Ce-=be-re.left-de,d.x+J<re.left+at&&(Ce+=d.x-re.left+J-at)),we>re.right&&(Ce-=we-re.right-de,d.x>re.right-at&&(Ce+=d.x-re.right+at)));var ot=!0===Be?0:Be;"number"===typeof ot&&(ge<re.top&&(Le-=ge-re.top-he,d.y+K<re.top+ot&&(Le+=d.y-re.top+K-ot)),ye>re.bottom&&(Le-=ye-re.bottom-he,d.y>re.bottom-ot&&(Le+=d.y-re.bottom+ot)));var it=N.x+Ce,ct=it+Q,lt=N.y+Le,ut=lt+X,st=d.x,ft=st+J,dt=d.y,ht=dt+K,pt=(Math.max(it,st)+Math.min(ct,ft))/2-it,mt=(Math.max(lt,dt)+Math.min(ut,ht))/2-lt;null===c||void 0===c||c(t,_e);var vt=ie.right-N.x-(Ce+N.width),gt=ie.bottom-N.y-(Le+N.height);f({ready:!0,offsetX:Ce/ce,offsetY:Le/le,offsetR:vt/ce,offsetB:gt/le,arrowX:pt/ce,arrowY:mt/le,scaleX:ce,scaleY:le,align:_e})}}),y=function(){f(function(e){return i(i({},e),{},{ready:!1})})};return Object(b.a)(y,[r]),Object(b.a)(function(){e||y()},[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var e=d.current;Promise.resolve().then(function(){d.current===e&&v()})}]}(Ze,Ie,he?ht:Ge,oe,ce,le,me),gt=u(vt,11),yt=gt[0],bt=gt[1],wt=gt[2],Et=gt[3],xt=gt[4],Ot=gt[5],jt=gt[6],kt=gt[7],St=gt[8],_t=gt[9],Ct=gt[10],Lt=u(function(e,t,n,r){return E.useMemo(function(){var a=P(null!==n&&void 0!==n?n:t),o=P(null!==r&&void 0!==r?r:t),i=new Set(a),c=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),c.has("hover")&&(c.delete("hover"),c.add("click"))),[i,c]},[e,t,n,r])}(Ce,l,f,d),2),At=Lt[0],Pt=Lt[1],Mt=At.has("click"),Nt=Pt.has("click")||Pt.has("contextMenu"),Tt=Object(g.a)(function(){ct||Ct()});!function(e,t,n,r,a){Object(b.a)(function(){if(e&&t&&n){var o=function(){r(),a()},i=n,c=F(t),l=F(i),u=I(i),s=new Set([u].concat(Y(c),Y(l)));return s.forEach(function(e){e.addEventListener("scroll",o,{passive:!0})}),u.addEventListener("resize",o,{passive:!0}),r(),function(){s.forEach(function(e){e.removeEventListener("scroll",o),u.removeEventListener("resize",o)})}}},[e,t,n])}(Ze,Ge,Ie,Tt,function(){et.current&&he&&Nt&&ot(!1)}),Object(b.a)(function(){Tt()},[ht,oe]),Object(b.a)(function(){!Ze||null!==ce&&void 0!==ce&&ce[oe]||Tt()},[JSON.stringify(le)]);var It=E.useMemo(function(){var e=function(e,t,n,r){for(var a=n.points,o=Object.keys(e),i=0;i<o.length;i+=1){var c,l=o[i];if(N(null===(c=e[l])||void 0===c?void 0:c.points,a,r))return"".concat(t,"-placement-").concat(l)}return""}(ce,a,_t,he);return h()(e,null===fe||void 0===fe?void 0:fe(_t))},[_t,fe,ce,a,he]);E.useImperativeHandle(n,function(){return{nativeElement:He.current,forceAlign:Tt}});var Ft=u(E.useState(0),2),Dt=Ft[0],Rt=Ft[1],Gt=u(E.useState(0),2),Bt=Gt[0],Ht=Gt[1],zt=function(){if(se&&Ge){var e=Ge.getBoundingClientRect();Rt(e.width),Ht(e.height)}};function Vt(e,t,n,r){Ye[e]=function(a){var o;null===r||void 0===r||r(a),ot(t,n);for(var i=arguments.length,c=new Array(i>1?i-1:0),l=1;l<i;l++)c[l-1]=arguments[l];null===(o=qe[e])||void 0===o||o.call.apply(o,[qe,a].concat(c))}}Object(b.a)(function(){st&&(Ct(),st(),ft(null))},[st]),(Mt||Nt)&&(Ye.onClick=function(e){var t;et.current&&Nt?ot(!1):!et.current&&Mt&&(mt(e),ot(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];null===(t=qe.onClick)||void 0===t||t.call.apply(t,[qe,e].concat(r))}),function(e,t,n,r,a,o,i,c){var l=E.useRef(e),s=E.useRef(!1);l.current!==e&&(s.current=!0,l.current=e),E.useEffect(function(){var e=Object(W.a)(function(){s.current=!1});return function(){W.a.cancel(e)}},[e]),E.useEffect(function(){if(t&&r&&(!a||o)){var e=function(){var e=!1;return[function(t){var n=t.target;e=i(n)},function(t){var n=t.target;s.current||!l.current||e||i(n)||c(!1)}]},f=u(e(),2),d=f[0],h=f[1],p=u(e(),2),m=p[0],g=p[1],y=I(r);y.addEventListener("mousedown",d,!0),y.addEventListener("click",h,!0),y.addEventListener("contextmenu",h,!0);var b=Object(v.a)(n);return b&&(b.addEventListener("mousedown",m,!0),b.addEventListener("click",g,!0),b.addEventListener("contextmenu",g,!0)),function(){y.removeEventListener("mousedown",d,!0),y.removeEventListener("click",h,!0),y.removeEventListener("contextmenu",h,!0),b&&(b.removeEventListener("mousedown",m,!0),b.removeEventListener("click",g,!0),b.removeEventListener("contextmenu",g,!0))}}},[t,n,r,a,o])}(Ze,Nt,Ge,Ie,Q,J,We,ot);var qt,Yt,Wt=At.has("hover"),Ut=Pt.has("hover");Wt&&(Vt("onMouseEnter",!0,S,function(e){mt(e)}),Vt("onPointerEnter",!0,S,function(e){mt(e)}),qt=function(){(Ze||ct)&&ot(!0,S)},he&&(Ye.onMouseMove=function(e){var t;null===(t=qe.onMouseMove)||void 0===t||t.call(qe,e)})),Ut&&(Vt("onMouseLeave",!1,R),Vt("onPointerLeave",!1,R),Yt=function(){ot(!1,R)}),At.has("focus")&&Vt("onFocus",!0,B),Pt.has("focus")&&Vt("onBlur",!1,X),At.has("contextMenu")&&(Ye.onContextMenu=function(e){var t;et.current&&Pt.has("contextMenu")?ot(!1):(mt(e),ot(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];null===(t=qe.onContextMenu)||void 0===t||t.call.apply(t,[qe,e].concat(r))}),Oe&&(Ye.className=h()(qe.className,Oe));var Xt=i(i({},qe),Ye),Qt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){ke[e]&&(Qt[e]=function(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];null===(t=Xt[e])||void 0===t||t.call.apply(t,[Xt].concat(r)),ke[e].apply(ke,r)})});var Kt=E.cloneElement(Ve,i(i({},Xt),Qt)),Jt={x:Ot,y:jt},Zt=ve?i({},!0!==ve?ve:{}):null;return E.createElement(E.Fragment,null,E.createElement(p.a,{disabled:!Ze,ref:ze,onResize:function(){zt(),Tt()}},E.createElement(L,{getTriggerDOMNode:je},Kt)),E.createElement(A.Provider,{value:Me},E.createElement(C,{portal:e,ref:De,prefixCls:a,popup:ne,className:h()(re,It),style:ae,target:Ge,onMouseEnter:qt,onMouseLeave:Yt,onPointerEnter:qt,zIndex:ue,open:Ze,keepDom:ct,fresh:de,onClick:pe,mask:Q,motion:Ue,maskMotion:Xe,onVisibleChanged:function(e){lt(!1),Ct(),null===k||void 0===k||k(e)},onPrepare:function(){return new Promise(function(e){zt(),ft(function(){return e})})},forceRender:$,autoDestroy:Se,getPopupContainer:Z,align:_t,arrow:Zt,arrowPos:Jt,ready:yt,offsetX:bt,offsetY:wt,offsetR:Et,offsetB:xt,onAlign:Tt,stretch:se,targetWidth:Dt/kt,targetHeight:Bt/St})))})}(f.a)},1365:function(e,t,n){"use strict";var r=n(11),a=n.n(r),o=n(32),i=n.n(o),c=n(37),l=n.n(c),u=n(39),s=n.n(u),f=n(38),d=n.n(f),h=n(7),p=n.n(h),m=n(40),v=n.n(m),g=n(3),y=n.n(g),b=n(507),w=n.n(b),E=n(22),x=n.n(E),O=n(1),j=n.n(O),k=n(514),S=n(1559),_=n(1552),C=function(e){function t(){var e,n;i()(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=s()(this,(e=d()(t)).call.apply(e,[this].concat(a))),y()(p()(n),"handleCancel",function(e){x()(n.props,"onCancel",e,n.props)}),y()(p()(n),"handleCancelOverrides",function(e){return{onClick:function(t,r){x()(e,"onClick",t,r),n.handleCancel(t)}}}),y()(p()(n),"handleConfirmOverrides",function(e){return{onClick:function(t,r){x()(e,"onClick",t,r),x()(n.props,"onConfirm",t,n.props)}}}),n}return v()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,n=e.cancelButton,r=e.confirmButton,o=e.content,i=e.header,c=e.open,l=e.size,u=Object(k.a)(t,this.props),s={};return w()(this.props,"open")&&(s.open=c),j.a.createElement(_.a,a()({},u,s,{size:l,onClose:this.handleCancel}),_.a.Header.create(i,{autoGenerateKey:!1}),_.a.Content.create(o,{autoGenerateKey:!1}),j.a.createElement(_.a.Actions,null,S.a.create(n,{autoGenerateKey:!1,overrideProps:this.handleCancelOverrides}),S.a.create(r,{autoGenerateKey:!1,defaultProps:{primary:!0},overrideProps:this.handleConfirmOverrides})))}}]),t}(O.Component);y()(C,"defaultProps",{cancelButton:"Cancel",confirmButton:"OK",content:"Are you sure?",size:"small"}),y()(C,"handledProps",["cancelButton","confirmButton","content","header","onCancel","onConfirm","open","size"]),C.propTypes={},t.a=C},1381:function(e,t,n){"use strict";var r=n(11),a=n.n(r),o=n(12),i=n.n(o),c=n(1),l=n.n(c),u=n(77),s=n(514),f=n(515),d=n(15);function h(e){var t=e.children,n=e.className,r=e.clearing,o=e.content,c=e.fitted,p=e.hidden,m=e.horizontal,v=e.inverted,g=e.section,y=e.vertical,b=i()("ui",Object(u.a)(r,"clearing"),Object(u.a)(c,"fitted"),Object(u.a)(p,"hidden"),Object(u.a)(m,"horizontal"),Object(u.a)(v,"inverted"),Object(u.a)(g,"section"),Object(u.a)(y,"vertical"),"divider",n),w=Object(s.a)(h,e),E=Object(f.a)(h,e);return l.a.createElement(E,a()({},w,{className:b}),d.a.isNil(t)?o:t)}h.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],h.propTypes={},t.a=h},1382:function(e,t,n){var r=n(258),a=n(191),o=n(1232),i=n(73),c=n(197),l=n(76),u=Object.prototype.hasOwnProperty,s=o(function(e,t){if(c(t)||i(t))a(t,l(t),e);else for(var n in t)u.call(t,n)&&r(e,n,t[n])});e.exports=s},1383:function(e,t){e.exports=function(e,t,n,r){var a=new Blob("undefined"!==typeof r?[r,e]:[e],{type:n||"application/octet-stream"});if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(a,t);else{var o=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(a):window.webkitURL.createObjectURL(a),i=document.createElement("a");i.style.display="none",i.href=o,i.setAttribute("download",t),"undefined"===typeof i.download&&i.setAttribute("target","_blank"),document.body.appendChild(i),i.click(),setTimeout(function(){document.body.removeChild(i),window.URL.revokeObjectURL(o)},200)}}},1384:function(e,t,n){"use strict";var r,a=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),f=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case i:case l:case c:case h:case p:return e;default:switch(e=e&&e.$$typeof){case f:case s:case d:case v:case m:case u:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference"),t.ContextConsumer=s,t.ContextProvider=u,t.Element=a,t.ForwardRef=d,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=c,t.Suspense=h,t.SuspenseList=p,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return y(e)===s},t.isContextProvider=function(e){return y(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return y(e)===d},t.isFragment=function(e){return y(e)===i},t.isLazy=function(e){return y(e)===v},t.isMemo=function(e){return y(e)===m},t.isPortal=function(e){return y(e)===o},t.isProfiler=function(e){return y(e)===l},t.isStrictMode=function(e){return y(e)===c},t.isSuspense=function(e){return y(e)===h},t.isSuspenseList=function(e){return y(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===l||e===c||e===h||e===p||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===s||e.$$typeof===d||e.$$typeof===r||void 0!==e.getModuleId)},t.typeOf=y},1385:function(e,t,n){"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,"a",function(){return r})},1386:function(e,t,n){"use strict";var r;function a(e){var t=e.match(/^(.*)px$/),n=Number(null===t||void 0===t?void 0:t[1]);return Number.isNaN(n)?function(e){if("undefined"===typeof document)return 0;if(e||void 0===r){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),a=n.style;a.position="absolute",a.top="0",a.left="0",a.pointerEvents="none",a.visibility="hidden",a.width="200px",a.height="150px",a.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),r=o-i}return r}():n}function o(e){if("undefined"===typeof document||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:a(n),height:a(r)}}n.d(t,"a",function(){return o})},1387:function(e,t,n){"use strict";var r=n(1150),a=n(1151),o=n(1);var i=0;var c=Object(a.a)({},o).useId;t.a=c?function(e){var t=c();return e||t}:function(e){var t=o.useState("ssr-id"),n=Object(r.a)(t,2),a=n[0],c=n[1];return o.useEffect(function(){var e=i;i+=1,c("rc_unique_".concat(e))},[]),e||a}},1388:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(1150),a=n(1),o=n(1170),i=0,c=Object(o.a)();function l(e){var t=a.useState(),n=Object(r.a)(t,2),o=n[0],l=n[1];return a.useEffect(function(){l("rc_select_".concat(function(){var e;return c?(e=i,i+=1):e="TEST_OR_SSR",e}()))},[]),e||o}},1389:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(1306),a=n(1307),o=n(1261);function i(e){var t={r:0,g:0,b:0},n=1,i=null,c=null,l=null,u=!1,d=!1;return"string"===typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(a.a[e])e=a.a[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=s.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=s.rgba.exec(e))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=s.hsl.exec(e))return{h:n[1],s:n[2],l:n[3]};if(n=s.hsla.exec(e))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=s.hsv.exec(e))return{h:n[1],s:n[2],v:n[3]};if(n=s.hsva.exec(e))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=s.hex8.exec(e))return{r:Object(r.e)(n[1]),g:Object(r.e)(n[2]),b:Object(r.e)(n[3]),a:Object(r.a)(n[4]),format:t?"name":"hex8"};if(n=s.hex6.exec(e))return{r:Object(r.e)(n[1]),g:Object(r.e)(n[2]),b:Object(r.e)(n[3]),format:t?"name":"hex"};if(n=s.hex4.exec(e))return{r:Object(r.e)(n[1]+n[1]),g:Object(r.e)(n[2]+n[2]),b:Object(r.e)(n[3]+n[3]),a:Object(r.a)(n[4]+n[4]),format:t?"name":"hex8"};if(n=s.hex3.exec(e))return{r:Object(r.e)(n[1]+n[1]),g:Object(r.e)(n[2]+n[2]),b:Object(r.e)(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"===typeof e&&(f(e.r)&&f(e.g)&&f(e.b)?(t=Object(r.i)(e.r,e.g,e.b),u=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):f(e.h)&&f(e.s)&&f(e.v)?(i=Object(o.d)(e.s),c=Object(o.d)(e.v),t=Object(r.c)(e.h,i,c),u=!0,d="hsv"):f(e.h)&&f(e.s)&&f(e.l)&&(i=Object(o.d)(e.s),l=Object(o.d)(e.l),t=Object(r.b)(e.h,i,l),u=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Object(o.b)(n),{ok:u,format:e.format||d,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var c="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),l="[\\s|\\(]+(".concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")\\s*\\)?"),u="[\\s|\\(]+(".concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")\\s*\\)?"),s={CSS_UNIT:new RegExp(c),rgb:new RegExp("rgb"+l),rgba:new RegExp("rgba"+u),hsl:new RegExp("hsl"+l),hsla:new RegExp("hsla"+u),hsv:new RegExp("hsv"+l),hsva:new RegExp("hsva"+u),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function f(e){return Boolean(s.CSS_UNIT.exec(String(e)))}},1390:function(e,t,n){"use strict";(function(e){function r(){return(r=Object.assign?Object.assign.bind():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 a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t,n){return(i=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&o(a,n.prototype),a}).apply(null,arguments)}function c(e){var t="function"===typeof Map?new Map:void 0;return(c=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return i(e,arguments,a(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o(r,e)})(e)}n.d(t,"a",function(){return C});var l=/%[sdj%]/g,u=function(){};function s(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function f(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=0,o=n.length;return"function"===typeof e?e.apply(null,n):"string"===typeof e?e.replace(l,function(e){if("%%"===e)return"%";if(a>=o)return e;switch(e){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch(t){return"[Circular]"}break;default:return e}}):e}function d(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!==typeof e||e))}function h(e,t,n){var r=0,a=e.length;!function o(i){if(i&&i.length)n(i);else{var c=r;r+=1,c<a?t(e[c],o):n([])}}([])}"undefined"!==typeof e&&Object({NODE_ENV:"production",PUBLIC_URL:""});var p=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n),r}(c(Error));function m(e,t,n,r,a){if(t.first){var o=new Promise(function(t,o){h(function(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}(e),n,function(e){return r(e),e.length?o(new p(e,s(e))):t(a)})});return o.catch(function(e){return e}),o}var i=!0===t.firstFields?Object.keys(e):t.firstFields||[],c=Object.keys(e),l=c.length,u=0,f=[],d=new Promise(function(t,o){var d=function(e){if(f.push.apply(f,e),++u===l)return r(f),f.length?o(new p(f,s(f))):t(a)};c.length||(r(f),t(a)),c.forEach(function(t){var r=e[t];-1!==i.indexOf(t)?h(r,n,d):function(e,t,n){var r=[],a=0,o=e.length;function i(e){r.push.apply(r,e||[]),++a===o&&n(r)}e.forEach(function(e){t(e,i)})}(r,n,d)})});return d.catch(function(e){return e}),d}function v(e,t){return function(n){var r,a;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(void 0==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(a=n)&&void 0!==a.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"===typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function g(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];"object"===typeof a&&"object"===typeof e[n]?e[n]=r({},e[n],a):e[n]=a}return e}var y,b=function(e,t,n,r,a,o){!e.required||n.hasOwnProperty(e.field)&&!d(t,o||e.type)||r.push(f(a.messages.required,e.fullField))},w=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,E=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,x={integer:function(e){return x.number(e)&&parseInt(e,10)===e},float:function(e){return x.number(e)&&!x.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===typeof e&&!x.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(w)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(function(){if(y)return y;var e=function(e){return e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=[a-fA-F\\d:])|(?<=[a-fA-F\\d:])(?=\\s|$))":""},t="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",r=("\n(?:\n(?:"+n+":){7}(?:"+n+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+n+":){6}(?:"+t+"|:"+n+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+n+":){5}(?::"+t+"|(?::"+n+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+n+":){4}(?:(?::"+n+"){0,1}:"+t+"|(?::"+n+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+n+":){3}(?:(?::"+n+"){0,2}:"+t+"|(?::"+n+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+n+":){2}(?:(?::"+n+"){0,3}:"+t+"|(?::"+n+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+n+":){1}(?:(?::"+n+"){0,4}:"+t+"|(?::"+n+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+n+"){0,5}:"+t+"|(?::"+n+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+t+"$)|(?:^"+r+"$)"),o=new RegExp("^"+t+"$"),i=new RegExp("^"+r+"$"),c=function(n){return n&&n.exact?a:new RegExp("(?:"+e(n)+t+e(n)+")|(?:"+e(n)+r+e(n)+")","g")};c.v4=function(n){return n&&n.exact?o:new RegExp(""+e(n)+t+e(n),"g")},c.v6=function(t){return t&&t.exact?i:new RegExp(""+e(t)+r+e(t),"g")};var l=c.v4().source,u=c.v6().source;return y=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+l+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"===typeof e&&!!e.match(E)}},O={required:b,whitespace:function(e,t,n,r,a){(/^\s+$/.test(t)||""===t)&&r.push(f(a.messages.whitespace,e.fullField))},type:function(e,t,n,r,a){if(e.required&&void 0===t)b(e,t,n,r,a);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?x[o](t)||r.push(f(a.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(f(a.messages.types[o],e.fullField,e.type))}},range:function(e,t,n,r,a){var o="number"===typeof e.len,i="number"===typeof e.min,c="number"===typeof e.max,l=t,u=null,s="number"===typeof t,d="string"===typeof t,h=Array.isArray(t);if(s?u="number":d?u="string":h&&(u="array"),!u)return!1;h&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?l!==e.len&&r.push(f(a.messages[u].len,e.fullField,e.len)):i&&!c&&l<e.min?r.push(f(a.messages[u].min,e.fullField,e.min)):c&&!i&&l>e.max?r.push(f(a.messages[u].max,e.fullField,e.max)):i&&c&&(l<e.min||l>e.max)&&r.push(f(a.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,a){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&r.push(f(a.messages.enum,e.fullField,e.enum.join(", ")))},pattern:function(e,t,n,r,a){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(f(a.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"===typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(f(a.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},j=function(e,t,n,r,a){var o=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t,o)&&!e.required)return n();O.required(e,t,r,i,a,o),d(t,o)||O.type(e,t,r,i,a)}n(i)},k={string:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t,"string")&&!e.required)return n();O.required(e,t,r,o,a,"string"),d(t,"string")||(O.type(e,t,r,o,a),O.range(e,t,r,o,a),O.pattern(e,t,r,o,a),!0===e.whitespace&&O.whitespace(e,t,r,o,a))}n(o)},method:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();O.required(e,t,r,o,a),void 0!==t&&O.type(e,t,r,o,a)}n(o)},number:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),d(t)&&!e.required)return n();O.required(e,t,r,o,a),void 0!==t&&(O.type(e,t,r,o,a),O.range(e,t,r,o,a))}n(o)},boolean:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();O.required(e,t,r,o,a),void 0!==t&&O.type(e,t,r,o,a)}n(o)},regexp:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();O.required(e,t,r,o,a),d(t)||O.type(e,t,r,o,a)}n(o)},integer:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();O.required(e,t,r,o,a),void 0!==t&&(O.type(e,t,r,o,a),O.range(e,t,r,o,a))}n(o)},float:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();O.required(e,t,r,o,a),void 0!==t&&(O.type(e,t,r,o,a),O.range(e,t,r,o,a))}n(o)},array:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((void 0===t||null===t)&&!e.required)return n();O.required(e,t,r,o,a,"array"),void 0!==t&&null!==t&&(O.type(e,t,r,o,a),O.range(e,t,r,o,a))}n(o)},object:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();O.required(e,t,r,o,a),void 0!==t&&O.type(e,t,r,o,a)}n(o)},enum:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();O.required(e,t,r,o,a),void 0!==t&&O.enum(e,t,r,o,a)}n(o)},pattern:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t,"string")&&!e.required)return n();O.required(e,t,r,o,a),d(t,"string")||O.pattern(e,t,r,o,a)}n(o)},date:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t,"date")&&!e.required)return n();var i;O.required(e,t,r,o,a),d(t,"date")||(i=t instanceof Date?t:new Date(t),O.type(e,i,r,o,a),i&&O.range(e,i.getTime(),r,o,a))}n(o)},url:j,hex:j,email:j,required:function(e,t,n,r,a){var o=[],i=Array.isArray(t)?"array":typeof t;O.required(e,t,r,o,a,i),n(o)},any:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();O.required(e,t,r,o,a)}n(o)}};function S(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var _=S(),C=function(){function e(e){this.rules=null,this._messages=_,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})},t.messages=function(e){return e&&(this._messages=g(S(),e)),this._messages},t.validate=function(t,n,a){var o=this;void 0===n&&(n={}),void 0===a&&(a=function(){});var i=t,c=n,l=a;if("function"===typeof c&&(l=c,c={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,i),Promise.resolve(i);if(c.messages){var u=this.messages();u===_&&(u=S()),g(u,c.messages),c.messages=u}else c.messages=this.messages();var d={};(c.keys||Object.keys(this.rules)).forEach(function(e){var n=o.rules[e],a=i[e];n.forEach(function(n){var c=n;"function"===typeof c.transform&&(i===t&&(i=r({},i)),a=i[e]=c.transform(a)),(c="function"===typeof c?{validator:c}:r({},c)).validator=o.getValidationMethod(c),c.validator&&(c.field=e,c.fullField=c.fullField||e,c.type=o.getType(c),d[e]=d[e]||[],d[e].push({rule:c,value:a,source:i,field:e}))})});var h={};return m(d,c,function(t,n){var a,o=t.rule,l=("object"===o.type||"array"===o.type)&&("object"===typeof o.fields||"object"===typeof o.defaultField);function u(a){void 0===a&&(a=[]);var u=Array.isArray(a)?a:[a];!c.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==o.message&&(u=[].concat(o.message));var s=u.map(v(o,i));if(c.first&&s.length)return h[o.field]=1,n(s);if(l){if(o.required&&!t.value)return void 0!==o.message?s=[].concat(o.message).map(v(o,i)):c.error&&(s=[c.error(o,f(c.messages.required,o.field))]),n(s);var d={};o.defaultField&&Object.keys(t.value).map(function(e){d[e]=o.defaultField}),d=r({},d,t.rule.fields);var p={};Object.keys(d).forEach(function(e){var t=d[e],n=Array.isArray(t)?t:[t];p[e]=n.map(function(e,t){return r({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}.bind(null,e))});var m=new e(p);m.messages(c.messages),t.rule.options&&(t.rule.options.messages=c.messages,t.rule.options.error=c.error),m.validate(t.value,t.rule.options||c,function(e){var t=[];s&&s.length&&t.push.apply(t,s),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)})}else n(s)}if(l=l&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)a=o.asyncValidator(o,t.value,u,t.source,c);else if(o.validator){try{a=o.validator(o,t.value,u,t.source,c)}catch(s){null==console.error||console.error(s),c.suppressValidatorError||setTimeout(function(){throw s},0),u(s.message)}!0===a?u():!1===a?u("function"===typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):a instanceof Array?u(a):a instanceof Error&&u(a.message)}a&&a.then&&a.then(function(){return u()},function(e){return u(e)})},function(e){!function(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var a=0;a<e.length;a++)r(e[a]);t.length?(n=s(t),l(t,n)):l(null,i)}(e)},i)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!k.hasOwnProperty(e.type))throw new Error(f("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?k.required:k[this.getType(e)]||void 0},e}();C.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");k[e]=t},C.warning=u,C.messages=_,C.validators=k}).call(this,n(531))},1391:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e.default:e}var a=n(72),o=r(n(1)),i=n(82),c=r(n(24)),l=r(n(70)),u=r(n(79));function s(){return(s=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 f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function d(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var h=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).history=i.createBrowserHistory(t.props),t}return f(t,e),t.prototype.render=function(){return o.createElement(a.Router,{history:this.history,children:this.props.children})},t}(o.Component);h.propTypes={basename:c.string,children:c.node,forceRefresh:c.bool,getUserConfirmation:c.func,keyLength:c.number},h.prototype.componentDidMount=function(){l(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")};var p=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).history=i.createHashHistory(t.props),t}return f(t,e),t.prototype.render=function(){return o.createElement(a.Router,{history:this.history,children:this.props.children})},t}(o.Component);p.propTypes={basename:c.string,children:c.node,getUserConfirmation:c.func,hashType:c.oneOf(["hashbang","noslash","slash"])},p.prototype.componentDidMount=function(){l(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")};var m=function(e,t){return"function"===typeof e?e(t):e},v=function(e,t){return"string"===typeof e?i.createLocation(e,null,null,t):e},g=function(e){return e},y=o.forwardRef;"undefined"===typeof y&&(y=g);var b=y(function(e,t){var n=e.innerRef,r=e.navigate,a=e.onClick,i=d(e,["innerRef","navigate","onClick"]),c=i.target,l=s({},i,{onClick:function(e){try{a&&a(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return l.ref=g!==y&&t||n,o.createElement("a",l)});b.displayName="LinkAnchor";var w=y(function(e,t){var n=e.component,r=void 0===n?b:n,i=e.replace,c=e.to,l=e.innerRef,f=d(e,["component","replace","to","innerRef"]);return o.createElement(a.__RouterContext.Consumer,null,function(e){e||u(!1,"You should not use <Link> outside a <Router>");var n=e.history,a=v(m(c,e.location),e.location),d=a?n.createHref(a):"",h=s({},f,{href:d,navigate:function(){var t=m(c,e.location);(i?n.replace:n.push)(t)}});return g!==y?h.ref=t||l:h.innerRef=l,o.createElement(r,h)})}),E=c.oneOfType([c.string,c.object,c.func]),x=c.oneOfType([c.string,c.func,c.shape({current:c.any})]);w.displayName="Link",w.propTypes={innerRef:x,onClick:c.func,replace:c.bool,target:c.string,to:E.isRequired};var O=function(e){return e},j=o.forwardRef;"undefined"===typeof j&&(j=O);var k=j(function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.activeClassName,c=void 0===i?"active":i,l=e.activeStyle,f=e.className,h=e.exact,p=e.isActive,g=e.location,y=e.sensitive,b=e.strict,E=e.style,x=e.to,k=e.innerRef,S=d(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(a.__RouterContext.Consumer,null,function(e){e||u(!1,"You should not use <NavLink> outside a <Router>");var n=g||e.location,i=v(m(x,n),n),d=i.pathname,_=d&&d.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),C=_?a.matchPath(n.pathname,{path:_,exact:h,sensitive:y,strict:b}):null,L=!!(p?p(C,n):C),A=L?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return e}).join(" ")}(f,c):f,P=L?s({},E,{},l):E,M=s({"aria-current":L&&r||null,className:A,style:P,to:i},S);return O!==j?M.ref=t||k:M.innerRef=k,o.createElement(w,M)})});k.displayName="NavLink";var S=c.oneOf(["page","step","location","date","time","true"]);k.propTypes=s({},w.propTypes,{"aria-current":S,activeClassName:c.string,activeStyle:c.object,className:c.string,exact:c.bool,isActive:c.func,location:c.object,sensitive:c.bool,strict:c.bool,style:c.object}),Object.defineProperty(t,"MemoryRouter",{enumerable:!0,get:function(){return a.MemoryRouter}}),Object.defineProperty(t,"Prompt",{enumerable:!0,get:function(){return a.Prompt}}),Object.defineProperty(t,"Redirect",{enumerable:!0,get:function(){return a.Redirect}}),Object.defineProperty(t,"Route",{enumerable:!0,get:function(){return a.Route}}),Object.defineProperty(t,"Router",{enumerable:!0,get:function(){return a.Router}}),Object.defineProperty(t,"StaticRouter",{enumerable:!0,get:function(){return a.StaticRouter}}),Object.defineProperty(t,"Switch",{enumerable:!0,get:function(){return a.Switch}}),Object.defineProperty(t,"generatePath",{enumerable:!0,get:function(){return a.generatePath}}),Object.defineProperty(t,"matchPath",{enumerable:!0,get:function(){return a.matchPath}}),Object.defineProperty(t,"useHistory",{enumerable:!0,get:function(){return a.useHistory}}),Object.defineProperty(t,"useLocation",{enumerable:!0,get:function(){return a.useLocation}}),Object.defineProperty(t,"useParams",{enumerable:!0,get:function(){return a.useParams}}),Object.defineProperty(t,"useRouteMatch",{enumerable:!0,get:function(){return a.useRouteMatch}}),Object.defineProperty(t,"withRouter",{enumerable:!0,get:function(){return a.withRouter}}),t.BrowserRouter=h,t.HashRouter=p,t.Link=w,t.NavLink=k},1392:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var a=n(72),o=r(n(1)),i=n(82);n(24),n(70);var c=r(n(79));function l(){return(l=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 u(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function s(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||(a[n]=e[n]);return a}var f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).history=i.createBrowserHistory(t.props),t}return u(t,e),t.prototype.render=function(){return o.createElement(a.Router,{history:this.history,children:this.props.children})},t}(o.Component),d=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).history=i.createHashHistory(t.props),t}return u(t,e),t.prototype.render=function(){return o.createElement(a.Router,{history:this.history,children:this.props.children})},t}(o.Component),h=function(e,t){return"function"==typeof e?e(t):e},p=function(e,t){return"string"==typeof e?i.createLocation(e,null,null,t):e},m=function(e){return e},v=o.forwardRef;void 0===v&&(v=m);var g=v(function(e,t){var n=e.innerRef,r=e.navigate,a=e.onClick,i=s(e,["innerRef","navigate","onClick"]),c=i.target,u=l({},i,{onClick:function(e){try{a&&a(e)}catch(t){throw e.preventDefault(),t}var t;e.defaultPrevented||0!==e.button||c&&"_self"!==c||((t=e).metaKey||t.altKey||t.ctrlKey||t.shiftKey)||(e.preventDefault(),r())}});return u.ref=m!==v&&t||n,o.createElement("a",u)}),y=v(function(e,t){var n=e.component,r=void 0===n?g:n,i=e.replace,u=e.to,f=e.innerRef,d=s(e,["component","replace","to","innerRef"]);return o.createElement(a.__RouterContext.Consumer,null,function(e){e||c(!1);var n=e.history,a=p(h(u,e.location),e.location),s=a?n.createHref(a):"",g=l({},d,{href:s,navigate:function(){var t=h(u,e.location);(i?n.replace:n.push)(t)}});return m!==v?g.ref=t||f:g.innerRef=f,o.createElement(r,g)})}),b=function(e){return e},w=o.forwardRef;void 0===w&&(w=b);var E=w(function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.activeClassName,u=void 0===i?"active":i,f=e.activeStyle,d=e.className,m=e.exact,v=e.isActive,g=e.location,E=e.sensitive,x=e.strict,O=e.style,j=e.to,k=e.innerRef,S=s(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(a.__RouterContext.Consumer,null,function(e){e||c(!1);var n=g||e.location,i=p(h(j,n),n),s=i.pathname,_=s&&s.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),C=_?a.matchPath(n.pathname,{path:_,exact:m,sensitive:E,strict:x}):null,L=!!(v?v(C,n):C),A=L?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return e}).join(" ")}(d,u):d,P=L?l({},O,{},f):O,M=l({"aria-current":L&&r||null,className:A,style:P,to:i},S);return b!==w?M.ref=t||k:M.innerRef=k,o.createElement(y,M)})});Object.defineProperty(t,"MemoryRouter",{enumerable:!0,get:function(){return a.MemoryRouter}}),Object.defineProperty(t,"Prompt",{enumerable:!0,get:function(){return a.Prompt}}),Object.defineProperty(t,"Redirect",{enumerable:!0,get:function(){return a.Redirect}}),Object.defineProperty(t,"Route",{enumerable:!0,get:function(){return a.Route}}),Object.defineProperty(t,"Router",{enumerable:!0,get:function(){return a.Router}}),Object.defineProperty(t,"StaticRouter",{enumerable:!0,get:function(){return a.StaticRouter}}),Object.defineProperty(t,"Switch",{enumerable:!0,get:function(){return a.Switch}}),Object.defineProperty(t,"generatePath",{enumerable:!0,get:function(){return a.generatePath}}),Object.defineProperty(t,"matchPath",{enumerable:!0,get:function(){return a.matchPath}}),Object.defineProperty(t,"useHistory",{enumerable:!0,get:function(){return a.useHistory}}),Object.defineProperty(t,"useLocation",{enumerable:!0,get:function(){return a.useLocation}}),Object.defineProperty(t,"useParams",{enumerable:!0,get:function(){return a.useParams}}),Object.defineProperty(t,"useRouteMatch",{enumerable:!0,get:function(){return a.useRouteMatch}}),Object.defineProperty(t,"withRouter",{enumerable:!0,get:function(){return a.withRouter}}),t.BrowserRouter=f,t.HashRouter=d,t.Link=y,t.NavLink=E},1393:function(e,t,n){},1395:function(e,t,n){},1397:function(e,t,n){e.exports=n.p+"static/media/total-rafiki.cfe163e7.svg"},1398:function(e,t,n){e.exports=n.p+"static/media/val1-rafiki.acca9c66.svg"},1399:function(e,t,n){e.exports=n.p+"static/media/val2-rafiki.4628ec92.svg"},1400:function(e,t,n){e.exports=n.p+"static/media/vald-rafiki.2c4a187e.svg"},1401:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,o(n)))}return e}function o(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=i(t,r));return t}function i(e,t){return t?e?e+" "+t:e+t:e}"undefined"!==typeof e&&e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},1402:function(e,t,n){},1517:function(e,t,n){"use strict";var r=n(48),a=n(1156),o=n(75),i=n(1151),c=n(1150),l=n(1159),u=n(69),s=n(1197),f=n(1160),d=n(1),h=n.n(d),p=n(12),m=n.n(p),v=n(1167),g=n(1302),y=n(1213),b=n(1168),w=function(e){var t,n=e.className,r=e.customizeIcon,a=e.customizeIconProps,o=e.onMouseDown,i=e.onClick,c=e.children;return t="function"===typeof r?r(a):r,d.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),o&&o(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==t?t:d.createElement("span",{className:m()(n.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},c))};var E=d.createContext(null);function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);return d.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var O=n(1233),j=n(1520),k=function(e,t){var n,r=e.prefixCls,a=e.id,o=e.inputElement,c=e.disabled,l=e.tabIndex,u=e.autoFocus,s=e.autoComplete,h=e.editable,p=e.activeDescendantId,v=e.value,g=e.maxLength,y=e.onKeyDown,w=e.onMouseDown,E=e.onChange,x=e.onPaste,O=e.onCompositionStart,j=e.onCompositionEnd,k=e.open,S=e.attrs,_=o||d.createElement("input",null),C=_,L=C.ref,A=C.props,P=A.onKeyDown,M=A.onChange,N=A.onMouseDown,T=A.onCompositionStart,I=A.onCompositionEnd,F=A.style;return Object(f.d)(!("maxLength"in _.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),_=d.cloneElement(_,Object(i.a)(Object(i.a)(Object(i.a)({type:"search"},A),{},{id:a,ref:Object(b.a)(t,L),disabled:c,tabIndex:l,autoComplete:s||"off",autoFocus:u,className:m()("".concat(r,"-selection-search-input"),null===(n=_)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":k||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":k?p:void 0},S),{},{value:h?v:"",maxLength:g,readOnly:!h,unselectable:h?null:"on",style:Object(i.a)(Object(i.a)({},F),{},{opacity:h?null:0}),onKeyDown:function(e){y(e),P&&P(e)},onMouseDown:function(e){w(e),N&&N(e)},onChange:function(e){E(e),M&&M(e)},onCompositionStart:function(e){O(e),T&&T(e)},onCompositionEnd:function(e){j(e),I&&I(e)},onPaste:x}))},S=d.forwardRef(k);S.displayName="Input";var _=S;function C(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var L="undefined"!==typeof window&&window.document&&window.document.documentElement;function A(e){return["string","number"].includes(Object(u.a)(e))}function P(e){var t=void 0;return e&&(A(e.title)?t=e.title.toString():A(e.label)&&(t=e.label.toString())),t}function M(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var N=function(e){e.preventDefault(),e.stopPropagation()},T=function(e){var t,n,r=e.id,a=e.prefixCls,i=e.values,l=e.open,u=e.searchValue,s=e.autoClearSearchValue,f=e.inputRef,h=e.placeholder,p=e.disabled,v=e.mode,g=e.showSearch,y=e.autoFocus,b=e.autoComplete,E=e.activeDescendantId,x=e.tabIndex,k=e.removeIcon,S=e.maxTagCount,C=e.maxTagTextLength,A=e.maxTagPlaceholder,T=void 0===A?function(e){return"+ ".concat(e.length," ...")}:A,I=e.tagRender,F=e.onToggleOpen,D=e.onRemove,R=e.onInputChange,G=e.onInputPaste,B=e.onInputKeyDown,H=e.onInputMouseDown,z=e.onInputCompositionStart,V=e.onInputCompositionEnd,q=d.useRef(null),Y=Object(d.useState)(0),W=Object(c.a)(Y,2),U=W[0],X=W[1],Q=Object(d.useState)(!1),K=Object(c.a)(Q,2),J=K[0],Z=K[1],$="".concat(a,"-selection"),ee=l||"multiple"===v&&!1===s||"tags"===v?u:"",te="tags"===v||"multiple"===v&&!1===s||g&&(l||J);function ne(e,t,n,r,a){return d.createElement("span",{className:m()("".concat($,"-item"),Object(o.a)({},"".concat($,"-item-disabled"),n)),title:P(e)},d.createElement("span",{className:"".concat($,"-item-content")},t),r&&d.createElement(w,{className:"".concat($,"-item-remove"),onMouseDown:N,onClick:a,customizeIcon:k},"\xd7"))}t=function(){X(q.current.scrollWidth)},n=[ee],L?d.useLayoutEffect(t,n):d.useEffect(t,n);var re=d.createElement("div",{className:"".concat($,"-search"),style:{width:U},onFocus:function(){Z(!0)},onBlur:function(){Z(!1)}},d.createElement(_,{ref:f,open:l,prefixCls:a,id:r,inputElement:null,disabled:p,autoFocus:y,autoComplete:b,editable:te,activeDescendantId:E,value:ee,onKeyDown:B,onMouseDown:H,onChange:R,onPaste:G,onCompositionStart:z,onCompositionEnd:V,tabIndex:x,attrs:Object(O.a)(e,!0)}),d.createElement("span",{ref:q,className:"".concat($,"-search-mirror"),"aria-hidden":!0},ee,"\xa0")),ae=d.createElement(j.a,{prefixCls:"".concat($,"-overflow"),data:i,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,a=!p&&!t,o=n;if("number"===typeof C&&("string"===typeof n||"number"===typeof n)){var i=String(o);i.length>C&&(o="".concat(i.slice(0,C),"..."))}var c=function(t){t&&t.stopPropagation(),D(e)};return"function"===typeof I?function(e,t,n,r,a){return d.createElement("span",{onMouseDown:function(e){N(e),F(!l)}},I({label:t,value:e,disabled:n,closable:r,onClose:a}))}(r,o,t,a,c):ne(e,o,t,a,c)},renderRest:function(e){var t="function"===typeof T?T(e):T;return ne({title:t},t,!1)},suffix:re,itemKey:M,maxCount:S});return d.createElement(d.Fragment,null,ae,!i.length&&!ee&&d.createElement("span",{className:"".concat($,"-placeholder")},h))},I=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,a=e.inputRef,o=e.disabled,i=e.autoFocus,l=e.autoComplete,u=e.activeDescendantId,s=e.mode,f=e.open,h=e.values,p=e.placeholder,m=e.tabIndex,v=e.showSearch,g=e.searchValue,y=e.activeValue,b=e.maxLength,w=e.onInputKeyDown,E=e.onInputMouseDown,x=e.onInputChange,j=e.onInputPaste,k=e.onInputCompositionStart,S=e.onInputCompositionEnd,C=e.title,L=d.useState(!1),A=Object(c.a)(L,2),M=A[0],N=A[1],T="combobox"===s,I=T||v,F=h[0],D=g||"";T&&y&&!M&&(D=y),d.useEffect(function(){T&&N(!1)},[T,y]);var R=!("combobox"!==s&&!f&&!v)&&!!D,G=void 0===C?P(F):C;return d.createElement(d.Fragment,null,d.createElement("span",{className:"".concat(n,"-selection-search")},d.createElement(_,{ref:a,prefixCls:n,id:r,open:f,inputElement:t,disabled:o,autoFocus:i,autoComplete:l,editable:I,activeDescendantId:u,value:D,onKeyDown:w,onMouseDown:E,onChange:function(e){N(!0),x(e)},onPaste:j,onCompositionStart:k,onCompositionEnd:S,tabIndex:m,attrs:Object(O.a)(e,!0),maxLength:T?b:void 0})),!T&&F?d.createElement("span",{className:"".concat(n,"-selection-item"),title:G,style:R?{visibility:"hidden"}:void 0},F.label):null,function(){if(F)return null;var e=R?{visibility:"hidden"}:void 0;return d.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},p)}())};var F=function(e,t){var n=Object(d.useRef)(null),a=Object(d.useRef)(!1),o=e.prefixCls,i=e.open,l=e.mode,u=e.showSearch,s=e.tokenWithEnter,f=e.autoClearSearchValue,h=e.onSearch,p=e.onSearchSubmit,m=e.onToggleOpen,v=e.onInputKeyDown,g=e.domRef;d.useImperativeHandle(t,function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}});var b=x(0),w=Object(c.a)(b,2),E=w[0],O=w[1],j=Object(d.useRef)(null),k=function(e){!1!==h(e,!0,a.current)&&m(!0)},S={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==y.a.UP&&n!==y.a.DOWN||e.preventDefault(),v&&v(e),n!==y.a.ENTER||"tags"!==l||a.current||i||null===p||void 0===p||p(e.target.value),t=n,[y.a.ESC,y.a.SHIFT,y.a.BACKSPACE,y.a.TAB,y.a.WIN_KEY,y.a.ALT,y.a.META,y.a.WIN_KEY_RIGHT,y.a.CTRL,y.a.SEMICOLON,y.a.EQUALS,y.a.CAPS_LOCK,y.a.CONTEXT_MENU,y.a.F1,y.a.F2,y.a.F3,y.a.F4,y.a.F5,y.a.F6,y.a.F7,y.a.F8,y.a.F9,y.a.F10,y.a.F11,y.a.F12].includes(t)||m(!0)},onInputMouseDown:function(){O(!0)},onInputChange:function(e){var t=e.target.value;if(s&&j.current&&/[\r\n]/.test(j.current)){var n=j.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,j.current)}j.current=null,k(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");j.current=t},onInputCompositionStart:function(){a.current=!0},onInputCompositionEnd:function(e){a.current=!1,"combobox"!==l&&k(e.target.value)}},_="multiple"===l||"tags"===l?d.createElement(T,Object(r.a)({},e,S)):d.createElement(I,Object(r.a)({},e,S));return d.createElement("div",{ref:g,className:"".concat(o,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=E();e.target===n.current||t||"combobox"===l||e.preventDefault(),("combobox"===l||u&&t)&&i||(i&&!1!==f&&h("",!0,!1),m())}},_)},D=d.forwardRef(F);D.displayName="Selector";var R=D,G=n(1337),B=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],H=function(e,t){var n=e.prefixCls,a=(e.disabled,e.visible),c=e.children,u=e.popupElement,s=e.animation,f=e.transitionName,h=e.dropdownStyle,p=e.dropdownClassName,v=e.direction,g=void 0===v?"ltr":v,y=e.placement,b=e.builtinPlacements,w=e.dropdownMatchSelectWidth,E=e.dropdownRender,x=e.dropdownAlign,O=e.getPopupContainer,j=e.empty,k=e.getTriggerDOMNode,S=e.onPopupVisibleChange,_=e.onPopupMouseEnter,C=Object(l.a)(e,B),L="".concat(n,"-dropdown"),A=u;E&&(A=E(u));var P=d.useMemo(function(){return b||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(w)},[b,w]),M=s?"".concat(L,"-").concat(s):f,N="number"===typeof w,T=d.useMemo(function(){return N?null:!1===w?"minWidth":"width"},[w,N]),I=h;N&&(I=Object(i.a)(Object(i.a)({},I),{},{width:w}));var F=d.useRef(null);return d.useImperativeHandle(t,function(){return{getPopupElement:function(){return F.current}}}),d.createElement(G.a,Object(r.a)({},C,{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:y||("rtl"===g?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:L,popupTransitionName:M,popup:d.createElement("div",{ref:F,onMouseEnter:_},A),stretch:T,popupAlign:x,popupVisible:a,getPopupContainer:O,popupClassName:m()(p,Object(o.a)({},"".concat(L,"-empty"),j)),popupStyle:I,getTriggerDOMNode:k,onPopupVisibleChange:S}),c)},z=d.forwardRef(H);z.displayName="SelectTrigger";var V=z,q=n(1305);function Y(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!==r&&void 0!==r?r:void 0!==n?n:"rc-index-key-".concat(t)}function W(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function U(e){var t=Object(i.a)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(f.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var X=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Q=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function K(e){return"tags"===e||"multiple"===e}var J=d.forwardRef(function(e,t){var n,f,p=e.id,O=e.prefixCls,j=e.className,k=e.showSearch,S=e.tagRender,_=e.direction,C=e.omitDomProps,L=e.displayValues,A=e.onDisplayValuesChange,P=e.emptyOptions,M=e.notFoundContent,N=void 0===M?"Not Found":M,T=e.onClear,I=e.mode,F=e.disabled,D=e.loading,G=e.getInputElement,B=e.getRawInputElement,H=e.open,z=e.defaultOpen,Y=e.onDropdownVisibleChange,W=e.activeValue,U=e.onActiveValueChange,J=e.activeDescendantId,Z=e.searchValue,$=e.autoClearSearchValue,ee=e.onSearch,te=e.onSearchSplit,ne=e.tokenSeparators,re=e.allowClear,ae=e.suffixIcon,oe=e.clearIcon,ie=e.OptionList,ce=e.animation,le=e.transitionName,ue=e.dropdownStyle,se=e.dropdownClassName,fe=e.dropdownMatchSelectWidth,de=e.dropdownRender,he=e.dropdownAlign,pe=e.placement,me=e.builtinPlacements,ve=e.getPopupContainer,ge=e.showAction,ye=void 0===ge?[]:ge,be=e.onFocus,we=e.onBlur,Ee=e.onKeyUp,xe=e.onKeyDown,Oe=e.onMouseDown,je=Object(l.a)(e,X),ke=K(I),Se=(void 0!==k?k:ke)||"combobox"===I,_e=Object(i.a)({},je);Q.forEach(function(e){delete _e[e]}),null===C||void 0===C||C.forEach(function(e){delete _e[e]});var Ce=d.useState(!1),Le=Object(c.a)(Ce,2),Ae=Le[0],Pe=Le[1];d.useEffect(function(){Pe(Object(g.a)())},[]);var Me=d.useRef(null),Ne=d.useRef(null),Te=d.useRef(null),Ie=d.useRef(null),Fe=d.useRef(null),De=d.useRef(!1),Re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=d.useState(!1),n=Object(c.a)(t,2),r=n[0],a=n[1],o=d.useRef(null),i=function(){window.clearTimeout(o.current)};return d.useEffect(function(){return i},[]),[r,function(t,n){i(),o.current=window.setTimeout(function(){a(t),n&&n()},e)},i]}(),Ge=Object(c.a)(Re,3),Be=Ge[0],He=Ge[1],ze=Ge[2];d.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=Ie.current)||void 0===e?void 0:e.focus,blur:null===(t=Ie.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Fe.current)||void 0===t?void 0:t.scrollTo(e)}}});var Ve=d.useMemo(function(){var e;if("combobox"!==I)return Z;var t=null===(e=L[0])||void 0===e?void 0:e.value;return"string"===typeof t||"number"===typeof t?String(t):""},[Z,I,L]),qe="combobox"===I&&"function"===typeof G&&G()||null,Ye="function"===typeof B&&B(),We=Object(b.d)(Ne,null===Ye||void 0===Ye||null===(n=Ye.props)||void 0===n?void 0:n.ref),Ue=d.useState(!1),Xe=Object(c.a)(Ue,2),Qe=Xe[0],Ke=Xe[1];Object(v.a)(function(){Ke(!0)},[]);var Je=Object(s.a)(!1,{defaultValue:z,value:H}),Ze=Object(c.a)(Je,2),$e=Ze[0],et=Ze[1],tt=!!Qe&&$e,nt=!N&&P;(F||nt&&tt&&"combobox"===I)&&(tt=!1);var rt=!nt&&tt,at=d.useCallback(function(e){var t=void 0!==e?e:!tt;F||(et(t),tt!==t&&(null===Y||void 0===Y||Y(t)))},[F,tt,et,Y]),ot=d.useMemo(function(){return(ne||[]).some(function(e){return["\n","\r\n"].includes(e)})},[ne]),it=function(e,t,n){var r=!0,o=e;null===U||void 0===U||U(null);var i=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var o=Object(q.a)(r),i=o[0],c=o.slice(1);if(!i)return[t];var l=t.split(i);return n=n||l.length>1,l.reduce(function(t,n){return[].concat(Object(a.a)(t),Object(a.a)(e(n,c)))},[]).filter(function(e){return e})}(e,t);return n?r:null}(e,ne);return"combobox"!==I&&i&&(o="",null===te||void 0===te||te(i),at(!1),r=!1),ee&&Ve!==o&&ee(o,{source:t?"typing":"effect"}),r};d.useEffect(function(){tt||ke||"combobox"===I||it("",!1,!1)},[tt]),d.useEffect(function(){$e&&F&&et(!1),F&&!De.current&&He(!1)},[F]);var ct=x(),lt=Object(c.a)(ct,2),ut=lt[0],st=lt[1],ft=d.useRef(!1),dt=[];d.useEffect(function(){return function(){dt.forEach(function(e){return clearTimeout(e)}),dt.splice(0,dt.length)}},[]);var ht,pt=d.useState({}),mt=Object(c.a)(pt,2)[1];Ye&&(ht=function(e){at(e)}),function(e,t,n,r){var a=d.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function t(t){var n;if(null===(n=a.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),a.current.open&&e().filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}},[])}(function(){var e;return[Me.current,null===(e=Te.current)||void 0===e?void 0:e.getPopupElement()]},rt,at,!!Ye);var vt,gt=d.useMemo(function(){return Object(i.a)(Object(i.a)({},e),{},{notFoundContent:N,open:tt,triggerOpen:rt,id:p,showSearch:Se,multiple:ke,toggleOpen:at})},[e,N,rt,tt,p,Se,ke,at]),yt=!!ae||D;yt&&(vt=d.createElement(w,{className:m()("".concat(O,"-arrow"),Object(o.a)({},"".concat(O,"-arrow-loading"),D)),customizeIcon:ae,customizeIconProps:{loading:D,searchValue:Ve,open:tt,focused:Be,showSearch:Se}}));var bt,wt=function(e,t,n,r,a){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,l=h.a.useMemo(function(){return"object"===Object(u.a)(r)?r.clearIcon:a||void 0},[r,a]);return{allowClear:h.a.useMemo(function(){return!(o||!r||!n.length&&!i||"combobox"===c&&""===i)},[r,o,n.length,i,c]),clearIcon:h.a.createElement(w,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"\xd7")}}(O,function(){var e;null===T||void 0===T||T(),null===(e=Ie.current)||void 0===e||e.focus(),A([],{type:"clear",values:L}),it("",!1,!1)},L,re,oe,F,Ve,I),Et=wt.allowClear,xt=wt.clearIcon,Ot=d.createElement(ie,{ref:Fe}),jt=m()(O,j,(f={},Object(o.a)(f,"".concat(O,"-focused"),Be),Object(o.a)(f,"".concat(O,"-multiple"),ke),Object(o.a)(f,"".concat(O,"-single"),!ke),Object(o.a)(f,"".concat(O,"-allow-clear"),re),Object(o.a)(f,"".concat(O,"-show-arrow"),yt),Object(o.a)(f,"".concat(O,"-disabled"),F),Object(o.a)(f,"".concat(O,"-loading"),D),Object(o.a)(f,"".concat(O,"-open"),tt),Object(o.a)(f,"".concat(O,"-customize-input"),qe),Object(o.a)(f,"".concat(O,"-show-search"),Se),f)),kt=d.createElement(V,{ref:Te,disabled:F,prefixCls:O,visible:rt,popupElement:Ot,animation:ce,transitionName:le,dropdownStyle:ue,dropdownClassName:se,direction:_,dropdownMatchSelectWidth:fe,dropdownRender:de,dropdownAlign:he,placement:pe,builtinPlacements:me,getPopupContainer:ve,empty:P,getTriggerDOMNode:function(){return Ne.current},onPopupVisibleChange:ht,onPopupMouseEnter:function(){mt({})}},Ye?d.cloneElement(Ye,{ref:We}):d.createElement(R,Object(r.a)({},e,{domRef:Ne,prefixCls:O,inputElement:qe,ref:Ie,id:p,showSearch:Se,autoClearSearchValue:$,mode:I,activeDescendantId:J,tagRender:S,values:L,open:tt,onToggleOpen:at,activeValue:W,searchValue:Ve,onSearch:it,onSearchSubmit:function(e){e&&e.trim()&&ee(e,{source:"submit"})},onRemove:function(e){var t=L.filter(function(t){return t!==e});A(t,{type:"remove",values:[e]})},tokenWithEnter:ot})));return bt=Ye?kt:d.createElement("div",Object(r.a)({className:jt},_e,{ref:Me,onMouseDown:function(e){var t,n=e.target,r=null===(t=Te.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var a=setTimeout(function(){var e,t=dt.indexOf(a);-1!==t&&dt.splice(t,1),ze(),Ae||r.contains(document.activeElement)||null===(e=Ie.current)||void 0===e||e.focus()});dt.push(a)}for(var o=arguments.length,i=new Array(o>1?o-1:0),c=1;c<o;c++)i[c-1]=arguments[c];null===Oe||void 0===Oe||Oe.apply(void 0,[e].concat(i))},onKeyDown:function(e){var t,n=ut(),r=e.which;if(r===y.a.ENTER&&("combobox"!==I&&e.preventDefault(),tt||at(!0)),st(!!Ve),r===y.a.BACKSPACE&&!n&&ke&&!Ve&&L.length){for(var o=Object(a.a)(L),i=null,c=o.length-1;c>=0;c-=1){var l=o[c];if(!l.disabled){o.splice(c,1),i=l;break}}i&&A(o,{type:"remove",values:[i]})}for(var u=arguments.length,s=new Array(u>1?u-1:0),f=1;f<u;f++)s[f-1]=arguments[f];tt&&Fe.current&&(t=Fe.current).onKeyDown.apply(t,[e].concat(s));null===xe||void 0===xe||xe.apply(void 0,[e].concat(s))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a;tt&&Fe.current&&(a=Fe.current).onKeyUp.apply(a,[e].concat(n));null===Ee||void 0===Ee||Ee.apply(void 0,[e].concat(n))},onFocus:function(){He(!0),F||(be&&!ft.current&&be.apply(void 0,arguments),ye.includes("focus")&&at(!0)),ft.current=!0},onBlur:function(){De.current=!0,He(!1,function(){ft.current=!1,De.current=!1,at(!1)}),F||(Ve&&("tags"===I?ee(Ve,{source:"submit"}):"multiple"===I&&ee("",{source:"blur"})),we&&we.apply(void 0,arguments))}}),Be&&!tt&&d.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(L.map(function(e){var t=e.label,n=e.value;return["number","string"].includes(Object(u.a)(t))?t:n}).join(", "))),kt,vt,Et&&xt),d.createElement(E.Provider,{value:gt},bt)}),Z=function(){return null};Z.isSelectOptGroup=!0;var $=Z,ee=function(){return null};ee.isSelectOption=!0;var te=ee,ne=n(1214),re=n(1217),ae=n(1518),oe=d.createContext(null);var ie=["disabled","title","children","style","className"];function ce(e){return"string"===typeof e||"number"===typeof e}var le=function(e,t){var n=d.useContext(E),i=n.prefixCls,u=n.id,s=n.open,f=n.multiple,h=n.mode,p=n.searchValue,v=n.toggleOpen,g=n.notFoundContent,b=n.onPopupScroll,x=d.useContext(oe),j=x.flattenOptions,k=x.onActiveValue,S=x.defaultActiveFirstOption,_=x.onSelect,C=x.menuItemSelectedIcon,L=x.rawValues,A=x.fieldNames,P=x.virtual,M=x.direction,N=x.listHeight,T=x.listItemHeight,I=x.optionRender,F="".concat(i,"-item"),D=Object(ne.a)(function(){return j},[s,j],function(e,t){return t[0]&&e[1]!==t[1]}),R=d.useRef(null),G=function(e){e.preventDefault()},B=function(e){R.current&&R.current.scrollTo("number"===typeof e?{index:e}:e)},H=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=D.length,r=0;r<n;r+=1){var a=(e+r*t+n)%n,o=D[a],i=o.group,c=o.data;if(!i&&!c.disabled)return a}return-1},z=d.useState(function(){return H(0)}),V=Object(c.a)(z,2),q=V[0],Y=V[1],W=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Y(e);var n={source:t?"keyboard":"mouse"},r=D[e];r?k(r.value,e,n):k(null,-1,n)};Object(d.useEffect)(function(){W(!1!==S?H(0):-1)},[D.length,p]);var U=d.useCallback(function(e){return L.has(e)&&"combobox"!==h},[h,Object(a.a)(L).toString(),L.size]);Object(d.useEffect)(function(){var e,t=setTimeout(function(){if(!f&&s&&1===L.size){var e=Array.from(L)[0],t=D.findIndex(function(t){return t.data.value===e});-1!==t&&(W(t),B(t))}});s&&(null===(e=R.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}},[s,p]);var X=function(e){void 0!==e&&_(e,{selected:!L.has(e)}),f||v(!1)};if(d.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case y.a.N:case y.a.P:case y.a.UP:case y.a.DOWN:var r=0;if(t===y.a.UP?r=-1:t===y.a.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===y.a.N?r=1:t===y.a.P&&(r=-1)),0!==r){var a=H(q+r,r);B(a),W(a,!0)}break;case y.a.ENTER:var o=D[q];o&&!o.data.disabled?X(o.value):X(void 0),s&&e.preventDefault();break;case y.a.ESC:v(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){B(e)}}}),0===D.length)return d.createElement("div",{role:"listbox",id:"".concat(u,"_list"),className:"".concat(F,"-empty"),onMouseDown:G},g);var Q=Object.keys(A).map(function(e){return A[e]}),K=function(e){return e.label};function J(e,t){return{role:e.group?"presentation":"option",id:"".concat(u,"_list_").concat(t)}}var Z=function(e){var t=D[e];if(!t)return null;var n=t.data||{},a=n.value,o=t.group,i=Object(O.a)(n,!0),c=K(t);return t?d.createElement("div",Object(r.a)({"aria-label":"string"!==typeof c||o?null:c},i,{key:e},J(t,e),{"aria-selected":U(a)}),a):null},$={role:"listbox",id:"".concat(u,"_list")};return d.createElement(d.Fragment,null,P&&d.createElement("div",Object(r.a)({},$,{style:{height:0,width:0,overflow:"hidden"}}),Z(q-1),Z(q),Z(q+1)),d.createElement(ae.a,{itemKey:"key",ref:R,data:D,height:N,itemHeight:T,fullHeight:!1,onMouseDown:G,onScroll:b,virtual:P,direction:M,innerProps:P?null:$},function(e,t){var n,a=e.group,i=e.groupOption,c=e.data,u=e.label,s=e.value,f=c.key;if(a){var h,p=null!==(h=c.title)&&void 0!==h?h:ce(u)?u.toString():void 0;return d.createElement("div",{className:m()(F,"".concat(F,"-group")),title:p},void 0!==u?u:f)}var v=c.disabled,g=c.title,y=(c.children,c.style),b=c.className,E=Object(l.a)(c,ie),x=Object(re.a)(E,Q),j=U(s),k="".concat(F,"-option"),S=m()(F,k,b,(n={},Object(o.a)(n,"".concat(k,"-grouped"),i),Object(o.a)(n,"".concat(k,"-active"),q===t&&!v),Object(o.a)(n,"".concat(k,"-disabled"),v),Object(o.a)(n,"".concat(k,"-selected"),j),n)),_=K(e),L=!C||"function"===typeof C||j,A="number"===typeof _?_:_||s,M=ce(A)?A.toString():void 0;return void 0!==g&&(M=g),d.createElement("div",Object(r.a)({},Object(O.a)(x),P?{}:J(e,t),{"aria-selected":j,className:S,title:M,onMouseMove:function(){q===t||v||W(t)},onClick:function(){v||X(s)},style:y}),d.createElement("div",{className:"".concat(k,"-content")},"function"===typeof I?I(e,{index:t}):A),d.isValidElement(C)||j,L&&d.createElement(w,{className:"".concat(F,"-option-state"),customizeIcon:C,customizeIconProps:{value:s,disabled:v,isSelected:j}},j?"\u2713":null))}))},ue=d.forwardRef(le);ue.displayName="OptionList";var se=ue;function fe(e,t){return C(e).join("").toUpperCase().includes(t)}var de=n(1388),he=n(1215),pe=["children","value"],me=["children"];function ve(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(he.a)(e).map(function(e,n){if(!d.isValidElement(e)||!e.type)return null;var r=e,a=r.type.isSelectOptGroup,o=r.key,c=r.props,u=c.children,s=Object(l.a)(c,me);return t||!a?function(e){var t=e,n=t.key,r=t.props,a=r.children,o=r.value,c=Object(l.a)(r,pe);return Object(i.a)({key:n,value:void 0!==o?o:n,children:a},c)}(e):Object(i.a)(Object(i.a)({key:"__RC_SELECT_GRP__".concat(null===o?n:o,"__"),label:o},s),{},{options:ve(u)})}).filter(function(e){return e})}function ge(e){var t=d.useRef();return t.current=e,d.useCallback(function(){return t.current.apply(t,arguments)},[])}var ye=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],be=["inputValue"];var we=d.forwardRef(function(e,t){var n=e.id,f=e.mode,h=e.prefixCls,p=void 0===h?"rc-select":h,m=e.backfill,v=e.fieldNames,g=e.inputValue,y=e.searchValue,b=e.onSearch,w=e.autoClearSearchValue,E=void 0===w||w,x=e.onSelect,O=e.onDeselect,j=e.dropdownMatchSelectWidth,k=void 0===j||j,S=e.filterOption,_=e.filterSort,L=e.optionFilterProp,A=e.optionLabelProp,P=e.options,M=e.optionRender,N=e.children,T=e.defaultActiveFirstOption,I=e.menuItemSelectedIcon,F=e.virtual,D=e.direction,R=e.listHeight,G=void 0===R?200:R,B=e.listItemHeight,H=void 0===B?20:B,z=e.value,V=e.defaultValue,q=e.labelInValue,X=e.onChange,Q=Object(l.a)(e,ye),Z=Object(de.a)(n),$=K(f),ee=!(P||!N),te=d.useMemo(function(){return(void 0!==S||"combobox"!==f)&&S},[S,f]),ne=d.useMemo(function(){return W(v,ee)},[JSON.stringify(v),ee]),re=Object(s.a)("",{value:void 0!==y?y:g,postState:function(e){return e||""}}),ae=Object(c.a)(re,2),ie=ae[0],ce=ae[1],le=function(e,t,n,r,a){return d.useMemo(function(){var o=e;!e&&(o=ve(t));var i=new Map,c=new Map,l=function(e,t,n){n&&"string"===typeof n&&e.set(t[n],t)};return function e(t){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=0;u<t.length;u+=1){var s=t[u];!s[n.options]||o?(i.set(s[n.value],s),l(c,s,n.label),l(c,s,r),l(c,s,a)):e(s[n.options],!0)}}(o),{options:o,valueOptions:i,labelOptions:c}},[e,t,n,r,a])}(P,N,ne,L,A),ue=le.valueOptions,he=le.labelOptions,pe=le.options,me=d.useCallback(function(e){return C(e).map(function(e){var t,n,r,a,o,i,c;(c=e)&&"object"===Object(u.a)(c)?(r=e.key,n=e.label,t=null!==(i=e.value)&&void 0!==i?i:r):t=e;var l,s=ue.get(t);s&&(void 0===n&&(n=null===s||void 0===s?void 0:s[A||ne.label]),void 0===r&&(r=null!==(l=null===s||void 0===s?void 0:s.key)&&void 0!==l?l:t),a=null===s||void 0===s?void 0:s.disabled,o=null===s||void 0===s?void 0:s.title);return{label:n,value:t,key:r,disabled:a,title:o}})},[ne,A,ue]),we=Object(s.a)(V,{value:z}),Ee=Object(c.a)(we,2),xe=Ee[0],Oe=Ee[1],je=function(e,t){var n=d.useRef({values:new Map,options:new Map});return[d.useMemo(function(){var r=n.current,a=r.values,o=r.options,c=e.map(function(e){var t;return void 0===e.label?Object(i.a)(Object(i.a)({},e),{},{label:null===(t=a.get(e.value))||void 0===t?void 0:t.label}):e}),l=new Map,u=new Map;return c.forEach(function(e){l.set(e.value,e),u.set(e.value,t.get(e.value)||o.get(e.value))}),n.current.values=l,n.current.options=u,c},[e,t]),d.useCallback(function(e){return t.get(e)||n.current.options.get(e)},[t])]}(d.useMemo(function(){var e,t,n=me(xe);return"combobox"!==f||((t=null===(e=n[0])||void 0===e?void 0:e.value)||0===t)?n:[]},[xe,me,f]),ue),ke=Object(c.a)(je,2),Se=ke[0],_e=ke[1],Ce=d.useMemo(function(){if(!f&&1===Se.length){var e=Se[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return Se.map(function(e){var t;return Object(i.a)(Object(i.a)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})})},[f,Se]),Le=d.useMemo(function(){return new Set(Se.map(function(e){return e.value}))},[Se]);d.useEffect(function(){if("combobox"===f){var e,t=null===(e=Se[0])||void 0===e?void 0:e.value;ce(void 0!==(n=t)&&null!==n?String(t):"")}var n},[Se]);var Ae=ge(function(e,t){var n,r=null!==t&&void 0!==t?t:e;return n={},Object(o.a)(n,ne.value,e),Object(o.a)(n,ne.label,r),n}),Pe=function(e,t,n,r,a){return d.useMemo(function(){if(!n||!1===r)return e;var c=t.options,l=t.label,u=t.value,s=[],f="function"===typeof r,d=n.toUpperCase(),h=f?r:function(e,t){return a?fe(t[a],d):t[c]?fe(t["children"!==l?l:"label"],d):fe(t[u],d)},p=f?function(e){return U(e)}:function(e){return e};return e.forEach(function(e){if(e[c])if(h(n,p(e)))s.push(e);else{var t=e[c].filter(function(e){return h(n,p(e))});t.length&&s.push(Object(i.a)(Object(i.a)({},e),{},Object(o.a)({},c,t)))}else h(n,p(e))&&s.push(e)}),s},[e,r,a,n,t])}(d.useMemo(function(){if("tags"!==f)return pe;var e=Object(a.a)(pe);return Object(a.a)(Se).sort(function(e,t){return e.value<t.value?-1:1}).forEach(function(t){var n=t.value;(function(e){return ue.has(e)})(n)||e.push(Ae(n,t.label))}),e},[Ae,pe,ue,Se,f]),ne,ie,te,L),Me=d.useMemo(function(){return"tags"!==f||!ie||Pe.some(function(e){return e[L||"value"]===ie})?Pe:Pe.some(function(e){return e[ne.value]===ie})?Pe:[Ae(ie)].concat(Object(a.a)(Pe))},[Ae,L,f,Pe,ie,ne]),Ne=d.useMemo(function(){return _?Object(a.a)(Me).sort(function(e,t){return _(e,t)}):Me},[Me,_]),Te=d.useMemo(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],o=W(n,!1),i=o.label,c=o.value,l=o.options,u=o.groupLabel;return function e(t,n){t.forEach(function(t){if(!n&&l in t){var o=t[u];void 0===o&&r&&(o=t.label),a.push({key:Y(t,a.length),group:!0,data:t,label:o}),e(t[l],!0)}else{var s=t[c];a.push({key:Y(t,a.length),groupOption:n,data:t,label:t[i],value:s})}})}(e,!1),a}(Ne,{fieldNames:ne,childrenAsData:ee})},[Ne,ne,ee]),Ie=function(e){var t=me(e);if(Oe(t),X&&(t.length!==Se.length||t.some(function(e,t){var n;return(null===(n=Se[t])||void 0===n?void 0:n.value)!==(null===e||void 0===e?void 0:e.value)}))){var n=q?t:t.map(function(e){return e.value}),r=t.map(function(e){return U(_e(e.value))});X($?n:n[0],$?r:r[0])}},Fe=d.useState(null),De=Object(c.a)(Fe,2),Re=De[0],Ge=De[1],Be=d.useState(0),He=Object(c.a)(Be,2),ze=He[0],Ve=He[1],qe=void 0!==T?T:"combobox"!==f,Ye=d.useCallback(function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Ve(t),m&&"combobox"===f&&null!==e&&"keyboard"===r&&Ge(String(e))},[m,f]),We=function(e,t,n){var r=function(){var t,n=_e(e);return[q?{label:null===n||void 0===n?void 0:n[ne.label],value:e,key:null!==(t=null===n||void 0===n?void 0:n.key)&&void 0!==t?t:e}:e,U(n)]};if(t&&x){var a=r(),o=Object(c.a)(a,2),i=o[0],l=o[1];x(i,l)}else if(!t&&O&&"clear"!==n){var u=r(),s=Object(c.a)(u,2),f=s[0],d=s[1];O(f,d)}},Ue=ge(function(e,t){var n,r=!$||t.selected;n=r?$?[].concat(Object(a.a)(Se),[e]):[e]:Se.filter(function(t){return t.value!==e}),Ie(n),We(e,r),"combobox"===f?Ge(""):K&&!E||(ce(""),Ge(""))}),Xe=d.useMemo(function(){var e=!1!==F&&!1!==k;return Object(i.a)(Object(i.a)({},le),{},{flattenOptions:Te,onActiveValue:Ye,defaultActiveFirstOption:qe,onSelect:Ue,menuItemSelectedIcon:I,rawValues:Le,fieldNames:ne,virtual:e,direction:D,listHeight:G,listItemHeight:H,childrenAsData:ee,optionRender:M})},[le,Te,Ye,qe,Ue,I,Le,ne,F,k,G,H,ee,M]);return d.createElement(oe.Provider,{value:Xe},d.createElement(J,Object(r.a)({},Q,{id:Z,prefixCls:p,ref:t,omitDomProps:be,mode:f,displayValues:Ce,onDisplayValuesChange:function(e,t){Ie(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach(function(e){We(e.value,!1,n)})},direction:D,searchValue:ie,onSearch:function(e,t){if(ce(e),Ge(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===f&&Ie(e),null===b||void 0===b||b(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(Object(a.a)(Le),[n])));Ie(r),We(n,!0),ce("")}}},autoClearSearchValue:E,onSearchSplit:function(e){var t=e;"tags"!==f&&(t=e.map(function(e){var t=he.get(e);return null===t||void 0===t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat(Object(a.a)(Le),Object(a.a)(t))));Ie(n),n.forEach(function(e){We(e,!0)})},dropdownMatchSelectWidth:k,OptionList:se,emptyOptions:!Te.length,activeValue:Re,activeDescendantId:"".concat(Z,"_list_").concat(ze)})))});we.Option=te,we.OptGroup=$;var Ee=we;n.d(t,"b",function(){return te}),n.d(t,"a",function(){return $});t.c=Ee},1518:function(e,t,n){"use strict";var r=n(48),a=n(1151),o=n(69),i=n(1150),c=n(75),l=n(1159),u=n(1),s=n(114),f=n(12),d=n.n(f),h=n(1207),p=u.forwardRef(function(e,t){var n,o=e.height,i=e.offsetY,l=e.offsetX,s=e.children,f=e.prefixCls,p=e.onInnerResize,m=e.innerProps,v=e.rtl,g=e.extra,y={},b={display:"flex",flexDirection:"column"};void 0!==i&&(y={height:o,position:"relative",overflow:"hidden"},b=Object(a.a)(Object(a.a)({},b),{},(n={transform:"translateY(".concat(i,"px)")},Object(c.a)(n,v?"marginRight":"marginLeft",-l),Object(c.a)(n,"position","absolute"),Object(c.a)(n,"left",0),Object(c.a)(n,"right",0),Object(c.a)(n,"top",0),n)));return u.createElement("div",{style:y},u.createElement(h.a,{onResize:function(e){e.offsetHeight&&p&&p()}},u.createElement("div",Object(r.a)({style:b,className:d()(Object(c.a)({},"".concat(f,"-holder-inner"),f)),ref:t},m),s,g)))});p.displayName="Filler";var m=p,v=n(1181);function g(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var y=u.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.rtl,l=e.scrollOffset,s=e.scrollRange,f=e.onStartMove,h=e.onStopMove,p=e.onScroll,m=e.horizontal,y=e.spinSize,b=e.containerSize,w=e.style,E=e.thumbStyle,x=u.useState(!1),O=Object(i.a)(x,2),j=O[0],k=O[1],S=u.useState(null),_=Object(i.a)(S,2),C=_[0],L=_[1],A=u.useState(null),P=Object(i.a)(A,2),M=P[0],N=P[1],T=!o,I=u.useRef(),F=u.useRef(),D=u.useState(!1),R=Object(i.a)(D,2),G=R[0],B=R[1],H=u.useRef(),z=function(){clearTimeout(H.current),B(!0),H.current=setTimeout(function(){B(!1)},3e3)},V=s-b||0,q=b-y||0,Y=V>0,W=u.useMemo(function(){return 0===l||0===V?0:l/V*q},[l,V,q]),U=u.useRef({top:W,dragging:j,pageY:C,startTop:M});U.current={top:W,dragging:j,pageY:C,startTop:M};var X=function(e){k(!0),L(g(e,m)),N(U.current.top),f(),e.stopPropagation(),e.preventDefault()};u.useEffect(function(){var e=function(e){e.preventDefault()},t=I.current,n=F.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",X),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",X)}},[]);var Q=u.useRef();Q.current=V;var K=u.useRef();K.current=q,u.useEffect(function(){if(j){var e,t=function(t){var n=U.current,r=n.dragging,a=n.pageY,o=n.startTop;if(v.a.cancel(e),r){var i=g(t,m)-a,c=o;!T&&m?c-=i:c+=i;var l=Q.current,u=K.current,s=u?c/u:0,f=Math.ceil(s*l);f=Math.max(f,0),f=Math.min(f,l),e=Object(v.a)(function(){p(f,m)})}},n=function(){k(!1),h()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),v.a.cancel(e)}}},[j]),u.useEffect(function(){z()},[l]),u.useImperativeHandle(t,function(){return{delayHidden:z}});var J="".concat(r,"-scrollbar"),Z={position:"absolute",visibility:G&&Y?null:"hidden"},$={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return m?(Z.height=8,Z.left=0,Z.right=0,Z.bottom=0,$.height="100%",$.width=y,T?$.left=W:$.right=W):(Z.width=8,Z.top=0,Z.bottom=0,T?Z.right=0:Z.left=0,$.width="100%",$.height=y,$.top=W),u.createElement("div",{ref:I,className:d()(J,(n={},Object(c.a)(n,"".concat(J,"-horizontal"),m),Object(c.a)(n,"".concat(J,"-vertical"),!m),Object(c.a)(n,"".concat(J,"-visible"),G),n)),style:Object(a.a)(Object(a.a)({},Z),w),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:z},u.createElement("div",{ref:F,className:d()("".concat(J,"-thumb"),Object(c.a)({},"".concat(J,"-thumb-moving"),j)),style:Object(a.a)(Object(a.a)({},$),E),onMouseDown:X}))});function b(e){var t=e.children,n=e.setRef,r=u.useCallback(function(e){n(e)},[]);return u.cloneElement(t,{ref:r})}var w=n(1216),E=n(185),x=n(186),O=function(){function e(){Object(E.a)(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return Object(x.a)(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var j=n(1167),k=n(1235),S=10;function _(e,t,n){var r=u.useState(e),a=Object(i.a)(r,2),o=a[0],c=a[1],l=u.useState(null),s=Object(i.a)(l,2),f=s[0],d=s[1];return u.useEffect(function(){var r=function(e,t,n){var r,a,o=e.length,i=t.length;if(0===o&&0===i)return null;o<i?(r=e,a=t):(r=t,a=e);var c={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):c}for(var u=null,s=1!==Math.abs(o-i),f=0;f<a.length;f+=1){var d=l(r[f]);if(d!==l(a[f])){u=f,s=s||d!==l(a[f+1]);break}}return null===u?null:{index:u,multiple:s}}(o||[],e||[],t);void 0!==(null===r||void 0===r?void 0:r.index)&&(null===n||void 0===n||n(r.index),d(e[r.index])),c(e)},[e]),[f]}var C="object"===("undefined"===typeof navigator?"undefined":Object(o.a)(navigator))&&/Firefox/i.test(navigator.userAgent),L=function(e,t){var n=Object(u.useRef)(!1),r=Object(u.useRef)(null);var a=Object(u.useRef)({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=e<0&&a.current.top||e>0&&a.current.bottom;return t&&o?(clearTimeout(r.current),n.current=!1):o&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)),!n.current&&o}};function A(e,t,n,r,a){var o=Object(u.useRef)(0),i=Object(u.useRef)(null),c=Object(u.useRef)(null),l=Object(u.useRef)(!1),s=L(t,n);var f=Object(u.useRef)(null),d=Object(u.useRef)(null);return[function(t){if(e){v.a.cancel(d.current),d.current=Object(v.a)(function(){f.current=null},2);var n=t.deltaX,u=t.deltaY,h=t.shiftKey,p=n,m=u;("sx"===f.current||!f.current&&h&&u&&!n)&&(p=u,m=0,f.current="sx");var g=Math.abs(p),y=Math.abs(m);null===f.current&&(f.current=r&&g>y?"x":"y"),"y"===f.current?function(e,t){v.a.cancel(i.current),o.current+=t,c.current=t,s(t)||(C||e.preventDefault(),i.current=Object(v.a)(function(){var e=l.current?10:1;a(o.current*e),o.current=0}))}(t,m):function(e,t){a(t,!0),C||e.preventDefault()}(t,p)}},function(t){e&&(l.current=t.detail===c.current)}]}var P=14/15;var M=20;function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*100;return isNaN(t)&&(t=0),t=Math.max(t,M),t=Math.min(t,e/2),Math.floor(t)}var T=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],I=[],F={overflowY:"auto",overflowAnchor:"none"};function D(e,t){var n=e.prefixCls,f=void 0===n?"rc-virtual-list":n,p=e.className,g=e.height,E=e.itemHeight,x=e.fullHeight,C=void 0===x||x,M=e.style,D=e.data,R=e.children,G=e.itemKey,B=e.virtual,H=e.direction,z=e.scrollWidth,V=e.component,q=void 0===V?"div":V,Y=e.onScroll,W=e.onVirtualScroll,U=e.onVisibleChange,X=e.innerProps,Q=e.extraRender,K=e.styles,J=Object(l.a)(e,T),Z=!(!1===B||!g||!E),$=Z&&D&&(E*D.length>g||!!z),ee="rtl"===H,te=d()(f,Object(c.a)({},"".concat(f,"-rtl"),ee),p),ne=D||I,re=Object(u.useRef)(),ae=Object(u.useRef)(),oe=Object(u.useState)(0),ie=Object(i.a)(oe,2),ce=ie[0],le=ie[1],ue=Object(u.useState)(0),se=Object(i.a)(ue,2),fe=se[0],de=se[1],he=Object(u.useState)(!1),pe=Object(i.a)(he,2),me=pe[0],ve=pe[1],ge=function(){ve(!0)},ye=function(){ve(!1)},be=u.useCallback(function(e){return"function"===typeof G?G(e):null===e||void 0===e?void 0:e[G]},[G]),we={getKey:be};function Ee(e){le(function(t){var n=function(e){var t=e;Number.isNaN(We.current)||(t=Math.min(t,We.current));return t=Math.max(t,0)}("function"===typeof e?e(t):e);return re.current.scrollTop=n,n})}var xe=Object(u.useRef)({start:0,end:ne.length}),Oe=Object(u.useRef)(),je=_(ne,be),ke=Object(i.a)(je,1)[0];Oe.current=ke;var Se=function(e,t,n){var r=u.useState(0),a=Object(i.a)(r,2),o=a[0],c=a[1],l=Object(u.useRef)(new Map),s=Object(u.useRef)(new O),f=Object(u.useRef)();function d(){v.a.cancel(f.current)}function h(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d();var t=function(){l.current.forEach(function(e,t){if(e&&e.offsetParent){var n=Object(w.a)(e),r=n.offsetHeight;s.current.get(t)!==r&&s.current.set(t,n.offsetHeight)}}),c(function(e){return e+1})};e?t():f.current=Object(v.a)(t)}return Object(u.useEffect)(function(){return d},[]),[function(r,a){var o=e(r),i=l.current.get(o);a?(l.current.set(o,a),h()):l.current.delete(o),!i!==!a&&(a?null===t||void 0===t||t(r):null===n||void 0===n||n(r))},h,s.current,o]}(be,null,null),_e=Object(i.a)(Se,4),Ce=_e[0],Le=_e[1],Ae=_e[2],Pe=_e[3],Me=u.useMemo(function(){if(!Z)return{scrollHeight:void 0,start:0,end:ne.length-1,offset:void 0};var e;if(!$)return{scrollHeight:(null===(e=ae.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:ne.length-1,offset:void 0};for(var t,n,r,a=0,o=ne.length,i=0;i<o;i+=1){var c=ne[i],l=be(c),u=Ae.get(l),s=a+(void 0===u?E:u);s>=ce&&void 0===t&&(t=i,n=a),s>ce+g&&void 0===r&&(r=i),a=s}return void 0===t&&(t=0,n=0,r=Math.ceil(g/E)),void 0===r&&(r=ne.length-1),{scrollHeight:a,start:t,end:r=Math.min(r+1,ne.length-1),offset:n}},[$,Z,ce,ne,Pe,g]),Ne=Me.scrollHeight,Te=Me.start,Ie=Me.end,Fe=Me.offset;xe.current.start=Te,xe.current.end=Ie;var De=u.useState({width:0,height:g}),Re=Object(i.a)(De,2),Ge=Re[0],Be=Re[1],He=Object(u.useRef)(),ze=Object(u.useRef)(),Ve=u.useMemo(function(){return N(Ge.width,z)},[Ge.width,z]),qe=u.useMemo(function(){return N(Ge.height,Ne)},[Ge.height,Ne]),Ye=Ne-g,We=Object(u.useRef)(Ye);We.current=Ye;var Ue=ce<=0,Xe=ce>=Ye,Qe=L(Ue,Xe),Ke=function(){return{x:ee?-fe:fe,y:ce}},Je=Object(u.useRef)(Ke()),Ze=Object(k.a)(function(){if(W){var e=Ke();Je.current.x===e.x&&Je.current.y===e.y||(W(e),Je.current=e)}});function $e(e,t){var n=e;t?(Object(s.flushSync)(function(){de(n)}),Ze()):Ee(n)}var et=function(e){var t=e,n=z-Ge.width;return t=Math.max(t,0),t=Math.min(t,n)},tt=Object(k.a)(function(e,t){t?(Object(s.flushSync)(function(){de(function(t){return et(t+(ee?-e:e))})}),Ze()):Ee(function(t){return t+e})}),nt=A(Z,Ue,Xe,!!z,tt),rt=Object(i.a)(nt,2),at=rt[0],ot=rt[1];!function(e,t,n){var r,a=Object(u.useRef)(!1),o=Object(u.useRef)(0),i=Object(u.useRef)(null),c=Object(u.useRef)(null),l=function(e){if(a.current){var t=Math.ceil(e.touches[0].pageY),r=o.current-t;o.current=t,n(r)&&e.preventDefault(),clearInterval(c.current),c.current=setInterval(function(){(!n(r*=P,!0)||Math.abs(r)<=.1)&&clearInterval(c.current)},16)}},s=function(){a.current=!1,r()},f=function(e){r(),1!==e.touches.length||a.current||(a.current=!0,o.current=Math.ceil(e.touches[0].pageY),i.current=e.target,i.current.addEventListener("touchmove",l),i.current.addEventListener("touchend",s))};r=function(){i.current&&(i.current.removeEventListener("touchmove",l),i.current.removeEventListener("touchend",s))},Object(j.a)(function(){return e&&t.current.addEventListener("touchstart",f),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",f),r(),clearInterval(c.current)}},[e])}(Z,re,function(e,t){return!Qe(e,t)&&(at({preventDefault:function(){},deltaY:e}),!0)}),Object(j.a)(function(){function e(e){Z&&e.preventDefault()}var t=re.current;return t.addEventListener("wheel",at),t.addEventListener("DOMMouseScroll",ot),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",at),t.removeEventListener("DOMMouseScroll",ot),t.removeEventListener("MozMousePixelScroll",e)}},[Z]),Object(j.a)(function(){z&&de(function(e){return et(e)})},[Ge.width,z]);var it=function(){var e,t;null===(e=He.current)||void 0===e||e.delayHidden(),null===(t=ze.current)||void 0===t||t.delayHidden()},ct=function(e,t,n,r,c,l,s,f){var d=u.useRef(),h=u.useState(null),p=Object(i.a)(h,2),m=p[0],g=p[1];return Object(j.a)(function(){if(m&&m.times<S){if(!e.current)return void g(function(e){return Object(a.a)({},e)});l();var o=m.targetAlign,i=m.originAlign,u=m.index,f=m.offset,d=e.current.clientHeight,h=!1,p=o,v=null;if(d){for(var y=o||i,b=0,w=0,E=0,x=Math.min(t.length-1,u),O=0;O<=x;O+=1){var j=c(t[O]);w=b;var k=n.get(j);b=E=w+(void 0===k?r:k)}for(var _="top"===y?f:d-f,C=x;C>=0;C-=1){var L=c(t[C]),A=n.get(L);if(void 0===A){h=!0;break}if((_-=A)<=0)break}switch(y){case"top":v=w-f;break;case"bottom":v=E-d+f;break;default:var P=e.current.scrollTop;w<P?p="top":E>P+d&&(p="bottom")}null!==v&&s(v),v!==m.lastTop&&(h=!0)}h&&g(Object(a.a)(Object(a.a)({},m),{},{times:m.times+1,targetAlign:p,lastTop:v}))}},[m,e.current]),function(e){if(null!==e&&void 0!==e){if(v.a.cancel(d.current),"number"===typeof e)s(e);else if(e&&"object"===Object(o.a)(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex(function(t){return c(t)===e.key});var a=e.offset;g({times:0,index:n,offset:void 0===a?0:a,originAlign:r})}}else f()}}(re,ne,Ae,E,be,function(){return Le(!0)},Ee,it);u.useImperativeHandle(t,function(){return{getScrollInfo:Ke,scrollTo:function(e){var t;(t=e)&&"object"===Object(o.a)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&de(et(e.left)),ct(e.top)):ct(e)}}}),Object(j.a)(function(){if(U){var e=ne.slice(Te,Ie+1);U(e,ne)}},[Te,Ie,ne]);var lt=function(e,t,n,r){var a=u.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=Object(i.a)(a,2),c=o[0],l=o[1];return function(a){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,i=c.get(a),u=c.get(o);if(void 0===i||void 0===u)for(var s=e.length,f=l.length;f<s;f+=1){var d,h=e[f],p=t(h);c.set(p,f);var m=null!==(d=n.get(p))&&void 0!==d?d:r;if(l[f]=(l[f-1]||0)+m,p===a&&(i=f),p===o&&(u=f),void 0!==i&&void 0!==u)break}return{top:l[i-1]||0,bottom:l[u]}}}(ne,be,Ae,E),ut=null===Q||void 0===Q?void 0:Q({start:Te,end:Ie,virtual:$,offsetX:fe,offsetY:Fe,rtl:ee,getSize:lt}),st=function(e,t,n,r,a,o,i){var c=i.getKey;return e.slice(t,n+1).map(function(e,n){var i=o(e,t+n,{style:{width:r}}),l=c(e);return u.createElement(b,{key:l,setRef:function(t){return a(e,t)}},i)})}(ne,Te,Ie,z,Ce,R,we),ft=null;g&&(ft=Object(a.a)(Object(c.a)({},C?"height":"maxHeight",g),F),Z&&(ft.overflowY="hidden",z&&(ft.overflowX="hidden"),me&&(ft.pointerEvents="none")));var dt={};return ee&&(dt.dir="rtl"),u.createElement("div",Object(r.a)({style:Object(a.a)(Object(a.a)({},M),{},{position:"relative"}),className:te},dt,J),u.createElement(h.a,{onResize:function(e){Be({width:e.width||e.offsetWidth,height:e.height||e.offsetHeight})}},u.createElement(q,{className:"".concat(f,"-holder"),style:ft,ref:re,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==ce&&Ee(t),null===Y||void 0===Y||Y(e),Ze()},onMouseEnter:it},u.createElement(m,{prefixCls:f,height:Ne,offsetX:fe,offsetY:Fe,scrollWidth:z,onInnerResize:Le,ref:ae,innerProps:X,rtl:ee,extra:ut},st))),$&&Ne>g&&u.createElement(y,{ref:He,prefixCls:f,scrollOffset:ce,scrollRange:Ne,rtl:ee,onScroll:$e,onStartMove:ge,onStopMove:ye,spinSize:qe,containerSize:Ge.height,style:null===K||void 0===K?void 0:K.verticalScrollBar,thumbStyle:null===K||void 0===K?void 0:K.verticalScrollBarThumb}),$&&z&&u.createElement(y,{ref:ze,prefixCls:f,scrollOffset:fe,scrollRange:z,rtl:ee,onScroll:$e,onStartMove:ge,onStopMove:ye,spinSize:Ve,containerSize:Ge.width,horizontal:!0,style:null===K||void 0===K?void 0:K.horizontalScrollBar,thumbStyle:null===K||void 0===K?void 0:K.horizontalScrollBarThumb}))}var R=u.forwardRef(D);R.displayName="List";var G=R;t.a=G},1519:function(e,t,n){"use strict";var r=n(11),a=n.n(r),o=n(83),i=n.n(o),c=n(32),l=n.n(c),u=n(37),s=n.n(u),f=n(39),d=n.n(f),h=n(38),p=n.n(h),m=n(7),v=n.n(m),g=n(40),y=n.n(g),b=n(3),w=n.n(b),E=n(29),x=n.n(E),O=n(1231),j=n.n(O),k=n(22),S=n.n(k),_=n(33),C=n.n(_),L=n(335),A=n.n(L),P=n(190),M=n.n(P),N=n(337),T=n.n(N),I=(n(331),n(113)),F=n.n(I),D=n(1561),R=n(12),G=n.n(R),B=n(1),H=n.n(B),z=n(1230),V=n.n(z),q=n(1219),Y=n.n(q),W=n(1265),U=n.n(W),X=n(1279),Q=n(1280),K=n.n(Q),J=K()(),Z=K()(),$=(B.Component,function(e,t){if("function"===typeof e)return function(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}}(e,t);null!=e&&(e.current=t)}),ee={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},te={},ne=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,w()(v()(v()(t)),"state",{data:void 0,placement:void 0}),w()(v()(v()(t)),"popperInstance",void 0),w()(v()(v()(t)),"popperNode",null),w()(v()(v()(t)),"arrowNode",null),w()(v()(v()(t)),"setPopperNode",function(e){e&&t.popperNode!==e&&($(t.props.innerRef,e),t.popperNode=e,t.updatePopperInstance())}),w()(v()(v()(t)),"setArrowNode",function(e){t.arrowNode=e}),w()(v()(v()(t)),"updateStateModifier",{enabled:!0,order:900,fn:function(e){var n=e.placement;return t.setState({data:e,placement:n}),e}}),w()(v()(v()(t)),"getOptions",function(){return{placement:t.props.placement,eventsEnabled:t.props.eventsEnabled,positionFixed:t.props.positionFixed,modifiers:a()({},t.props.modifiers,{arrow:a()({},t.props.modifiers&&t.props.modifiers.arrow,{enabled:!!t.arrowNode,element:t.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:t.updateStateModifier})}}),w()(v()(v()(t)),"getPopperStyle",function(){return t.popperNode&&t.state.data?a()({position:t.state.data.offsets.popper.position},t.state.data.styles):ee}),w()(v()(v()(t)),"getPopperPlacement",function(){return t.state.data?t.state.placement:void 0}),w()(v()(v()(t)),"getArrowStyle",function(){return t.arrowNode&&t.state.data?t.state.data.arrowStyles:te}),w()(v()(v()(t)),"getOutOfBoundariesState",function(){return t.state.data?t.state.data.hide:void 0}),w()(v()(v()(t)),"destroyPopperInstance",function(){t.popperInstance&&(t.popperInstance.destroy(),t.popperInstance=null)}),w()(v()(v()(t)),"updatePopperInstance",function(){t.destroyPopperInstance();var e=v()(v()(t)).popperNode,n=t.props.referenceElement;n&&e&&(t.popperInstance=new X.a(n,e,t.getOptions()))}),w()(v()(v()(t)),"scheduleUpdate",function(){t.popperInstance&&t.popperInstance.scheduleUpdate()}),t}Y()(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){this.props.placement===e.placement&&this.props.referenceElement===e.referenceElement&&this.props.positionFixed===e.positionFixed&&U()(this.props.modifiers,e.modifiers,{strict:!0})?this.props.eventsEnabled!==e.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()):this.updatePopperInstance(),t.placement!==this.state.placement&&this.scheduleUpdate()},n.componentWillUnmount=function(){$(this.props.innerRef,null),this.destroyPopperInstance()},n.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}});var e},t}(B.Component);w()(ne,"defaultProps",{placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1});X.a.placements;function re(e){var t=e.referenceElement,n=V()(e,["referenceElement"]);return B.createElement(J.Consumer,null,function(e){return B.createElement(ne,a()({referenceElement:void 0!==t?t:e},n))})}var ae=n(338),oe=n.n(ae),ie=n(519),ce=n(77),le=n(515),ue=n(15),se=n(514),fe=n(1562),de=n(1262),he=n.n(de),pe=n(76),me={"top center":"top","top left":"top-start","top right":"top-end","bottom center":"bottom","bottom left":"bottom-start","bottom right":"bottom-end","right center":"right","left center":"left"},ve=(n.n(pe)()(me),he()(me)),ge=n(533),ye=n.n(ge),be=n(1535),we=n(1536),Ee=function(){function e(t){l()(this,e),this.ref=t}return s()(e,[{key:"getBoundingClientRect",value:function(){return S()(this.ref.current,"getBoundingClientRect",{})}},{key:"clientWidth",get:function(){return this.getBoundingClientRect().width}},{key:"clientHeight",get:function(){return this.getBoundingClientRect().height}},{key:"parentNode",get:function(){return this.ref.current?this.ref.current.parentNode:void 0}}]),e}(),xe=ye()(function(e){return new Ee(Object(be.a)(e)?e:Object(we.a)(e))}),Oe=n(517);function je(e){var t=e.children,n=e.className,r=e.content,o=G()("content",n),i=Object(se.a)(je,e),c=Object(le.a)(je,e);return H.a.createElement(c,a()({},i,{className:o}),ue.a.isNil(t)?r:t)}function ke(e){var t=e.children,n=e.className,r=e.content,o=G()("header",n),i=Object(se.a)(ke,e),c=Object(le.a)(ke,e);return H.a.createElement(c,a()({},i,{className:o}),ue.a.isNil(t)?r:t)}je.handledProps=["as","children","className","content"],je.propTypes={},je.create=Object(Oe.f)(je,function(e){return{children:e}}),ke.handledProps=["as","children","className","content"],ke.propTypes={},ke.create=Object(Oe.f)(ke,function(e){return{children:e}}),n.d(t,"a",function(){return Se});var Se=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,o=new Array(r),c=0;c<r;c++)o[c]=arguments[c];return n=d()(this,(e=p()(t)).call.apply(e,[this].concat(o))),w()(v()(n),"state",{}),w()(v()(n),"open",!1),w()(v()(n),"triggerRef",Object(B.createRef)()),w()(v()(n),"getPortalProps",function(){var e={},t=n.props,r=t.on,a=t.hoverable,o=C()(r)?r:[r];return a&&(e.closeOnPortalMouseLeave=!0,e.mouseLeaveDelay=300),M()(o,"hover")&&(e.openOnTriggerClick=!1,e.closeOnTriggerClick=!1,e.openOnTriggerMouseEnter=!0,e.closeOnTriggerMouseLeave=!0,e.mouseLeaveDelay=70,e.mouseEnterDelay=50),M()(o,"click")&&(e.openOnTriggerClick=!0,e.closeOnTriggerClick=!0,e.closeOnDocumentClick=!0),M()(o,"focus")&&(e.openOnTriggerFocus=!0,e.closeOnTriggerBlur=!0),e}),w()(v()(n),"hideOnScroll",function(e){n.setState({closed:!0}),ie.a.unsub("scroll",n.hideOnScroll,{target:window}),n.timeoutId=setTimeout(function(){n.setState({closed:!1})},50),n.handleClose(e)}),w()(v()(n),"handleClose",function(e){S()(n.props,"onClose",e,n.props)}),w()(v()(n),"handleOpen",function(e){S()(n.props,"onOpen",e,n.props)}),w()(v()(n),"handlePortalMount",function(e){S()(n.props,"onMount",e,n.props)}),w()(v()(n),"handlePortalUnmount",function(e){n.positionUpdate=null,S()(n.props,"onUnmount",e,n.props)}),w()(v()(n),"renderContent",function(e){var r=e.placement,o=e.ref,c=e.scheduleUpdate,l=e.style,u=n.props,s=u.basic,f=u.children,d=u.className,h=u.content,p=u.hideOnScroll,m=u.flowing,v=u.header,g=u.inverted,y=u.size,b=u.style,w=u.wide,E=n.state.contentRestProps;n.positionUpdate=c;var x=G()("ui",ve[r],y,Object(ce.b)(w,"wide"),Object(ce.a)(s,"basic"),Object(ce.a)(m,"flowing"),Object(ce.a)(g,"inverted"),"popup transition visible",d),O=Object(le.a)(t,n.props),j=i()({left:"auto",right:"auto"},l,b);return H.a.createElement(D.a,{innerRef:o},H.a.createElement(O,a()({},E,{className:x,style:j}),ue.a.isNil(f)?H.a.createElement(H.a.Fragment,null,ke.create(v,{autoGenerateKey:!1}),je.create(h,{autoGenerateKey:!1})):f,p&&H.a.createElement(F.a,{on:n.hideOnScroll,name:"scroll",target:"window"})))}),n}return y()(t,e),s()(t,[{key:"componentDidUpdate",value:function(e){oe()(this.props.popperDependencies,e.popperDependencies)||this.handleUpdate()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeoutId)}},{key:"handleUpdate",value:function(){this.positionUpdate&&this.positionUpdate()}},{key:"render",value:function(){var e=this.props,t=e.context,n=e.disabled,r=e.eventsEnabled,o=e.offset,c=e.pinned,l=e.popperModifiers,u=e.position,s=e.positionFixed,f=e.trigger,d=this.state,h=d.closed,p=d.portalRestProps;if(h||n)return f;var m=j()({arrow:{enabled:!1},flip:{enabled:!c},keepTogether:{enabled:!!o},offset:{offset:o}},l),v=xe(x()(t)?this.triggerRef:t),g=i()({},this.getPortalProps(),p);return H.a.createElement(fe.a,a()({},g,{onClose:this.handleClose,onMount:this.handlePortalMount,onOpen:this.handleOpen,onUnmount:this.handlePortalUnmount,trigger:f,triggerRef:this.triggerRef}),H.a.createElement(re,{eventsEnabled:r,modifiers:m,placement:me[u],positionFixed:s,referenceElement:v},this.renderContent))}}],[{key:"getDerivedStateFromProps",value:function(e,n){if(n.closed||n.disabled)return{};var r=Object(se.a)(t,e);return{contentRestProps:T()(r,function(e,t,n){return M()(fe.a.handledProps,n)||(e[n]=t),e},{}),portalRestProps:A()(r,fe.a.handledProps)}}}]),t}(B.Component);w()(Se,"defaultProps",{disabled:!1,eventsEnabled:!0,offset:0,on:["click","hover"],pinned:!1,position:"top left"}),w()(Se,"Content",je),w()(Se,"Header",ke),w()(Se,"handledProps",["as","basic","children","className","content","context","disabled","eventsEnabled","flowing","header","hideOnScroll","hoverable","inverted","offset","on","onClose","onMount","onOpen","onUnmount","pinned","popperDependencies","popperModifiers","position","positionFixed","size","style","trigger","wide"]),Se.propTypes={}},1520:function(e,t,n){"use strict";var r=n(48),a=n(1151),o=n(1150),i=n(1159),c=n(1),l=n.n(c),u=n(12),s=n.n(u),f=n(1207),d=n(1167),h=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],p=void 0;function m(e,t){var n=e.prefixCls,o=e.invalidate,l=e.item,u=e.renderItem,d=e.responsive,m=e.responsiveDisabled,v=e.registerSize,g=e.itemKey,y=e.className,b=e.style,w=e.children,E=e.display,x=e.order,O=e.component,j=void 0===O?"div":O,k=Object(i.a)(e,h),S=d&&!E;function _(e){v(g,e)}c.useEffect(function(){return function(){_(null)}},[]);var C,L=u&&l!==p?u(l):w;o||(C={opacity:S?0:1,height:S?0:p,overflowY:S?"hidden":p,order:d?x:p,pointerEvents:S?"none":p,position:S?"absolute":p});var A={};S&&(A["aria-hidden"]=!0);var P=c.createElement(j,Object(r.a)({className:s()(!o&&n,y),style:Object(a.a)(Object(a.a)({},C),b)},A,k,{ref:t}),L);return d&&(P=c.createElement(f.a,{onResize:function(e){_(e.offsetWidth)},disabled:m},P)),P}var v=c.forwardRef(m);v.displayName="Item";var g=v,y=n(1205),b=n(114),w=n(1181);function E(){var e=c.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"===typeof MessageChannel)Object(w.a)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}(function(){Object(b.unstable_batchedUpdates)(function(){e.current.forEach(function(e){e()}),e.current=null})})),e.current.push(t)}}function x(e,t){var n=c.useState(t),r=Object(o.a)(n,2),a=r[0],i=r[1];return[a,Object(y.a)(function(t){e(function(){i(t)})})]}var O=l.a.createContext(null),j=["component"],k=["className"],S=["className"],_=function(e,t){var n=c.useContext(O);if(!n){var a=e.component,o=void 0===a?"div":a,l=Object(i.a)(e,j);return c.createElement(o,Object(r.a)({},l,{ref:t}))}var u=n.className,f=Object(i.a)(n,k),d=e.className,h=Object(i.a)(e,S);return c.createElement(O.Provider,{value:null},c.createElement(g,Object(r.a)({ref:t,className:s()(u,d)},f,h)))},C=c.forwardRef(_);C.displayName="RawItem";var L=C,A=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],P="responsive",M="invalidate";function N(e){return"+ ".concat(e.length," ...")}function T(e,t){var n=e.prefixCls,l=void 0===n?"rc-overflow":n,u=e.data,h=void 0===u?[]:u,p=e.renderItem,m=e.renderRawItem,v=e.itemKey,y=e.itemWidth,b=void 0===y?10:y,w=e.ssr,j=e.style,k=e.className,S=e.maxCount,_=e.renderRest,C=e.renderRawRest,L=e.suffix,T=e.component,I=void 0===T?"div":T,F=e.itemComponent,D=e.onVisibleChange,R=Object(i.a)(e,A),G="full"===w,B=E(),H=x(B,null),z=Object(o.a)(H,2),V=z[0],q=z[1],Y=V||0,W=x(B,new Map),U=Object(o.a)(W,2),X=U[0],Q=U[1],K=x(B,0),J=Object(o.a)(K,2),Z=J[0],$=J[1],ee=x(B,0),te=Object(o.a)(ee,2),ne=te[0],re=te[1],ae=x(B,0),oe=Object(o.a)(ae,2),ie=oe[0],ce=oe[1],le=Object(c.useState)(null),ue=Object(o.a)(le,2),se=ue[0],fe=ue[1],de=Object(c.useState)(null),he=Object(o.a)(de,2),pe=he[0],me=he[1],ve=c.useMemo(function(){return null===pe&&G?Number.MAX_SAFE_INTEGER:pe||0},[pe,V]),ge=Object(c.useState)(!1),ye=Object(o.a)(ge,2),be=ye[0],we=ye[1],Ee="".concat(l,"-item"),xe=Math.max(Z,ne),Oe=S===P,je=h.length&&Oe,ke=S===M,Se=je||"number"===typeof S&&h.length>S,_e=Object(c.useMemo)(function(){var e=h;return je?e=null===V&&G?h:h.slice(0,Math.min(h.length,Y/b)):"number"===typeof S&&(e=h.slice(0,S)),e},[h,b,V,S,je]),Ce=Object(c.useMemo)(function(){return je?h.slice(ve+1):h.slice(_e.length)},[h,_e,je,ve]),Le=Object(c.useCallback)(function(e,t){var n;return"function"===typeof v?v(e):null!==(n=v&&(null===e||void 0===e?void 0:e[v]))&&void 0!==n?n:t},[v]),Ae=Object(c.useCallback)(p||function(e){return e},[p]);function Pe(e,t,n){(pe!==e||void 0!==t&&t!==se)&&(me(e),n||(we(e<h.length-1),null===D||void 0===D||D(e)),void 0!==t&&fe(t))}function Me(e,t){Q(function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r})}function Ne(e){return X.get(Le(_e[e],e))}Object(d.a)(function(){if(Y&&"number"===typeof xe&&_e){var e=ie,t=_e.length,n=t-1;if(!t)return void Pe(0,null);for(var r=0;r<t;r+=1){var a=Ne(r);if(G&&(a=a||0),void 0===a){Pe(r-1,void 0,!0);break}if(e+=a,0===n&&e<=Y||r===n-1&&e+Ne(n)<=Y){Pe(n,null);break}if(e+xe>Y){Pe(r-1,e-a-ie+ne);break}}L&&Ne(0)+ie>Y&&fe(null)}},[Y,X,ne,ie,Le,_e]);var Te=be&&!!Ce.length,Ie={};null!==se&&je&&(Ie={position:"absolute",left:se,top:0});var Fe,De={prefixCls:Ee,responsive:je,component:F,invalidate:ke},Re=m?function(e,t){var n=Le(e,t);return c.createElement(O.Provider,{key:n,value:Object(a.a)(Object(a.a)({},De),{},{order:t,item:e,itemKey:n,registerSize:Me,display:t<=ve})},m(e,t))}:function(e,t){var n=Le(e,t);return c.createElement(g,Object(r.a)({},De,{order:t,key:n,item:e,renderItem:Ae,itemKey:n,registerSize:Me,display:t<=ve}))},Ge={order:Te?ve:Number.MAX_SAFE_INTEGER,className:"".concat(Ee,"-rest"),registerSize:function(e,t){re(t),$(ne)},display:Te};if(C)C&&(Fe=c.createElement(O.Provider,{value:Object(a.a)(Object(a.a)({},De),Ge)},C(Ce)));else{var Be=_||N;Fe=c.createElement(g,Object(r.a)({},De,Ge),"function"===typeof Be?Be(Ce):Be)}var He=c.createElement(I,Object(r.a)({className:s()(!ke&&l,k),style:j,ref:t},R),_e.map(Re),Se?Fe:null,L&&c.createElement(g,Object(r.a)({},De,{responsive:Oe,responsiveDisabled:!je,order:ve,className:"".concat(Ee,"-suffix"),registerSize:function(e,t){ce(t)},display:!0,style:Ie}),L));return Oe&&(He=c.createElement(f.a,{onResize:function(e,t){q(t.clientWidth)},disabled:!je},He)),He}var I=c.forwardRef(T);I.displayName="Overflow",I.Item=L,I.RESPONSIVE=P,I.INVALIDATE=M;var F=I;t.a=F},1521:function(e,t,n){"use strict";var r=n(1150),a=n(1),o=n(114),i=n(1170),c=(n(1160),n(1168)),l=a.createContext(null),u=n(1156),s=n(1167),f=[];var d=n(1198),h=n(1386);var p="rc-util-locker-".concat(Date.now()),m=0;function v(e){var t=!!e,n=a.useState(function(){return m+=1,"".concat(p,"_").concat(m)}),o=Object(r.a)(n,1)[0];Object(s.a)(function(){if(t){var e=Object(h.a)(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Object(d.b)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),o)}else Object(d.a)(o);return function(){Object(d.a)(o)}},[t,o])}var g=!1;var y=function(e){return!1!==e&&(Object(i.a)()&&e?"string"===typeof e?document.querySelector(e):"function"===typeof e?e():e:null)};var b=a.forwardRef(function(e,t){var n=e.open,d=e.autoLock,h=e.getContainer,p=(e.debug,e.autoDestroy),m=void 0===p||p,b=e.children,w=a.useState(n),E=Object(r.a)(w,2),x=E[0],O=E[1],j=x||n;a.useEffect(function(){(m||n)&&O(n)},[n,m]);var k=a.useState(function(){return y(h)}),S=Object(r.a)(k,2),_=S[0],C=S[1];a.useEffect(function(){var e=y(h);C(null!==e&&void 0!==e?e:null)});var L=function(e,t){var n=a.useState(function(){return Object(i.a)()?document.createElement("div"):null}),o=Object(r.a)(n,1)[0],c=a.useRef(!1),d=a.useContext(l),h=a.useState(f),p=Object(r.a)(h,2),m=p[0],v=p[1],g=d||(c.current?void 0:function(e){v(function(t){return[e].concat(Object(u.a)(t))})});function y(){o.parentElement||document.body.appendChild(o),c.current=!0}function b(){var e;null===(e=o.parentElement)||void 0===e||e.removeChild(o),c.current=!1}return Object(s.a)(function(){return e?d?d(y):y():b(),b},[e]),Object(s.a)(function(){m.length&&(m.forEach(function(e){return e()}),v(f))},[m]),[o,g]}(j&&!_),A=Object(r.a)(L,2),P=A[0],M=A[1],N=null!==_&&void 0!==_?_:P;v(d&&n&&Object(i.a)()&&(N===P||N===document.body));var T=null;b&&Object(c.c)(b)&&t&&(T=b.ref);var I=Object(c.d)(T,t);if(!j||!Object(i.a)()||void 0===_)return null;var F,D=!1===N||("boolean"===typeof F&&(g=F),g),R=b;return t&&(R=a.cloneElement(b,{ref:I})),a.createElement(l.Provider,{value:M},D?R:Object(o.createPortal)(R,N))});t.a=b},1523:function(e,t,n){"use strict";var r=n(11),a=n.n(r),o=(n(331),n(12)),i=n.n(o),c=n(1),l=n.n(c),u=n(77),s=n(514),f=n(515),d=n(15),h=n(520),p=n(1525),m=n(517);function v(e){var t=e.children,n=e.className,r=e.content,o=i()("sub header",n),c=Object(s.a)(v,e),u=Object(f.a)(v,e);return l.a.createElement(u,a()({},c,{className:o}),d.a.isNil(t)?r:t)}v.handledProps=["as","children","className","content"],v.propTypes={},v.create=Object(m.f)(v,function(e){return{content:e}});var g=v;function y(e){var t=e.children,n=e.className,r=e.content,o=i()("content",n),c=Object(s.a)(y,e),u=Object(f.a)(y,e);return l.a.createElement(u,a()({},c,{className:o}),d.a.isNil(t)?r:t)}y.handledProps=["as","children","className","content"],y.propTypes={};var b=y;function w(e){var t=e.attached,n=e.block,r=e.children,o=e.className,c=e.color,m=e.content,v=e.disabled,y=e.dividing,E=e.floated,x=e.icon,O=e.image,j=e.inverted,k=e.size,S=e.sub,_=e.subheader,C=e.textAlign,L=i()("ui",c,k,Object(u.a)(n,"block"),Object(u.a)(v,"disabled"),Object(u.a)(y,"dividing"),Object(u.e)(E,"floated"),Object(u.a)(!0===x,"icon"),Object(u.a)(!0===O,"image"),Object(u.a)(j,"inverted"),Object(u.a)(S,"sub"),Object(u.b)(t,"attached"),Object(u.d)(C),"header",o),A=Object(s.a)(w,e),P=Object(f.a)(w,e);if(!d.a.isNil(r))return l.a.createElement(P,a()({},A,{className:L}),r);var M=h.a.create(x,{autoGenerateKey:!1}),N=p.a.create(O,{autoGenerateKey:!1}),T=g.create(_,{autoGenerateKey:!1});return M||N?l.a.createElement(P,a()({},A,{className:L}),M||N,(m||T)&&l.a.createElement(b,null,m,T)):l.a.createElement(P,a()({},A,{className:L}),m,T)}w.handledProps=["as","attached","block","children","className","color","content","disabled","dividing","floated","icon","image","inverted","size","sub","subheader","textAlign"],w.propTypes={},w.Content=b,w.Subheader=g;t.a=w},1526:function(e,t,n){"use strict";var r=n(1243),a=n.n(r),o=n(83),i=n.n(o),c=n(32),l=n.n(c),u=n(37),s=n.n(u),f=n(39),d=n.n(f),h=n(38),p=n.n(h),m=n(7),v=n.n(m),g=n(40),y=n.n(g),b=n(3),w=n.n(b),E=n(134),x=n.n(E),O=n(471),j=n.n(O),k=n(22),S=n.n(k),_=n(1),C=n.n(_),L=n(514),A=n(515),P=n(476),M=n(1228),N=n(1179),T=n(1286),I=n(11),F=n.n(I),D=n(12),R=n.n(D),G=n(77),B=n(15),H=n(517),z=n(1309);function V(e){var t=e.active,n=e.children,r=e.className,a=e.content,o=e.loading,i=R()(Object(G.a)(t,"active"),Object(G.a)(o,"loading"),"tab",r),c=Object(L.a)(V,e),l=Object(A.a)(V,e),u={};return l===z.a&&(u.attached="bottom"),C.a.createElement(l,F()({},u,c,{className:i}),B.a.isNil(n)?a:n)}V.handledProps=["active","as","children","className","content","loading"],V.defaultProps={as:z.a,active:!0},V.propTypes={},V.create=Object(H.f)(V,function(e){return{content:e}});var q=V,Y=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=d()(this,(e=p()(t)).call.apply(e,[this].concat(a))),w()(v()(n),"handleItemClick",function(e,t){var r=t.index;S()(n.props,"onTabChange",e,i()({},n.props,{activeIndex:r})),n.trySetState({activeIndex:r})}),n}return y()(t,e),s()(t,[{key:"getInitialAutoControlledState",value:function(){return{activeIndex:0}}},{key:"renderItems",value:function(){var e=this.props,t=e.panes,n=e.renderActiveOnly,r=this.state.activeIndex;return n?S()(j()(t,"[".concat(r,"]")),"render",this.props):x()(t,function(e,t){var n=e.pane;return q.create(n,{overrideProps:{active:t===r}})})}},{key:"renderMenu",value:function(){var e=this.props,t=e.menu,n=e.panes,r=e.menuPosition,a=this.state.activeIndex;return!0===t.tabular&&"right"===r&&(t.tabular="right"),T.a.create(t,{autoGenerateKey:!1,overrideProps:{items:x()(n,"menuItem"),onItemClick:this.handleItemClick,activeIndex:a}})}},{key:"renderVertical",value:function(e){var t=this.props,n=t.grid,r=t.menuPosition,o=n.paneWidth,i=n.tabWidth,c=a()(n,["paneWidth","tabWidth"]),l=r||"right"===e.props.tabular&&"right"||"left";return C.a.createElement(M.a,c,"left"===l&&N.a.create({width:i,children:e},{autoGenerateKey:!1}),N.a.create({width:o,children:this.renderItems(),stretched:!0},{autoGenerateKey:!1}),"right"===l&&N.a.create({width:i,children:e},{autoGenerateKey:!1}))}},{key:"render",value:function(){var e=this.renderMenu(),n=Object(L.a)(t,this.props),r=Object(A.a)(t,this.props);return e.props.vertical?C.a.createElement(r,n,this.renderVertical(e)):C.a.createElement(r,n,"bottom"!==e.props.attached&&e,this.renderItems(),"bottom"===e.props.attached&&e)}}]),t}(P.a);w()(Y,"autoControlledProps",["activeIndex"]),w()(Y,"defaultProps",{grid:{paneWidth:12,tabWidth:4},menu:{attached:!0,tabular:!0},renderActiveOnly:!0}),w()(Y,"Pane",q),w()(Y,"handledProps",["activeIndex","as","defaultActiveIndex","grid","menu","menuPosition","onTabChange","panes","renderActiveOnly"]),Y.propTypes={};t.a=Y},1543:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(1306),a=n(1307),o=n(1389),i=n(1261),c=function(){function e(t,n){var a;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=Object(r.d)(t)),this.originalInput=t;var i=Object(o.a)(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(a=n.format)&&void 0!==a?a:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Object(i.b)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=Object(r.h)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Object(r.h)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),a=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Object(r.g)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Object(r.g)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),a=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Object(r.f)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),Object(r.j)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Object(i.a)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Object(i.a)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Object(r.f)(this.r,this.g,this.b,!1),t=0,n=Object.entries(a.a);t<n.length;t++){var o=n[t],i=o[0];if(e===o[1])return i}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!==e&&void 0!==e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Object(i.c)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Object(i.c)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Object(i.c)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Object(i.c)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),o=n/100;return new e({r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),a=360/n,o=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,o=n.v,i=[],c=1/t;t--;)i.push(new e({h:r,s:a,v:o})),o=(o+c)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a:a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],o=360/t,i=1;i<t;i++)a.push(new e({h:(r+i*o)%360,s:n.s,l:n.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}()},1551:function(e,t,n){"use strict";n.r(t);var r=n(1147),a=n(59),o=n(1),i=n.n(o),c=n(72),l=n(195),u=n(1286),s=n(1180),f=n(1525),d=n(1523),h=n(1228),p=n(1556),m=n(159),v=n(1172),g=n.n(v),y=n(1173),b=n.n(y),w=n(1174),E=n.n(w),x=n(1187),O=n.n(x),j=n(1175),k=n.n(j),S=n(1176),_=n.n(S),C=n(1188),L=n.n(C),A=n(1189),P=n.n(A),M=n(1191),N=n.n(M),T=n(1190),I=n.n(T),F=n(1192),D=n.n(F),R=n(1177),G=n.n(R),B=n(1178),H=n.n(B),z=n(1193),V=n.n(z),q=n(1194),Y=n.n(q),W=n(1195),U=n.n(W),X=n(1148),Q=n.n(X),K=n(71);function J(){J=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Z=n(1204).a.load();Object(r.a)(J().mark(function e(){var t,n;return J().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z;case 2:return t=e.sent,e.next=5,t.get();case 5:n=e.sent,n.visitorId;case 7:case"end":return e.stop()}},e)}))();var $=Q.a.create({baseURL:K.a,headers:{"X-Auth-Origin":"TDVS"}});$.defaults.params={},$.interceptors.request.use(function(e){var t=localStorage.getItem("token"),n=localStorage.getItem("univcode");return n&&(e.params.univcode=n),t&&(e.headers.Authorization=t),e},function(e){return Promise.reject(e)});var ee=$,te=n(1524),ne=n(1559),re=n(1381),ae=n(1164),oe=n(1152),ie=n(1526),ce=n(1285),le=n(1553),ue=n(1537),se=n(1149),fe=n(11),de=n.n(fe),he=n(12),pe=n.n(he),me=n(77),ve=n(514),ge=n(506),ye=n.n(ge),be=n(32),we=n.n(be),Ee=n(37),xe=n.n(Ee),Oe=n(39),je=n.n(Oe),ke=n(38),Se=n.n(ke),_e=n(7),Ce=n.n(_e),Le=n(40),Ae=n.n(Le),Pe=n(3),Me=n.n(Pe),Ne=n(134),Te=n.n(Ne),Ie=n(22),Fe=n.n(Ie),De=n(331),Re=n.n(De),Ge=n(190),Be=n.n(Ge),He=(n(33),n(515)),ze=n(15),Ve=n(476),qe=n(517),Ye=n(29),We=n.n(Ye),Ue=n(520),Xe=function(e){function t(){var e,n;we()(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=je()(this,(e=Se()(t)).call.apply(e,[this].concat(a))),Me()(Ce()(n),"handleClick",function(e){return Fe()(n.props,"onClick",e,n.props)}),n}return Ae()(t,e),xe()(t,[{key:"render",value:function(){var e=this.props,n=e.active,r=e.children,a=e.className,o=e.content,c=e.icon,l=pe()(Object(me.a)(n,"active"),"title",a),u=Object(ve.a)(t,this.props),s=Object(He.a)(t,this.props),f=We()(c)?"dropdown":c;return ze.a.isNil(r)?i.a.createElement(s,de()({},u,{className:l,onClick:this.handleClick}),Ue.a.create(f,{autoGenerateKey:!1}),o):i.a.createElement(s,de()({},u,{className:l,onClick:this.handleClick}),r)}}]),t}(o.Component);function Qe(e){var t=e.active,n=e.children,r=e.className,a=e.content,o=pe()("content",Object(me.a)(t,"active"),r),c=Object(ve.a)(Qe,e),l=Object(He.a)(Qe,e);return i.a.createElement(l,de()({},c,{className:o}),ze.a.isNil(n)?a:n)}Me()(Xe,"handledProps",["active","as","children","className","content","icon","index","onClick"]),Xe.propTypes={},Xe.create=Object(qe.f)(Xe,function(e){return{content:e}}),Qe.handledProps=["active","as","children","className","content"],Qe.propTypes={},Qe.create=Object(qe.f)(Qe,function(e){return{content:e}});var Ke=Qe,Je=function(e){function t(){var e,n;we()(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=je()(this,(e=Se()(t)).call.apply(e,[this].concat(a))),Me()(Ce()(n),"handleTitleOverrides",function(e){return{onClick:function(t,r){Fe()(e,"onClick",t,r),Fe()(n.props,"onTitleClick",t,r)}}}),n}return Ae()(t,e),xe()(t,[{key:"render",value:function(){var e=this.props,t=e.active,n=e.content,r=e.index,a=e.title;return i.a.createElement(o.Fragment,null,Xe.create(a,{autoGenerateKey:!1,defaultProps:{active:t,index:r},overrideProps:this.handleTitleOverrides}),Ke.create(n,{autoGenerateKey:!1,defaultProps:{active:t}}))}}]),t}(o.Component);Me()(Je,"handledProps",["active","content","index","onTitleClick","title"]),Je.propTypes={},Je.create=Object(qe.f)(Je,null);var Ze=Je,$e=function(e){function t(){var e,n;we()(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=je()(this,(e=Se()(t)).call.apply(e,[this].concat(a))),Me()(Ce()(n),"computeNewIndex",function(e){var t=n.props.exclusive,r=n.state.activeIndex;return t?e===r?-1:e:Be()(r,e)?Re()(r,e):[].concat(ye()(r),[e])}),Me()(Ce()(n),"handleTitleClick",function(e,t){var r=t.index;n.trySetState({activeIndex:n.computeNewIndex(r)}),Fe()(n.props,"onTitleClick",e,t)}),Me()(Ce()(n),"isIndexActive",function(e){var t=n.props.exclusive,r=n.state.activeIndex;return t?r===e:Be()(r,e)}),n}return Ae()(t,e),xe()(t,[{key:"getInitialAutoControlledState",value:function(e){return{activeIndex:e.exclusive?-1:[]}}},{key:"componentDidMount",value:function(){0}},{key:"componentDidUpdate",value:function(){0}},{key:"render",value:function(){var e=this,n=this.props,r=n.className,a=n.children,o=n.panels,c=pe()("accordion",r),l=Object(ve.a)(t,this.props),u=Object(He.a)(t,this.props);return i.a.createElement(u,de()({},l,{className:c}),ze.a.isNil(a)?Te()(o,function(t,n){return Ze.create(t,{defaultProps:{active:e.isIndexActive(n),index:n,onTitleClick:e.handleTitleClick}})}):a)}}]),t}(Ve.a);function et(e){var t=e.className,n=e.fluid,r=e.inverted,a=e.styled,o=pe()("ui",Object(me.a)(n,"fluid"),Object(me.a)(r,"inverted"),Object(me.a)(a,"styled"),t),c=Object(ve.a)(et,e);return i.a.createElement($e,de()({},c,{className:o}))}Me()($e,"defaultProps",{exclusive:!0}),Me()($e,"autoControlledProps",["activeIndex"]),Me()($e,"handledProps",["activeIndex","as","children","className","defaultActiveIndex","exclusive","onTitleClick","panels"]),$e.propTypes={},$e.create=Object(qe.f)($e,function(e){return{content:e}}),et.handledProps=["className","fluid","inverted","styled"],et.propTypes={},et.Accordion=$e,et.Content=Ke,et.Panel=Ze,et.Title=Xe;n(1169),n(1163);function tt(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nt(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw o}}}}function nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rt(){rt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var at=function(e){var t=Object(o.useContext)(m.a),n=t.load,l=t.err_msg,u=(t.fteachcode,Object(a.a)(l,2)),s=(u[0],u[1]),f=Object(o.useState)(""),d=Object(a.a)(f,2),h=d[0],v=d[1],g=Object(o.useState)(""),y=Object(a.a)(g,2),b=(y[0],y[1],Object(c.useHistory)(),Object(o.useState)(!1)),w=Object(a.a)(b,2),E=(w[0],w[1],Object(o.useState)("")),x=Object(a.a)(E,2),O=x[0],j=x[1],k=Object(o.useState)(""),S=Object(a.a)(k,2),_=S[0],C=S[1],L=Object(o.useState)(""),A=Object(a.a)(L,2),P=A[0],M=A[1],N=Object(o.useState)([]),T=Object(a.a)(N,2),I=(T[0],T[1],Object(a.a)(n,2)),F=(I[0],I[1]),D=Object(o.useState)({datas:{partcode:"",partdescp:"",maxqns:"",mandqns:"",maxmarks:""}}),R=Object(a.a)(D,2),G=(R[0],R[1],Object(o.useState)([])),B=Object(a.a)(G,2),H=B[0],z=B[1],V=Object(o.useState)(""),q=Object(a.a)(V,2),Y=(q[0],q[1],localStorage.getItem("fteachcode")),W=Object(o.useState)([]),U=Object(a.a)(W,2),X=U[0],Q=U[1],K=Object(o.useState)([]),J=Object(a.a)(K,2),Z=J[0],$=J[1],te=Object(o.useState)([]),ae=Object(a.a)(te,2),le=ae[0],fe=ae[1],de=Object(o.useState)(""),he=Object(a.a)(de,2),pe=he[0],me=he[1];Object(o.useEffect)(function(){e.screen,ve(e.screen,e.ftempcode)},[]);var ve=function(){var e=Object(r.a)(rt().mark(function e(t,n){var r,a,o,i;return rt().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,F(!0),e.next=4,ee.get("/admin/get-tempqp-data?fusercode=".concat(Y,"&ftempcode=").concat(n));case 4:if(0!=(r=e.sent).data.status){e.next=19;break}v(r.data.result.ftempcode),j(r.data.result.ftempname),C(r.data.result.ftempdesc),M(r.data.result.ftempmax),z(r.data.result.sumarr),{qpcode:"",qpno:"",level:"",parent:"",maxmarks:"",subqn:"",maxqn:"",mandqp:"",order:""},a=[],o=[],r.data.result.sumarr.forEach(function(e){a.push(e.partcode)}),"F"===r.data.result.detlength?(a.forEach(function(e){o[e]=[]}),Q(o)):(a.forEach(function(e){o[e]=[]}),i=[],r.data.result.sumarrdet.map(function(e,t){var n={qpcode:e.fqncode,qpno:e.fqnno,level:e.fqnlevel,parent:e.fqnparent,maxmarks:e.fmaxmarks,subqn:e.fsubqp,maxqn:e.fsubmaxqn,mandqp:e.fsubmandqn,order:e.fqnord,main:0==e.fqnlevel?"T":"F"};o[e.fpartcode].push(n);var r={key:t,value:e.fqncode,text:e.fqncode};i.push(r)}),fe(i),Q(o)),e.next=20;break;case 19:throw new Error(r.data.msg);case 20:F(!1),e.next=27;break;case 23:e.prev=23,e.t0=e.catch(0),F(!1),s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 27:case"end":return e.stop()}},e,null,[[0,23]])}));return function(t,n){return e.apply(this,arguments)}}(),ge=function(e,t,n,r){if(void 0!=r&&me(r+"001"),"T"==n.subqn)for(var a=n.qpcode,o=n.maxqn,i=(parseInt(n.order)+1).toString().padStart(2,"0"),c=parseInt(a)+1,l=parseInt(pe)+1,u=function(){var e={qpcode:l,qpno:"",level:"1",parent:a,maxmarks:"",subqn:"F",maxqn:"1",mandqp:"1",main:"F",order:i},n=[{key:c,value:c,text:c}];fe(function(e){return[].concat(Object(oe.a)(e),n)});var r=X[t].length-1,o=(X[t][r],X);o[t].push(e),Q.apply(void 0,Object(oe.a)(X).concat([o])),z(Object(oe.a)(H));var u=parseInt(i)+1;i=u.toString().padStart(2,"0"),c++,l++},f=0;f<o;f++)u();else{var d=X[t].length,h={qpcode:"",qpno:"",level:"",parent:"",maxmarks:"",subqn:"",maxqn:"",mandqp:"",main:"T",order:(parseInt(d)+1).toString().padStart(2,"0")},p=X[t].length-1,m=X[t][p];if(X[t].length>0){if(""!=m.qpcode&&""==m.qpno)return;if(""===m.qpcode||""===m.parent||""===m.maxmarks)return void s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Last row is empty..!"}})}var v=X;v[t].push(h),Q.apply(void 0,Object(oe.a)(X).concat([v])),z(Object(oe.a)(H))}},ye=function(e,t,n,r,a){if("qpcode"==t)X[e].filter(function(e,t){r!==e.qpcode||s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Question Code already present..!"}})});var o=X,i=o[e].map(function(e,a){return a===n?(e[t]=r,e):e});o[e]=i,Q(o),z(Object(oe.a)(H))};function be(e){var t=new Map;return e.filter(function(e){var n=JSON.stringify(e);return!t.has(n)&&(t.set(n,!0),!0)})}var we=function(){var e=Object(r.a)(rt().mark(function e(t){var n,r,a;return rt().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=[{key:t,value:t,text:t}],r=[].concat(Object(oe.a)(le),n),a=be(r),console.log(a),fe(a);case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),Ee=function(){var e=Object(r.a)(rt().mark(function e(){var t,n,r,a,o,i,c,l,u,f,d;return rt().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t={},n=0;n<H.length;n++)t["".concat(H[n].partcode)]=H[n];e.prev=2,r=tt(H),e.prev=4,r.s();case 6:if((a=r.n()).done){e.next=35;break}o=a.value,i=0,c=tt(X[o.partcode]),e.prev=10,c.s();case 12:if((l=c.n()).done){e.next=20;break}if("T"==(u=l.value).main&&(i+=1),""!=u.qpcode){e.next=18;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Question Code cannot be empty..!"}}),e.abrupt("return");case 18:e.next=12;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(10),c.e(e.t0);case 25:return e.prev=25,c.f(),e.finish(25);case 28:if(t[o.partcode].created=i,console.log(t),t[o.partcode].created==t[o.partcode].maxqns){e.next=33;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"".concat(t[o.partcode].partcode," Total Qns. ").concat(t[o.partcode].maxqns," and created Qns ").concat(t[o.partcode].created)}}),e.abrupt("return");case 33:e.next=6;break;case 35:e.next=40;break;case 37:e.prev=37,e.t1=e.catch(4),r.e(e.t1);case 40:return e.prev=40,r.f(),e.finish(40);case 43:return F(!0),{sumdet:X,tempcode:h,tempname:O,tempdesc:_,tempmaxmarks:P},f=[],H.map(function(e,t){return f.push(Object(se.a)({},e.partcode,X[e.partcode]))}),e.next=49,ee.post("/admin/save-tempqp-det?",{ss:f,sumdata:H,tempcode:h,tempname:O,tempdesc:_,tempmaxmarks:P,del:Z,fusercode:Y});case 49:if(0!=(d=e.sent).data.status){e.next=54;break}s({type:"OPEN_MSG_BOX",payload:{header:"Success",message:"Detailed Qp Template updated..!"}}),e.next=55;break;case 54:throw new Error(d.data.msg);case 55:F(!1),e.next=62;break;case 58:e.prev=58,e.t2=e.catch(2),F(!1),s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t2.message}});case 62:console.log(t,"dynamicVariables");case 63:case"end":return e.stop()}},e,null,[[2,58],[4,37,40,43],[10,22,25,28]])}));return function(){return e.apply(this,arguments)}}(),xe=[],Oe="",je=[],ke=function(e){Oe={menuItem:H[e].partcode,render:function(){return i.a.createElement(ie.a.Pane,null,i.a.createElement("h4",null,i.a.createElement("span",null,H[e].partcode+"-"+H[e].partdescp),i.a.createElement("div",{style:{float:"right"}},i.a.createElement(ne.a,{size:"mini",basic:!0,color:"green",content:"Add",icon:"add",onClick:function(){ge(H[e].partcode,H[e].partcode,je,e+parseInt("001"))}}),i.a.createElement(ne.a,{size:"mini",basic:!0,color:"blue",content:"Save",icon:"file",onClick:function(){Ee()}}))),i.a.createElement(re.a,null),i.a.createElement("div",{className:"row inputs",style:{marginTop:"2%"}},i.a.createElement(ce.a,{celled:!0,stickey:!0,style:{width:"100%",overflowY:"scroll",height:"310px",display:"block",overflow:"auto"}},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{style:{width:"1%"},singleLine:!0,textAlign:"center"},"Sl. No."),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Qn.code"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"7%"}},"Qn. No."),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"7%"}},"Level"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Parent"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Max. Marks"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Sub Qns."),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Max Qns."),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Mand Qns."),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Action"))),Object.keys(X).length>0?i.a.createElement(ce.a.Body,null,X[H[e].partcode].map(function(t,n){return i.a.createElement(ce.a.Row,{id:"id_"+H[e].partcode,key:n},i.a.createElement(ce.a.Cell,{textAlign:"center"},n+1),i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement(ue.a,{type:"text",style:{width:"6em"},name:"qpcode",value:t.qpcode,disabled:""!=t.qpno,onBlur:function(){return we(t.qpcode)},onChange:function(t,r){ye(H[e].partcode,"qpcode",n,r.value)},className:"form-control"})),i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement(ue.a,{type:"text",style:{width:"6em"},name:"qpno",value:t.qpno,onChange:function(t,r){ye(H[e].partcode,"qpno",n,r.value)},className:"form-control"})),i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement(p.a,{search:!0,style:{minWidth:"6em"},selection:!0,value:t.level,options:[{key:0,value:"0",text:0},{key:1,value:"1",text:1}],onChange:function(t,r){ye(H[e].partcode,"level",n,r.value)}})),i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement(p.a,{search:!0,style:{minWidth:"7em"},selection:!0,value:t.parent,options:le,onChange:function(t,r){ye(H[e].partcode,"parent",n,r.value)}})),i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement(ue.a,{type:"text",style:{width:"6em"},name:"maxmarks",value:t.maxmarks,onChange:function(t,r){/^\d*$/.test(r.value)&&ye(H[e].partcode,"maxmarks",n,r.value)},maxLength:3,className:"form-control"})),i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement(p.a,{search:!0,selection:!0,style:{minWidth:"6em"},value:t.subqn,options:[{key:0,value:"T",text:"Yes"},{key:1,value:"F",text:"No"}],onChange:function(t,r){ye(H[e].partcode,"subqn",n,r.value)}})),i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement(ue.a,{type:"text",style:{width:"6em"},name:"maxqn",value:t.maxqn,onChange:function(t,r){/^\d*$/.test(r.value)&&ye(H[e].partcode,"maxqn",n,r.value)},maxLength:3,className:"form-control"})),i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement(ue.a,{type:"text",style:{width:"6em"},name:"mandqp",value:t.mandqp,onChange:function(t,r){/^\d*$/.test(r.value)&&ye(H[e].partcode,"mandqp",n,r.value)},maxLength:3,className:"form-control"})),i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement(ne.a,{icon:"trash",color:"red",onKeyDown:function(n){n.preventDefault(),9===n.keyCode&&ge(H[e].partcode,H[e].partcode,t)},className:"btn btn-outline-danger btn-sm",onClick:function(){!function(e,t){var n=X,r=X[t].filter(function(n,r){if(r===e)return n.partcode=t});$([r].concat(Object(oe.a)(Z))),n[t].splice(e,1);var a=parseInt(pe),o=n[t].map(function(e,t){return e.qpcode=a,a+=1,e});n[t]=o,Q(n),z(Object(oe.a)(H))}(n,H[e].partcode)}})))})):null)))}},xe.push(Oe)};for(var Se in H)ke(Se);var _e=xe;return i.a.createElement("div",null,i.a.createElement(ie.a,{menu:{color:"teal",attached:!1,tabular:!1},panes:_e,onTabChange:function(){z(H)}}))};function ot(){ot=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var it=function(e){var t=Object(o.useContext)(m.a),n=t.load,c=t.err_msg,l=Object(a.a)(c,2),u=(l[0],l[1]),s=Object(o.useState)(""),f=Object(a.a)(s,2),d=f[0],h=f[1],p=Object(o.useState)(!0),v=Object(a.a)(p,2),g=v[0],y=v[1],b=Object(o.useState)(!1),w=Object(a.a)(b,2),E=(w[0],w[1],Object(o.useState)("")),x=Object(a.a)(E,2),O=x[0],j=x[1],k=Object(o.useState)(""),S=Object(a.a)(k,2),_=S[0],C=S[1],L=Object(o.useState)(""),A=Object(a.a)(L,2),P=A[0],M=A[1],N=Object(o.useState)(""),T=Object(a.a)(N,2),I=T[0],F=T[1],D=Object(o.useState)([]),R=Object(a.a)(D,2),G=(R[0],R[1],Object(a.a)(n,2)),B=(G[0],G[1]),H=Object(o.useState)({datas:{partcode:"",partdescp:"",maxqns:"",mandqns:"",maxmarks:"",minqns:""}}),z=Object(a.a)(H,2),V=z[0],q=z[1],Y=Object(o.useState)([]),W=Object(a.a)(Y,2),U=W[0],X=W[1],Q=Object(o.useState)(""),K=Object(a.a)(Q,2),J=(K[0],K[1],localStorage.getItem("fteachcode")),Z=Object(o.useState)([]),$=Object(a.a)(Z,2),te=$[0],re=$[1];Object(o.useEffect)(function(){"edit"==e.match.params.screen?(se(e.match.params.screen,e.match.params.ftempcode),y(!0)):y(!1)},[]);var se=function(){var e=Object(r.a)(ot().mark(function e(t,n){var r;return ot().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,B(!0),e.next=4,ee.get("/admin/get-tempqp-data?fusercode=".concat(J,"&ftempcode=").concat(n));case 4:if(0!=(r=e.sent).data.status){e.next=14;break}h(r.data.result.ftempcode),j(r.data.result.ftempname),C(r.data.result.ftempdesc),M(r.data.result.ftempmax),F(r.data.result.ftotmandqn),X(r.data.result.sumarr),e.next=15;break;case 14:throw new Error(r.data.msg);case 15:B(!1),e.next=22;break;case 18:e.prev=18,e.t0=e.catch(0),B(!1),u({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 22:case"end":return e.stop()}},e,null,[[0,18]])}));return function(t,n){return e.apply(this,arguments)}}();var fe=Object(o.useReducer)(function(e,t){switch(t.type){case"change_value":var n=t.payload,r=n.data,a=n.i,o=e.map(function(e,t){return t===a?r:e});return Object(oe.a)(o);case"add_emptyrow":return[].concat(Object(oe.a)(e),[t.payload]);case"update_reducer":return t.payload;case"delete_row":return e.filter(function(e,n){return n!=t.payload});default:return e}},[{partcode:"",partdescp:"",maxqns:"",mandqns:"",maxmarks:"",minqns:""}]),de=Object(a.a)(fe,2),he=(de[0],de[1],function(e,t){""!=d||""!=O||""!=_||""!=P||""!=I?"partcode"===t?q(function(t){return{datas:Object(ae.a)({},t.datas,{partcode:e})}}):"partdescp"===t?q(function(t){return{datas:Object(ae.a)({},t.datas,{partdescp:e})}}):"maxqns"===t?q(function(t){return{datas:Object(ae.a)({},t.datas,{maxqns:e})}}):"mandqns"===t?q(function(t){return{datas:Object(ae.a)({},t.datas,{mandqns:e})}}):"maxmarks"===t?q(function(t){return{datas:Object(ae.a)({},t.datas,{maxmarks:e})}}):"minqns"===t&&q(function(t){return{datas:Object(ae.a)({},t.datas,{minqns:e})}}):u({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Template Info...!!!"}})}),pe=function(){V.datas.minqns===V.datas.mandqns?""!==V.datas.partcode&&""!==V.datas.partdescp&&""!==V.datas.maxqns&&""!==V.datas.mandqns&&""!==V.datas.maxmarks&&""!==V.datas.minqns&&(function(e,t,n,r,a,o){X(U.concat([{partcode:e,partdescp:t,maxqns:n,mandqns:r,maxmarks:a,minqns:o}]))}.call(null,V.datas.partcode,V.datas.partdescp,V.datas.maxqns,V.datas.mandqns,V.datas.maxmarks,V.datas.minqns),me.call(null)):u({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Min. Questions and Mand. Questions should be same"}})},me=function(){q({datas:{partcode:"",partdescp:"",maxqns:"",mandqns:"",maxmarks:"",minqns:""}})},ve=function(){var e=Object(r.a)(ot().mark(function e(){var t;return ot().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,B(!0),e.next=4,ee.get("/admin/check-tempcode?fusercode=".concat(J,"&ftempcode=").concat(d));case 4:if(0!=(t=e.sent).data.status){e.next=8;break}e.next=10;break;case 8:throw h(""),new Error(t.data.msg);case 10:B(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(0),B(!1),u({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 17:case"end":return e.stop()}},e,null,[[0,13]])}));return function(){return e.apply(this,arguments)}}(),ge=function(){var e=Object(r.a)(ot().mark(function e(){var t;return ot().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,console.log(P,U),t=0,U.map(function(e,n){t+=parseInt(e.maxmarks)}),t===parseInt(P)){e.next=7;break}return u({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Total Marks and Allotted marks not matched"}}),e.abrupt("return");case 7:return e.next=9,ee.post("/admin/qpTemplate/saveparthead?",{sumdata:U,delrows:te,tempcode:d,tempname:O,tempdesc:_,tempmaxmarks:P,tempmandqns:I});case 9:0==e.sent.data.status&&(u({type:"OPEN_MSG_BOX",payload:{header:"Success",message:"Summary data updated..!"}}),y(!0)),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),e.t0.response&&401==e.t0.response.status?u({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Authentication failed. Login again !!!"}}):u({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 16:case"end":return e.stop()}},e,null,[[0,13]])}));return function(){return e.apply(this,arguments)}}(),ye=[{menuItem:{key:"users",icon:"gg",content:"Summary"},render:function(){return i.a.createElement(ie.a.Pane,null,i.a.createElement("div",null,i.a.createElement("div",{className:"row inputs",style:{marginTop:"2%"}},i.a.createElement("div",{class:"ui input"},i.a.createElement("input",{name:"partcode",style:{margin:"0px 10px 0px 0px",width:"10em"},onChange:function(e,t){he(e.target.value,"partcode")},value:V.datas.partcode,placeholder:"Part Code"})),i.a.createElement("div",{class:"ui input"},i.a.createElement("input",{name:"partdescp",style:{margin:"0px 10px 0px 0px",width:"25em"},onChange:function(e,t){he(e.target.value,"partdescp")},value:V.datas.partdescp,placeholder:"Part Description"})),i.a.createElement("div",{class:"ui input"},i.a.createElement("input",{name:"maxqns",style:{margin:"0px 10px 0px 0px",width:"8em"},onChange:function(e,t){/^\d*$/.test(e.target.value)&&he(e.target.value,"maxqns")},maxLength:3,value:V.datas.maxqns,placeholder:"Max. Qns."})),i.a.createElement("div",{class:"ui input"},i.a.createElement("input",{name:"mandqns",style:{margin:"0px 10px 0px 0px",width:"8em"},onChange:function(e,t){/^\d*$/.test(e.target.value)&&he(e.target.value,"mandqns")},maxLength:3,value:V.datas.mandqns,placeholder:"Mand. Qns."})),i.a.createElement("div",{class:"ui input"},i.a.createElement("input",{name:"maxmarks",style:{margin:"0px 10px 0px 0px",width:"8em"},onChange:function(e,t){/^\d*$/.test(e.target.value)&&he(e.target.value,"maxmarks")},maxLength:3,value:V.datas.maxmarks,placeholder:"Max. Marks"})),i.a.createElement("div",{class:"ui input"},i.a.createElement("input",{name:"minqns",style:{margin:"0px 10px 0px 0px",width:"8em"},onChange:function(e,t){/^\d*$/.test(e.target.value)&&he(e.target.value,"minqns")},maxLength:3,value:V.datas.minqns,placeholder:"Min. Qns"})),i.a.createElement(ne.a,{className:"ui green button",onClick:function(){pe()}},"Add")),i.a.createElement(ce.a,{celled:!0},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center",scope:"col",style:{width:"5%"}},"Sl No."),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",scope:"col",style:{width:"10%"}},"Part Code"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",scope:"col",style:{width:"30%"}},"Part Description"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",scope:"col",style:{width:"10%"}},"Max. Qns."),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",scope:"col",style:{width:"10%"}},"Mand. Qns."),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",scope:"col",style:{width:"10%"}},"Max. Marks"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",scope:"col",style:{width:"10%"}},"Min.Qns"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",scope:"col",style:{width:"10%"}},"Delete"))),i.a.createElement(ce.a.Body,null,U.map(function(e,t){return i.a.createElement(ce.a.Row,{key:t},i.a.createElement(ce.a.Cell,{textAlign:"center"},t+1),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.partcode),i.a.createElement(ce.a.Cell,{textAlign:"left"},e.partdescp),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.maxqns),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.mandqns),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.maxmarks),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.minqns),i.a.createElement("td",{style:{width:"10%"}},i.a.createElement(ne.a,{type:"button",className:"ui negative basic button",onClick:function(){!function(e){var t=U.filter(function(t,n){return n===e?re([].concat(Object(oe.a)(te),[t])):t});X.apply(void 0,[t])}(t)}},"Delete")))}))),i.a.createElement(ne.a,{color:"green",onClick:function(){return ge()}},"Save")))}},{menuItem:{key:"messages",icon:"gg",content:"Detailed"},render:function(){return i.a.createElement(ie.a.Pane,null,i.a.createElement(at,{screen:e.match.params.screen,ftempcode:d}))}}];return i.a.createElement("div",null,i.a.createElement(le.a,{className:"sticky"},i.a.createElement(le.a.Group,{style:{width:"100%"}},i.a.createElement(le.a.Field,{inline:!0,width:"2"},i.a.createElement("label",null,"Template Code"),i.a.createElement(ue.a,{placeholder:"Template Code",name:"tempcode",value:d,onChange:function(e,t){h(t.value.toUpperCase())},onBlur:function(e){ve()},style:g?{opacity:"1.45"}:null,disabled:g})),i.a.createElement(le.a.Field,{inline:!0,width:"3"},i.a.createElement("label",null,"Template Name"),i.a.createElement(ue.a,{placeholder:"Template Name",name:"tempname",value:O,onChange:function(e,t){j(t.value)},disabled:g,style:g?{opacity:"1.45"}:null})),i.a.createElement(le.a.Field,{inline:!0,width:"6"},i.a.createElement("label",null,"Template Description"),i.a.createElement(ue.a,{placeholder:"Template Description",name:"tempdesc",value:_,onChange:function(e,t){C(t.value)},disabled:g,style:g?{opacity:"1.45"}:null})),i.a.createElement(le.a.Field,{inline:!0,width:"2"},i.a.createElement("label",null,"Max. Marks"),i.a.createElement(ue.a,{placeholder:"Max. Marks",name:"tempmaxmarks",value:P,onChange:function(e,t){/^\d*$/.test(t.value)&&M(t.value)},maxLength:3,disabled:g,style:g?{opacity:"1.45"}:null})),i.a.createElement(le.a.Field,{inline:!0,width:"2"},i.a.createElement("label",null,"Total Mand.Qns"),i.a.createElement(ue.a,{placeholder:"Mand.Qns",name:"tempmandqns",value:I,onChange:function(e,t){/^\d*$/.test(t.value)&&F(t.value)},maxLength:3,disabled:g,style:g?{opacity:"1.45"}:null})))),i.a.createElement(ie.a,{panes:ye}))};function ct(){ct=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var lt=function(e){var t=Object(o.useContext)(m.a),n=(t.load,t.err_msg),u=Object(c.useHistory)(),s=Object(o.useState)([]),f=Object(a.a)(s,2),d=f[0],h=f[1],p=Object(a.a)(n,2),v=(p[0],p[1]);Object(o.useEffect)(function(){g()},[]);var g=function(){var e=Object(r.a)(ct().mark(function e(){var t;return ct().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ee.get("admin/qpTemplate/getQpTemplate");case 3:0==(t=e.sent).data.status&&h(t.data.result),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),e.t0.response&&401==e.t0.response.status?(v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Authentication failed. Login again !!!"}}),u.push(localStorage.getItem("rootPath"))):v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 10:case"end":return e.stop()}},e,null,[[0,7]])}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(ce.a,{celled:!0},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{style:{width:"5%"},singleLine:!0,textAlign:"center"},"Sl. No."),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Template Code"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Template Name"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Template Description"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Action"))),i.a.createElement(ce.a.Body,null,d.map(function(e,t){return i.a.createElement(ce.a.Row,{key:t},i.a.createElement(ce.a.Cell,{textAlign:"center"},t+1),i.a.createElement(ce.a.Cell,null,e.ftempcode),i.a.createElement(ce.a.Cell,null,e.ftempname),i.a.createElement(ce.a.Cell,null,e.ftempdesc),i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement(l.b,{to:{pathname:"/admin/qptemplate/edit/".concat(e.ftempcode),query:{screen:"edit",ftempcode:e.ftempcode}}},i.a.createElement(ne.a,{size:"mini",basic:!0,color:"green",content:"Edit",icon:"edit"})),i.a.createElement(ne.a,{size:"mini",basic:!0,color:"blue",content:"Report",icon:"file pdf outline",onClick:function(){return t=e.ftempcode,void window.open(K.c+"tdvsQpPatranTest&univcode="+localStorage.getItem("univcode")+"&tempcode="+t);var t}}),i.a.createElement(ne.a,{size:"mini",basic:!0,color:"red",content:"Delete",icon:"delete",onClick:function(){return t=e.ftempcode,void(window.confirm("Are you sure..?")?Q.a.post(K.b+"a=tdvs_deleteTemplateCode&univcode="+localStorage.getItem("univcode")+"&tempcode="+t).then(function(e){0===e.data.error_code?g():v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}})}):console.log("you cancelled"));var t}})))})))},ut=function(e){return i.a.createElement("div",{className:"animated fadeIn"},i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,i.a.createElement("span",null,"QP Template"),i.a.createElement("div",{style:{float:"right"}},i.a.createElement(l.b,{to:"/admin/qptemplate"},i.a.createElement(ne.a,{size:"mini",basic:!0,color:"blue",content:"Back",icon:"chevron left"})),i.a.createElement(l.b,{to:"/admin/qptemplate/add"},i.a.createElement(ne.a,{size:"mini",basic:!0,color:"green",content:"Add",icon:"add"})),i.a.createElement(l.c,{to:"/admin/qptemplate"},i.a.createElement(ne.a,{size:"mini",basic:!0,color:"black",icon:"ban",content:"Cancel"})),i.a.createElement(l.c,{to:"/admin/dashboard"},i.a.createElement(ne.a,{size:"mini",basic:!0,color:"red",content:"Exit",icon:"home"})))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,{style:{height:"80vh",overflowY:"auto"}},i.a.createElement(c.Switch,null,i.a.createElement(c.Route,{exact:!0,path:"/admin/qptemplate",component:lt}),i.a.createElement(c.Route,{exact:!0,path:"/admin/qptemplate/add",component:it}),i.a.createElement(c.Route,{path:"/admin/qptemplate/:screen/:ftempcode",component:it}))))))},st=n(1196),ft=n(1157),dt=n(1153);function ht(e,t,n){return(ht="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(dt.a)(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}var pt=n(1158),mt=n(1154),vt=n(1155);function gt(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return yt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yt(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw o}}}}function yt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bt="undefined"===typeof window?function(e){return e()}:window.requestAnimationFrame;function wt(e,t,n){var r=n||function(e){return Array.prototype.slice.call(e)},a=!1,o=[];return function(){for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];o=r(i),a||(a=!0,bt.call(window,function(){a=!1,e.apply(t,o)}))}}var Et=function(e){return"start"===e?"left":"end"===e?"right":"center"},xt=function(e,t,n){return"start"===e?t:"end"===e?n:(t+n)/2};function Ot(){}var jt=function(){var e=0;return function(){return e++}}();function kt(e){return null===e||"undefined"===typeof e}function St(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function _t(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}var Ct=function(e){return("number"===typeof e||e instanceof Number)&&isFinite(+e)};function Lt(e,t){return Ct(e)?e:t}function At(e,t){return"undefined"===typeof e?t:e}var Pt=function(e,t){return"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e};function Mt(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)}function Nt(e,t,n,r){var a,o,i;if(St(e))if(o=e.length,r)for(a=o-1;a>=0;a--)t.call(n,e[a],a);else for(a=0;a<o;a++)t.call(n,e[a],a);else if(_t(e))for(o=(i=Object.keys(e)).length,a=0;a<o;a++)t.call(n,e[i[a]],i[a])}function Tt(e,t){var n,r,a,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(a=e[n],o=t[n],a.datasetIndex!==o.datasetIndex||a.index!==o.index)return!1;return!0}function It(e){if(St(e))return e.map(It);if(_t(e)){for(var t=Object.create(null),n=Object.keys(e),r=n.length,a=0;a<r;++a)t[n[a]]=It(e[n[a]]);return t}return e}function Ft(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function Dt(e,t,n,r){if(Ft(e)){var a=t[e],o=n[e];_t(a)&&_t(o)?Rt(a,o,r):t[e]=It(o)}}function Rt(e,t,n){var r=St(t)?t:[t],a=r.length;if(!_t(e))return e;for(var o=(n=n||{}).merger||Dt,i=0;i<a;++i)if(_t(t=r[i]))for(var c=Object.keys(t),l=0,u=c.length;l<u;++l)o(c[l],e,t,n);return e}function Gt(e,t){return Rt(e,t,{merger:Bt})}function Bt(e,t,n){if(Ft(e)){var r=t[e],a=n[e];_t(r)&&_t(a)?Gt(r,a):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=It(a))}}var Ht="",zt=".";function Vt(e,t){var n=e.indexOf(zt,t);return-1===n?e.length:n}function qt(e,t){if(t===Ht)return e;for(var n=0,r=Vt(t,n);e&&r>n;)e=e[t.substr(n,r-n)],r=Vt(t,n=r+1);return e}function Yt(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Wt=function(e){return"undefined"!==typeof e},Ut=function(e){return"function"===typeof e},Xt=Math.PI,Qt=2*Xt,Kt=Qt+Xt,Jt=Number.POSITIVE_INFINITY,Zt=Xt/180,$t=Xt/2,en=Xt/4,tn=2*Xt/3,nn=Math.log10,rn=Math.sign;function an(e){var t=Math.round(e);e=cn(e,t,e/1e3)?t:e;var n=Math.pow(10,Math.floor(nn(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function on(e){return!isNaN(parseFloat(e))&&isFinite(e)}function cn(e,t,n){return Math.abs(e-t)<n}function ln(e,t,n){var r,a,o;for(r=0,a=e.length;r<a;r++)o=e[r][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function un(e){return e*(Xt/180)}function sn(e){return e*(180/Xt)}function fn(e){if(Ct(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}}function dn(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function hn(e,t){return(e-t+Kt)%Qt-Xt}function pn(e){return(e%Qt+Qt)%Qt}function mn(e,t,n,r){var a=pn(e),o=pn(t),i=pn(n),c=pn(o-a),l=pn(i-a),u=pn(a-o),s=pn(a-i);return a===o||a===i||r&&o===i||c>l&&u<s}function vn(e,t,n){return Math.max(t,Math.min(n,e))}var gn=function(e){return 0===e||1===e},yn=function(e,t,n){return-Math.pow(2,10*(e-=1))*Math.sin((e-t)*Qt/n)},bn=function(e,t,n){return Math.pow(2,-10*e)*Math.sin((e-t)*Qt/n)+1},wn={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*$t)},easeOutSine:function(e){return Math.sin(e*$t)},easeInOutSine:function(e){return-.5*(Math.cos(Xt*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return gn(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1)))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){return gn(e)?e:yn(e,.075,.3)},easeOutElastic:function(e){return gn(e)?e:bn(e,.075,.3)},easeInOutElastic:function(e){return gn(e)?e:e<.5?.5*yn(2*e,.1125,.45):.5+.5*bn(2*e-1,.1125,.45)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-wn.easeOutBounce(1-e)},easeOutBounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*wn.easeInBounce(2*e):.5*wn.easeOutBounce(2*e-1)+.5}},En={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},xn="0123456789ABCDEF",On=function(e){return xn[15&e]},jn=function(e){return xn[(240&e)>>4]+xn[15&e]},kn=function(e){return(240&e)>>4===(15&e)};function Sn(e){var t=function(e){return kn(e.r)&&kn(e.g)&&kn(e.b)&&kn(e.a)}(e)?On:jn;return e?"#"+t(e.r)+t(e.g)+t(e.b)+(e.a<255?t(e.a):""):e}function _n(e){return e+.5|0}var Cn=function(e,t,n){return Math.max(Math.min(e,n),t)};function Ln(e){return Cn(_n(2.55*e),0,255)}function An(e){return Cn(_n(255*e),0,255)}function Pn(e){return Cn(_n(e/2.55)/100,0,1)}function Mn(e){return Cn(_n(100*e),0,100)}var Nn=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;var Tn=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function In(e,t,n){var r=t*Math.min(n,1-n),a=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+e/30)%12;return n-r*Math.max(Math.min(a-3,9-a,1),-1)};return[a(0),a(8),a(4)]}function Fn(e,t,n){var r=function(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+e/60)%6;return n-n*t*Math.max(Math.min(a,4-a,1),0)};return[r(5),r(3),r(1)]}function Dn(e,t,n){var r,a=In(e,1,.5);for(t+n>1&&(t*=r=1/(t+n),n*=r),r=0;r<3;r++)a[r]*=1-t-n,a[r]+=t;return a}function Rn(e){var t,n,r,a=e.r/255,o=e.g/255,i=e.b/255,c=Math.max(a,o,i),l=Math.min(a,o,i),u=(c+l)/2;return c!==l&&(r=c-l,n=u>.5?r/(2-c-l):r/(c+l),t=60*(t=c===a?(o-i)/r+(o<i?6:0):c===o?(i-a)/r+2:(a-o)/r+4)+.5),[0|t,n||0,u]}function Gn(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(An)}function Bn(e,t,n){return Gn(In,e,t,n)}function Hn(e){return(e%360+360)%360}function zn(e){var t,n=Tn.exec(e),r=255;if(n){n[5]!==t&&(r=n[6]?Ln(+n[5]):An(+n[5]));var a=Hn(+n[2]),o=+n[3]/100,i=+n[4]/100;return{r:(t="hwb"===n[1]?function(e,t,n){return Gn(Dn,e,t,n)}(a,o,i):"hsv"===n[1]?function(e,t,n){return Gn(Fn,e,t,n)}(a,o,i):Bn(a,o,i))[0],g:t[1],b:t[2],a:r}}}var Vn,qn={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Yn={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Wn(e){Vn||((Vn=function(){var e,t,n,r,a,o={},i=Object.keys(Yn),c=Object.keys(qn);for(e=0;e<i.length;e++){for(r=a=i[e],t=0;t<c.length;t++)n=c[t],a=a.replace(n,qn[n]);n=parseInt(Yn[r],16),o[a]=[n>>16&255,n>>8&255,255&n]}return o}()).transparent=[0,0,0,0]);var t=Vn[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}function Un(e,t,n){if(e){var r=Rn(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=Bn(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Xn(e,t){return e?Object.assign(t||{},e):e}function Qn(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=An(e[3]))):(t=Xn(e,{r:0,g:0,b:0,a:1})).a=An(t.a),t}function Kn(e){return"r"===e.charAt(0)?function(e){var t,n,r,a=Nn.exec(e),o=255;if(a){if(a[7]!==t){var i=+a[7];o=255&(a[8]?Ln(i):255*i)}return t=+a[1],n=+a[3],r=+a[5],{r:t=255&(a[2]?Ln(t):t),g:n=255&(a[4]?Ln(n):n),b:r=255&(a[6]?Ln(r):r),a:o}}}(e):zn(e)}var Jn=function(){function e(t){if(Object(mt.a)(this,e),t instanceof e)return t;var n,r=typeof t;"object"===r?n=Qn(t):"string"===r&&(n=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*En[e[1]],g:255&17*En[e[2]],b:255&17*En[e[3]],a:5===n?17*En[e[4]]:255}:7!==n&&9!==n||(t={r:En[e[1]]<<4|En[e[2]],g:En[e[3]]<<4|En[e[4]],b:En[e[5]]<<4|En[e[6]],a:9===n?En[e[7]]<<4|En[e[8]]:255})),t}(t)||Wn(t)||Kn(t)),this._rgb=n,this._valid=!!n}return Object(vt.a)(e,[{key:"rgbString",value:function(){return this._valid?(e=this._rgb)&&(e.a<255?"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(Pn(e.a),")"):"rgb(".concat(e.r,", ").concat(e.g,", ").concat(e.b,")")):this._rgb;var e}},{key:"hexString",value:function(){return this._valid?Sn(this._rgb):this._rgb}},{key:"hslString",value:function(){return this._valid?function(e){if(e){var t=Rn(e),n=t[0],r=Mn(t[1]),a=Mn(t[2]);return e.a<255?"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(Pn(e.a),")"):"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)")}}(this._rgb):this._rgb}},{key:"mix",value:function(e,t){if(e){var n,r=this.rgb,a=e.rgb,o=t===n?.5:t,i=2*o-1,c=r.a-a.a,l=((i*c===-1?i:(i+c)/(1+i*c))+1)/2;n=1-l,r.r=255&l*r.r+n*a.r+.5,r.g=255&l*r.g+n*a.g+.5,r.b=255&l*r.b+n*a.b+.5,r.a=o*r.a+(1-o)*a.a,this.rgb=r}return this}},{key:"clone",value:function(){return new e(this.rgb)}},{key:"alpha",value:function(e){return this._rgb.a=An(e),this}},{key:"clearer",value:function(e){return this._rgb.a*=1-e,this}},{key:"greyscale",value:function(){var e=this._rgb,t=_n(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}},{key:"opaquer",value:function(e){return this._rgb.a*=1+e,this}},{key:"negate",value:function(){var e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}},{key:"lighten",value:function(e){return Un(this._rgb,2,e),this}},{key:"darken",value:function(e){return Un(this._rgb,2,-e),this}},{key:"saturate",value:function(e){return Un(this._rgb,1,e),this}},{key:"desaturate",value:function(e){return Un(this._rgb,1,-e),this}},{key:"rotate",value:function(e){return function(e,t){var n=Rn(e);n[0]=Hn(n[0]+t),n=Bn(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}},{key:"valid",get:function(){return this._valid}},{key:"rgb",get:function(){var e=Xn(this._rgb);return e&&(e.a=Pn(e.a)),e},set:function(e){this._rgb=Qn(e)}}]),e}();function Zn(e){return new Jn(e)}var $n=function(e){return e instanceof CanvasGradient||e instanceof CanvasPattern};function er(e){return $n(e)?e:Zn(e)}function tr(e){return $n(e)?e:Zn(e).saturate(.5).darken(.1).hexString()}var nr=Object.create(null),rr=Object.create(null);function ar(e,t){if(!t)return e;for(var n=t.split("."),r=0,a=n.length;r<a;++r){var o=n[r];e=e[o]||(e[o]=Object.create(null))}return e}function or(e,t,n){return"string"===typeof t?Rt(ar(e,t),n):Rt(ar(e,""),t)}var ir=new(function(){function e(t){Object(mt.a)(this,e),this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=function(e){return e.chart.platform.getDevicePixelRatio()},this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=function(e,t){return tr(t.backgroundColor)},this.hoverBorderColor=function(e,t){return tr(t.borderColor)},this.hoverColor=function(e,t){return tr(t.color)},this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.describe(t)}return Object(vt.a)(e,[{key:"set",value:function(e,t){return or(this,e,t)}},{key:"get",value:function(e){return ar(this,e)}},{key:"describe",value:function(e,t){return or(rr,e,t)}},{key:"override",value:function(e,t){return or(nr,e,t)}},{key:"route",value:function(e,t,n,r){var a,o=ar(this,e),i=ar(this,n),c="_"+t;Object.defineProperties(o,(a={},Object(se.a)(a,c,{value:o[t],writable:!0}),Object(se.a)(a,t,{enumerable:!0,get:function(){var e=this[c],t=i[r];return _t(e)?Object.assign({},t,e):At(e,t)},set:function(e){this[c]=e}}),a))}}]),e}())({_scriptable:function(e){return!e.startsWith("on")},_indexable:function(e){return"events"!==e},hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function cr(e,t,n,r,a){var o=t[a];return o||(o=t[a]=e.measureText(a).width,n.push(a)),o>r&&(r=o),r}function lr(e,t,n,r){var a=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(a=r.data={},o=r.garbageCollect=[],r.font=t),e.save(),e.font=t;var i,c,l,u,s,f=0,d=n.length;for(i=0;i<d;i++)if(void 0!==(u=n[i])&&null!==u&&!0!==St(u))f=cr(e,a,o,f,u);else if(St(u))for(c=0,l=u.length;c<l;c++)void 0===(s=u[c])||null===s||St(s)||(f=cr(e,a,o,f,s));e.restore();var h=o.length/2;if(h>n.length){for(i=0;i<h;i++)delete a[o[i]];o.splice(0,h)}return f}function ur(e,t,n){var r=e.currentDevicePixelRatio,a=0!==n?Math.max(n/2,.5):0;return Math.round((t-a)*r)/r+a}function sr(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function fr(e,t,n,r){var a,o,i,c,l,u=t.pointStyle,s=t.rotation,f=t.radius,d=(s||0)*Zt;if(u&&"object"===typeof u&&("[object HTMLImageElement]"===(a=u.toString())||"[object HTMLCanvasElement]"===a))return e.save(),e.translate(n,r),e.rotate(d),e.drawImage(u,-u.width/2,-u.height/2,u.width,u.height),void e.restore();if(!(isNaN(f)||f<=0)){switch(e.beginPath(),u){default:e.arc(n,r,f,0,Qt),e.closePath();break;case"triangle":e.moveTo(n+Math.sin(d)*f,r-Math.cos(d)*f),d+=tn,e.lineTo(n+Math.sin(d)*f,r-Math.cos(d)*f),d+=tn,e.lineTo(n+Math.sin(d)*f,r-Math.cos(d)*f),e.closePath();break;case"rectRounded":c=f-(l=.516*f),o=Math.cos(d+en)*c,i=Math.sin(d+en)*c,e.arc(n-o,r-i,l,d-Xt,d-$t),e.arc(n+i,r-o,l,d-$t,d),e.arc(n+o,r+i,l,d,d+$t),e.arc(n-i,r+o,l,d+$t,d+Xt),e.closePath();break;case"rect":if(!s){c=Math.SQRT1_2*f,e.rect(n-c,r-c,2*c,2*c);break}d+=en;case"rectRot":o=Math.cos(d)*f,i=Math.sin(d)*f,e.moveTo(n-o,r-i),e.lineTo(n+i,r-o),e.lineTo(n+o,r+i),e.lineTo(n-i,r+o),e.closePath();break;case"crossRot":d+=en;case"cross":o=Math.cos(d)*f,i=Math.sin(d)*f,e.moveTo(n-o,r-i),e.lineTo(n+o,r+i),e.moveTo(n+i,r-o),e.lineTo(n-i,r+o);break;case"star":o=Math.cos(d)*f,i=Math.sin(d)*f,e.moveTo(n-o,r-i),e.lineTo(n+o,r+i),e.moveTo(n+i,r-o),e.lineTo(n-i,r+o),d+=en,o=Math.cos(d)*f,i=Math.sin(d)*f,e.moveTo(n-o,r-i),e.lineTo(n+o,r+i),e.moveTo(n+i,r-o),e.lineTo(n-i,r+o);break;case"line":o=Math.cos(d)*f,i=Math.sin(d)*f,e.moveTo(n-o,r-i),e.lineTo(n+o,r+i);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(d)*f,r+Math.sin(d)*f)}e.fill(),t.borderWidth>0&&e.stroke()}}function dr(e,t,n){return n=n||.5,e&&t&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function hr(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function pr(e){e.restore()}function mr(e,t,n,r,a){if(!t)return e.lineTo(n.x,n.y);if("middle"===a){var o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else"after"===a!==!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function vr(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function gr(e,t,n,r,a){var o,i,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},l=St(t)?t:[t],u=c.strokeWidth>0&&""!==c.strokeColor;for(e.save(),e.font=a.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]);kt(t.rotation)||e.rotate(t.rotation);t.color&&(e.fillStyle=t.color);t.textAlign&&(e.textAlign=t.textAlign);t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,c),o=0;o<l.length;++o)i=l[o],u&&(c.strokeColor&&(e.strokeStyle=c.strokeColor),kt(c.strokeWidth)||(e.lineWidth=c.strokeWidth),e.strokeText(i,n,r,c.maxWidth)),e.fillText(i,n,r,c.maxWidth),yr(e,n,r,i,c),r+=a.lineHeight;e.restore()}function yr(e,t,n,r,a){if(a.strikethrough||a.underline){var o=e.measureText(r),i=t-o.actualBoundingBoxLeft,c=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,s=a.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=a.decorationWidth||2,e.moveTo(i,s),e.lineTo(c,s),e.stroke()}}function br(e,t){var n=t.x,r=t.y,a=t.w,o=t.h,i=t.radius;e.arc(n+i.topLeft,r+i.topLeft,i.topLeft,-$t,Xt,!0),e.lineTo(n,r+o-i.bottomLeft),e.arc(n+i.bottomLeft,r+o-i.bottomLeft,i.bottomLeft,Xt,$t,!0),e.lineTo(n+a-i.bottomRight,r+o),e.arc(n+a-i.bottomRight,r+o-i.bottomRight,i.bottomRight,$t,0,!0),e.lineTo(n+a,r+i.topRight),e.arc(n+a-i.topRight,r+i.topRight,i.topRight,0,-$t,!0),e.lineTo(n+i.topLeft,r)}var wr=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),Er=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function xr(e,t){var n=(""+e).match(wr);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}var Or=function(e){return+e||0};function jr(e,t){var n,r={},a=_t(t),o=a?Object.keys(t):t,i=_t(e)?a?function(n){return At(e[n],e[t[n]])}:function(t){return e[t]}:function(){return e},c=gt(o);try{for(c.s();!(n=c.n()).done;){var l=n.value;r[l]=Or(i(l))}}catch(u){c.e(u)}finally{c.f()}return r}function kr(e){return jr(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Sr(e){return jr(e,["topLeft","topRight","bottomLeft","bottomRight"])}function _r(e){var t=kr(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Cr(e,t){e=e||{},t=t||ir.font;var n=At(e.size,t.size);"string"===typeof n&&(n=parseInt(n,10));var r=At(e.style,t.style);r&&!(""+r).match(Er)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");var a={family:At(e.family,t.family),lineHeight:xr(At(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:At(e.weight,t.weight),string:""};return a.string=function(e){return!e||kt(e.size)||kt(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(a),a}function Lr(e,t,n,r){var a,o,i,c=!0;for(a=0,o=e.length;a<o;++a)if(void 0!==(i=e[a])&&(void 0!==t&&"function"===typeof i&&(i=i(t),c=!1),void 0!==n&&St(i)&&(i=i[n%i.length],c=!1),void 0!==i))return r&&!c&&(r.cacheable=!1),i}function Ar(e,t,n){n=n||function(n){return e[n]<t};for(var r,a=e.length-1,o=0;a-o>1;)n(r=o+a>>1)?o=r:a=r;return{lo:o,hi:a}}var Pr=function(e,t,n){return Ar(e,n,function(r){return e[r][t]<n})},Mr=function(e,t,n){return Ar(e,n,function(r){return e[r][t]>=n})};var Nr=["push","pop","shift","splice","unshift"];function Tr(e,t){var n=e._chartjs;if(n){var r=n.listeners,a=r.indexOf(t);-1!==a&&r.splice(a,1),r.length>0||(Nr.forEach(function(t){delete e[t]}),delete e._chartjs)}}function Ir(e){var t,n,r=new Set;for(t=0,n=e.length;t<n;++t)r.add(e[t]);return r.size===n?e:Array.from(r)}function Fr(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return e[0]};Wt(a)||(a=Ur("_fallback",e));var i=(t={},Object(se.a)(t,Symbol.toStringTag,"Object"),Object(se.a)(t,"_cacheable",!0),Object(se.a)(t,"_scopes",e),Object(se.a)(t,"_rootScopes",r),Object(se.a)(t,"_fallback",a),Object(se.a)(t,"_getTarget",o),Object(se.a)(t,"override",function(t){return Fr([t].concat(Object(oe.a)(e)),n,r,a)}),t);return new Proxy(i,{deleteProperty:function(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get:function(t,r){return Hr(t,r,function(){return function(e,t,n,r){var a,o,i=gt(t);try{for(i.s();!(o=i.n()).done;){var c=o.value;if(a=Ur(Gr(c,e),n),Wt(a))return Br(e,a)?Yr(n,r,e,a):a}}catch(l){i.e(l)}finally{i.f()}}(r,n,e,t)})},getOwnPropertyDescriptor:function(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e[0])},has:function(e,t){return Xr(e).includes(t)},ownKeys:function(e){return Xr(e)},set:function(e,t,n){return(e._storage||(e._storage=o()))[t]=n,delete e[t],delete e._keys,!0}})}function Dr(e,t,n,r){var a={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Rr(e,r),setContext:function(t){return Dr(e,t,n,r)},override:function(a){return Dr(e.override(a),t,n,r)}};return new Proxy(a,{deleteProperty:function(t,n){return delete t[n],delete e[n],!0},get:function(e,t,n){return Hr(e,t,function(){return function(e,t,n){var r=e._proxy,a=e._context,o=e._subProxy,i=e._descriptors,c=r[t];Ut(c)&&i.isScriptable(t)&&(c=function(e,t,n,r){var a=n._proxy,o=n._context,i=n._subProxy,c=n._stack;if(c.has(e))throw new Error("Recursion detected: "+Array.from(c).join("->")+"->"+e);c.add(e),t=t(o,i||r),c.delete(e),_t(t)&&(t=Yr(a._scopes,a,e,t));return t}(t,c,e,n));St(c)&&c.length&&(c=function(e,t,n,r){var a=n._proxy,o=n._context,i=n._subProxy,c=n._descriptors;if(Wt(o.index)&&r(e))t=t[o.index%t.length];else if(_t(t[0])){var l=t,u=a._scopes.filter(function(e){return e!==l});t=[];var s,f=gt(l);try{for(f.s();!(s=f.n()).done;){var d=s.value,h=Yr(u,a,e,d);t.push(Dr(h,o,i&&i[e],c))}}catch(p){f.e(p)}finally{f.f()}}return t}(t,c,e,i.isIndexable));Br(t,c)&&(c=Dr(c,a,o&&o[t],i));return c}(e,t,n)})},getOwnPropertyDescriptor:function(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e)},has:function(t,n){return Reflect.has(e,n)},ownKeys:function(){return Reflect.ownKeys(e)},set:function(t,n,r){return e[n]=r,delete t[n],!0}})}function Rr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0},n=e._scriptable,r=void 0===n?t.scriptable:n,a=e._indexable,o=void 0===a?t.indexable:a,i=e._allKeys;return{allKeys:void 0===i?t.allKeys:i,scriptable:r,indexable:o,isScriptable:Ut(r)?r:function(){return r},isIndexable:Ut(o)?o:function(){return o}}}var Gr=function(e,t){return e?e+Yt(t):t},Br=function(e,t){return _t(t)&&"adapters"!==e};function Hr(e,t,n){var r=e[t];return Wt(r)?r:(r=n(),Wt(r)&&(e[t]=r),r)}function zr(e,t,n){return Ut(e)?e(t,n):e}var Vr=function(e,t){return!0===e?t:"string"===typeof e?qt(t,e):void 0};function qr(e,t,n,r){var a,o=gt(t);try{for(o.s();!(a=o.n()).done;){var i=a.value,c=Vr(n,i);if(c){e.add(c);var l=zr(c._fallback,n,c);if(Wt(l)&&l!==n&&l!==r)return l}else if(!1===c&&Wt(r)&&n!==r)return null}}catch(u){o.e(u)}finally{o.f()}return!1}function Yr(e,t,n,r){var a=t._rootScopes,o=zr(t._fallback,n,r),i=[].concat(Object(oe.a)(e),Object(oe.a)(a)),c=new Set;c.add(r);var l=Wr(c,i,n,o||n);return null!==l&&((!Wt(o)||o===n||null!==(l=Wr(c,i,o,l)))&&Fr(Array.from(c),[""],a,o,function(){return function(e,t,n){var r=e._getTarget();t in r||(r[t]={});var a=r[t];if(St(a)&&_t(n))return n;return a}(t,n,r)}))}function Wr(e,t,n,r){for(;n;)n=qr(e,t,n,r);return n}function Ur(e,t){var n,r=gt(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a){var o=a[e];if(Wt(o))return o}}}catch(i){r.e(i)}finally{r.f()}}function Xr(e){var t=e._keys;return t||(t=e._keys=function(e){var t,n=new Set,r=gt(e);try{for(r.s();!(t=r.n()).done;){var a,o=t.value,i=gt(Object.keys(o).filter(function(e){return!e.startsWith("_")}));try{for(i.s();!(a=i.n()).done;){var c=a.value;n.add(c)}}catch(l){i.e(l)}finally{i.f()}}}catch(l){r.e(l)}finally{r.f()}return Array.from(n)}(e._scopes)),t}var Qr=Number.EPSILON||1e-14,Kr=function(e,t){return t<e.length&&!e[t].skip&&e[t]},Jr=function(e){return"x"===e?"y":"x"};function Zr(e,t,n,r){var a=e.skip?t:e,o=t,i=n.skip?t:n,c=dn(o,a),l=dn(i,o),u=c/(c+l),s=l/(c+l),f=r*(u=isNaN(u)?0:u),d=r*(s=isNaN(s)?0:s);return{previous:{x:o.x-f*(i.x-a.x),y:o.y-f*(i.y-a.y)},next:{x:o.x+d*(i.x-a.x),y:o.y+d*(i.y-a.y)}}}function $r(e){var t,n,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",o=Jr(a),i=e.length,c=Array(i).fill(0),l=Array(i),u=Kr(e,0);for(t=0;t<i;++t)if(n=r,r=u,u=Kr(e,t+1),r){if(u){var s=u[a]-r[a];c[t]=0!==s?(u[o]-r[o])/s:0}l[t]=n?u?rn(c[t-1])!==rn(c[t])?0:(c[t-1]+c[t])/2:c[t-1]:c[t]}!function(e,t,n){for(var r,a,o,i,c,l=e.length,u=Kr(e,0),s=0;s<l-1;++s)c=u,u=Kr(e,s+1),c&&u&&(cn(t[s],0,Qr)?n[s]=n[s+1]=0:(r=n[s]/t[s],a=n[s+1]/t[s],(i=Math.pow(r,2)+Math.pow(a,2))<=9||(o=3/Math.sqrt(i),n[s]=r*o*t[s],n[s+1]=a*o*t[s])))}(e,c,l),function(e,t){for(var n,r,a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x",i=Jr(o),c=e.length,l=Kr(e,0),u=0;u<c;++u)if(r=a,a=l,l=Kr(e,u+1),a){var s=a[o],f=a[i];r&&(n=(s-r[o])/3,a["cp1".concat(o)]=s-n,a["cp1".concat(i)]=f-n*t[u]),l&&(n=(l[o]-s)/3,a["cp2".concat(o)]=s+n,a["cp2".concat(i)]=f+n*t[u])}}(e,l,a)}function ea(e,t,n){return Math.max(Math.min(e,n),t)}function ta(e,t,n,r,a){var o,i,c,l;if(t.spanGaps&&(e=e.filter(function(e){return!e.skip})),"monotone"===t.cubicInterpolationMode)$r(e,a);else{var u=r?e[e.length-1]:e[0];for(o=0,i=e.length;o<i;++o)l=Zr(u,c=e[o],e[Math.min(o+1,i-(r?0:1))%i],t.tension),c.cp1x=l.previous.x,c.cp1y=l.previous.y,c.cp2x=l.next.x,c.cp2y=l.next.y,u=c}t.capBezierPoints&&function(e,t){var n,r,a,o,i,c=dr(e[0],t);for(n=0,r=e.length;n<r;++n)i=o,o=c,c=n<r-1&&dr(e[n+1],t),o&&(a=e[n],i&&(a.cp1x=ea(a.cp1x,t.left,t.right),a.cp1y=ea(a.cp1y,t.top,t.bottom)),c&&(a.cp2x=ea(a.cp2x,t.left,t.right),a.cp2y=ea(a.cp2y,t.top,t.bottom)))}(e,n)}function na(){return"undefined"!==typeof window&&"undefined"!==typeof document}function ra(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function aa(e,t,n){var r;return"string"===typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}var oa=function(e){return window.getComputedStyle(e,null)};var ia=["top","right","bottom","left"];function ca(e,t,n){var r={};n=n?"-"+n:"";for(var a=0;a<4;a++){var o=ia[a];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}var la=function(e,t,n){return(e>0||t>0)&&(!n||!n.shadowRoot)};function ua(e,t){var n=t.canvas,r=t.currentDevicePixelRatio,a=oa(n),o="border-box"===a.boxSizing,i=ca(a,"padding"),c=ca(a,"border","width"),l=function(e,t){var n,r,a=e.native||e,o=a.touches,i=o&&o.length?o[0]:a,c=i.offsetX,l=i.offsetY,u=!1;if(la(c,l,a.target))n=c,r=l;else{var s=t.getBoundingClientRect();n=i.clientX-s.left,r=i.clientY-s.top,u=!0}return{x:n,y:r,box:u}}(e,n),u=l.x,s=l.y,f=l.box,d=i.left+(f&&c.left),h=i.top+(f&&c.top),p=t.width,m=t.height;return o&&(p-=i.width+c.width,m-=i.height+c.height),{x:Math.round((u-d)/p*n.width/r),y:Math.round((s-h)/m*n.height/r)}}var sa=function(e){return Math.round(10*e)/10};function fa(e,t,n,r){var a=oa(e),o=ca(a,"margin"),i=aa(a.maxWidth,e,"clientWidth")||Jt,c=aa(a.maxHeight,e,"clientHeight")||Jt,l=function(e,t,n){var r,a;if(void 0===t||void 0===n){var o=ra(e);if(o){var i=o.getBoundingClientRect(),c=oa(o),l=ca(c,"border","width"),u=ca(c,"padding");t=i.width-u.width-l.width,n=i.height-u.height-l.height,r=aa(c.maxWidth,o,"clientWidth"),a=aa(c.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||Jt,maxHeight:a||Jt}}(e,t,n),u=l.width,s=l.height;if("content-box"===a.boxSizing){var f=ca(a,"border","width"),d=ca(a,"padding");u-=d.width+f.width,s-=d.height+f.height}return u=Math.max(0,u-o.width),s=Math.max(0,r?Math.floor(u/r):s-o.height),u=sa(Math.min(u,i,l.maxWidth)),s=sa(Math.min(s,c,l.maxHeight)),u&&!s&&(s=sa(u/2)),{width:u,height:s}}function da(e,t,n){var r=t||1,a=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=a/r,e.width=o/r;var i=e.canvas;return i.style&&(n||!i.style.height&&!i.style.width)&&(i.style.height="".concat(e.height,"px"),i.style.width="".concat(e.width,"px")),(e.currentDevicePixelRatio!==r||i.height!==a||i.width!==o)&&(e.currentDevicePixelRatio=r,i.height=a,i.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0)}var ha=function(){var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(n){}return e}();function pa(e,t){var n=function(e,t){return oa(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function ma(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function va(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function ga(e,t,n,r){var a={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},i=ma(e,a,n),c=ma(a,o,n),l=ma(o,t,n),u=ma(i,c,n),s=ma(c,l,n);return ma(u,s,n)}var ya=new Map;function ba(e,t,n){return function(e,t){t=t||{};var n=e+JSON.stringify(t),r=ya.get(n);return r||(r=new Intl.NumberFormat(e,t),ya.set(n,r)),r}(t,n).format(e)}var wa=function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}},Ea=function(){return{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}};function xa(e,t,n){return e?wa(t,n):Ea()}function Oa(e,t){var n,r;"ltr"!==t&&"rtl"!==t||(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function ja(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function ka(e){return"angle"===e?{between:mn,compare:hn,normalize:pn}:{between:function(e,t,n){return e>=Math.min(t,n)&&e<=Math.max(n,t)},compare:function(e,t){return e-t},normalize:function(e){return e}}}function Sa(e){var t=e.start,n=e.end,r=e.count;return{start:t%r,end:n%r,loop:e.loop&&(n-t+1)%r===0,style:e.style}}function _a(e,t,n){if(!n)return[e];for(var r,a,o,i=n.property,c=n.start,l=n.end,u=t.length,s=ka(i),f=s.compare,d=s.between,h=s.normalize,p=function(e,t,n){var r,a,o=n.property,i=n.start,c=n.end,l=ka(o),u=l.between,s=l.normalize,f=t.length,d=e.start,h=e.end,p=e.loop;if(p){for(d+=f,h+=f,r=0,a=f;r<a&&u(s(t[d%f][o]),i,c);++r)d--,h--;d%=f,h%=f}return h<d&&(h+=f),{start:d,end:h,loop:p,style:e.style}}(e,t,n),m=p.start,v=p.end,g=p.loop,y=p.style,b=[],w=!1,E=null,x=function(){return w||d(c,o,r)&&0!==f(c,o)},O=function(){return!w||0===f(l,r)||d(l,o,r)},j=m,k=m;j<=v;++j)(a=t[j%u]).skip||(r=h(a[i]))!==o&&(w=d(r,c,l),null===E&&x()&&(E=0===f(r,c)?j:k),null!==E&&O()&&(b.push(Sa({start:E,end:j,loop:g,count:u,style:y})),E=null),k=j,o=r);return null!==E&&b.push(Sa({start:E,end:v,loop:g,count:u,style:y})),b}function Ca(e,t){for(var n=[],r=e.segments,a=0;a<r.length;a++){var o=_a(r[a],e.points,t);o.length&&n.push.apply(n,Object(oe.a)(o))}return n}function La(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){var a,o=Aa(e.options),i=n.length,c=[],l=t[0].start,u=l,s=gt(t);try{for(s.s();!(a=s.n()).done;){var f=a.value,d=o,h=n[l%i],p=void 0;for(u=l+1;u<=f.end;u++){var m=n[u%i];Pa(p=Aa(r.setContext({type:"segment",p0:h,p1:m,p0DataIndex:(u-1)%i,p1DataIndex:u%i,datasetIndex:e._datasetIndex})),d)&&(c.push({start:l,end:u-1,loop:f.loop,style:d}),d=p,l=u-1),h=m,d=p}l<u-1&&(c.push({start:l,end:u-1,loop:f.loop,style:p}),l=u-1)}}catch(v){s.e(v)}finally{s.f()}return c}(e,t,n,r):t}function Aa(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Pa(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}function Ma(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return Na(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Na(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw o}}}}function Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ta=new(function(){function e(){Object(mt.a)(this,e),this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}return Object(vt.a)(e,[{key:"_notify",value:function(e,t,n,r){var a=t.listeners[r],o=t.duration;a.forEach(function(r){return r({chart:e,initial:t.initial,numSteps:o,currentStep:Math.min(n-t.start,o)})})}},{key:"_refresh",value:function(){var e=this;e._request||(e._running=!0,e._request=bt.call(window,function(){e._update(),e._request=null,e._running&&e._refresh()}))}},{key:"_update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),t=this,n=0;t._charts.forEach(function(r,a){if(r.running&&r.items.length){for(var o,i=r.items,c=i.length-1,l=!1;c>=0;--c)(o=i[c])._active?(o._total>r.duration&&(r.duration=o._total),o.tick(e),l=!0):(i[c]=i[i.length-1],i.pop());l&&(a.draw(),t._notify(a,r,e,"progress")),i.length||(r.running=!1,t._notify(a,r,e,"complete"),r.initial=!1),n+=i.length}}),t._lastDate=e,0===n&&(t._running=!1)}},{key:"_getAnims",value:function(e){var t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}},{key:"listen",value:function(e,t,n){this._getAnims(e).listeners[t].push(n)}},{key:"add",value:function(e,t){var n;t&&t.length&&(n=this._getAnims(e).items).push.apply(n,Object(oe.a)(t))}},{key:"has",value:function(e){return this._getAnims(e).items.length>0}},{key:"start",value:function(e){var t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(function(e,t){return Math.max(e,t._duration)},0),this._refresh())}},{key:"running",value:function(e){if(!this._running)return!1;var t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}},{key:"stop",value:function(e){var t=this._charts.get(e);if(t&&t.items.length){for(var n=t.items,r=n.length-1;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}}},{key:"remove",value:function(e){return this._charts.delete(e)}}]),e}()),Ia={boolean:function(e,t,n){return n>.5?t:e},color:function(e,t,n){var r=er(e||"transparent"),a=r.valid&&er(t||"transparent");return a&&a.valid?a.mix(r,n).hexString():t},number:function(e,t,n){return e+(t-e)*n}},Fa=function(){function e(t,n,r,a){Object(mt.a)(this,e);var o=n[r];a=Lr([t.to,a,o,t.from]);var i=Lr([t.from,o,a]);this._active=!0,this._fn=t.fn||Ia[t.type||typeof i],this._easing=wn[t.easing]||wn.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=i,this._to=a,this._promises=void 0}return Object(vt.a)(e,[{key:"active",value:function(){return this._active}},{key:"update",value:function(e,t,n){var r=this;if(r._active){r._notify(!1);var a=r._target[r._prop],o=n-r._start,i=r._duration-o;r._start=n,r._duration=Math.floor(Math.max(i,e.duration)),r._total+=o,r._loop=!!e.loop,r._to=Lr([e.to,t,a,e.from]),r._from=Lr([e.from,a,t])}}},{key:"cancel",value:function(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}},{key:"tick",value:function(e){var t,n=this,r=e-n._start,a=n._duration,o=n._prop,i=n._from,c=n._loop,l=n._to;if(n._active=i!==l&&(c||r<a),!n._active)return n._target[o]=l,void n._notify(!0);r<0?n._target[o]=i:(t=r/a%2,t=c&&t>1?2-t:t,t=n._easing(Math.min(1,Math.max(0,t))),n._target[o]=n._fn(i,l,t))}},{key:"wait",value:function(){var e=this._promises||(this._promises=[]);return new Promise(function(t,n){e.push({res:t,rej:n})})}},{key:"_notify",value:function(e){for(var t=e?"res":"rej",n=this._promises||[],r=0;r<n.length;r++)n[r][t]()}}]),e}();ir.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});var Da=Object.keys(ir.animation);ir.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:function(e){return"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}}),ir.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),ir.describe("animations",{_fallback:"animation"}),ir.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:function(e){return 0|e}}}}});var Ra=function(){function e(t,n){Object(mt.a)(this,e),this._chart=t,this._properties=new Map,this.configure(n)}return Object(vt.a)(e,[{key:"configure",value:function(e){if(_t(e)){var t=this._properties;Object.getOwnPropertyNames(e).forEach(function(n){var r=e[n];if(_t(r)){for(var a={},o=0,i=Da;o<i.length;o++){var c=i[o];a[c]=r[c]}(St(r.properties)&&r.properties||[n]).forEach(function(e){e!==n&&t.has(e)||t.set(e,a)})}})}}},{key:"_animateOptions",value:function(e,t){var n=t.options,r=function(e,t){if(!t)return;var n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!r)return[];var a=this._createAnimations(r,n);return n.$shared&&function(e,t){for(var n=[],r=Object.keys(t),a=0;a<r.length;a++){var o=e[r[a]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(e.options.$animations,n).then(function(){e.options=n},function(){}),a}},{key:"_createAnimations",value:function(e,t){var n,r=this._properties,a=[],o=e.$animations||(e.$animations={}),i=Object.keys(t),c=Date.now();for(n=i.length-1;n>=0;--n){var l=i[n];if("$"!==l.charAt(0))if("options"!==l){var u=t[l],s=o[l],f=r.get(l);if(s){if(f&&s.active()){s.update(f,u,c);continue}s.cancel()}f&&f.duration?(o[l]=s=new Fa(f,e,l,u),a.push(s)):e[l]=u}else a.push.apply(a,Object(oe.a)(this._animateOptions(e,t)))}return a}},{key:"update",value:function(e,t){if(0!==this._properties.size){var n=this._createAnimations(e,t);return n.length?(Ta.add(this._chart,n),!0):void 0}Object.assign(e,t)}}]),e}();function Ga(e,t){var n=e&&e.options||{},r=n.reverse,a=void 0===n.min?t:0,o=void 0===n.max?t:0;return{start:r?o:a,end:r?a:o}}function Ba(e,t){var n,r,a=[],o=e._getSortedDatasetMetas(t);for(n=0,r=o.length;n<r;++n)a.push(o[n].index);return a}function Ha(e,t,n,r){var a,o,i,c,l=e.keys,u="single"===r.mode;if(null!==t){for(a=0,o=l.length;a<o;++a){if((i=+l[a])===n){if(r.all)continue;break}c=e.values[i],Ct(c)&&(u||0===t||rn(t)===rn(c))&&(t+=c)}return t}}function za(e,t){var n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function Va(e,t,n){var r=e[t]||(e[t]={});return r[n]||(r[n]={})}function qa(e,t,n){var r,a=Ma(t.getMatchingVisibleMetas("bar").reverse());try{for(a.s();!(r=a.n()).done;){var o=r.value,i=e[o.index];if(n&&i>0||!n&&i<0)return o.index}}catch(c){a.e(c)}finally{a.f()}return null}function Ya(e,t){for(var n,r=e.chart,a=e._cachedMeta,o=r._stacks||(r._stacks={}),i=a.iScale,c=a.vScale,l=a.index,u=i.axis,s=c.axis,f=function(e,t,n){return"".concat(e.id,".").concat(t.id,".").concat(n.stack||n.type)}(i,c,a),d=t.length,h=0;h<d;++h){var p=t[h],m=p[u],v=p[s];(n=(p._stacks||(p._stacks={}))[s]=Va(o,f,m))[l]=v,n._top=qa(n,c,!0),n._bottom=qa(n,c,!1)}}function Wa(e,t){var n=e.scales;return Object.keys(n).filter(function(e){return n[e].axis===t}).shift()}function Ua(e,t){var n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){var a,o=Ma(t=t||e._parsed);try{for(o.s();!(a=o.n()).done;){var i=a.value._stacks;if(!i||void 0===i[r]||void 0===i[r][n])return;delete i[r][n]}}catch(c){o.e(c)}finally{o.f()}}}var Xa=function(e){return"reset"===e||"none"===e},Qa=function(e,t){return t?e:Object.assign({},e)},Ka=function(){function e(t,n){Object(mt.a)(this,e),this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.$context=void 0,this._syncList=[],this.initialize()}return Object(vt.a)(e,[{key:"initialize",value:function(){var e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=za(e.vScale,e),this.addElements()}},{key:"updateIndex",value:function(e){this.index!==e&&Ua(this._cachedMeta),this.index=e}},{key:"linkScales",value:function(){var e=this,t=e.chart,n=e._cachedMeta,r=e.getDataset(),a=function(e,t,n,r){return"x"===e?t:"r"===e?r:n},o=n.xAxisID=At(r.xAxisID,Wa(t,"x")),i=n.yAxisID=At(r.yAxisID,Wa(t,"y")),c=n.rAxisID=At(r.rAxisID,Wa(t,"r")),l=n.indexAxis,u=n.iAxisID=a(l,o,i,c),s=n.vAxisID=a(l,i,o,c);n.xScale=e.getScaleForId(o),n.yScale=e.getScaleForId(i),n.rScale=e.getScaleForId(c),n.iScale=e.getScaleForId(u),n.vScale=e.getScaleForId(s)}},{key:"getDataset",value:function(){return this.chart.data.datasets[this.index]}},{key:"getMeta",value:function(){return this.chart.getDatasetMeta(this.index)}},{key:"getScaleForId",value:function(e){return this.chart.scales[e]}},{key:"_getOtherScale",value:function(e){var t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}},{key:"reset",value:function(){this._update("reset")}},{key:"_destroy",value:function(){var e=this._cachedMeta;this._data&&Tr(this._data,this),e._stacked&&Ua(e)}},{key:"_dataCheck",value:function(){var e,t,n=this,r=n.getDataset(),a=r.data||(r.data=[]),o=n._data;if(_t(a))n._data=function(e){var t,n,r,a=Object.keys(e),o=new Array(a.length);for(t=0,n=a.length;t<n;++t)r=a[t],o[t]={x:r,y:e[r]};return o}(a);else if(o!==a){if(o){Tr(o,n);var i=n._cachedMeta;Ua(i),i._parsed=[]}a&&Object.isExtensible(a)&&(t=n,(e=a)._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Nr.forEach(function(t){var n="_onData"+Yt(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];var i=r.apply(this,a);return e._chartjs.listeners.forEach(function(e){"function"===typeof e[n]&&e[n].apply(e,a)}),i}})}))),n._syncList=[],n._data=a}}},{key:"addElements",value:function(){var e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}},{key:"buildOrUpdateElements",value:function(e){var t=this,n=t._cachedMeta,r=t.getDataset(),a=!1;t._dataCheck();var o=n._stacked;n._stacked=za(n.vScale,n),n.stack!==r.stack&&(a=!0,Ua(n),n.stack=r.stack),t._resyncElements(e),(a||o!==n._stacked)&&Ya(t,n._parsed)}},{key:"configure",value:function(){var e=this,t=e.chart.config,n=t.datasetScopeKeys(e._type),r=t.getOptionScopes(e.getDataset(),n,!0);e.options=t.createResolver(r,e.getContext()),e._parsing=e.options.parsing}},{key:"parse",value:function(e,t){var n,r,a,o=this,i=o._cachedMeta,c=o._data,l=i.iScale,u=i._stacked,s=l.axis,f=0===e&&t===c.length||i._sorted,d=e>0&&i._parsed[e-1];if(!1===o._parsing)i._parsed=c,i._sorted=!0,a=c;else{a=St(c[e])?o.parseArrayData(i,c,e,t):_t(c[e])?o.parseObjectData(i,c,e,t):o.parsePrimitiveData(i,c,e,t);for(n=0;n<t;++n)i._parsed[n+e]=r=a[n],f&&((null===r[s]||d&&r[s]<d[s])&&(f=!1),d=r);i._sorted=f}u&&Ya(o,a)}},{key:"parsePrimitiveData",value:function(e,t,n,r){var a,o,i,c=e.iScale,l=e.vScale,u=c.axis,s=l.axis,f=c.getLabels(),d=c===l,h=new Array(r);for(a=0,o=r;a<o;++a){var p;i=a+n,h[a]=(p={},Object(se.a)(p,u,d||c.parse(f[i],i)),Object(se.a)(p,s,l.parse(t[i],i)),p)}return h}},{key:"parseArrayData",value:function(e,t,n,r){var a,o,i,c,l=e.xScale,u=e.yScale,s=new Array(r);for(a=0,o=r;a<o;++a)c=t[i=a+n],s[a]={x:l.parse(c[0],i),y:u.parse(c[1],i)};return s}},{key:"parseObjectData",value:function(e,t,n,r){var a,o,i,c,l=e.xScale,u=e.yScale,s=this._parsing,f=s.xAxisKey,d=void 0===f?"x":f,h=s.yAxisKey,p=void 0===h?"y":h,m=new Array(r);for(a=0,o=r;a<o;++a)c=t[i=a+n],m[a]={x:l.parse(qt(c,d),i),y:u.parse(qt(c,p),i)};return m}},{key:"getParsed",value:function(e){return this._cachedMeta._parsed[e]}},{key:"getDataElement",value:function(e){return this._cachedMeta.data[e]}},{key:"applyStack",value:function(e,t,n){var r=this.chart,a=this._cachedMeta,o=t[e.axis];return Ha({keys:Ba(r,!0),values:t._stacks[e.axis]},o,a.index,{mode:n})}},{key:"updateRangeFromParsed",value:function(e,t,n,r){var a=n[t.axis],o=null===a?NaN:a,i=r&&n._stacks[t.axis];r&&i&&(r.values=i,e.min=Math.min(e.min,o),e.max=Math.max(e.max,o),o=Ha(r,a,this._cachedMeta.index,{all:!0})),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}},{key:"getMinMax",value:function(e,t){var n,r,a,o,i=this,c=i._cachedMeta,l=c._parsed,u=c._sorted&&e===c.iScale,s=l.length,f=i._getOtherScale(e),d=t&&c._stacked&&{keys:Ba(i.chart,!0),values:null},h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},p=function(e){var t=e.getUserBounds(),n=t.min,r=t.max,a=t.minDefined,o=t.maxDefined;return{min:a?n:Number.NEGATIVE_INFINITY,max:o?r:Number.POSITIVE_INFINITY}}(f),m=p.min,v=p.max;function g(){return a=l[n],r=a[e.axis],o=a[f.axis],!Ct(r)||m>o||v<o}for(n=0;n<s&&(g()||(i.updateRangeFromParsed(h,e,a,d),!u));++n);if(u)for(n=s-1;n>=0;--n)if(!g()){i.updateRangeFromParsed(h,e,a,d);break}return h}},{key:"getAllParsedValues",value:function(e){var t,n,r,a=this._cachedMeta._parsed,o=[];for(t=0,n=a.length;t<n;++t)r=a[t][e.axis],Ct(r)&&o.push(r);return o}},{key:"getMaxOverflow",value:function(){return!1}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.iScale,r=t.vScale,a=this.getParsed(e);return{label:n?""+n.getLabelForValue(a[n.axis]):"",value:r?""+r.getLabelForValue(a[r.axis]):""}}},{key:"_update",value:function(e){var t=this,n=t._cachedMeta;t.configure(),t._cachedDataOpts={},t.update(e||"default"),n._clip=function(e){var t,n,r,a;return _t(e)?(t=e.top,n=e.right,r=e.bottom,a=e.left):t=n=r=a=e,{top:t,right:n,bottom:r,left:a,disabled:!1===e}}(At(t.options.clip,function(e,t,n){if(!1===n)return!1;var r=Ga(e,n),a=Ga(t,n);return{top:a.end,right:r.end,bottom:a.start,left:r.start}}(n.xScale,n.yScale,t.getMaxOverflow())))}},{key:"update",value:function(e){}},{key:"draw",value:function(){var e,t=this,n=t._ctx,r=t.chart,a=t._cachedMeta,o=a.data||[],i=r.chartArea,c=[],l=t._drawStart||0,u=t._drawCount||o.length-l;for(a.dataset&&a.dataset.draw(n,i,l,u),e=l;e<l+u;++e){var s=o[e];s.hidden||(s.active?c.push(s):s.draw(n,i))}for(e=0;e<c.length;++e)c[e].draw(n,i)}},{key:"getStyle",value:function(e,t){var n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}},{key:"getContext",value:function(e,t,n){var r,a=this,o=a.getDataset();if(e>=0&&e<a._cachedMeta.data.length){var i=a._cachedMeta.data[e];(r=i.$context||(i.$context=function(e,t,n){return Object.assign(Object.create(e),{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(a.getContext(),e,i))).parsed=a.getParsed(e),r.raw=o.data[e],r.index=r.dataIndex=e}else(r=a.$context||(a.$context=function(e,t){return Object.assign(Object.create(e),{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(a.chart.getContext(),a.index))).dataset=o,r.index=r.datasetIndex=a.index;return r.active=!!t,r.mode=n,r}},{key:"resolveDatasetElementOptions",value:function(e){return this._resolveElementOptions(this.datasetElementType.id,e)}},{key:"resolveDataElementOptions",value:function(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}},{key:"_resolveElementOptions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2?arguments[2]:void 0,r=this,a="active"===t,o=r._cachedDataOpts,i=e+"-"+t,c=o[i],l=r.enableOptionSharing&&Wt(n);if(c)return Qa(c,l);var u=r.chart.config,s=u.datasetElementScopeKeys(r._type,e),f=a?["".concat(e,"Hover"),"hover",e,""]:[e,""],d=u.getOptionScopes(r.getDataset(),s),h=Object.keys(ir.elements[e]),p=u.resolveNamedOptions(d,h,function(){return r.getContext(n,a)},f);return p.$shared&&(p.$shared=l,o[i]=Object.freeze(Qa(p,l))),p}},{key:"_resolveAnimations",value:function(e,t,n){var r,a=this,o=a.chart,i=a._cachedDataOpts,c="animation-".concat(t),l=i[c];if(l)return l;if(!1!==o.options.animation){var u=a.chart.config,s=u.datasetAnimationScopeKeys(a._type,t),f=u.getOptionScopes(a.getDataset(),s);r=u.createResolver(f,a.getContext(e,n,t))}var d=new Ra(o,r&&r.animations);return r&&r._cacheable&&(i[c]=Object.freeze(d)),d}},{key:"getSharedOptions",value:function(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}},{key:"includeOptions",value:function(e,t){return!t||Xa(e)||this.chart._animationsDisabled}},{key:"updateElement",value:function(e,t,n,r){Xa(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}},{key:"updateSharedOptions",value:function(e,t,n){e&&!Xa(t)&&this._resolveAnimations(void 0,t).update(e,n)}},{key:"_setStyle",value:function(e,t,n,r){e.active=r;var a=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(a)||a})}},{key:"removeHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!1)}},{key:"setHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!0)}},{key:"_removeDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}},{key:"_setDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}},{key:"_resyncElements",value:function(e){var t,n=this,r=n._data,o=n._cachedMeta.data,i=Ma(n._syncList);try{for(i.s();!(t=i.n()).done;){var c=Object(a.a)(t.value,3),l=c[0],u=c[1],s=c[2];n[l](u,s)}}catch(p){i.e(p)}finally{i.f()}n._syncList=[];var f=o.length,d=r.length,h=Math.min(d,f);h&&n.parse(0,h),d>f?n._insertElements(f,d-f,e):d<f&&n._removeElements(d,f-d)}},{key:"_insertElements",value:function(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=this,o=a._cachedMeta,i=o.data,c=e+t,l=function(e){for(e.length+=t,n=e.length-1;n>=c;n--)e[n]=e[n-t]};for(l(i),n=e;n<c;++n)i[n]=new a.dataElementType;a._parsing&&l(o._parsed),a.parse(e,t),r&&a.updateElements(i,e,t,"reset")}},{key:"updateElements",value:function(e,t,n,r){}},{key:"_removeElements",value:function(e,t){var n=this._cachedMeta;if(this._parsing){var r=n._parsed.splice(e,t);n._stacked&&Ua(n,r)}n.data.splice(e,t)}},{key:"_onDataPush",value:function(){var e=arguments.length;this._syncList.push(["_insertElements",this.getDataset().data.length-e,e])}},{key:"_onDataPop",value:function(){this._syncList.push(["_removeElements",this._cachedMeta.data.length-1,1])}},{key:"_onDataShift",value:function(){this._syncList.push(["_removeElements",0,1])}},{key:"_onDataSplice",value:function(e,t){this._syncList.push(["_removeElements",e,t]),this._syncList.push(["_insertElements",e,arguments.length-2])}},{key:"_onDataUnshift",value:function(){this._syncList.push(["_insertElements",0,arguments.length])}}]),e}();function Ja(e){var t,n,r,a,o=function(e){if(!e._cache.$bar){for(var t=e.getMatchingVisibleMetas("bar"),n=[],r=0,a=t.length;r<a;r++)n=n.concat(t[r].controller.getAllParsedValues(e));e._cache.$bar=Ir(n.sort(function(e,t){return e-t}))}return e._cache.$bar}(e),i=e._length,c=function(){32767!==r&&-32768!==r&&(Wt(a)&&(i=Math.min(i,Math.abs(r-a)||i)),a=r)};for(t=0,n=o.length;t<n;++t)r=e.getPixelForValue(o[t]),c();for(a=void 0,t=0,n=e.ticks.length;t<n;++t)r=e.getPixelForTick(t),c();return i}function Za(e,t,n,r){return St(e)?function(e,t,n,r){var a=n.parse(e[0],r),o=n.parse(e[1],r),i=Math.min(a,o),c=Math.max(a,o),l=i,u=c;Math.abs(i)>Math.abs(c)&&(l=c,u=i),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:a,end:o,min:i,max:c}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function $a(e,t,n,r){var a,o,i,c,l=e.iScale,u=e.vScale,s=l.getLabels(),f=l===u,d=[];for(a=n,o=n+r;a<o;++a)c=t[a],(i={})[l.axis]=f||l.parse(s[a],a),d.push(Za(c,i,u,a));return d}function eo(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function to(e,t,n,r){var a=t.borderSkipped,o={};if(a){var i=function(e){var t,n,r,a,o;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(a="end",o="start"):(a="start",o="end"),{start:n,end:r,reverse:t,top:a,bottom:o}}(e),c=i.start,l=i.end,u=i.reverse,s=i.top,f=i.bottom;"middle"===a&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?a=s:(n._bottom||0)===r?a=f:(o[no(f,c,l,u)]=!0,a=s)),o[no(a,c,l,u)]=!0,e.borderSkipped=o}else e.borderSkipped=o}function no(e,t,n,r){var a,o,i;return r?(i=n,e=ro(e=(a=e)===(o=t)?i:a===i?o:a,n,t)):e=ro(e,t,n),e}function ro(e,t,n){return"start"===e?t:"end"===e?n:e}Ka.defaults={},Ka.prototype.datasetElementType=null,Ka.prototype.dataElementType=null;var ao=function(e){function t(){return Object(mt.a)(this,t),Object(ft.a)(this,Object(dt.a)(t).apply(this,arguments))}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"parsePrimitiveData",value:function(e,t,n,r){return $a(e,t,n,r)}},{key:"parseArrayData",value:function(e,t,n,r){return $a(e,t,n,r)}},{key:"parseObjectData",value:function(e,t,n,r){var a,o,i,c,l=e.iScale,u=e.vScale,s=this._parsing,f=s.xAxisKey,d=void 0===f?"x":f,h=s.yAxisKey,p=void 0===h?"y":h,m="x"===l.axis?d:p,v="x"===u.axis?d:p,g=[];for(a=n,o=n+r;a<o;++a)c=t[a],(i={})[l.axis]=l.parse(qt(c,m),a),g.push(Za(qt(c,v),i,u,a));return g}},{key:"updateRangeFromParsed",value:function(e,n,r,a){ht(Object(dt.a)(t.prototype),"updateRangeFromParsed",this).call(this,e,n,r,a);var o=r._custom;o&&n===this._cachedMeta.vScale&&(e.min=Math.min(e.min,o.min),e.max=Math.max(e.max,o.max))}},{key:"getMaxOverflow",value:function(){return 0}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.iScale,r=t.vScale,a=this.getParsed(e),o=a._custom,i=eo(o)?"["+o.start+", "+o.end+"]":""+r.getLabelForValue(a[r.axis]);return{label:""+n.getLabelForValue(a[n.axis]),value:i}}},{key:"initialize",value:function(){this.enableOptionSharing=!0,ht(Object(dt.a)(t.prototype),"initialize",this).call(this),this._cachedMeta.stack=this.getDataset().stack}},{key:"update",value:function(e){var t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}},{key:"updateElements",value:function(e,t,n,r){var a=this,o="reset"===r,i=a.index,c=a._cachedMeta.vScale,l=c.getBasePixel(),u=c.isHorizontal(),s=a._getRuler(),f=a.resolveDataElementOptions(t,r),d=a.getSharedOptions(f),h=a.includeOptions(r,d);a.updateSharedOptions(d,r,f);for(var p=t;p<t+n;p++){var m=a.getParsed(p),v=o||kt(m[c.axis])?{base:l,head:l}:a._calculateBarValuePixels(p),g=a._calculateBarIndexPixels(p,s),y=(m._stacks||{})[c.axis],b={horizontal:u,base:v.base,enableBorderRadius:!y||eo(m._custom)||i===y._top||i===y._bottom,x:u?v.head:g.center,y:u?g.center:v.head,height:u?g.size:Math.abs(v.size),width:u?Math.abs(v.size):g.size};h&&(b.options=d||a.resolveDataElementOptions(p,e[p].active?"active":r)),to(b,b.options||e[p].options,y,i),a.updateElement(e[p],p,b,r)}}},{key:"_getStacks",value:function(e,t){var n,r,a=this._cachedMeta.iScale,o=a.getMatchingVisibleMetas(this._type),i=a.options.stacked,c=o.length,l=[];for(n=0;n<c;++n)if((r=o[n]).controller.options.grouped){if("undefined"!==typeof t){var u=r.controller.getParsed(t)[r.controller._cachedMeta.vScale.axis];if(kt(u)||isNaN(u))continue}if((!1===i||-1===l.indexOf(r.stack)||void 0===i&&void 0===r.stack)&&l.push(r.stack),r.index===e)break}return l.length||l.push(void 0),l}},{key:"_getStackCount",value:function(e){return this._getStacks(void 0,e).length}},{key:"_getStackIndex",value:function(e,t,n){var r=this._getStacks(e,n),a=void 0!==t?r.indexOf(t):-1;return-1===a?r.length-1:a}},{key:"_getRuler",value:function(){var e,t,n=this.options,r=this._cachedMeta,a=r.iScale,o=[];for(e=0,t=r.data.length;e<t;++e)o.push(a.getPixelForValue(this.getParsed(e)[a.axis],e));var i=n.barThickness;return{min:i||Ja(a),pixels:o,start:a._startPixel,end:a._endPixel,stackCount:this._getStackCount(),scale:a,grouped:n.grouped,ratio:i?1:n.categoryPercentage*n.barPercentage}}},{key:"_calculateBarValuePixels",value:function(e){var t,n,r=this,a=r._cachedMeta,o=a.vScale,i=a._stacked,c=r.options,l=c.base,u=c.minBarLength,s=l||0,f=r.getParsed(e),d=f._custom,h=eo(d),p=f[o.axis],m=0,v=i?r.applyStack(o,f,i):p;v!==p&&(m=v-p,v=p),h&&(p=d.barStart,v=d.barEnd-d.barStart,0!==p&&rn(p)!==rn(d.barEnd)&&(m=0),m+=p);var g=kt(l)||h?m:l,y=o.getPixelForValue(g);if(n=(t=r.chart.getDataVisibility(e)?o.getPixelForValue(m+v):y)-y,Math.abs(n)<u&&(n=function(e,t,n){return 0!==e?rn(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(n,o,s)*u,p===s&&(y-=n/2),t=y+n),y===o.getPixelForValue(s)){var b=rn(n)*o.getLineWidthForValue(s)/2;y+=b,n-=b}return{size:n,base:y,head:t,center:t+n/2}}},{key:"_calculateBarIndexPixels",value:function(e,t){var n,r,a=this,o=t.scale,i=a.options,c=i.skipNull,l=At(i.maxBarThickness,1/0);if(t.grouped){var u=c?a._getStackCount(e):t.stackCount,s="flex"===i.barThickness?function(e,t,n,r){var a=t.pixels,o=a[e],i=e>0?a[e-1]:null,c=e<a.length-1?a[e+1]:null,l=n.categoryPercentage;null===i&&(i=o-(null===c?t.end-t.start:c-o)),null===c&&(c=o+o-i);var u=o-(o-Math.min(i,c))/2*l;return{chunk:Math.abs(c-i)/2*l/r,ratio:n.barPercentage,start:u}}(e,t,i,u):function(e,t,n,r){var a,o,i=n.barThickness;return kt(i)?(a=t.min*n.categoryPercentage,o=n.barPercentage):(a=i*r,o=1),{chunk:a/r,ratio:o,start:t.pixels[e]-a/2}}(e,t,i,u),f=a._getStackIndex(a.index,a._cachedMeta.stack,c?e:void 0);n=s.start+s.chunk*f+s.chunk/2,r=Math.min(l,s.chunk*s.ratio)}else n=o.getPixelForValue(a.getParsed(e)[o.axis],e),r=Math.min(l,t.min*t.ratio);return{base:n-r/2,head:n+r/2,center:n,size:r}}},{key:"draw",value:function(){for(var e=this._cachedMeta,t=e.vScale,n=e.data,r=n.length,a=0;a<r;++a)null!==this.getParsed(a)[t.axis]&&n[a].draw(this._ctx)}}]),t}(Ka);ao.id="bar",ao.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},ao.overrides={interaction:{mode:"index"},scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};var oo=function(e){function t(){return Object(mt.a)(this,t),Object(ft.a)(this,Object(dt.a)(t).apply(this,arguments))}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"initialize",value:function(){this.enableOptionSharing=!0,ht(Object(dt.a)(t.prototype),"initialize",this).call(this)}},{key:"parseObjectData",value:function(e,t,n,r){var a,o,i,c=e.xScale,l=e.yScale,u=this._parsing,s=u.xAxisKey,f=void 0===s?"x":s,d=u.yAxisKey,h=void 0===d?"y":d,p=[];for(a=n,o=n+r;a<o;++a)i=t[a],p.push({x:c.parse(qt(i,f),a),y:l.parse(qt(i,h),a),_custom:i&&i.r&&+i.r});return p}},{key:"getMaxOverflow",value:function(){for(var e=this._cachedMeta,t=e.data,n=e._parsed,r=0,a=t.length-1;a>=0;--a)r=Math.max(r,t[a].size()/2,n[a]._custom);return r>0&&r}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.xScale,r=t.yScale,a=this.getParsed(e),o=n.getLabelForValue(a.x),i=r.getLabelForValue(a.y),c=a._custom;return{label:t.label,value:"("+o+", "+i+(c?", "+c:"")+")"}}},{key:"update",value:function(e){var t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}},{key:"updateElements",value:function(e,t,n,r){for(var a=this,o="reset"===r,i=a._cachedMeta,c=i.iScale,l=i.vScale,u=a.resolveDataElementOptions(t,r),s=a.getSharedOptions(u),f=a.includeOptions(r,s),d=c.axis,h=l.axis,p=t;p<t+n;p++){var m=e[p],v=!o&&a.getParsed(p),g={},y=g[d]=o?c.getPixelForDecimal(.5):c.getPixelForValue(v[d]),b=g[h]=o?l.getBasePixel():l.getPixelForValue(v[h]);g.skip=isNaN(y)||isNaN(b),f&&(g.options=a.resolveDataElementOptions(p,m.active?"active":r),o&&(g.options.radius=0)),a.updateElement(m,p,g,r)}a.updateSharedOptions(s,r,u)}},{key:"resolveDataElementOptions",value:function(e,n){var r=this.getParsed(e),a=ht(Object(dt.a)(t.prototype),"resolveDataElementOptions",this).call(this,e,n);a.$shared&&(a=Object.assign({},a,{$shared:!1}));var o=a.radius;return"active"!==n&&(a.radius=0),a.radius+=At(r&&r._custom,o),a}}]),t}(Ka);oo.id="bubble",oo.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},oo.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:function(){return""}}}}};var io=function(e){function t(e,n){var r;return Object(mt.a)(this,t),(r=Object(ft.a)(this,Object(dt.a)(t).call(this,e,n))).enableOptionSharing=!0,r.innerRadius=void 0,r.outerRadius=void 0,r.offsetX=void 0,r.offsetY=void 0,r}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"linkScales",value:function(){}},{key:"parse",value:function(e,t){var n,r,a=this.getDataset().data,o=this._cachedMeta;for(n=e,r=e+t;n<r;++n)o._parsed[n]=+a[n]}},{key:"_getRotation",value:function(){return un(this.options.rotation-90)}},{key:"_getCircumference",value:function(){return un(this.options.circumference)}},{key:"_getRotationExtents",value:function(){for(var e=Qt,t=-Qt,n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){var r=this.chart.getDatasetMeta(n).controller,a=r._getRotation(),o=r._getCircumference();e=Math.min(e,a),t=Math.max(t,a+o)}return{rotation:e,circumference:t-e}}},{key:"update",value:function(e){var t,n,r=this,a=r.chart.chartArea,o=r._cachedMeta,i=o.data,c=r.getMaxBorderWidth()+r.getMaxOffset(i)+r.options.spacing,l=Math.max((Math.min(a.width,a.height)-c)/2,0),u=Math.min((t=r.options.cutout,n=l,"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100:t/n),1),s=r._getRingWeight(r.index),f=r._getRotationExtents(),d=f.circumference,h=function(e,t,n){var r=1,a=1,o=0,i=0;if(t<Qt){var c=e,l=c+t,u=Math.cos(c),s=Math.sin(c),f=Math.cos(l),d=Math.sin(l),h=function(e,t,r){return mn(e,c,l,!0)?1:Math.max(t,t*n,r,r*n)},p=function(e,t,r){return mn(e,c,l,!0)?-1:Math.min(t,t*n,r,r*n)},m=h(0,u,f),v=h($t,s,d),g=p(Xt,u,f),y=p(Xt+$t,s,d);r=(m-g)/2,a=(v-y)/2,o=-(m+g)/2,i=-(v+y)/2}return{ratioX:r,ratioY:a,offsetX:o,offsetY:i}}(f.rotation,d,u),p=h.ratioX,m=h.ratioY,v=h.offsetX,g=h.offsetY,y=(a.width-c)/p,b=(a.height-c)/m,w=Math.max(Math.min(y,b)/2,0),E=Pt(r.options.radius,w),x=(E-Math.max(E*u,0))/r._getVisibleDatasetWeightTotal();r.offsetX=v*E,r.offsetY=g*E,o.total=r.calculateTotal(),r.outerRadius=E-x*r._getRingWeightOffset(r.index),r.innerRadius=Math.max(r.outerRadius-x*s,0),r.updateElements(i,0,i.length,e)}},{key:"_circumference",value:function(e,t){var n=this.options,r=this._cachedMeta,a=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===r._parsed[e]||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*a/Qt)}},{key:"updateElements",value:function(e,t,n,r){var a,o=this,i="reset"===r,c=o.chart,l=c.chartArea,u=c.options.animation,s=(l.left+l.right)/2,f=(l.top+l.bottom)/2,d=i&&u.animateScale,h=d?0:o.innerRadius,p=d?0:o.outerRadius,m=o.resolveDataElementOptions(t,r),v=o.getSharedOptions(m),g=o.includeOptions(r,v),y=o._getRotation();for(a=0;a<t;++a)y+=o._circumference(a,i);for(a=t;a<t+n;++a){var b=o._circumference(a,i),w=e[a],E={x:s+o.offsetX,y:f+o.offsetY,startAngle:y,endAngle:y+b,circumference:b,outerRadius:p,innerRadius:h};g&&(E.options=v||o.resolveDataElementOptions(a,w.active?"active":r)),y+=b,o.updateElement(w,a,E,r)}o.updateSharedOptions(v,r,m)}},{key:"calculateTotal",value:function(){var e,t=this._cachedMeta,n=t.data,r=0;for(e=0;e<n.length;e++){var a=t._parsed[e];null===a||isNaN(a)||!this.chart.getDataVisibility(e)||n[e].hidden||(r+=Math.abs(a))}return r}},{key:"calculateCircumference",value:function(e){var t=this._cachedMeta.total;return t>0&&!isNaN(e)?Qt*(Math.abs(e)/t):0}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],a=ba(t._parsed[e],n.options.locale);return{label:r[e]||"",value:a}}},{key:"getMaxBorderWidth",value:function(e){var t,n,r,a,o,i=0,c=this.chart;if(!e)for(t=0,n=c.data.datasets.length;t<n;++t)if(c.isDatasetVisible(t)){e=(r=c.getDatasetMeta(t)).data,(a=r.controller)!==this&&a.configure();break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)"inner"!==(o=a.resolveDataElementOptions(t)).borderAlign&&(i=Math.max(i,o.borderWidth||0,o.hoverBorderWidth||0));return i}},{key:"getMaxOffset",value:function(e){for(var t=0,n=0,r=e.length;n<r;++n){var a=this.resolveDataElementOptions(n);t=Math.max(t,a.offset||0,a.hoverOffset||0)}return t}},{key:"_getRingWeightOffset",value:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}},{key:"_getRingWeight",value:function(e){return Math.max(At(this.chart.data.datasets[e].weight,1),0)}},{key:"_getVisibleDatasetWeightTotal",value:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}]),t}(Ka);io.id="doughnut",io.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},io.descriptors={_scriptable:function(e){return"spacing"!==e},_indexable:function(e){return"spacing"!==e}},io.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels:function(e){var t=e.data;if(t.labels.length&&t.datasets.length){var n=e.legend.options.labels.pointStyle;return t.labels.map(function(t,r){var a=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}})}return[]}},onClick:function(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:function(){return""},label:function(e){var t=e.label,n=": "+e.formattedValue;return St(t)?(t=t.slice())[0]+=n:t+=n,t}}}}};var co=function(e){function t(){return Object(mt.a)(this,t),Object(ft.a)(this,Object(dt.a)(t).apply(this,arguments))}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"initialize",value:function(){this.enableOptionSharing=!0,ht(Object(dt.a)(t.prototype),"initialize",this).call(this)}},{key:"update",value:function(e){var t=this,n=t._cachedMeta,r=n.dataset,a=n.data,o=void 0===a?[]:a,i=n._dataset,c=t.chart._animationsDisabled,l=function(e,t,n){var r=t.length,a=0,o=r;if(e._sorted){var i=e.iScale,c=e._parsed,l=i.axis,u=i.getUserBounds(),s=u.min,f=u.max,d=u.minDefined,h=u.maxDefined;d&&(a=vn(Math.min(Pr(c,i.axis,s).lo,n?r:Pr(t,l,i.getPixelForValue(s)).lo),0,r-1)),o=h?vn(Math.max(Pr(c,i.axis,f).hi+1,n?0:Pr(t,l,i.getPixelForValue(f)).hi+1),a,r)-a:r-a}return{start:a,count:o}}(n,o,c),u=l.start,s=l.count;t._drawStart=u,t._drawCount=s,function(e){var t=e.xScale,n=e.yScale,r=e._scaleRanges,a={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=a,!0;var o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,a),o}(n)&&(u=0,s=o.length),r._datasetIndex=t.index,r._decimated=!!i._decimated,r.points=o;var f=t.resolveDatasetElementOptions(e);t.options.showLine||(f.borderWidth=0),f.segment=t.options.segment,t.updateElement(r,void 0,{animated:!c,options:f},e),t.updateElements(o,u,s,e)}},{key:"updateElements",value:function(e,t,n,r){for(var a=this,o="reset"===r,i=a._cachedMeta,c=i.iScale,l=i.vScale,u=i._stacked,s=a.resolveDataElementOptions(t,r),f=a.getSharedOptions(s),d=a.includeOptions(r,f),h=c.axis,p=l.axis,m=a.options.spanGaps,v=on(m)?m:Number.POSITIVE_INFINITY,g=a.chart._animationsDisabled||o||"none"===r,y=t>0&&a.getParsed(t-1),b=t;b<t+n;++b){var w=e[b],E=a.getParsed(b),x=g?w:{},O=kt(E[p]),j=x[h]=c.getPixelForValue(E[h],b),k=x[p]=o||O?l.getBasePixel():l.getPixelForValue(u?a.applyStack(l,E,u):E[p],b);x.skip=isNaN(j)||isNaN(k)||O,x.stop=b>0&&E[h]-y[h]>v,x.parsed=E,d&&(x.options=f||a.resolveDataElementOptions(b,w.active?"active":r)),g||a.updateElement(w,b,x,r),y=E}a.updateSharedOptions(f,r,s)}},{key:"getMaxOverflow",value:function(){var e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;var a=r[0].size(this.resolveDataElementOptions(0)),o=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,a,o)/2}},{key:"draw",value:function(){var e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),ht(Object(dt.a)(t.prototype),"draw",this).call(this)}}]),t}(Ka);co.id="line",co.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},co.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};var lo=function(e){function t(e,n){var r;return Object(mt.a)(this,t),(r=Object(ft.a)(this,Object(dt.a)(t).call(this,e,n))).innerRadius=void 0,r.outerRadius=void 0,r}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],a=ba(t._parsed[e].r,n.options.locale);return{label:r[e]||"",value:a}}},{key:"update",value:function(e){var t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}},{key:"_updateRadius",value:function(){var e=this,t=e.chart,n=t.chartArea,r=t.options,a=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(a/2,0),i=(o-Math.max(r.cutoutPercentage?o/100*r.cutoutPercentage:1,0))/t.getVisibleDatasetCount();e.outerRadius=o-i*e.index,e.innerRadius=e.outerRadius-i}},{key:"updateElements",value:function(e,t,n,r){var a,o=this,i="reset"===r,c=o.chart,l=o.getDataset(),u=c.options.animation,s=o._cachedMeta.rScale,f=s.xCenter,d=s.yCenter,h=s.getIndexAngle(0)-.5*Xt,p=h,m=360/o.countVisibleElements();for(a=0;a<t;++a)p+=o._computeAngle(a,r,m);for(a=t;a<t+n;a++){var v=e[a],g=p,y=p+o._computeAngle(a,r,m),b=c.getDataVisibility(a)?s.getDistanceFromCenterForValue(l.data[a]):0;p=y,i&&(u.animateScale&&(b=0),u.animateRotate&&(g=y=h));var w={x:f,y:d,innerRadius:0,outerRadius:b,startAngle:g,endAngle:y,options:o.resolveDataElementOptions(a,v.active?"active":r)};o.updateElement(v,a,w,r)}}},{key:"countVisibleElements",value:function(){var e=this,t=this.getDataset(),n=this._cachedMeta,r=0;return n.data.forEach(function(n,a){!isNaN(t.data[a])&&e.chart.getDataVisibility(a)&&r++}),r}},{key:"_computeAngle",value:function(e,t,n){return this.chart.getDataVisibility(e)?un(this.resolveDataElementOptions(e,t).angle||n):0}}]),t}(Ka);lo.id="polarArea",lo.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},lo.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels:function(e){var t=e.data;if(t.labels.length&&t.datasets.length){var n=e.legend.options.labels.pointStyle;return t.labels.map(function(t,r){var a=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}})}return[]}},onClick:function(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:function(){return""},label:function(e){return e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};var uo=function(e){function t(){return Object(mt.a)(this,t),Object(ft.a)(this,Object(dt.a)(t).apply(this,arguments))}return Object(pt.a)(t,e),t}(io);uo.id="pie",uo.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};var so=function(e){function t(){return Object(mt.a)(this,t),Object(ft.a)(this,Object(dt.a)(t).apply(this,arguments))}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}},{key:"update",value:function(e){var t=this,n=t._cachedMeta,r=n.dataset,a=n.data||[],o=n.iScale.getLabels();if(r.points=a,"resize"!==e){var i=t.resolveDatasetElementOptions(e);t.options.showLine||(i.borderWidth=0);var c={_loop:!0,_fullLoop:o.length===a.length,options:i};t.updateElement(r,void 0,c,e)}t.updateElements(a,0,a.length,e)}},{key:"updateElements",value:function(e,t,n,r){for(var a=this.getDataset(),o=this._cachedMeta.rScale,i="reset"===r,c=t;c<t+n;c++){var l=e[c],u=this.resolveDataElementOptions(c,l.active?"active":r),s=o.getPointPositionForValue(c,a.data[c]),f=i?o.xCenter:s.x,d=i?o.yCenter:s.y,h={x:f,y:d,angle:s.angle,skip:isNaN(f)||isNaN(d),options:u};this.updateElement(l,c,h,r)}}}]),t}(Ka);so.id="radar",so.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},so.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};var fo=function(e){function t(){return Object(mt.a)(this,t),Object(ft.a)(this,Object(dt.a)(t).apply(this,arguments))}return Object(pt.a)(t,e),t}(co);fo.id="scatter",fo.defaults={showLine:!1,fill:!1},fo.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:function(){return""},label:function(e){return"("+e.label+", "+e.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var ho=Object.freeze({__proto__:null,BarController:ao,BubbleController:oo,DoughnutController:io,LineController:co,PolarAreaController:lo,PieController:uo,RadarController:so,ScatterController:fo});function po(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var mo=function(){function e(t){Object(mt.a)(this,e),this.options=t||{}}return Object(vt.a)(e,[{key:"formats",value:function(){return po()}},{key:"parse",value:function(e,t){return po()}},{key:"format",value:function(e,t){return po()}},{key:"add",value:function(e,t,n){return po()}},{key:"diff",value:function(e,t,n){return po()}},{key:"startOf",value:function(e,t,n){return po()}},{key:"endOf",value:function(e,t){return po()}}]),e}();mo.override=function(e){Object.assign(mo.prototype,e)};var vo={_date:mo};function go(e,t){return"native"in e?{x:e.x,y:e.y}:ua(e,t)}function yo(e,t,n,r){var a=e.controller,o=e.data,i=e._sorted,c=a._cachedMeta.iScale;if(c&&t===c.axis&&i&&o.length){var l=c._reversePixels?Mr:Pr;if(!r)return l(o,t,n);if(a._sharedOptions){var u=o[0],s="function"===typeof u.getRange&&u.getRange(t);if(s){var f=l(o,t,n-s),d=l(o,t,n+s);return{lo:f.lo,hi:d.hi}}}}return{lo:0,hi:o.length-1}}function bo(e,t,n,r,a){for(var o=e.getSortedVisibleDatasetMetas(),i=n[t],c=0,l=o.length;c<l;++c)for(var u=o[c],s=u.index,f=u.data,d=yo(o[c],t,i,a),h=d.lo,p=d.hi,m=h;m<=p;++m){var v=f[m];v.skip||r(v,s,m)}}function wo(e,t,n,r){var a=[];if(!dr(t,e.chartArea,e._minPadding))return a;return bo(e,n,t,function(e,n,o){e.inRange(t.x,t.y,r)&&a.push({element:e,datasetIndex:n,index:o})},!0),a}function Eo(e,t,n,r,a){var o=function(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){var a=t?Math.abs(e.x-r.x):0,o=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}(n),i=Number.POSITIVE_INFINITY,c=[];if(!dr(t,e.chartArea,e._minPadding))return c;return bo(e,n,t,function(n,l,u){if(!r||n.inRange(t.x,t.y,a)){var s=n.getCenterPoint(a);if(dr(s,e.chartArea,e._minPadding)||n.inRange(t.x,t.y,a)){var f=o(t,s);f<i?(c=[{element:n,datasetIndex:l,index:u}],i=f):f===i&&c.push({element:n,datasetIndex:l,index:u})}}}),c}function xo(e,t,n,r){var a=go(t,e),o=[],i=n.axis,c="x"===i?"inXRange":"inYRange",l=!1;return function(e,t){for(var n,r,a,o=e.getSortedVisibleDatasetMetas(),i=0,c=o.length;i<c;++i){var l=o[i];n=l.index;for(var u=0,s=(r=l.data).length;u<s;++u)(a=r[u]).skip||t(a,n,u)}}(e,function(e,t,n){e[c](a[i],r)&&o.push({element:e,datasetIndex:t,index:n}),e.inRange(a.x,a.y,r)&&(l=!0)}),n.intersect&&!l?[]:o}var Oo={modes:{index:function(e,t,n,r){var a=go(t,e),o=n.axis||"x",i=n.intersect?wo(e,a,o,r):Eo(e,a,o,!1,r),c=[];return i.length?(e.getSortedVisibleDatasetMetas().forEach(function(e){var t=i[0].index,n=e.data[t];n&&!n.skip&&c.push({element:n,datasetIndex:e.index,index:t})}),c):[]},dataset:function(e,t,n,r){var a=go(t,e),o=n.axis||"xy",i=n.intersect?wo(e,a,o,r):Eo(e,a,o,!1,r);if(i.length>0){var c=i[0].datasetIndex,l=e.getDatasetMeta(c).data;i=[];for(var u=0;u<l.length;++u)i.push({element:l[u],datasetIndex:c,index:u})}return i},point:function(e,t,n,r){return wo(e,go(t,e),n.axis||"xy",r)},nearest:function(e,t,n,r){return Eo(e,go(t,e),n.axis||"xy",n.intersect,r)},x:function(e,t,n,r){return n.axis="x",xo(e,t,n,r)},y:function(e,t,n,r){return n.axis="y",xo(e,t,n,r)}}},jo=["left","top","right","bottom"];function ko(e,t){return e.filter(function(e){return e.pos===t})}function So(e,t){return e.filter(function(e){return-1===jo.indexOf(e.pos)&&e.box.axis===t})}function _o(e,t){return e.sort(function(e,n){var r=t?n:e,a=t?e:n;return r.weight===a.weight?r.index-a.index:r.weight-a.weight})}function Co(e,t){var n,r,a,o=function(e){var t,n={},r=Ma(e);try{for(r.s();!(t=r.n()).done;){var a=t.value,o=a.stack,i=a.pos,c=a.stackWeight;if(o&&jo.includes(i)){var l=n[o]||(n[o]={count:0,placed:0,weight:0,size:0});l.count++,l.weight+=c}}}catch(u){r.e(u)}finally{r.f()}return n}(e),i=t.vBoxMaxWidth,c=t.hBoxMaxHeight;for(n=0,r=e.length;n<r;++n){var l=(a=e[n]).box.fullSize,u=o[a.stack],s=u&&a.stackWeight/u.weight;a.horizontal?(a.width=s?s*i:l&&t.availableWidth,a.height=c):(a.width=i,a.height=s?s*c:l&&t.availableHeight)}return o}function Lo(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Ao(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Po(e,t,n,r){var a=n.pos,o=n.box,i=e.maxPadding;if(!_t(a)){n.size&&(e[a]-=n.size);var c=r[n.stack]||{size:0,count:1};c.size=Math.max(c.size,n.horizontal?o.height:o.width),n.size=c.size/c.count,e[a]+=n.size}o.getPadding&&Ao(i,o.getPadding());var l=Math.max(0,t.outerWidth-Lo(i,e,"left","right")),u=Math.max(0,t.outerHeight-Lo(i,e,"top","bottom")),s=l!==e.w,f=u!==e.h;return e.w=l,e.h=u,n.horizontal?{same:s,other:f}:{same:f,other:s}}function Mo(e,t){var n=t.maxPadding;function r(e){var r={left:0,top:0,right:0,bottom:0};return e.forEach(function(e){r[e]=Math.max(t[e],n[e])}),r}return r(e?["left","right"]:["top","bottom"])}function No(e,t,n,r){var a,o,i,c,l,u,s=[];for(a=0,o=e.length,l=0;a<o;++a){(c=(i=e[a]).box).update(i.width||t.w,i.height||t.h,Mo(i.horizontal,t));var f=Po(t,n,i,r),d=f.same,h=f.other;l|=d&&s.length,u=u||h,c.fullSize||s.push(i)}return l&&No(s,t,n,r)||u}function To(e,t,n,r,a){e.top=n,e.left=t,e.right=t+r,e.bottom=n+a,e.width=r,e.height=a}function Io(e,t,n,r){var a,o=n.padding,i=t.x,c=t.y,l=Ma(e);try{for(l.s();!(a=l.n()).done;){var u=a.value,s=u.box,f=r[u.stack]||{count:1,placed:0,weight:1},d=u.stackWeight/f.weight||1;if(u.horizontal){var h=t.w*d,p=f.size||s.height;Wt(f.start)&&(c=f.start),s.fullSize?To(s,o.left,c,n.outerWidth-o.right-o.left,p):To(s,t.left+f.placed,c,h,p),f.start=c,f.placed+=h,c=s.bottom}else{var m=t.h*d,v=f.size||s.width;Wt(f.start)&&(i=f.start),s.fullSize?To(s,i,o.top,v,n.outerHeight-o.bottom-o.top):To(s,i,t.top+f.placed,v,m),f.start=i,f.placed+=m,i=s.right}}}catch(g){l.e(g)}finally{l.f()}t.x=i,t.y=c}ir.set("layout",{padding:{top:0,right:0,bottom:0,left:0}});var Fo={addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(e){t.draw(e)}}]},e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update:function(e,t,n,r){if(e){var a=_r(e.options.layout.padding),o=Math.max(t-a.width,0),i=Math.max(n-a.height,0),c=function(e){var t=function(e){var t,n,r,a,o,i,c=[];for(t=0,n=(e||[]).length;t<n;++t){var l=r=e[t];a=l.position;var u=l.options;o=u.stack;var s=u.stackWeight;i=void 0===s?1:s,c.push({index:t,box:r,pos:a,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&a+o,stackWeight:i})}return c}(e),n=_o(t.filter(function(e){return e.box.fullSize}),!0),r=_o(ko(t,"left"),!0),a=_o(ko(t,"right")),o=_o(ko(t,"top"),!0),i=_o(ko(t,"bottom")),c=So(t,"x"),l=So(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:a.concat(l).concat(i).concat(c),chartArea:ko(t,"chartArea"),vertical:r.concat(a).concat(l),horizontal:o.concat(i).concat(c)}}(e.boxes),l=c.vertical,u=c.horizontal;Nt(e.boxes,function(e){"function"===typeof e.beforeLayout&&e.beforeLayout()});var s=l.reduce(function(e,t){return t.box.options&&!1===t.box.options.display?e:e+1},0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:a,availableWidth:o,availableHeight:i,vBoxMaxWidth:o/2/s,hBoxMaxHeight:i/2}),d=Object.assign({},a);Ao(d,_r(r));var h=Object.assign({maxPadding:d,w:o,h:i,x:a.left,y:a.top},a),p=Co(l.concat(u),f);No(c.fullSize,h,f,p),No(l,h,f,p),No(u,h,f,p)&&No(l,h,f,p),function(e){var t=e.maxPadding;function n(n){var r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(h),Io(c.leftAndTop,h,f,p),h.x+=h.w,h.y+=h.h,Io(c.rightAndBottom,h,f,p),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Nt(c.chartArea,function(t){var n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h)})}}},Do=function(){function e(){Object(mt.a)(this,e)}return Object(vt.a)(e,[{key:"acquireContext",value:function(e,t){}},{key:"releaseContext",value:function(e){return!1}},{key:"addEventListener",value:function(e,t,n){}},{key:"removeEventListener",value:function(e,t,n){}},{key:"getDevicePixelRatio",value:function(){return 1}},{key:"getMaximumSize",value:function(e,t,n,r){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}},{key:"isAttached",value:function(e){return!0}}]),e}(),Ro=function(e){function t(){return Object(mt.a)(this,t),Object(ft.a)(this,Object(dt.a)(t).apply(this,arguments))}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"acquireContext",value:function(e){return e&&e.getContext&&e.getContext("2d")||null}}]),t}(Do),Go="$chartjs",Bo={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ho=function(e){return null===e||""===e};var zo=!!ha&&{passive:!0};function Vo(e,t,n){e.canvas.removeEventListener(t,n,zo)}function qo(e,t,n){var r=e.canvas,a=r&&ra(r)||r,o=new MutationObserver(function(e){var t=ra(a);e.forEach(function(e){for(var r=0;r<e.addedNodes.length;r++){var o=e.addedNodes[r];o!==a&&o!==t||n(e.target)}})});return o.observe(document,{childList:!0,subtree:!0}),o}function Yo(e,t,n){var r=e.canvas,a=r&&ra(r);if(a){var o=new MutationObserver(function(e){e.forEach(function(e){for(var t=0;t<e.removedNodes.length;t++)if(e.removedNodes[t]===r){n();break}})});return o.observe(a,{childList:!0}),o}}var Wo=new Map,Uo=0;function Xo(){var e=window.devicePixelRatio;e!==Uo&&(Uo=e,Wo.forEach(function(t,n){n.currentDevicePixelRatio!==e&&t()}))}function Qo(e,t,n){var r=e.canvas,a=r&&ra(r);if(a){var o=wt(function(e,t){var r=a.clientWidth;n(e,t),r<a.clientWidth&&n()},window),i=new ResizeObserver(function(e){var t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||o(n,r)});return i.observe(a),function(e,t){Wo.size||window.addEventListener("resize",Xo),Wo.set(e,t)}(e,o),i}}function Ko(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){Wo.delete(e),Wo.size||window.removeEventListener("resize",Xo)}(e)}function Jo(e,t,n){var r=e.canvas,a=wt(function(t){null!==e.ctx&&n(function(e,t){var n=Bo[e.type]||e.type,r=ua(e,t),a=r.x,o=r.y;return{type:n,chart:t,native:e,x:void 0!==a?a:null,y:void 0!==o?o:null}}(t,e))},e,function(e){var t=e[0];return[t,t.offsetX,t.offsetY]});return function(e,t,n){e.addEventListener(t,n,zo)}(r,t,a),a}var Zo=function(e){function t(){return Object(mt.a)(this,t),Object(ft.a)(this,Object(dt.a)(t).apply(this,arguments))}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"acquireContext",value:function(e,t){var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){var n=e.style,r=e.getAttribute("height"),a=e.getAttribute("width");if(e[Go]={initial:{height:r,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Ho(a)){var o=pa(e,"width");void 0!==o&&(e.width=o)}if(Ho(r))if(""===e.style.height)e.height=e.width/(t||2);else{var i=pa(e,"height");void 0!==i&&(e.height=i)}}(e,t),n):null}},{key:"releaseContext",value:function(e){var t=e.canvas;if(!t[Go])return!1;var n=t[Go].initial;["height","width"].forEach(function(e){var r=n[e];kt(r)?t.removeAttribute(e):t.setAttribute(e,r)});var r=n.style||{};return Object.keys(r).forEach(function(e){t.style[e]=r[e]}),t.width=t.width,delete t[Go],!0}},{key:"addEventListener",value:function(e,t,n){this.removeEventListener(e,t);var r=e.$proxies||(e.$proxies={}),a={attach:qo,detach:Yo,resize:Qo}[t]||Jo;r[t]=a(e,t,n)}},{key:"removeEventListener",value:function(e,t){var n=e.$proxies||(e.$proxies={}),r=n[t];r&&(({attach:Ko,detach:Ko,resize:Ko}[t]||Vo)(e,t,r),n[t]=void 0)}},{key:"getDevicePixelRatio",value:function(){return window.devicePixelRatio}},{key:"getMaximumSize",value:function(e,t,n,r){return fa(e,t,n,r)}},{key:"isAttached",value:function(e){var t=ra(e);return!(!t||!t.isConnected)}}]),t}(Do);var $o=function(){function e(){Object(mt.a)(this,e),this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}return Object(vt.a)(e,[{key:"tooltipPosition",value:function(e){var t=this.getProps(["x","y"],e);return{x:t.x,y:t.y}}},{key:"hasValue",value:function(){return on(this.x)&&on(this.y)}},{key:"getProps",value:function(e,t){var n=this,r=this.$animations;if(!t||!r)return n;var a={};return e.forEach(function(e){a[e]=r[e]&&r[e].active()?r[e]._to:n[e]}),a}}]),e}();$o.defaults={},$o.defaultRoutes=void 0;var ei={values:function(e){return St(e)?e:""+e},numeric:function(e,t,n){if(0===e)return"0";var r,a=this.chart.options.locale,o=e;if(n.length>1){var i=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(i<1e-4||i>1e15)&&(r="scientific"),o=function(e,t){var n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}var c=nn(Math.abs(o)),l=Math.max(Math.min(-1*Math.floor(c),20),0),u={notation:r,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(u,this.options.ticks.format),ba(e,a,u)},logarithmic:function(e,t,n){if(0===e)return"0";var r=e/Math.pow(10,Math.floor(nn(e)));return 1===r||2===r||5===r?ei.numeric.call(this,e,t,n):""}};var ti={formatters:ei};function ni(e,t){var n=e.options.ticks,r=n.maxTicksLimit||function(e){var t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),a=e._maxLength/n;return Math.floor(Math.min(r,a))}(e),a=n.major.enabled?function(e){var t,n,r=[];for(t=0,n=e.length;t<n;t++)e[t].major&&r.push(t);return r}(t):[],o=a.length,i=a[0],c=a[o-1],l=[];if(o>r)return function(e,t,n,r){var a,o=0,i=n[0];for(r=Math.ceil(r),a=0;a<e.length;a++)a===i&&(t.push(e[a]),i=n[++o*r])}(t,l,a,o/r),l;var u=function(e,t,n){var r=function(e){var t,n,r=e.length;if(r<2)return!1;for(n=e[0],t=1;t<r;++t)if(e[t]-e[t-1]!==n)return!1;return n}(e),a=t.length/n;if(!r)return Math.max(a,1);for(var o=function(e){var t,n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t===0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort(function(e,t){return e-t}).pop(),n}(r),i=0,c=o.length-1;i<c;i++){var l=o[i];if(l>a)return l}return Math.max(a,1)}(a,t,r);if(o>0){var s,f,d=o>1?Math.round((c-i)/(o-1)):null;for(ri(t,l,u,kt(d)?0:i-d,i),s=0,f=o-1;s<f;s++)ri(t,l,u,a[s],a[s+1]);return ri(t,l,u,c,kt(d)?t.length:c+d),l}return ri(t,l,u),l}function ri(e,t,n,r,a){var o,i,c,l=At(r,0),u=Math.min(At(a,e.length),e.length),s=0;for(n=Math.ceil(n),a&&(n=(o=a-r)/Math.floor(o/n)),c=l;c<0;)s++,c=Math.round(l+s*n);for(i=Math.max(l,0);i<u;i++)i===c&&(t.push(e[i]),s++,c=Math.round(l+s*n))}ir.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:function(e,t){return t.lineWidth},tickColor:function(e,t){return t.color},offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ti.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),ir.route("scale.ticks","color","","color"),ir.route("scale.grid","color","","borderColor"),ir.route("scale.grid","borderColor","","borderColor"),ir.route("scale.title","color","","color"),ir.describe("scale",{_fallback:!1,_scriptable:function(e){return!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e},_indexable:function(e){return"borderDash"!==e&&"tickBorderDash"!==e}}),ir.describe("scales",{_fallback:"scale"}),ir.describe("scale.ticks",{_scriptable:function(e){return"backdropPadding"!==e&&"callback"!==e},_indexable:function(e){return"backdropPadding"!==e}});var ai=function(e){return"left"===e?"right":"right"===e?"left":e},oi=function(e,t,n){return"top"===t||"left"===t?e[t]+n:e[t]-n};function ii(e,t){for(var n=[],r=e.length/t,a=e.length,o=0;o<a;o+=r)n.push(e[Math.floor(o)]);return n}function ci(e,t,n){var r,a=e.ticks.length,o=Math.min(t,a-1),i=e._startPixel,c=e._endPixel,l=e.getPixelForTick(o);if(!(n&&(r=1===a?Math.max(l-i,c-l):0===t?(e.getPixelForTick(1)-l)/2:(l-e.getPixelForTick(o-1))/2,(l+=o<t?r:-r)<i-1e-6||l>c+1e-6)))return l}function li(e){return e.drawTicks?e.tickLength:0}function ui(e,t){if(!e.display)return 0;var n=Cr(e.font,t),r=_r(e.padding);return(St(e.text)?e.text.length:1)*n.lineHeight+r.height}function si(e,t,n){var r=Et(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=ai(r)),r}var fi=function(e){function t(e){var n;return Object(mt.a)(this,t),(n=Object(ft.a)(this,Object(dt.a)(t).call(this))).id=e.id,n.type=e.type,n.options=void 0,n.ctx=e.ctx,n.chart=e.chart,n.top=void 0,n.bottom=void 0,n.left=void 0,n.right=void 0,n.width=void 0,n.height=void 0,n._margins={left:0,right:0,top:0,bottom:0},n.maxWidth=void 0,n.maxHeight=void 0,n.paddingTop=void 0,n.paddingBottom=void 0,n.paddingLeft=void 0,n.paddingRight=void 0,n.axis=void 0,n.labelRotation=void 0,n.min=void 0,n.max=void 0,n._range=void 0,n.ticks=[],n._gridLineItems=null,n._labelItems=null,n._labelSizes=null,n._length=0,n._maxLength=0,n._longestTextCache={},n._startPixel=void 0,n._endPixel=void 0,n._reversePixels=!1,n._userMax=void 0,n._userMin=void 0,n._suggestedMax=void 0,n._suggestedMin=void 0,n._ticksLength=0,n._borderValue=0,n._cache={},n._dataLimitsCached=!1,n.$context=void 0,n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"init",value:function(e){var t=this;t.options=e.setContext(t.getContext()),t.axis=e.axis,t._userMin=t.parse(e.min),t._userMax=t.parse(e.max),t._suggestedMin=t.parse(e.suggestedMin),t._suggestedMax=t.parse(e.suggestedMax)}},{key:"parse",value:function(e,t){return e}},{key:"getUserBounds",value:function(){var e=this._userMin,t=this._userMax,n=this._suggestedMin,r=this._suggestedMax;return e=Lt(e,Number.POSITIVE_INFINITY),t=Lt(t,Number.NEGATIVE_INFINITY),n=Lt(n,Number.POSITIVE_INFINITY),r=Lt(r,Number.NEGATIVE_INFINITY),{min:Lt(e,n),max:Lt(t,r),minDefined:Ct(e),maxDefined:Ct(t)}}},{key:"getMinMax",value:function(e){var t,n=this.getUserBounds(),r=n.min,a=n.max,o=n.minDefined,i=n.maxDefined;if(o&&i)return{min:r,max:a};for(var c=this.getMatchingVisibleMetas(),l=0,u=c.length;l<u;++l)t=c[l].controller.getMinMax(this,e),o||(r=Math.min(r,t.min)),i||(a=Math.max(a,t.max));return{min:Lt(r,Lt(a,r)),max:Lt(a,Lt(r,a))}}},{key:"getPadding",value:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}},{key:"getTicks",value:function(){return this.ticks}},{key:"getLabels",value:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}},{key:"beforeLayout",value:function(){this._cache={},this._dataLimitsCached=!1}},{key:"beforeUpdate",value:function(){Mt(this.options.beforeUpdate,[this])}},{key:"update",value:function(e,t,n){var r=this,a=r.options.ticks,o=a.sampleSize;r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),r.ticks=null,r._labelSizes=null,r._gridLineItems=null,r._labelItems=null,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r._maxLength=r.isHorizontal()?r.width+n.left+n.right:r.height+n.top+n.bottom,r._dataLimitsCached||(r.beforeDataLimits(),r.determineDataLimits(),r.afterDataLimits(),r._range=function(e,t){var n=e.min,r=e.max;return{min:n-Math.abs(Pt(t,n)),max:r+Pt(t,r)}}(r,r.options.grace),r._dataLimitsCached=!0),r.beforeBuildTicks(),r.ticks=r.buildTicks()||[],r.afterBuildTicks();var i=o<r.ticks.length;r._convertTicksToLabels(i?ii(r.ticks,o):r.ticks),r.configure(),r.beforeCalculateLabelRotation(),r.calculateLabelRotation(),r.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(r.ticks=ni(r,r.ticks),r._labelSizes=null),i&&r._convertTicksToLabels(r.ticks),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate()}},{key:"configure",value:function(){var e,t,n=this,r=n.options.reverse;n.isHorizontal()?(e=n.left,t=n.right):(e=n.top,t=n.bottom,r=!r),n._startPixel=e,n._endPixel=t,n._reversePixels=r,n._length=t-e,n._alignToPixels=n.options.alignToPixels}},{key:"afterUpdate",value:function(){Mt(this.options.afterUpdate,[this])}},{key:"beforeSetDimensions",value:function(){Mt(this.options.beforeSetDimensions,[this])}},{key:"setDimensions",value:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0}},{key:"afterSetDimensions",value:function(){Mt(this.options.afterSetDimensions,[this])}},{key:"_callHooks",value:function(e){this.chart.notifyPlugins(e,this.getContext()),Mt(this.options[e],[this])}},{key:"beforeDataLimits",value:function(){this._callHooks("beforeDataLimits")}},{key:"determineDataLimits",value:function(){}},{key:"afterDataLimits",value:function(){this._callHooks("afterDataLimits")}},{key:"beforeBuildTicks",value:function(){this._callHooks("beforeBuildTicks")}},{key:"buildTicks",value:function(){return[]}},{key:"afterBuildTicks",value:function(){this._callHooks("afterBuildTicks")}},{key:"beforeTickToLabelConversion",value:function(){Mt(this.options.beforeTickToLabelConversion,[this])}},{key:"generateTickLabels",value:function(e){var t,n,r,a=this.options.ticks;for(t=0,n=e.length;t<n;t++)(r=e[t]).label=Mt(a.callback,[r.value,t,e],this)}},{key:"afterTickToLabelConversion",value:function(){Mt(this.options.afterTickToLabelConversion,[this])}},{key:"beforeCalculateLabelRotation",value:function(){Mt(this.options.beforeCalculateLabelRotation,[this])}},{key:"calculateLabelRotation",value:function(){var e,t,n,r=this,a=r.options,o=a.ticks,i=r.ticks.length,c=o.minRotation||0,l=o.maxRotation,u=c;if(!r._isVisible()||!o.display||c>=l||i<=1||!r.isHorizontal())r.labelRotation=c;else{var s=r._getLabelSizes(),f=s.widest.width,d=s.highest.height,h=vn(r.chart.width-f,0,r.maxWidth);f+6>(e=a.offset?r.maxWidth/i:h/(i-1))&&(e=h/(i-(a.offset?.5:1)),t=r.maxHeight-li(a.grid)-o.padding-ui(a.title,r.chart.options.font),n=Math.sqrt(f*f+d*d),u=sn(Math.min(Math.asin(vn((s.highest.height+6)/e,-1,1)),Math.asin(vn(t/n,-1,1))-Math.asin(vn(d/n,-1,1)))),u=Math.max(c,Math.min(l,u))),r.labelRotation=u}}},{key:"afterCalculateLabelRotation",value:function(){Mt(this.options.afterCalculateLabelRotation,[this])}},{key:"beforeFit",value:function(){Mt(this.options.beforeFit,[this])}},{key:"fit",value:function(){var e=this,t={width:0,height:0},n=e.chart,r=e.options,a=r.ticks,o=r.title,i=r.grid,c=e._isVisible(),l=e.isHorizontal();if(c){var u=ui(o,n.options.font);if(l?(t.width=e.maxWidth,t.height=li(i)+u):(t.height=e.maxHeight,t.width=li(i)+u),a.display&&e.ticks.length){var s=e._getLabelSizes(),f=s.first,d=s.last,h=s.widest,p=s.highest,m=2*a.padding,v=un(e.labelRotation),g=Math.cos(v),y=Math.sin(v);if(l){var b=a.mirror?0:y*h.width+g*p.height;t.height=Math.min(e.maxHeight,t.height+b+m)}else{var w=a.mirror?0:g*h.width+y*p.height;t.width=Math.min(e.maxWidth,t.width+w+m)}e._calculatePadding(f,d,y,g)}}e._handleMargins(),l?(e.width=e._length=n.width-e._margins.left-e._margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e._margins.top-e._margins.bottom)}},{key:"_calculatePadding",value:function(e,t,n,r){var a=this,o=a.options,i=o.ticks,c=i.align,l=i.padding,u=o.position,s=0!==a.labelRotation,f="top"!==u&&"x"===a.axis;if(a.isHorizontal()){var d=a.getPixelForTick(0)-a.left,h=a.right-a.getPixelForTick(a.ticks.length-1),p=0,m=0;s?f?(p=r*e.width,m=n*t.height):(p=n*e.height,m=r*t.width):"start"===c?m=t.width:"end"===c?p=e.width:(p=e.width/2,m=t.width/2),a.paddingLeft=Math.max((p-d+l)*a.width/(a.width-d),0),a.paddingRight=Math.max((m-h+l)*a.width/(a.width-h),0)}else{var v=t.height/2,g=e.height/2;"start"===c?(v=0,g=e.height):"end"===c&&(v=t.height,g=0),a.paddingTop=v+l,a.paddingBottom=g+l}}},{key:"_handleMargins",value:function(){var e=this;e._margins&&(e._margins.left=Math.max(e.paddingLeft,e._margins.left),e._margins.top=Math.max(e.paddingTop,e._margins.top),e._margins.right=Math.max(e.paddingRight,e._margins.right),e._margins.bottom=Math.max(e.paddingBottom,e._margins.bottom))}},{key:"afterFit",value:function(){Mt(this.options.afterFit,[this])}},{key:"isHorizontal",value:function(){var e=this.options,t=e.axis,n=e.position;return"top"===n||"bottom"===n||"x"===t}},{key:"isFullSize",value:function(){return this.options.fullSize}},{key:"_convertTicksToLabels",value:function(e){var t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)kt(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}},{key:"_getLabelSizes",value:function(){var e=this,t=e._labelSizes;if(!t){var n=e.options.ticks.sampleSize,r=e.ticks;n<r.length&&(r=ii(r,n)),e._labelSizes=t=e._computeLabelSizes(r,r.length)}return t}},{key:"_computeLabelSizes",value:function(e,t){var n,r,a,o,i,c,l,u,s,f,d,h=this.ctx,p=this._longestTextCache,m=[],v=[],g=0,y=0;for(n=0;n<t;++n){if(o=e[n].label,i=this._resolveTickFontOptions(n),h.font=c=i.string,l=p[c]=p[c]||{data:{},gc:[]},u=i.lineHeight,s=f=0,kt(o)||St(o)){if(St(o))for(r=0,a=o.length;r<a;++r)kt(d=o[r])||St(d)||(s=cr(h,l.data,l.gc,s,d),f+=u)}else s=cr(h,l.data,l.gc,s,o),f=u;m.push(s),v.push(f),g=Math.max(s,g),y=Math.max(f,y)}!function(e,t){Nt(e,function(e){var n,r=e.gc,a=r.length/2;if(a>t){for(n=0;n<a;++n)delete e.data[r[n]];r.splice(0,a)}})}(p,t);var b=m.indexOf(g),w=v.indexOf(y),E=function(e){return{width:m[e]||0,height:v[e]||0}};return{first:E(0),last:E(t-1),widest:E(b),highest:E(w),widths:m,heights:v}}},{key:"getLabelForValue",value:function(e){return e}},{key:"getPixelForValue",value:function(e,t){return NaN}},{key:"getValueForPixel",value:function(e){}},{key:"getPixelForTick",value:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}},{key:"getPixelForDecimal",value:function(e){var t=this;t._reversePixels&&(e=1-e);var n=t._startPixel+e*t._length;return vn(t._alignToPixels?ur(t.chart,n,0):n,-32768,32767)}},{key:"getDecimalForPixel",value:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}},{key:"getBasePixel",value:function(){return this.getPixelForValue(this.getBaseValue())}},{key:"getBaseValue",value:function(){var e=this.min,t=this.max;return e<0&&t<0?t:e>0&&t>0?e:0}},{key:"getContext",value:function(e){var t,n,r=this,a=r.ticks||[];if(e>=0&&e<a.length){var o=a[e];return o.$context||(o.$context=function(e,t,n){return Object.assign(Object.create(e),{tick:n,index:t,type:"tick"})}(r.getContext(),e,o))}return r.$context||(r.$context=(t=r.chart.getContext(),n=r,Object.assign(Object.create(t),{scale:n,type:"scale"})))}},{key:"_tickSize",value:function(){var e=this.options.ticks,t=un(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),a=this._getLabelSizes(),o=e.autoSkipPadding||0,i=a?a.widest.width+o:0,c=a?a.highest.height+o:0;return this.isHorizontal()?c*n>i*r?i/n:c/r:c*r<i*n?c/n:i/r}},{key:"_isVisible",value:function(){var e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}},{key:"_computeGridLineItems",value:function(e){var t,n,r,a,o,i,c,l,u,s,f,d,h=this,p=h.axis,m=h.chart,v=h.options,g=v.grid,y=v.position,b=g.offset,w=h.isHorizontal(),E=h.ticks.length+(b?1:0),x=li(g),O=[],j=g.setContext(h.getContext()),k=j.drawBorder?j.borderWidth:0,S=k/2,_=function(e){return ur(m,e,k)};if("top"===y)t=_(h.bottom),i=h.bottom-x,l=t-S,s=_(e.top)+S,d=e.bottom;else if("bottom"===y)t=_(h.top),s=e.top,d=_(e.bottom)-S,i=t+S,l=h.top+x;else if("left"===y)t=_(h.right),o=h.right-x,c=t-S,u=_(e.left)+S,f=e.right;else if("right"===y)t=_(h.left),u=e.left,f=_(e.right)-S,o=t+S,c=h.left+x;else if("x"===p){if("center"===y)t=_((e.top+e.bottom)/2+.5);else if(_t(y)){var C=Object.keys(y)[0],L=y[C];t=_(h.chart.scales[C].getPixelForValue(L))}s=e.top,d=e.bottom,l=(i=t+S)+x}else if("y"===p){if("center"===y)t=_((e.left+e.right)/2);else if(_t(y)){var A=Object.keys(y)[0],P=y[A];t=_(h.chart.scales[A].getPixelForValue(P))}c=(o=t-S)-x,u=e.left,f=e.right}var M=At(v.ticks.maxTicksLimit,E),N=Math.max(1,Math.ceil(E/M));for(n=0;n<E;n+=N){var T=g.setContext(h.getContext(n)),I=T.lineWidth,F=T.color,D=g.borderDash||[],R=T.borderDashOffset,G=T.tickWidth,B=T.tickColor,H=T.tickBorderDash||[],z=T.tickBorderDashOffset;void 0!==(r=ci(h,n,b))&&(a=ur(m,r,I),w?o=c=u=f=a:i=l=s=d=a,O.push({tx1:o,ty1:i,tx2:c,ty2:l,x1:u,y1:s,x2:f,y2:d,width:I,color:F,borderDash:D,borderDashOffset:R,tickWidth:G,tickColor:B,tickBorderDash:H,tickBorderDashOffset:z}))}return h._ticksLength=E,h._borderValue=t,O}},{key:"_computeLabelItems",value:function(e){var t,n,r,a,o,i,c,l,u,s,f,d=this,h=d.axis,p=d.options,m=p.position,v=p.ticks,g=d.isHorizontal(),y=d.ticks,b=v.align,w=v.crossAlign,E=v.padding,x=v.mirror,O=li(p.grid),j=O+E,k=x?-E:j,S=-un(d.labelRotation),_=[],C="middle";if("top"===m)o=d.bottom-k,i=d._getXAxisLabelAlignment();else if("bottom"===m)o=d.top+k,i=d._getXAxisLabelAlignment();else if("left"===m){var L=d._getYAxisLabelAlignment(O);i=L.textAlign,a=L.x}else if("right"===m){var A=d._getYAxisLabelAlignment(O);i=A.textAlign,a=A.x}else if("x"===h){if("center"===m)o=(e.top+e.bottom)/2+j;else if(_t(m)){var P=Object.keys(m)[0],M=m[P];o=d.chart.scales[P].getPixelForValue(M)+j}i=d._getXAxisLabelAlignment()}else if("y"===h){if("center"===m)a=(e.left+e.right)/2-j;else if(_t(m)){var N=Object.keys(m)[0],T=m[N];a=d.chart.scales[N].getPixelForValue(T)}i=d._getYAxisLabelAlignment(O).textAlign}"y"===h&&("start"===b?C="top":"end"===b&&(C="bottom"));var I=d._getLabelSizes();for(t=0,n=y.length;t<n;++t){r=y[t].label;var F=v.setContext(d.getContext(t));c=d.getPixelForTick(t)+v.labelOffset,u=(l=d._resolveTickFontOptions(t)).lineHeight;var D=(s=St(r)?r.length:1)/2,R=F.color,G=F.textStrokeColor,B=F.textStrokeWidth;g?(a=c,f="top"===m?"near"===w||0!==S?-s*u+u/2:"center"===w?-I.highest.height/2-D*u+u:-I.highest.height+u/2:"near"===w||0!==S?u/2:"center"===w?I.highest.height/2-D*u:I.highest.height-s*u,x&&(f*=-1)):(o=c,f=(1-s)*u/2);var H=void 0;if(F.showLabelBackdrop){var z=_r(F.backdropPadding),V=I.heights[t],q=I.widths[t],Y=o+f-z.top,W=a-z.left;switch(C){case"middle":Y-=V/2;break;case"bottom":Y-=V}switch(i){case"center":W-=q/2;break;case"right":W-=q}H={left:W,top:Y,width:q+z.width,height:V+z.height,color:F.backdropColor}}_.push({rotation:S,label:r,font:l,color:R,strokeColor:G,strokeWidth:B,textOffset:f,textAlign:i,textBaseline:C,translation:[a,o],backdrop:H})}return _}},{key:"_getXAxisLabelAlignment",value:function(){var e=this.options,t=e.position,n=e.ticks;if(-un(this.labelRotation))return"top"===t?"left":"right";var r="center";return"start"===n.align?r="left":"end"===n.align&&(r="right"),r}},{key:"_getYAxisLabelAlignment",value:function(e){var t,n,r=this,a=r.options,o=a.position,i=a.ticks,c=i.crossAlign,l=i.mirror,u=i.padding,s=e+u,f=r._getLabelSizes().widest.width;return"left"===o?l?(t="left",n=r.right+u):(n=r.right-s,"near"===c?t="right":"center"===c?(t="center",n-=f/2):(t="left",n=r.left)):"right"===o?l?(t="right",n=r.left+u):(n=r.left+s,"near"===c?t="left":"center"===c?(t="center",n+=f/2):(t="right",n=r.right)):t="right",{textAlign:t,x:n}}},{key:"_computeLabelArea",value:function(){var e=this;if(!e.options.ticks.mirror){var t=e.chart,n=e.options.position;return"left"===n||"right"===n?{top:0,left:e.left,bottom:t.height,right:e.right}:"top"===n||"bottom"===n?{top:e.top,left:0,bottom:e.bottom,right:t.width}:void 0}}},{key:"drawBackground",value:function(){var e=this.ctx,t=this.options.backgroundColor,n=this.left,r=this.top,a=this.width,o=this.height;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,a,o),e.restore())}},{key:"getLineWidthForValue",value:function(e){var t=this.options.grid;if(!this._isVisible()||!t.display)return 0;var n=this.ticks.findIndex(function(t){return t.value===e});return n>=0?t.setContext(this.getContext(n)).lineWidth:0}},{key:"drawGrid",value:function(e){var t,n,r=this,a=r.options.grid,o=r.ctx,i=r._gridLineItems||(r._gridLineItems=r._computeGridLineItems(e)),c=function(e,t,n){n.width&&n.color&&(o.save(),o.lineWidth=n.width,o.strokeStyle=n.color,o.setLineDash(n.borderDash||[]),o.lineDashOffset=n.borderDashOffset,o.beginPath(),o.moveTo(e.x,e.y),o.lineTo(t.x,t.y),o.stroke(),o.restore())};if(a.display)for(t=0,n=i.length;t<n;++t){var l=i[t];a.drawOnChartArea&&c({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),a.drawTicks&&c({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}},{key:"drawBorder",value:function(){var e=this,t=e.chart,n=e.ctx,r=e.options.grid,a=r.setContext(e.getContext()),o=r.drawBorder?a.borderWidth:0;if(o){var i,c,l,u,s=r.setContext(e.getContext(0)).lineWidth,f=e._borderValue;e.isHorizontal()?(i=ur(t,e.left,o)-o/2,c=ur(t,e.right,s)+s/2,l=u=f):(l=ur(t,e.top,o)-o/2,u=ur(t,e.bottom,s)+s/2,i=c=f),n.save(),n.lineWidth=a.borderWidth,n.strokeStyle=a.borderColor,n.beginPath(),n.moveTo(i,l),n.lineTo(c,u),n.stroke(),n.restore()}}},{key:"drawLabels",value:function(e){var t=this;if(t.options.ticks.display){var n=t.ctx,r=t._computeLabelArea();r&&hr(n,r);var a,o,i=t._labelItems||(t._labelItems=t._computeLabelItems(e));for(a=0,o=i.length;a<o;++a){var c=i[a],l=c.font,u=c.label;c.backdrop&&(n.fillStyle=c.backdrop.color,n.fillRect(c.backdrop.left,c.backdrop.top,c.backdrop.width,c.backdrop.height)),gr(n,u,0,c.textOffset,l,c)}r&&pr(n)}}},{key:"drawTitle",value:function(){var e=this.ctx,t=this.options,n=t.position,r=t.title,a=t.reverse;if(r.display){var o=Cr(r.font),i=_r(r.padding),c=r.align,l=o.lineHeight/2;"bottom"===n||"center"===n||_t(n)?(l+=i.bottom,St(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=i.top;var u=function(e,t,n,r){var a,o,i,c=e.top,l=e.left,u=e.bottom,s=e.right,f=e.chart,d=f.chartArea,h=f.scales,p=0,m=u-c,v=s-l;if(e.isHorizontal()){if(o=xt(r,l,s),_t(n)){var g=Object.keys(n)[0],y=n[g];i=h[g].getPixelForValue(y)+m-t}else i="center"===n?(d.bottom+d.top)/2+m-t:oi(e,n,t);a=s-l}else{if(_t(n)){var b=Object.keys(n)[0],w=n[b];o=h[b].getPixelForValue(w)-v+t}else o="center"===n?(d.left+d.right)/2-v+t:oi(e,n,t);i=xt(r,u,c),p="left"===n?-$t:$t}return{titleX:o,titleY:i,maxWidth:a,rotation:p}}(this,l,n,c),s=u.titleX,f=u.titleY,d=u.maxWidth,h=u.rotation;gr(e,r.text,0,0,o,{color:r.color,maxWidth:d,rotation:h,textAlign:si(c,n,a),textBaseline:"middle",translation:[s,f]})}}},{key:"draw",value:function(e){var t=this;t._isVisible()&&(t.drawBackground(),t.drawGrid(e),t.drawBorder(),t.drawTitle(),t.drawLabels(e))}},{key:"_layers",value:function(){var e=this,n=e.options,r=n.ticks&&n.ticks.z||0,a=At(n.grid&&n.grid.z,-1);return e._isVisible()&&e.draw===t.prototype.draw?[{z:a,draw:function(t){e.drawBackground(),e.drawGrid(t),e.drawTitle()}},{z:a+1,draw:function(){e.drawBorder()}},{z:r,draw:function(t){e.drawLabels(t)}}]:[{z:r,draw:function(t){e.draw(t)}}]}},{key:"getMatchingVisibleMetas",value:function(e){var t,n,r=this.chart.getSortedVisibleDatasetMetas(),a=this.axis+"AxisID",o=[];for(t=0,n=r.length;t<n;++t){var i=r[t];i[a]!==this.id||e&&i.type!==e||o.push(i)}return o}},{key:"_resolveTickFontOptions",value:function(e){return Cr(this.options.ticks.setContext(this.getContext(e)).font)}},{key:"_maxDigits",value:function(){var e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}]),t}($o),di=function(){function e(t,n,r){Object(mt.a)(this,e),this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}return Object(vt.a)(e,[{key:"isForType",value:function(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}},{key:"register",value:function(e){var t,n=Object.getPrototypeOf(e);(function(e){return"id"in e&&"defaults"in e})(n)&&(t=this.register(n));var r=this.items,a=e.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+e);return a in r?o:(r[a]=e,function(e,t,n){var r=Rt(Object.create(null),[n?ir.get(n):{},ir.get(t),e.defaults]);ir.set(t,r),e.defaultRoutes&&function(e,t){Object.keys(t).forEach(function(n){var r=n.split("."),a=r.pop(),o=[e].concat(r).join("."),i=t[n].split("."),c=i.pop(),l=i.join(".");ir.route(o,a,l,c)})}(t,e.defaultRoutes);e.descriptors&&ir.describe(t,e.descriptors)}(e,o,t),this.override&&ir.override(e.id,e.overrides),o)}},{key:"get",value:function(e){return this.items[e]}},{key:"unregister",value:function(e){var t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in ir[r]&&(delete ir[r][n],this.override&&delete nr[n])}}]),e}();var hi=new(function(){function e(){Object(mt.a)(this,e),this.controllers=new di(Ka,"datasets",!0),this.elements=new di($o,"elements"),this.plugins=new di(Object,"plugins"),this.scales=new di(fi,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}return Object(vt.a)(e,[{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t)}},{key:"remove",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t)}},{key:"addControllers",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.controllers)}},{key:"addElements",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.elements)}},{key:"addPlugins",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.plugins)}},{key:"addScales",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.scales)}},{key:"getController",value:function(e){return this._get(e,this.controllers,"controller")}},{key:"getElement",value:function(e){return this._get(e,this.elements,"element")}},{key:"getPlugin",value:function(e){return this._get(e,this.plugins,"plugin")}},{key:"getScale",value:function(e){return this._get(e,this.scales,"scale")}},{key:"removeControllers",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.controllers)}},{key:"removeElements",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.elements)}},{key:"removePlugins",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.plugins)}},{key:"removeScales",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.scales)}},{key:"_each",value:function(e,t,n){var r=this;Object(oe.a)(t).forEach(function(t){var a=n||r._getRegistryForType(t);n||a.isForType(t)||a===r.plugins&&t.id?r._exec(e,a,t):Nt(t,function(t){var a=n||r._getRegistryForType(t);r._exec(e,a,t)})})}},{key:"_exec",value:function(e,t,n){var r=Yt(e);Mt(n["before"+r],[],n),t[e](n),Mt(n["after"+r],[],n)}},{key:"_getRegistryForType",value:function(e){for(var t=0;t<this._typedRegistries.length;t++){var n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}},{key:"_get",value:function(e,t,n){var r=t.get(e);if(void 0===r)throw new Error('"'+e+'" is not a registered '+n+".");return r}}]),e}()),pi=function(){function e(){Object(mt.a)(this,e),this._init=[]}return Object(vt.a)(e,[{key:"notify",value:function(e,t,n,r){var a=this;"beforeInit"===t&&(a._init=a._createDescriptors(e,!0),a._notify(a._init,e,"install"));var o=r?a._descriptors(e).filter(r):a._descriptors(e),i=a._notify(o,e,t,n);return"destroy"===t&&(a._notify(o,e,"stop"),a._notify(a._init,e,"uninstall")),i}},{key:"_notify",value:function(e,t,n,r){r=r||{};var a,o=Ma(e);try{for(o.s();!(a=o.n()).done;){var i=a.value,c=i.plugin;if(!1===Mt(c[n],[t,r,i.options],c)&&r.cancelable)return!1}}catch(l){o.e(l)}finally{o.f()}return!0}},{key:"invalidate",value:function(){kt(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}},{key:"_descriptors",value:function(e){if(this._cache)return this._cache;var t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}},{key:"_createDescriptors",value:function(e,t){var n=e&&e.config,r=At(n.options&&n.options.plugins,{}),a=function(e){for(var t=[],n=Object.keys(hi.plugins.items),r=0;r<n.length;r++)t.push(hi.getPlugin(n[r]));for(var a=e.plugins||[],o=0;o<a.length;o++){var i=a[o];-1===t.indexOf(i)&&t.push(i)}return t}(n);return!1!==r||t?function(e,t,n,r){for(var a=[],o=e.getContext(),i=0;i<t.length;i++){var c=t[i],l=c.id,u=mi(n[l],r);null!==u&&a.push({plugin:c,options:vi(e.config,c,u,o)})}return a}(e,a,r,t):[]}},{key:"_notifyStateChanges",value:function(e){var t=this._oldCache||[],n=this._cache,r=function(e,t){return e.filter(function(e){return!t.some(function(t){return e.plugin.id===t.plugin.id})})};this._notify(r(t,n),e,"stop"),this._notify(r(n,t),e,"start")}}]),e}();function mi(e,t){return t||!1!==e?!0===e?{}:e:null}function vi(e,t,n,r){var a=e.pluginScopeKeys(t),o=e.getOptionScopes(n,a);return e.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function gi(e,t){var n=ir.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function yi(e,t){return"x"===e||"y"===e?e:t.axis||("top"===(n=t.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||e.charAt(0).toLowerCase();var n}function bi(e){var t=e.options||(e.options={});t.plugins=At(t.plugins,{}),t.scales=function(e,t){var n=nr[e.type]||{scales:{}},r=t.scales||{},a=gi(e.type,t),o=Object.create(null),i=Object.create(null);return Object.keys(r).forEach(function(e){var t=r[e],c=yi(e,t),l=function(e,t){return e===t?"_index_":"_value_"}(c,a),u=n.scales||{};o[c]=o[c]||e,i[e]=Gt(Object.create(null),[{axis:c},t,u[c],u[l]])}),e.data.datasets.forEach(function(n){var a=n.type||e.type,c=n.indexAxis||gi(a,t),l=(nr[a]||{}).scales||{};Object.keys(l).forEach(function(e){var t=function(e,t){var n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,c),a=n[t+"AxisID"]||o[t]||t;i[a]=i[a]||Object.create(null),Gt(i[a],[{axis:t},r[a],l[e]])})}),Object.keys(i).forEach(function(e){var t=i[e];Gt(t,[ir.scales[t.type],ir.scale])}),i}(e,t)}function wi(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}var Ei=new Map,xi=new Set;function Oi(e,t){var n=Ei.get(e);return n||(n=t(),Ei.set(e,n),xi.add(n)),n}var ji=function(e,t,n){var r=qt(t,n);void 0!==r&&e.add(r)},ki=function(){function e(t){Object(mt.a)(this,e),this._config=function(e){return(e=e||{}).data=wi(e.data),bi(e),e}(t),this._scopeCache=new Map,this._resolverCache=new Map}return Object(vt.a)(e,[{key:"update",value:function(){var e=this._config;this.clearCache(),bi(e)}},{key:"clearCache",value:function(){this._scopeCache.clear(),this._resolverCache.clear()}},{key:"datasetScopeKeys",value:function(e){return Oi(e,function(){return[["datasets.".concat(e),""]]})}},{key:"datasetAnimationScopeKeys",value:function(e,t){return Oi("".concat(e,".transition.").concat(t),function(){return[["datasets.".concat(e,".transitions.").concat(t),"transitions.".concat(t)],["datasets.".concat(e),""]]})}},{key:"datasetElementScopeKeys",value:function(e,t){return Oi("".concat(e,"-").concat(t),function(){return[["datasets.".concat(e,".elements.").concat(t),"datasets.".concat(e),"elements.".concat(t),""]]})}},{key:"pluginScopeKeys",value:function(e){var t=e.id,n=this.type;return Oi("".concat(n,"-plugin-").concat(t),function(){return[["plugins.".concat(t)].concat(Object(oe.a)(e.additionalOptionScopes||[]))]})}},{key:"_cachedScopes",value:function(e,t){var n=this._scopeCache,r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}},{key:"getOptionScopes",value:function(e,t,n){var r=this.options,a=this.type,o=this._cachedScopes(e,n),i=o.get(t);if(i)return i;var c=new Set;t.forEach(function(t){e&&(c.add(e),t.forEach(function(t){return ji(c,e,t)})),t.forEach(function(e){return ji(c,r,e)}),t.forEach(function(e){return ji(c,nr[a]||{},e)}),t.forEach(function(e){return ji(c,ir,e)}),t.forEach(function(e){return ji(c,rr,e)})});var l=Array.from(c);return 0===l.length&&l.push(Object.create(null)),xi.has(t)&&o.set(t,l),l}},{key:"chartOptionScopes",value:function(){var e=this.options,t=this.type;return[e,nr[t]||{},ir.datasets[t]||{},{type:t},ir,rr]}},{key:"resolveNamedOptions",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""],a={$shared:!0},o=Si(this._resolverCache,e,r),i=o.resolver,c=o.subPrefixes,l=i;(function(e,t){var n,r=Rr(e),a=r.isScriptable,o=r.isIndexable,i=Ma(t);try{for(i.s();!(n=i.n()).done;){var c=n.value;if(a(c)&&Ut(e[c])||o(c)&&St(e[c]))return!0}}catch(l){i.e(l)}finally{i.f()}return!1})(i,t)&&(a.$shared=!1,l=Dr(i,n=Ut(n)?n():n,this.createResolver(e,n,c)));var u,s=Ma(t);try{for(s.s();!(u=s.n()).done;){var f=u.value;a[f]=l[f]}}catch(d){s.e(d)}finally{s.f()}return a}},{key:"createResolver",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],r=arguments.length>3?arguments[3]:void 0,a=Si(this._resolverCache,e,n).resolver;return _t(t)?Dr(a,t,void 0,r):a}},{key:"platform",get:function(){return this._config.platform}},{key:"type",get:function(){return this._config.type},set:function(e){this._config.type=e}},{key:"data",get:function(){return this._config.data},set:function(e){this._config.data=wi(e)}},{key:"options",get:function(){return this._config.options},set:function(e){this._config.options=e}},{key:"plugins",get:function(){return this._config.plugins}}]),e}();function Si(e,t,n){var r=e.get(t);r||(r=new Map,e.set(t,r));var a=n.join(),o=r.get(a);o||(o={resolver:Fr(t,n),subPrefixes:n.filter(function(e){return!e.toLowerCase().includes("hover")})},r.set(a,o));return o}var _i=["top","bottom","left","right","chartArea"];function Ci(e,t){return"top"===e||"bottom"===e||-1===_i.indexOf(e)&&"x"===t}function Li(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Ai(e){var t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Mt(n&&n.onComplete,[e],t)}function Pi(e){var t=e.chart,n=t.options.animation;Mt(n&&n.onProgress,[e],t)}function Mi(e){return na()&&"string"===typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var Ni={},Ti=function(e){var t=Mi(e);return Object.values(Ni).filter(function(e){return e.canvas===t}).pop()},Ii=function(){function e(t,n){var r=this;Object(mt.a)(this,e);var a=this,o=this.config=new ki(n),i=Mi(t),c=Ti(i);if(c)throw new Error("Canvas is already in use. Chart with ID '"+c.id+"' must be destroyed before the canvas can be reused.");var l=o.createResolver(o.chartOptionScopes(),a.getContext());this.platform=new(o.platform||function(e){return!na()||"undefined"!==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?Ro:Zo}(i));var u=a.platform.acquireContext(i,l.aspectRatio),s=u&&u.canvas,f=s&&s.height,d=s&&s.width;this.id=jt(),this.ctx=u,this.canvas=s,this.width=d,this.height=f,this._options=l,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this.scale=void 0,this._plugins=new pi,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){var n;return function(){return t?(clearTimeout(n),n=setTimeout(e,t)):e(),t}}(function(){return r.update("resize")},l.resizeDelay||0),Ni[a.id]=a,u&&s?(Ta.listen(a,"complete",Ai),Ta.listen(a,"progress",Pi),a._initialize(),a.attached&&a.update()):console.error("Failed to create chart: can't acquire context from the given item")}return Object(vt.a)(e,[{key:"_initialize",value:function(){var e=this;return e.notifyPlugins("beforeInit"),e.options.responsive?e.resize():da(e,e.options.devicePixelRatio),e.bindEvents(),e.notifyPlugins("afterInit"),e}},{key:"clear",value:function(){return sr(this.canvas,this.ctx),this}},{key:"stop",value:function(){return Ta.stop(this),this}},{key:"resize",value:function(e,t){Ta.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}},{key:"_resize",value:function(e,t){var n=this,r=n.options,a=n.canvas,o=r.maintainAspectRatio&&n.aspectRatio,i=n.platform.getMaximumSize(a,e,t,o),c=r.devicePixelRatio||n.platform.getDevicePixelRatio();n.width=i.width,n.height=i.height,n._aspectRatio=n.aspectRatio,da(n,c,!0)&&(n.notifyPlugins("resize",{size:i}),Mt(r.onResize,[n,i],n),n.attached&&n._doResize()&&n.render())}},{key:"ensureScalesHaveIDs",value:function(){Nt(this.options.scales||{},function(e,t){e.id=t})}},{key:"buildOrUpdateScales",value:function(){var e=this,t=e.options,n=t.scales,r=e.scales,a=Object.keys(r).reduce(function(e,t){return e[t]=!1,e},{}),o=[];n&&(o=o.concat(Object.keys(n).map(function(e){var t=n[e],r=yi(e,t),a="r"===r,o="x"===r;return{options:t,dposition:a?"chartArea":o?"bottom":"left",dtype:a?"radialLinear":o?"category":"linear"}}))),Nt(o,function(n){var o=n.options,i=o.id,c=yi(i,o),l=At(o.type,n.dtype);void 0!==o.position&&Ci(o.position,c)===Ci(n.dposition)||(o.position=n.dposition),a[i]=!0;var u=null;i in r&&r[i].type===l?u=r[i]:(u=new(hi.getScale(l))({id:i,type:l,ctx:e.ctx,chart:e}),r[u.id]=u);u.init(o,t)}),Nt(a,function(e,t){e||delete r[t]}),Nt(r,function(t){Fo.configure(e,t,t.options),Fo.addBox(e,t)})}},{key:"_updateMetasets",value:function(){var e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(function(e,t){return e.index-t.index}),n>t){for(var r=t;r<n;++r)this._destroyDatasetMeta(r);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(Li("order","index"))}},{key:"_removeUnreferencedMetasets",value:function(){var e=this,t=e._metasets,n=e.data.datasets;t.length>n.length&&delete e._stacks,t.forEach(function(t,r){0===n.filter(function(e){return e===t._dataset}).length&&e._destroyDatasetMeta(r)})}},{key:"buildOrUpdateControllers",value:function(){var e,t,n=this,r=[],a=n.data.datasets;for(n._removeUnreferencedMetasets(),e=0,t=a.length;e<t;e++){var o=a[e],i=n.getDatasetMeta(e),c=o.type||n.config.type;if(i.type&&i.type!==c&&(n._destroyDatasetMeta(e),i=n.getDatasetMeta(e)),i.type=c,i.indexAxis=o.indexAxis||gi(c,n.options),i.order=o.order||0,i.index=e,i.label=""+o.label,i.visible=n.isDatasetVisible(e),i.controller)i.controller.updateIndex(e),i.controller.linkScales();else{var l=hi.getController(c),u=ir.datasets[c],s=u.datasetElementType,f=u.dataElementType;Object.assign(l.prototype,{dataElementType:hi.getElement(f),datasetElementType:s&&hi.getElement(s)}),i.controller=new l(n,e),r.push(i.controller)}}return n._updateMetasets(),r}},{key:"_resetElements",value:function(){var e=this;Nt(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.reset()},e)}},{key:"reset",value:function(){this._resetElements(),this.notifyPlugins("reset")}},{key:"update",value:function(e){var t=this,n=t.config;n.update(),t._options=n.createResolver(n.chartOptionScopes(),t.getContext()),Nt(t.scales,function(e){Fo.removeBox(t,e)});var r=t._animationsDisabled=!t.options.animation;if(t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),function(e,t){if(e.size!==t.size)return!1;var n,r=gt(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(!t.has(a))return!1}}catch(o){r.e(o)}finally{r.f()}return!0}(new Set(Object.keys(t._listeners)),new Set(t.options.events))&&!!this._responsiveListeners===t.options.responsive||(t.unbindEvents(),t.bindEvents()),t._plugins.invalidate(),!1!==t.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})){var a=t.buildOrUpdateControllers();t.notifyPlugins("beforeElementsUpdate");for(var o=0,i=0,c=t.data.datasets.length;i<c;i++){var l=t.getDatasetMeta(i).controller,u=!r&&-1===a.indexOf(l);l.buildOrUpdateElements(u),o=Math.max(+l.getMaxOverflow(),o)}t._minPadding=o,t._updateLayout(o),r||Nt(a,function(e){e.reset()}),t._updateDatasets(e),t.notifyPlugins("afterUpdate",{mode:e}),t._layers.sort(Li("z","_idx")),t._lastEvent&&t._eventHandler(t._lastEvent,!0),t.render()}}},{key:"_updateLayout",value:function(e){var t=this;if(!1!==t.notifyPlugins("beforeLayout",{cancelable:!0})){Fo.update(t,t.width,t.height,e);var n=t.chartArea,r=n.width<=0||n.height<=0;t._layers=[],Nt(t.boxes,function(e){var n;r&&"chartArea"===e.position||(e.configure&&e.configure(),(n=t._layers).push.apply(n,Object(oe.a)(e._layers())))},t),t._layers.forEach(function(e,t){e._idx=t}),t.notifyPlugins("afterLayout")}}},{key:"_updateDatasets",value:function(e){var t="function"===typeof e;if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(var n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,t?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}},{key:"_updateDataset",value:function(e,t){var n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}},{key:"render",value:function(){var e=this;!1!==e.notifyPlugins("beforeRender",{cancelable:!0})&&(Ta.has(e)?e.attached&&!Ta.running(e)&&Ta.start(e):(e.draw(),Ai({chart:e})))}},{key:"draw",value:function(){var e,t=this;if(t._resizeBeforeDraw){var n=t._resizeBeforeDraw,r=n.width,a=n.height;t._resize(r,a),t._resizeBeforeDraw=null}if(t.clear(),!(t.width<=0||t.height<=0)&&!1!==t.notifyPlugins("beforeDraw",{cancelable:!0})){var o=t._layers;for(e=0;e<o.length&&o[e].z<=0;++e)o[e].draw(t.chartArea);for(t._drawDatasets();e<o.length;++e)o[e].draw(t.chartArea);t.notifyPlugins("afterDraw")}}},{key:"_getSortedDatasetMetas",value:function(e){var t,n,r=this._sortedMetasets,a=[];for(t=0,n=r.length;t<n;++t){var o=r[t];e&&!o.visible||a.push(o)}return a}},{key:"getSortedVisibleDatasetMetas",value:function(){return this._getSortedDatasetMetas(!0)}},{key:"_drawDatasets",value:function(){if(!1!==this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})){for(var e=this.getSortedVisibleDatasetMetas(),t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}}},{key:"_drawDataset",value:function(e){var t=this,n=t.ctx,r=e._clip,a=!r.disabled,o=t.chartArea,i={meta:e,index:e.index,cancelable:!0};!1!==t.notifyPlugins("beforeDatasetDraw",i)&&(a&&hr(n,{left:!1===r.left?0:o.left-r.left,right:!1===r.right?t.width:o.right+r.right,top:!1===r.top?0:o.top-r.top,bottom:!1===r.bottom?t.height:o.bottom+r.bottom}),e.controller.draw(),a&&pr(n),i.cancelable=!1,t.notifyPlugins("afterDatasetDraw",i))}},{key:"getElementsAtEventForMode",value:function(e,t,n,r){var a=Oo.modes[t];return"function"===typeof a?a(this,e,n,r):[]}},{key:"getDatasetMeta",value:function(e){var t=this.data.datasets[e],n=this._metasets,r=n.filter(function(e){return e&&e._dataset===t}).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}},{key:"getContext",value:function(){return this.$context||(this.$context={chart:this,type:"chart"})}},{key:"getVisibleDatasetCount",value:function(){return this.getSortedVisibleDatasetMetas().length}},{key:"isDatasetVisible",value:function(e){var t=this.data.datasets[e];if(!t)return!1;var n=this.getDatasetMeta(e);return"boolean"===typeof n.hidden?!n.hidden:!t.hidden}},{key:"setDatasetVisibility",value:function(e,t){this.getDatasetMeta(e).hidden=!t}},{key:"toggleDataVisibility",value:function(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}},{key:"getDataVisibility",value:function(e){return!this._hiddenIndices[e]}},{key:"_updateVisibility",value:function(e,t,n){var r=n?"show":"hide",a=this.getDatasetMeta(e),o=a.controller._resolveAnimations(void 0,r);Wt(t)?(a.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),o.update(a,{visible:n}),this.update(function(t){return t.datasetIndex===e?r:void 0}))}},{key:"hide",value:function(e,t){this._updateVisibility(e,t,!1)}},{key:"show",value:function(e,t){this._updateVisibility(e,t,!0)}},{key:"_destroyDatasetMeta",value:function(e){var t=this._metasets&&this._metasets[e];t&&t.controller&&(t.controller._destroy(),delete this._metasets[e])}},{key:"destroy",value:function(){var e,t,n=this,r=n.canvas,a=n.ctx;for(n.stop(),Ta.remove(n),e=0,t=n.data.datasets.length;e<t;++e)n._destroyDatasetMeta(e);n.config.clearCache(),r&&(n.unbindEvents(),sr(r,a),n.platform.releaseContext(a),n.canvas=null,n.ctx=null),n.notifyPlugins("destroy"),delete Ni[n.id]}},{key:"toBase64Image",value:function(){var e;return(e=this.canvas).toDataURL.apply(e,arguments)}},{key:"bindEvents",value:function(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}},{key:"bindUserEvents",value:function(){var e=this,t=e._listeners,n=e.platform,r=function(t,n,r){t.offsetX=n,t.offsetY=r,e._eventHandler(t)};Nt(e.options.events,function(a){return function(r,a){n.addEventListener(e,r,a),t[r]=a}(a,r)})}},{key:"bindResponsiveEvents",value:function(){var e=this;e._responsiveListeners||(e._responsiveListeners={});var t,n=e._responsiveListeners,r=e.platform,a=function(t,a){r.addEventListener(e,t,a),n[t]=a},o=function(t,a){n[t]&&(r.removeEventListener(e,t,a),delete n[t])},i=function(t,n){e.canvas&&e.resize(t,n)},c=function n(){o("attach",n),e.attached=!0,e.resize(),a("resize",i),a("detach",t)};t=function(){e.attached=!1,o("resize",i),a("attach",c)},r.isAttached(e.canvas)?c():t()}},{key:"unbindEvents",value:function(){var e=this;Nt(e._listeners,function(t,n){e.platform.removeEventListener(e,n,t)}),e._listeners={},Nt(e._responsiveListeners,function(t,n){e.platform.removeEventListener(e,n,t)}),e._responsiveListeners=void 0}},{key:"updateHoverStyle",value:function(e,t,n){var r,a,o,i=n?"set":"remove";for("dataset"===t&&this.getDatasetMeta(e[0].datasetIndex).controller["_"+i+"DatasetHoverStyle"](),a=0,o=e.length;a<o;++a){var c=(r=e[a])&&this.getDatasetMeta(r.datasetIndex).controller;c&&c[i+"HoverStyle"](r.element,r.datasetIndex,r.index)}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(e){var t=this,n=t._active||[],r=e.map(function(e){var n=e.datasetIndex,r=e.index,a=t.getDatasetMeta(n);if(!a)throw new Error("No dataset found at index "+n);return{datasetIndex:n,element:a.data[r],index:r}});!Tt(r,n)&&(t._active=r,t._updateHoverStyles(r,n))}},{key:"notifyPlugins",value:function(e,t,n){return this._plugins.notify(this,e,t,n)}},{key:"_updateHoverStyles",value:function(e,t,n){var r=this.options.hover,a=function(e,t){return e.filter(function(e){return!t.some(function(t){return e.datasetIndex===t.datasetIndex&&e.index===t.index})})},o=a(t,e),i=n?e:a(e,t);o.length&&this.updateHoverStyle(o,r.mode,!1),i.length&&r.mode&&this.updateHoverStyle(i,r.mode,!0)}},{key:"_eventHandler",value:function(e,t){var n=this,r=this,a={event:e,replay:t,cancelable:!0},o=function(t){return(t.options.events||n.options.events).includes(e.type)};if(!1!==r.notifyPlugins("beforeEvent",a,o)){var i=r._handleEvent(e,t);return a.cancelable=!1,r.notifyPlugins("afterEvent",a,o),(i||a.changed)&&r.render(),r}}},{key:"_handleEvent",value:function(e,t){var n,r=this,a=r._active,o=void 0===a?[]:a,i=r.options,c=i.hover,l=t,u=[],s=null;return"mouseout"!==e.type&&(u=r.getElementsAtEventForMode(e,c.mode,c,l),s="click"===e.type?r._lastEvent:e),r._lastEvent=null,dr(e,r.chartArea,r._minPadding)&&(Mt(i.onHover,[e,u,r],r),"mouseup"!==e.type&&"click"!==e.type&&"contextmenu"!==e.type||Mt(i.onClick,[e,u,r],r)),((n=!Tt(u,o))||t)&&(r._active=u,r._updateHoverStyles(u,o,t)),r._lastEvent=s,n}},{key:"aspectRatio",get:function(){var e=this.options,t=e.aspectRatio,n=e.maintainAspectRatio,r=this.width,a=this.height,o=this._aspectRatio;return kt(t)?n&&o?o:a?r/a:null:t}},{key:"data",get:function(){return this.config.data},set:function(e){this.config.data=e}},{key:"options",get:function(){return this._options},set:function(e){this.config.options=e}}]),e}(),Fi=function(){return Nt(Ii.instances,function(e){return e._plugins.invalidate()})};function Di(e,t,n){var r=t.startAngle,a=t.pixelMargin,o=t.x,i=t.y,c=t.outerRadius,l=t.innerRadius,u=a/c;e.beginPath(),e.arc(o,i,c,r-u,n+u),l>a?(u=a/l,e.arc(o,i,l,n+u,r-u,!0)):e.arc(o,i,a,n+$t,r-$t),e.closePath(),e.clip()}function Ri(e,t,n,r){var a=jr(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),o=(n-t)/2,i=Math.min(o,r*t/2),c=function(e){var t=(n-Math.min(o,e))*r/2;return vn(e,0,Math.min(o,t))};return{outerStart:c(a.outerStart),outerEnd:c(a.outerEnd),innerStart:vn(a.innerStart,0,i),innerEnd:vn(a.innerEnd,0,i)}}function Gi(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Bi(e,t,n,r,a){var o=t.x,i=t.y,c=t.startAngle,l=t.pixelMargin,u=t.innerRadius,s=Math.max(t.outerRadius+r+n-l,0),f=u>0?u+r+n+l:0,d=0,h=a-c;if(r){var p=((u>0?u-r:0)+(s>0?s-r:0))/2;d=(h-(0!==p?h*p/(p+r):h))/2}var m=(h-Math.max(.001,h*s-n/Xt)/s)/2,v=c+m+d,g=a-m-d,y=Ri(t,f,s,g-v),b=y.outerStart,w=y.outerEnd,E=y.innerStart,x=y.innerEnd,O=s-b,j=s-w,k=v+b/O,S=g-w/j,_=f+E,C=f+x,L=v+E/_,A=g-x/C;if(e.beginPath(),e.arc(o,i,s,k,S),w>0){var P=Gi(j,S,o,i);e.arc(P.x,P.y,w,S,g+$t)}var M=Gi(C,g,o,i);if(e.lineTo(M.x,M.y),x>0){var N=Gi(C,A,o,i);e.arc(N.x,N.y,x,g+$t,A+Math.PI)}if(e.arc(o,i,f,g-x/f,v+E/f,!0),E>0){var T=Gi(_,L,o,i);e.arc(T.x,T.y,E,L+Math.PI,v-$t)}var I=Gi(O,v,o,i);if(e.lineTo(I.x,I.y),b>0){var F=Gi(O,k,o,i);e.arc(F.x,F.y,b,v-$t,k)}e.closePath()}function Hi(e,t,n,r,a){var o=t.options,i="inner"===o.borderAlign;o.borderWidth&&(i?(e.lineWidth=2*o.borderWidth,e.lineJoin="round"):(e.lineWidth=o.borderWidth,e.lineJoin="bevel"),t.fullCircles&&function(e,t,n){var r,a=t.x,o=t.y,i=t.startAngle,c=t.pixelMargin,l=t.fullCircles,u=Math.max(t.outerRadius-c,0),s=t.innerRadius+c;for(n&&Di(e,t,i+Qt),e.beginPath(),e.arc(a,o,s,i+Qt,i,!0),r=0;r<l;++r)e.stroke();for(e.beginPath(),e.arc(a,o,u,i,i+Qt),r=0;r<l;++r)e.stroke()}(e,t,i),i&&Di(e,t,a),Bi(e,t,n,r,a),e.stroke())}Object.defineProperties(Ii,{defaults:{enumerable:!0,value:ir},instances:{enumerable:!0,value:Ni},overrides:{enumerable:!0,value:nr},registry:{enumerable:!0,value:hi},version:{enumerable:!0,value:"3.5.0"},getChart:{enumerable:!0,value:Ti},register:{enumerable:!0,value:function(){hi.add.apply(hi,arguments),Fi()}},unregister:{enumerable:!0,value:function(){hi.remove.apply(hi,arguments),Fi()}}});var zi=function(e){function t(e){var n;return Object(mt.a)(this,t),(n=Object(ft.a)(this,Object(dt.a)(t).call(this))).options=void 0,n.circumference=void 0,n.startAngle=void 0,n.endAngle=void 0,n.innerRadius=void 0,n.outerRadius=void 0,n.pixelMargin=0,n.fullCircles=0,e&&Object.assign(Object(st.a)(Object(st.a)(n)),e),n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"inRange",value:function(e,t,n){var r=function(e,t){var n=t.x-e.x,r=t.y-e.y,a=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*Xt&&(o+=Qt),{angle:o,distance:a}}(this.getProps(["x","y"],n),{x:e,y:t}),a=r.angle,o=r.distance,i=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),c=i.startAngle,l=i.endAngle,u=i.innerRadius,s=i.outerRadius,f=i.circumference,d=this.options.spacing/2;return(f>=Qt||mn(a,c,l))&&(o>=u+d&&o<=s+d)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),n=t.x,r=t.y,a=t.startAngle,o=t.endAngle,i=t.innerRadius,c=t.outerRadius,l=this.options,u=l.offset,s=(a+o)/2,f=(i+c+l.spacing+u)/2;return{x:n+Math.cos(s)*f,y:r+Math.sin(s)*f}}},{key:"tooltipPosition",value:function(e){return this.getCenterPoint(e)}},{key:"draw",value:function(e){var t=this,n=t.options,r=t.circumference,a=(n.offset||0)/2,o=(n.spacing||0)/2;if(t.pixelMargin="inner"===n.borderAlign?.33:0,t.fullCircles=r>Qt?Math.floor(r/Qt):0,!(0===r||t.innerRadius<0||t.outerRadius<0)){e.save();var i=0;if(a){i=a/2;var c=(t.startAngle+t.endAngle)/2;e.translate(Math.cos(c)*i,Math.sin(c)*i),t.circumference>=Xt&&(i=a)}e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor;var l=function(e,t,n,r){var a=t.fullCircles,o=t.startAngle,i=t.circumference,c=t.endAngle;if(a){Bi(e,t,n,r,o+Qt);for(var l=0;l<a;++l)e.fill();isNaN(i)||(c=o+i%Qt,i%Qt===0&&(c+=Qt))}return Bi(e,t,n,r,c),e.fill(),c}(e,t,i,o);Hi(e,t,i,o,l),e.restore()}}}]),t}($o);function Vi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;e.lineCap=At(n.borderCapStyle,t.borderCapStyle),e.setLineDash(At(n.borderDash,t.borderDash)),e.lineDashOffset=At(n.borderDashOffset,t.borderDashOffset),e.lineJoin=At(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=At(n.borderWidth,t.borderWidth),e.strokeStyle=At(n.borderColor,t.borderColor)}function qi(e,t,n){e.lineTo(n.x,n.y)}function Yi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.length,a=n.start,o=void 0===a?0:a,i=n.end,c=void 0===i?r-1:i,l=t.start,u=t.end,s=Math.max(o,l),f=Math.min(c,u),d=o<l&&c<l||o>u&&c>u;return{count:r,start:s,loop:t.loop,ilen:f<s&&!d?r+f-s:f-s}}function Wi(e,t,n,r){var a,o,i,c=t.points,l=t.options,u=Yi(c,n,r),s=u.count,f=u.start,d=u.loop,h=u.ilen,p=function(e){return e.stepped?mr:e.tension||"monotone"===e.cubicInterpolationMode?vr:qi}(l),m=r||{},v=m.move,g=void 0===v||v,y=m.reverse;for(a=0;a<=h;++a)(o=c[(f+(y?h-a:a))%s]).skip||(g?(e.moveTo(o.x,o.y),g=!1):p(e,i,o,y,l.stepped),i=o);return d&&p(e,i,o=c[(f+(y?h:0))%s],y,l.stepped),!!d}function Ui(e,t,n,r){var a,o,i,c,l,u,s=t.points,f=Yi(s,n,r),d=f.count,h=f.start,p=f.ilen,m=r||{},v=m.move,g=void 0===v||v,y=m.reverse,b=0,w=0,E=function(e){return(h+(y?p-e:e))%d},x=function(){c!==l&&(e.lineTo(b,l),e.lineTo(b,c),e.lineTo(b,u))};for(g&&(o=s[E(0)],e.moveTo(o.x,o.y)),a=0;a<=p;++a)if(!(o=s[E(a)]).skip){var O=o.x,j=o.y,k=0|O;k===i?(j<c?c=j:j>l&&(l=j),b=(w*b+O)/++w):(x(),e.lineTo(O,j),i=k,w=0,c=l=j),u=j}x()}function Xi(e){var t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&"monotone"!==t.cubicInterpolationMode&&!t.stepped&&!n?Ui:Wi}zi.id="arc",zi.defaults={borderAlign:"center",borderColor:"#fff",borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},zi.defaultRoutes={backgroundColor:"backgroundColor"};var Qi="function"===typeof Path2D;function Ki(e,t,n,r){Qi&&1===t.segments.length?function(e,t,n,r){var a=t._path;a||(a=t._path=new Path2D,t.path(a,n,r)&&a.closePath()),Vi(e,t.options),e.stroke(a)}(e,t,n,r):function(e,t,n,r){var a,o=t.segments,i=t.options,c=Xi(t),l=Ma(o);try{for(l.s();!(a=l.n()).done;){var u=a.value;Vi(e,i,u.style),e.beginPath(),c(e,t,u,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}}catch(s){l.e(s)}finally{l.f()}}(e,t,n,r)}var Ji=function(e){function t(e){var n;return Object(mt.a)(this,t),(n=Object(ft.a)(this,Object(dt.a)(t).call(this))).animated=!0,n.options=void 0,n._loop=void 0,n._fullLoop=void 0,n._path=void 0,n._points=void 0,n._segments=void 0,n._decimated=!1,n._pointsUpdated=!1,n._datasetIndex=void 0,e&&Object.assign(Object(st.a)(Object(st.a)(n)),e),n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"updateControlPoints",value:function(e,t){var n=this,r=n.options;if((r.tension||"monotone"===r.cubicInterpolationMode)&&!r.stepped&&!n._pointsUpdated){var a=r.spanGaps?n._loop:n._fullLoop;ta(n._points,r,e,a,t),n._pointsUpdated=!0}}},{key:"first",value:function(){var e=this.segments,t=this.points;return e.length&&t[e[0].start]}},{key:"last",value:function(){var e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}},{key:"interpolate",value:function(e,t){var n=this.options,r=e[t],a=this.points,o=Ca(this,{property:t,start:r,end:r});if(o.length){var i,c,l=[],u=function(e){return e.stepped?va:e.tension||"monotone"===e.cubicInterpolationMode?ga:ma}(n);for(i=0,c=o.length;i<c;++i){var s=o[i],f=s.start,d=s.end,h=a[f],p=a[d];if(h!==p){var m=u(h,p,Math.abs((r-h[t])/(p[t]-h[t])),n.stepped);m[t]=e[t],l.push(m)}else l.push(h)}return 1===l.length?l[0]:l}}},{key:"pathSegment",value:function(e,t,n){return Xi(this)(e,this,t,n)}},{key:"path",value:function(e,t,n){var r=this,a=r.segments,o=Xi(r),i=r._loop;t=t||0,n=n||r.points.length-t;var c,l=Ma(a);try{for(l.s();!(c=l.n()).done;){i&=o(e,r,c.value,{start:t,end:t+n-1})}}catch(u){l.e(u)}finally{l.f()}return!!i}},{key:"draw",value:function(e,t,n,r){var a=this,o=a.options||{};(a.points||[]).length&&o.borderWidth&&(e.save(),Ki(e,a,n,r),e.restore(),a.animated&&(a._pointsUpdated=!1,a._path=void 0))}},{key:"points",set:function(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1},get:function(){return this._points}},{key:"segments",get:function(){return this._segments||(this._segments=function(e,t){var n=e.points,r=e.options.spanGaps,a=n.length;if(!a)return[];var o=!!e._loop,i=function(e,t,n,r){var a=0,o=t-1;if(n&&!r)for(;a<t&&!e[a].skip;)a++;for(;a<t&&e[a].skip;)a++;for(a%=t,n&&(o+=a);o>a&&e[o%t].skip;)o--;return{start:a,end:o%=t}}(n,a,o,r),c=i.start,l=i.end;return La(e,!0===r?[{start:c,end:l,loop:o}]:function(e,t,n,r){var a,o=e.length,i=[],c=t,l=e[t];for(a=t+1;a<=n;++a){var u=e[a%o];u.skip||u.stop?l.skip||(r=!1,i.push({start:t%o,end:(a-1)%o,loop:r}),t=c=u.stop?a:null):(c=a,l.skip&&(t=a)),l=u}return null!==c&&i.push({start:t%o,end:c%o,loop:r}),i}(n,c,l<c?l+a:l,!!e._fullLoop&&0===c&&l===a-1),n,t)}(this,this.options.segment))}}]),t}($o);function Zi(e,t,n,r){var a=e.options,o=e.getProps([n],r)[n];return Math.abs(t-o)<a.radius+a.hitRadius}Ji.id="line",Ji.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Ji.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Ji.descriptors={_scriptable:!0,_indexable:function(e){return"borderDash"!==e&&"fill"!==e}};var $i=function(e){function t(e){var n;return Object(mt.a)(this,t),(n=Object(ft.a)(this,Object(dt.a)(t).call(this))).options=void 0,n.parsed=void 0,n.skip=void 0,n.stop=void 0,e&&Object.assign(Object(st.a)(Object(st.a)(n)),e),n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"inRange",value:function(e,t,n){var r=this.options,a=this.getProps(["x","y"],n),o=a.x,i=a.y;return Math.pow(e-o,2)+Math.pow(t-i,2)<Math.pow(r.hitRadius+r.radius,2)}},{key:"inXRange",value:function(e,t){return Zi(this,e,"x",t)}},{key:"inYRange",value:function(e,t){return Zi(this,e,"y",t)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y"],e);return{x:t.x,y:t.y}}},{key:"size",value:function(e){var t=(e=e||this.options||{}).radius||0;return 2*((t=Math.max(t,t&&e.hoverRadius||0))+(t&&e.borderWidth||0))}},{key:"draw",value:function(e,t){var n=this,r=n.options;n.skip||r.radius<.1||!dr(n,t,n.size(r)/2)||(e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.fillStyle=r.backgroundColor,fr(e,r,n.x,n.y))}},{key:"getRange",value:function(){var e=this.options||{};return e.radius+e.hitRadius}}]),t}($o);function ec(e,t){var n,r,a,o,i,c=e.getProps(["x","y","base","width","height"],t),l=c.x,u=c.y,s=c.base,f=c.width,d=c.height;return e.horizontal?(i=d/2,n=Math.min(l,s),r=Math.max(l,s),a=u-i,o=u+i):(n=l-(i=f/2),r=l+i,a=Math.min(u,s),o=Math.max(u,s)),{left:n,top:a,right:r,bottom:o}}function tc(e,t,n,r){return e?0:vn(t,n,r)}function nc(e){var t=ec(e),n=t.right-t.left,r=t.bottom-t.top,a=function(e,t,n){var r=e.options.borderWidth,a=e.borderSkipped,o=kr(r);return{t:tc(a.top,o.top,0,n),r:tc(a.right,o.right,0,t),b:tc(a.bottom,o.bottom,0,n),l:tc(a.left,o.left,0,t)}}(e,n/2,r/2),o=function(e,t,n){var r=e.getProps(["enableBorderRadius"]).enableBorderRadius,a=e.options.borderRadius,o=Sr(a),i=Math.min(t,n),c=e.borderSkipped,l=r||_t(a);return{topLeft:tc(!l||c.top||c.left,o.topLeft,0,i),topRight:tc(!l||c.top||c.right,o.topRight,0,i),bottomLeft:tc(!l||c.bottom||c.left,o.bottomLeft,0,i),bottomRight:tc(!l||c.bottom||c.right,o.bottomRight,0,i)}}(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:o},inner:{x:t.left+a.l,y:t.top+a.t,w:n-a.l-a.r,h:r-a.t-a.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(a.t,a.l)),topRight:Math.max(0,o.topRight-Math.max(a.t,a.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(a.b,a.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(a.b,a.r))}}}}function rc(e,t,n,r){var a=null===t,o=null===n,i=e&&!(a&&o)&&ec(e,r);return i&&(a||t>=i.left&&t<=i.right)&&(o||n>=i.top&&n<=i.bottom)}function ac(e,t){e.rect(t.x,t.y,t.w,t.h)}function oc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.x!==n.x?-t:0,a=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-r,i=(e.y+e.h!==n.y+n.h?t:0)-a;return{x:e.x+r,y:e.y+a,w:e.w+o,h:e.h+i,radius:e.radius}}$i.id="point",$i.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},$i.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var ic=function(e){function t(e){var n;return Object(mt.a)(this,t),(n=Object(ft.a)(this,Object(dt.a)(t).call(this))).options=void 0,n.horizontal=void 0,n.base=void 0,n.width=void 0,n.height=void 0,e&&Object.assign(Object(st.a)(Object(st.a)(n)),e),n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"draw",value:function(e){var t,n=this.options,r=nc(this),a=r.inner,o=r.outer,i=(t=o.radius).topLeft||t.topRight||t.bottomLeft||t.bottomRight?br:ac;e.save(),o.w===a.w&&o.h===a.h||(e.beginPath(),i(e,oc(o,.33,a)),e.clip(),i(e,oc(a,-.33,o)),e.fillStyle=n.borderColor,e.fill("evenodd")),e.beginPath(),i(e,oc(a,.33,o)),e.fillStyle=n.backgroundColor,e.fill(),e.restore()}},{key:"inRange",value:function(e,t,n){return rc(this,e,t,n)}},{key:"inXRange",value:function(e,t){return rc(this,e,null,t)}},{key:"inYRange",value:function(e,t){return rc(this,null,e,t)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y","base","horizontal"],e),n=t.x,r=t.y,a=t.base,o=t.horizontal;return{x:o?(n+a)/2:n,y:o?r:(r+a)/2}}},{key:"getRange",value:function(e){return"x"===e?this.width/2:this.height/2}}]),t}($o);ic.id="bar",ic.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,enableBorderRadius:!0,pointStyle:void 0},ic.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var cc=Object.freeze({__proto__:null,ArcElement:zi,LineElement:Ji,PointElement:$i,BarElement:ic});function lc(e){if(e._decimated){var t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function uc(e){e.data.datasets.forEach(function(e){lc(e)})}var sc={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:function(e,t,n){if(n.enabled){var r=e.width;e.data.datasets.forEach(function(t,a){var o=t._data,i=t.indexAxis,c=e.getDatasetMeta(a),l=o||t.data;if("y"!==Lr([i,e.options.indexAxis])&&"line"===c.type){var u=e.scales[c.xAxisID];if(("linear"===u.type||"time"===u.type)&&!e.options.parsing){var s=function(e,t){var n=t.length,r=0,a=e.iScale,o=a.getUserBounds(),i=o.min,c=o.max,l=o.minDefined,u=o.maxDefined;return l&&(r=vn(Pr(t,a.axis,i).lo,0,n-1)),{start:r,count:u?vn(Pr(t,a.axis,c).hi+1,r,n)-r:n-r}}(c,l),f=s.start,d=s.count;if(d<=(n.threshold||4*r))lc(t);else{var h;switch(kt(o)&&(t._data=l,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":h=function(e,t,n,r,a){var o=a.samples||r;if(o>=n)return e.slice(t,t+n);var i,c,l,u,s,f=[],d=(n-2)/(o-2),h=0,p=t+n-1,m=t;for(f[h++]=e[m],i=0;i<o-2;i++){var v=0,g=0,y=void 0,b=Math.floor((i+1)*d)+1+t,w=Math.min(Math.floor((i+2)*d)+1,n)+t,E=w-b;for(y=b;y<w;y++)v+=e[y].x,g+=e[y].y;v/=E,g/=E;var x=Math.floor(i*d)+1+t,O=Math.min(Math.floor((i+1)*d)+1,n)+t,j=e[m],k=j.x,S=j.y;for(l=u=-1,y=x;y<O;y++)(u=.5*Math.abs((k-v)*(e[y].y-S)-(k-e[y].x)*(g-S)))>l&&(l=u,c=e[y],s=y);f[h++]=c,m=s}return f[h++]=e[p],f}(l,f,d,r,n);break;case"min-max":h=function(e,t,n,r){var a,o,i,c,l,u,s,f,d,h,p=0,m=0,v=[],g=t+n-1,y=e[t].x,b=e[g].x-y;for(a=t;a<t+n;++a){i=((o=e[a]).x-y)/b*r,c=o.y;var w=0|i;if(w===l)c<d?(d=c,u=a):c>h&&(h=c,s=a),p=(m*p+o.x)/++m;else{var E=a-1;if(!kt(u)&&!kt(s)){var x=Math.min(u,s),O=Math.max(u,s);x!==f&&x!==E&&v.push(Object(ae.a)({},e[x],{x:p})),O!==f&&O!==E&&v.push(Object(ae.a)({},e[O],{x:p}))}a>0&&E!==f&&v.push(e[E]),v.push(o),l=w,m=0,d=h=c,u=s=f=a}}return v}(l,f,d,r);break;default:throw new Error("Unsupported decimation algorithm '".concat(n.algorithm,"'"))}t._decimated=h}}}})}else uc(e)},destroy:function(e){uc(e)}};function fc(e,t,n){var r=function(e){var t=e.options,n=t.fill,r=At(n&&n.target,n);return void 0===r&&(r=!!t.backgroundColor),!1!==r&&null!==r&&(!0===r?"origin":r)}(e);if(_t(r))return!isNaN(r.value)&&r;var a=parseFloat(r);return Ct(a)&&Math.floor(a)===a?("-"!==r[0]&&"+"!==r[0]||(a=t+a),!(a===t||a<0||a>=n)&&a):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}var dc=function(){function e(t){Object(mt.a)(this,e),this.x=t.x,this.y=t.y,this.radius=t.radius}return Object(vt.a)(e,[{key:"pathSegment",value:function(e,t,n){var r=this.x,a=this.y,o=this.radius;return t=t||{start:0,end:Qt},e.arc(r,a,o,t.end,t.start,!0),!n.bounds}},{key:"interpolate",value:function(e){var t=this.x,n=this.y,r=this.radius,a=e.angle;return{x:t+Math.cos(a)*r,y:n+Math.sin(a)*r,angle:a}}}]),e}();function hc(e){return(e.scale||{}).getPointPositionForValue?function(e){var t,n,r,a=e.scale,o=e.fill,i=a.options,c=a.getLabels().length,l=[],u=i.reverse?a.max:a.min,s=i.reverse?a.min:a.max;if(r="start"===o?u:"end"===o?s:_t(o)?o.value:a.getBaseValue(),i.grid.circular)return n=a.getPointPositionForValue(0,u),new dc({x:n.x,y:n.y,radius:a.getDistanceFromCenterForValue(r)});for(t=0;t<c;++t)l.push(a.getPointPositionForValue(t,r));return l}(e):function(e){var t,n=e.scale,r=void 0===n?{}:n,a=e.fill,o=null;return"start"===a?o=r.bottom:"end"===a?o=r.top:_t(a)?o=r.getPixelForValue(a.value):r.getBasePixel&&(o=r.getBasePixel()),Ct(o)?{x:(t=r.isHorizontal())?o:null,y:t?null:o}:null}(e)}function pc(e,t,n){for(;t>e;t--){var r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function mc(e){var t=e.chart,n=e.scale,r=e.index,a=e.line,o=[],i=a.segments,c=a.points,l=function(e,t){for(var n=[],r=e.getSortedVisibleDatasetMetas(),a=0;a<r.length;a++){var o=r[a];if(o.index===t)break;vc(o)&&n.unshift(o.dataset)}return n}(t,r);l.push(bc({x:null,y:n.bottom},a));for(var u=0;u<i.length;u++)for(var s=i[u],f=s.start;f<=s.end;f++)gc(o,c[f],l);return new Ji({points:o,options:{}})}var vc=function(e){return"line"===e.type&&!e.hidden};function gc(e,t,n){for(var r=[],a=0;a<n.length;a++){var o=yc(n[a],t,"x"),i=o.first,c=o.last,l=o.point;if(!(!l||i&&c))if(i)r.unshift(l);else if(e.push(l),!c)break}e.push.apply(e,r)}function yc(e,t,n){var r=e.interpolate(t,n);if(!r)return{};for(var a=r[n],o=e.segments,i=e.points,c=!1,l=!1,u=0;u<o.length;u++){var s=o[u],f=i[s.start][n],d=i[s.end][n];if(a>=f&&a<=d){c=a===f,l=a===d;break}}return{first:c,last:l,point:r}}function bc(e,t){var n=[],r=!1;return St(e)?(r=!0,n=e):n=function(e,t){var n=e||{},r=n.x,a=void 0===r?null:r,o=n.y,i=void 0===o?null:o,c=t.points,l=[];return t.segments.forEach(function(e){var t=e.start,n=e.end;n=pc(t,n,c);var r=c[t],o=c[n];null!==i?(l.push({x:r.x,y:i}),l.push({x:o.x,y:i})):null!==a&&(l.push({x:a,y:r.y}),l.push({x:a,y:o.y}))}),l}(e,t),n.length?new Ji({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function wc(e,t,n){var r,a=e[t].fill,o=[t];if(!n)return a;for(;!1!==a&&-1===o.indexOf(a);){if(!Ct(a))return a;if(!(r=e[a]))return!1;if(r.visible)return a;o.push(a),a=r.fill}return!1}function Ec(e,t,n){e.beginPath(),t.path(e),e.lineTo(t.last().x,n),e.lineTo(t.first().x,n),e.closePath(),e.clip()}function xc(e,t,n,r){if(!r){var a=t[e],o=n[e];return"angle"===e&&(a=pn(a),o=pn(o)),{property:e,start:a,end:o}}}function Oc(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function jc(e,t,n){var r=t.chart.chartArea,a=r.top,o=r.bottom,i=n||{},c=i.property,l=i.start,u=i.end;"x"===c&&(e.beginPath(),e.rect(l,a,u-l,o-a),e.clip())}function kc(e,t,n,r){var a=t.interpolate(n,r);a&&e.lineTo(a.x,a.y)}function Sc(e,t){var n,r=t.line,a=t.target,o=t.property,i=t.color,c=t.scale,l=function(e,t,n){var r,a=e.segments,o=e.points,i=t.points,c=[],l=Ma(a);try{for(l.s();!(r=l.n()).done;){var u=r.value,s=u.start,f=u.end;f=pc(s,f,o);var d=xc(n,o[s],o[f],u.loop);if(t.segments){var h,p=Ma(Ca(t,d));try{for(p.s();!(h=p.n()).done;){var m,v=h.value,g=xc(n,i[v.start],i[v.end],v.loop),y=Ma(_a(u,o,g));try{for(y.s();!(m=y.n()).done;){var b=m.value;c.push({source:b,target:v,start:Object(se.a)({},n,Oc(d,g,"start",Math.max)),end:Object(se.a)({},n,Oc(d,g,"end",Math.min))})}}catch(w){y.e(w)}finally{y.f()}}}catch(w){p.e(w)}finally{p.f()}}else c.push({source:u,target:d,start:o[s],end:o[f]})}}catch(w){l.e(w)}finally{l.f()}return c}(r,a,o),u=Ma(l);try{for(u.s();!(n=u.n()).done;){var s=n.value,f=s.source,d=s.target,h=s.start,p=s.end,m=f.style,v=(void 0===m?{}:m).backgroundColor,g=void 0===v?i:v,y=!0!==a;e.save(),e.fillStyle=g,jc(e,c,y&&xc(o,h,p)),e.beginPath();var b=!!r.pathSegment(e,f),w=void 0;if(y){b?e.closePath():kc(e,a,p,o);var E=!!a.pathSegment(e,d,{move:b,reverse:!0});(w=b&&E)||kc(e,a,h,o)}e.closePath(),e.fill(w?"evenodd":"nonzero"),e.restore()}}catch(x){u.e(x)}finally{u.f()}}function _c(e,t,n){var r=function(e){var t=e.chart,n=e.fill,r=e.line;if(Ct(n))return function(e,t){var n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}(t,n);if("stack"===n)return mc(e);if("shape"===n)return!0;var a=hc(e);return a instanceof dc?a:bc(a,r)}(t),a=t.line,o=t.scale,i=t.axis,c=a.options,l=c.fill,u=c.backgroundColor,s=l||{},f=s.above,d=void 0===f?u:f,h=s.below,p=void 0===h?u:h;r&&a.points.length&&(hr(e,n),function(e,t){var n=t.line,r=t.target,a=t.above,o=t.below,i=t.area,c=t.scale,l=n._loop?"angle":t.axis;e.save(),"x"===l&&o!==a&&(Ec(e,r,i.top),Sc(e,{line:n,target:r,color:a,scale:c,property:l}),e.restore(),e.save(),Ec(e,r,i.bottom)),Sc(e,{line:n,target:r,color:o,scale:c,property:l}),e.restore()}(e,{line:a,target:r,above:d,below:p,area:n,scale:o,axis:i}),pr(e))}var Cc={id:"filler",afterDatasetsUpdate:function(e,t,n){var r,a,o,i,c=(e.data.datasets||[]).length,l=[];for(a=0;a<c;++a)i=null,(o=(r=e.getDatasetMeta(a)).dataset)&&o.options&&o instanceof Ji&&(i={visible:e.isDatasetVisible(a),index:a,fill:fc(o,a,c),chart:e,axis:r.controller.options.indexAxis,scale:r.vScale,line:o}),r.$filler=i,l.push(i);for(a=0;a<c;++a)(i=l[a])&&!1!==i.fill&&(i.fill=wc(l,a,n.propagate))},beforeDraw:function(e,t,n){for(var r="beforeDraw"===n.drawTime,a=e.getSortedVisibleDatasetMetas(),o=e.chartArea,i=a.length-1;i>=0;--i){var c=a[i].$filler;c&&(c.line.updateControlPoints(o,c.axis),r&&_c(e.ctx,c,o))}},beforeDatasetsDraw:function(e,t,n){if("beforeDatasetsDraw"===n.drawTime)for(var r=e.getSortedVisibleDatasetMetas(),a=r.length-1;a>=0;--a){var o=r[a].$filler;o&&_c(e.ctx,o,e.chartArea)}},beforeDatasetDraw:function(e,t,n){var r=t.meta.$filler;r&&!1!==r.fill&&"beforeDatasetDraw"===n.drawTime&&_c(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},Lc=function(e,t){var n=e.boxHeight,r=void 0===n?t:n,a=e.boxWidth,o=void 0===a?t:a;return e.usePointStyle&&(r=Math.min(r,t),o=Math.min(o,t)),{boxWidth:o,boxHeight:r,itemHeight:Math.max(t,r)}},Ac=function(e){function t(e){var n;return Object(mt.a)(this,t),(n=Object(ft.a)(this,Object(dt.a)(t).call(this)))._added=!1,n.legendHitBoxes=[],n._hoveredItem=null,n.doughnutMode=!1,n.chart=e.chart,n.options=e.options,n.ctx=e.ctx,n.legendItems=void 0,n.columnSizes=void 0,n.lineWidths=void 0,n.maxHeight=void 0,n.maxWidth=void 0,n.top=void 0,n.bottom=void 0,n.left=void 0,n.right=void 0,n.height=void 0,n.width=void 0,n._margins=void 0,n.position=void 0,n.weight=void 0,n.fullSize=void 0,n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"update",value:function(e,t,n){var r=this;r.maxWidth=e,r.maxHeight=t,r._margins=n,r.setDimensions(),r.buildLabels(),r.fit()}},{key:"setDimensions",value:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=e._margins.left,e.right=e.width):(e.height=e.maxHeight,e.top=e._margins.top,e.bottom=e.height)}},{key:"buildLabels",value:function(){var e=this,t=e.options.labels||{},n=Mt(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter(function(n){return t.filter(n,e.chart.data)})),t.sort&&(n=n.sort(function(n,r){return t.sort(n,r,e.chart.data)})),e.options.reverse&&n.reverse(),e.legendItems=n}},{key:"fit",value:function(){var e=this,t=e.options,n=e.ctx;if(t.display){var r,a,o=t.labels,i=Cr(o.font),c=i.size,l=e._computeTitleHeight(),u=Lc(o,c),s=u.boxWidth,f=u.itemHeight;n.font=i.string,e.isHorizontal()?(r=e.maxWidth,a=e._fitRows(l,c,s,f)+10):(a=e.maxHeight,r=e._fitCols(l,c,s,f)+10),e.width=Math.min(r,t.maxWidth||e.maxWidth),e.height=Math.min(a,t.maxHeight||e.maxHeight)}else e.width=e.height=0}},{key:"_fitRows",value:function(e,t,n,r){var a=this,o=a.ctx,i=a.maxWidth,c=a.options.labels.padding,l=a.legendHitBoxes=[],u=a.lineWidths=[0],s=r+c,f=e;o.textAlign="left",o.textBaseline="middle";var d=-1,h=-s;return a.legendItems.forEach(function(e,a){var p=n+t/2+o.measureText(e.text).width;(0===a||u[u.length-1]+p+2*c>i)&&(f+=s,u[u.length-(a>0?0:1)]=0,h+=s,d++),l[a]={left:0,top:h,row:d,width:p,height:r},u[u.length-1]+=p+c}),f}},{key:"_fitCols",value:function(e,t,n,r){var a=this,o=a.ctx,i=a.maxHeight,c=a.options.labels.padding,l=a.legendHitBoxes=[],u=a.columnSizes=[],s=i-e,f=c,d=0,h=0,p=0,m=0;return a.legendItems.forEach(function(e,a){var i=n+t/2+o.measureText(e.text).width;a>0&&h+r+2*c>s&&(f+=d+c,u.push({width:d,height:h}),p+=d+c,m++,d=h=0),l[a]={left:p,top:h,col:m,width:i,height:r},d=Math.max(d,i),h+=r+c}),f+=d,u.push({width:d,height:h}),f}},{key:"adjustHitBoxes",value:function(){var e=this;if(e.options.display){var t=e._computeTitleHeight(),n=e.legendHitBoxes,r=e.options,a=r.align,o=r.labels.padding,i=xa(r.rtl,e.left,e.width);if(this.isHorizontal()){var c,l=0,u=xt(a,e.left+o,e.right-e.lineWidths[l]),s=Ma(n);try{for(s.s();!(c=s.n()).done;){var f=c.value;l!==f.row&&(l=f.row,u=xt(a,e.left+o,e.right-e.lineWidths[l])),f.top+=e.top+t+o,f.left=i.leftForLtr(i.x(u),f.width),u+=f.width+o}}catch(g){s.e(g)}finally{s.f()}}else{var d,h=0,p=xt(a,e.top+t+o,e.bottom-e.columnSizes[h].height),m=Ma(n);try{for(m.s();!(d=m.n()).done;){var v=d.value;v.col!==h&&(h=v.col,p=xt(a,e.top+t+o,e.bottom-e.columnSizes[h].height)),v.top=p,v.left+=e.left+o,v.left=i.leftForLtr(i.x(v.left),v.width),p+=v.height+o}}catch(g){m.e(g)}finally{m.f()}}}}},{key:"isHorizontal",value:function(){return"top"===this.options.position||"bottom"===this.options.position}},{key:"draw",value:function(){if(this.options.display){var e=this.ctx;hr(e,this),this._draw(),pr(e)}}},{key:"_draw",value:function(){var e,t=this,n=t.options,r=t.columnSizes,a=t.lineWidths,o=t.ctx,i=n.align,c=n.labels,l=ir.color,u=xa(n.rtl,t.left,t.width),s=Cr(c.font),f=c.color,d=c.padding,h=s.size,p=h/2;t.drawTitle(),o.textAlign=u.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=s.string;var m=Lc(c,h),v=m.boxWidth,g=m.boxHeight,y=m.itemHeight,b=t.isHorizontal(),w=this._computeTitleHeight();e=b?{x:xt(i,t.left+d,t.right-a[0]),y:t.top+d+w,line:0}:{x:t.left+d,y:xt(i,t.top+w+d,t.bottom-r[0].height),line:0},Oa(t.ctx,n.textDirection);var E=y+d;t.legendItems.forEach(function(m,x){o.strokeStyle=m.fontColor||f,o.fillStyle=m.fontColor||f;var O=o.measureText(m.text).width,j=u.textAlign(m.textAlign||(m.textAlign=c.textAlign)),k=v+p+O,S=e.x,_=e.y;u.setWidth(t.width),b?x>0&&S+k+d>t.right&&(_=e.y+=E,e.line++,S=e.x=xt(i,t.left+d,t.right-a[e.line])):x>0&&_+E>t.bottom&&(S=e.x=S+r[e.line].width+d,e.line++,_=e.y=xt(i,t.top+w+d,t.bottom-r[e.line].height)),function(e,t,n){if(!(isNaN(v)||v<=0||isNaN(g)||g<0)){o.save();var r=At(n.lineWidth,1);if(o.fillStyle=At(n.fillStyle,l),o.lineCap=At(n.lineCap,"butt"),o.lineDashOffset=At(n.lineDashOffset,0),o.lineJoin=At(n.lineJoin,"miter"),o.lineWidth=r,o.strokeStyle=At(n.strokeStyle,l),o.setLineDash(At(n.lineDash,[])),c.usePointStyle){var a={radius:v*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},i=u.xPlus(e,v/2);fr(o,a,i,t+p)}else{var s=t+Math.max((h-g)/2,0),f=u.leftForLtr(e,v),d=Sr(n.borderRadius);o.beginPath(),Object.values(d).some(function(e){return 0!==e})?br(o,{x:f,y:s,w:v,h:g,radius:d}):o.rect(f,s,v,g),o.fill(),0!==r&&o.stroke()}o.restore()}}(u.x(S),_,m),S=function(e,t,n,r){return e===(r?"left":"right")?n:"center"===e?(t+n)/2:t}(j,S+v+p,b?S+k:t.right,n.rtl),function(e,t,n){gr(o,n.text,e,t+y/2,s,{strikethrough:n.hidden,textAlign:u.textAlign(n.textAlign)})}(u.x(S),_,m),b?e.x+=k+d:e.y+=E}),ja(t.ctx,n.textDirection)}},{key:"drawTitle",value:function(){var e=this,t=e.options,n=t.title,r=Cr(n.font),a=_r(n.padding);if(n.display){var o,i=xa(t.rtl,e.left,e.width),c=e.ctx,l=n.position,u=r.size/2,s=a.top+u,f=e.left,d=e.width;if(this.isHorizontal())d=Math.max.apply(Math,Object(oe.a)(e.lineWidths)),o=e.top+s,f=xt(t.align,f,e.right-d);else{var h=e.columnSizes.reduce(function(e,t){return Math.max(e,t.height)},0);o=s+xt(t.align,e.top,e.bottom-h-t.labels.padding-e._computeTitleHeight())}var p=xt(l,f,f+d);c.textAlign=i.textAlign(Et(l)),c.textBaseline="middle",c.strokeStyle=n.color,c.fillStyle=n.color,c.font=r.string,gr(c,n.text,p,o,r)}}},{key:"_computeTitleHeight",value:function(){var e=this.options.title,t=Cr(e.font),n=_r(e.padding);return e.display?t.lineHeight+n.height:0}},{key:"_getLegendItemAt",value:function(e,t){var n,r,a,o=this;if(e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom)for(a=o.legendHitBoxes,n=0;n<a.length;++n)if(e>=(r=a[n]).left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height)return o.legendItems[n];return null}},{key:"handleEvent",value:function(e){var t=this,n=t.options;if(function(e,t){if("mousemove"===e&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,n)){var r,a,o=t._getLegendItemAt(e.x,e.y);if("mousemove"===e.type){var i=t._hoveredItem,c=(a=o,null!==(r=i)&&null!==a&&r.datasetIndex===a.datasetIndex&&r.index===a.index);i&&!c&&Mt(n.onLeave,[e,i,t],t),t._hoveredItem=o,o&&!c&&Mt(n.onHover,[e,o,t],t)}else o&&Mt(n.onClick,[e,o,t],t)}}}]),t}($o);var Pc={id:"legend",_element:Ac,start:function(e,t,n){var r=e.legend=new Ac({ctx:e.ctx,options:n,chart:e});Fo.configure(e,r,n),Fo.addBox(e,r)},stop:function(e){Fo.removeBox(e,e.legend),delete e.legend},beforeUpdate:function(e,t,n){var r=e.legend;Fo.configure(e,r,n),r.options=n},afterUpdate:function(e){var t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent:function(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick:function(e,t,n){var r=t.datasetIndex,a=n.chart;a.isDatasetVisible(r)?(a.hide(r),t.hidden=!0):(a.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:function(e){return e.chart.options.color},boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.legend.options.labels,r=n.usePointStyle,a=n.pointStyle,o=n.textAlign,i=n.color;return e._getSortedDatasetMetas().map(function(e){var n=e.controller.getStyle(r?0:void 0),c=_r(n.borderWidth);return{text:t[e.index].label,fillStyle:n.backgroundColor,fontColor:i,hidden:!e.visible,lineCap:n.borderCapStyle,lineDash:n.borderDash,lineDashOffset:n.borderDashOffset,lineJoin:n.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:n.borderColor,pointStyle:a||n.pointStyle,rotation:n.rotation,textAlign:o||n.textAlign,borderRadius:0,datasetIndex:e.index}},this)}},title:{color:function(e){return e.chart.options.color},display:!1,position:"center",text:""}},descriptors:{_scriptable:function(e){return!e.startsWith("on")},labels:{_scriptable:function(e){return!["generateLabels","filter","sort"].includes(e)}}}},Mc=function(e){function t(e){var n;return Object(mt.a)(this,t),(n=Object(ft.a)(this,Object(dt.a)(t).call(this))).chart=e.chart,n.options=e.options,n.ctx=e.ctx,n._padding=void 0,n.top=void 0,n.bottom=void 0,n.left=void 0,n.right=void 0,n.width=void 0,n.height=void 0,n.position=void 0,n.weight=void 0,n.fullSize=void 0,n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"update",value:function(e,t){var n=this,r=n.options;if(n.left=0,n.top=0,r.display){n.width=n.right=e,n.height=n.bottom=t;var a=St(r.text)?r.text.length:1;n._padding=_r(r.padding);var o=a*Cr(r.font).lineHeight+n._padding.height;n.isHorizontal()?n.height=o:n.width=o}else n.width=n.height=n.right=n.bottom=0}},{key:"isHorizontal",value:function(){var e=this.options.position;return"top"===e||"bottom"===e}},{key:"_drawArgs",value:function(e){var t,n,r,a=this.top,o=this.left,i=this.bottom,c=this.right,l=this.options,u=l.align,s=0;return this.isHorizontal()?(n=xt(u,o,c),r=a+e,t=c-o):("left"===l.position?(n=o+e,r=xt(u,i,a),s=-.5*Xt):(n=c-e,r=xt(u,a,i),s=.5*Xt),t=i-a),{titleX:n,titleY:r,maxWidth:t,rotation:s}}},{key:"draw",value:function(){var e=this.ctx,t=this.options;if(t.display){var n=Cr(t.font),r=n.lineHeight/2+this._padding.top,a=this._drawArgs(r),o=a.titleX,i=a.titleY,c=a.maxWidth,l=a.rotation;gr(e,t.text,0,0,n,{color:t.color,maxWidth:c,rotation:l,textAlign:Et(t.align),textBaseline:"middle",translation:[o,i]})}}}]),t}($o);var Nc={id:"title",_element:Mc,start:function(e,t,n){!function(e,t){var n=new Mc({ctx:e.ctx,options:t,chart:e});Fo.configure(e,n,t),Fo.addBox(e,n),e.titleBlock=n}(e,n)},stop:function(e){var t=e.titleBlock;Fo.removeBox(e,t),delete e.titleBlock},beforeUpdate:function(e,t,n){var r=e.titleBlock;Fo.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Tc=new WeakMap,Ic={id:"subtitle",start:function(e,t,n){var r=new Mc({ctx:e.ctx,options:n,chart:e});Fo.configure(e,r,n),Fo.addBox(e,r),Tc.set(e,r)},stop:function(e){Fo.removeBox(e,Tc.get(e)),Tc.delete(e)},beforeUpdate:function(e,t,n){var r=Tc.get(e);Fo.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Fc={average:function(e){if(!e.length)return!1;var t,n,r=0,a=0,o=0;for(t=0,n=e.length;t<n;++t){var i=e[t].element;if(i&&i.hasValue()){var c=i.tooltipPosition();r+=c.x,a+=c.y,++o}}return{x:r/o,y:a/o}},nearest:function(e,t){if(!e.length)return!1;var n,r,a,o=t.x,i=t.y,c=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){var l=e[n].element;if(l&&l.hasValue()){var u=dn(t,l.getCenterPoint());u<c&&(c=u,a=l)}}if(a){var s=a.tooltipPosition();o=s.x,i=s.y}return{x:o,y:i}}};function Dc(e,t){return t&&(St(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Rc(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Gc(e,t){var n=t.element,r=t.datasetIndex,a=t.index,o=e.getDatasetMeta(r).controller,i=o.getLabelAndValue(a),c=i.label,l=i.value;return{chart:e,label:c,parsed:o.getParsed(a),raw:e.data.datasets[r].data[a],formattedValue:l,dataset:o.getDataset(),dataIndex:a,datasetIndex:r,element:n}}function Bc(e,t){var n=e._chart.ctx,r=e.body,a=e.footer,o=e.title,i=t.boxWidth,c=t.boxHeight,l=Cr(t.bodyFont),u=Cr(t.titleFont),s=Cr(t.footerFont),f=o.length,d=a.length,h=r.length,p=_r(t.padding),m=p.height,v=0,g=r.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0);(g+=e.beforeBody.length+e.afterBody.length,f&&(m+=f*u.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),g)&&(m+=h*(t.displayColors?Math.max(c,l.lineHeight):l.lineHeight)+(g-h)*l.lineHeight+(g-1)*t.bodySpacing);d&&(m+=t.footerMarginTop+d*s.lineHeight+(d-1)*t.footerSpacing);var y=0,b=function(e){v=Math.max(v,n.measureText(e).width+y)};return n.save(),n.font=u.string,Nt(e.title,b),n.font=l.string,Nt(e.beforeBody.concat(e.afterBody),b),y=t.displayColors?i+2:0,Nt(r,function(e){Nt(e.before,b),Nt(e.lines,b),Nt(e.after,b)}),y=0,n.font=s.string,Nt(e.footer,b),n.restore(),{width:v+=p.width,height:m}}function Hc(e,t,n,r){var a=n.x,o=n.width,i=e.width,c=e.chartArea,l=c.left,u=c.right,s="center";return"center"===r?s=a<=(l+u)/2?"left":"right":a<=o/2?s="left":a>=i-o/2&&(s="right"),function(e,t,n,r){var a=r.x,o=r.width,i=n.caretSize+n.caretPadding;return"left"===e&&a+o+i>t.width||"right"===e&&a-o-i<0||void 0}(s,e,t,n)&&(s="center"),s}function zc(e,t,n){var r=t.yAlign||function(e,t){var n=t.y,r=t.height;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}(e,n);return{xAlign:t.xAlign||Hc(e,t,n,r),yAlign:r}}function Vc(e,t,n,r){var a=e.caretSize,o=e.caretPadding,i=e.cornerRadius,c=n.xAlign,l=n.yAlign,u=a+o,s=i+o,f=function(e,t){var n=e.x,r=e.width;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}(t,c),d=function(e,t,n){var r=e.y,a=e.height;return"top"===t?r+=n:r-="bottom"===t?a+n:a/2,r}(t,l,u);return"center"===l?"left"===c?f+=u:"right"===c&&(f-=u):"left"===c?f-=s:"right"===c&&(f+=s),{x:vn(f,0,r.width-t.width),y:vn(d,0,r.height-t.height)}}function qc(e,t,n){var r=_r(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function Yc(e){return Dc([],Rc(e))}function Wc(e,t){var n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var Uc=function(e){function t(e){var n;return Object(mt.a)(this,t),(n=Object(ft.a)(this,Object(dt.a)(t).call(this))).opacity=0,n._active=[],n._chart=e._chart,n._eventPosition=void 0,n._size=void 0,n._cachedAnimations=void 0,n._tooltipItems=[],n.$animations=void 0,n.$context=void 0,n.options=e.options,n.dataPoints=void 0,n.title=void 0,n.beforeBody=void 0,n.body=void 0,n.afterBody=void 0,n.footer=void 0,n.xAlign=void 0,n.yAlign=void 0,n.x=void 0,n.y=void 0,n.height=void 0,n.width=void 0,n.caretX=void 0,n.caretY=void 0,n.labelColors=void 0,n.labelPointStyles=void 0,n.labelTextColors=void 0,n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"initialize",value:function(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}},{key:"_resolveAnimations",value:function(){var e=this,t=e._cachedAnimations;if(t)return t;var n=e._chart,r=e.options.setContext(e.getContext()),a=r.enabled&&n.options.animation&&r.animations,o=new Ra(e._chart,a);return a._cacheable&&(e._cachedAnimations=Object.freeze(o)),o}},{key:"getContext",value:function(){var e,t,n,r=this;return r.$context||(r.$context=(e=r._chart.getContext(),t=r,n=r._tooltipItems,Object.assign(Object.create(e),{tooltip:t,tooltipItems:n,type:"tooltip"})))}},{key:"getTitle",value:function(e,t){var n=t.callbacks,r=n.beforeTitle.apply(this,[e]),a=n.title.apply(this,[e]),o=n.afterTitle.apply(this,[e]),i=[];return i=Dc(i,Rc(r)),i=Dc(i,Rc(a)),i=Dc(i,Rc(o))}},{key:"getBeforeBody",value:function(e,t){return Yc(t.callbacks.beforeBody.apply(this,[e]))}},{key:"getBody",value:function(e,t){var n=this,r=t.callbacks,a=[];return Nt(e,function(e){var t={before:[],lines:[],after:[]},o=Wc(r,e);Dc(t.before,Rc(o.beforeLabel.call(n,e))),Dc(t.lines,o.label.call(n,e)),Dc(t.after,Rc(o.afterLabel.call(n,e))),a.push(t)}),a}},{key:"getAfterBody",value:function(e,t){return Yc(t.callbacks.afterBody.apply(this,[e]))}},{key:"getFooter",value:function(e,t){var n=t.callbacks,r=n.beforeFooter.apply(this,[e]),a=n.footer.apply(this,[e]),o=n.afterFooter.apply(this,[e]),i=[];return i=Dc(i,Rc(r)),i=Dc(i,Rc(a)),i=Dc(i,Rc(o))}},{key:"_createItems",value:function(e){var t,n,r=this,a=r._active,o=r._chart.data,i=[],c=[],l=[],u=[];for(t=0,n=a.length;t<n;++t)u.push(Gc(r._chart,a[t]));return e.filter&&(u=u.filter(function(t,n,r){return e.filter(t,n,r,o)})),e.itemSort&&(u=u.sort(function(t,n){return e.itemSort(t,n,o)})),Nt(u,function(t){var n=Wc(e.callbacks,t);i.push(n.labelColor.call(r,t)),c.push(n.labelPointStyle.call(r,t)),l.push(n.labelTextColor.call(r,t))}),r.labelColors=i,r.labelPointStyles=c,r.labelTextColors=l,r.dataPoints=u,u}},{key:"update",value:function(e,t){var n,r=this,a=r.options.setContext(r.getContext()),o=r._active,i=[];if(o.length){var c=Fc[a.position].call(r,o,r._eventPosition);i=r._createItems(a),r.title=r.getTitle(i,a),r.beforeBody=r.getBeforeBody(i,a),r.body=r.getBody(i,a),r.afterBody=r.getAfterBody(i,a),r.footer=r.getFooter(i,a);var l=r._size=Bc(r,a),u=Object.assign({},c,l),s=zc(r._chart,a,u),f=Vc(a,u,s,r._chart);r.xAlign=s.xAlign,r.yAlign=s.yAlign,n={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:c.x,caretY:c.y}}else 0!==r.opacity&&(n={opacity:0});r._tooltipItems=i,r.$context=void 0,n&&r._resolveAnimations().update(r,n),e&&a.external&&a.external.call(r,{chart:r._chart,tooltip:r,replay:t})}},{key:"drawCaret",value:function(e,t,n,r){var a=this.getCaretPosition(e,n,r);t.lineTo(a.x1,a.y1),t.lineTo(a.x2,a.y2),t.lineTo(a.x3,a.y3)}},{key:"getCaretPosition",value:function(e,t,n){var r,a,o,i,c,l,u=this.xAlign,s=this.yAlign,f=n.cornerRadius,d=n.caretSize,h=e.x,p=e.y,m=t.width,v=t.height;return"center"===s?(c=p+v/2,"left"===u?(a=(r=h)-d,i=c+d,l=c-d):(a=(r=h+m)+d,i=c-d,l=c+d),o=r):(a="left"===u?h+f+d:"right"===u?h+m-f-d:this.caretX,"top"===s?(c=(i=p)-d,r=a-d,o=a+d):(c=(i=p+v)+d,r=a+d,o=a-d),l=i),{x1:r,x2:a,x3:o,y1:i,y2:c,y3:l}}},{key:"drawTitle",value:function(e,t,n){var r,a,o,i=this.title,c=i.length;if(c){var l=xa(n.rtl,this.x,this.width);for(e.x=qc(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",r=Cr(n.titleFont),a=n.titleSpacing,t.fillStyle=n.titleColor,t.font=r.string,o=0;o<c;++o)t.fillText(i[o],l.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+a,o+1===c&&(e.y+=n.titleMarginBottom-a)}}},{key:"_drawColorBox",value:function(e,t,n,r,a){var o=this.labelColors[n],i=this.labelPointStyles[n],c=a.boxHeight,l=a.boxWidth,u=Cr(a.bodyFont),s=qc(this,"left",a),f=r.x(s),d=c<u.lineHeight?(u.lineHeight-c)/2:0,h=t.y+d;if(a.usePointStyle){var p={radius:Math.min(l,c)/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:1},m=r.leftForLtr(f,l)+l/2,v=h+c/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,fr(e,p,m,v),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,fr(e,p,m,v)}else{e.lineWidth=o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;var g=r.leftForLtr(f,l),y=r.leftForLtr(r.xPlus(f,1),l-2),b=Sr(o.borderRadius);Object.values(b).some(function(e){return 0!==e})?(e.beginPath(),e.fillStyle=a.multiKeyBackground,br(e,{x:g,y:h,w:l,h:c,radius:b}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),br(e,{x:y,y:h+1,w:l-2,h:c-2,radius:b}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(g,h,l,c),e.strokeRect(g,h,l,c),e.fillStyle=o.backgroundColor,e.fillRect(y,h+1,l-2,c-2))}e.fillStyle=this.labelTextColors[n]}},{key:"drawBody",value:function(e,t,n){var r,a,o,i,c,l,u,s=this,f=s.body,d=n.bodySpacing,h=n.bodyAlign,p=n.displayColors,m=n.boxHeight,v=n.boxWidth,g=Cr(n.bodyFont),y=g.lineHeight,b=0,w=xa(n.rtl,s.x,s.width),E=function(n){t.fillText(n,w.x(e.x+b),e.y+y/2),e.y+=y+d},x=w.textAlign(h);for(t.textAlign=h,t.textBaseline="middle",t.font=g.string,e.x=qc(s,x,n),t.fillStyle=n.bodyColor,Nt(s.beforeBody,E),b=p&&"right"!==x?"center"===h?v/2+1:v+2:0,i=0,l=f.length;i<l;++i){for(r=f[i],a=s.labelTextColors[i],t.fillStyle=a,Nt(r.before,E),o=r.lines,p&&o.length&&(s._drawColorBox(t,e,i,w,n),y=Math.max(g.lineHeight,m)),c=0,u=o.length;c<u;++c)E(o[c]),y=g.lineHeight;Nt(r.after,E)}b=0,y=g.lineHeight,Nt(s.afterBody,E),e.y-=d}},{key:"drawFooter",value:function(e,t,n){var r,a,o=this.footer,i=o.length;if(i){var c=xa(n.rtl,this.x,this.width);for(e.x=qc(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=c.textAlign(n.footerAlign),t.textBaseline="middle",r=Cr(n.footerFont),t.fillStyle=n.footerColor,t.font=r.string,a=0;a<i;++a)t.fillText(o[a],c.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+n.footerSpacing}}},{key:"drawBackground",value:function(e,t,n,r){var a=this.xAlign,o=this.yAlign,i=e.x,c=e.y,l=n.width,u=n.height,s=r.cornerRadius;t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(i+s,c),"top"===o&&this.drawCaret(e,t,n,r),t.lineTo(i+l-s,c),t.quadraticCurveTo(i+l,c,i+l,c+s),"center"===o&&"right"===a&&this.drawCaret(e,t,n,r),t.lineTo(i+l,c+u-s),t.quadraticCurveTo(i+l,c+u,i+l-s,c+u),"bottom"===o&&this.drawCaret(e,t,n,r),t.lineTo(i+s,c+u),t.quadraticCurveTo(i,c+u,i,c+u-s),"center"===o&&"left"===a&&this.drawCaret(e,t,n,r),t.lineTo(i,c+s),t.quadraticCurveTo(i,c,i+s,c),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}},{key:"_updateAnimationTarget",value:function(e){var t=this,n=t._chart,r=t.$animations,a=r&&r.x,o=r&&r.y;if(a||o){var i=Fc[e.position].call(t,t._active,t._eventPosition);if(!i)return;var c=t._size=Bc(t,e),l=Object.assign({},i,t._size),u=zc(n,e,l),s=Vc(e,l,u,n);a._to===s.x&&o._to===s.y||(t.xAlign=u.xAlign,t.yAlign=u.yAlign,t.width=c.width,t.height=c.height,t.caretX=i.x,t.caretY=i.y,t._resolveAnimations().update(t,s))}}},{key:"draw",value:function(e){var t=this,n=t.options.setContext(t.getContext()),r=t.opacity;if(r){t._updateAnimationTarget(n);var a={width:t.width,height:t.height},o={x:t.x,y:t.y};r=Math.abs(r)<.001?0:r;var i=_r(n.padding),c=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;n.enabled&&c&&(e.save(),e.globalAlpha=r,t.drawBackground(o,e,a,n),Oa(e,n.textDirection),o.y+=i.top,t.drawTitle(o,e,n),t.drawBody(o,e,n),t.drawFooter(o,e,n),ja(e,n.textDirection),e.restore())}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(e,t){var n=this,r=n._active,a=e.map(function(e){var t=e.datasetIndex,r=e.index,a=n._chart.getDatasetMeta(t);if(!a)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:a.data[r],index:r}}),o=!Tt(r,a),i=n._positionChanged(a,t);(o||i)&&(n._active=a,n._eventPosition=t,n.update(!0))}},{key:"handleEvent",value:function(e,t){var n,r=this,a=r.options,o=r._active||[],i=[];"mouseout"!==e.type&&(i=r._chart.getElementsAtEventForMode(e,a.mode,a,t),a.reverse&&i.reverse());var c=r._positionChanged(i,e);return(n=t||!Tt(i,o)||c)&&(r._active=i,(a.enabled||a.external)&&(r._eventPosition={x:e.x,y:e.y},r.update(!0,t))),n}},{key:"_positionChanged",value:function(e,t){var n=this.caretX,r=this.caretY,a=this.options,o=Fc[a.position].call(this,e,t);return!1!==o&&(n!==o.x||r!==o.y)}}]),t}($o);Uc.positioners=Fc;var Xc={id:"tooltip",_element:Uc,positioners:Fc,afterInit:function(e,t,n){n&&(e.tooltip=new Uc({_chart:e,options:n}))},beforeUpdate:function(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset:function(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw:function(e){var t=e.tooltip,n={tooltip:t};!1!==e.notifyPlugins("beforeTooltipDraw",n)&&(t&&t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n))},afterEvent:function(e,t){if(e.tooltip){var n=t.replay;e.tooltip.handleEvent(t.event,n)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:function(e,t){return t.bodyFont.size},boxWidth:function(e,t){return t.bodyFont.size},multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Ot,title:function(e){if(e.length>0){var t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Ot,beforeBody:Ot,beforeLabel:Ot,label:function(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;var t=e.dataset.label||"";t&&(t+=": ");var n=e.formattedValue;return kt(n)||(t+=n),t},labelColor:function(e){var t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor:function(){return this.options.bodyColor},labelPointStyle:function(e){var t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:Ot,afterBody:Ot,beforeFooter:Ot,footer:Ot,afterFooter:Ot}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:function(e){return"filter"!==e&&"itemSort"!==e&&"external"!==e},_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Qc=Object.freeze({__proto__:null,Decimation:sc,Filler:Cc,Legend:Pc,SubTitle:Ic,Title:Nc,Tooltip:Xc}),Kc=function(e,t,n){return"string"===typeof t?e.push(t)-1:isNaN(t)?null:n};var Jc=function(e){function t(e){var n;return Object(mt.a)(this,t),(n=Object(ft.a)(this,Object(dt.a)(t).call(this,e)))._startValue=void 0,n._valueRange=0,n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"parse",value:function(e,t){if(kt(e))return null;var n=this.getLabels();return function(e,t){return null===e?null:vn(Math.round(e),0,t)}(t=isFinite(t)&&n[t]===e?t:function(e,t,n){var r=e.indexOf(t);return-1===r?Kc(e,t,n):r!==e.lastIndexOf(t)?n:r}(n,e,At(t,e)),n.length-1)}},{key:"determineDataLimits",value:function(){var e=this,t=e.getUserBounds(),n=t.minDefined,r=t.maxDefined,a=e.getMinMax(!0),o=a.min,i=a.max;"ticks"===e.options.bounds&&(n||(o=0),r||(i=e.getLabels().length-1)),e.min=o,e.max=i}},{key:"buildTicks",value:function(){var e=this,t=e.min,n=e.max,r=e.options.offset,a=[],o=e.getLabels();o=0===t&&n===o.length-1?o:o.slice(t,n+1),e._valueRange=Math.max(o.length-(r?0:1),1),e._startValue=e.min-(r?.5:0);for(var i=t;i<=n;i++)a.push({value:i});return a}},{key:"getLabelForValue",value:function(e){var t=this.getLabels();return e>=0&&e<t.length?t[e]:e}},{key:"configure",value:function(){ht(Object(dt.a)(t.prototype),"configure",this).call(this),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}},{key:"getPixelForValue",value:function(e){return"number"!==typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}},{key:"getPixelForTick",value:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}},{key:"getValueForPixel",value:function(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}},{key:"getBasePixel",value:function(){return this.bottom}}]),t}(fi);function Zc(e,t){var n,r,a,o,i=[],c=e.bounds,l=e.step,u=e.min,s=e.max,f=e.precision,d=e.count,h=e.maxTicks,p=e.maxDigits,m=e.includeBounds,v=l||1,g=h-1,y=t.min,b=t.max,w=!kt(u),E=!kt(s),x=!kt(d),O=(b-y)/(p+1),j=an((b-y)/g/v)*v;if(j<1e-14&&!w&&!E)return[{value:y},{value:b}];(o=Math.ceil(b/j)-Math.floor(y/j))>g&&(j=an(o*j/g/v)*v),kt(f)||(n=Math.pow(10,f),j=Math.ceil(j*n)/n),"ticks"===c?(r=Math.floor(y/j)*j,a=Math.ceil(b/j)*j):(r=y,a=b),w&&E&&l&&function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e}((s-u)/l,j/1e3)?(j=(s-u)/(o=Math.round(Math.min((s-u)/j,h))),r=u,a=s):x?j=((a=E?s:a)-(r=w?u:r))/(o=d-1):o=cn(o=(a-r)/j,Math.round(o),j/1e3)?Math.round(o):Math.ceil(o);var k=Math.max(fn(j),fn(r));n=Math.pow(10,kt(f)?k:f),r=Math.round(r*n)/n,a=Math.round(a*n)/n;var S=0;for(w&&(m&&r!==u?(i.push({value:u}),r<u&&S++,cn(Math.round((r+S*j)*n)/n,u,$c(u,O,e))&&S++):r<u&&S++);S<o;++S)i.push({value:Math.round((r+S*j)*n)/n});return E&&m&&a!==s?cn(i[i.length-1].value,s,$c(s,O,e))?i[i.length-1].value=s:i.push({value:s}):E&&a!==s||i.push({value:a}),i}function $c(e,t,n){var r=n.horizontal,a=un(n.minRotation),o=(r?Math.sin(a):Math.cos(a))||.001,i=.75*t*(""+e).length;return Math.min(t/o,i)}Jc.id="category",Jc.defaults={ticks:{callback:Jc.prototype.getLabelForValue}};var el=function(e){function t(e){var n;return Object(mt.a)(this,t),(n=Object(ft.a)(this,Object(dt.a)(t).call(this,e))).start=void 0,n.end=void 0,n._startValue=void 0,n._endValue=void 0,n._valueRange=0,n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"parse",value:function(e,t){return kt(e)?null:("number"===typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}},{key:"handleTickRangeOptions",value:function(){var e=this,t=e.options.beginAtZero,n=e.getUserBounds(),r=n.minDefined,a=n.maxDefined,o=e.min,i=e.max,c=function(e){return o=r?o:e},l=function(e){return i=a?i:e};if(t){var u=rn(o),s=rn(i);u<0&&s<0?l(0):u>0&&s>0&&c(0)}if(o===i){var f=1;(i>=Number.MAX_SAFE_INTEGER||o<=Number.MIN_SAFE_INTEGER)&&(f=Math.abs(.05*i)),l(i+f),t||c(o-f)}e.min=o,e.max=i}},{key:"getTickLimit",value:function(){var e,t=this.options.ticks,n=t.maxTicksLimit,r=t.stepSize;return r?e=Math.ceil(this.max/r)-Math.floor(this.min/r)+1:(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}},{key:"computeTickLimit",value:function(){return Number.POSITIVE_INFINITY}},{key:"buildTicks",value:function(){var e=this,t=e.options,n=t.ticks,r=e.getTickLimit(),a=Zc({maxTicks:r=Math.max(2,r),bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:e._maxDigits(),horizontal:e.isHorizontal(),minRotation:n.minRotation||0,includeBounds:!1!==n.includeBounds},e._range||e);return"ticks"===t.bounds&&ln(a,e,"value"),t.reverse?(a.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),a}},{key:"configure",value:function(){var e=this,n=e.ticks,r=e.min,a=e.max;if(ht(Object(dt.a)(t.prototype),"configure",this).call(this),e.options.offset&&n.length){var o=(a-r)/Math.max(n.length-1,1)/2;r-=o,a+=o}e._startValue=r,e._endValue=a,e._valueRange=a-r}},{key:"getLabelForValue",value:function(e){return ba(e,this.chart.options.locale)}}]),t}(fi),tl=function(e){function t(){return Object(mt.a)(this,t),Object(ft.a)(this,Object(dt.a)(t).apply(this,arguments))}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"determineDataLimits",value:function(){var e=this.getMinMax(!0),t=e.min,n=e.max;this.min=Ct(t)?t:0,this.max=Ct(n)?n:1,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){var e=this,t=e.isHorizontal(),n=t?e.width:e.height,r=un(e.options.ticks.minRotation),a=(t?Math.sin(r):Math.cos(r))||.001,o=e._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/a))}},{key:"getPixelForValue",value:function(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}},{key:"getValueForPixel",value:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}]),t}(el);function nl(e){return 1===e/Math.pow(10,Math.floor(nn(e)))}tl.id="linear",tl.defaults={ticks:{callback:ti.formatters.numeric}};var rl=function(e){function t(e){var n;return Object(mt.a)(this,t),(n=Object(ft.a)(this,Object(dt.a)(t).call(this,e))).start=void 0,n.end=void 0,n._startValue=void 0,n._valueRange=0,n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"parse",value:function(e,t){var n=el.prototype.parse.apply(this,[e,t]);if(0!==n)return Ct(n)&&n>0?n:null;this._zero=!0}},{key:"determineDataLimits",value:function(){var e=this,t=e.getMinMax(!0),n=t.min,r=t.max;e.min=Ct(n)?Math.max(0,n):null,e.max=Ct(r)?Math.max(0,r):null,e.options.beginAtZero&&(e._zero=!0),e.handleTickRangeOptions()}},{key:"handleTickRangeOptions",value:function(){var e=this,t=e.getUserBounds(),n=t.minDefined,r=t.maxDefined,a=e.min,o=e.max,i=function(e){return a=n?a:e},c=function(e){return o=r?o:e},l=function(e,t){return Math.pow(10,Math.floor(nn(e))+t)};a===o&&(a<=0?(i(1),c(10)):(i(l(a,-1)),c(l(o,1)))),a<=0&&i(l(o,-1)),o<=0&&c(l(a,1)),e._zero&&e.min!==e._suggestedMin&&a===l(e.min,0)&&i(l(a,-1)),e.min=a,e.max=o}},{key:"buildTicks",value:function(){var e=this,t=e.options,n=function(e,t){var n=Math.floor(nn(t.max)),r=Math.ceil(t.max/Math.pow(10,n)),a=[],o=Lt(e.min,Math.pow(10,Math.floor(nn(t.min)))),i=Math.floor(nn(o)),c=Math.floor(o/Math.pow(10,i)),l=i<0?Math.pow(10,Math.abs(i)):1;do{a.push({value:o,major:nl(o)}),10===++c&&(c=1,l=++i>=0?1:l),o=Math.round(c*Math.pow(10,i)*l)/l}while(i<n||i===n&&c<r);var u=Lt(e.max,o);return a.push({value:u,major:nl(o)}),a}({min:e._userMin,max:e._userMax},e);return"ticks"===t.bounds&&ln(n,e,"value"),t.reverse?(n.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n}},{key:"getLabelForValue",value:function(e){return void 0===e?"0":ba(e,this.chart.options.locale)}},{key:"configure",value:function(){var e=this.min;ht(Object(dt.a)(t.prototype),"configure",this).call(this),this._startValue=nn(e),this._valueRange=nn(this.max)-nn(e)}},{key:"getPixelForValue",value:function(e){var t=this;return void 0!==e&&0!==e||(e=t.min),null===e||isNaN(e)?NaN:t.getPixelForDecimal(e===t.min?0:(nn(e)-t._startValue)/t._valueRange)}},{key:"getValueForPixel",value:function(e){var t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}]),t}(fi);function al(e){var t=e.ticks;if(t.display&&e.display){var n=_r(t.backdropPadding);return At(t.font&&t.font.size,ir.font.size)+n.height}return 0}function ol(e,t,n,r,a){return e===r||e===a?{start:t-n/2,end:t+n/2}:e<r||e>a?{start:t-n,end:t}:{start:t,end:t+n}}function il(e){for(var t,n,r,a={l:0,r:e.width,t:0,b:e.height-e.paddingTop},o={},i=[],c=[],l=e.getLabels().length,u=0;u<l;u++){var s=e.options.pointLabels.setContext(e.getPointLabelContext(u));c[u]=s.padding;var f=e.getPointPosition(u,e.drawingArea+c[u]),d=Cr(s.font),h=(t=e.ctx,n=d,r=St(r=e._pointLabels[u])?r:[r],{w:lr(t,n.string,r),h:r.length*n.lineHeight});i[u]=h;var p=e.getIndexAngle(u),m=sn(p),v=ol(m,f.x,h.w,0,180),g=ol(m,f.y,h.h,90,270);v.start<a.l&&(a.l=v.start,o.l=p),v.end>a.r&&(a.r=v.end,o.r=p),g.start<a.t&&(a.t=g.start,o.t=p),g.end>a.b&&(a.b=g.end,o.b=p)}e._setReductions(e.drawingArea,a,o),e._pointLabelItems=function(e,t,n){for(var r=[],a=e.getLabels().length,o=e.options,i=al(o),c=e.getDistanceFromCenterForValue(o.ticks.reverse?e.min:e.max),l=0;l<a;l++){var u=0===l?i/2:0,s=e.getPointPosition(l,c+u+n[l]),f=sn(e.getIndexAngle(l)),d=t[l],h=ul(s.y,d.h,f),p=cl(f),m=ll(s.x,d.w,p);r.push({x:s.x,y:h,textAlign:p,left:m,top:h,right:m+d.w,bottom:h+d.h})}return r}(e,i,c)}function cl(e){return 0===e||180===e?"center":e<180?"left":"right"}function ll(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function ul(e,t,n){return 90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t),e}function sl(e,t,n,r){var a=e.ctx;if(n)a.arc(e.xCenter,e.yCenter,t,0,Qt);else{var o=e.getPointPosition(0,t);a.moveTo(o.x,o.y);for(var i=1;i<r;i++)o=e.getPointPosition(i,t),a.lineTo(o.x,o.y)}}function fl(e){return on(e)?e:0}rl.id="logarithmic",rl.defaults={ticks:{callback:ti.formatters.logarithmic,major:{enabled:!0}}};var dl=function(e){function t(e){var n;return Object(mt.a)(this,t),(n=Object(ft.a)(this,Object(dt.a)(t).call(this,e))).xCenter=void 0,n.yCenter=void 0,n.drawingArea=void 0,n._pointLabels=[],n._pointLabelItems=[],n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"setDimensions",value:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=al(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2}},{key:"determineDataLimits",value:function(){var e=this.getMinMax(!1),t=e.min,n=e.max;this.min=Ct(t)&&!isNaN(t)?t:0,this.max=Ct(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){return Math.ceil(this.drawingArea/al(this.options))}},{key:"generateTickLabels",value:function(e){var t=this;el.prototype.generateTickLabels.call(t,e),t._pointLabels=t.getLabels().map(function(e,n){var r=Mt(t.options.pointLabels.callback,[e,n],t);return r||0===r?r:""})}},{key:"fit",value:function(){var e=this.options;e.display&&e.pointLabels.display?il(this):this.setCenterPoint(0,0,0,0)}},{key:"_setReductions",value:function(e,t,n){var r=this,a=t.l/Math.sin(n.l),o=Math.max(t.r-r.width,0)/Math.sin(n.r),i=-t.t/Math.cos(n.t),c=-Math.max(t.b-(r.height-r.paddingTop),0)/Math.cos(n.b);a=fl(a),o=fl(o),i=fl(i),c=fl(c),r.drawingArea=Math.max(e/2,Math.min(Math.floor(e-(a+o)/2),Math.floor(e-(i+c)/2))),r.setCenterPoint(a,o,i,c)}},{key:"setCenterPoint",value:function(e,t,n,r){var a=this,o=a.width-t-a.drawingArea,i=e+a.drawingArea,c=n+a.drawingArea,l=a.height-a.paddingTop-r-a.drawingArea;a.xCenter=Math.floor((i+o)/2+a.left),a.yCenter=Math.floor((c+l)/2+a.top+a.paddingTop)}},{key:"getIndexAngle",value:function(e){return pn(e*(Qt/this.getLabels().length)+un(this.options.startAngle||0))}},{key:"getDistanceFromCenterForValue",value:function(e){var t=this;if(kt(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.reverse?(t.max-e)*n:(e-t.min)*n}},{key:"getValueForDistanceFromCenter",value:function(e){if(kt(e))return NaN;var t=this,n=e/(t.drawingArea/(t.max-t.min));return t.options.reverse?t.max-n:t.min+n}},{key:"getPointLabelContext",value:function(e){var t=this._pointLabels||[];if(e>=0&&e<t.length){var n=t[e];return function(e,t,n){return Object.assign(Object.create(e),{label:n,index:t,type:"pointLabel"})}(this.getContext(),e,n)}}},{key:"getPointPosition",value:function(e,t){var n=this.getIndexAngle(e)-$t;return{x:Math.cos(n)*t+this.xCenter,y:Math.sin(n)*t+this.yCenter,angle:n}}},{key:"getPointPositionForValue",value:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}},{key:"getBasePosition",value:function(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}},{key:"getPointLabelPosition",value:function(e){var t=this._pointLabelItems[e];return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}},{key:"drawBackground",value:function(){var e=this,t=e.options,n=t.backgroundColor,r=t.grid.circular;if(n){var a=e.ctx;a.save(),a.beginPath(),sl(e,e.getDistanceFromCenterForValue(e._endValue),r,e.getLabels().length),a.closePath(),a.fillStyle=n,a.fill(),a.restore()}}},{key:"drawGrid",value:function(){var e,t,n,r=this,a=r.ctx,o=r.options,i=o.angleLines,c=o.grid,l=r.getLabels().length;if(o.pointLabels.display&&function(e,t){for(var n=e.ctx,r=e.options.pointLabels,a=t-1;a>=0;a--){var o=r.setContext(e.getPointLabelContext(a)),i=Cr(o.font),c=e._pointLabelItems[a],l=c.x,u=c.y,s=c.textAlign,f=c.left,d=c.top,h=c.right,p=c.bottom,m=o.backdropColor;if(!kt(m)){var v=_r(o.backdropPadding);n.fillStyle=m,n.fillRect(f-v.left,d-v.top,h-f+v.width,p-d+v.height)}gr(n,e._pointLabels[a],l,u+i.lineHeight/2,i,{color:o.color,textAlign:s,textBaseline:"middle"})}}(r,l),c.display&&r.ticks.forEach(function(e,n){if(0!==n){t=r.getDistanceFromCenterForValue(e.value);var a=c.setContext(r.getContext(n-1));!function(e,t,n,r){var a=e.ctx,o=t.circular,i=t.color,c=t.lineWidth;!o&&!r||!i||!c||n<0||(a.save(),a.strokeStyle=i,a.lineWidth=c,a.setLineDash(t.borderDash),a.lineDashOffset=t.borderDashOffset,a.beginPath(),sl(e,n,o,r),a.closePath(),a.stroke(),a.restore())}(r,a,t,l)}}),i.display){for(a.save(),e=r.getLabels().length-1;e>=0;e--){var u=i.setContext(r.getPointLabelContext(e)),s=u.color,f=u.lineWidth;f&&s&&(a.lineWidth=f,a.strokeStyle=s,a.setLineDash(u.borderDash),a.lineDashOffset=u.borderDashOffset,t=r.getDistanceFromCenterForValue(o.ticks.reverse?r.min:r.max),n=r.getPointPosition(e,t),a.beginPath(),a.moveTo(r.xCenter,r.yCenter),a.lineTo(n.x,n.y),a.stroke())}a.restore()}}},{key:"drawBorder",value:function(){}},{key:"drawLabels",value:function(){var e=this,t=e.ctx,n=e.options,r=n.ticks;if(r.display){var a,o,i=e.getIndexAngle(0);t.save(),t.translate(e.xCenter,e.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",e.ticks.forEach(function(i,c){if(0!==c||n.reverse){var l=r.setContext(e.getContext(c)),u=Cr(l.font);if(a=e.getDistanceFromCenterForValue(e.ticks[c].value),l.showLabelBackdrop){t.font=u.string,o=t.measureText(i.label).width,t.fillStyle=l.backdropColor;var s=_r(l.backdropPadding);t.fillRect(-o/2-s.left,-a-u.size/2-s.top,o+s.width,u.size+s.height)}gr(t,i.label,0,-a,u,{color:l.color})}}),t.restore()}}},{key:"drawTitle",value:function(){}}]),t}(el);dl.id="radialLinear",dl.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ti.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:function(e){return e},padding:5}},dl.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},dl.descriptors={angleLines:{_fallback:"grid"}};var hl={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},pl=Object.keys(hl);function ml(e,t){return e-t}function vl(e,t){if(kt(t))return null;var n=e._adapter,r=e._parseOpts,a=r.parser,o=r.round,i=r.isoWeekday,c=t;return"function"===typeof a&&(c=a(c)),Ct(c)||(c="string"===typeof a?n.parse(c,a):n.parse(c)),null===c?null:(o&&(c="week"!==o||!on(i)&&!0!==i?n.startOf(c,o):n.startOf(c,"isoWeek",i)),+c)}function gl(e,t,n,r){for(var a=pl.length,o=pl.indexOf(e);o<a-1;++o){var i=hl[pl[o]],c=i.steps?i.steps:Number.MAX_SAFE_INTEGER;if(i.common&&Math.ceil((n-t)/(c*i.size))<=r)return pl[o]}return pl[a-1]}function yl(e,t,n){if(n){if(n.length){var r=Ar(n,t),a=r.lo,o=r.hi;e[n[a]>=t?n[a]:n[o]]=!0}}else e[t]=!0}function bl(e,t,n){var r,a,o=[],i={},c=t.length;for(r=0;r<c;++r)i[a=t[r]]=r,o.push({value:a,major:!1});return 0!==c&&n?function(e,t,n,r){var a,o,i=e._adapter,c=+i.startOf(t[0].value,r),l=t[t.length-1].value;for(a=c;a<=l;a=+i.add(a,1,r))(o=n[a])>=0&&(t[o].major=!0);return t}(e,o,i,n):o}var wl=function(e){function t(e){var n;return Object(mt.a)(this,t),(n=Object(ft.a)(this,Object(dt.a)(t).call(this,e)))._cache={data:[],labels:[],all:[]},n._unit="day",n._majorUnit=void 0,n._offsets={},n._normalized=!1,n._parseOpts=void 0,n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"init",value:function(e,n){var r=e.time||(e.time={}),a=this._adapter=new vo._date(e.adapters.date);Gt(r.displayFormats,a.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},ht(Object(dt.a)(t.prototype),"init",this).call(this,e),this._normalized=n.normalized}},{key:"parse",value:function(e,t){return void 0===e?null:vl(this,e)}},{key:"beforeLayout",value:function(){ht(Object(dt.a)(t.prototype),"beforeLayout",this).call(this),this._cache={data:[],labels:[],all:[]}}},{key:"determineDataLimits",value:function(){var e=this,t=e.options,n=e._adapter,r=t.time.unit||"day",a=e.getUserBounds(),o=a.min,i=a.max,c=a.minDefined,l=a.maxDefined;function u(e){c||isNaN(e.min)||(o=Math.min(o,e.min)),l||isNaN(e.max)||(i=Math.max(i,e.max))}c&&l||(u(e._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||u(e.getMinMax(!1))),o=Ct(o)&&!isNaN(o)?o:+n.startOf(Date.now(),r),i=Ct(i)&&!isNaN(i)?i:+n.endOf(Date.now(),r)+1,e.min=Math.min(o,i-1),e.max=Math.max(o+1,i)}},{key:"_getLabelBounds",value:function(){var e=this.getLabelTimestamps(),t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}},{key:"buildTicks",value:function(){var e=this,t=e.options,n=t.time,r=t.ticks,a="labels"===r.source?e.getLabelTimestamps():e._generate();"ticks"===t.bounds&&a.length&&(e.min=e._userMin||a[0],e.max=e._userMax||a[a.length-1]);var o=e.min,i=function(e,t,n){for(var r=0,a=e.length;r<a&&e[r]<t;)r++;for(;a>r&&e[a-1]>n;)a--;return r>0||a<e.length?e.slice(r,a):e}(a,o,e.max);return e._unit=n.unit||(r.autoSkip?gl(n.minUnit,e.min,e.max,e._getLabelCapacity(o)):function(e,t,n,r,a){for(var o=pl.length-1;o>=pl.indexOf(n);o--){var i=pl[o];if(hl[i].common&&e._adapter.diff(a,r,i)>=t-1)return i}return pl[n?pl.indexOf(n):0]}(e,i.length,n.minUnit,e.min,e.max)),e._majorUnit=r.major.enabled&&"year"!==e._unit?function(e){for(var t=pl.indexOf(e)+1,n=pl.length;t<n;++t)if(hl[pl[t]].common)return pl[t]}(e._unit):void 0,e.initOffsets(a),t.reverse&&i.reverse(),bl(e,i,e._majorUnit)}},{key:"initOffsets",value:function(e){var t,n,r=this,a=0,o=0;r.options.offset&&e.length&&(t=r.getDecimalForValue(e[0]),a=1===e.length?1-t:(r.getDecimalForValue(e[1])-t)/2,n=r.getDecimalForValue(e[e.length-1]),o=1===e.length?n:(n-r.getDecimalForValue(e[e.length-2]))/2);var i=e.length<3?.5:.25;a=vn(a,0,i),o=vn(o,0,i),r._offsets={start:a,end:o,factor:1/(a+1+o)}}},{key:"_generate",value:function(){var e,t,n=this,r=n._adapter,a=n.min,o=n.max,i=n.options,c=i.time,l=c.unit||gl(c.minUnit,a,o,n._getLabelCapacity(a)),u=At(c.stepSize,1),s="week"===l&&c.isoWeekday,f=on(s)||!0===s,d={},h=a;if(f&&(h=+r.startOf(h,"isoWeek",s)),h=+r.startOf(h,f?"day":l),r.diff(o,a,l)>1e5*u)throw new Error(a+" and "+o+" are too far apart with stepSize of "+u+" "+l);var p="data"===i.ticks.source&&n.getDataTimestamps();for(e=h,t=0;e<o;e=+r.add(e,u,l),t++)yl(d,e,p);return e!==o&&"ticks"!==i.bounds&&1!==t||yl(d,e,p),Object.keys(d).sort(function(e,t){return e-t}).map(function(e){return+e})}},{key:"getLabelForValue",value:function(e){var t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}},{key:"_tickFormatFunction",value:function(e,t,n,r){var a=this,o=a.options,i=o.time.displayFormats,c=a._unit,l=a._majorUnit,u=c&&i[c],s=l&&i[l],f=n[t],d=l&&s&&f&&f.major,h=a._adapter.format(e,r||(d?s:u)),p=o.ticks.callback;return p?Mt(p,[h,t,n],a):h}},{key:"generateTickLabels",value:function(e){var t,n,r;for(t=0,n=e.length;t<n;++t)(r=e[t]).label=this._tickFormatFunction(r.value,t,e)}},{key:"getDecimalForValue",value:function(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}},{key:"getPixelForValue",value:function(e){var t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}},{key:"getValueForPixel",value:function(e){var t=this,n=t._offsets,r=t.getDecimalForPixel(e)/n.factor-n.end;return t.min+r*(t.max-t.min)}},{key:"_getLabelSize",value:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,r=un(this.isHorizontal()?t.maxRotation:t.minRotation),a=Math.cos(r),o=Math.sin(r),i=this._resolveTickFontOptions(0).size;return{w:n*a+i*o,h:n*o+i*a}}},{key:"_getLabelCapacity",value:function(e){var t=this,n=t.options.time,r=n.displayFormats,a=r[n.unit]||r.millisecond,o=t._tickFormatFunction(e,0,bl(t,[e],t._majorUnit),a),i=t._getLabelSize(o),c=Math.floor(t.isHorizontal()?t.width/i.w:t.height/i.h)-1;return c>0?c:1}},{key:"getDataTimestamps",value:function(){var e,t,n=this,r=n._cache.data||[];if(r.length)return r;var a=n.getMatchingVisibleMetas();if(n._normalized&&a.length)return n._cache.data=a[0].controller.getAllParsedValues(n);for(e=0,t=a.length;e<t;++e)r=r.concat(a[e].controller.getAllParsedValues(n));return n._cache.data=n.normalize(r)}},{key:"getLabelTimestamps",value:function(){var e,t,n=this,r=n._cache.labels||[];if(r.length)return r;var a=n.getLabels();for(e=0,t=a.length;e<t;++e)r.push(vl(n,a[e]));return n._cache.labels=n._normalized?r:n.normalize(r)}},{key:"normalize",value:function(e){return Ir(e.sort(ml))}}]),t}(fi);function El(e,t,n){var r,a,o,i,c=0,l=e.length-1;if(n){if(t>=e[c].pos&&t<=e[l].pos){var u=Pr(e,"pos",t);c=u.lo,l=u.hi}var s=e[c];r=s.pos,o=s.time;var f=e[l];a=f.pos,i=f.time}else{if(t>=e[c].time&&t<=e[l].time){var d=Pr(e,"time",t);c=d.lo,l=d.hi}var h=e[c];r=h.time,o=h.pos;var p=e[l];a=p.time,i=p.pos}var m=a-r;return m?o+(i-o)*(t-r)/m:o}wl.id="time",wl.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};var xl=function(e){function t(e){var n;return Object(mt.a)(this,t),(n=Object(ft.a)(this,Object(dt.a)(t).call(this,e)))._table=[],n._minPos=void 0,n._tableRange=void 0,n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"initOffsets",value:function(){var e=this,n=e._getTimestampsForTable(),r=e._table=e.buildLookupTable(n);e._minPos=El(r,e.min),e._tableRange=El(r,e.max)-e._minPos,ht(Object(dt.a)(t.prototype),"initOffsets",this).call(this,n)}},{key:"buildLookupTable",value:function(e){var t,n,r,a,o,i=this.min,c=this.max,l=[],u=[];for(t=0,n=e.length;t<n;++t)(a=e[t])>=i&&a<=c&&l.push(a);if(l.length<2)return[{time:i,pos:0},{time:c,pos:1}];for(t=0,n=l.length;t<n;++t)o=l[t+1],r=l[t-1],a=l[t],Math.round((o+r)/2)!==a&&u.push({time:a,pos:t/(n-1)});return u}},{key:"_getTimestampsForTable",value:function(){var e=this,t=e._cache.all||[];if(t.length)return t;var n=e.getDataTimestamps(),r=e.getLabelTimestamps();return t=n.length&&r.length?e.normalize(n.concat(r)):n.length?n:r,t=e._cache.all=t}},{key:"getDecimalForValue",value:function(e){return(El(this._table,e)-this._minPos)/this._tableRange}},{key:"getValueForPixel",value:function(e){var t=this,n=t._offsets,r=t.getDecimalForPixel(e)/n.factor-n.end;return El(t._table,r*t._tableRange+t._minPos,!0)}}]),t}(wl);xl.id="timeseries",xl.defaults=wl.defaults;var Ol=[ho,cc,Qc,Object.freeze({__proto__:null,CategoryScale:Jc,LinearScale:tl,LogarithmicScale:rl,RadialLinearScale:dl,TimeScale:wl,TimeSeriesScale:xl})];Ii.register.apply(Ii,Object(oe.a)(Ol));var jl=Ii,kl=n(1231),Sl=n.n(kl),_l=n(1382),Cl=n.n(_l),Ll=n(343),Al=n.n(Ll);function Pl(){return(Pl=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 Ml(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var Nl=Object(o.forwardRef)(function(e,t){var n=e.id,r=e.className,a=e.height,c=void 0===a?150:a,l=e.width,u=void 0===l?300:l,s=e.redraw,f=void 0!==s&&s,d=e.type,h=e.data,p=e.options,m=void 0===p?{}:p,v=e.plugins,g=void 0===v?[]:v,y=e.getDatasetAtEvent,b=e.getElementAtEvent,w=e.getElementsAtEvent,E=e.fallbackContent,x=Ml(e,["id","className","height","width","redraw","type","data","options","plugins","getDatasetAtEvent","getElementAtEvent","getElementsAtEvent","fallbackContent"]),O=Object(o.useRef)(null),j=Object(o.useMemo)(function(){return"function"===typeof h?O.current?h(O.current):{}:Sl()({},h)},[h,O.current]),k=Object(o.useState)(),S=k[0],_=k[1];Object(o.useImperativeHandle)(t,function(){return S},[S]);var C=function(){O.current&&_(new jl(O.current,{type:d,data:j,options:m,plugins:g}))},L=function(){S&&S.destroy()};return Object(o.useEffect)(function(){return C(),function(){return L()}},[]),Object(o.useEffect)(function(){f?(L(),setTimeout(function(){C()},0)):function(){if(S){if(m&&(S.options=Pl({},m)),!S.config.data)return S.config.data=j,void S.update();var e=j.datasets,t=void 0===e?[]:e,n=Ml(j,["datasets"]),r=S.config.data.datasets,a=void 0===r?[]:r;Cl()(S.config.data,n),S.config.data.datasets=t.map(function(e){var t=Al()(a,function(t){return t.label===e.label&&t.type===e.type});return t&&e.data?(t.data?t.data.length=e.data.length:t.data=[],Cl()(t.data,e.data),Pl({},t,e,{data:t.data})):e}),S.update()}}()},[e,j]),i.a.createElement("canvas",Object.assign({},x,{height:c,width:u,ref:O,id:n,className:r,onClick:function(e){S&&(y&&y(S.getElementsAtEventForMode(e,"dataset",{intersect:!0},!1),e),b&&b(S.getElementsAtEventForMode(e,"nearest",{intersect:!0},!1),e),w&&w(S.getElementsAtEventForMode(e,"index",{intersect:!0},!1),e))},"data-testid":"canvas",role:"img"}),E)}),Tl=(Object(o.forwardRef)(function(e,t){return i.a.createElement(Nl,Object.assign({},e,{type:"line",ref:t,options:e.options||{}}))}),Object(o.forwardRef)(function(e,t){return i.a.createElement(Nl,Object.assign({},e,{type:"bar",ref:t,options:e.options||{}}))}),Object(o.forwardRef)(function(e,t){return i.a.createElement(Nl,Object.assign({},e,{type:"radar",ref:t,options:e.options||{}}))}),Object(o.forwardRef)(function(e,t){return i.a.createElement(Nl,Object.assign({},e,{type:"doughnut",ref:t,options:e.options||{}}))}),Object(o.forwardRef)(function(e,t){return i.a.createElement(Nl,Object.assign({},e,{type:"polarArea",ref:t,options:e.options||{}}))}),Object(o.forwardRef)(function(e,t){return i.a.createElement(Nl,Object.assign({},e,{type:"bubble",ref:t,options:e.options||{}}))}),Object(o.forwardRef)(function(e,t){return i.a.createElement(Nl,Object.assign({},e,{type:"pie",ref:t,options:e.options||{}}))}),Object(o.forwardRef)(function(e,t){return i.a.createElement(Nl,Object.assign({},e,{type:"scatter",ref:t,options:e.options||{}}))}),n(1383)),Il=n.n(Tl);function Fl(){Fl=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Dl=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,l=(Object(c.useHistory)(),Object(a.a)(t,2)),u=(l[0],l[1]),s=Object(a.a)(n,2),f=(s[0],s[1]),d=localStorage.getItem("fteachcode"),h=Object(o.useState)("0"),p=Object(a.a)(h,2),v=p[0],g=p[1],y=Object(o.useState)("z"),b=Object(a.a)(y,2),w=b[0],E=b[1],x=Object(o.useState)("z"),O=Object(a.a)(x,2),j=O[0],k=O[1],S=Object(o.useState)("0"),_=Object(a.a)(S,2),C=_[0],L=_[1],A=function(){var e=Object(r.a)(Fl().mark(function e(){return Fl().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),e.next=4,ee.get("/admin/download-front-Sheet?fteachcode=".concat(d,"&fqpcodefrom=").concat(v,"&fqpcodeto=").concat(w,"&fboardto=").concat(j,"&fboardfrom=").concat(C),{responseType:"blob"}).then(function(e){u(!1),Il()(e.data,"".concat(v+"-"+w,".zip"))}).catch(function(e){u(!1),f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.message}})});case 4:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Download Pages for decoding")),i.a.createElement(te.a.Content,{style:{height:"75vh"}},i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Board Range"),i.a.createElement(ue.a,{placeholder:"Board From",value:C,onChange:function(e,t){return L(t.value)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement(ue.a,{style:{marginTop:"8%"},placeholder:"Board To",value:j,onChange:function(e,t){return k(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"QP Code Range"),i.a.createElement(ue.a,{placeholder:"QP From",value:v,onChange:function(e,t){return g(t.value)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement(ue.a,{style:{marginTop:"8%"},placeholder:"QP To",value:w,onChange:function(e,t){return E(t.value)}}))),i.a.createElement(ne.a,{primary:!0,onClick:A},"Submit"))))};function Rl(){Rl=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Gl=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,l=(Object(c.useHistory)(),Object(a.a)(t,2)),u=(l[0],l[1]),s=Object(a.a)(n,2),f=(s[0],s[1]),d=(localStorage.getItem("fteachcode"),Object(o.useState)("")),h=Object(a.a)(d,2),p=h[0],v=h[1],g=Object(o.useState)(""),y=Object(a.a)(g,2),b=y[0],w=y[1],E=Object(o.useState)(18),x=Object(a.a)(E,2),O=x[0],j=x[1],k=Object(o.useState)([]),S=Object(a.a)(k,2),_=S[0],C=S[1],L=function(){var e=Object(r.a)(Rl().mark(function e(){var t;return Rl().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u(!0),e.next=4,ee.post("/admin/allot-additional-batch?fteachcode=".concat(b,"&fqpcode=").concat(p,"&fnoscripts=").concat(O),{fteachcode:b,fqpcode:p,fnoscript:O});case 4:if(0!=(t=e.sent).data.status){e.next=9;break}C(t.data.res),e.next=10;break;case 9:throw new Error(t.data.msg);case 10:u(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(0),u(!1),f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 17:case"end":return e.stop()}},e,null,[[0,13]])}));return function(){return e.apply(this,arguments)}}(),A=_[0];return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Allot Additional Batch",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black",onClick:function(){v(""),w(""),C([])}},"Clear"))),i.a.createElement(te.a.Content,{style:{height:"75vh"}},i.a.createElement(le.a,null,i.a.createElement(le.a.Group,{inline:!0},i.a.createElement(le.a.Field,{width:"3"},i.a.createElement("label",null,"Teacher Code"),i.a.createElement(ue.a,{value:b,placeholder:"Enter Teacher Code",onChange:function(e,t){return w(t.value.toUpperCase())}})),i.a.createElement(le.a.Field,{width:"3"},i.a.createElement("label",null,"QP. Code"),i.a.createElement(ue.a,{placeholder:"Enter QP. Code",value:p,onChange:function(e,t){return v(t.value.toUpperCase())}})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"No. Of Scripts"),i.a.createElement(ue.a,{placeholder:"No. Of Scripts",value:O,onChange:function(e,t){return j(t.value)}})),i.a.createElement(ne.a,{primary:!0,onClick:L},"Allot"))),i.a.createElement("div",null,_.length>0?i.a.createElement(ce.a,{celled:!0},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Batch No."),i.a.createElement(ce.a.HeaderCell,null,"Date"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"QP. Code"),i.a.createElement(ce.a.HeaderCell,null,"Subject Name"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Teacher Code"),i.a.createElement(ce.a.HeaderCell,null,"Teacher Name"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Scripts Allotted"))),i.a.createElement(ce.a.Body,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,A.fbatchno),i.a.createElement(ce.a.Cell,{textAlign:"center"},A.fdate),i.a.createElement(ce.a.Cell,{textAlign:"center"},A.fqpcode),i.a.createElement(ce.a.Cell,{textAlign:"center"},A.fsubname),i.a.createElement(ce.a.Cell,{textAlign:"center"},A.fteachcode),i.a.createElement(ce.a.Cell,{textAlign:"center"},A.fteachname),i.a.createElement(ce.a.Cell,{textAlign:"center"},A.fnoscript)))):null)))},Bl=n(1519),Hl=n(1161),zl=n.n(Hl),Vl=n(1517),ql=n(1217),Yl=n(1150),Wl=n(75),Ul=n(1156),Xl=n(1151);var Ql=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},Kl=n(1198),Jl=n(1159),Zl=n(1214),$l=n(1260),eu=n(185),tu=n(186),nu=function(){function e(t){Object(eu.a)(this,e),Object(Wl.a)(this,"instanceId",void 0),Object(Wl.a)(this,"cache",new Map),this.instanceId=t}return Object(tu.a)(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var n=e.join("%"),r=t(this.cache.get(n));null===r?this.cache.delete(n):this.cache.set(n,r)}}]),e}(),ru="data-token-hash",au="data-css-hash",ou="__cssinjs_instance__";function iu(){var e=Math.random().toString(12).slice(2);if("undefined"!==typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(au,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[ou]=t[ou]||e,t[ou]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(au,"]"))).forEach(function(t){var n,a=t.getAttribute(au);r[a]?t[ou]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[a]=!0})}return new nu(e)}var cu=o.createContext({hashPriority:"low",cache:iu(),defaultCache:!0}),lu=cu,uu=n(69),su=n(1170);var fu=function(){function e(){Object(eu.a)(this,e),Object(Wl.a)(this,"cache",void 0),Object(Wl.a)(this,"keys",void 0),Object(Wl.a)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Object(tu.a)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a={map:this.cache};return e.forEach(function(e){var t;a?a=null===(t=a)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):a=void 0}),null!==(t=a)&&void 0!==t&&t.value&&r&&(a.value[1]=this.cacheCallTimes++),null===(n=a)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(e,t){var n=Object(Yl.a)(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),o=Object(Yl.a)(a,1)[0];this.delete(o)}this.keys.push(t)}var i=this.cache;t.forEach(function(e,a){if(a===t.length-1)i.set(e,{value:[n,r.cacheCallTimes++]});else{var o=i.get(e);o?o.map||(o.map=new Map):i.set(e,{map:new Map}),i=i.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var a=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),a}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();Object(Wl.a)(fu,"MAX_CACHE_SIZE",20),Object(Wl.a)(fu,"MAX_CACHE_OFFSET",5);var du=n(1160),hu=0,pu=function(){function e(t){Object(eu.a)(this,e),Object(Wl.a)(this,"derivatives",void 0),Object(Wl.a)(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=hu,0===t.length&&Object(du.d)(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),hu+=1}return Object(tu.a)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),mu=new fu;function vu(e){var t=Array.isArray(e)?e:[e];return mu.has(t)||mu.set(t,new pu(t)),mu.get(t)}var gu=new WeakMap,yu={};var bu=new WeakMap;function wu(e){var t=bu.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof pu?t+=r.id:r&&"object"===Object(uu.a)(r)?t+=wu(r):t+=r}),bu.set(e,t)),t}function Eu(e,t){return Ql("".concat(t,"_").concat(wu(e)))}var xu="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Ou="_bAmBoO_";function ju(e,t,n){if(Object(su.a)()){var r,a;Object(Kl.b)(e,xu);var o=document.createElement("div");o.style.position="fixed",o.style.left="0",o.style.top="0",null===t||void 0===t||t(o),document.body.appendChild(o);var i=n?n(o):null===(r=getComputedStyle(o).content)||void 0===r?void 0:r.includes(Ou);return null===(a=o.parentNode)||void 0===a||a.removeChild(o),Object(Kl.a)(xu),i}return!1}var ku=void 0;var Su=Object(su.a)();function _u(e){return"number"===typeof e?"".concat(e,"px"):e}function Cu(e,t,n){var r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=Object(Xl.a)(Object(Xl.a)({},a),{},(r={},Object(Wl.a)(r,ru,t),Object(Wl.a)(r,au,n),r)),i=Object.keys(o).map(function(e){var t=o[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var Lu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Au=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!==n&&void 0!==n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(e){var t=Object(Yl.a)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):""},Pu=function(e,t,n){var r={},a={};return Object.entries(e).forEach(function(e){var t,o,i=Object(Yl.a)(e,2),c=i[0],l=i[1];if(null!==n&&void 0!==n&&null!==(t=n.preserve)&&void 0!==t&&t[c])a[c]=l;else if(("string"===typeof l||"number"===typeof l)&&(null===n||void 0===n||null===(o=n.ignore)||void 0===o||!o[c])){var u,s=Lu(c,null===n||void 0===n?void 0:n.prefix);r[s]="number"!==typeof l||null!==n&&void 0!==n&&null!==(u=n.unitless)&&void 0!==u&&u[c]?String(l):"".concat(l,"px"),a[c]="var(".concat(s,")")}}),[a,Au(r,t,{scope:null===n||void 0===n?void 0:n.scope})]},Mu=n(1167),Nu=Object(Xl.a)({},o).useInsertionEffect,Tu=Nu?function(e,t,n){return Nu(function(){return e(),t()},n)}:function(e,t,n){o.useMemo(e,n),Object(Mu.a)(function(){return t(!0)},n)},Iu="undefined"!==typeof Object(Xl.a)({},o).useInsertionEffect?function(e){var t=[],n=!1;return o.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};var Fu=function(){return!1};function Du(e,t,n,r,a){var i=o.useContext(lu).cache,c=[e].concat(Object(Ul.a)(t)),l=c.join("_"),u=Iu([l]),s=(Fu(),function(e){i.update(c,function(t){var r=t||[void 0,void 0],a=Object(Yl.a)(r,2),o=a[0];var i=[void 0===o?0:o,a[1]||n()];return e?e(i):i})});o.useMemo(function(){s()},[l]);var f=i.get(c)[1];return Tu(function(){null===a||void 0===a||a(f)},function(e){return s(function(t){var n=Object(Yl.a)(t,2),r=n[0],o=n[1];return e&&0===r&&(null===a||void 0===a||a(f)),[r+1,o]}),function(){i.update(c,function(t){var n=t||[],a=Object(Yl.a)(n,2),o=a[0],l=void 0===o?0:o,s=a[1];return 0===l-1?(u(function(){!e&&i.get(c)||null===r||void 0===r||r(s,!1)}),null):[l-1,s]})}},[l]),f}var Ru={},Gu="css",Bu=new Map;var Hu=0;function zu(e,t){Bu.set(e,(Bu.get(e)||0)-1);var n=Array.from(Bu.keys()),r=n.filter(function(e){return(Bu.get(e)||0)<=0});n.length-r.length>Hu&&r.forEach(function(e){!function(e,t){"undefined"!==typeof document&&document.querySelectorAll("style[".concat(ru,'="').concat(e,'"]')).forEach(function(e){var n;e[ou]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))})}(e,t),Bu.delete(e)})}var Vu=function(e,t,n,r){var a=n.getDerivativeToken(e),o=Object(Xl.a)(Object(Xl.a)({},a),t);return r&&(o=r(o)),o},qu="token";function Yu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object(o.useContext)(lu),a=r.cache.instanceId,i=r.container,c=n.salt,l=void 0===c?"":c,u=n.override,s=void 0===u?Ru:u,f=n.formatToken,d=n.getComputedToken,h=n.cssVar,p=function(e,t){for(var n=gu,r=0;r<t.length;r+=1){var a=t[r];n.has(a)||n.set(a,new WeakMap),n=n.get(a)}return n.has(yu)||n.set(yu,e()),n.get(yu)}(function(){return Object.assign.apply(Object,[{}].concat(Object(Ul.a)(t)))},t),m=wu(p),v=wu(s),g=h?wu(h):"";return Du(qu,[l,e.id,m,v,g],function(){var t,n=d?d(p,s,e):Vu(p,s,e,f),r=Object(Xl.a)({},n),a="";if(h){var o=Pu(n,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),i=Object(Yl.a)(o,2);n=i[0],a=i[1]}var c=Eu(n,l);n._tokenKey=c,r._tokenKey=Eu(r,l);var u=null!==(t=null===h||void 0===h?void 0:h.key)&&void 0!==t?t:c;n._themeKey=u,function(e){Bu.set(e,(Bu.get(e)||0)+1)}(u);var m="".concat(Gu,"-").concat(Ql(c));return n._hashId=m,[n,m,r,a,(null===h||void 0===h?void 0:h.key)||""]},function(e){zu(e[0]._themeKey,a)},function(e){var t=Object(Yl.a)(e,4),n=t[0],r=t[3];if(h&&r){var o=Object(Kl.b)(r,Ql("css-variables-".concat(n._themeKey)),{mark:au,prepend:"queue",attachTo:i,priority:-999});o[ou]=a,o.setAttribute(ru,n._themeKey)}})}var Wu=n(48),Uu={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Xu="comm",Qu="rule",Ku="decl",Ju="@import",Zu="@keyframes",$u="@layer",es=Math.abs,ts=String.fromCharCode;Object.assign;function ns(e){return e.trim()}function rs(e,t,n){return e.replace(t,n)}function as(e,t,n){return e.indexOf(t,n)}function os(e,t){return 0|e.charCodeAt(t)}function is(e,t,n){return e.slice(t,n)}function cs(e){return e.length}function ls(e){return e.length}function us(e,t){return t.push(e),e}var ss=1,fs=1,ds=0,hs=0,ps=0,ms="";function vs(e,t,n,r,a,o,i,c){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:ss,column:fs,length:i,return:"",siblings:c}}function gs(){return ps=hs<ds?os(ms,hs++):0,fs++,10===ps&&(fs=1,ss++),ps}function ys(){return os(ms,hs)}function bs(){return hs}function ws(e,t){return is(ms,e,t)}function Es(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xs(e){return ss=fs=1,ds=cs(ms=e),hs=0,[]}function Os(e){return ms="",e}function js(e){return ns(ws(hs-1,function e(t){for(;gs();)switch(ps){case t:return hs;case 34:case 39:34!==t&&39!==t&&e(ps);break;case 40:41===t&&e(t);break;case 92:gs()}return hs}(91===e?e+2:40===e?e+1:e)))}function ks(e){for(;(ps=ys())&&ps<33;)gs();return Es(e)>2||Es(ps)>3?"":" "}function Ss(e,t){for(;--t&&gs()&&!(ps<48||ps>102||ps>57&&ps<65||ps>70&&ps<97););return ws(e,bs()+(t<6&&32==ys()&&32==gs()))}function _s(e,t){for(;gs()&&e+ps!==57&&(e+ps!==84||47!==ys()););return"/*"+ws(t,hs-1)+"*"+ts(47===e?e:gs())}function Cs(e){for(;!Es(ys());)gs();return ws(e,hs)}function Ls(e){return Os(function e(t,n,r,a,o,i,c,l,u){var s=0;var f=0;var d=c;var h=0;var p=0;var m=0;var v=1;var g=1;var y=1;var b=0;var w="";var E=o;var x=i;var O=a;var j=w;for(;g;)switch(m=b,b=gs()){case 40:if(108!=m&&58==os(j,d-1)){-1!=as(j+=rs(js(b),"&","&\f"),"&\f",es(s?l[s-1]:0))&&(y=-1);break}case 34:case 39:case 91:j+=js(b);break;case 9:case 10:case 13:case 32:j+=ks(m);break;case 92:j+=Ss(bs()-1,7);continue;case 47:switch(ys()){case 42:case 47:us(Ps(_s(gs(),bs()),n,r,u),u);break;default:j+="/"}break;case 123*v:l[s++]=cs(j)*y;case 125*v:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+f:-1==y&&(j=rs(j,/\f/g,"")),p>0&&cs(j)-d&&us(p>32?Ms(j+";",a,r,d-1,u):Ms(rs(j," ","")+";",a,r,d-2,u),u);break;case 59:j+=";";default:if(us(O=As(j,n,r,s,f,o,l,w,E=[],x=[],d,i),i),123===b)if(0===f)e(j,n,O,O,E,i,d,l,x);else switch(99===h&&110===os(j,3)?100:h){case 100:case 108:case 109:case 115:e(t,O,O,a&&us(As(t,O,O,0,0,o,l,w,o,E=[],d,x),x),o,x,d,l,a?E:x);break;default:e(j,O,O,O,[""],x,0,l,x)}}s=f=p=0,v=y=1,w=j="",d=c;break;case 58:d=1+cs(j),p=m;default:if(v<1)if(123==b)--v;else if(125==b&&0==v++&&125==(ps=hs>0?os(ms,--hs):0,fs--,10===ps&&(fs=1,ss--),ps))continue;switch(j+=ts(b),b*v){case 38:y=f>0?1:(j+="\f",-1);break;case 44:l[s++]=(cs(j)-1)*y,y=1;break;case 64:45===ys()&&(j+=js(gs())),h=ys(),f=d=cs(w=j+=Cs(bs())),b++;break;case 45:45===m&&2==cs(j)&&(v=0)}}return i}("",null,null,null,[""],e=xs(e),0,[0],e))}function As(e,t,n,r,a,o,i,c,l,u,s,f){for(var d=a-1,h=0===a?o:[""],p=ls(h),m=0,v=0,g=0;m<r;++m)for(var y=0,b=is(e,d+1,d=es(v=i[m])),w=e;y<p;++y)(w=ns(v>0?h[y]+" "+b:rs(b,/&\f/g,h[y])))&&(l[g++]=w);return vs(e,t,n,0===a?Qu:c,l,u,s,f)}function Ps(e,t,n,r){return vs(e,t,n,Xu,ts(ps),is(e,2,-2),0,r)}function Ms(e,t,n,r,a){return vs(e,t,n,Ku,is(e,0,r),is(e,r+1,-1),r,a)}function Ns(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ts(e,t,n,r){switch(e.type){case $u:if(e.children.length)break;case Ju:case Ku:return e.return=e.return||e.value;case Xu:return"";case Zu:return e.return=e.value+"{"+Ns(e.children,r)+"}";case Qu:if(!cs(e.value=e.props.join(",")))return""}return cs(n=Ns(e.children,r))?e.return=e.value+"{"+n+"}":""}var Is,Fs="data-ant-cssinjs-cache-path",Ds="_FILE_STYLE__";var Rs=!0;function Gs(e){return function(){if(!Is&&(Is={},Object(su.a)())){var e=document.createElement("div");e.className=Fs,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),n=Object(Yl.a)(t,2),r=n[0],a=n[1];Is[r]=a});var n,r=document.querySelector("style[".concat(Fs,"]"));r&&(Rs=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Is[e]}var Bs="_skip_check_",Hs="_multi_value_";function zs(e){return Ns(Ls(e),Ts).replace(/\{%%%\:[^;];}/g,";")}var Vs=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,o=r.injectHash,i=r.parentSelectors,c=n.hashId,l=n.layer,u=(n.path,n.hashPriority),s=n.transformers,f=void 0===s?[]:s,d=(n.linters,""),h={};function p(t){var r=t.getName(c);if(!h[r]){var a=e(t.style,n,{root:!1,parentSelectors:i}),o=Object(Yl.a)(a,1)[0];h[r]="@keyframes ".concat(t.getName(c)).concat(o)}}if(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n}(Array.isArray(t)?t:[t]).forEach(function(t){var r="string"!==typeof t||a?t:{};if("string"===typeof r)d+="".concat(r,"\n");else if(r._keyframe)p(r);else{var l=f.reduce(function(e,t){var n;return(null===t||void 0===t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(l).forEach(function(t){var r=l[t];if("object"!==Object(uu.a)(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===Object(uu.a)(e)&&e&&(Bs in e||Hs in e)}(r)){var s,f=function(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;Uu[e]||"number"!==typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!==t&&void 0!==t&&t._keyframe&&(p(t),r=t.getName(c)),d+="".concat(n,":").concat(r,";")},m=null!==(s=null===r||void 0===r?void 0:r.value)&&void 0!==s?s:r;"object"===Object(uu.a)(r)&&null!==r&&void 0!==r&&r[Hs]&&Array.isArray(m)?m.forEach(function(e){f(t,e)}):f(t,m)}else{var v=!1,g=t.trim(),y=!1;(a||o)&&c?g.startsWith("@")?v=!0:g=function(e,t,n){if(!t)return e;var r=".".concat(t),a="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",o=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(o).concat(a).concat(r.slice(o.length))].concat(Object(Ul.a)(n.slice(1))).join(" ")}).join(",")}(t,c,u):!a||c||"&"!==g&&""!==g||(g="",y=!0);var b=e(r,n,{root:y,injectHash:v,parentSelectors:[].concat(Object(Ul.a)(i),[g])}),w=Object(Yl.a)(b,2),E=w[0],x=w[1];h=Object(Xl.a)(Object(Xl.a)({},h),x),d+="".concat(g).concat(E)}})}}),a){if(l&&(void 0===ku&&(ku=ju("@layer ".concat(xu," { .").concat(xu,' { content: "').concat(Ou,'"!important; } }'),function(e){e.className=xu})),ku)){var m=l.split(","),v=m[m.length-1].trim();d="@layer ".concat(v," {").concat(d,"}"),m.length>1&&(d="@layer ".concat(l,"{%%%:%}").concat(d))}}else d="{".concat(d,"}");return[d,h]};function qs(e,t){return Ql("".concat(e.join("%")).concat(t))}function Ys(){return null}var Ws="style";function Us(e,t){var n=e.token,r=e.path,a=e.hashId,i=e.layer,c=e.nonce,l=e.clientOnly,u=e.order,s=void 0===u?0:u,f=o.useContext(lu),d=f.autoClear,h=(f.mock,f.defaultCache),p=f.hashPriority,m=f.container,v=f.ssrInline,g=f.transformers,y=f.linters,b=f.cache,w=n._tokenKey,E=[w].concat(Object(Ul.a)(r)),x=Su;var O=Du(Ws,E,function(){var e=E.join("|");if(Gs(e)){var n=function(e){var t=Is[e],n=null;if(t&&Object(su.a)())if(Rs)n=Ds;else{var r=document.querySelector("style[".concat(au,'="').concat(Is[e],'"]'));r?n=r.innerHTML:delete Is[e]}return[n,t]}(e),o=Object(Yl.a)(n,2),c=o[0],u=o[1];if(c)return[c,w,u,{},l,s]}var f=t(),d=Vs(f,{hashId:a,hashPriority:p,layer:i,path:r.join("-"),transformers:g,linters:y}),h=Object(Yl.a)(d,2),m=h[0],v=h[1],b=zs(m),x=qs(E,b);return[b,w,x,v,l,s]},function(e,t){var n=Object(Yl.a)(e,3)[2];(t||d)&&Su&&Object(Kl.a)(n,{mark:au})},function(e){var t=Object(Yl.a)(e,4),n=t[0],r=(t[1],t[2]),a=t[3];if(x&&n!==Ds){var o={mark:au,prepend:"queue",attachTo:m,priority:s},i="function"===typeof c?c():c;i&&(o.csp={nonce:i});var l=Object(Kl.b)(n,r,o);l[ou]=b.instanceId,l.setAttribute(ru,w),Object.keys(a).forEach(function(e){Object(Kl.b)(zs(a[e]),"_effect-".concat(e),o)})}}),j=Object(Yl.a)(O,3),k=j[0],S=j[1],_=j[2];return function(e){var t,n;v&&!x&&h?t=o.createElement("style",Object(Wu.a)({},(n={},Object(Wl.a)(n,ru,S),Object(Wl.a)(n,au,_),n),{dangerouslySetInnerHTML:{__html:k}})):t=o.createElement(Ys,null);return o.createElement(o.Fragment,null,t,e)}}var Xs,Qs=function(e,t){var n=e.key,r=e.prefix,a=e.unitless,i=e.ignore,c=e.token,l=e.scope,u=void 0===l?"":l,s=Object(o.useContext)(lu),f=s.cache.instanceId,d=s.container,h=c._tokenKey,p=[].concat(Object(Ul.a)(e.path),[n,u,h]);return Du("cssVar",p,function(){var e=t(),o=Pu(e,n,{prefix:r,unitless:a,ignore:i,scope:u}),c=Object(Yl.a)(o,2),l=c[0],s=c[1];return[l,s,qs(p,s),n]},function(e){var t=Object(Yl.a)(e,3)[2];Su&&Object(Kl.a)(t,{mark:au})},function(e){var t=Object(Yl.a)(e,3),r=t[1],a=t[2];if(r){var o=Object(Kl.b)(r,a,{mark:au,prepend:"queue",attachTo:d,priority:-999});o[ou]=f,o.setAttribute(ru,n)}})};Xs={},Object(Wl.a)(Xs,Ws,function(e,t,n){var r=Object(Yl.a)(e,6),a=r[0],o=r[1],i=r[2],c=r[3],l=r[4],u=r[5],s=(n||{}).plain;if(l)return null;var f=a,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return f=Cu(a,o,i,d,s),c&&Object.keys(c).forEach(function(e){if(!t[e]){t[e]=!0;var n=zs(c[e]);f+=Cu(n,o,"_effect-".concat(e),d,s)}}),[u,i,f]}),Object(Wl.a)(Xs,qu,function(e,t,n){var r=Object(Yl.a)(e,5),a=r[2],o=r[3],i=r[4],c=(n||{}).plain;if(!o)return null;var l=a._tokenKey;return[-999,l,Cu(o,i,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]}),Object(Wl.a)(Xs,"cssVar",function(e,t,n){var r=Object(Yl.a)(e,4),a=r[1],o=r[2],i=r[3],c=(n||{}).plain;if(!a)return null;return[-999,o,Cu(a,i,o,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]});var Ks=function(){function e(t,n){Object(eu.a)(this,e),Object(Wl.a)(this,"name",void 0),Object(Wl.a)(this,"style",void 0),Object(Wl.a)(this,"_keyframe",!0),this.name=t,this.style=n}return Object(tu.a)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function Js(e){return e.notSplit=!0,e}Js(["borderTop","borderBottom"]),Js(["borderTop"]),Js(["borderBottom"]),Js(["borderLeft","borderRight"]),Js(["borderLeft"]),Js(["borderRight"]);var Zs="5.12.7",$s=n(1306),ef=n(1389),tf=2,nf=.16,rf=.05,af=.05,of=.15,cf=5,lf=4,uf=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function sf(e){var t=e.r,n=e.g,r=e.b,a=Object($s.h)(t,n,r);return{h:360*a.h,s:a.s,v:a.v}}function ff(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Object($s.f)(t,n,r,!1))}function df(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-tf*t:Math.round(e.h)+tf*t:n?Math.round(e.h)+tf*t:Math.round(e.h)-tf*t)<0?r+=360:r>=360&&(r-=360),r}function hf(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-nf*t:t===lf?e.s+nf:e.s+rf*t)>1&&(r=1),n&&t===cf&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function pf(e,t,n){var r;return(r=n?e.v+af*t:e.v-of*t)>1&&(r=1),Number(r.toFixed(2))}function mf(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Object(ef.a)(e),a=cf;a>0;a-=1){var o=sf(r),i=ff(Object(ef.a)({h:df(o,a,!0),s:hf(o,a,!0),v:pf(o,a,!0)}));n.push(i)}n.push(ff(r));for(var c=1;c<=lf;c+=1){var l=sf(r),u=ff(Object(ef.a)({h:df(l,c),s:hf(l,c),v:pf(l,c)}));n.push(u)}return"dark"===t.theme?uf.map(function(e){var r=e.index,a=e.opacity;return ff(function(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}(Object(ef.a)(t.backgroundColor||"#141414"),Object(ef.a)(n[r]),100*a))}):n}var vf={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},gf={},yf={};Object.keys(vf).forEach(function(e){gf[e]=mf(vf[e]),gf[e].primary=gf[e][5],yf[e]=mf(vf[e],{theme:"dark",backgroundColor:"#141414"}),yf[e].primary=yf[e][5]});gf.red,gf.volcano,gf.gold,gf.orange,gf.yellow,gf.lime,gf.green,gf.cyan;var bf=gf.blue,wf=(gf.geekblue,gf.purple,gf.magenta,gf.grey,gf.grey,function(e){var t=e.controlHeight;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}});var Ef={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},xf=Object.assign(Object.assign({},Ef),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Of=n(1543);var jf=function(e){var t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};var kf=function(e,t){return new Of.a(e).setAlpha(t).toRgbString()},Sf=function(e,t){return new Of.a(e).darken(t).toHexString()},_f=function(e){var t=mf(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Cf=function(e,t){var n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:kf(r,.88),colorTextSecondary:kf(r,.65),colorTextTertiary:kf(r,.45),colorTextQuaternary:kf(r,.25),colorFill:kf(r,.15),colorFillSecondary:kf(r,.06),colorFillTertiary:kf(r,.04),colorFillQuaternary:kf(r,.02),colorBgLayout:Sf(n,4),colorBgContainer:Sf(n,0),colorBgElevated:Sf(n,0),colorBgSpotlight:kf(r,.85),colorBgBlur:"transparent",colorBorder:Sf(n,15),colorBorderSecondary:Sf(n,6)}};var Lf=function(e){var t=function(e){var t=new Array(10).fill(null).map(function(t,n){var r=n-1,a=e*Math.pow(2.71828,r/5),o=n>1?Math.floor(a):Math.ceil(a);return 2*Math.floor(o/2)});return t[1]=e,t.map(function(e){return{size:e,lineHeight:(e+8)/e}})}(e),n=t.map(function(e){return e.size}),r=t.map(function(e){return e.lineHeight}),a=n[1],o=n[0],i=n[2],c=r[1],l=r[0],u=r[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:c,lineHeightLG:u,lineHeightSM:l,fontHeight:Math.round(c*a),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};var Af=vu(function(e){var t=Object.keys(Ef).map(function(t){var n=mf(e[t]);return new Array(10).fill(1).reduce(function(e,r,a){return e["".concat(t,"-").concat(a+1)]=n[a],e["".concat(t).concat(a+1)]=n[a],e},{})}).reduce(function(e,t){return e=Object.assign(Object.assign({},e),t)},{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){var n=t.generateColorPalettes,r=t.generateNeutralColorPalettes,a=e.colorSuccess,o=e.colorWarning,i=e.colorError,c=e.colorInfo,l=e.colorPrimary,u=e.colorBgBase,s=e.colorTextBase,f=n(l),d=n(a),h=n(o),p=n(i),m=n(c),v=r(u,s),g=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new Of.a("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:_f,generateNeutralColorPalettes:Cf})),Lf(e.fontSize)),function(e){var t=e.sizeUnit,n=e.sizeStep;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),wf(e)),function(e){var t=e.motionUnit,n=e.motionBase,r=e.borderRadius,a=e.lineWidth;return Object.assign({motionDurationFast:"".concat((n+t).toFixed(1),"s"),motionDurationMid:"".concat((n+2*t).toFixed(1),"s"),motionDurationSlow:"".concat((n+3*t).toFixed(1),"s"),lineWidthBold:a+1},jf(r))}(e))}),Pf={token:xf,override:{override:xf},hashed:!0},Mf=i.a.createContext(Pf);function Nf(e){return e>=0&&e<=255}var Tf=function(e,t){var n=new Of.a(e).toRgb(),r=n.r,a=n.g,o=n.b;if(n.a<1)return e;for(var i=new Of.a(t).toRgb(),c=i.r,l=i.g,u=i.b,s=.01;s<=1;s+=.01){var f=Math.round((r-c*(1-s))/s),d=Math.round((a-l*(1-s))/s),h=Math.round((o-u*(1-s))/s);if(Nf(f)&&Nf(d)&&Nf(h))return new Of.a({r:f,g:d,b:h,a:Math.round(100*s)/100}).toRgbString()}return new Of.a({r:r,g:a,b:o,a:1}).toRgbString()},If=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function Ff(e){var t=e.override,n=If(e,["override"]),r=Object.assign({},t);Object.keys(xf).forEach(function(e){delete r[e]});var a=Object.assign(Object.assign({},n),r);if(!1===a.motion){a.motionDurationFast="0s",a.motionDurationMid="0s",a.motionDurationSlow="0s"}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Tf(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:Tf(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Tf(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:4*a.lineWidth,lineWidth:a.lineWidth,controlOutlineWidth:2*a.lineWidth,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:Tf(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:"\n 0 1px 2px -2px ".concat(new Of.a("rgba(0, 0, 0, 0.16)").toRgbString(),",\n 0 3px 6px 0 ").concat(new Of.a("rgba(0, 0, 0, 0.12)").toRgbString(),",\n 0 5px 12px 4px ").concat(new Of.a("rgba(0, 0, 0, 0.09)").toRgbString(),"\n "),boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Df=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},Rf={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},Gf={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},Bf={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Hf=function e(t,n,r){var o=r.getDerivativeToken(t),i=n.override,c=Df(n,["override"]),l=Object.assign(Object.assign({},o),{override:i});return l=Ff(l),c&&Object.entries(c).forEach(function(t){var n=Object(a.a)(t,2),r=n[0],o=n[1],i=o.theme,c=Df(o,["theme"]),u=c;i&&(u=e(Object.assign(Object.assign({},l),c),{override:c},i)),l[r]=u}),l};function zf(){var e=i.a.useContext(Mf),t=e.token,n=e.hashed,r=e.theme,o=e.override,c=e.cssVar,l="".concat(Zs,"-").concat(n||""),u=r||Af,s=Yu(u,[xf,t],{salt:l,override:o,getComputedToken:Hf,formatToken:Ff,cssVar:c&&{prefix:c.prefix,key:c.key,unitless:Rf,ignore:Gf,preserve:Bf}}),f=Object(a.a)(s,3),d=f[0],h=f[1];return[u,f[2],n?h:"",d,c]}var Vf=i.a.createContext(void 0),qf=1e3,Yf={Modal:100,Drawer:100,Popover:100,Popconfirm:100,Tooltip:100,Tour:100},Wf={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Uf(e,t){var n=zf(),r=Object(a.a)(n,2)[1],o=i.a.useContext(Vf),c=e in Yf;if(void 0!==t)return[t,t];var l=null!==o&&void 0!==o?o:0;return c?(l+=(o?0:r.zIndexPopupBase)+Yf[e],l=Math.min(l,r.zIndexPopupBase+qf)):l+=Wf[e],[void 0===o?t:l,l]}var Xf=function(){return{height:0,opacity:0}},Qf=function(e){return{height:e.scrollHeight,opacity:1}},Kf=function(e){return{height:e?e.offsetHeight:0}},Jf=function(e,t){return!0===(null===t||void 0===t?void 0:t.deadline)||"height"===t.propertyName},Zf=function(e,t,n){return void 0!==n?n:"".concat(e,"-").concat(t)},$f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant";return{motionName:"".concat(e,"-motion-collapse"),onAppearStart:Xf,onEnterStart:Xf,onAppearActive:Qf,onEnterActive:Qf,onLeaveStart:Kf,onLeaveActive:Xf,onAppearEnd:Jf,onEnterEnd:Jf,onLeaveEnd:Jf,motionDeadline:500}},ed=n(1197),td=Object(o.createContext)({}),nd=n(1199);function rd(){}var ad=o.createContext({}),od=function(){var e=function(){};return e.deprecated=rd,e},id=Object(o.createContext)(void 0),cd={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},ld={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},ud={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},sd={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},ld),timePickerLocale:Object.assign({},ud)},fd="${label} is not a valid ${type}",dd={locale:"en",Pagination:cd,DatePicker:sd,TimePicker:ud,Calendar:sd,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:fd,method:fd,array:fd,object:fd,number:fd,date:fd,boolean:fd,integer:fd,float:fd,regexp:fd,email:fd,url:fd,hex:fd},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}},hd=(Object.assign({},dd.Modal),[]),pd=function(){return hd.reduce(function(e,t){return Object.assign(Object.assign({},e),t)},dd.Modal)};var md=Object(o.createContext)(void 0);var vd=function(e){var t=e.locale,n=void 0===t?{}:t,r=e.children;e._ANT_MARK__;o.useEffect(function(){return function(e){if(e){var t=Object.assign({},e);return hd.push(t),pd(),function(){hd=hd.filter(function(e){return e!==t}),pd()}}Object.assign({},dd.Modal)}(n&&n.Modal)},[n]);var a=o.useMemo(function(){return Object.assign(Object.assign({},n),{exist:!0})},[n]);return o.createElement(md.Provider,{value:a},r)},gd="anticon",yd=o.createContext({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")},iconPrefixCls:gd}),bd=(yd.Consumer,"-ant-".concat(Date.now(),"-").concat(Math.random()));function wd(e,t){var n=function(e,t){var n={},r=function(e,t){var n=e.clone();return(n=(null===t||void 0===t?void 0:t(n))||n).toRgbString()},a=function(e,t){var a=new Of.a(e),o=mf(a.toRgbString());n["".concat(t,"-color")]=r(a),n["".concat(t,"-color-disabled")]=o[1],n["".concat(t,"-color-hover")]=o[4],n["".concat(t,"-color-active")]=o[6],n["".concat(t,"-color-outline")]=a.clone().setAlpha(.2).toRgbString(),n["".concat(t,"-color-deprecated-bg")]=o[0],n["".concat(t,"-color-deprecated-border")]=o[2]};if(t.primaryColor){a(t.primaryColor,"primary");var o=new Of.a(t.primaryColor),i=mf(o.toRgbString());i.forEach(function(e,t){n["primary-".concat(t+1)]=e}),n["primary-color-deprecated-l-35"]=r(o,function(e){return e.lighten(35)}),n["primary-color-deprecated-l-20"]=r(o,function(e){return e.lighten(20)}),n["primary-color-deprecated-t-20"]=r(o,function(e){return e.tint(20)}),n["primary-color-deprecated-t-50"]=r(o,function(e){return e.tint(50)}),n["primary-color-deprecated-f-12"]=r(o,function(e){return e.setAlpha(.12*e.getAlpha())});var c=new Of.a(i[0]);n["primary-color-active-deprecated-f-30"]=r(c,function(e){return e.setAlpha(.3*e.getAlpha())}),n["primary-color-active-deprecated-d-02"]=r(c,function(e){return e.darken(2)})}t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info");var l=Object.keys(n).map(function(t){return"--".concat(e,"-").concat(t,": ").concat(n[t],";")});return"\n :root {\n ".concat(l.join("\n"),"\n }\n ").trim()}(e,t);Object(su.a)()&&Object(Kl.b)(n,"".concat(bd,"-dynamic-theme"))}var Ed=o.createContext(!1),xd=function(e){var t=e.children,n=e.disabled,r=o.useContext(Ed);return o.createElement(Ed.Provider,{value:null!==n&&void 0!==n?n:r},t)},Od=Ed,jd=o.createContext(void 0),kd=function(e){var t=e.children,n=e.size,r=o.useContext(jd);return o.createElement(jd.Provider,{value:n||r},t)},Sd=jd;var _d=function(){return{componentDisabled:Object(o.useContext)(Od),componentSize:Object(o.useContext)(Sd)}},Cd=Object.assign({},o).useId,Ld="undefined"===typeof Cd?function(){return""}:Cd;var Ad=n(1183);function Pd(e){var t=e.children,n=zf(),r=Object(a.a)(n,2)[1].motion,i=o.useRef(!1);return i.current=i.current||!1===r,i.current?o.createElement(Ad.b,{motion:r},t):t}var Md,Nd,Td,Id=function(){return null},Fd={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Dd=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Rd=function(){return{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}},Gd=function(e){var t;return{a:(t={color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}},Object(se.a)(t,"&:active,\n &:hover",{textDecoration:e.linkHoverDecoration,outline:0}),Object(se.a)(t,"&:focus",{textDecoration:e.linkFocusDecoration,outline:0}),Object(se.a)(t,"&[disabled]",{color:e.colorTextDisabled,cursor:"not-allowed"}),t)}},Bd=function(e,t){var n=e.fontFamily,r=e.fontSize,a='[class^="'.concat(t,'"], [class*=" ').concat(t,'"]');return Object(se.a)({},a,Object(se.a)({fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},a,{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}))},Hd=function(e){return{outline:"".concat(_u(e.lineWidthFocus)," solid ").concat(e.colorPrimaryBorder),outlineOffset:1,transition:"outline-offset 0s, outline 0s"}},zd=function(e,t){var n=zf(),r=Object(a.a)(n,2);return Us({theme:r[0],token:r[1],hashId:"",path:["ant-design-icons",e],nonce:function(){return null===t||void 0===t?void 0:t.nonce}},function(){return[Object(se.a)({},".".concat(e),Object.assign(Object.assign({},Rd()),Object(se.a)({},".".concat(e," .").concat(e,"-icon"),{display:"block"})))]})},Vd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},qd=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],Yd="ant";function Wd(){return Md||Yd}function Ud(){return Nd||gd}var Xd=function(){return{getPrefixCls:function(e,t){return t||(e?"".concat(Wd(),"-").concat(e):Wd())},getIconPrefixCls:Ud,getRootPrefixCls:function(){return Md||Wd()},getTheme:function(){return Td}}},Qd=function(e){var t=e.children,n=e.csp,r=e.autoInsertSpaceInButton,i=e.alert,c=e.anchor,l=e.form,u=e.locale,s=e.componentSize,f=e.direction,d=e.space,h=e.virtual,p=e.dropdownMatchSelectWidth,m=e.popupMatchSelectWidth,v=e.popupOverflow,g=e.legacyLocale,y=e.parentContext,b=e.iconPrefixCls,w=e.theme,E=e.componentDisabled,x=e.segmented,O=e.statistic,j=e.spin,k=e.calendar,S=e.carousel,_=e.cascader,C=e.collapse,L=e.typography,A=e.checkbox,P=e.descriptions,M=e.divider,N=e.drawer,T=e.skeleton,I=e.steps,F=e.image,D=e.layout,R=e.list,G=e.mentions,B=e.modal,H=e.progress,z=e.result,V=e.slider,q=e.breadcrumb,Y=e.menu,W=e.pagination,U=e.input,X=e.empty,Q=e.badge,K=e.radio,J=e.rate,Z=e.switch,$=e.transfer,ee=e.avatar,te=e.message,ne=e.tag,re=e.table,ae=e.card,oe=e.tabs,ie=e.timeline,ce=e.timePicker,le=e.upload,ue=e.notification,se=e.tree,fe=e.colorPicker,de=e.datePicker,he=e.rangePicker,pe=e.flex,me=e.wave,ve=e.dropdown,ge=e.warning,ye=o.useCallback(function(t,n){var r=e.prefixCls;if(n)return n;var a=r||y.getPrefixCls("");return t?"".concat(a,"-").concat(t):a},[y.getPrefixCls,e.prefixCls]),be=b||y.iconPrefixCls||gd,we=n||y.csp;zd(be,we);var Ee=function(e,t){od("ConfigProvider");var n=e||{},r=!1!==n.inherit&&t?t:Pf,a=Ld();return Object(Zl.a)(function(){var o,i;if(!e)return t;var c=Object.assign({},r.components);Object.keys(e.components||{}).forEach(function(t){c[t]=Object.assign(Object.assign({},c[t]),e.components[t])});var l="css-var-".concat(a.replace(/:/g,"")),u=(null!==(o=n.cssVar)&&void 0!==o?o:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},"object"===typeof r.cssVar?r.cssVar:{}),"object"===typeof n.cssVar?n.cssVar:{}),{key:"object"===typeof n.cssVar&&(null===(i=n.cssVar)||void 0===i?void 0:i.key)||l});return Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:c,cssVar:u})},[n,r],function(e,t){return e.some(function(e,n){var r=t[n];return!Object($l.a)(e,r,!0)})})}(w,y.theme);var xe={csp:we,autoInsertSpaceInButton:r,alert:i,anchor:c,locale:u||g,direction:f,space:d,virtual:h,popupMatchSelectWidth:null!==m&&void 0!==m?m:p,popupOverflow:v,getPrefixCls:ye,iconPrefixCls:be,theme:Ee,segmented:x,statistic:O,spin:j,calendar:k,carousel:S,cascader:_,collapse:C,typography:L,checkbox:A,descriptions:P,divider:M,drawer:N,skeleton:T,steps:I,image:F,input:U,layout:D,list:R,mentions:G,modal:B,progress:H,result:z,slider:V,breadcrumb:q,menu:Y,pagination:W,empty:X,badge:Q,radio:K,rate:J,switch:Z,transfer:$,avatar:ee,message:te,tag:ne,table:re,card:ae,tabs:oe,timeline:ie,timePicker:ce,upload:le,notification:ue,tree:se,colorPicker:fe,datePicker:de,rangePicker:he,flex:pe,wave:me,dropdown:ve,warning:ge},Oe=Object.assign({},y);Object.keys(xe).forEach(function(e){void 0!==xe[e]&&(Oe[e]=xe[e])}),qd.forEach(function(t){var n=e[t];n&&(Oe[t]=n)});var je=Object(Zl.a)(function(){return Oe},Oe,function(e,t){var n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(function(n){return e[n]!==t[n]})}),ke=o.useMemo(function(){return{prefixCls:be,csp:we}},[be,we]),Se=o.createElement(o.Fragment,null,o.createElement(Id,{dropdownMatchSelectWidth:p}),t),_e=o.useMemo(function(){var e,t,n,r;return Object(nd.b)((null===(e=dd.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=je.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=je.form)||void 0===r?void 0:r.validateMessages)||{},(null===l||void 0===l?void 0:l.validateMessages)||{})},[je,null===l||void 0===l?void 0:l.validateMessages]);Object.keys(_e).length>0&&(Se=o.createElement(id.Provider,{value:_e},Se)),u&&(Se=o.createElement(vd,{locale:u,_ANT_MARK__:"internalMark"},Se)),(be||we)&&(Se=o.createElement(td.Provider,{value:ke},Se)),s&&(Se=o.createElement(kd,{size:s},Se)),Se=o.createElement(Pd,null,Se);var Ce=o.useMemo(function(){var e=Ee||{},t=e.algorithm,n=e.token,r=e.components,o=e.cssVar,i=Vd(e,["algorithm","token","components","cssVar"]),c=t&&(!Array.isArray(t)||t.length>0)?vu(t):Af,l={};Object.entries(r||{}).forEach(function(e){var t=Object(a.a)(e,2),n=t[0],r=t[1],o=Object.assign({},r);"algorithm"in o&&(!0===o.algorithm?o.theme=c:(Array.isArray(o.algorithm)||"function"===typeof o.algorithm)&&(o.theme=vu(o.algorithm)),delete o.algorithm),l[n]=o});var u=Object.assign(Object.assign({},xf),n);return Object.assign(Object.assign({},i),{theme:c,token:u,components:l,override:Object.assign({override:u},l),cssVar:o})},[Ee]);return w&&(Se=o.createElement(Mf.Provider,{value:Ce},Se)),je.warning&&(Se=o.createElement(ad.Provider,{value:je.warning},Se)),void 0!==E&&(Se=o.createElement(xd,{disabled:E},Se)),o.createElement(yd.Provider,{value:je},Se)},Kd=function(e){var t=o.useContext(yd),n=o.useContext(md);return o.createElement(Qd,Object.assign({parentContext:t,legacyLocale:n},e))};Kd.ConfigContext=yd,Kd.SizeContext=Sd,Kd.config=function(e){var t=e.prefixCls,n=e.iconPrefixCls,r=e.theme;void 0!==t&&(Md=t),void 0!==n&&(Nd=n),r&&(function(e){return Object.keys(e).some(function(e){return e.endsWith("Color")})}(r)?wd(Wd(),r):Td=r)},Kd.useConfig=_d,Object.defineProperty(Kd,"SizeContext",{get:function(){return Sd}});var Jd=Kd;var Zd=function(e,t,n,r){return function(e){return function(t){return o.createElement(Jd,{theme:{token:{motion:!1,zIndexPopupBase:0}}},o.createElement(e,Object.assign({},t)))}}(function(i){var c=i.prefixCls,l=i.style,u=o.useRef(null),s=o.useState(0),f=Object(a.a)(s,2),d=f[0],h=f[1],p=o.useState(0),m=Object(a.a)(p,2),v=m[0],g=m[1],y=Object(ed.a)(!1,{value:i.open}),b=Object(a.a)(y,2),w=b[0],E=b[1],x=(0,o.useContext(yd).getPrefixCls)(t||"select",c);o.useEffect(function(){if(E(!0),"undefined"!==typeof ResizeObserver){var e=new ResizeObserver(function(e){var t=e[0].target;h(t.offsetHeight+8),g(t.offsetWidth)}),t=setInterval(function(){var r,a=n?".".concat(n(x)):".".concat(x,"-dropdown"),o=null===(r=u.current)||void 0===r?void 0:r.querySelector(a);o&&(clearInterval(t),e.observe(o))},10);return function(){clearInterval(t),e.disconnect()}}},[]);var O=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:w,visible:w,getPopupContainer:function(){return u.current}});r&&(O=r(O));var j={paddingBottom:d,position:"relative",minWidth:v};return o.createElement("div",{ref:u,style:j},o.createElement(e,Object.assign({},O)))})};var $d=function(e,t){var n=o.useContext(md);return[o.useMemo(function(){var r,a=t||dd[e],o=null!==(r=null===n||void 0===n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"===typeof a?a():a),o||{})},[e,t,n]),o.useMemo(function(){var e=null===n||void 0===n?void 0:n.locale;return(null===n||void 0===n?void 0:n.exist)&&!e?dd.locale:e},[n])]};var eh=function(){var e=zf(),t=Object(a.a)(e,2)[1],n=new Of.a(t.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),o.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),o.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),o.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),o.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};var th=function(){var e=zf(),t=Object(a.a)(e,2)[1],n=t.colorFill,r=t.colorFillTertiary,i=t.colorFillQuaternary,c=t.colorBgContainer,l=Object(o.useMemo)(function(){return{borderColor:new Of.a(n).onBackground(c).toHexShortString(),shadowColor:new Of.a(r).onBackground(c).toHexShortString(),contentColor:new Of.a(i).onBackground(c).toHexShortString()}},[n,r,i,c]),u=l.borderColor,s=l.shadowColor,f=l.contentColor;return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:u},o.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),o.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:f}))))},nh=n(1235),rh=n(188),ah=n(1184),oh=Object(tu.a)(function e(){Object(eu.a)(this,e)}),ih=function(e){Object(rh.a)(n,e);var t=Object(ah.a)(n);function n(e){var r;return Object(eu.a)(this,n),(r=t.call(this)).result=0,e instanceof n?r.result=e.result:"number"===typeof e&&(r.result=e),r}return Object(tu.a)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"===typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"===typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"===typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"===typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(oh),ch="CALC_UNIT";function lh(e){return"number"===typeof e?"".concat(e).concat(ch):e}var uh=function(e){Object(rh.a)(n,e);var t=Object(ah.a)(n);function n(e){var r;return Object(eu.a)(this,n),(r=t.call(this)).result="",e instanceof n?r.result="(".concat(e.result,")"):"number"===typeof e?r.result=lh(e):"string"===typeof e&&(r.result=e),r}return Object(tu.a)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," + ").concat(lh(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," - ").concat(lh(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=(e||{}).unit,n=void 0===t||t,r=new RegExp("".concat(ch),"g");return this.result=this.result.replace(r,n?"px":""),"undefined"!==typeof this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(oh),sh=function(e){var t="css"===e?uh:ih;return function(e){return new t(e)}};var fh="undefined"!==typeof CSSINJS_STATISTIC,dh=!0;function hh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!fh)return Object.assign.apply(Object,[{}].concat(t));dh=!1;var r={};return t.forEach(function(e){Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),dh=!0,r}var ph={};function mh(){}var vh=function(e){var t,n=e,r=mh;return fh&&"undefined"!==typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){return dh&&t.add(n),e[n]}}),r=function(e,n){var r;ph[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=ph[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}},gh=function(e,t,n){var r;return"function"===typeof n?n(hh(t,null!==(r=t[e])&&void 0!==r?r:{})):null!==n&&void 0!==n?n:{}},yh=function(e,t,n,r){var o=Object.assign({},t[e]);(null===r||void 0===r?void 0:r.deprecatedTokens)&&r.deprecatedTokens.forEach(function(e){var t,n=Object(a.a)(e,2),r=n[0],i=n[1];((null===o||void 0===o?void 0:o[r])||(null===o||void 0===o?void 0:o[i]))&&(null!==(t=o[i])&&void 0!==t||(o[i]=null===o||void 0===o?void 0:o[r]))});var i=Object.assign(Object.assign({},n),o);return(null===r||void 0===r?void 0:r.format)&&(i=r.format(i)),Object.keys(i).forEach(function(e){i[e]===t[e]&&delete i[e]}),i},bh=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function wh(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=Array.isArray(e)?e:[e,e],c=Object(a.a)(i,1)[0],l=i.join("-");return function(e){var i=zf(),u=Object(a.a)(i,5),s=u[0],f=u[1],d=u[2],h=u[3],p=u[4],m=Object(o.useContext)(yd),v=m.getPrefixCls,g=m.iconPrefixCls,y=m.csp,b=v(),w=p?"css":"js",E=sh(w),x=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map(function(e){return _u(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map(function(e){return _u(e)}).join(","),")")}}}(w),O=x.max,j=x.min,k={theme:s,token:h,hashId:d,nonce:function(){return null===y||void 0===y?void 0:y.nonce},clientOnly:r.clientOnly,order:r.order||-999};return Us(Object.assign(Object.assign({},k),{clientOnly:!1,path:["Shared",b]}),function(){return[{"&":Gd(h)}]}),zd(g,y),[Us(Object.assign(Object.assign({},k),{path:[l,e,g]}),function(){if(!1===r.injectStyle)return[];var a=vh(h),o=a.token,i=a.flush,l=gh(c,f,n),u=".".concat(e),s=yh(c,f,l,{deprecatedTokens:r.deprecatedTokens,format:r.format});p&&Object.keys(l).forEach(function(e){l[e]="var(".concat(Lu(e,bh(c,p.prefix)),")")});var m=hh(o,{componentCls:u,prefixCls:e,iconCls:".".concat(g),antCls:".".concat(b),calc:E,max:O,min:j},p?l:s),v=t(m,{hashId:d,prefixCls:e,rootPrefixCls:b,iconPrefixCls:g});return i(c,s),[!1===r.resetStyle?null:Bd(m,e),v]}),d]}}var Eh=function(e,t,n,r){var o=wh(e,t,n,r),c=function(e,t,n){function r(t){return"".concat(e).concat(t.slice(0,1).toUpperCase()).concat(t.slice(1))}var o=null!==n&&void 0!==n?n:{},c=o.unitless,l=void 0===c?{}:c,u=o.injectStyle,s=void 0===u||u,f=Object(se.a)({},r("zIndexPopup"),!0);Object.keys(l).forEach(function(e){f[r(e)]=l[e]});var d=function(o){var i=o.rootCls,c=o.cssVar,l=zf(),u=Object(a.a)(l,2)[1];return Qs({path:[e],prefix:c.prefix,key:null===c||void 0===c?void 0:c.key,unitless:Object.assign(Object.assign({},Rf),f),ignore:Gf,token:u,scope:i},function(){var a=gh(e,u,t),o=yh(e,u,a,{format:null===n||void 0===n?void 0:n.format,deprecatedTokens:null===n||void 0===n?void 0:n.deprecatedTokens});return Object.keys(a).forEach(function(e){o[r(e)]=o[e],delete o[e]}),o}),null};return function(t){var n=zf(),r=Object(a.a)(n,5)[4];return[function(n){return s&&r?i.a.createElement(i.a.Fragment,null,i.a.createElement(d,{rootCls:t,cssVar:r,component:e}),n):n},null===r||void 0===r?void 0:r.key]}}(Array.isArray(e)?e[0]:e,n,r);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=o(e),r=Object(a.a)(n,2)[1],i=c(t),l=Object(a.a)(i,2);return[l[0],r,l[1]]}},xh=function(e){var t,n,r=e.componentCls,a=e.margin,o=e.marginXS,i=e.marginXL,c=e.fontSize,l=e.lineHeight;return Object(se.a)({},r,(n={marginInline:o,fontSize:c,lineHeight:l,textAlign:"center"},Object(se.a)(n,"".concat(r,"-image"),{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}}),Object(se.a)(n,"".concat(r,"-description"),{color:e.colorText}),Object(se.a)(n,"".concat(r,"-footer"),{marginTop:a}),Object(se.a)(n,"&-normal",(t={marginBlock:i,color:e.colorTextDisabled},Object(se.a)(t,"".concat(r,"-description"),{color:e.colorTextDisabled}),Object(se.a)(t,"".concat(r,"-image"),{height:e.emptyImgHeightMD}),t)),Object(se.a)(n,"&-small",Object(se.a)({marginBlock:o,color:e.colorTextDisabled},"".concat(r,"-image"),{height:e.emptyImgHeightSM})),n))},Oh=Eh("Empty",function(e){var t=e.componentCls,n=e.controlHeightLG,r=e.calc,a=hh(e,{emptyImgCls:"".concat(t,"-img"),emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[xh(a)]}),jh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},kh=o.createElement(eh,null),Sh=o.createElement(th,null),_h=function(e){var t,n=e.className,r=e.rootClassName,i=e.prefixCls,c=e.image,l=void 0===c?kh:c,u=e.description,s=e.children,f=e.imageStyle,d=e.style,h=jh(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]),p=o.useContext(yd),m=p.getPrefixCls,v=p.direction,g=p.empty,y=m("empty",i),b=Oh(y),w=Object(a.a)(b,3),E=w[0],x=w[1],O=w[2],j=$d("Empty"),k=Object(a.a)(j,1)[0],S="undefined"!==typeof u?u:null===k||void 0===k?void 0:k.description,_="string"===typeof S?S:"empty",C=null;return C="string"===typeof l?o.createElement("img",{alt:_,src:l}):l,E(o.createElement("div",Object.assign({className:zl()(x,O,y,null===g||void 0===g?void 0:g.className,(t={},Object(se.a)(t,"".concat(y,"-normal"),l===Sh),Object(se.a)(t,"".concat(y,"-rtl"),"rtl"===v),t),n,r),style:Object.assign(Object.assign({},null===g||void 0===g?void 0:g.style),d)},h),o.createElement("div",{className:"".concat(y,"-image"),style:f},C),S&&o.createElement("div",{className:"".concat(y,"-description")},S),s&&o.createElement("div",{className:"".concat(y,"-footer")},s)))};_h.PRESENTED_IMAGE_DEFAULT=kh,_h.PRESENTED_IMAGE_SIMPLE=Sh;var Ch=_h,Lh=function(e){var t=e.componentName,n=(0,Object(o.useContext)(yd).getPrefixCls)("empty");switch(t){case"Table":case"List":return i.a.createElement(Ch,{image:Ch.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return i.a.createElement(Ch,{image:Ch.PRESENTED_IMAGE_SIMPLE,className:"".concat(n,"-small")});default:return i.a.createElement(Ch,null)}},Ah=function(e){var t=zf();return Object(a.a)(t,5)[4]?"".concat(e,"-css-var"):""},Ph=function(e){var t=i.a.useContext(Sd);return i.a.useMemo(function(){return e?"string"===typeof e?null!==e&&void 0!==e?e:t:e instanceof Function?e(t):t:t},[e,t])};function Mh(){Mh=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Object(uu.a)(f)&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Nh(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(u){return void n(u)}c.done?t(l):Promise.resolve(l).then(r,a)}function Th(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(e){Nh(o,r,a,i,c,"next",e)}function c(e){Nh(o,r,a,i,c,"throw",e)}i(void 0)})}}var Ih=n(135),Fh=n(1215),Dh="RC_FORM_INTERNAL_HOOKS",Rh=function(){Object(du.a)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Gh=o.createContext({getFieldValue:Rh,getFieldsValue:Rh,getFieldError:Rh,getFieldWarning:Rh,getFieldsError:Rh,isFieldsTouched:Rh,isFieldTouched:Rh,isFieldValidating:Rh,isFieldsValidating:Rh,resetFields:Rh,setFields:Rh,setFieldValue:Rh,setFieldsValue:Rh,validateFields:Rh,submit:Rh,getInternalHooks:function(){return Rh(),{dispatch:Rh,initEntityValue:Rh,registerField:Rh,useSubscribe:Rh,setInitialValues:Rh,destroyForm:Rh,setCallbacks:Rh,registerWatch:Rh,getFields:Rh,setValidateMessages:Rh,setPreserve:Rh,getInitialValue:Rh}}}),Bh=o.createContext(null);function Hh(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}var zh=n(1390),Vh="'${name}' is not a valid ${type}",qh={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Vh,method:Vh,array:Vh,object:Vh,number:Vh,date:Vh,boolean:Vh,integer:Vh,float:Vh,regexp:Vh,email:Vh,url:Vh,hex:Vh},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Yh=zh.a;function Wh(e,t){return e.replace(/\$\{\w+\}/g,function(e){var n=e.slice(2,-1);return t[n]})}var Uh="CODE_LOGIC_ERROR";function Xh(e,t,n,r,a){return Qh.apply(this,arguments)}function Qh(){return(Qh=Th(Mh().mark(function e(t,n,r,a,i){var c,l,u,s,f,d,h,p,m;return Mh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return delete(c=Object(Xl.a)({},r)).ruleIndex,Yh.warning=function(){},c.validator&&(l=c.validator,c.validator=function(){try{return l.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Uh)}}),u=null,c&&"array"===c.type&&c.defaultField&&(u=c.defaultField,delete c.defaultField),s=new Yh(Object(Wl.a)({},t,[c])),f=Object(nd.b)(qh,a.validateMessages),s.messages(f),d=[],e.prev=10,e.next=13,Promise.resolve(s.validate(Object(Wl.a)({},t,n),Object(Xl.a)({},a)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(d=e.t0.errors.map(function(e,t){var n=e.message,r=n===Uh?f.default:n;return o.isValidElement(r)?o.cloneElement(r,{key:"error_".concat(t)}):r}));case 18:if(d.length||!u){e.next=23;break}return e.next=21,Promise.all(n.map(function(e,n){return Xh("".concat(t,".").concat(n),e,u,a,i)}));case 21:return h=e.sent,e.abrupt("return",h.reduce(function(e,t){return[].concat(Object(Ul.a)(e),Object(Ul.a)(t))},[]));case 23:return p=Object(Xl.a)(Object(Xl.a)({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),m=d.map(function(e){return"string"===typeof e?Wh(e,p):e}),e.abrupt("return",m);case 26:case"end":return e.stop()}},e,null,[[10,15]])}))).apply(this,arguments)}function Kh(e,t,n,r,a,o){var i,c=e.join("."),l=n.map(function(e,t){var n=e.validator,r=Object(Xl.a)(Object(Xl.a)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var a=!1,o=n(e,t,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then(function(){Object(du.a)(!a,"Your validator function has already return a promise. `callback` will be ignored."),a||r.apply(void 0,t)})});a=o&&"function"===typeof o.then&&"function"===typeof o.catch,Object(du.a)(a,"`callback` is deprecated. Please return a promise instead."),a&&o.then(function(){r()}).catch(function(e){r(e||" ")})}),r}).sort(function(e,t){var n=e.warningOnly,r=e.ruleIndex,a=t.warningOnly,o=t.ruleIndex;return!!n===!!a?r-o:n?1:-1});if(!0===a)i=new Promise(function(){var e=Th(Mh().mark(function e(n,a){var i,u,s;return Mh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=0;case 1:if(!(i<l.length)){e.next=12;break}return u=l[i],e.next=5,Xh(c,t,u,r,o);case 5:if(!(s=e.sent).length){e.next=9;break}return a([{errors:s,rule:u}]),e.abrupt("return");case 9:i+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}());else{var u=l.map(function(e){return Xh(c,t,e,r,o).then(function(t){return{errors:t,rule:e}})});i=(a?function(e){return Zh.apply(this,arguments)}(u):function(e){return Jh.apply(this,arguments)}(u)).then(function(e){return Promise.reject(e)})}return i.catch(function(e){return e}),i}function Jh(){return(Jh=Th(Mh().mark(function e(t){return Mh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then(function(e){var t;return(t=[]).concat.apply(t,Object(Ul.a)(e))}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Zh(){return(Zh=Th(Mh().mark(function e(t){var n;return Mh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise(function(e){t.forEach(function(r){r.then(function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])})})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}var $h=n(1218);function ep(e){return Hh(e)}function tp(e,t){var n={};return t.forEach(function(t){var r=Object($h.a)(e,t);n=Object(nd.a)(n,t,r)}),n}function np(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(function(e){return rp(t,e,n)})}function rp(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!(!e||!t)&&(!(!n&&e.length!==t.length)&&t.every(function(t,n){return e[n]===t}))}function ap(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat(Object(Ul.a)(e.slice(0,n)),[a],Object(Ul.a)(e.slice(n,t)),Object(Ul.a)(e.slice(t+1,r))):o<0?[].concat(Object(Ul.a)(e.slice(0,t)),Object(Ul.a)(e.slice(t+1,n+1)),[a],Object(Ul.a)(e.slice(n+1,r))):e}var op=["name"],ip=[];function cp(e,t,n,r,a,o){return"function"===typeof e?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var lp=function(e){Object(rh.a)(n,e);var t=Object(ah.a)(n);function n(e){var r;(Object(eu.a)(this,n),r=t.call(this,e),Object(Wl.a)(Object(Ih.a)(r),"state",{resetCount:0}),Object(Wl.a)(Object(Ih.a)(r),"cancelRegisterFunc",null),Object(Wl.a)(Object(Ih.a)(r),"mounted",!1),Object(Wl.a)(Object(Ih.a)(r),"touched",!1),Object(Wl.a)(Object(Ih.a)(r),"dirty",!1),Object(Wl.a)(Object(Ih.a)(r),"validatePromise",void 0),Object(Wl.a)(Object(Ih.a)(r),"prevValidating",void 0),Object(Wl.a)(Object(Ih.a)(r),"errors",ip),Object(Wl.a)(Object(Ih.a)(r),"warnings",ip),Object(Wl.a)(Object(Ih.a)(r),"cancelRegister",function(){var e=r.props,t=e.preserve,n=e.isListField,a=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,ep(a)),r.cancelRegisterFunc=null}),Object(Wl.a)(Object(Ih.a)(r),"getNamePath",function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName,a=void 0===n?[]:n;return void 0!==t?[].concat(Object(Ul.a)(a),Object(Ul.a)(t)):[]}),Object(Wl.a)(Object(Ih.a)(r),"getRules",function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,a=e.fieldContext;return n.map(function(e){return"function"===typeof e?e(a):e})}),Object(Wl.a)(Object(Ih.a)(r),"refresh",function(){r.mounted&&r.setState(function(e){return{resetCount:e.resetCount+1}})}),Object(Wl.a)(Object(Ih.a)(r),"metaCache",null),Object(Wl.a)(Object(Ih.a)(r),"triggerMetaEvent",function(e){var t=r.props.onMetaChange;if(t){var n=Object(Xl.a)(Object(Xl.a)({},r.getMeta()),{},{destroy:e});Object($l.a)(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null}),Object(Wl.a)(Object(Ih.a)(r),"onStoreChange",function(e,t,n){var a=r.props,o=a.shouldUpdate,i=a.dependencies,c=void 0===i?[]:i,l=a.onReset,u=n.store,s=r.getNamePath(),f=r.getValue(e),d=r.getValue(u),h=t&&np(t,s);switch("valueUpdate"===n.type&&"external"===n.source&&f!==d&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=ip,r.warnings=ip,r.triggerMetaEvent()),n.type){case"reset":if(!t||h)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=ip,r.warnings=ip,r.triggerMetaEvent(),null===l||void 0===l||l(),void r.refresh();break;case"remove":if(o)return void r.reRender();break;case"setField":var p=n.data;if(h)return"touched"in p&&(r.touched=p.touched),"validating"in p&&!("originRCField"in p)&&(r.validatePromise=p.validating?Promise.resolve([]):null),"errors"in p&&(r.errors=p.errors||ip),"warnings"in p&&(r.warnings=p.warnings||ip),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in p&&np(t,s,!0))return void r.reRender();if(o&&!s.length&&cp(o,e,u,f,d,n))return void r.reRender();break;case"dependenciesUpdate":if(c.map(ep).some(function(e){return np(n.relatedFields,e)}))return void r.reRender();break;default:if(h||(!c.length||s.length||o)&&cp(o,e,u,f,d,n))return void r.reRender()}!0===o&&r.reRender()}),Object(Wl.a)(Object(Ih.a)(r),"validateRules",function(e){var t=r.getNamePath(),n=r.getValue(),a=e||{},o=a.triggerName,i=a.validateOnly,c=void 0!==i&&i,l=Promise.resolve().then(Th(Mh().mark(function a(){var i,c,u,s,f,d,h;return Mh().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(r.mounted){a.next=2;break}return a.abrupt("return",[]);case 2:if(i=r.props,c=i.validateFirst,u=void 0!==c&&c,s=i.messageVariables,f=i.validateDebounce,d=r.getRules(),o&&(d=d.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||Hh(t).includes(o)})),!f||!o){a.next=10;break}return a.next=8,new Promise(function(e){setTimeout(e,f)});case 8:if(r.validatePromise===l){a.next=10;break}return a.abrupt("return",[]);case 10:return(h=Kh(t,n,d,e,u,s)).catch(function(e){return e}).then(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ip;if(r.validatePromise===l){var t;r.validatePromise=null;var n=[],a=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,r=e.errors,o=void 0===r?ip:r;t?a.push.apply(a,Object(Ul.a)(o)):n.push.apply(n,Object(Ul.a)(o))}),r.errors=n,r.warnings=a,r.triggerMetaEvent(),r.reRender()}}),a.abrupt("return",h);case 13:case"end":return a.stop()}},a)})));return c?l:(r.validatePromise=l,r.dirty=!0,r.errors=ip,r.warnings=ip,r.triggerMetaEvent(),r.reRender(),l)}),Object(Wl.a)(Object(Ih.a)(r),"isFieldValidating",function(){return!!r.validatePromise}),Object(Wl.a)(Object(Ih.a)(r),"isFieldTouched",function(){return r.touched}),Object(Wl.a)(Object(Ih.a)(r),"isFieldDirty",function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(Dh).getInitialValue)(r.getNamePath())}),Object(Wl.a)(Object(Ih.a)(r),"getErrors",function(){return r.errors}),Object(Wl.a)(Object(Ih.a)(r),"getWarnings",function(){return r.warnings}),Object(Wl.a)(Object(Ih.a)(r),"isListField",function(){return r.props.isListField}),Object(Wl.a)(Object(Ih.a)(r),"isList",function(){return r.props.isList}),Object(Wl.a)(Object(Ih.a)(r),"isPreserve",function(){return r.props.preserve}),Object(Wl.a)(Object(Ih.a)(r),"getMeta",function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}}),Object(Wl.a)(Object(Ih.a)(r),"getOnlyChild",function(e){if("function"===typeof e){var t=r.getMeta();return Object(Xl.a)(Object(Xl.a)({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=Object(Fh.a)(e);return 1===n.length&&o.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}}),Object(Wl.a)(Object(Ih.a)(r),"getValue",function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return Object($h.a)(e||t(!0),n)}),Object(Wl.a)(Object(Ih.a)(r),"getControlled",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.trigger,a=t.validateTrigger,o=t.getValueFromEvent,i=t.normalize,c=t.valuePropName,l=t.getValueProps,u=t.fieldContext,s=void 0!==a?a:u.validateTrigger,f=r.getNamePath(),d=u.getInternalHooks,h=u.getFieldsValue,p=d(Dh).dispatch,m=r.getValue(),v=l||function(e){return Object(Wl.a)({},c,e)},g=e[n],y=Object(Xl.a)(Object(Xl.a)({},e),v(m));return y[n]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];e=o?o.apply(void 0,n):function(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===Object(uu.a)(t.target)&&e in t.target?t.target[e]:t}.apply(void 0,[c].concat(n)),i&&(e=i(e,m,h(!0))),p({type:"updateValue",namePath:f,value:e}),g&&g.apply(void 0,n)},Hh(s||[]).forEach(function(e){var t=y[e];y[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&p({type:"validateField",namePath:f,triggerName:e})}}),y}),e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(Dh).initEntityValue)(Object(Ih.a)(r));return r}return Object(tu.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(Dh).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),a=r.child;return r.isFunction?e=a:o.isValidElement(a)?e=o.cloneElement(a,this.getControlled(a.props)):(Object(du.a)(!a,"`children` of Field is not validate ReactElement."),e=a),o.createElement(o.Fragment,{key:t},e)}}]),n}(o.Component);Object(Wl.a)(lp,"contextType",Gh),Object(Wl.a)(lp,"defaultProps",{trigger:"onChange",valuePropName:"value"});var up=function(e){var t=e.name,n=Object(Jl.a)(e,op),r=o.useContext(Gh),a=o.useContext(Bh),i=void 0!==t?ep(t):void 0,c="keep";return n.isListField||(c="_".concat((i||[]).join("_"))),o.createElement(lp,Object(Wu.a)({key:c,name:i,isListField:!!a},n,{fieldContext:r}))};var sp=function(e){var t=e.name,n=e.initialValue,r=e.children,a=e.rules,i=e.validateTrigger,c=e.isListField,l=o.useContext(Gh),u=o.useContext(Bh),s=o.useRef({keys:[],id:0}).current,f=o.useMemo(function(){var e=ep(l.prefixName)||[];return[].concat(Object(Ul.a)(e),Object(Ul.a)(ep(t)))},[l.prefixName,t]),d=o.useMemo(function(){return Object(Xl.a)(Object(Xl.a)({},l),{},{prefixName:f})},[l,f]),h=o.useMemo(function(){return{getKey:function(e){var t=f.length,n=e[t];return[s.keys[n],e.slice(t+1)]}}},[f]);return"function"!==typeof r?(Object(du.a)(!1,"Form.List only accepts function as children."),null):o.createElement(Bh.Provider,{value:h},o.createElement(Gh.Provider,{value:d},o.createElement(up,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:a,validateTrigger:i,initialValue:n,isList:!0,isListField:null!==c&&void 0!==c?c:!!u},function(e,t){var n=e.value,a=void 0===n?[]:n,o=e.onChange,i=l.getFieldValue,c=function(){return i(f||[])||[]},u={add:function(e,t){var n=c();t>=0&&t<=n.length?(s.keys=[].concat(Object(Ul.a)(s.keys.slice(0,t)),[s.id],Object(Ul.a)(s.keys.slice(t))),o([].concat(Object(Ul.a)(n.slice(0,t)),[e],Object(Ul.a)(n.slice(t))))):(s.keys=[].concat(Object(Ul.a)(s.keys),[s.id]),o([].concat(Object(Ul.a)(n),[e]))),s.id+=1},remove:function(e){var t=c(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(s.keys=s.keys.filter(function(e,t){return!n.has(t)}),o(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=c();e<0||e>=n.length||t<0||t>=n.length||(s.keys=ap(s.keys,e,t),o(ap(n,e,t)))}}},d=a||[];return Array.isArray(d)||(d=[]),r(d.map(function(e,t){var n=s.keys[t];return void 0===n&&(s.keys[t]=s.id,n=s.keys[t],s.id+=1),{name:t,key:n,isListField:!0}}),u,t)})))};var fp="__@field_split__";function dp(e){return e.map(function(e){return"".concat(Object(uu.a)(e),":").concat(e)}).join(fp)}var hp=function(){function e(){Object(eu.a)(this,e),Object(Wl.a)(this,"kvs",new Map)}return Object(tu.a)(e,[{key:"set",value:function(e,t){this.kvs.set(dp(e),t)}},{key:"get",value:function(e){return this.kvs.get(dp(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(dp(e))}},{key:"map",value:function(e){return Object(Ul.a)(this.kvs.entries()).map(function(t){var n=Object(Yl.a)(t,2),r=n[0],a=n[1],o=r.split(fp);return e({key:o.map(function(e){var t=e.match(/^([^:]*):(.*)$/),n=Object(Yl.a)(t,3),r=n[1],a=n[2];return"number"===r?Number(a):a}),value:a})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null}),e}}]),e}(),pp=["name"],mp=Object(tu.a)(function e(t){var n=this;Object(eu.a)(this,e),Object(Wl.a)(this,"formHooked",!1),Object(Wl.a)(this,"forceRootUpdate",void 0),Object(Wl.a)(this,"subscribable",!0),Object(Wl.a)(this,"store",{}),Object(Wl.a)(this,"fieldEntities",[]),Object(Wl.a)(this,"initialValues",{}),Object(Wl.a)(this,"callbacks",{}),Object(Wl.a)(this,"validateMessages",null),Object(Wl.a)(this,"preserve",null),Object(Wl.a)(this,"lastValidatePromise",null),Object(Wl.a)(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),Object(Wl.a)(this,"getInternalHooks",function(e){return e===Dh?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Object(du.a)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Object(Wl.a)(this,"useSubscribe",function(e){n.subscribable=e}),Object(Wl.a)(this,"prevWithoutPreserves",null),Object(Wl.a)(this,"setInitialValues",function(e,t){if(n.initialValues=e||{},t){var r,a=Object(nd.b)(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map(function(t){var n=t.key;a=Object(nd.a)(a,n,Object($h.a)(e,n))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),Object(Wl.a)(this,"destroyForm",function(){var e=new hp;n.getFieldEntities(!0).forEach(function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),n.prevWithoutPreserves=e}),Object(Wl.a)(this,"getInitialValue",function(e){var t=Object($h.a)(n.initialValues,e);return e.length?Object(nd.b)(t):t}),Object(Wl.a)(this,"setCallbacks",function(e){n.callbacks=e}),Object(Wl.a)(this,"setValidateMessages",function(e){n.validateMessages=e}),Object(Wl.a)(this,"setPreserve",function(e){n.preserve=e}),Object(Wl.a)(this,"watchList",[]),Object(Wl.a)(this,"registerWatch",function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),Object(Wl.a)(this,"notifyWatch",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,r,e)})}}),Object(Wl.a)(this,"timeoutId",null),Object(Wl.a)(this,"warningUnhooked",function(){0}),Object(Wl.a)(this,"updateStore",function(e){n.store=e}),Object(Wl.a)(this,"getFieldEntities",function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),Object(Wl.a)(this,"getFieldsMap",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new hp;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),Object(Wl.a)(this,"getFieldEntitiesForNamePathList",function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=ep(e);return t.get(n)||{INVALIDATE_NAME_PATH:ep(e)}})}),Object(Wl.a)(this,"getFieldsValue",function(e,t){var r,a,o;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,a=t):e&&"object"===Object(uu.a)(e)&&(o=e.strict,a=e.filter),!0===r&&!a)return n.store;var i=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),c=[];return i.forEach(function(e){var t,n,i,l,u="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(o){if(null!==(i=(l=e).isList)&&void 0!==i&&i.call(l))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(a){var s="getMeta"in e?e.getMeta():null;a(s)&&c.push(u)}else c.push(u)}),tp(n.store,c.map(ep))}),Object(Wl.a)(this,"getFieldValue",function(e){n.warningUnhooked();var t=ep(e);return Object($h.a)(n.store,t)}),Object(Wl.a)(this,"getFieldsError",function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return!t||"INVALIDATE_NAME_PATH"in t?{name:ep(e[n]),errors:[],warnings:[]}:{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}})}),Object(Wl.a)(this,"getFieldError",function(e){n.warningUnhooked();var t=ep(e);return n.getFieldsError([t])[0].errors}),Object(Wl.a)(this,"getFieldWarning",function(e){n.warningUnhooked();var t=ep(e);return n.getFieldsError([t])[0].warnings}),Object(Wl.a)(this,"isFieldsTouched",function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a,o=t[0],i=t[1],c=!1;0===t.length?a=null:1===t.length?Array.isArray(o)?(a=o.map(ep),c=!1):(a=null,c=o):(a=o.map(ep),c=i);var l=n.getFieldEntities(!0),u=function(e){return e.isFieldTouched()};if(!a)return c?l.every(u):l.some(u);var s=new hp;a.forEach(function(e){s.set(e,[])}),l.forEach(function(e){var t=e.getNamePath();a.forEach(function(n){n.every(function(e,n){return t[n]===e})&&s.update(n,function(t){return[].concat(Object(Ul.a)(t),[e])})})});var f=function(e){return e.some(u)},d=s.map(function(e){return e.value});return c?d.every(f):d.some(f)}),Object(Wl.a)(this,"isFieldTouched",function(e){return n.warningUnhooked(),n.isFieldsTouched([e])}),Object(Wl.a)(this,"isFieldsValidating",function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some(function(e){return e.isFieldValidating()});var r=e.map(ep);return t.some(function(e){var t=e.getNamePath();return np(r,t)&&e.isFieldValidating()})}),Object(Wl.a)(this,"isFieldValidating",function(e){return n.warningUnhooked(),n.isFieldsValidating([e])}),Object(Wl.a)(this,"resetWithFieldInitialValue",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new hp,r=n.getFieldEntities(!0);r.forEach(function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var a=t.get(r)||new Set;a.add({entity:e,value:n}),t.set(r,a)}});var a;e.entities?a=e.entities:e.namePathList?(a=[],e.namePathList.forEach(function(e){var n,r=t.get(e);r&&(n=a).push.apply(n,Object(Ul.a)(Object(Ul.a)(r).map(function(e){return e.entity})))})):a=r,a.forEach(function(r){if(void 0!==r.props.initialValue){var a=r.getNamePath();if(void 0!==n.getInitialValue(a))Object(du.a)(!1,"Form already set 'initialValues' with path '".concat(a.join("."),"'. Field can not overwrite it."));else{var o=t.get(a);if(o&&o.size>1)Object(du.a)(!1,"Multiple Field with path '".concat(a.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(o){var i=n.getFieldValue(a);r.isListField()||e.skipExist&&void 0!==i||n.updateStore(Object(nd.a)(n.store,a,Object(Ul.a)(o)[0].value))}}}})}),Object(Wl.a)(this,"resetFields",function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Object(nd.b)(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(ep);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore(Object(nd.a)(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)}),Object(Wl.a)(this,"setFields",function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var a=e.name,o=Object(Jl.a)(e,pp),i=ep(a);r.push(i),"value"in o&&n.updateStore(Object(nd.a)(n.store,i,o.value)),n.notifyObservers(t,[i],{type:"setField",data:e})}),n.notifyWatch(r)}),Object(Wl.a)(this,"getFields",function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=e.getMeta(),a=Object(Xl.a)(Object(Xl.a)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(a,"originRCField",{value:!0}),a})}),Object(Wl.a)(this,"initEntityValue",function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Object($h.a)(n.store,r)&&n.updateStore(Object(nd.a)(n.store,r,t))}}),Object(Wl.a)(this,"isMergedPreserve",function(e){var t=void 0!==e?e:n.preserve;return null===t||void 0===t||t}),Object(Wl.a)(this,"registerField",function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(a)&&(!r||o.length>1)){var i=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==i&&n.fieldEntities.every(function(e){return!rp(e.getNamePath(),t)})){var c=n.store;n.updateStore(Object(nd.a)(c,t,i,!0)),n.notifyObservers(c,[t],{type:"remove"}),n.triggerDependenciesUpdate(c,t)}}n.notifyWatch([t])}}),Object(Wl.a)(this,"dispatch",function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var a=e.namePath,o=e.triggerName;n.validateFields([a],{triggerName:o})}}),Object(Wl.a)(this,"notifyObservers",function(e,t,r){if(n.subscribable){var a=Object(Xl.a)(Object(Xl.a)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,a)})}else n.forceRootUpdate()}),Object(Wl.a)(this,"triggerDependenciesUpdate",function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Object(Ul.a)(r))}),r}),Object(Wl.a)(this,"updateValue",function(e,t){var r=ep(e),a=n.store;n.updateStore(Object(nd.a)(n.store,r,t)),n.notifyObservers(a,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var o=n.triggerDependenciesUpdate(a,r),i=n.callbacks.onValuesChange;i&&i(tp(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Object(Ul.a)(o)))}),Object(Wl.a)(this,"setFieldsValue",function(e){n.warningUnhooked();var t=n.store;if(e){var r=Object(nd.b)(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),Object(Wl.a)(this,"setFieldValue",function(e,t){n.setFields([{name:e,value:t}])}),Object(Wl.a)(this,"getDependencyChildrenFields",function(e){var t=new Set,r=[],a=new hp;n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=ep(t);a.update(n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})});return function e(n){(a.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var a=n.getNamePath();n.isFieldDirty()&&a.length&&(r.push(a),e(a))}})}(e),r}),Object(Wl.a)(this,"triggerOnFieldsChange",function(e,t){var r=n.callbacks.onFieldsChange;if(r){var a=n.getFields();if(t){var o=new hp;t.forEach(function(e){var t=e.name,n=e.errors;o.set(t,n)}),a.forEach(function(e){e.errors=o.get(e.name)||e.errors})}var i=a.filter(function(t){var n=t.name;return np(e,n)});i.length&&r(i,a)}}),Object(Wl.a)(this,"validateFields",function(e,t){var r,a;n.warningUnhooked(),Array.isArray(e)||"string"===typeof e||"string"===typeof t?(r=e,a=t):a=e;var o=!!r,i=o?r.map(ep):[],c=[],l=String(Date.now()),u=new Set,s=a||{},f=s.recursive,d=s.dirty;n.getFieldEntities(!0).forEach(function(e){if(o||i.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!d||e.isFieldDirty())){var t=e.getNamePath();if(u.add(t.join(l)),!o||np(i,t,f)){var r=e.validateRules(Object(Xl.a)({validateMessages:Object(Xl.a)(Object(Xl.a)({},qh),n.validateMessages)},a));c.push(r.then(function(){return{name:t,errors:[],warnings:[]}}).catch(function(e){var n,r=[],a=[];return null===(n=e.forEach)||void 0===n||n.call(e,function(e){var t=e.rule.warningOnly,n=e.errors;t?a.push.apply(a,Object(Ul.a)(n)):r.push.apply(r,Object(Ul.a)(n))}),r.length?Promise.reject({name:t,errors:r,warnings:a}):{name:t,errors:r,warnings:a}}))}}});var h=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,o){e.forEach(function(e,i){e.catch(function(e){return t=!0,e}).then(function(e){n-=1,r[i]=e,n>0||(t&&o(r),a(r))})})}):Promise.resolve([])}(c);n.lastValidatePromise=h,h.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)});var p=h.then(function(){return n.lastValidatePromise===h?Promise.resolve(n.getFieldsValue(i)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(i),errorFields:t,outOfDate:n.lastValidatePromise!==h})});p.catch(function(e){return e});var m=i.filter(function(e){return u.has(e.join(l))});return n.triggerOnFieldsChange(m),p}),Object(Wl.a)(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t});var vp=function(e){var t=o.useRef(),n=o.useState({}),r=Object(Yl.a)(n,2)[1];if(!t.current)if(e)t.current=e;else{var a=new mp(function(){r({})});t.current=a.getForm()}return[t.current]},gp=o.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),yp=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,a=e.children,i=o.useContext(gp),c=o.useRef({});return o.createElement(gp.Provider,{value:Object(Xl.a)(Object(Xl.a)({},i),{},{validateMessages:Object(Xl.a)(Object(Xl.a)({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:c.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:c.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(c.current=Object(Xl.a)(Object(Xl.a)({},c.current),{},Object(Wl.a)({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=Object(Xl.a)({},c.current);delete t[e],c.current=t,i.unregisterForm(e)}})},a)},bp=gp,wp=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Ep=function(e,t){var n=e.name,r=e.initialValues,a=e.fields,i=e.form,c=e.preserve,l=e.children,u=e.component,s=void 0===u?"form":u,f=e.validateMessages,d=e.validateTrigger,h=void 0===d?"onChange":d,p=e.onValuesChange,m=e.onFieldsChange,v=e.onFinish,g=e.onFinishFailed,y=Object(Jl.a)(e,wp),b=o.useContext(bp),w=vp(i),E=Object(Yl.a)(w,1)[0],x=E.getInternalHooks(Dh),O=x.useSubscribe,j=x.setInitialValues,k=x.setCallbacks,S=x.setValidateMessages,_=x.setPreserve,C=x.destroyForm;o.useImperativeHandle(t,function(){return E}),o.useEffect(function(){return b.registerForm(n,E),function(){b.unregisterForm(n)}},[b,E,n]),S(Object(Xl.a)(Object(Xl.a)({},b.validateMessages),f)),k({onValuesChange:p,onFieldsChange:function(e){if(b.triggerFormChange(n,e),m){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];m.apply(void 0,[e].concat(r))}},onFinish:function(e){b.triggerFormFinish(n,e),v&&v(e)},onFinishFailed:g}),_(c);var L,A=o.useRef(null);j(r,!A.current),A.current||(A.current=!0),o.useEffect(function(){return C},[]);var P="function"===typeof l;L=P?l(E.getFieldsValue(!0),E):l;O(!P);var M=o.useRef();o.useEffect(function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==Object(uu.a)(e)||"object"!==Object(uu.a)(t))return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return Object(Ul.a)(a).every(function(n){var r=e[n],a=t[n];return"function"===typeof r&&"function"===typeof a||r===a})})(M.current||[],a||[])||E.setFields(a||[]),M.current=a},[a,E]);var N=o.useMemo(function(){return Object(Xl.a)(Object(Xl.a)({},E),{},{validateTrigger:h})},[E,h]),T=o.createElement(Bh.Provider,{value:null},o.createElement(Gh.Provider,{value:N},L));return!1===s?T:o.createElement(s,Object(Wu.a)({},y,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),E.submit()},onReset:function(e){var t;e.preventDefault(),E.resetFields(),null===(t=y.onReset)||void 0===t||t.call(y,e)}}),T)};function xp(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var Op=function(){};var jp=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],a=t[1],i=void 0===a?{}:a,c=function(e){return e&&!!e._init}(i)?{form:i}:i,l=c.form,u=Object(o.useState)(),s=Object(Yl.a)(u,2),f=s[0],d=s[1],h=Object(o.useMemo)(function(){return xp(f)},[f]),p=Object(o.useRef)(h);p.current=h;var m=Object(o.useContext)(Gh),v=l||m,g=v&&v._init,y=ep(r),b=Object(o.useRef)(y);return b.current=y,Op(y),Object(o.useEffect)(function(){if(g){var e=v.getFieldsValue,t=(0,v.getInternalHooks)(Dh).registerWatch,n=function(e,t){var n=c.preserve?t:e;return"function"===typeof r?r(n):Object($h.a)(n,b.current)},a=t(function(e,t){var r=n(e,t),a=xp(r);p.current!==a&&(p.current=a,d(r))}),o=n(e(),e(!0));return f!==o&&d(o),a}},[g]),f},kp=o.forwardRef(Ep);kp.FormProvider=yp,kp.Field=up,kp.List=sp,kp.useForm=vp,kp.useWatch=jp;var Sp=o.createContext({});var _p=function(e){var t=e.componentCls;return Object(se.a)({},t,{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}})},Cp=function(e){var t=e.componentCls;return Object(se.a)({},t,Object(se.a)({display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}}},"".concat(t,"-item:empty"),{display:"none"}))},Lp=function(e){var t=e.componentCls;return Object(se.a)({},t,{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}})},Ap=(Eh("Space",function(e){var t=hh(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Cp(t),Lp(t),_p(t)]},function(){return{}},{resetStyle:!1}),o.createContext(null)),Pp=function(e,t){var n=o.useContext(Ap),r=o.useMemo(function(){var r;if(!n)return"";var a=n.compactDirection,o=n.isFirstItem,i=n.isLastItem,c="vertical"===a?"-vertical-":"-";return zl()("".concat(e,"-compact").concat(c,"item"),(r={},Object(se.a)(r,"".concat(e,"-compact").concat(c,"first-item"),o),Object(se.a)(r,"".concat(e,"-compact").concat(c,"last-item"),i),Object(se.a)(r,"".concat(e,"-compact").concat(c,"item-rtl"),"rtl"===t),r))},[e,t,n]);return{compactSize:null===n||void 0===n?void 0:n.compactSize,compactDirection:null===n||void 0===n?void 0:n.compactDirection,compactItemClassnames:r}},Mp=function(e){var t=e.children;return o.createElement(Ap.Provider,{value:null},t)},Np=function(e){var t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}};var Tp=function(e,t){return e||Np(t)};function Ip(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0},n=e.componentCls,r="".concat(n,"-compact");return Object(se.a)({},r,Object.assign(Object.assign({},function(e,t,n){var r,a=n.focusElCls,o=n.focus,i=n.borderElCls?"> *":"",c=["hover",o?"focus":null,"active"].filter(Boolean).map(function(e){return"&:".concat(e," ").concat(i)}).join(",");return r={},Object(se.a)(r,"&-item:not(".concat(t,"-last-item)"),{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()}),Object(se.a)(r,"&-item",Object.assign(Object.assign(Object(se.a)({},c,{zIndex:2}),a?Object(se.a)({},"&".concat(a),{zIndex:2}):{}),Object(se.a)({},"&[disabled] ".concat(i),{zIndex:0}))),r}(e,r,t)),function(e,t,n){var r,a=n.borderElCls,o=a?"> ".concat(a):"";return r={},Object(se.a)(r,"&-item:not(".concat(t,"-first-item):not(").concat(t,"-last-item) ").concat(o),{borderRadius:0}),Object(se.a)(r,"&-item:not(".concat(t,"-last-item)").concat(t,"-first-item"),Object(se.a)({},"& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o),{borderStartEndRadius:0,borderEndEndRadius:0})),Object(se.a)(r,"&-item:not(".concat(t,"-first-item)").concat(t,"-last-item"),Object(se.a)({},"& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o),{borderStartStartRadius:0,borderEndStartRadius:0})),r}(n,r,t)))}var Fp=function(e,t,n,r){var a,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return a={},Object(se.a)(a,"\n ".concat(o).concat(e,"-enter,\n ").concat(o).concat(e,"-appear\n "),Object.assign(Object.assign({},function(e){return{animationDuration:e,animationFillMode:"both"}}(r)),{animationPlayState:"paused"})),Object(se.a)(a,"".concat(o).concat(e,"-leave"),Object.assign(Object.assign({},function(e){return{animationDuration:e,animationFillMode:"both"}}(r)),{animationPlayState:"paused"})),Object(se.a)(a,"\n ".concat(o).concat(e,"-enter").concat(e,"-enter-active,\n ").concat(o).concat(e,"-appear").concat(e,"-appear-active\n "),{animationName:t,animationPlayState:"running"}),Object(se.a)(a,"".concat(o).concat(e,"-leave").concat(e,"-leave-active"),{animationName:n,animationPlayState:"running",pointerEvents:"none"}),a},Dp=new Ks("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Rp=new Ks("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Gp=new Ks("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Bp=new Ks("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Hp=new Ks("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),zp=new Ks("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Vp=new Ks("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),qp=new Ks("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Yp={"slide-up":{inKeyframes:Dp,outKeyframes:Rp},"slide-down":{inKeyframes:Gp,outKeyframes:Bp},"slide-left":{inKeyframes:Hp,outKeyframes:zp},"slide-right":{inKeyframes:Vp,outKeyframes:qp}},Wp=function(e,t){var n,r=e.antCls,a="".concat(r,"-").concat(t),o=Yp[t],i=o.inKeyframes,c=o.outKeyframes;return[Fp(a,i,c,e.motionDurationMid),(n={},Object(se.a)(n,"\n ".concat(a,"-enter,\n ").concat(a,"-appear\n "),Object(se.a)({transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint},"&-prepare",{transform:"scale(1)"})),Object(se.a)(n,"".concat(a,"-leave"),{animationTimingFunction:e.motionEaseInQuint}),n)]},Up=new Ks("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Xp=new Ks("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Qp=new Ks("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Kp=new Ks("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Jp=new Ks("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Zp=new Ks("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),$p={"move-up":{inKeyframes:new Ks("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new Ks("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:Up,outKeyframes:Xp},"move-left":{inKeyframes:Qp,outKeyframes:Kp},"move-right":{inKeyframes:Jp,outKeyframes:Zp}},em=function(e,t){var n,r=e.antCls,a="".concat(r,"-").concat(t),o=$p[t],i=o.inKeyframes,c=o.outKeyframes;return[Fp(a,i,c,e.motionDurationMid),(n={},Object(se.a)(n,"\n ".concat(a,"-enter,\n ").concat(a,"-appear\n "),{opacity:0,animationTimingFunction:e.motionEaseOutCirc}),Object(se.a)(n,"".concat(a,"-leave"),{animationTimingFunction:e.motionEaseInOutCirc}),n)]},tm=function(e){var t=e.optionHeight,n=e.optionFontSize,r=e.optionLineHeight;return{position:"relative",display:"block",minHeight:t,padding:e.optionPadding,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},nm=function(e){var t,n,r,a,o=e.antCls,i=e.componentCls,c="".concat(i,"-item"),l="&".concat(o,"-slide-up-enter").concat(o,"-slide-up-enter-active"),u="&".concat(o,"-slide-up-appear").concat(o,"-slide-up-appear-active"),s="&".concat(o,"-slide-up-leave").concat(o,"-slide-up-leave-active"),f="".concat(i,"-dropdown-placement-");return[Object(se.a)({},"".concat(i,"-dropdown"),Object.assign(Object.assign({},Dd(e)),(a={position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Object(se.a)(a,"\n ".concat(l).concat(f,"bottomLeft,\n ").concat(u).concat(f,"bottomLeft\n "),{animationName:Dp}),Object(se.a)(a,"\n ".concat(l).concat(f,"topLeft,\n ").concat(u).concat(f,"topLeft,\n ").concat(l).concat(f,"topRight,\n ").concat(u).concat(f,"topRight\n "),{animationName:Gp}),Object(se.a)(a,"".concat(s).concat(f,"bottomLeft"),{animationName:Rp}),Object(se.a)(a,"\n ".concat(s).concat(f,"topLeft,\n ").concat(s).concat(f,"topRight\n "),{animationName:Bp}),Object(se.a)(a,"&-hidden",{display:"none"}),Object(se.a)(a,"".concat(c),Object.assign(Object.assign({},tm(e)),{cursor:"pointer",transition:"background ".concat(e.motionDurationSlow," ease"),borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":(r={display:"flex","&-content":Object.assign({flex:"auto"},Fd),"&-state":{flex:"none",display:"flex",alignItems:"center"}},Object(se.a)(r,"&-active:not(".concat(c,"-option-disabled)"),{backgroundColor:e.optionActiveBg}),Object(se.a)(r,"&-selected:not(".concat(c,"-option-disabled)"),(t={color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg},Object(se.a)(t,"".concat(c,"-option-state"),{color:e.colorPrimary}),Object(se.a)(t,"&:has(+ ".concat(c,"-option-selected:not(").concat(c,"-option-disabled))"),Object(se.a)({borderEndStartRadius:0,borderEndEndRadius:0},"& + ".concat(c,"-option-selected:not(").concat(c,"-option-disabled)"),{borderStartStartRadius:0,borderStartEndRadius:0})),t)),Object(se.a)(r,"&-disabled",(n={},Object(se.a)(n,"&".concat(c,"-option-selected"),{backgroundColor:e.colorBgContainerDisabled}),Object(se.a)(n,"color",e.colorTextDisabled),Object(se.a)(n,"cursor","not-allowed"),n)),Object(se.a)(r,"&-grouped",{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}),r)})),Object(se.a)(a,"&-rtl",{direction:"rtl"}),a))),Wp(e,"slide-up"),Wp(e,"slide-down"),em(e,"move-up"),em(e,"move-down")]},rm=2,am=function(e){var t=e.multipleSelectItemHeight,n=e.selectHeight,r=e.lineWidth;return e.calc(n).sub(t).div(2).sub(r).equal()};function om(e,t){var n,r,a,o,i,c=e.componentCls,l=e.iconCls,u="".concat(c,"-selection-overflow"),s=e.multipleSelectItemHeight,f=am(e),d=t?"".concat(c,"-").concat(t):"";return Object(se.a)({},"".concat(c,"-multiple").concat(d),(i={fontSize:e.fontSize},Object(se.a)(i,u,{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}}),Object(se.a)(i,"".concat(c,"-selector"),(n={display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(rm).mul(2).equal(),paddingBlock:e.calc(f).sub(rm).equal(),borderRadius:e.borderRadius},Object(se.a)(n,"".concat(c,"-show-search&"),{cursor:"text"}),Object(se.a)(n,"".concat(c,"-disabled&"),{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"}),Object(se.a)(n,"&:after",{display:"inline-block",width:0,margin:"".concat(_u(rm)," 0"),lineHeight:_u(s),visibility:"hidden",content:'"\\a0"'}),n)),Object(se.a)(i,"\n &".concat(c,"-show-arrow ").concat(c,"-selector,\n &").concat(c,"-allow-clear ").concat(c,"-selector\n "),{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}),Object(se.a)(i,"".concat(c,"-selection-item"),(a={display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:s,marginTop:rm,marginBottom:rm,lineHeight:_u(e.calc(s).sub(e.calc(e.lineWidth).mul(2)).equal()),background:e.multipleItemBg,border:"".concat(_u(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor),borderRadius:e.borderRadiusSM,cursor:"default",transition:"font-size ".concat(e.motionDurationSlow,", line-height ").concat(e.motionDurationSlow,", height ").concat(e.motionDurationSlow),marginInlineEnd:e.calc(rm).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal()},Object(se.a)(a,"".concat(c,"-disabled&"),{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"}),Object(se.a)(a,"&-content",{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"}),Object(se.a)(a,"&-remove",Object.assign(Object.assign({},Rd()),(r={display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer"},Object(se.a)(r,"> ".concat(l),{verticalAlign:"-0.2em"}),Object(se.a)(r,"&:hover",{color:e.colorIconHover}),r))),a)),Object(se.a)(i,"".concat(u,"-item + ").concat(u,"-item"),Object(se.a)({},"".concat(c,"-selection-search"),{marginInlineStart:0})),Object(se.a)(i,"".concat(u,"-item-suffix"),{height:"100%"}),Object(se.a)(i,"".concat(c,"-selection-search"),(o={display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(f).equal()},Object(se.a)(o,"\n &-input,\n &-mirror\n ",{height:s,fontFamily:e.fontFamily,lineHeight:_u(s),transition:"all ".concat(e.motionDurationSlow)}),Object(se.a)(o,"&-input",{width:"100%",minWidth:4.1}),Object(se.a)(o,"&-mirror",{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}),o)),Object(se.a)(i,"".concat(c,"-selection-placeholder"),{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:"all ".concat(e.motionDurationSlow)}),i))}var im=function(e){var t,n=e.componentCls,r=hh(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),a=hh(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[om(e),om(r,"sm"),Object(se.a)({},"".concat(n,"-multiple").concat(n,"-sm"),(t={},Object(se.a)(t,"".concat(n,"-selection-placeholder"),{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()}),Object(se.a)(t,"".concat(n,"-selection-search"),{marginInlineStart:2}),t)),om(a,"lg")]};function cm(e,t){var n,r,a,o,i=e.componentCls,c=e.inputPaddingHorizontalBase,l=e.borderRadius,u=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=t?"".concat(i,"-").concat(t):"";return Object(se.a)({},"".concat(i,"-single").concat(s),(o={fontSize:e.fontSize,height:e.controlHeight},Object(se.a)(o,"".concat(i,"-selector"),Object.assign(Object.assign({},Dd(e,!0)),(n={display:"flex",borderRadius:l},Object(se.a)(n,"".concat(i,"-selection-search"),{position:"absolute",top:0,insetInlineStart:c,insetInlineEnd:c,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}}),Object(se.a)(n,"\n ".concat(i,"-selection-item,\n ").concat(i,"-selection-placeholder\n "),{padding:0,lineHeight:_u(u),transition:"all ".concat(e.motionDurationSlow,", visibility 0s"),alignSelf:"center"}),Object(se.a)(n,"".concat(i,"-selection-placeholder"),{transition:"none",pointerEvents:"none"}),Object(se.a)(n,["&:after","".concat(i,"-selection-item:empty:after"),"".concat(i,"-selection-placeholder:empty:after")].join(","),{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}),n))),Object(se.a)(o,"\n &".concat(i,"-show-arrow ").concat(i,"-selection-item,\n &").concat(i,"-show-arrow ").concat(i,"-selection-placeholder\n "),{paddingInlineEnd:e.showArrowPaddingInlineEnd}),Object(se.a)(o,"&".concat(i,"-open ").concat(i,"-selection-item"),{color:e.colorTextPlaceholder}),Object(se.a)(o,"&:not(".concat(i,"-customize-input)"),Object(se.a)({},"".concat(i,"-selector"),(r={width:"100%",height:"100%",padding:"0 ".concat(_u(c))},Object(se.a)(r,"".concat(i,"-selection-search-input"),{height:u}),Object(se.a)(r,"&:after",{lineHeight:_u(u)}),r))),Object(se.a)(o,"&".concat(i,"-customize-input"),Object(se.a)({},"".concat(i,"-selector"),(a={"&:after":{display:"none"}},Object(se.a)(a,"".concat(i,"-selection-search"),{position:"static",width:"100%"}),Object(se.a)(a,"".concat(i,"-selection-placeholder"),{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:"0 ".concat(_u(c)),"&:after":{display:"none"}}),a))),o))}function lm(e){var t,n=e.componentCls,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[cm(e),cm(hh(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),Object(se.a)({},"".concat(n,"-single").concat(n,"-sm"),Object(se.a)({},"&:not(".concat(n,"-customize-input)"),(t={},Object(se.a)(t,"".concat(n,"-selection-search"),{insetInlineStart:r,insetInlineEnd:r}),Object(se.a)(t,"".concat(n,"-selector"),{padding:"0 ".concat(_u(r))}),Object(se.a)(t,"&".concat(n,"-show-arrow ").concat(n,"-selection-search"),{insetInlineEnd:e.calc(r).add(e.calc(e.fontSize).mul(1.5)).equal()}),Object(se.a)(t,"\n &".concat(n,"-show-arrow ").concat(n,"-selection-item,\n &").concat(n,"-show-arrow ").concat(n,"-selection-placeholder\n "),{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}),t))),cm(hh(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var um=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=t.componentCls,o=t.borderHoverColor,i=t.antCls,c=t.borderActiveColor,l=t.outlineColor,u=t.controlOutlineWidth,s=r?Object(se.a)({},"".concat(a,"-selector"),{borderColor:c}):{};return Object(se.a)({},e,Object(se.a)({},"&:not(".concat(a,"-disabled):not(").concat(a,"-customize-input):not(").concat(i,"-pagination-size-changer)"),Object.assign(Object.assign({},s),(n={},Object(se.a)(n,"&:hover ".concat(a,"-selector"),{borderColor:o}),Object(se.a)(n,"".concat(a,"-focused& ").concat(a,"-selector"),{borderColor:c,boxShadow:"0 0 0 ".concat(_u(u)," ").concat(l),outline:0}),n))))},sm=function(e){var t,n,r,a=e.antCls,o=e.componentCls,i=e.inputPaddingHorizontalBase,c=e.iconCls;return r={},Object(se.a)(r,o,Object.assign(Object.assign({},Dd(e)),(n={position:"relative",display:"inline-block",cursor:"pointer"},Object(se.a)(n,"&:not(".concat(o,"-customize-input) ").concat(o,"-selector"),Object.assign(Object.assign({},function(e){var t,n,r=e.componentCls;return n={position:"relative",backgroundColor:e.selectorBg,border:"".concat(_u(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),input:{cursor:"pointer"}},Object(se.a)(n,"".concat(r,"-show-search&"),{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}}),Object(se.a)(n,"".concat(r,"-disabled&"),(t={color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed"},Object(se.a)(t,"".concat(r,"-multiple&"),{background:e.multipleSelectorBgDisabled}),Object(se.a)(t,"input",{cursor:"not-allowed"}),t)),n}(e)),function(e){var t=e.componentCls;return Object(se.a)({},"".concat(t,"-selection-search-input"),{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}})}(e))),Object(se.a)(n,"".concat(o,"-selection-item"),Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Fd),Object(se.a)({},"> ".concat(a,"-typography"),{display:"inline"}))),Object(se.a)(n,"".concat(o,"-selection-placeholder"),Object.assign(Object.assign({},Fd),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"})),Object(se.a)(n,"".concat(o,"-arrow"),Object.assign(Object.assign({},Rd()),(t={position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:i,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center"},Object(se.a)(t,c,Object(se.a)({verticalAlign:"top",transition:"transform ".concat(e.motionDurationSlow),"> svg":{verticalAlign:"top"}},"&:not(".concat(o,"-suffix)"),{pointerEvents:"auto"})),Object(se.a)(t,"".concat(o,"-disabled &"),{cursor:"not-allowed"}),Object(se.a)(t,"> *:not(:last-child)",{marginInlineEnd:8}),t))),Object(se.a)(n,"".concat(o,"-clear"),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:i,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:"color ".concat(e.motionDurationMid," ease, opacity ").concat(e.motionDurationSlow," ease"),textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}}),Object(se.a)(n,"&:hover",Object(se.a)({},"".concat(o,"-clear"),{opacity:1})),n))),Object(se.a)(r,"".concat(o,"-has-feedback"),Object(se.a)({},"".concat(o,"-clear"),{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()})),r},fm=function(e){var t,n=e.componentCls;return[Object(se.a)({},n,(t={},Object(se.a)(t,"&-borderless ".concat(n,"-selector"),{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"}),Object(se.a)(t,"&".concat(n,"-in-form-item"),{width:"100%"}),t)),sm(e),lm(e),im(e),nm(e),Object(se.a)({},"".concat(n,"-rtl"),{direction:"rtl"}),um(n,hh(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),um("".concat(n,"-status-error"),hh(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),um("".concat(n,"-status-warning"),hh(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),Ip(e,{borderElCls:"".concat(n,"-selector"),focusElCls:"".concat(n,"-focused")})]},dm=Eh("Select",function(e,t){var n=hh(e,{rootPrefixCls:t.rootPrefixCls,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[fm(n)]},function(e){var t=e.fontSize,n=e.lineHeight,r=e.controlHeight,a=e.controlPaddingHorizontal,o=e.zIndexPopupBase,i=e.colorText,c=e.fontWeightStrong,l=e.controlItemBgActive,u=e.controlItemBgHover,s=e.colorBgContainer,f=e.colorFillSecondary,d=e.controlHeightLG,h=e.controlHeightSM,p=e.colorBgContainerDisabled,m=e.colorTextDisabled;return{zIndexPopup:o+50,optionSelectedColor:i,optionSelectedFontWeight:c,optionSelectedBg:l,optionActiveBg:u,optionPadding:"".concat((r-t*n)/2,"px ").concat(a,"px"),optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:s,clearBg:s,singleItemHeightLG:d,multipleItemBg:f,multipleItemBorderColor:"transparent",multipleItemHeight:h,multipleItemHeightLG:r,multipleSelectorBgDisabled:p,multipleItemColorDisabled:m,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),hm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},pm=n(1259);function mm(e){return"object"===Object(uu.a)(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===Object(uu.a)(e.icon)||"function"===typeof e.icon)}function vm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r,a=e[n];switch(n){case"class":t.className=a,delete t.class;break;default:delete t[n],t[(r=n,r.replace(/-(.)/g,function(e,t){return t.toUpperCase()}))]=a}return t},{})}function gm(e){return mf(e)[0]}function ym(e){return e?Array.isArray(e)?e:[e]:[]}var bm=["icon","className","onClick","style","primaryColor","secondaryColor"],wm={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Em=function(e){var t,n,r=e.icon,a=e.className,c=e.onClick,l=e.style,u=e.primaryColor,s=e.secondaryColor,f=Object(Jl.a)(e,bm),d=o.useRef(),h=wm;if(u&&(h={primaryColor:u,secondaryColor:s||gm(u)}),function(e){var t=Object(o.useContext)(td),n=t.csp,r=t.prefixCls,a="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(a=a.replace(/anticon/g,r)),Object(o.useEffect)(function(){var t=e.current,r=Object(pm.a)(t);Object(Kl.b)(a,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})},[])}(d),t=mm(r),n="icon should be icon definiton, but got ".concat(r),Object(du.a)(t,"[@ant-design/icons] ".concat(n)),!mm(r))return null;var p=r;return p&&"function"===typeof p.icon&&(p=Object(Xl.a)(Object(Xl.a)({},p),{},{icon:p.icon(h.primaryColor,h.secondaryColor)})),function e(t,n,r){return r?i.a.createElement(t.tag,Object(Xl.a)(Object(Xl.a)({key:n},vm(t.attrs)),r),(t.children||[]).map(function(r,a){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(a))})):i.a.createElement(t.tag,Object(Xl.a)({key:n},vm(t.attrs)),(t.children||[]).map(function(r,a){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(a))}))}(p.icon,"svg-".concat(p.name),Object(Xl.a)(Object(Xl.a)({className:a,onClick:c,style:l,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:d}))};Em.displayName="IconReact",Em.getTwoToneColors=function(){return Object(Xl.a)({},wm)},Em.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;wm.primaryColor=t,wm.secondaryColor=n||gm(t),wm.calculated=!!n};var xm=Em;function Om(e){var t=ym(e),n=Object(Yl.a)(t,2),r=n[0],a=n[1];return xm.setTwoToneColors({primaryColor:r,secondaryColor:a})}var jm=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Om(bf.primary);var km=o.forwardRef(function(e,t){var n,r=e.className,a=e.icon,i=e.spin,c=e.rotate,l=e.tabIndex,u=e.onClick,s=e.twoToneColor,f=Object(Jl.a)(e,jm),d=o.useContext(td),h=d.prefixCls,p=void 0===h?"anticon":h,m=d.rootClassName,v=pe()(m,p,(n={},Object(Wl.a)(n,"".concat(p,"-").concat(a.name),!!a.name),Object(Wl.a)(n,"".concat(p,"-spin"),!!i||"loading"===a.name),n),r),g=l;void 0===g&&u&&(g=-1);var y=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,b=ym(s),w=Object(Yl.a)(b,2),E=w[0],x=w[1];return o.createElement("span",Object(Wu.a)({role:"img","aria-label":a.name},f,{ref:t,tabIndex:g,onClick:u,className:v}),o.createElement(xm,{icon:a,primaryColor:E,secondaryColor:x,style:y}))});km.displayName="AntdIcon",km.getTwoToneColor=function(){var e=xm.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},km.setTwoToneColor=Om;var Sm=km;var _m=o.forwardRef(function(e,t){return o.createElement(Sm,Object(Wu.a)({},e,{ref:t,icon:hm}))}),Cm={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var Lm=o.forwardRef(function(e,t){return o.createElement(Sm,Object(Wu.a)({},e,{ref:t,icon:Cm}))}),Am={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var Pm=o.forwardRef(function(e,t){return o.createElement(Sm,Object(Wu.a)({},e,{ref:t,icon:Am}))}),Mm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var Nm=o.forwardRef(function(e,t){return o.createElement(Sm,Object(Wu.a)({},e,{ref:t,icon:Mm}))}),Tm={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var Im=o.forwardRef(function(e,t){return o.createElement(Sm,Object(Wu.a)({},e,{ref:t,icon:Tm}))}),Fm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var Dm=o.forwardRef(function(e,t){return o.createElement(Sm,Object(Wu.a)({},e,{ref:t,icon:Fm}))});var Rm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},Gm=function(e,t){var n,r,i,c,l=e.prefixCls,u=e.bordered,s=void 0===u||u,f=e.className,d=e.rootClassName,h=e.getPopupContainer,p=e.popupClassName,m=e.dropdownClassName,v=e.listHeight,g=void 0===v?256:v,y=e.placement,b=e.listItemHeight,w=e.size,E=e.disabled,x=e.notFoundContent,O=e.status,j=e.builtinPlacements,k=e.dropdownMatchSelectWidth,S=e.popupMatchSelectWidth,_=e.direction,C=e.style,L=e.allowClear,A=Rm(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]),P=o.useContext(yd),M=P.getPopupContainer,N=P.getPrefixCls,T=P.renderEmpty,I=P.direction,F=P.virtual,D=P.popupMatchSelectWidth,R=P.popupOverflow,G=P.select,B=zf(),H=Object(a.a)(B,2)[1],z=null!==b&&void 0!==b?b:null===H||void 0===H?void 0:H.controlHeight,V=N("select",l),q=N(),Y=null!==_&&void 0!==_?_:I,W=Pp(V,Y),U=W.compactSize,X=W.compactItemClassnames,Q=Ah(V),K=dm(V,Q),J=Object(a.a)(K,3),Z=J[0],$=J[1],ee=J[2],te=o.useMemo(function(){var e=A.mode;if("combobox"!==e)return"SECRET_COMBOBOX_MODE_DO_NOT_USE"===e?"combobox":e},[A.mode]),ne="multiple"===te||"tags"===te,re=function(e,t){return void 0!==t?t:null!==e}(A.suffixIcon,A.showArrow),ae=null!==(r=null!==S&&void 0!==S?S:k)&&void 0!==r?r:D,oe=o.useContext(Sp),ie=oe.status,ce=oe.hasFeedback,le=oe.isFormItemInput,ue=oe.feedbackIcon,fe=function(e,t){return t||e}(ie,O);c=void 0!==x?x:"combobox"===te?null:(null===T||void 0===T?void 0:T("Select"))||o.createElement(Lh,{componentName:"Select"});var de=function(e){var t=e.suffixIcon,n=e.clearIcon,r=e.menuItemSelectedIcon,a=e.removeIcon,i=e.loading,c=e.multiple,l=e.hasFeedback,u=e.prefixCls,s=e.showSuffixIcon,f=e.feedbackIcon,d=e.showArrow,h=(e.componentName,null!==n&&void 0!==n?n:o.createElement(Lm,null)),p=function(e){return null!==t||l||d?o.createElement(o.Fragment,null,!1!==s&&e,l&&f):null},m=null;if(void 0!==t)m=p(t);else if(i)m=p(o.createElement(Im,{spin:!0}));else{var v="".concat(u,"-suffix");m=function(e){var t=e.open,n=e.showSearch;return p(t&&n?o.createElement(Dm,{className:v}):o.createElement(Nm,{className:v}))}}return{clearIcon:h,suffixIcon:m,itemIcon:void 0!==r?r:c?o.createElement(_m,null):null,removeIcon:void 0!==a?a:o.createElement(Pm,null)}}(Object.assign(Object.assign({},A),{multiple:ne,hasFeedback:ce,feedbackIcon:ue,showSuffixIcon:re,prefixCls:V,showArrow:A.showArrow,componentName:"Select"})),he=de.suffixIcon,pe=de.itemIcon,me=de.removeIcon,ve=de.clearIcon,ge=!0===L?{clearIcon:ve}:L,ye=Object(ql.a)(A,["suffixIcon","itemIcon"]),be=zl()(p||m,Object(se.a)({},"".concat(V,"-dropdown-").concat(Y),"rtl"===Y),d,ee,Q,$),we=Ph(function(e){var t;return null!==(t=null!==w&&void 0!==w?w:U)&&void 0!==t?t:e}),Ee=o.useContext(Od),xe=null!==E&&void 0!==E?E:Ee,Oe=zl()((n={},Object(se.a)(n,"".concat(V,"-lg"),"large"===we),Object(se.a)(n,"".concat(V,"-sm"),"small"===we),Object(se.a)(n,"".concat(V,"-rtl"),"rtl"===Y),Object(se.a)(n,"".concat(V,"-borderless"),!s),Object(se.a)(n,"".concat(V,"-in-form-item"),le),n),function(e,t,n){var r;return zl()((r={},Object(se.a)(r,"".concat(e,"-status-success"),"success"===t),Object(se.a)(r,"".concat(e,"-status-warning"),"warning"===t),Object(se.a)(r,"".concat(e,"-status-error"),"error"===t),Object(se.a)(r,"".concat(e,"-status-validating"),"validating"===t),Object(se.a)(r,"".concat(e,"-has-feedback"),n),r))}(V,fe,ce),X,null===G||void 0===G?void 0:G.className,f,d,ee,Q,$),je=o.useMemo(function(){return void 0!==y?y:"rtl"===Y?"bottomRight":"bottomLeft"},[y,Y]),ke=Uf("SelectLike",null===(i=A.dropdownStyle)||void 0===i?void 0:i.zIndex),Se=Object(a.a)(ke,1)[0];return Z(o.createElement(Vl.c,Object.assign({ref:t,virtual:F,showSearch:null===G||void 0===G?void 0:G.showSearch},ye,{style:Object.assign(Object.assign({},null===G||void 0===G?void 0:G.style),C),dropdownMatchSelectWidth:ae,builtinPlacements:Tp(j,R),transitionName:Zf(q,"slide-up",A.transitionName),listHeight:g,listItemHeight:z,mode:te,prefixCls:V,placement:je,direction:Y,suffixIcon:he,menuItemSelectedIcon:pe,removeIcon:me,allowClear:ge,notFoundContent:c,className:Oe,getPopupContainer:h||M,dropdownClassName:be,disabled:xe,dropdownStyle:Object.assign(Object.assign({},null===A||void 0===A?void 0:A.dropdownStyle),{zIndex:Se})})))};var Bm=o.forwardRef(Gm),Hm=Zd(Bm);Bm.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",Bm.Option=Vl.b,Bm.OptGroup=Vl.a,Bm._InternalPanelDoNotUseOrYouWillBeFired=Hm;var zm=Bm;function Vm(){Vm=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var qm=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,l=(Object(c.useHistory)(),Object(a.a)(t,2)),u=(l[0],l[1]),s=Object(a.a)(n,2),f=(s[0],s[1]),d=localStorage.getItem("fteachcode"),h=Object(o.useState)("0"),v=Object(a.a)(h,2),g=v[0],y=v[1],b=Object(o.useState)("ZZZZZ"),w=Object(a.a)(b,2),E=w[0],x=w[1],O=Object(o.useState)("All"),j=Object(a.a)(O,2),k=j[0],S=j[1],_=Object(o.useState)("All"),C=Object(a.a)(_,2),L=C[0],A=C[1],P=Object(o.useState)("qpwise"),M=Object(a.a)(P,2),N=M[0],T=M[1],I=Object(o.useState)("QP Code"),F=Object(a.a)(I,2),D=F[0],R=F[1],G=Object(o.useState)("Subject Name"),B=Object(a.a)(G,2),H=B[0],z=B[1],V=Object(o.useState)("All"),q=Object(a.a)(V,2),Y=q[0],W=q[1],U=Object(o.useState)(""),X=Object(a.a)(U,2),Q=X[0],J=X[1],Z=Object(o.useState)([]),$=Object(a.a)(Z,2),re=$[0],ae=$[1],ie=Object(o.useState)([]),se=Object(a.a)(ie,2),fe=se[0],de=se[1],he=Object(o.useState)("All"),pe=Object(a.a)(he,2),me=pe[0],ve=pe[1],ge=Object(o.useState)("All"),ye=Object(a.a)(ge,2),be=ye[0],we=ye[1],Ee=Object(o.useState)([]),xe=Object(a.a)(Ee,2),Oe=xe[0],je=xe[1],ke=Object(o.useState)([]),Se=Object(a.a)(ke,2),_e=Se[0],Ce=Se[1];Object(o.useEffect)(function(){Ae()},[]);var Le=function(){var e=Object(r.a)(Vm().mark(function e(){var t;return Vm().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"boardwise"==N?(R("Board Code"),z("Board Name")):(R("QP Code"),z("Subject Name")),""!=Q){e.next=5;break}return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Valuation No."}}),e.abrupt("return");case 5:return u(!0),e.next=8,ee.get("/admin/get-qpstats?fusercode=".concat(d,"&fqpcodefrm=").concat(g,"&fqpcodeto=").concat(E,"\n &fdeggrp=").concat(k,"&fboard=").concat(L,"&stype=").concat(N,"&ssem=").concat(Y,"&fvalno=").concat(Q,"&status=").concat(me,"\n &fdegree=").concat(be));case 8:if(0!=(t=e.sent).data.status){e.next=13;break}Ce(t.data.result),e.next=15;break;case 13:throw Ce([]),new Error(t.data.msg);case 15:u(!1),e.next=22;break;case 18:e.prev=18,e.t0=e.catch(0),u(!1),f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 22:case"end":return e.stop()}},e,null,[[0,18]])}));return function(){return e.apply(this,arguments)}}(),Ae=function(){var e=Object(r.a)(Vm().mark(function e(){var t,n,r,a;return Vm().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u(!0),e.next=4,ee.get("/admin/get-deggrp?fusercode=".concat(d));case 4:if(0!=(t=e.sent).data.status){e.next=14;break}n=[{key:"All",value:"All",label:"All"}],r=t.data.result.res.map(function(e,t){return{key:e.fdeggrp,value:e.fdeggrp,label:e.fdescpn}}),ae([].concat(n,Object(oe.a)(r))),a=t.data.result.degree.map(function(e,t){return{key:t,value:e.fdegree,label:e.fdescpn}}),je([].concat(n,Object(oe.a)(a))),Pe("All"),e.next=15;break;case 14:throw new Error(t.data.msg);case 15:u(!1),e.next=22;break;case 18:e.prev=18,e.t0=e.catch(0),u(!1),f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 22:case"end":return e.stop()}},e,null,[[0,18]])}));return function(){return e.apply(this,arguments)}}(),Pe=function(){var e=Object(r.a)(Vm().mark(function e(t){var n,r,a,o;return Vm().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u(!0),e.next=4,ee.get("/admin/get-valstats-board?fusercode=".concat(d,"&fdeggrp=").concat(t));case 4:if(0!=(n=e.sent).data.status){e.next=12;break}Ce(n.data.result),r=[{key:"All",value:"All",label:"All"}],void 0!==n.data.result.res.length||null!==n.data.result.res.length?(a=n.data.result.res.map(function(e,t){return{key:t,value:e.fboard,label:e.fboardname}}),de([].concat(r,Object(oe.a)(a)))):de([].concat(r)),void 0!==n.data.result.degree.length||null!==n.data.result.degree.length?(o=n.data.result.degree.map(function(e,t){return{key:e.fdegree,value:e.fdegree,label:e.fdescpn}}),je([].concat(r,Object(oe.a)(o)))):je([].concat(r)),e.next=13;break;case 12:throw new Error(n.data.msg);case 13:u(!1),e.next=20;break;case 16:e.prev=16,e.t0=e.catch(0),u(!1),f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 20:case"end":return e.stop()}},e,null,[[0,16]])}));return function(t){return e.apply(this,arguments)}}(),Me=0,Ne=0,Te=0,Ie=0,Fe=0,De=function(){var e=Object(r.a)(Vm().mark(function e(t,n,r){var a;return Vm().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=localStorage.getItem("univcode"),window.open("".concat(K.c,"getTDVSValuationStatusReport&univcode=").concat(a,"&type=").concat(t,"&valno=").concat(Q,"&qpcode=").concat(n,"&rtype=").concat(r),"_blank");case 2:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),Re=function(e){e.target.style.background="#00b5ae",e.target.style.cursor="pointer"},Ge=function(e){e.target.style.background=""};return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Valuation Status (QP. Code wise)")),i.a.createElement(te.a.Content,{style:{height:"75vh",overflowY:"scroll"}},i.a.createElement("div",null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Degree group"),i.a.createElement(zm,{placeholder:"Degree group",name:"fqpcode",value:k,size:"large",style:{width:"100%"},showSearch:!0,optionFilterProp:"label",options:re,onChange:function(e){S(e),Pe(e)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Board"),i.a.createElement(zm,{placeholder:"Board",name:"fboard",value:L,size:"large",style:{width:"100%"},showSearch:!0,optionFilterProp:"label",options:fe,onChange:function(e){A(e)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Degree"),i.a.createElement(zm,{showSearch:!0,optionFilterProp:"label",placeholder:"Select Degree",value:be,size:"large",style:{width:"100%"},options:Oe,onChange:function(e){we(e)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Sem"),i.a.createElement(p.a,{placeholder:"Type",name:"ssem",value:Y,selection:!0,search:!0,options:[{key:"All",text:"All",value:"All"},{key:"a",text:"I Sem",value:"A"},{key:"b",text:"II Sem",value:"B"},{key:"c",text:"III Sem",value:"C"},{key:"d",text:"IV Sem",value:"D"},{key:"e",text:"V Sem",value:"E"},{key:"f",text:"VI Sem",value:"F"},{key:"g",text:"VII Sem",value:"G"},{key:"h",text:"VIII Sem",value:"H"},{key:"i",text:"IX Sem",value:"I"},{key:"j",text:"X Sem",value:"J"}],onChange:function(e,t){W(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"QP Code From"),i.a.createElement(ue.a,{value:g,placeholder:"Enter QP. Code From",onChange:function(e,t){return y(t.value.toUpperCase())}})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"QP Code To"),i.a.createElement(ue.a,{placeholder:"Enter QP. Code To",value:E,onChange:function(e,t){return x(t.value.toUpperCase())}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Type"),i.a.createElement(p.a,{placeholder:"Type",name:"stype",value:N,selection:!0,search:!0,options:[{key:"qpwise",text:"QP Wise",value:"qpwise"},{key:"Board Wise",text:"Board Wise",value:"boardwise"},{key:"Board Wise and Sem Wise",text:"Board Wise and Sem Wise",value:"boardsemwise"},{key:"Degree and Sem Wise",text:"Degree and Sem Wise",value:"degreesemwise"}],onChange:function(e,t){T(t.value)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Status"),i.a.createElement(p.a,{placeholder:"Select Valuation No.",name:"fvalno",value:me,selection:!0,search:!0,options:[{key:"All",value:"All",text:"All"},{key:"Valued",value:"Valued",text:"Valued"},{key:"Pending",value:"Pending",text:"Pending"},{key:"Rejected",value:"Rejected",text:"Rejected"}],onChange:function(e,t){ve(t.value)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Valuation No."),i.a.createElement(p.a,{placeholder:"Select Valuation No.",name:"fvalno",value:Q,selection:!0,search:!0,options:[{key:"1",value:"1",text:"1"},{key:"2",value:"2",text:"2"},{key:"3",value:"3",text:"3"},{key:"4",value:"4",text:"4"},{key:"5",value:"5",text:"5"},{key:"D",value:"D",text:"D"},{key:"R",value:"R",text:"R"}],onChange:function(e,t){J(t.value)}}))),i.a.createElement(ne.a,{primary:!0,onClick:Le},"View"),i.a.createElement(ne.a,{primary:!0,onClick:function(){if(""!=Q){var e=localStorage.getItem("univcode");window.open("".concat(K.c,"getQpStatsReport&univcode=").concat(e,"&fqpcodefrm=").concat(g,"&fqpcodeto=").concat(E,"\n &fdeggrp=").concat(k,"&fboard=").concat(L,"&stype=").concat(N,"&ssem=").concat(Y,"&fvalno=").concat(Q,"&status=").concat(me,"\n &fdegree=").concat(be),"_blank")}else f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Valuation No."}})}},"Report"))),i.a.createElement("div",null,_e.length>0?i.a.createElement(ce.a,{celled:!0,style:{marginTop:"1%"}},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Sl. No"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Year / Mode"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},D),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},H),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Degree"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Exam"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Total"),"050"==localStorage.getItem("univcode")?i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Reviewer cnt"):null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Assigned"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Rejected"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Valued"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Balance"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Val. %"))),i.a.createElement(ce.a.Body,null,_e.map(function(e,t){return Me+=parseInt(e.ftotal),Fe+=parseInt(e.freject),Te+=parseInt(e.fsubmit),Ne+=parseInt(e.fassign),Ie+=parseInt(e.fbalance),parseInt(e.perct),i.a.createElement(ce.a.Row,{key:t},i.a.createElement(ce.a.Cell,{textAlign:"center"},t+1),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.yearmode),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fqpcode),i.a.createElement(ce.a.Cell,null,e.fsubname),i.a.createElement(Bl.a,{content:e.fdegree,size:"mini",trigger:i.a.createElement(ce.a.Cell,null,e.fdegree.substring(0,11))}),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fexamno),i.a.createElement(ce.a.Cell,{textAlign:"center",onClick:function(){return De("Total",e.fqpcode,N)},onMouseOver:Re,onMouseOut:Ge},parseInt(e.ftotal).toLocaleString("en-IN")),"050"==localStorage.getItem("univcode")?i.a.createElement(ce.a.Cell,{textAlign:"center",onClick:function(){return De("rtotal",e.fqpcode,N)},onMouseOver:Re,onMouseOut:Ge},parseInt(e.revicnt).toLocaleString("en-IN")):null,i.a.createElement(ce.a.Cell,{textAlign:"center",onClick:function(){return De("Assigned",e.fqpcode,N)},onMouseOver:Re,onMouseOut:Ge},parseInt(e.fassign).toLocaleString("en-IN")),i.a.createElement(ce.a.Cell,{textAlign:"center",onClick:function(){return De("Rejected",e.fqpcode,N)},onMouseOver:Re,onMouseOut:Ge},parseInt(e.freject).toLocaleString("en-IN")),i.a.createElement(ce.a.Cell,{textAlign:"center",onClick:function(){return De("Final",e.fqpcode,N)},onMouseOver:Re,onMouseOut:Ge},parseInt(e.fsubmit).toLocaleString("en-IN")),i.a.createElement(ce.a.Cell,{textAlign:"center",onClick:function(){return De("Balance",e.fqpcode,N)},onMouseOver:Re,onMouseOut:Ge},parseInt(e.fbalance).toLocaleString("en-IN")),i.a.createElement(ce.a.Cell,{textAlign:"center"},parseFloat(e.perct).toLocaleString("en-IN")))})),i.a.createElement(ce.a.Footer,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center",colspan:"6"},"Total"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},Me.toLocaleString("en-IN")),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},Ne.toLocaleString("en-IN")),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},Fe.toLocaleString("en-IN")),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},Te.toLocaleString("en-IN")),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},Ie.toLocaleString("en-IN")),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"})))):null)))},Ym=n(1552);function Wm(){Wm=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Um=function(e){var t=Object(o.useContext)(m.a),n=t.load,u=t.err_msg,s=t.confirm_err_msg,f=(Object(c.useHistory)(),Object(a.a)(n,2)),d=(f[0],f[1]),h=Object(a.a)(u,2),p=(h[0],h[1]),v=Object(a.a)(s,2),g=(v[0],v[1],localStorage.getItem("fteachcode")),y=localStorage.getItem("fboard"),b=Object(o.useState)([]),w=Object(a.a)(b,2),E=w[0],x=w[1],O=function(){var e=Object(r.a)(Wm().mark(function e(){var t;return Wm().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(!0),e.next=4,ee.get("/admin/get-panel?fusercode=".concat(g,"&fboard=").concat(y));case 4:if(0!=(t=e.sent).data.status){e.next=9;break}x(t.data.result),e.next=10;break;case 9:throw new Error(t.data.msg);case 10:d(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(0),d(!1),p({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 17:case"end":return e.stop()}},e,null,[[0,13]])}));return function(){return e.apply(this,arguments)}}();Object(o.useEffect)(function(){O()},[]);var j=function(){var e=Object(r.a)(Wm().mark(function e(t,n){var r;return Wm().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(!0),e.next=4,ee.get("/admin/del-panel?frevcode=".concat(t,"&fqpcode=").concat(n));case 4:if(0!=(r=e.sent).data.status){e.next=9;break}O(),e.next=10;break;case 9:throw new Error(r.data.msg);case 10:d(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(0),d(!1),p({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 17:case"end":return e.stop()}},e,null,[[0,13]])}));return function(t,n){return e.apply(this,arguments)}}(),k=function(e){function t(){var e,n;Object(mt.a)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=Object(ft.a)(this,(e=Object(dt.a)(t)).call.apply(e,[this].concat(a)))).state={isOpen:!1},n.handleOpen=function(){n.setState({isOpen:!0})},n.handleClose=function(){n.setState({isOpen:!1})},n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"render",value:function(){var e=this;return i.a.createElement(Bl.a,{trigger:i.a.createElement(ne.a,{color:"red",content:"Remove",basic:!0,size:"mini",icon:"trash",style:{margin:"0px"}}),on:"click",open:this.state.isOpen,onClose:this.handleClose,onOpen:this.handleOpen,position:"bottom right"},i.a.createElement(Bl.a.Header,null,i.a.createElement("span",null,"Delete this Panel?"),i.a.createElement(Ue.a,{className:"close",link:!0,icon:"close",style:{float:"right"},onClick:this.handleClose})),i.a.createElement(Bl.a.Content,null,i.a.createElement("p",null,"Are you sure? Do you want to delete panel (Rev. Code:"," ",this.props.revcode,")"),i.a.createElement(ne.a,{color:"red",onClick:function(){return j(e.props.revcode,e.props.fqpcode)},content:"Delete",icon:"trash"})))}}]),t}(i.a.Component),S=0;return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Create Panel",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black"},"Clear"),i.a.createElement(l.b,{to:"/admin/Detailed/add/1/1/1"},i.a.createElement(ne.a,{floated:"right",size:"mini",color:"grey"},"Add")))),i.a.createElement(te.a.Content,{style:{height:"75vh",overflowY:"scroll"}},i.a.createElement("div",null,E.length>0?i.a.createElement(ce.a,{celled:!0},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Sl. No"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Reviewer Code"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Reviewer Name"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Teachers Count"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"20%"}},"Action"))),i.a.createElement(ce.a.Body,null,E.map(function(e,t){return S+=parseInt(e.fteachcount),i.a.createElement(ce.a.Row,{key:t},i.a.createElement(ce.a.Cell,{textAlign:"center"},t+1),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.frevcode),i.a.createElement(ce.a.Cell,null,e.fteachname),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fteachcount),i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement(l.b,{to:{pathname:"/admin/Detailed/edit/".concat(e.frevcode,"/").concat(e.fboard,"/").concat(e.fqpcode),query:{screen:"edit",ifrevcode:e.frevcode,fboard:e.fboard,fqpcode:e.fqpcode}}},i.a.createElement(ne.a,{content:"Detailed",basic:!0,size:"mini",color:"blue",icon:"print"})),i.a.createElement(k,{revcode:e.frevcode,fqpcode:e.fqpcode})))})),i.a.createElement(ce.a.Footer,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center",colspan:"3"},"Total"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},S.toLocaleString("en-IN")),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"})))):null)))},Xm=n(1539);function Qm(){Qm=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Km=function(e){var t=Object(o.useContext)(m.a),n=t.load,l=t.err_msg,u=t.confirm_err_msg,s=Object(c.useHistory)(),f=Object(a.a)(n,2),d=(f[0],f[1]),h=Object(a.a)(l,2),p=(h[0],h[1]),v=Object(a.a)(u,2),g=(v[0],v[1],localStorage.getItem("fteachcode")),y=localStorage.getItem("fboard"),b=Object(o.useState)([]),w=Object(a.a)(b,2),E=w[0],x=w[1];Object(o.useEffect)(function(){O()},[]);var O=function(){var e=Object(r.a)(Qm().mark(function e(){var t;return Qm().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(!0),e.next=4,ee.get("/admin/get-enable-teach?fusercode=".concat(g,"&fboard=").concat(y));case 4:if(0!=(t=e.sent).data.status){e.next=9;break}x(t.data.result),e.next=10;break;case 9:throw new Error(t.data.msg);case 10:d(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(0),d(!1),p({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 17:case"end":return e.stop()}},e,null,[[0,13]])}));return function(){return e.apply(this,arguments)}}(),j=function(){var e=Object(r.a)(Qm().mark(function e(){var t,n;return Qm().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(!0),t={fteach:E},e.next=5,ee.post("/admin/save-enable-teach?fusercode=".concat(g),t);case 5:if(0!=(n=e.sent).data.status){e.next=11;break}p({type:"OPEN_MSG_BOX",payload:{header:"Success",message:"Teachers Updated..!"}}),s.push("/admin/teachenable/"),e.next=12;break;case 11:throw new Error(n.data.msg);case 12:d(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),d(!1),p({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Enable Treachers",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black"},"Clear"),i.a.createElement(ne.a,{floated:"right",size:"mini",color:"blue",onClick:function(){return j()}},"Save"))),i.a.createElement(te.a.Content,{style:{height:"75vh",overflowY:"scroll"}},i.a.createElement("div",null,E.length>0?i.a.createElement(ce.a,{celled:!0},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Sl. No"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"20%"}},"Teacher Code"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"60%"}},"Teacher Name"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"25%"}},"Suspend"))),i.a.createElement(ce.a.Body,null,E.map(function(e,t){return i.a.createElement(ce.a.Row,{key:t},i.a.createElement(ce.a.Cell,{textAlign:"center"},t+1),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fteachcode),i.a.createElement(ce.a.Cell,{textAlign:"left"},e.fteachname),i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement(Xm.a,{onChange:function(t,n){return function(e,t){var n=E.map(function(n){return t==n.fteachcode&&(n.fsuspend=e?"T":"F"),n});x(n)}(n.checked,e.fteachcode)},value:e.fsuspend,checked:"T"==e.fsuspend})))}))):null)))};function Jm(){Jm=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Zm=function(e){var t=Object(o.useContext)(m.a),n=t.load,l=t.err_msg,u=t.confirm_err_msg,s=t.auth_token,d=(Object(c.useHistory)(),Object(a.a)(n,2)),p=(d[0],d[1]),v=Object(a.a)(l,2),g=(v[0],v[1]),y=Object(a.a)(u,2),b=(y[0],y[1],localStorage.getItem("fteachcode"),localStorage.getItem("fboard"),Object(o.useState)([])),w=Object(a.a)(b,2),E=w[0],x=w[1],O=Object(o.useState)(""),j=Object(a.a)(O,2),k=j[0],S=j[1],_=Object(o.useState)(!1),C=Object(a.a)(_,2),L=C[0],A=C[1],P=localStorage.getItem("univcode"),M=Object(o.useState)(""),N=Object(a.a)(M,2),T=N[0],I=N[1],F=Object(a.a)(s,2),D=(F[0],F[1]);Object(o.useEffect)(function(){},[]);var R=function(){var e=Object(r.a)(Jm().mark(function e(){var t;return Jm().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=k){e.next=3;break}return g({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Teacher Code..!"}}),e.abrupt("return");case 3:return e.prev=3,p(!0),e.next=7,ee.get("/eval/dashboard/get-teach-per-info?fteachcode=".concat(k));case 7:if(0!=(t=e.sent).data.status){e.next=15;break}x(t.data.result),I("https://college.universitysolutions.in/rcub/".concat(t.data.result.fphoto)),A(!0),S(t.data.result.fteachcode),e.next=16;break;case 15:throw new Error(t.data.msg);case 16:p(!1),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(3),p(!1),g({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 23:case"end":return e.stop()}},e,null,[[3,19]])}));return function(){return e.apply(this,arguments)}}(),G=function(){var e=Object(r.a)(Jm().mark(function e(){return Jm().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:A(!1),S("");case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),B=function(){var e=Object(r.a)(Jm().mark(function e(){var t;return Jm().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,p(!0),e.next=4,ee.get("/eval/direct-sign-in-admin?fteachcode=".concat(k));case 4:if(0!=(t=e.sent).data.status){e.next=13;break}D(t.data.token),sessionStorage.setItem("token",t.data.token),sessionStorage.setItem("fteachcode",t.data.fteachcode),sessionStorage.setItem("univcode",P),window.open("/#/dashboard","_blank"),e.next=14;break;case 13:throw new Error(t.data.msg);case 14:p(!1),e.next=21;break;case 17:e.prev=17,e.t0=e.catch(0),p(!1),g({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 21:window.open("/#/direct-sign-in-admin?teachcode="+k,"_blank");case 22:case"end":return e.stop()}},e,null,[[0,17]])}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Treacher Information",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black",onClick:function(){return G()}},"Clear"))),i.a.createElement(te.a.Content,{style:{height:"75vh",overflowY:"scroll"}},i.a.createElement("div",null,i.a.createElement("div",{className:"col-md-3"},i.a.createElement(le.a,null,i.a.createElement(le.a.Field,null,i.a.createElement("label",null,"Teacher Code / MOB"),i.a.createElement(ue.a,{type:"text",placeholder:"Teacher Code / MOB",id:"teachcode",style:{width:"12em"},value:k,onChange:function(e,t){S(t.value.toUpperCase())}})),i.a.createElement(ne.a,{color:"blue",onClick:function(){R()}},"Submit")))),1==L?i.a.createElement("div",null,i.a.createElement(h.a,{style:{marginTop:"2%"}},i.a.createElement(h.a.Column,{width:4},i.a.createElement(f.a,{src:T}),i.a.createElement("center",null,"[",E.fdegndesc,"]")),i.a.createElement(h.a.Column,{width:12},i.a.createElement(ce.a,{basic:"very",celled:!0,collapsing:!0,columns:"19",padded:!0,stackable:!0,style:{width:"100%"}},i.a.createElement(ce.a.Body,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,"Teacher Name"),i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,E.fteachname)),i.a.createElement(ce.a.Cell,null,"Teacher Code"),i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,E.fteachcode))),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,"Qualification"),i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,E.fqual)),i.a.createElement(ce.a.Cell,null,"College Code"),i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,E.fcollcode))),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,"Mobile No."),i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,E.fmobile)),i.a.createElement(ce.a.Cell,null,"Email ID"),i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,E.femail))),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,"Date of birth"),i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,E.fdob)),i.a.createElement(ce.a.Cell,null,"Gender"),i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,"F"==E.fgender?"Female":"Male"))),i.a.createElement(ne.a,{color:"instagram",style:{marginTop:"10%"},onClick:function(){return B()}},i.a.createElement(Ue.a,{name:"external alternate"})," Go to Valuation")))))):null))};function $m(){$m=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var ev=function(e){var t=Object(o.useContext)(m.a),n=t.load,u=t.err_msg,s=Object(c.useHistory)(),f=Object(a.a)(n,2),d=(f[0],f[1]),h=Object(a.a)(u,2),v=(h[0],h[1]),g=localStorage.getItem("fteachcode"),y=Object(o.useState)(""),b=Object(a.a)(y,2),w=b[0],E=b[1],x=Object(o.useState)(""),O=Object(a.a)(x,2),j=O[0],k=O[1],S=Object(o.useState)(""),_=Object(a.a)(S,2),C=_[0],L=_[1],A=Object(o.useState)([]),P=Object(a.a)(A,2),M=P[0],N=P[1],T=Object(o.useState)([]),I=Object(a.a)(T,2),F=I[0],D=I[1],R=Object(o.useState)([]),G=Object(a.a)(R,2),B=G[0],H=G[1],z=Object(o.useState)("0"),V=Object(a.a)(z,2),q=V[0],Y=(V[1],Object(o.useState)("ZZZZZ")),W=Object(a.a)(Y,2),U=W[0],X=(W[1],Object(o.useState)([])),Q=Object(a.a)(X,2),K=Q[0],J=Q[1],Z=function(){var e=Object(r.a)($m().mark(function e(){var t,n;return $m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(!0),e.next=4,ee.get("/admin/get-panelboard?fusercode=".concat(g,"&fqpcodefrm=").concat(q,"&fqpcodeto=").concat(U));case 4:if(0!=(t=e.sent).data.status){e.next=11;break}n=[],t.data.result.map(function(e,t){n.push({key:e.fboard,value:e.fboard,text:e.fboardname})}),N(n),e.next=12;break;case 11:throw new Error(t.data.msg);case 12:d(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),d(!1),v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(){return e.apply(this,arguments)}}(),$=function(){var e=Object(r.a)($m().mark(function e(t){var n,r;return $m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(!0),e.next=4,ee.get("/admin/get-panelqpcode?fusercode=".concat(g,"&brd=").concat(t));case 4:if(0!=(n=e.sent).data.status){e.next=11;break}r=[],n.data.result.map(function(e,t){r.push({key:e.fqpcode,value:e.fqpcode,text:e.fsubname})}),D(r),e.next=12;break;case 11:throw new Error(n.data.msg);case 12:d(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),d(!1),v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(t){return e.apply(this,arguments)}}(),re=function(){var e=Object(r.a)($m().mark(function e(t){var n,r;return $m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(!0),e.next=4,ee.get("/admin/get-panelrev?fusercode=".concat(g,"&brd=").concat(t));case 4:if(0!=(n=e.sent).data.status){e.next=11;break}r=[],n.data.result.map(function(e,t){r.push({key:e.fteachcode,value:e.fteachcode,text:e.fteachcode+"-"+e.fteachname})}),H(r),e.next=12;break;case 11:throw new Error(n.data.msg);case 12:d(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),d(!1),v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(t){return e.apply(this,arguments)}}();Object(o.useEffect)(function(){Z(),"edit"==e.match.params.screen&&ae(e.match.params.fboard,e.match.params.fqpcode,e.match.params.ifrevcode)},[]);var ae=function(){var t=Object(r.a)($m().mark(function t(n,r,a){var o;return $m().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,d(!0),o="","edit"!=e.match.params.screen){t.next=19;break}return t.next=6,$(n);case 6:return t.next=8,re(n);case 8:return t.next=10,E(n);case 10:return t.next=12,k(r);case 12:return t.next=14,L(a);case 14:return t.next=16,ee.get("/admin/get-paneltable?fusercode=".concat(g,"&fboard=").concat(n,"&fqpcode=").concat(r,"&frev=").concat(a,"&screen=").concat(e.match.params.screen));case 16:o=t.sent,t.next=22;break;case 19:return t.next=21,ee.get("/admin/get-paneltable?fusercode=".concat(g,"&fboard=").concat(w,"&fqpcode=").concat(j,"&frev=").concat(C,"&screen=").concat(e.match.params.screen));case 21:o=t.sent;case 22:if(0!=o.data.status){t.next=26;break}J(o.data.result),t.next=27;break;case 26:throw new Error(o.data.msg);case 27:d(!1),t.next=34;break;case 30:t.prev=30,t.t0=t.catch(0),d(!1),v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:t.t0.message}});case 34:case"end":return t.stop()}},t,null,[[0,30]])}));return function(e,n,r){return t.apply(this,arguments)}}(),oe=function(){var t=Object(r.a)($m().mark(function t(){var n,r,a;return $m().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=K.filter(function(e){return"U"===e.fsuspend}),0!=K.filter(function(e){if((""!=e.fmaxscr||null!=e.fmaxscr)&&"F"!=e.fselect)return e.fteachcode}).length){t.next=5;break}return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Teachers to save..!"}}),t.abrupt("return");case 5:if(!(K.filter(function(e){if((""==e.fmaxscr||null==e.fmaxscr)&&"F"!=e.fselect)return e.fteachcode}).length>0)){t.next=9;break}return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter maximum script for selected teachers.."}}),t.abrupt("return");case 9:if(!(K.filter(function(e){if(e.fmaxscr&&"F"==e.fselect)return e.fteachcode}).length>0)){t.next=13;break}return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select teacher for entered scripts..!"}}),t.abrupt("return");case 13:return t.prev=13,d(!0),r={fboard:w,fqpcode:j,frev:C,screen:e.match.params.screen,ftab:K,fdeltab:n},t.next=18,ee.post("/admin/save-paneltab?fusercode=".concat(g),r);case 18:if(0!=(a=t.sent).data.status){t.next=24;break}v({type:"OPEN_MSG_BOX",payload:{header:"Success",message:"Panel Updated..!"}}),s.push("/admin/createpanel/"),t.next=25;break;case 24:throw new Error(a.data.msg);case 25:d(!1),t.next=32;break;case 28:t.prev=28,t.t0=t.catch(13),d(!1),v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:t.t0.message}});case 32:case"end":return t.stop()}},t,null,[[13,28]])}));return function(){return t.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Create Panel",i.a.createElement(l.b,{to:"/admin/createpanel/"},i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black"},"Back")),i.a.createElement(ne.a,{floated:"right",size:"mini",color:"blue",onClick:function(){oe()}},"Save"))),i.a.createElement(te.a.Content,{style:{height:"75vh",overflowY:"scroll"}},i.a.createElement("div",null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"8"},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{placeholder:"Select Board",name:"fboard",value:w,selection:!0,search:!0,options:M,disabled:"edit"==e.match.params.screen,onChange:function(e,t){E(t.value),$(t.value),re(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"8"},i.a.createElement("label",null,"QP Code"),i.a.createElement(p.a,{placeholder:"Select Qp Code",name:"fqpcode",value:j,selection:!0,search:!0,disabled:"edit"==e.match.params.screen,options:F,onChange:function(e,t){k(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"8"},i.a.createElement("label",null,"Reviewer"),i.a.createElement(p.a,{placeholder:"Select Reviewer",name:"frev",value:C,selection:!0,search:!0,disabled:"edit"==e.match.params.screen,options:B,onChange:function(e,t){L(t.value)}}))),i.a.createElement(ne.a,{primary:!0,onClick:function(){ae()}},"View"))),i.a.createElement("div",null,K.length>0?i.a.createElement(ce.a,{celled:!0,style:{marginTop:"1%"}},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Sl. No"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Teacher Code"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Teacher Name"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Max. Scripts"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Select"))),i.a.createElement(ce.a.Body,null,K.map(function(e,t){return i.a.createElement(ce.a.Row,{key:t},i.a.createElement(ce.a.Cell,{textAlign:"center"},t+1),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fteachcode),i.a.createElement(ce.a.Cell,null,e.fteachname),i.a.createElement(ce.a.Cell,{textAlign:"center",style:{width:"10%",padding:"unset"}},i.a.createElement(le.a.Input,{placeholder:"Scripts",value:e.fmaxscr,textAlign:"center",style:{width:"100px"},onChange:function(t,n){!function(e,t){if(!isNaN(Number(e))){var n=K.map(function(n){return t==n.fteachcode?n.fmaxscr=e:n.fmaxscr=n.fmaxscr,n});J(n)}}(n.value,e.fteachcode)}})),i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement(Xm.a,{onChange:function(t,n){return function(e,t){var n=K.map(function(n){return t==n.fteachcode&&(e?(n.fselect="T",n.fsuspend=null):(n.fselect="F",n.fsuspend="U")),n});J(n)}(n.checked,e.fteachcode)},value:e.fselect,checked:"T"==e.fselect})))}))):null)))},tv=n(1206),nv=n.n(tv),rv=n(1182),av=n.n(rv);function ov(){ov=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var iv=function(e){var t=Object(o.useContext)(m.a),n=t.load,l=t.err_msg,u=(Object(c.useHistory)(),Object(a.a)(n,2)),s=(u[0],u[1]),f=Object(a.a)(l,2),d=(f[0],f[1]),h=localStorage.getItem("fteachcode"),v=Object(o.useState)("All"),g=Object(a.a)(v,2),y=g[0],b=g[1],w=Object(o.useState)("All"),E=Object(a.a)(w,2),x=E[0],O=E[1],j=Object(o.useState)(nv()().format("DD/MM/YYYY")),k=Object(a.a)(j,2),S=k[0],_=k[1],C=Object(o.useState)(nv()().format("DD/MM/YYYY")),L=Object(a.a)(C,2),A=L[0],P=L[1],M=Object(o.useState)([]),N=Object(a.a)(M,2),T=N[0],I=N[1],F=Object(o.useState)([{value:"All",text:"All"}]),D=Object(a.a)(F,2),R=D[0],G=D[1],B=Object(o.useState)([]),H=Object(a.a)(B,2),z=H[0],V=H[1];Object(o.useEffect)(function(){q()},[]);var q=function(){var e=Object(r.a)(ov().mark(function e(){var t,n;return ov().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,ee.get("/admin/get-deggrp?fusercode=".concat(h));case 4:if(0!=(t=e.sent).data.status){e.next=11;break}n=[{value:"All",text:"All"}],t.data.result.res.map(function(e){n.push({value:e.fdeggrp,text:"".concat(e.fdescpn)})}),I(n),e.next=12;break;case 11:throw new Error(t.data.msg);case 12:s(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(){return e.apply(this,arguments)}}(),Y=function(){var e=Object(r.a)(ov().mark(function e(t){var n,r;return ov().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"All"!=t){e.next=5;break}return G([{value:"All",text:"All"}]),b("All"),e.abrupt("return");case 5:return s(!0),e.next=8,ee.get("/admin/get-board-dayscripr?fusercode=".concat(h,"&fdeggrp=").concat(t));case 8:if(0!=(n=e.sent).data.status){e.next=15;break}r=[{value:"All",text:"All"}],n.data.result.map(function(e){r.push({value:e.fboard,text:"".concat(e.fboardname)})}),G(r),e.next=16;break;case 15:throw new Error(n.data.msg);case 16:s(!1),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(0),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 23:case"end":return e.stop()}},e,null,[[0,19]])}));return function(t){return e.apply(this,arguments)}}(),W=function(){var e=Object(r.a)(ov().mark(function e(){var t;return ov().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,ee.get("/admin/get-dayscripttab?fusercode=".concat(h,"&fdeggrp=").concat(x,"&fboard=").concat(y,"\n &fdatefrom=").concat(S,"&fdateto=").concat(A));case 4:if(0!=(t=e.sent).data.status){e.next=9;break}V(t.data.result),e.next=10;break;case 9:throw new Error(t.data.msg);case 10:s(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(0),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 17:case"end":return e.stop()}},e,null,[[0,13]])}));return function(){return e.apply(this,arguments)}}(),U={n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"},X=0,Q=0,K=0,J=0;return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Day Wise Valued Script",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black",onClick:function(){V([]),_(nv()().format("DD/MM/YYYY")),P(nv()().format("DD/MM/YYYY"))}},"Clear"))),i.a.createElement(te.a.Content,{style:{height:"75vh",overflowY:"scroll"}},i.a.createElement("div",null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Degree Group"),i.a.createElement(p.a,{placeholder:"Select Degree Group ",name:"fdeggrp",value:x,selection:!0,search:!0,options:T,onChange:function(e,t){O(t.value),Y(t.value)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{placeholder:"Select Board",name:"fboard",value:y,selection:!0,search:!0,options:R,onChange:function(e,t){b(t.value)}}))),i.a.createElement(le.a.Group,null),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Date Range"),i.a.createElement(av.a,{name:"fdatefrom",formatChars:U,value:S,mask:"ed/nm/zyyy",onChange:function(e){_(e.target.value)}})),i.a.createElement(le.a.Field,{width:"4",style:{marginTop:"2%"}},i.a.createElement(av.a,{name:"fdateto",formatChars:U,value:A,mask:"ed/nm/zyyy",onChange:function(e){P(e.target.value)}}))),i.a.createElement(ne.a,{primary:!0,onClick:function(){W()}},"View"))),i.a.createElement("div",null,z.length>0?i.a.createElement(ce.a,{celled:!0,style:{marginTop:"1%"}},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"4%"}},"Sl. No"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Date"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"20%"}},"Teacher Name"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Subject"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Batch No."),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"5%"}},"Status"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"5%"}},"Draft"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"5%"}},"Assigned"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"5%"}},"Final"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"5%"}},"Total Count"))),i.a.createElement(ce.a.Body,null,z.map(function(e,t){return X+=parseInt(e.fdraftfinal),Q+=parseInt(e.fassignfinal),K+=parseInt(e.fsttfinal),J+=parseInt(e.cnt),i.a.createElement(ce.a.Row,{key:t},i.a.createElement(ce.a.Cell,{textAlign:"center"},t+1),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fdate),i.a.createElement(ce.a.Cell,null,e.fteachcode+"-"+e.fteachname),i.a.createElement(ce.a.Cell,null,e.fqpcode),i.a.createElement(ce.a.Cell,null,e.fbatchno),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fstatus),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fdraftfinal),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fassignfinal),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fsttfinal),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.cnt))})),i.a.createElement(ce.a.Footer,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center",colSpan:"6"},"Total"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},X.toLocaleString("en-IN")),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},Q.toLocaleString("en-IN")),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},K.toLocaleString("en-IN")),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},J.toLocaleString("en-IN"))))):null)))};function cv(){cv=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var lv=function(e){var t=Object(o.useContext)(m.a),n=t.load,u=t.err_msg,s=t.confirm_err_msg,f=(Object(c.useHistory)(),Object(a.a)(n,2)),d=(f[0],f[1]),h=Object(a.a)(u,2),p=(h[0],h[1]),v=Object(a.a)(s,2),g=(v[0],v[1],localStorage.getItem("fteachcode")),y=localStorage.getItem("fboard"),b=Object(o.useState)([]),w=Object(a.a)(b,2),E=w[0],x=w[1],O=function(){var e=Object(r.a)(cv().mark(function e(){var t;return cv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(!0),e.next=4,ee.get("/admin/get-panel?fusercode=".concat(g,"&fboard=").concat(y));case 4:if(0!=(t=e.sent).data.status){e.next=9;break}x(t.data.result),e.next=10;break;case 9:throw new Error(t.data.msg);case 10:d(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(0),d(!1),p({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 17:case"end":return e.stop()}},e,null,[[0,13]])}));return function(){return e.apply(this,arguments)}}();Object(o.useEffect)(function(){O()},[]);var j=function(){var e=Object(r.a)(cv().mark(function e(t,n){var r;return cv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(!0),e.next=4,ee.get("/admin/del-panel?frevcode=".concat(t,"&fqpcode=").concat(n));case 4:if(0!=(r=e.sent).data.status){e.next=9;break}O(),e.next=10;break;case 9:throw new Error(r.data.msg);case 10:d(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(0),d(!1),p({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 17:case"end":return e.stop()}},e,null,[[0,13]])}));return function(t,n){return e.apply(this,arguments)}}(),k=function(e){function t(){var e,n;Object(mt.a)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=Object(ft.a)(this,(e=Object(dt.a)(t)).call.apply(e,[this].concat(a)))).state={isOpen:!1},n.handleOpen=function(){n.setState({isOpen:!0})},n.handleClose=function(){n.setState({isOpen:!1})},n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"render",value:function(){var e=this;return i.a.createElement(Bl.a,{trigger:i.a.createElement(ne.a,{color:"red",content:"Remove",basic:!0,size:"mini",icon:"trash",style:{margin:"0px"}}),on:"click",open:this.state.isOpen,onClose:this.handleClose,onOpen:this.handleOpen,position:"bottom right"},i.a.createElement(Bl.a.Header,null,i.a.createElement("span",null,"Delete this Panel?"),i.a.createElement(Ue.a,{className:"close",link:!0,icon:"close",style:{float:"right"},onClick:this.handleClose})),i.a.createElement(Bl.a.Content,null,i.a.createElement("p",null,"Are you sure? Do you want to delete panel (Rev. Code:"," ",this.props.revcode,")"),i.a.createElement(ne.a,{color:"red",onClick:function(){return j(e.props.revcode,e.props.fqpcode)},content:"Delete",icon:"trash"})))}}]),t}(i.a.Component),S=0;return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Qp Create Panel",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black"},"Clear"),i.a.createElement(l.b,{to:"/admin/QpDetailed/add/1/1/1"},i.a.createElement(ne.a,{floated:"right",size:"mini",color:"grey"},"Add")))),i.a.createElement(te.a.Content,{style:{height:"75vh",overflowY:"scroll"}},i.a.createElement("div",null,E.length>0?i.a.createElement(ce.a,{celled:!0},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Sl. No"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Reviewer Code"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Reviewer Name"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Teachers Count"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"20%"}},"Action"))),i.a.createElement(ce.a.Body,null,E.map(function(e,t){return S+=parseInt(e.fteachcount),i.a.createElement(ce.a.Row,{key:t},i.a.createElement(ce.a.Cell,{textAlign:"center"},t+1),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.frevcode),i.a.createElement(ce.a.Cell,null,e.fteachname),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fteachcount),i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement(l.b,{to:{pathname:"/admin/Detailed/edit/".concat(e.frevcode,"/").concat(e.fboard,"/").concat(e.fqpcode),query:{screen:"edit",ifrevcode:e.frevcode,fboard:e.fboard,fqpcode:e.fqpcode}}},i.a.createElement(ne.a,{content:"Detailed",basic:!0,size:"mini",color:"blue",icon:"print"})),i.a.createElement(k,{revcode:e.frevcode,fqpcode:e.fqpcode})))})),i.a.createElement(ce.a.Footer,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center",colspan:"3"},"Total"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},S.toLocaleString("en-IN")),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"})))):null)))};function uv(){uv=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var sv=function(e){var t=Object(o.useContext)(m.a),n=t.load,l=t.err_msg,u=(Object(c.useHistory)(),Object(a.a)(n,2)),s=(u[0],u[1]),f=Object(a.a)(l,2),d=(f[0],f[1]),h=localStorage.getItem("fteachcode"),v=Object(o.useState)(""),g=Object(a.a)(v,2),y=g[0],b=g[1],w=Object(o.useState)(""),E=Object(a.a)(w,2),x=E[0],O=E[1],j=Object(o.useState)(""),k=Object(a.a)(j,2),S=(k[0],k[1],Object(o.useState)([])),_=Object(a.a)(S,2),C=_[0],L=_[1],A=Object(o.useState)([]),P=Object(a.a)(A,2),M=P[0],N=P[1],T=Object(o.useState)([]),I=Object(a.a)(T,2),F=(I[0],I[1],Object(o.useState)("0")),D=Object(a.a)(F,2),R=D[0],G=(D[1],Object(o.useState)("ZZZZZ")),B=Object(a.a)(G,2),H=B[0],z=(B[1],Object(o.useState)([])),V=Object(a.a)(z,2),q=V[0],Y=V[1],W=Object(o.useState)(""),U=Object(a.a)(W,2),X=U[0],Q=U[1],K=Object(o.useState)([]),J=Object(a.a)(K,2),Z=J[0],$=J[1],re=Object(o.useState)([]),ae=Object(a.a)(re,2),oe=ae[0],ie=ae[1],ue=function(){var e=Object(r.a)(uv().mark(function e(){var t,n;return uv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,ee.get("/admin/get-panelboard?fusercode=".concat(h,"&fqpcodefrm=").concat(R,"&fqpcodeto=").concat(H));case 4:if(0!=(t=e.sent).data.status){e.next=11;break}n=[],t.data.result.map(function(e,t){n.push({key:e.fboard,value:e.fboard,text:e.fboardname})}),L(n),e.next=13;break;case 11:throw L([]),new Error(t.data.msg);case 13:s(!1),e.next=20;break;case 16:e.prev=16,e.t0=e.catch(0),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 20:case"end":return e.stop()}},e,null,[[0,16]])}));return function(){return e.apply(this,arguments)}}(),se=function(){var e=Object(r.a)(uv().mark(function e(t){var n,r;return uv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,ee.get("/admin/get-panelqpcode?fusercode=".concat(h,"&brd=").concat(t));case 4:if(0!=(n=e.sent).data.status){e.next=11;break}r=[],n.data.result.map(function(e,t){r.push({key:e.fqpcode,value:e.fqpcode,text:e.fsubname})}),N(r),e.next=14;break;case 11:throw N([]),O(""),new Error(n.data.msg);case 14:s(!1),e.next=21;break;case 17:e.prev=17,e.t0=e.catch(0),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 21:case"end":return e.stop()}},e,null,[[0,17]])}));return function(t){return e.apply(this,arguments)}}(),fe=function(){var e=Object(r.a)(uv().mark(function e(t){var n,r;return uv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,ee.get("/admin/get-valno?fusercode=".concat(h,"&brd=").concat(t));case 4:if(0!=(n=e.sent).data.status){e.next=11;break}r=[],n.data.result.map(function(e,t){r.push({key:e.fvalno,value:e.fvalno,text:e.fvalno})}),$(r),e.next=12;break;case 11:throw new Error(n.data.msg);case 12:s(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(t){return e.apply(this,arguments)}}();Object(o.useEffect)(function(){ue(),"edit"==e.match.params.screen&&de(e.match.params.fboard,e.match.params.fqpcode,e.match.params.ifrevcode)},[]);var de=function(){var t=Object(r.a)(uv().mark(function t(n,r,a){var o,i;return uv().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,s(!0),o="","edit"!=e.match.params.screen){t.next=19;break}return t.next=6,se(n);case 6:return t.next=8,fe(n);case 8:return t.next=10,b(n);case 10:return t.next=12,O(r);case 12:return t.next=14,Q(a);case 14:return t.next=16,ee.get("/admin/get-qppaneltable?fusercode=".concat(h,"&fboard=").concat(n,"&fqpcode=").concat(r,"&fvalno=").concat(a,"&screen=").concat(e.match.params.screen));case 16:o=t.sent,t.next=22;break;case 19:return t.next=21,ee.get("/admin/get-qppaneltable?fusercode=".concat(h,"&fboard=").concat(y,"&fqpcode=").concat(x,"&fvalno=").concat(X,"&screen=").concat(e.match.params.screen));case 21:o=t.sent;case 22:if(0!=o.data.status){t.next=29;break}i=[{key:"select",value:"",text:"-- Select --"}],o.data.result.rev.map(function(e,t){i.push({key:e.fteachcode,value:e.fteachcode,text:e.fteachcode+"-"+e.fteachname})}),ie(i),Y(o.data.result.tab),t.next=31;break;case 29:throw Y([]),new Error(o.data.msg);case 31:s(!1),t.next=38;break;case 34:t.prev=34,t.t0=t.catch(0),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:t.t0.message}});case 38:case"end":return t.stop()}},t,null,[[0,34]])}));return function(e,n,r){return t.apply(this,arguments)}}(),he=function(){Y([]),Q(""),b(""),O(""),ue()},pe=function(){var t=Object(r.a)(uv().mark(function t(){var n,r,a;return uv().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=q.filter(function(e){return"T"===e.fsuspend}),!(q.filter(function(e){if(""!=e.frevcode&&""==e.fmaxscr)return e.fteachcode}).length>0)){t.next=5;break}return d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Maximum scripts ..!"}}),t.abrupt("return");case 5:return t.prev=5,s(!0),r={fboard:y,fqpcode:x,fvalno:X,screen:e.match.params.screen,ftab:q,fdeltab:n},t.next=10,ee.post("/admin/save-qppaneltab?fusercode=".concat(h),r);case 10:if(0!=(a=t.sent).data.status){t.next=16;break}d({type:"OPEN_MSG_BOX",payload:{header:"Success",message:"Panel Updated..!"}}),he(),t.next=17;break;case 16:throw new Error(a.data.msg);case 17:s(!1),t.next=24;break;case 20:t.prev=20,t.t0=t.catch(5),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:t.t0.message}});case 24:case"end":return t.stop()}},t,null,[[5,20]])}));return function(){return t.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"QP Create Panel",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black",onClick:function(){he()}},"Clear"),i.a.createElement(ne.a,{floated:"right",size:"mini",color:"blue",onClick:function(){pe()}},"Save"))),i.a.createElement(te.a.Content,{style:{height:"75vh",overflowY:"scroll"}},i.a.createElement("div",null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"8"},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{placeholder:"Select Board",name:"fboard",value:y,selection:!0,search:!0,options:C,disabled:"edit"==e.match.params.screen,onChange:function(e,t){b(t.value),se(t.value),fe(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"8"},i.a.createElement("label",null,"QP Code"),i.a.createElement(p.a,{placeholder:"Select Qp Code",name:"fqpcode",value:x,selection:!0,search:!0,disabled:"edit"==e.match.params.screen,options:M,onChange:function(e,t){O(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Valuation Number"),i.a.createElement(p.a,{placeholder:"Select Valuation Number",name:"fvalno",value:X,selection:!0,search:!0,disabled:"edit"==e.match.params.screen,options:Z,onChange:function(e,t){Q(t.value)}}))),i.a.createElement(ne.a,{primary:!0,onClick:function(){de()}},"View"))),i.a.createElement("div",null,q.length>0?i.a.createElement(ce.a,{celled:!0,style:{marginTop:"1%"}},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Sl. No"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Teacher Code"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Teacher Name"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Reviewer"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Max. Scripts"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Suspend"))),i.a.createElement(ce.a.Body,null,q.map(function(e,t){return i.a.createElement(ce.a.Row,{key:t},i.a.createElement(ce.a.Cell,{textAlign:"center"},t+1),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fteachcode),i.a.createElement(ce.a.Cell,null,e.fteachname),i.a.createElement(ce.a.Cell,null,i.a.createElement(p.a,{placeholder:"Reviewer",name:"freview",value:e.frevcode,selection:!0,search:!0,style:{width:"100%"},options:oe,onChange:function(e,n){!function(e,t){var n=q.map(function(n,r){return r===t&&(n.frevcode=e),n});Y(n)}(n.value,t)}})),i.a.createElement(ce.a.Cell,{textAlign:"center",style:{width:"10%",padding:"unset"}},i.a.createElement(le.a.Input,{placeholder:"Scripts",value:e.fmaxscr,textAlign:"center",style:{width:"100px"},onChange:function(e,n){var r=q.map(function(e,r){return t===r&&(e.fmaxscr=n.value),e});Y(r)}})),i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement(Xm.a,{onChange:function(t,n){return function(e,t){var n=q.map(function(n){return t==n.fteachcode&&(e?(n.fsuspend="T",n.fselect=null):(n.fsuspend="F",n.fselect="U")),n});Y(n)}(n.checked,e.fteachcode)},value:e.fsuspend,checked:"T"==e.fsuspend})))}))):null)))};function fv(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return dv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dv(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw o}}}}function dv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hv(){hv=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var pv=function(e){var t=Object(o.useContext)(m.a),n=t.load,u=t.err_msg,s=t.confirm_err_msg,f=Object(c.useHistory)(),d=Object(a.a)(n,2),h=(d[0],d[1]),p=Object(a.a)(u,2),v=(p[0],p[1]),g=Object(a.a)(s,2),y=(g[0],g[1],localStorage.getItem("fteachcode")),b=localStorage.getItem("fboard"),w=Object(o.useState)([]),E=Object(a.a)(w,2),x=E[0],O=E[1],j=Object(o.useState)([]),k=Object(a.a)(j,2),S=k[0],_=k[1];Object(o.useEffect)(function(){C()},[]);var C=function(){var e=Object(r.a)(hv().mark(function e(){var t;return hv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,h(!0),e.next=4,ee.get("/admin/get-val-cntr?fusercode=".concat(y,"&fboard=").concat(b));case 4:if(0!=(t=e.sent).data.status){e.next=9;break}O(t.data.result),e.next=10;break;case 9:throw new Error(t.data.msg);case 10:h(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(0),h(!1),v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 17:case"end":return e.stop()}},e,null,[[0,13]])}));return function(){return e.apply(this,arguments)}}(),L=function(e){function t(){var e,n;Object(mt.a)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=Object(ft.a)(this,(e=Object(dt.a)(t)).call.apply(e,[this].concat(a)))).state={isOpen:!1},n.handleOpen=function(){n.setState({isOpen:!0})},n.handleClose=function(){n.setState({isOpen:!1})},n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"render",value:function(){var e=this;return i.a.createElement(Bl.a,{trigger:i.a.createElement(ne.a,{icon:"trash",color:"red",className:"btn btn-outline-danger btn-sm"}),on:"click",open:this.state.isOpen,onClose:this.handleClose,onOpen:this.handleOpen,position:"bottom right"},i.a.createElement(Bl.a.Header,null,i.a.createElement("span",null,"Delete this Val Center?"),i.a.createElement(Ue.a,{className:"close",link:!0,icon:"close",style:{float:"right"},onClick:this.handleClose})),i.a.createElement(Bl.a.Content,null,i.a.createElement("p",null,"Are you sure? Do you want to delete Valuation Center (Valcntr:"," ",this.props.fcntrcode,")"),i.a.createElement(ne.a,{color:"red",onClick:function(){return function(e,t){var n=x,r=x.filter(function(t,n){if(n===e)return t});_([r].concat(Object(oe.a)(S))),n.splice(e,1),O(Object(oe.a)(n))}(e.props.findex,e.props.fcntrcode)},content:"Delete",icon:"trash"})))}}]),t}(i.a.Component),A=function(e,t,n){"fcntrcode"==e&&x.filter(function(e,t){n!==e.fcntrcode||v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Center Code already present..!"}})});var r=x.map(function(r,a){return a===t?(r[e]=n,r.fupd="T",r):r});O(Object(oe.a)(r))},P=function(){var e=Object(r.a)(hv().mark(function e(){var t,n,r,a,o,i,c,l;return hv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t=x.filter(function(e){return"T"==e.find&&"T"==e.fupd}),n=x.filter(function(e){return"F"==e.find&&"T"==e.fupd}),r=[],a=fv(S);try{for(a.s();!(o=a.n()).done;)"T"==(i=o.value)[0].find&&r.push(i[0])}catch(u){a.e(u)}finally{a.f()}return c={updcntr:t,insertcntr:n,delcntr:r},e.next=9,ee.post("/admin/save-val-cntr?fusercode=".concat(y),c);case 9:if(0!=(l=e.sent).data.status){e.next=16;break}v({type:"OPEN_MSG_BOX",payload:{header:"Success",message:"Updated Successfully..!"}}),f.push("/admin/valcntr/"),C(),e.next=17;break;case 16:throw new Error(l.data.msg);case 17:h(!1),e.next=24;break;case 20:e.prev=20,e.t0=e.catch(0),h(!1),v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 24:case"end":return e.stop()}},e,null,[[0,20]])}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Define Valuation Center",i.a.createElement(l.b,{to:"/admin/"},i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black"},"EXIT")),i.a.createElement(ne.a,{floated:"right",size:"mini",color:"blue",onClick:function(){return P()}},"SAVE"),i.a.createElement(ne.a,{floated:"right",size:"mini",color:"green",onClick:function(){return function(){var e=x.length-1,t=x[e];if(x.length>0&&(""===t.fcntrcode||""===t.fcntrname))v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Last row is empty..!"}});else{var n=x;n.push({fcntrcode:"",fcntrname:"",fip:"",fsuspend:"",fdeleted:"",find:"F",fupd:"T"}),O(Object(oe.a)(n))}}()}},"ADD"))),i.a.createElement(te.a.Content,{style:{height:"75vh",overflowY:"scroll"}},i.a.createElement("div",null,x.length>0?i.a.createElement(ce.a,{celled:!0},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Sl. No"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Center Code"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"65%"}},"Center Name"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"20%"}},"IP Address"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"25%"}},"Suspend"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"25%"}},"Delete"))),i.a.createElement(ce.a.Body,null,x.map(function(e,t){return i.a.createElement(ce.a.Row,{key:t},i.a.createElement(ce.a.Cell,{textAlign:"center"},t+1),i.a.createElement(ce.a.Cell,{textAlign:"center",style:{padding:"0px"}},i.a.createElement(ue.a,{type:"text",name:"fcntrcode",style:{width:"7em",border:"0px"},value:e.fcntrcode,disabled:"T"==e.find||""!=e.fcntrname,onChange:function(e,n){A("fcntrcode",t,n.value)},className:"form-control valcntr"})),i.a.createElement(ce.a.Cell,{textAlign:"center",style:{padding:"0px"}},i.a.createElement(ue.a,{type:"text",name:"fcntrname",style:{width:"100%",border:"0px"},value:e.fcntrname,onChange:function(e,n){A("fcntrname",t,n.value)},className:"form-control valcntr"})),i.a.createElement(ce.a.Cell,{textAlign:"center",style:{padding:"0px"}},i.a.createElement(ue.a,{type:"text",name:"fip",style:{width:"100%",border:"0px"},value:e.fip,onBlur:function(e,t){e.target.value},onChange:function(e,n){A("fip",t,n.value)},className:"form-control valcntr"})),i.a.createElement(ce.a.Cell,{textAlign:"center",style:{padding:"0px"}},i.a.createElement(Xm.a,{onChange:function(e,n){return function(e,t){var n=x.map(function(n,r){return t==r&&(e?(n.fsuspend="T",n.fupd="T"):n.fsuspend="F"),n});O(n)}(n.checked,t)},value:e.fsuspend,checked:"T"==e.fsuspend})),i.a.createElement(ce.a.Cell,{textAlign:"center",style:{padding:"0px"}},i.a.createElement(L,{fcntrcode:e.fcntrcode,findex:t})))}))):null)))},mv=n(1391),vv=n(1392);function gv(){gv=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var yv=function(e){var t=Object(mv.useParams)(),n=Object(vv.useHistory)(),c=t.fteachcode,u=t.mobile,s=Object(o.useContext)(m.a),f=s.load,d=s.err_msg,h=Object(a.a)(f,2),v=(h[0],h[1]),g=Object(a.a)(d,2),y=(g[0],g[1]),b=localStorage.getItem("fteachcode"),w=Object(o.useState)([]),E=Object(a.a)(w,2),x=E[0],O=E[1],j=Object(o.useState)(""),k=Object(a.a)(j,2),S=k[0],_=k[1],C=Object(o.useState)(""),L=Object(a.a)(C,2),A=L[0],P=L[1],M=Object(o.useState)(""),N=Object(a.a)(M,2),T=N[0],I=N[1],F=Object(o.useState)(""),D=Object(a.a)(F,2),R=D[0],G=D[1],B=Object(o.useState)(""),H=Object(a.a)(B,2),z=H[0],V=H[1],q=Object(o.useState)(""),Y=Object(a.a)(q,2),W=Y[0],U=Y[1],X=Object(o.useState)([]),J=Object(a.a)(X,2),Z=J[0],$=J[1],re=Object(o.useState)(""),ae=Object(a.a)(re,2),oe=ae[0],ie=ae[1],se=Object(o.useState)(""),fe=Object(a.a)(se,2),de=fe[0],he=fe[1],pe=Object(o.useState)(""),me=Object(a.a)(pe,2),ve=me[0],ge=me[1],ye=Object(o.useState)(""),be=Object(a.a)(ye,2),we=be[0],Ee=be[1],xe=Object(o.useState)(""),Oe=Object(a.a)(xe,2),je=Oe[0],ke=Oe[1],Se=Object(o.useState)(!1),_e=Object(a.a)(Se,2),Ce=_e[0],Le=_e[1],Ae=Object(o.useState)(""),Pe=Object(a.a)(Ae,2),Me=Pe[0],Ne=Pe[1],Te=Object(o.useState)(""),Ie=Object(a.a)(Te,2),Fe=Ie[0],De=Ie[1],Re=Object(o.useState)(""),Ge=Object(a.a)(Re,2),Be=Ge[0],He=Ge[1],ze=Object(o.useState)(!1),Ve=Object(a.a)(ze,2),qe=Ve[0],Ye=Ve[1];Object(o.useEffect)(function(){void 0!==c&&(We(),Ye(!0))},[c]);var We=function(){var e=Object(r.a)(gv().mark(function e(){return gv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,v(!0),e.next=4,ee.get("/admin/get-teach-det?fteachcode=".concat(c,"&mobileno=").concat(u)).then(function(e){if(0===e.data.status){var t=e.data.result;_(t.fteachcode),P(t.fteachname),I(t.fdob),G(t.fmobile),V(t.femail),U(t.fcollcode),ie(t.faccno),he(t.fifsccode),ge(t.fbankname),Ee(t.faadharno),ke(t.fpanno),void 0!==e.data.center?He(e.data.center.FCNTRCODE):He("")}}).catch(function(e){v(!1),y({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e}})});case 4:e.next=10;break;case 6:e.prev=6,e.t0=e.catch(0),v(!1),y({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 10:case"end":return e.stop()}},e,null,[[0,6]])}));return function(){return e.apply(this,arguments)}}(),Ue=function(){var e=Object(r.a)(gv().mark(function e(){var t,n;return gv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,v(!0),e.next=4,ee.get("/admin/get-create-teach-college?fusercode=".concat(b));case 4:if(0!=(t=e.sent).data.status){e.next=11;break}n=[],t.data.result.map(function(e){n.push({value:e.fcollcode,text:"".concat(e.fcollname)})}),$(n),e.next=12;break;case 11:throw new Error(t.data.msg);case 12:v(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),v(!1),y({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(){return e.apply(this,arguments)}}();Object(o.useEffect)(function(){Ue(),Xe()},[]);var Xe=function(){var e=Object(r.a)(gv().mark(function e(){return gv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Q.a.get(K.b+"a=tdvs_getCenters&univcode="+localStorage.getItem("univcode")).then(function(e){if(0!==e.data.error_code)return y({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void v(!1);De(e.data.data)});case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),v(!1);case 8:v(!1);case 9:case"end":return e.stop()}},e,null,[[0,5]])}));return function(){return e.apply(this,arguments)}}(),Qe=function(){_(""),P(""),I(""),G(""),V(""),U(""),ie(""),he(""),ge(""),Ee(""),ke(""),He(""),Ye(!1)},Ke=function(){var e=Object(r.a)(gv().mark(function e(){var t,r;return gv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==R){e.next=4;break}return y({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Mobile No"}}),v(!1),e.abrupt("return");case 4:if(!(R.length<10)){e.next=8;break}return y({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter 10 digits Mobile No"}}),v(!1),e.abrupt("return");case 8:if(""!==z){e.next=12;break}return y({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Email Id"}}),v(!1),e.abrupt("return");case 12:return e.prev=12,v(!0),t={fcollege:W,fteachcode:S,fteachname:A,fmobileno:R,femail:z,fdob:T,faccno:oe,fifsc:de,fbankname:ve,fadhaarno:we,fpanno:je,pwd:Ce?Me:"",valcntr:Be,status:qe},e.next=17,ee.post("/admin/save-createteach?fusercode=".concat(b),t);case 17:if(0!=(r=e.sent).data.status){e.next=23;break}qe?n.push("/admin/masters/viewTeacherDet"):y({type:"OPEN_MSG_BOX",payload:{header:"Success",message:r.data.msg}}),Qe(),e.next=24;break;case 23:throw new Error(r.data.msg);case 24:v(!1),e.next=31;break;case 27:e.prev=27,e.t0=e.catch(12),v(!1),y({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 31:case"end":return e.stop()}},e,null,[[12,27]])}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Create Teacher",i.a.createElement(l.b,{to:"/admin/createteach/"},i.a.createElement(ne.a,{floated:"right",size:"mini",color:"orange",onClick:function(){Qe()}},"Clear")),i.a.createElement(ne.a,{floated:"right",size:"mini",color:"green",onClick:function(){Ke()}},"Save"),i.a.createElement(l.b,{to:"/admin/masters/viewTeacherDet"},i.a.createElement(ne.a,{floated:"right",size:"mini",color:"blue"},"View")))),i.a.createElement(te.a.Content,{style:{height:"75vh",overflowY:"scroll"}},i.a.createElement("div",null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Teacher Code"),i.a.createElement(le.a.Input,{disabled:qe,placeholder:"Teacher code",name:"teachercode",value:S,onChange:function(e,t){return _(t.value.toUpperCase())}})),i.a.createElement(le.a.Field,{width:"8"},i.a.createElement("label",null,"Teacher Name"),i.a.createElement(ue.a,{type:"text",placeholder:"Teacher Name",id:"teachname",value:A,onChange:function(e,t){P(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Mobile No."),i.a.createElement(ue.a,{type:"text",placeholder:"Mobile No.",id:"mobileno",value:R,maxLength:10,onChange:function(e,t){G(t.value)}})),i.a.createElement(le.a.Field,{width:"8"},i.a.createElement("label",null,"E-mail Id"),i.a.createElement(ue.a,{type:"text",placeholder:"E-mail id",id:"email",value:z,onChange:function(e,t){V(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Date of Birth"),i.a.createElement(av.a,{name:"fdob",formatChars:{n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"},placeholder:"Date of Birth",value:T,mask:"ed/nm/zyyy",onChange:function(e){I(e.target.value)}})),i.a.createElement(le.a.Field,{width:"8"},i.a.createElement("label",null,"College"),i.a.createElement(p.a,{placeholder:"Select College",name:"fcollege",value:W,selection:!0,search:!0,options:Z,disabled:"edit"==e.match.params.screen,onChange:function(e,t){U(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Center Code"),i.a.createElement(p.a,{search:!0,selection:!0,placeholder:"centers",name:"center",value:Be,options:Fe,onChange:function(e,t){return He(t.value)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Adhaar No."),i.a.createElement(ue.a,{type:"text",placeholder:"Adhaar No.",id:"fadhaarno",value:we,maxlength:"10",onChange:function(e,t){Ee(t.value)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Pan No."),i.a.createElement(ue.a,{type:"text",placeholder:"Pan No.",id:"fpanno",value:je,onChange:function(e,t){ke(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Account Number"),i.a.createElement(ue.a,{type:"text",placeholder:"Account Number",id:"faccno",value:oe,maxlength:"10",onChange:function(e,t){ie(t.value)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"IFSC Code"),i.a.createElement(ue.a,{type:"text",placeholder:"IFSC Code",id:"fifsc",value:de,maxlength:"10",onChange:function(e,t){he(t.value)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Bank Name"),i.a.createElement(ue.a,{type:"text",placeholder:"Bank Name",id:"fbankname",value:ve,onChange:function(e,t){ge(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("div",{style:{display:"flex",gap:"10px",position:"relative",top:"20px"}},i.a.createElement("label",null,"Enalble Direct Login"),i.a.createElement("input",{type:"checkbox",onChange:function(e){return function(e){e.target.checked?Le(!0):Le(!1)}(e)}}))),Ce&&i.a.createElement(le.a.Field,{width:"10"},i.a.createElement("label",null,"Password"),i.a.createElement(ue.a,{type:"text",placeholder:"Password",id:"pwd",value:Me,onChange:function(e,t){Ne(t.value)}}))))),i.a.createElement("div",null,x.length>0?i.a.createElement(ce.a,{celled:!0,style:{marginTop:"1%"}},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Sl. No"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Teacher Code"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Teacher Name"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Reviewer"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Max. Scripts"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Suspend"))),i.a.createElement(ce.a.Body,null,x.map(function(e,t){return i.a.createElement(ce.a.Row,{key:t},i.a.createElement(ce.a.Cell,{textAlign:"center"},t+1),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fteachcode),i.a.createElement(ce.a.Cell,null,e.fteachname),i.a.createElement(ce.a.Cell,null,i.a.createElement(p.a,{placeholder:"Reviewer",name:"freview",value:e.frevcode,selection:!0,search:!0,style:{width:"100%"},onChange:function(e,t){}})),i.a.createElement(ce.a.Cell,{textAlign:"center",style:{width:"10%",padding:"unset"}},i.a.createElement(le.a.Input,{placeholder:"Scripts",value:e.fmaxscr,textAlign:"center",style:{width:"100px"},onChange:function(e,n){var r=x.map(function(e,r){return t===r&&(e.fmaxscr=n.value),e});O(r)}})),i.a.createElement(ce.a.Cell,{textAlign:"center"}))}))):null)))},bv=n(1365);function wv(){wv=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Ev=function(e){var t=Object(o.useContext)(m.a),n=t.load,u=t.err_msg,s=Object(c.useHistory)(),f=Object(a.a)(n,2),d=(f[0],f[1]),h=Object(a.a)(u,2),v=(h[0],h[1]),g=localStorage.getItem("fteachcode"),y=Object(o.useState)(""),b=Object(a.a)(y,2),w=b[0],E=b[1],x=Object(o.useState)(""),O=Object(a.a)(x,2),j=O[0],k=O[1],S=Object(o.useState)(""),_=Object(a.a)(S,2),C=_[0],L=_[1],A=Object(o.useState)(""),P=Object(a.a)(A,2),M=P[0],N=P[1],T=Object(o.useState)(""),I=Object(a.a)(T,2),F=I[0],D=I[1],R=Object(o.useState)(""),G=Object(a.a)(R,2),B=G[0],H=G[1],z=Object(o.useState)(""),V=Object(a.a)(z,2),q=V[0],Y=V[1],W=Object(o.useState)(""),U=Object(a.a)(W,2),X=U[0],J=U[1],Z=Object(o.useState)(""),$=Object(a.a)(Z,2),re=$[0],ae=$[1],oe=Object(o.useState)(""),ie=Object(a.a)(oe,2),ce=(ie[0],ie[1],Object(o.useState)("")),se=Object(a.a)(ce,2),fe=se[0],de=se[1],he=Object(o.useState)(""),pe=Object(a.a)(he,2),me=pe[0],ve=pe[1],ge=Object(o.useState)(!1),ye=Object(a.a)(ge,2),be=ye[0],we=ye[1],Ee=Object(o.useState)(nv()().format("DD/MM/YYYY")),xe=Object(a.a)(Ee,2),Oe=xe[0],je=xe[1],ke=Object(o.useState)(nv()().format("DD/MM/YYYY")),Se=Object(a.a)(ke,2),_e=Se[0],Ce=Se[1],Le=Object(o.useState)(!0),Ae=Object(a.a)(Le,2),Pe=Ae[0],Me=Ae[1],Ne=Object(o.useState)(!1),Te=Object(a.a)(Ne,2),Ie=Te[0],Fe=Te[1],De=Object(o.useState)(!1),Re=Object(a.a)(De,2),Ge=Re[0],Be=Re[1],He=Object(o.useState)(!1),ze=Object(a.a)(He,2),Ve=ze[0],qe=ze[1],Ye=Object(o.useState)("newent"),We=Object(a.a)(Ye,2),Ue=We[0],Xe=We[1],Qe=Object(o.useState)([{key:"1",value:"1",text:"1"},{key:"2",value:"2",text:"2"},{key:"3",value:"3",text:"3"},{key:"4",value:"4",text:"4"},{key:"5",value:"5",text:"5"},{key:"R",value:"R",text:"R"},{key:"D",value:"D",text:"D"}]),Ke=Object(a.a)(Qe,2),Je=Ke[0],Ze=(Ke[1],Object(o.useState)(!1)),$e=Object(a.a)(Ze,2),et=$e[0],tt=$e[1],nt=Object(o.useState)(""),rt=Object(a.a)(nt,2),at=rt[0],ot=rt[1],it=Object(o.useState)(""),ct=Object(a.a)(it,2),lt=ct[0],ut=ct[1],st=Object(o.useState)(""),ft=Object(a.a)(st,2),dt=ft[0],ht=ft[1],pt=Object(o.useState)(""),mt=Object(a.a)(pt,2),vt=mt[0],gt=mt[1],yt=Object(o.useState)(""),bt=Object(a.a)(yt,2),wt=bt[0],Et=bt[1],xt=Object(o.useState)(""),Ot=Object(a.a)(xt,2),jt=Ot[0],kt=Ot[1],St=Object(o.useState)(""),_t=Object(a.a)(St,2),Ct=_t[0],Lt=_t[1],At=function(){var e=Object(r.a)(wv().mark(function e(){var t,n,r,a,o;return wv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(!0),e.next=4,ee.get("/admin/get-direct-load?fusercode=".concat(g));case 4:if(0!=(t=e.sent).data.status){e.next=20;break}n=[],t.data.result.qp.map(function(e){n.push({value:e.fqpcode,text:"".concat(e.fsubname)})}),k(n),r=[],t.data.result.teach.map(function(e){r.push({value:e.fteachcode,text:"".concat(e.fteachname)})}),N(r),a=[{key:"SEL",value:"",text:"--Select--"}],t.data.result.rev.map(function(e){a.push({value:e.fteachcode,text:"".concat(e.fteachname)})}),H(a),o=[{key:"SEL",value:"",text:"--Select--"}],t.data.result.board.map(function(e){o.push({value:e.fboard,text:"".concat(e.fboardname)})}),J(o),e.next=21;break;case 20:throw new Error(t.data.msg);case 21:d(!1),e.next=28;break;case 24:e.prev=24,e.t0=e.catch(0),d(!1),v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 28:case"end":return e.stop()}},e,null,[[0,24]])}));return function(){return e.apply(this,arguments)}}();Object(o.useEffect)(function(){if(At(),"edit"==e.match.params.screen){d(!0);var t=e.match.params.dtt.split("*");E(t[0]),L(t[1]),D(t[2]),ae(t[3]),de(t[4]),ve(t[5]),Xe(t[6]),Y(t[7]),we(!0),Be(!0),Me(!1),Fe(!1),je(nv()(t[8]).format("DD/MM-YYYY")),Ce(nv()(t[9]).format("DD/MM-YYYY")),It(t[6],t[0],t[1])}},[]);var Pt=function(){E(""),L(""),D(""),ae(""),Y(""),Me(!0),Fe(!1),de(""),ve(""),Xe(""),we(!1),je(nv()().format("DD/MM/YYYY")),Ce(nv()().format("DD/MM/YYYY")),s.push("/admin/directmasrev/1/1/"),Be(!1),qe(!1),ot(""),ut(""),ht(""),gt(""),Et(""),kt(""),Lt("")},Mt=function(){var e=Object(r.a)(wv().mark(function e(t){var n;return wv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return E(""),L(""),D(""),ae(""),Me(!0),Fe(!1),de(""),ve(""),Xe(""),we(!1),je(nv()().format("DD/MM/YYYY")),Ce(nv()().format("DD/MM/YYYY")),Be(!1),qe(!1),ot(""),ut(""),ht(""),gt(""),Et(""),kt(""),Lt(""),e.prev=21,d(!0),e.next=25,ee.get("/admin/get-year-examtype?fusercode=".concat(g,"&fboard=").concat(t));case 25:if(0!=(n=e.sent).data.status){e.next=31;break}n.data.result.map(function(e){de(e.fyear),ve(e.fexamtype)}),e.next=32;break;case 31:throw new Error(n.data.msg);case 32:d(!1),e.next=39;break;case 35:e.prev=35,e.t0=e.catch(21),d(!1),v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 39:case"end":return e.stop()}},e,null,[[21,35]])}));return function(t){return e.apply(this,arguments)}}(),Nt=function(){var e=Object(r.a)(wv().mark(function e(t){var n;return wv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return L(""),D(""),ae(""),Me(!0),Fe(!1),Xe(""),we(!1),je(nv()().format("DD/MM/YYYY")),Ce(nv()().format("DD/MM/YYYY")),Be(!1),qe(!1),ot(""),ut(""),ht(""),gt(""),Et(""),kt(""),Lt(""),e.prev=18,d(!0),e.next=22,ee.get("/admin/get-qp-filedata?fusercode=".concat(g,"&fqpcode=").concat(t));case 22:if(0!=(n=e.sent).data.status){e.next=28;break}Be(!1),qe(!1),e.next=31;break;case 28:throw Be(!0),qe(!0),new Error(n.data.msg);case 31:d(!1),e.next=38;break;case 34:e.prev=34,e.t0=e.catch(18),d(!1),v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 38:case"end":return e.stop()}},e,null,[[18,34]])}));return function(t){return e.apply(this,arguments)}}(),Tt=function(){var e=Object(r.a)(wv().mark(function e(){var t,n,r,a,o,i,c,l,u;return wv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=q){e.next=4;break}return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Board"}}),d(!1),e.abrupt("return");case 4:if(""!=w){e.next=8;break}return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select QP Code"}}),d(!1),e.abrupt("return");case 8:if(""!=C){e.next=12;break}return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Teacher Code"}}),d(!1),e.abrupt("return");case 12:if(""!=re){e.next=16;break}return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Max Scripts"}}),d(!1),e.abrupt("return");case 16:if(""!=Ue){e.next=20;break}return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Valuation Number"}}),d(!1),e.abrupt("return");case 20:if("050"==localStorage.getItem("univcode")||""!=F){e.next=25;break}if("0"!=dt){e.next=25;break}return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Valuation Completed for QP Code:"+w}}),d(!1),e.abrupt("return");case 25:if("050"==localStorage.getItem("univcode")||""!=F){e.next=30;break}if("0"!=vt){e.next=30;break}return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Teacher "+C+" is not eligible for this QP Code "+w+" and Val No. "+Ue}}),d(!1),e.abrupt("return");case 30:if("050"==localStorage.getItem("univcode")||""!=F){e.next=34;break}if(!(parseInt(Ct)>=parseInt(re))){e.next=34;break}return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Max Scripts should be more than valued scripts. valued scripts: "+Ct}}),e.abrupt("return");case 34:return t=new Date,n=nv()(t).format("YYYY-MM-DD HH:mm:ss"),r="",1==Pe?r="T":0==Pe&&(r="F"),a="",1==Ie?a="T":0==Ie&&(a="F"),e.prev=40,d(!0),e.next=44,ee.get("/admin/pattern-check?fusercode=".concat(g,"&fqpcode=").concat(w));case 44:if(o=e.sent,i=o.data.result,c="",i.map(function(e){c=e.ffreeze}),"T"!=c){e.next=63;break}return l={fboard:q,fqpcode:w,fteachcode:C,frevcode:F,fmaxscr:re,fyear:fe,fexamtype:me,fvalno:Ue,flastdate:Oe,fstartdate:_e,fsend:r,frsend:a,currdate:n,fusercode:g},e.next=52,ee.post("/admin/save-directmaserv?fusercode=".concat(g),l);case 52:if(u=e.sent,d(!1),0!=u.data.status){e.next=59;break}v({type:"OPEN_MSG_BOX",payload:{header:"Success",message:"Updated Successfully..!"}}),Pt(),e.next=61;break;case 59:throw d(!1),new Error(u.data.msg);case 61:e.next=65;break;case 63:d(!1),tt(!0);case 65:e.next=71;break;case 67:e.prev=67,e.t0=e.catch(40),d(!1),v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 71:case"end":return e.stop()}},e,null,[[40,67]])}));return function(){return e.apply(this,arguments)}}(),It=function(){var t=Object(r.a)(wv().mark(function t(n,r,a){var o,i;return wv().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(d(!0),o="",i="","edit"==e.match.params.screen){t.next=21;break}if(""!=q){t.next=8;break}return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Board"}}),d(!1),t.abrupt("return");case 8:if(""!=w){t.next=12;break}return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select QP Code"}}),d(!1),t.abrupt("return");case 12:if(""!=C){t.next=16;break}return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Teacher Code"}}),d(!1),t.abrupt("return");case 16:Xe(n),o=w,i=C,t.next=23;break;case 21:o=r,i=a;case 23:return t.next=25,Q.a.get(K.b+"a=getQPTeachData&univcode="+localStorage.getItem("univcode")+"&fqpcode="+o+"&fteach="+i+"&fvalno="+n).then(function(e){if(d(!0),0!==e.data.error_code)return ot(""),ut(""),ht(""),gt(""),Et(""),kt(""),Lt(""),ae(""),d(!1),void v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.msg}});var t=parseInt(e.data.data.teachpev)+parseInt(e.data.data.teachbal);ot(e.data.data.totcnt),ut(e.data.data.valdone),ht(e.data.data.valbal),gt(e.data.data.teachbal),Et(e.data.data.valdraft),kt(e.data.data.valassig),Lt(e.data.data.teachpev),ae(t),d(!1)});case 25:case"end":return t.stop()}},t)}));return function(e,n,r){return t.apply(this,arguments)}}(),Ft=function(){var e=Object(r.a)(wv().mark(function e(){var t,n,r,a,o,i;return wv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return tt(!1),d(!0),e.prev=2,t="",n="",1==Pe?t="T":0==Pe&&(t="F"),1==Ie?n="T":0==Ie&&(n="F"),r=new Date,a=nv()(r).format("YYYY-MM-DD HH:mm:ss"),o={fboard:q,fqpcode:w,fteachcode:C,frevcode:F,fmaxscr:re,fyear:fe,fexamtype:me,fvalno:Ue,flastdate:Oe,fstartdate:_e,fsend:t,frsend:n,currdate:a,fusercode:g},e.next=12,ee.post("/admin/save-directmaserv?fusercode=".concat(g),o);case 12:if(i=e.sent,d(!1),0!=i.data.status){e.next=18;break}v({type:"OPEN_MSG_BOX",payload:{header:"Success",message:"Updated Successfully..!"}}),e.next=19;break;case 18:throw new Error(i.data.msg);case 19:Pt(),e.next=26;break;case 22:e.prev=22,e.t0=e.catch(2),d(!1),v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 26:case"end":return e.stop()}},e,null,[[2,22]])}));return function(){return e.apply(this,arguments)}}(),Dt={n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"};return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Create Direct Panel",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black",onClick:function(){Pt()}},"Clear"),i.a.createElement(l.b,{to:"/admin/masrevview"},i.a.createElement(ne.a,{floated:"right",size:"mini",color:"green"},"View")),i.a.createElement(ne.a,{floated:"right",size:"mini",color:"blue",onClick:function(){Tt()}},"Save"),i.a.createElement(bv.a,{open:et,content:"Pattern is not freezed..! do you want save.?",onCancel:function(){tt(!1)},onConfirm:function(){return Ft()},cancelButton:"No",confirmButton:"Yes",style:{height:"140px",width:"400px"}}))),i.a.createElement(te.a.Content,{style:{height:"75vh",overflowY:"scroll"}},i.a.createElement("div",null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"6"},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{placeholder:"Select board",name:"fboard",value:q,selection:!0,search:!0,options:X,onChange:function(e,t){Mt(t.value),Y(t.value)}})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Year"),i.a.createElement(ue.a,{type:"text",placeholder:"Year",id:"fyear",value:fe})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Exam type"),i.a.createElement(ue.a,{type:"text",placeholder:"Examtype",id:"fexamtype",value:me}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"6"},i.a.createElement("label",null,"QP code"),i.a.createElement(p.a,{placeholder:"Select Qp code",name:"fqpcode",value:w,selection:!0,search:!0,disabled:be,options:j,onChange:function(e,t){E(t.value),Nt(t.value)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Teacher code"),i.a.createElement(p.a,{placeholder:"Select Teacher",name:"fteachcode",value:C,selection:!0,search:!0,disabled:Ge,options:M,onChange:function(e,t){L(t.value),D(""),ae(""),Me(!0),Fe(!1),Xe(""),we(!1),je(nv()().format("DD/MM/YYYY")),Ce(nv()().format("DD/MM/YYYY")),Be(!1),qe(!1),ot(""),ut(""),ht(""),gt(""),Et(""),kt(""),Lt("")}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Reviewer code"),i.a.createElement(p.a,{placeholder:"Select Reviewer",name:"frevcode",value:F,selection:!0,search:!0,options:B,disabled:Ve,onChange:function(e,t){D(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"3"},i.a.createElement("label",null,"Valuation Number"),i.a.createElement(p.a,{placeholder:"Select Val No.",name:"fvalno",value:Ue,selection:!0,search:!0,disabled:Ge,options:Je,onChange:function(e,t){It(t.value)}})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Total Script"),i.a.createElement(ue.a,{type:"text",placeholder:"Total Script",id:"totscpt",value:at})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Valuated Script"),i.a.createElement(ue.a,{type:"text",placeholder:"Valued Script",id:"valscpt",value:lt})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Balance Script"),i.a.createElement(ue.a,{type:"text",placeholder:"Balance Script",id:"blncspt",value:dt})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Draft"),i.a.createElement(ue.a,{type:"text",placeholder:"Draft",id:"drftVal",value:wt})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Assigned"),i.a.createElement(ue.a,{type:"text",placeholder:"Assigned",id:"assgVal",value:jt}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,null,i.a.createElement("label",null,"Teach Valuated"),i.a.createElement(ue.a,{type:"text",placeholder:"Teacher Valuated Script",id:"teachVal",value:Ct,style:{width:"110px"}})),i.a.createElement(le.a.Field,null,i.a.createElement("label",null,"Teach Can Valuate?"),i.a.createElement(ue.a,{type:"text",placeholder:"Teacher Can Value ?",id:"teachVal",value:vt,style:{width:"110px"}})),i.a.createElement(le.a.Field,null,i.a.createElement("label",null,"Max Scripts (Teach Valuated + Can Valuate?)"),i.a.createElement(ue.a,{type:"text",placeholder:"Teach Valuated + Can Valuate?",id:"fmaxscr",value:re,disabled:Ve,onChange:function(e,t){ae(t.value)},style:{width:"160px"}})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Start Date"),i.a.createElement(av.a,{name:"fstartdate",formatChars:Dt,value:_e,mask:"ed/nm/zyyy",disabled:Ve,onChange:function(e){Ce(e.target.value)}})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Last Date"),i.a.createElement(av.a,{name:"lastdate",formatChars:Dt,value:Oe,mask:"ed/nm/zyyy",disabled:Ve,onChange:function(e){je(e.target.value)}})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Teacher Send mail"),i.a.createElement("input",{type:"checkbox",checked:!!Pe,onChange:function(e){return Me(!Pe)}})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Reviewer Send mail"),i.a.createElement("input",{type:"checkbox",checked:!!Ie,onChange:function(e){return Fe(!Ie)}}))))),i.a.createElement("div",null)))};function xv(){xv=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Ov=function(e){var t=Object(o.useContext)(m.a),n=t.load,u=t.err_msg,s=t.confirm_err_msg,f=(Object(c.useHistory)(),Object(a.a)(n,2)),d=(f[0],f[1]),h=Object(a.a)(u,2),v=(h[0],h[1]),g=Object(a.a)(s,2),y=(g[0],g[1],localStorage.getItem("fteachcode")),b=Object(o.useState)("All"),w=Object(a.a)(b,2),E=w[0],x=w[1],O=Object(o.useState)(""),j=Object(a.a)(O,2),k=j[0],S=j[1],_=Object(o.useState)("All"),C=Object(a.a)(_,2),L=C[0],A=C[1],P=Object(o.useState)([{key:"All",value:"All",text:"All"},{key:"1",value:"1",text:"1"},{key:"2",value:"2",text:"2"},{key:"3",value:"3",text:"3"},{key:"4",value:"4",text:"4"},{key:"5",value:"5",text:"5"},{key:"R",value:"R",text:"R"},{key:"D",value:"D",text:"D"}]),M=Object(a.a)(P,2),N=M[0],T=(M[1],Object(o.useState)(!1)),I=Object(a.a)(T,2),F=I[0],D=I[1],R=Object(o.useState)([]),G=Object(a.a)(R,2),B=G[0],H=G[1],z=Object(o.useState)([]),V=Object(a.a)(z,2),q=V[0],Y=V[1],W=Object(o.useState)(""),U=Object(a.a)(W,2),X=U[0],Q=U[1];Object(o.useEffect)(function(){J()},[]);var J=function(){var e=Object(r.a)(xv().mark(function e(){var t,n;return xv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(!0),e.next=4,ee.get("/admin/get-direct-load?fusercode=".concat(y));case 4:if(0!=(t=e.sent).data.status){e.next=11;break}n=[{key:"All",value:"All",text:"All"}],t.data.result.board.map(function(e){n.push({value:e.fboard,text:"".concat(e.fboardname)})}),S(n),e.next=12;break;case 11:throw new Error(t.data.msg);case 12:d(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),d(!1),v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=Object(r.a)(xv().mark(function e(){var t;return xv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=E){e.next=4;break}return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Board"}}),d(!1),e.abrupt("return");case 4:if(""!=L){e.next=8;break}return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Valuation Number"}}),d(!1),e.abrupt("return");case 8:return e.prev=8,d(!0),e.next=12,ee.get("/admin/get-view-masrev?fusercode=".concat(y,"&board=").concat(E,"&fval=").concat(L));case 12:if(0!=(t=e.sent).data.status){e.next=19;break}D(!0),H(t.data.result),Y(t.data.result),e.next=21;break;case 19:throw D(!1),new Error(t.data.msg);case 21:d(!1),e.next=28;break;case 24:e.prev=24,e.t0=e.catch(8),d(!1),v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 28:case"end":return e.stop()}},e,null,[[8,24]])}));return function(){return e.apply(this,arguments)}}(),$=function(){var e=Object(r.a)(xv().mark(function e(t,n){var r,a,o;return xv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=B.filter(function(e,n){if(n===t)return e}),e.prev=2,d(!0),a={del:r},e.next=7,ee.post("/admin/del-view-panel?fusercode=".concat(y),a);case 7:if(0!=(o=e.sent).data.status){e.next=13;break}v({type:"OPEN_MSG_BOX",payload:{header:"Success",message:"Deleted succesfully..!"}}),Z(),e.next=14;break;case 13:throw new Error(o.data.msg);case 14:d(!1),e.next=21;break;case 17:e.prev=17,e.t0=e.catch(2),d(!1),v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 21:case"end":return e.stop()}},e,null,[[2,17]])}));return function(t,n){return e.apply(this,arguments)}}(),re=function(e){function t(){var e,n;Object(mt.a)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=Object(ft.a)(this,(e=Object(dt.a)(t)).call.apply(e,[this].concat(a)))).state={isOpen:!1},n.handleOpen=function(){n.setState({isOpen:!0})},n.handleClose=function(){n.setState({isOpen:!1})},n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"render",value:function(){var e=this;return i.a.createElement(Bl.a,{trigger:i.a.createElement(ne.a,{icon:"trash",color:"red",className:"btn btn-outline-danger btn-sm"}),on:"click",open:this.state.isOpen,onClose:this.handleClose,onOpen:this.handleOpen,position:"bottom right"},i.a.createElement(Bl.a.Header,null,i.a.createElement("span",null,"Delete this Val Center?"),i.a.createElement(Ue.a,{className:"close",link:!0,icon:"close",style:{float:"right"},onClick:this.handleClose})),i.a.createElement(Bl.a.Content,null,i.a.createElement("p",null,"Are you sure? Do you want to delete?"),i.a.createElement(ne.a,{color:"red",onClick:function(){return $(e.props.findex,e.props.fdtt)},content:"Delete",icon:"trash"})))}}]),t}(i.a.Component);return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Create Panel View",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black",onClick:function(){x(""),A(""),D(!1)}},"Clear"),i.a.createElement(ne.a,{floated:"right",size:"mini",color:"green",onClick:function(){!function(){var e=localStorage.getItem("univcode");window.open("".concat(K.c,"getPanelViewReportExcel&univcode=").concat(e,"&fboard=").concat(E,"&fvalno=").concat(L),"_blank")}()}},"Report"),i.a.createElement(l.b,{to:"/admin/directmasrev/1/1/"},i.a.createElement(ne.a,{floated:"right",size:"mini",color:"blue"},"Back")))),i.a.createElement(te.a.Content,{style:{height:"75vh",overflowY:"scroll"}},i.a.createElement("div",null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{placeholder:"Select board",name:"fboard",value:E,selection:!0,search:!0,options:k,onChange:function(e,t){x(t.value),D(!1),A("All")}})),i.a.createElement(le.a.Field,{width:"3"},i.a.createElement("label",null,"Valuation Number"),i.a.createElement(p.a,{placeholder:"Select Val No.",name:"fvalno",value:L,selection:!0,search:!0,options:N,onChange:function(e,t){A(t.value),D(!1)}})),i.a.createElement(le.a.Field,{width:4},i.a.createElement(ne.a,{style:{position:"relative",top:"23px"},content:"Submit",color:"blue",onClick:function(){return Z()}}))))),1==F?i.a.createElement("div",null,i.a.createElement("div",{class:"ui search"},i.a.createElement("div",{class:"ui icon input"},i.a.createElement(ue.a,{type:"text",placeholder:"Search...",style:{width:"75em"},value:X,onChange:function(e,t){!function(e){var t=e,n="";""!==e?(n=B.filter(function(e){return Object.keys(e).some(function(n){return e[n].toLowerCase().includes(t.toLowerCase())})}),H(n)):H(q),Q(e)}(t.value)}}),i.a.createElement("i",{class:"search icon"}))),B.length>0?i.a.createElement(ce.a,{celled:!0},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"5%"}},"Sl. No"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Board"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"20%"}},"Subject"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"20%"}},"Teacher Name"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"15%"}},"Reviewer Name"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Val No"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Scripts"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"8%"}},"Year & Exam"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Email Status"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"8%"}},"Action"))),i.a.createElement(ce.a.Body,null,B.map(function(e,t){return i.a.createElement(ce.a.Row,{key:t},i.a.createElement(ce.a.Cell,{textAlign:"center"},t+1),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fboard),i.a.createElement(ce.a.Cell,{textAlign:"left"},e.fqpcode+" - "+e.fsubname),i.a.createElement(ce.a.Cell,{textAlign:"left"},e.fteachcode+" - "+e.fteachname),i.a.createElement(ce.a.Cell,{textAlign:"left"},e.frevcode+" - "+e.frevname),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fvalno),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fmaxscr),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fyear+" - "+e.fexamtype),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.femail),i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement(l.b,{to:{pathname:"/admin/directmasrev/edit/".concat(e.fqpcode+"*"+e.fteachcode+"*"+e.frevcode+"*"+e.fmaxscr+"*"+e.fyear+"*"+e.fexamtype+"*"+e.fvalno+"*"+e.fboard+"*"+e.flastdate+"*"+e.fstartdate),query:{screen:"edit",dtt:e.fqpcode+"*"+e.fteachcode+"*"+e.frevcode}}},i.a.createElement(ne.a,{icon:"edit",color:"green",className:"btn btn-outline-danger btn-sm"})),i.a.createElement(re,{fdtt:e.fqpcode+"*"+e.fteachcode+"*"+e.frevcode+"*"+e.fmaxscr+"*"+e.fyear+"*"+e.fexamtype+"*"+e.fvalno,findex:t})))}))):null):null))};function jv(){jv=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var kv=function(e){var t=Object(o.useContext)(m.a),n=t.load,l=t.err_msg,u=(Object(c.useHistory)(),Object(a.a)(n,2)),s=(u[0],u[1]),f=Object(a.a)(l,2),d=(f[0],f[1]),h=localStorage.getItem("fteachcode"),v=Object(o.useState)(""),g=Object(a.a)(v,2),y=g[0],b=g[1],w=Object(o.useState)(""),E=Object(a.a)(w,2),x=E[0],O=E[1],j=Object(o.useState)(""),k=Object(a.a)(j,2),S=k[0],_=k[1],C=Object(o.useState)(""),L=Object(a.a)(C,2),A=L[0],P=L[1],M=Object(o.useState)(""),N=Object(a.a)(M,2),T=N[0],I=N[1],F=Object(o.useState)(""),D=Object(a.a)(F,2),R=D[0],G=D[1],B=Object(o.useState)(""),H=Object(a.a)(B,2),z=H[0],V=H[1],q=Object(o.useState)("0"),Y=Object(a.a)(q,2),W=Y[0],U=Y[1],X=Object(o.useState)("Z"),Q=Object(a.a)(X,2),J=Q[0],Z=Q[1];Object(o.useEffect)(function(){$()},[]);var $=function(){var e=Object(r.a)(jv().mark(function e(){var t,n;return jv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,ee.get("/admin/get-workdone-report?fusercode=".concat(h));case 4:if(0!=(t=e.sent).data.status){e.next=11;break}n=[],t.data.result.fdeggrp.map(function(e){n.push({value:e.fdeggrp,text:"".concat(e.fdescpn)})}),I(n),e.next=12;break;case 11:throw new Error(t.data.msg);case 12:s(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(){return e.apply(this,arguments)}}(),re=function(){var e=Object(r.a)(jv().mark(function e(t){var n,r;return jv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,ee.get("/admin/get-workdone-board?fusercode=".concat(h,"&fdeggrp=").concat(t));case 4:if(0!=(n=e.sent).data.status){e.next=11;break}r=[],n.data.result.fboard.map(function(e){r.push({value:e.fboard,text:"".concat(e.fboardname)})}),G(r),e.next=12;break;case 11:throw new Error(n.data.msg);case 12:s(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(t){return e.apply(this,arguments)}}(),ae=function(){var e=Object(r.a)(jv().mark(function e(t){var n,r;return jv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,ee.get("/admin/get-workdone-QPcode?fusercode=".concat(h,"&fdeggrp=").concat(y,"&fboard=").concat(t));case 4:if(0!=(n=e.sent).data.status){e.next=11;break}r=[{key:"all",value:"all",text:"All"}],n.data.result.fqpcode.map(function(e){r.push({value:e.fqpcode,text:"".concat(e.fqpcode)})}),V(r),e.next=12;break;case 11:throw new Error(n.data.msg);case 12:s(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(t){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Marks List",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black"},"Clear"),i.a.createElement(ne.a,{floated:"right",size:"mini",color:"blue",onClick:function(){!function(){var e=localStorage.getItem("univcode");window.open("".concat(K.c,"tdvsmarkslist&univcode=").concat(e,"&fdegreegrp=").concat(y,"&fboard=").concat(x,"&fqpcode=").concat(S,"&fvalno=").concat(A,"&teachrngfrm=").concat(W,"&teachrngto=").concat(J),"_blank")}()}},"Report"))),i.a.createElement(te.a.Content,{style:{height:"75vh",overflowY:"scroll"}},i.a.createElement("div",null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"8"},i.a.createElement("label",null,"Degree Range"),i.a.createElement(p.a,{placeholder:"Select Degree",name:"fdegreegrp",value:y,selection:!0,search:!0,options:T,onChange:function(e,t){b(t.value),re(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"8"},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{placeholder:"Select Board",name:"fboard",value:x,selection:!0,search:!0,options:R,onChange:function(e,t){O(t.value),ae(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"8"},i.a.createElement("label",null,"QP code"),i.a.createElement(p.a,{placeholder:"Select QP Code",name:"fqpcode",value:S,selection:!0,search:!0,options:z,onChange:function(e,t){_(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Valuation No."),i.a.createElement(p.a,{placeholder:"Select Valuation No.",name:"fvalno",value:A,selection:!0,search:!0,options:[{key:1,value:1,text:1},{key:2,value:2,text:2},{key:3,value:3,text:3},{key:"D",value:"D",text:"D"},{key:"R",value:"R",text:"R"}],onChange:function(e,t){P(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Teacher Range From"),i.a.createElement(ue.a,{value:W,placeholder:"Teacher Range From",onChange:function(e,t){return U(t.value.toUpperCase())}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Teacher Range To"),i.a.createElement(ue.a,{placeholder:"Teacher Range To",value:J,onChange:function(e,t){return Z(t.value.toUpperCase())}}))))),i.a.createElement("div",null)))};function Sv(){Sv=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var _v=function(e){var t=Object(o.useContext)(m.a),n=t.load,l=t.err_msg,u=(Object(c.useHistory)(),Object(a.a)(n,2)),s=(u[0],u[1]),f=Object(a.a)(l,2),d=(f[0],f[1]),h=localStorage.getItem("fteachcode"),v=Object(o.useState)(""),g=Object(a.a)(v,2),y=g[0],b=g[1],w=Object(o.useState)(""),E=Object(a.a)(w,2),x=E[0],O=E[1],j=Object(o.useState)(""),k=Object(a.a)(j,2),S=k[0],_=k[1],C=Object(o.useState)(""),L=Object(a.a)(C,2),A=L[0],P=L[1],M=Object(o.useState)(""),N=Object(a.a)(M,2),T=N[0],I=N[1],F=Object(o.useState)(""),D=Object(a.a)(F,2),R=D[0],G=D[1],B=Object(o.useState)(""),H=Object(a.a)(B,2),z=H[0],V=H[1],q=Object(o.useState)("0"),Y=Object(a.a)(q,2),W=Y[0],U=Y[1],X=Object(o.useState)("Z"),Q=Object(a.a)(X,2),J=Q[0],Z=Q[1],$=function(){b(""),O(""),_(""),P(""),U("0"),Z("z")};Object(o.useEffect)(function(){re()},[]);var re=function(){var e=Object(r.a)(Sv().mark(function e(){var t,n;return Sv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,ee.get("/admin/get-workdone-report?fusercode=".concat(h));case 4:if(0!=(t=e.sent).data.status){e.next=11;break}n=[],t.data.result.fdeggrp.map(function(e){n.push({value:e.fdeggrp,text:"".concat(e.fdescpn)})}),I(n),e.next=12;break;case 11:throw new Error(t.data.msg);case 12:s(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(){return e.apply(this,arguments)}}(),ae=function(){var e=Object(r.a)(Sv().mark(function e(t){var n,r;return Sv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,ee.get("/admin/get-workdone-board?fusercode=".concat(h,"&fdeggrp=").concat(t));case 4:if(0!=(n=e.sent).data.status){e.next=11;break}r=[],n.data.result.fboard.map(function(e){r.push({value:e.fboard,text:"".concat(e.fboardname)})}),G(r),e.next=12;break;case 11:throw new Error(n.data.msg);case 12:s(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(t){return e.apply(this,arguments)}}(),oe=function(){var e=Object(r.a)(Sv().mark(function e(t){var n,r;return Sv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,ee.get("/admin/get-workdone-QPcode?fusercode=".concat(h,"&fdeggrp=").concat(y,"&fboard=").concat(t));case 4:if(0!=(n=e.sent).data.status){e.next=11;break}r=[{key:"all",value:"all",text:"All"}],n.data.result.fqpcode.map(function(e){r.push({value:e.fqpcode,text:"".concat(e.fqpcode)})}),V(r),e.next=12;break;case 11:throw new Error(n.data.msg);case 12:s(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(t){return e.apply(this,arguments)}}(),ie=function(){var e=Object(r.a)(Sv().mark(function e(){var t;return Sv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return localStorage.getItem("univcode"),e.prev=1,s(!0),e.next=5,ee.post("/admin/push-workdone?&fqpcode=".concat(S,"&fdegreegrp=").concat(y,"&fboard=").concat(x,"&fvalno=").concat(A),{fdegreegrp:y,fboard:x,fqpcode:S,fvalno:A});case 5:if(0!=(t=e.sent).data.status){e.next=11;break}d({type:"OPEN_MSG_BOX",payload:{header:"Success",message:t.data.msg}}),$(),e.next=12;break;case 11:throw new Error(t.data.msg);case 12:s(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(1),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[1,15]])}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Work Done Report",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black",onClick:function(){$()}},"Clear"),i.a.createElement(ne.a,{floated:"right",size:"mini",color:"blue",onClick:function(){!function(){var e=localStorage.getItem("univcode");window.open("".concat(K.c,"generateworkdonereport&univcode=").concat(e,"&fdegreegrp=").concat(y,"&fboard=").concat(x,"&fqpcode=").concat(S,"&fvalno=").concat(A,"&teachrngfrm=").concat(W,"&teachrngto=").concat(J),"_blank")}()}},"Report"))),i.a.createElement(te.a.Content,{style:{height:"75vh",overflowY:"scroll"}},i.a.createElement("div",null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"8"},i.a.createElement("label",null,"Degree Range"),i.a.createElement(p.a,{placeholder:"Select Degree",name:"fdegreegrp",value:y,selection:!0,search:!0,options:T,onChange:function(e,t){b(t.value),ae(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"8"},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{placeholder:"Select Board",name:"fboard",value:x,selection:!0,search:!0,options:R,onChange:function(e,t){O(t.value),oe(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"8"},i.a.createElement("label",null,"QP code"),i.a.createElement(p.a,{placeholder:"Select QP Code",name:"fqpcode",value:S,selection:!0,search:!0,options:z,onChange:function(e,t){_(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Valuation No."),i.a.createElement(p.a,{placeholder:"Select Valuation No.",name:"fvalno",value:A,selection:!0,search:!0,options:[{key:1,value:1,text:1},{key:2,value:2,text:2},{key:3,value:3,text:3},{key:"D",value:"D",text:"D"},{key:"R",value:"R",text:"R"}],onChange:function(e,t){P(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Teacher Range From"),i.a.createElement(ue.a,{value:W,placeholder:"Teacher Range From",onChange:function(e,t){return U(t.value.toUpperCase())}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Teacher Range To"),i.a.createElement(ue.a,{placeholder:"Teacher Range To",value:J,onChange:function(e,t){return Z(t.value.toUpperCase())}}))))),i.a.createElement(ne.a,{size:"mini",color:"blue",onClick:function(){ie()}},"Submit")))};function Cv(){Cv=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Lv=function(e){var t=Object(o.useContext)(m.a),n=t.load,l=t.err_msg,u=t.confirm_err_msg,s=(t.auth_token,Object(c.useHistory)(),Object(a.a)(n,2)),f=(s[0],s[1]),d=Object(a.a)(l,2),h=(d[0],d[1]),p=Object(a.a)(u,2),v=(p[0],p[1],Object(o.useState)(!1)),g=Object(a.a)(v,2),y=(g[0],g[1]),b=Object(o.useState)(""),w=Object(a.a)(b,2),E=w[0],x=w[1],O=Object(o.useState)([]),j=Object(a.a)(O,2),k=j[0],S=j[1],_=localStorage.getItem("univcode"),C=Object(o.useState)(""),L=Object(a.a)(C,2),A=L[0],P=L[1];Object(o.useEffect)(function(){},[]);var M=function(){var e=Object(r.a)(Cv().mark(function e(){return Cv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:x(""),S([]);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),N=function(){var e=Object(r.a)(Cv().mark(function e(t,n,r,a,o){return Cv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q.a.get(K.b+"a=getAnsBookImagesTrans&univcode="+_+"&qpcode="+t+"&yearmode="+a+"®no="+n+"&valno="+r+"®code="+o).then(function(e){console.log(e),0==e.data.error_code&&"T"==e.data.data.FFILFRMSER?window.open("/#/admin/viewValAnsBook/".concat(t,"/").concat(a,"/").concat(r,"/").concat(n,"/").concat(o,"/viewval")):window.open(K.c+"digitalPhotoCopyDownload&univcode="+_+"®no="+n+"&qpcode="+t+"&val="+r+"&yearmode="+a,"_blank")});case 2:case"end":return e.stop()}},e)}));return function(t,n,r,a,o){return e.apply(this,arguments)}}(),T=function(){var e=Object(r.a)(Cv().mark(function e(){var t;return Cv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=E){e.next=3;break}return h({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Reg No..!"}}),e.abrupt("return");case 3:return e.prev=3,f(!0),e.next=7,ee.get("/admin/get-answerbooklet?fregno=".concat(E));case 7:if(t=e.sent,console.log(t.data.result),0!=t.data.status){e.next=15;break}S(t.data.result.res),t.data.result.std.map(function(e,t){P(e.fname)}),y(!0),e.next=16;break;case 15:throw new Error(t.data.msg);case 16:f(!1),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(3),f(!1),h({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 23:case"end":return e.stop()}},e,null,[[3,19]])}));return function(){return e.apply(this,arguments)}}(),I=function(){var e=Object(r.a)(Cv().mark(function e(t){return Cv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),e.prev=1,e.next=4,Q.a.get(K.b+"a=createRevl&univcode="+localStorage.getItem("univcode")+"&fregcode="+t).then(function(e){return 0===e.data.error_code?(h({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.data.msg}}),T(),void f(!1)):(h({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void f(!1))});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),f(!1);case 9:case"end":return e.stop()}},e,null,[[1,6]])}));return function(t){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"View Answer Booklet",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black",onClick:function(){return M()}},"Clear"))),i.a.createElement(te.a.Content,{style:{height:"75vh",overflowY:"scroll"}},i.a.createElement("div",null,i.a.createElement("div",{className:"col-md-3"},i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,null,i.a.createElement("label",null,"Reg No."),i.a.createElement(ue.a,{type:"text",placeholder:"Reg No.",id:"fregno",style:{width:"12em"},value:E,onChange:function(e,t){x(t.value.toUpperCase())}})),k.length>0?i.a.createElement(le.a.Field,null,i.a.createElement("label",null,"Student Name"),i.a.createElement(ue.a,{type:"text",id:"fname",style:{width:"18em",color:"black"},value:A})):null),i.a.createElement(ne.a,{color:"blue",onClick:function(){T()}},"Submit")))),k.length>0?i.a.createElement(ce.a,{celled:!0},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Sl. No"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Year Mode"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Degree"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Semester"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Subject Name"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"QP Code"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Ans Booklet No"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Max Marks"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Marks"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Val. No."),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Action"),"053"==_?i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Revaluation"):null)),i.a.createElement(ce.a.Body,null,k.map(function(e,t){return i.a.createElement(ce.a.Row,{key:t},i.a.createElement(ce.a.Cell,{textAlign:"center"},t+1),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.yearmode),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fdegree),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fexamno),i.a.createElement(ce.a.Cell,{textAlign:"left"},e.fsubname+" - "+e.fsubshort),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fqpcode)," ",i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fansbook),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fsmaxmarks),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fsysmarks),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fvalno),i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement(ne.a,{basic:!0,size:"tiny",color:"blue",style:{marginTop:"10%"},onClick:function(){N(e.fqpcode,e.fregno,e.fvalno,e.yearmode,e.fregcode)}},"View")),"053"==_?i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement(ne.a,{basic:!0,size:"tiny",color:"blue",style:{marginTop:"10%"},onClick:function(){I(e.fregcode)}},"Create Revaluation")):null)}))):null))};function Av(){Av=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Pv=function(e){var t=Object(o.useContext)(m.a),n=t.load,l=t.err_msg,u=(Object(c.useHistory)(),Object(a.a)(n,2)),s=(u[0],u[1]),f=Object(a.a)(l,2),d=(f[0],f[1]),h=localStorage.getItem("fteachcode"),v=Object(o.useState)(""),g=Object(a.a)(v,2),y=g[0],b=g[1],w=Object(o.useState)(""),E=Object(a.a)(w,2),x=E[0],O=E[1],j=Object(o.useState)(""),k=Object(a.a)(j,2),S=k[0],_=k[1],C=Object(o.useState)(""),L=Object(a.a)(C,2),A=L[0],P=L[1],M=Object(o.useState)(""),N=Object(a.a)(M,2),T=N[0],I=N[1],F=Object(o.useState)("0"),D=Object(a.a)(F,2),R=D[0],G=D[1],B=Object(o.useState)("Z"),H=Object(a.a)(B,2),z=H[0],V=H[1],q=Object(o.useState)(""),Y=Object(a.a)(q,2),W=Y[0],U=Y[1],X=Object(o.useState)(""),J=Object(a.a)(X,2),Z=J[0],$=(J[1],Object(o.useState)("")),re=Object(a.a)($,2),ae=re[0],oe=re[1],ie=Object(o.useState)(""),ce=Object(a.a)(ie,2),se=ce[0],fe=ce[1];Object(o.useEffect)(function(){de()},[]);var de=function(){var e=Object(r.a)(Av().mark(function e(){var t,n;return Av().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,ee.get("/admin/get-workdone-report?fusercode=".concat(h));case 4:if(0!=(t=e.sent).data.status){e.next=11;break}n=[],t.data.result.fdeggrp.map(function(e){n.push({value:e.fdeggrp,text:"".concat(e.fdescpn)})}),P(n),e.next=12;break;case 11:throw new Error(t.data.msg);case 12:s(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(){return e.apply(this,arguments)}}(),he=function(){var e=Object(r.a)(Av().mark(function e(t){var n,r;return Av().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,ee.get("/admin/get-workdone-board?fusercode=".concat(h,"&fdeggrp=").concat(t));case 4:if(0!=(n=e.sent).data.status){e.next=11;break}r=[],n.data.result.fboard.map(function(e){r.push({value:e.fboard,text:"".concat(e.fboardname)})}),I(r),e.next=12;break;case 11:throw new Error(n.data.msg);case 12:s(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(t){return e.apply(this,arguments)}}(),pe=function(){var e=Object(r.a)(Av().mark(function e(t){return Av().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q.a.get(K.b+"a=tdvs_getYearModeDet&univcode="+localStorage.getItem("univcode")+"°grp="+t).then(function(e){console.log(e),0==e.data.error_code&&(oe(e.data.data.fyear),fe(e.data.data.fexamtype))});case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Valuation Bill",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black",onClick:function(){b(""),O(""),_(""),G("0"),V("z"),fe(""),oe("")}},"Clear"))),i.a.createElement(te.a.Content,{style:{height:"75vh",overflowY:"scroll"}},i.a.createElement("div",null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Type"),i.a.createElement(p.a,{placeholder:"Select Report Type",name:"ftype",value:W,selection:!0,search:!0,options:[{key:"valuationbill",value:"valuationbill",text:"Valuation bill"},{key:"tadabill",value:"tadabill",text:"TADA bill"}],onChange:function(e,t){U(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"8"},i.a.createElement("label",null,"Degree Group Range"),i.a.createElement(p.a,{placeholder:"Select Degree Group",name:"fdegreegrp",value:y,selection:!0,search:!0,options:A,onChange:function(e,t){b(t.value),he(t.value),pe(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Year"),i.a.createElement(ue.a,{placeholder:"Year",value:ae,maxLength:4,onChange:function(e,t){return oe(t.value)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Examtype"),i.a.createElement(ue.a,{placeholder:"Examtype",value:se,maxLength:1,onChange:function(e,t){return fe(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"8"},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{placeholder:"Select Board",name:"fboard",value:x,selection:!0,search:!0,options:T,onChange:function(e,t){O(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Teacher Range From"),i.a.createElement(ue.a,{value:R,placeholder:"Teacher Range From",onChange:function(e,t){return G(t.value.toUpperCase())}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Teacher Range To"),i.a.createElement(ue.a,{placeholder:"Teacher Range To",value:z,onChange:function(e,t){return V(t.value.toUpperCase())}}))))),i.a.createElement(ne.a,{size:"mini",color:"blue",onClick:function(){!function(){var e=localStorage.getItem("univcode");""!==W?""!==y?""!==x?"valuationbill"===W?window.open("".concat(K.c,"generatebill&univcode=").concat(e,"&fdegreegrp=").concat(y,"&fboard=").concat(x,"&fvalno=").concat(S,"&teachrngfrm=").concat(R,"&teachrngto=").concat(z,"&year=").concat(ae,"&examtype=").concat(se),"_blank"):window.open("".concat(K.c,"generatetadabill&&univcode=").concat(e,"&fdegreegrp=").concat(y,"&fboard=").concat(x,"&teachrngfrm=").concat(R,"&teachrngto=").concat(z,"&type=").concat(Z,"&year=").concat(ae,"&examtype=").concat(se),"_blank"):d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select board"}}):d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select degree group"}}):d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select report type"}})}()}},"Report")))};function Mv(){Mv=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Nv=[],Tv=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,l=e.confirm_err_msg,u=(e.auth_token,Object(c.useHistory)(),Object(a.a)(t,2)),s=(u[0],u[1]),f=Object(o.useState)(""),d=Object(a.a)(f,2),h=d[0],v=d[1],g=Object(o.useState)([]),y=Object(a.a)(g,2),b=y[0],w=y[1],E=Object(o.useState)([]),x=Object(a.a)(E,2),O=x[0],j=x[1],k=Object(o.useState)(""),S=Object(a.a)(k,2),_=(S[0],S[1],Object(o.useState)(!1)),C=Object(a.a)(_,2),L=C[0],A=C[1],P=Object(o.useState)([]),M=Object(a.a)(P,2),N=M[0],T=M[1],I=Object(a.a)(n,2),F=(I[0],I[1]),D=Object(a.a)(l,2),R=(D[0],D[1],localStorage.getItem("fteachcode"));Object(o.useEffect)(function(){G()},[]);var G=function(){var e=Object(r.a)(Mv().mark(function e(){var t,n;return Mv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,ee.get("/admin/get-board-option?fusercode=".concat(R));case 4:if(0!=(t=e.sent).data.status){e.next=11;break}n=[],t.data.result.map(function(e){n.push({value:e.fboard,text:"".concat(e.fboardname)})}),w(n),e.next=12;break;case 11:throw new Error(t.data.msg);case 12:s(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),s(!1),F({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(){return e.apply(this,arguments)}}(),B=function(){var e=Object(r.a)(Mv().mark(function e(){var t,n;return Mv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Nv=[],""!=h){e.next=4;break}return F({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Board"}}),e.abrupt("return");case 4:return e.prev=4,s(!0),e.next=8,ee.get("/admin/get-qppattern-details?fusercode=".concat(R,"&fboard=").concat(h));case 8:if(0!=(t=e.sent).data.status){e.next=18;break}n=[],t.data.result.qppattern.map(function(e){n.push({value:e.ftempcode,text:"".concat(e.ftempcode)})}),j(t.data.result.table),A(!0),T(n),t.data.result.table.map(function(e,t){"T"===e.ffreeze&&Nv.push(e)}),e.next=19;break;case 18:throw new Error(t.data.msg);case 19:s(!1),e.next=26;break;case 22:e.prev=22,e.t0=e.catch(4),s(!1),F({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 26:case"end":return e.stop()}},e,null,[[4,22]])}));return function(){return e.apply(this,arguments)}}(),H=function(){var e=Object(r.a)(Mv().mark(function e(){var t,n;return Mv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),t=JSON.stringify(Nv),(n=new FormData).append("univcode",localStorage.getItem("univcode")),n.append("board",h),n.append("data",t),e.next=9,Q.a.post(K.b+"a=tdvs_verify_qp_pattern",n).then(function(e){if(0!==e.data.error_code)throw new Error(e.data.data.msg);F({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.data.msg}})});case 9:s(!1),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(0),s(!1),F({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 16:case"end":return e.stop()}},e,null,[[0,12]])}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Verify QP Pattern",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black",onClick:function(){return A(!1),void v("")}},"Clear"),i.a.createElement(ne.a,{floated:"right",size:"mini",color:"green",onClick:function(){return H()}},"Save"),i.a.createElement(ne.a,{floated:"right",size:"mini",color:"Blue",onClick:function(){return function(){var e=localStorage.getItem("univcode");window.open("".concat(K.c,"qppatternreport&univcode=").concat(e),"_blank")}()}},"Report"))),i.a.createElement(te.a.Content,{style:{height:"75vh",overflowY:"scroll"}},i.a.createElement("div",null,i.a.createElement("div",{className:"col-md-3"},i.a.createElement(le.a,null,i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{placeholder:"Select Board",name:"board",value:h,selection:!0,search:!0,options:b,onChange:function(e,t){v(t.value)}})),i.a.createElement(ne.a,{color:"blue",onClick:function(){B()}},"Submit")),L?i.a.createElement(ce.a,{celled:!0},i.a.createElement(ce.a.Header,{className:"headfootfixed_header"},i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"4em"}},"Sl. No"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"15em"}},"QP Code"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"113em"}},"Subject Name"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"40em"}},"Max. Marks"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"10em"}},"QP Pattern"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"10em"}},"Verify"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"50em"}},"Remarks"))),i.a.createElement(ce.a.Body,{className:"headfootfixed_body"},O.map(function(e,t){return i.a.createElement(ce.a.Row,{key:t},i.a.createElement(ce.a.Cell,{textAlign:"center",style:{width:"4em"}},t+1),i.a.createElement(ce.a.Cell,{textAlign:"center",style:{width:"10em"}},i.a.createElement("a",{href:"https://answer-booklets.s3.ap-south-1.amazonaws.com/"+e.fqppath,target:"_blank"},e.fqpcode)),i.a.createElement(ce.a.Cell,{textAlign:"left",style:{width:"64em"}},e.fsubname),i.a.createElement(ce.a.Cell,{textAlign:"center",style:{width:"9em"}},e.fsmaxmarks),i.a.createElement(ce.a.Cell,{textAlign:"center",style:{width:"9em"}},i.a.createElement(p.a,{placeholder:"QP Pattern",name:"qppattern",value:e.ftempcode,selection:!0,search:!0,options:N,onChange:function(e,n){return function(e,t){var n=O.map(function(n,r){return r===t&&(n.ftempcode=e),n});j(n)}(n.value,t)}}),i.a.createElement("a",{href:"https://universitysolutions.in/univadmin/app.php?a=tdvsQpPatranTest&univcode="+localStorage.getItem("univcode")+"&tempcode="+e.ftempcode,target:"_blank"},"View")),i.a.createElement(ce.a.Cell,{textAlign:"center",style:{width:"10em"}},i.a.createElement(Xm.a,{onChange:function(t,n){return function(e,t){var n=O.map(function(n){return t==n.fqpcode&&(e?(n.ffreeze="T",Nv.push(n)):n.ffreeze="F"),n});j(n)}(n.checked,e.fqpcode)},value:e.ffreeze,checked:"T"==e.ffreeze})),i.a.createElement(ce.a.Cell,{textAlign:"center",style:{width:"10em"}},i.a.createElement(le.a.Input,{type:"text",placeholder:"Remarks",name:"ftempremarks",value:e.ftempremarks,onChange:function(e,n){return function(e,t){var n=O.map(function(n,r){return r===t&&(n.ftempremarks=e),n});j(n)}(n.value,t)}})))}))):null))))},Iv=n(1560),Fv=n(1534),Dv=(n(1393),function(e){var t=e.loading;return i.a.createElement(Iv.a,{active:t,inverted:!0},i.a.createElement(Fv.a,{className:"rotating-loader"}))}),Rv=function(e){var t=e.open,n=e.onClose,r=e.message,a=e.type,o="success"===a?"green":"rgb(202, 71, 71)";return i.a.createElement(Ym.a,{open:t,onClose:n,size:"tiny",style:{width:"400px"}},i.a.createElement(Ym.a.Header,{style:{backgroundColor:o}},"success"===a?"Success":"Error"),i.a.createElement(Ym.a.Content,null,i.a.createElement("h3",null,i.a.createElement("b",null,r))),i.a.createElement(Ym.a.Actions,null,i.a.createElement(ne.a,{color:"blue",onClick:n},"Close")))};function Gv(){Gv=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Bv=function(e){function t(){var e,n;Object(mt.a)(this,t);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=Object(ft.a)(this,(e=Object(dt.a)(t)).call.apply(e,[this].concat(o)))).state={entry:"1",status:"Pending",board:"All",qpcode:"All",formSubmit:!1,det:"S",boardOpt:[],qpcodeOpt:[],count:[],loading:!1,showAlert:!1,alertMessage:"",alertType:""},n.componentDidMount=function(){n.getDeggrp(),n.getTdvsQPDetails(n.state.board)},n.toggleAlert=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";n.setState(function(n){return{showAlert:!n.showAlert,alertMessage:e,alertType:t}})},n.getDeggrp=function(){var e=Object(r.a)(Gv().mark(function e(t){return Gv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.prev=1,e.next=4,Q.a.get(K.b+"a=getTDVSBoardDetails&univcode="+localStorage.getItem("univcode")+"°grp="+t).then(function(e){0===e.data.error_code?n.setState({boardOpt:e.data.data}):n.toggleAlert("No data found","error")});case 4:n.setState({loading:!1}),e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),alert(e.t0),e.abrupt("return");case 11:case"end":return e.stop()}},e,null,[[1,7]])}));return function(t){return e.apply(this,arguments)}}(),n.getTdvsQPDetails=function(){var e=Object(r.a)(Gv().mark(function e(t,r){return Gv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.prev=1,e.next=4,Q.a.get(K.b+"a=getTdvsQPDetails&univcode="+localStorage.getItem("univcode")+"&board="+t+"°grp="+r).then(function(e){0===e.data.error_code?n.setState({qpcodeOpt:e.data.data}):n.toggleAlert("No data found","error")});case 4:n.setState({loading:!1}),e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),alert(e.t0),e.abrupt("return");case 11:case"end":return e.stop()}},e,null,[[1,7]])}));return function(t,n){return e.apply(this,arguments)}}(),n.getTdvsCountData=Object(r.a)(Gv().mark(function e(){var t,r,a,o,i;return Gv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==n.state.entry){e.next=3;break}return n.toggleAlert("Select Entry Type","error"),e.abrupt("return");case 3:if(""!==n.state.board){e.next=6;break}return n.toggleAlert("Select Board","error"),e.abrupt("return");case 6:return t=n.state,r=t.entry,a=t.status,o=t.board,i=t.qpcode,n.setState({loading:!0}),e.next=10,Q.a.post(K.b+"a=getTdvsCountData&univcode="+localStorage.getItem("univcode")+"&entry="+r+"&status="+a+"&board="+o+"&qpcode="+i).then(function(e){console.log(e),0===e.data.error_code?n.setState({count:e.data.data}):n.toggleAlert("No data found","error")});case 10:n.setState({loading:!1}),n.setState({formSubmit:!0});case 12:case"end":return e.stop()}},e)})),n.releaseData=Object(r.a)(Gv().mark(function e(){var t,r,a,o;return Gv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.state,r=t.entry,a=t.board,o=t.qpcode,n.setState({loading:!0}),e.prev=2,e.next=5,Q.a.post(K.b+"a=releaseDecodeData&univcode="+localStorage.getItem("univcode")+"&entry="+r+"&board="+a+"&qpcode="+o).then(function(e){0===e.data.error_code?n.toggleAlert("Released Successfully","success"):n.toggleAlert("Released Failed","error")});case 5:n.setState({loading:!1}),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(2),alert(e.t0),e.abrupt("return");case 12:case"end":return e.stop()}},e,null,[[2,8]])})),n.handleCancel=function(){n.setState({entry:"",status:"Pending",board:"All",qpcode:"All",formSubmit:!1})},n.redirectToPage=function(e,t){var r,a=n.state,o=a.entry,i=a.det;("1"===o?r="/admin/modifytdvs/".concat(e,"/").concat(t,"/").concat(o,"/").concat(i,"/"):"2"===o&&(r="/admin/modifytdvs2/".concat(e,"/").concat(t,"/").concat(o,"/").concat(i,"/")),r)?n.props.history.location.pathname!==r&&(console.log(r),n.props.history.push(r)):n.toggleAlert("Invalid entry value","error")},n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"render",value:function(){var e=this,t=[{key:"All",value:"All",text:"All"}],n=this.state,r=n.loading,a=n.showAlert,o=n.alertMessage,c=n.alertType,u=this.state.boardOpt.map(function(e,t){return{key:t,value:"".concat(e.fboard),text:"".concat(e.fboard," - ").concat(e.fboardname)}}),s=[].concat(t,Object(oe.a)(u)),f=this.state.qpcodeOpt.map(function(e,t){return{key:t,value:"".concat(e.fqpcode),text:"".concat(e.fqpcode," - ").concat(e.fsubname)}}),d=[].concat(t,Object(oe.a)(f));this.state.entry;var h={border:"1px solid grey",borderCollapse:"collapse"};return i.a.createElement("div",{className:"animated fadeIn"},i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,{style:{height:"700px"}},i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h3",null,"Decoding Status")),i.a.createElement("div",{className:"ml-auto"},i.a.createElement(ne.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"})))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,{style:{overflowY:"auto",height:"680px"}},i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Select Entry"),i.a.createElement(p.a,{openOnFocus:!0,fluid:!0,search:!0,selection:!0,value:this.state.entry,options:[{key:"1",value:"1",text:"1"},{key:"2",value:"2",text:"2"}],allowAdditions:!0,placeholder:"Select Entry",onChange:function(t,n){e.setState({entry:n.value}),e.setState({formSubmit:!1})},autoFocus:!0})),i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Status"),i.a.createElement(p.a,{fluid:!0,search:!0,selection:!0,value:this.state.status,options:[{key:"All",value:"All",text:"All"},{key:"Pending",value:"Pending",text:"Pending"},{key:"Completed",value:"Completed",text:"Completed"}],allowAdditions:!0,onChange:function(t,n){e.setState({status:n.value}),e.setState({formSubmit:!1})}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{openOnFocus:!0,fluid:!0,search:!0,selection:!0,value:this.state.board,options:s,allowAdditions:!0,placeholder:"Select Board",onChange:function(t,n){e.setState({board:n.value}),e.getTdvsQPDetails(n.value),e.setState({formSubmit:!1})},autoFocus:!0})),i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"QP Code"),i.a.createElement(p.a,{fluid:!0,search:!0,selection:!0,value:this.state.qpcode,options:d,allowAdditions:!0,onChange:function(t,n){e.setState({qpcode:n.value}),e.setState({formSubmit:!1})}})),i.a.createElement(le.a.Field,{width:4},i.a.createElement(ne.a,{style:{position:"relative",top:"23px"},content:"Submit",color:"blue",onClick:function(){return e.getTdvsCountData()}})))),i.a.createElement(Dv,{loading:r}),i.a.createElement(Rv,{open:a,onClose:function(){return e.setState({showAlert:!1})},message:o,type:c}),this.state.formSubmit&&i.a.createElement("div",{style:{height:"55vh",overflowY:"auto"}},i.a.createElement("table",{style:{width:"100%"}},i.a.createElement("thead",{style:{backgroundColor:"tan",border:"1px solid grey",height:"40px",position:"sticky",top:0,zIndex:2,textAlign:"center"}},i.a.createElement("tr",null,i.a.createElement("th",{style:h},"Sl. No."),i.a.createElement("th",{style:h},"Board"),i.a.createElement("th",{style:h},"QP Code"),i.a.createElement("th",{style:h},"Subject Name"),i.a.createElement("th",{style:h},"Total Script"),i.a.createElement("th",{style:h},"Completed"),i.a.createElement("th",{style:h},"Pending"),i.a.createElement("th",{style:h},"Action"),i.a.createElement("th",{style:h},"Release"))),i.a.createElement("tbody",null,this.state.count.length>0?this.state.count.map(function(t,n){return i.a.createElement("tr",{style:{height:"40px",textAlign:"center"},key:n},i.a.createElement("td",{style:h},n+1),i.a.createElement("td",{style:h},t.fboard),i.a.createElement("td",{style:h},t.fqpcode),i.a.createElement("td",{style:{border:"1px solid grey",textAlign:"initial",paddingLeft:"10px"}},t.fsubname),i.a.createElement("td",{style:h},t.total),i.a.createElement("td",{style:h},t.Completed),i.a.createElement("td",{style:h},t.Pending),i.a.createElement("td",{style:h},t.total!==t.Completed?i.a.createElement(l.b,{to:"#",onClick:function(){return e.redirectToPage(t.fboard,t.fqpcode)}},i.a.createElement(ne.a,{color:"green",size:"mini",onClick:e.handleStart},"Start")):"Completed"),i.a.createElement("td",{style:h},t.total!==t.Completed?i.a.createElement(ne.a,{color:"blue",size:"mini",onClick:function(n){return e.releaseData(t.fboard,t.fqpcode)}},"Release"):"Completed"))}):i.a.createElement("tr",{style:{height:"40px",textAlign:"center"}},i.a.createElement("td",{colSpan:8},"No data found")))))))))}}]),t}(o.Component),Hv=Object(c.withRouter)(Bv);n(1395);function zv(){zv=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Vv=function(e){var t=Object(o.useContext)(m.a),n=t.load,c=t.err_msg,l=Object(a.a)(n,2),u=(l[0],l[1]),s=Object(a.a)(c,2),f=(s[0],s[1]),d=localStorage.getItem("fteachcode"),h=Object(o.useState)("All"),v=Object(a.a)(h,2),g=v[0],y=v[1],b=Object(o.useState)("All"),w=Object(a.a)(b,2),E=w[0],x=w[1],O=Object(o.useState)([]),j=Object(a.a)(O,2),k=j[0],S=j[1],_=Object(o.useState)([{key:"All",text:"All",value:"All"},{key:"A",text:"I Semester",value:"A"},{key:"B",text:"II Semester",value:"B"},{key:"C",text:"III Semester",value:"C"},{key:"D",text:"IV Semester",value:"D"},{key:"E",text:"V Semester",value:"E"},{key:"F",text:"VI Semester",value:"F"},{key:"G",text:"VII Semester",value:"G"},{key:"H",text:"VIII Semester",value:"H"},{key:"I",text:"IX Semester",value:"I"},{key:"J",text:"X Semester",value:"J"}]),C=Object(a.a)(_,2),L=C[0],A=(C[1],Object(o.useState)([])),P=Object(a.a)(A,2),M=P[0],N=P[1],T=Object(o.useState)(null),I=Object(a.a)(T,2),F=(I[0],I[1]),D=Object(o.useState)(null),R=Object(a.a)(D,2),G=R[0],B=R[1],H=Object(o.useState)(null),z=Object(a.a)(H,2),V=z[0],q=z[1],Y=Object(o.useState)(null),W=Object(a.a)(Y,2),U=W[0],X=W[1],J=Object(o.useState)(null),Z=Object(a.a)(J,2),$=Z[0],re=Z[1],ae=Object(o.useState)(!1),ie=Object(a.a)(ae,2),ce=ie[0],ue=ie[1],se=Object(o.useState)("All"),fe=Object(a.a)(se,2),de=fe[0],he=fe[1],pe=Object(o.useState)([{value:"All",text:"All"},{value:"freezed",text:"Freezed"},{value:"unfreezed",text:"Unfreezed"}]),me=Object(a.a)(pe,2),ve=me[0],ge=(me[1],Object(o.useState)([])),ye=Object(a.a)(ge,2),be=ye[0],we=ye[1],Ee=Object(o.useState)([{value:"All",text:"All"},{value:"Uploaded",text:"Uploaded"},{value:"Pending",text:"Pending"}]),xe=Object(a.a)(Ee,2),Oe=xe[0],je=(xe[1],Object(o.useState)("All")),ke=Object(a.a)(je,2),Se=ke[0],_e=ke[1];Object(o.useEffect)(function(){Ae()},[]);var Ce=function(){var e=Object(r.a)(zv().mark(function e(t,n,r,a,o){var i,c;return zv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.target.files[0].name.split(".").pop(),t.target.files[0].name.split(".")[0],"pdf"===i){e.next=6;break}return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"only pdf file allowed"}}),e.abrupt("return");case 6:return F(t.target.files[0]),(c=new FormData).append("univcode",localStorage.getItem("univcode")),c.append("qpcode",n),c.append("deggrp",r),c.append("sem",a),c.append("file",t.target.files[0]),e.next=15,Q.a.post(K.b+"a=tdvsuploadqp",c,{headers:{"Content-Type":"multipart/form-data"}}).then(function(e){0===e.data.error_code&&(q(o),B(e.data.data.msg),Pe())});case 15:case"end":return e.stop()}},e)}));return function(t,n,r,a,o){return e.apply(this,arguments)}}(),Le=function(){var e=Object(r.a)(zv().mark(function e(t,n,r,a,o){var i,c;return zv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.target.files[0].name.split(".").pop(),t.target.files[0].name.split(".")[0],"pdf"===i){e.next=6;break}return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"only pdf file allowed"}}),e.abrupt("return");case 6:return F(t.target.files[0]),(c=new FormData).append("univcode",localStorage.getItem("univcode")),c.append("qpcode",n),c.append("deggrp",r),c.append("sem",a),c.append("file",t.target.files[0]),e.next=15,Q.a.post(K.b+"a=tdvsuploadscheme",c,{headers:{"Content-Type":"multipart/form-data"}}).then(function(e){0===e.data.error_code&&(re(o),X(e.data.data.msg),Pe())});case 15:case"end":return e.stop()}},e)}));return function(t,n,r,a,o){return e.apply(this,arguments)}}(),Ae=function(){var e=Object(r.a)(zv().mark(function e(){var t,n;return zv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u(!0),e.next=4,ee.get("/admin/get-deggrp?fusercode=".concat(d));case 4:if(0!=(t=e.sent).data.status){e.next=11;break}n=[{value:"All",text:"All"}],t.data.result.res.map(function(e){n.push({value:e.fdeggrp,text:"".concat(e.fdescpn)})}),S(n),e.next=12;break;case 11:throw new Error(t.data.msg);case 12:u(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),u(!1),f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(){return e.apply(this,arguments)}}(),Pe=function(){var e=Object(r.a)(zv().mark(function e(){var t,n,r;return zv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u(!0),ue(!0),e.next=5,ee.get("/admin/view-qp-scheme?fusercode=".concat(d,"°grp=").concat(g,"&sem=").concat(E,"&type=").concat(de,"&qptype=").concat(Se));case 5:0===(t=e.sent).data.status?(n=t.data.result[0].map(function(e,t){return e&&(e.fstatus="F"),e}),N(n),r=[],t.data.result[1].map(function(e){r.push({value:e.value,text:"".concat(e.text)})}),we(r)):N([]),u(!1),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(0),u(!1),f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 14:case"end":return e.stop()}},e,null,[[0,10]])}));return function(){return e.apply(this,arguments)}}(),Me=function(){var e=Object(r.a)(zv().mark(function e(){var t,n;return zv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],M.map(function(e){"T"==e.fstatus&&t.push(e)}),e.prev=2,u(!0),ue(!0),n=JSON.stringify(t),e.next=8,ee.get("/admin/save-qp-scheme-temp?finatab=".concat(n));case 8:0===e.sent.data.status?f({type:"OPEN_MSG_BOX",payload:{header:"Success",message:"Updated Successfully"}}):f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Fail to Updated"}}),u(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(2),u(!1),f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 17:case"end":return e.stop()}},e,null,[[2,13]])}));return function(){return e.apply(this,arguments)}}(),Ne=function(){var e=Object(r.a)(zv().mark(function e(){return zv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),e.next=3,Q()({method:"GET",url:"https://universitysolutions.in/univadmin/app.php?a=getTdvsSubjects&univcode=".concat(localStorage.getItem("univcode")),headers:{"Content-Type":"application/json"}}).then(function(e){if(0!==e.data.error_code)return u(!1),void f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}});u(!1),f({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.data.msg}})});case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{width:"98%",padding:"10px"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"QP and Scheme Upload",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black"},"Clear"),i.a.createElement(ne.a,{floated:"right",size:"mini",color:"blue",onClick:function(){return Ne()}},"Get Subjects"),i.a.createElement(ne.a,{floated:"right",size:"mini",color:"green",onClick:function(){return Me()}},"Save"))),i.a.createElement(te.a.Description,{style:{height:"610px"}},i.a.createElement("div",null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Degree Group"),i.a.createElement(p.a,{placeholder:"Select Degree Group ",name:"deggrp",value:g,selection:!0,search:!0,options:k,onChange:function(e,t){y(t.value)}})),i.a.createElement(le.a.Field,{width:"3"},i.a.createElement("label",null,"Semester"),i.a.createElement(p.a,{placeholder:"Select Semester ",name:"sem",value:E,selection:!0,search:!0,options:L,onChange:function(e,t){return x(t.value)}})),i.a.createElement(le.a.Field,{width:"3"},i.a.createElement("label",null,"QP Status"),i.a.createElement(p.a,{placeholder:"Select Semester ",name:"type",value:Se,selection:!0,search:!0,options:Oe,onChange:function(e,t){_e(t.value),ue(!1)}})),i.a.createElement(le.a.Field,{width:"3"},i.a.createElement("label",null,"Pattern Status"),i.a.createElement(p.a,{placeholder:"Select Semester ",name:"type",value:de,selection:!0,search:!0,options:ve,onChange:function(e,t){he(t.value),ue(!1)}})),i.a.createElement(le.a.Field,{width:"3"},i.a.createElement(ne.a,{primary:!0,style:{position:"absolute",bottom:0},onClick:function(){return Pe()}},"View"))))),i.a.createElement("div",{style:{height:"63vh",overflowY:"auto"}},ce&&i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("th",null,"QP Code"),i.a.createElement("th",null,"Subject Name"),i.a.createElement("th",null,"Degree Group"),i.a.createElement("th",null,"Max Marks"),i.a.createElement("th",null,"Qp Upload"),i.a.createElement("th",null,"Scheme Upload"),i.a.createElement("th",null,"View QP Pattern"),i.a.createElement("th",null,"Type")),i.a.createElement("tbody",null,M.length>0?M.map(function(e,t){var n="https://answer-booklets.s3.ap-south-1.amazonaws.com/";return i.a.createElement("tr",{style:{height:"40px"},key:t},i.a.createElement("td",{style:{textAlign:"center",width:"100px"}},e.fqpcode),i.a.createElement("td",{style:{textAlign:"initial",paddingLeft:"10px"}},e.fsubname),i.a.createElement("td",{style:{textAlign:"center",width:"80px"}},e.fdeggrp),i.a.createElement("td",{style:{textAlign:"center",width:"10px"}},e.fsmaxmarks),i.a.createElement("td",{style:{width:"150px"}},i.a.createElement("div",{style:{display:"flex",justifyContent:"space-evenly"}},i.a.createElement("input",{type:"file",onChange:function(n){return Ce(n,e.fqpcode,e.fdeggrp,e.fexamno,t)}}),i.a.createElement("p",{style:{color:"#00b5ae"}},V===t&&G),i.a.createElement("a",{target:"_blank",href:n+e.fqppath},"View"))),i.a.createElement("td",{style:{width:"150px"}},i.a.createElement("div",{style:{display:"flex",justifyContent:"space-evenly"}},i.a.createElement("input",{type:"file",onChange:function(n){return Le(n,e.fqpcode,e.fdeggrp,e.fexamno,t)}}),i.a.createElement("p",{style:{color:"#00b5ae"}},$===t&&U),i.a.createElement("a",{target:"_blank",href:n+e.fschempath},"View"))),i.a.createElement("td",{style:{width:"150px"}},i.a.createElement("div",null,i.a.createElement(p.a,{style:{width:"60%"},placeholder:"Select Temp Code",selection:!0,search:!0,value:e.ftempcode,options:be,onChange:function(t,n){return function(e,t){var n=M.map(function(n,r){return n.fqpcode==t.fqpcode&&(n.ftempcode=e.value,n.fstatus="T"),n});N(Object(oe.a)(n))}(n,e)}}),""!=e.ftempcode?i.a.createElement("a",{target:"_blank",onClick:function(){return t=e.ftempcode,void window.open(K.c+"tdvsQpPatranTest&univcode="+localStorage.getItem("univcode")+"&tempcode="+t);var t},style:{marginLeft:"30px"}},"View"):null)),i.a.createElement("td",{style:{textAlign:"center"}},i.a.createElement("input",{type:"checkbox",value:e.ffreeze,checked:"T"==e.ffreeze,onChange:function(t){return function(e,t){var n=M.map(function(n){return n.fqpcode==t.fqpcode&&(e.target.checked?(n.ffreeze="T",n.fstatus="T"):(n.ffreeze="F",n.fstatus="T")),n});N(Object(oe.a)(n))}(t,e)}})))}):i.a.createElement("tr",{style:{height:"40px",textAlign:"center"}},i.a.createElement("td",{colSpan:6},"No Data Found")))))))};function qv(){qv=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Yv=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=(e.confirm_err_msg,e.auth_token,Object(o.useState)(!1)),l=Object(a.a)(c,2),u=l[0],s=l[1],f=Object(o.useState)([]),d=Object(a.a)(f,2),h=d[0],v=d[1],g=Object(o.useState)(null),y=Object(a.a)(g,2),b=y[0],w=y[1],E=Object(o.useState)([]),x=Object(a.a)(E,2),O=x[0],j=x[1],k=Object(o.useState)(null),S=Object(a.a)(k,2),_=S[0],C=S[1],L=Object(a.a)(n,2),A=(L[0],L[1]),P=Object(a.a)(t,2),M=(P[0],P[1]),N=localStorage.getItem("fteachcode"),T=Object(o.useState)(!1),I=Object(a.a)(T,2),F=I[0],D=I[1],R=Object(o.useState)([]),G=Object(a.a)(R,2),B=G[0],H=G[1],z=Object(o.useState)(""),V=Object(a.a)(z,2),q=V[0],Y=V[1],W=Object(o.useState)(!0),U=Object(a.a)(W,2),X=(U[0],U[1],Object(o.useState)("")),K=Object(a.a)(X,2),J=K[0],Z=K[1],$=Object(o.useState)([]),ae=Object(a.a)($,2),ie=ae[0],ce=ae[1],se=0;Object(o.useEffect)(function(){fe()},[]);var fe=function(){var e=Object(r.a)(qv().mark(function e(){var t,n,r;return qv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,M(!0),e.next=4,ee.get("/admin/get-deggrp?fusercode=".concat(N));case 4:if(0!=(t=e.sent).data.status){e.next=12;break}n=[{key:"All",value:"All",text:"All"}],r=t.data.result.res.map(function(e,t){return{key:e.fdeggrp,value:e.fdeggrp,text:e.fdescpn}}),ce([].concat(n,Object(oe.a)(r))),v([]),e.next=14;break;case 12:throw v([]),new Error(t.data.msg);case 14:M(!1),e.next=21;break;case 17:e.prev=17,e.t0=e.catch(0),M(!1),A({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 21:case"end":return e.stop()}},e,null,[[0,17]])}));return function(){return e.apply(this,arguments)}}(),de=function(){var e=Object(r.a)(qv().mark(function e(t){var n;return qv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return D(!1),e.prev=1,M(!0),e.next=5,Q.a.get("https://universitysolutions.in/univadmin/app.php?a=tdvs_getTeachDet&univcode=".concat(localStorage.getItem("univcode"),"&fdeggrp=").concat(t));case 5:0==(n=e.sent).data.error_code?v(n.data.data.map(function(e){return{key:e.fteachcode,value:e.fteachcode,text:e.fteachname}})):(v([]),C(n.data.data.msg)),M(!1),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(1),M(!1),A({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 14:case"end":return e.stop()}},e,null,[[1,10]])}));return function(t){return e.apply(this,arguments)}}(),he=function(){var e=Object(r.a)(qv().mark(function e(){var t;return qv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(D(!1),null!==J&&""!==J){e.next=4;break}return A({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Degree Group..!"}}),e.abrupt("return");case 4:if(null!==b&&""!==b){e.next=7;break}return A({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Teacher Code..!"}}),e.abrupt("return");case 7:return e.prev=7,M(!0),e.next=11,Q.a.get("https://universitysolutions.in/univadmin/app.php?a=getValuationCount&univcode=".concat(localStorage.getItem("univcode"),"&fteachcode=").concat(b,"&fdeggrp=").concat(J));case 11:0==(t=e.sent).data.error_code?(j(t.data.data),s(!0)):(s(!0),j([]),C(t.data.data.msg)),M(!1),e.next=20;break;case 16:e.prev=16,e.t0=e.catch(7),M(!1),A({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 20:case"end":return e.stop()}},e,null,[[7,16]])}));return function(){return e.apply(this,arguments)}}(),pe=function(){var e=Object(r.a)(qv().mark(function e(t,n){var r;return qv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,M(!0),e.next=4,Q.a.get("https://universitysolutions.in/univadmin/app.php?a=getValuationCountDetails&univcode=".concat(localStorage.getItem("univcode"),"&fteachcode=").concat(b,"&qpcode=").concat(t,"&valno=").concat(n));case 4:0==(r=e.sent).data.error_code?(D(!0),H(r.data.data),s(!1)):(j([]),C(r.data.data.msg)),M(!1),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),M(!1),A({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 13:case"end":return e.stop()}},e,null,[[0,9]])}));return function(t,n){return e.apply(this,arguments)}}(),me=function(){var e=Object(r.a)(qv().mark(function e(t,n,r){return qv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:try{window.open("https://universitysolutions.in/univadmin/app.php?a=getPhotoCopyDet&univcode=".concat(localStorage.getItem("univcode"),"&qpcode=").concat(t,"®code=").concat(n,"&valno=").concat(r))}catch(a){M(!1),A({type:"OPEN_MSG_BOX",payload:{header:"Message",message:a.message}})}case 1:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{position:"fixed",width:"98%",padding:"10px"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Teacher Valuation Statistics",i.a.createElement(ne.a,{floated:"right",size:"small",color:"black",onClick:function(){return s(!1),w(""),j([]),D(!1),void H([])}},"Clear"),i.a.createElement(re.a,null))),i.a.createElement(te.a.Description,{style:{height:"580px"}},i.a.createElement("div",null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Degree Group"),i.a.createElement(p.a,{style:{width:"100%"},selection:!0,search:!0,placeholder:"Select Degree",name:"Degree",value:J,options:ie,onChange:function(e,t){Z(t.value),de(t.value)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Teach Code"),i.a.createElement(p.a,{style:{width:"100%"},selection:!0,search:!0,placeholder:"Select Teach Code",options:h,name:"Teachcode",value:b,onChange:function(e,t){w(t.value)}})),!1===F?i.a.createElement(le.a.Field,{width:"4"},i.a.createElement(ne.a,{primary:!0,style:{position:"absolute",bottom:0},onClick:function(){return he()}},"View")):i.a.createElement("div",null,i.a.createElement(le.a.Field,null,i.a.createElement(ue.a,{type:"text",icon:"search",placeholder:"Search Reg. Code",name:"search",style:{position:"absolute",bottom:0,width:"66%"},value:q,onChange:function(e,t){Y(t.value)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement(ne.a,{size:"small",basic:!0,color:"blue",content:"Back",icon:"angle double left",style:{position:"absolute",bottom:0,right:20},onClick:function(){D(!1),s(!0)}})))))),u&&i.a.createElement("div",{style:{height:"86%",width:"100%",overflowY:"scroll"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("th",null,"Sl. No."),i.a.createElement("th",null,"Teacher Code"),i.a.createElement("th",null,"Teacher Name"),i.a.createElement("th",null,"QP Code"),i.a.createElement("th",null,"Subject Name"),i.a.createElement("th",null,"Valuation Number"),i.a.createElement("th",null,"Count"),i.a.createElement("th",null,"Action")),O.length>0?O.map(function(e,t){return se+=parseFloat(e.fcount),i.a.createElement("tr",null,i.a.createElement("td",{align:"center",width:"50px"},t+1),i.a.createElement("td",{align:"center",width:"120px"},e.fteachcode),i.a.createElement("td",{style:{paddingLeft:"10px"}},e.fteachname),i.a.createElement("td",{align:"center",width:"120px"},e.fqpcode),i.a.createElement("td",{style:{paddingLeft:10}},e.fsubname),i.a.createElement("td",{align:"center",width:"100px"},e.fvalno),i.a.createElement("td",{align:"center"},e.fcount),i.a.createElement("td",{align:"center",width:"100px"},i.a.createElement("h4",{style:{color:"#2185d0",cursor:"pointer"},onClick:function(){return pe(e.fqpcode,e.fvalno)}},"View")))}):i.a.createElement("tr",null,i.a.createElement("td",{align:"center",colSpan:9},_)),i.a.createElement("tr",{style:{fontWeight:"bold"}},i.a.createElement("td",{colSpan:5,align:"center"},"Total"),i.a.createElement("td",{colSpan:3,align:"center"},se)))),F&&i.a.createElement("div",{style:{height:"86%",width:"100%",overflowY:"scroll"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("td",null,"Sl. No."),i.a.createElement("td",null,"QP Code"),i.a.createElement("td",null,"Subject Name"),i.a.createElement("td",null,"Reg. Code"),i.a.createElement("td",null,"Valuation Number"),i.a.createElement("td",null,"Marks"),i.a.createElement("th",null,"Scr. Start Date"),i.a.createElement("th",null,"Scr. End Date"),i.a.createElement("th",null,"Status"),i.a.createElement("td",null,"Action")),B.filter(function(e){return e.FREGCODE.toLowerCase().includes(q)}).map(function(e,t){return e.FFILEPATH,i.a.createElement("tr",null,i.a.createElement("td",{align:"center",width:"50px"},t+1),i.a.createElement("td",{align:"center",width:"80px"},e.fqpcode),i.a.createElement("td",{style:{paddingLeft:10}},e.fsubname),i.a.createElement("td",{align:"center",width:"120px"},e.FREGCODE),i.a.createElement("td",{align:"center",width:"70px"},e.FVALNO),i.a.createElement("td",{align:"center"},e.FSYSMARKS),i.a.createElement("td",{align:"center",width:"200px"},e.FSTDATE),i.a.createElement("td",{align:"center",width:"200px"},e.FENDATE),i.a.createElement("td",{align:"center",width:"70px"},e.fstatus),i.a.createElement("td",{align:"center"},i.a.createElement("h4",{style:{color:"#2185d0",cursor:"pointer"},onClick:function(){return me(e.fqpcode,e.FREGCODE,e.FVALNO)}},"View")))})))))};function Wv(){Wv=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Uv=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=(e.confirm_err_msg,e.auth_token,Object(o.useState)(null)),l=Object(a.a)(c,2),u=l[0],s=l[1],f=Object(o.useState)([]),d=Object(a.a)(f,2),h=d[0],p=d[1],v=Object(o.useState)(!1),g=Object(a.a)(v,2),y=g[0],b=g[1],w=Object(a.a)(n,2),E=(w[0],w[1]),x=Object(a.a)(t,2),O=(x[0],x[1]),j=function(){var e=Object(r.a)(Wv().mark(function e(){return Wv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(O(!0),null!==u&&""!==u){e.next=5;break}return E({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Reg Code..!"}}),O(!1),e.abrupt("return");case 5:return e.next=7,Q()({method:"GET",url:"https://universitysolutions.in/univadmin/app.php?a=getRegcodeDetails&univcode=".concat(localStorage.getItem("univcode"),"®code=").concat(u),header:{"Content-Type":"application/json"}}).then(function(e){0===e.data.error_code?p(e.data.data):p([]),b(!0)});case 7:O(!1);case 8:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),k=function(){var e=Object(r.a)(Wv().mark(function e(t,n,r){return Wv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:try{window.open("https://universitysolutions.in/univadmin/app.php?a=getPhotoCopyDet&univcode=".concat(localStorage.getItem("univcode"),"&qpcode=").concat(t,"®code=").concat(n,"&valno=").concat(r))}catch(a){O(!1),E({type:"OPEN_MSG_BOX",payload:{header:"Message",message:a.message}})}case 1:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{position:"fixed",width:"98%",padding:"10px"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Regcode Valuation Details",i.a.createElement(ne.a,{floated:"right",size:"small",color:"black",onClick:function(){s(""),p([]),b(!1)}},"Clear")),i.a.createElement(re.a,null)),i.a.createElement(te.a.Description,{style:{height:"580px"}},i.a.createElement("div",null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Register Code"),i.a.createElement(ue.a,{autoFocus:!0,type:"text",placeholder:"Register Code",name:"regcode",value:u,onChange:function(e,t){s(t.value.toUpperCase())}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement(ne.a,{primary:!0,style:{position:"absolute",bottom:0},onClick:function(){return j()}},"View"))))),y&&i.a.createElement("div",{style:{height:"88%",width:"100%",overflowY:"scroll"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("td",null,"Sl. No."),i.a.createElement("td",null,"Reg. Code"),i.a.createElement("td",null,"Teacher Code"),i.a.createElement("td",null,"Teacher Name"),i.a.createElement("td",null,"QP Code"),i.a.createElement("td",null,"Subject Name"),i.a.createElement("td",null,"Valuation Number"),i.a.createElement("td",null,"Marks"),i.a.createElement("td",null," Scr. Start Date"),i.a.createElement("td",null," Scr. End Date"),i.a.createElement("td",null,"Status"),i.a.createElement("td",null,"View")),0!==h.length?h.map(function(e,t){return i.a.createElement("tr",null,i.a.createElement("td",{align:"center",width:"50px"},t+1),i.a.createElement("td",{align:"center",width:"120px"},e.fregcode),i.a.createElement("td",{align:"center",width:"80px"},e.fteachcode),i.a.createElement("td",{style:{paddingLeft:10}},e.fteachname),i.a.createElement("td",{align:"center",width:"80px"},e.fqpcode),i.a.createElement("td",{style:{paddingLeft:10}},e.fsubname),i.a.createElement("td",{align:"center",width:"80px"},e.fvalno),i.a.createElement("td",{align:"center",width:"80px"},e.fsysmarks),i.a.createElement("td",{align:"center",width:"100px"},e.FSTDATE),i.a.createElement("td",{align:"center",width:"100px"},e.FENDATE),i.a.createElement("td",{align:"center",width:"70px"},e.fstatus),i.a.createElement("td",{align:"center",width:"80px"},i.a.createElement("h4",{style:{color:"#2185d0",cursor:"pointer"},onClick:function(){return k(e.fqpcode,e.fregcode,e.fvalno)}},"View")))}):i.a.createElement("tr",null,i.a.createElement("td",{align:"center",colSpan:12},"No Data Found"))))))};function Xv(){Xv=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Qv=function(e){var t=Object(o.useContext)(m.a),n=t.load,u=t.err_msg,s=Object(c.useHistory)(),f=Object(a.a)(n,2),d=(f[0],f[1]),h=Object(a.a)(u,2),v=(h[0],h[1]),g=Object(o.useState)(""),y=Object(a.a)(g,2),b=y[0],w=y[1],E=Object(o.useState)(""),x=Object(a.a)(E,2),O=x[0],j=x[1],k=Object(o.useState)(""),S=Object(a.a)(k,2),_=S[0],C=S[1],L=Object(o.useState)(""),A=Object(a.a)(L,2),P=A[0],M=A[1],N=Object(o.useState)(""),T=Object(a.a)(N,2),I=T[0],F=T[1],D=Object(o.useState)(""),R=Object(a.a)(D,2),G=R[0],B=R[1],H=Object(o.useState)(""),z=Object(a.a)(H,2),V=z[0],q=z[1],Y=Object(o.useState)(""),W=Object(a.a)(Y,2),U=W[0],X=W[1],J=Object(o.useState)("0"),Z=Object(a.a)(J,2),$=Z[0],ee=Z[1],re=Object(o.useState)("0"),ae=Object(a.a)(re,2),oe=ae[0],ie=ae[1],ce=Object(o.useState)("0"),se=Object(a.a)(ce,2),fe=se[0],de=se[1],he=Object(o.useState)("0"),pe=Object(a.a)(he,2),me=pe[0],ve=pe[1],ge=Object(o.useState)(!1),ye=Object(a.a)(ge,2),be=ye[0],we=ye[1],Ee=Object(o.useState)(""),xe=Object(a.a)(Ee,2),Oe=xe[0],je=xe[1],ke=Object(o.useState)("F"),Se=Object(a.a)(ke,2),_e=Se[0],Ce=Se[1],Le=Object(o.useState)(""),Ae=Object(a.a)(Le,2),Pe=Ae[0],Me=Ae[1],Ne=Object(o.useState)(3),Te=Object(a.a)(Ne,2),Ie=Te[0],Fe=Te[1],De=Object(o.useState)(""),Re=Object(a.a)(De,2),Ge=Re[0],Be=Re[1];Object(o.useEffect)(function(){var t=e.match.params;void 0!=t&&(w(t.deggrp),He(t.deggrp),we(t.boolean))},[]);var He=function(){var e=Object(r.a)(Xv().mark(function e(t){return Xv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return d(!0),e.next=3,Q.a.get(K.b+"a=tdvs_getDeggrpData&univcode="+localStorage.getItem("univcode")+"°grp="+t).then(function(e){0===e.data.error_code&&(j(e.data.data.FDESCPN),C(e.data.data.FYEAR),M(e.data.data.FEXAMTYPE),F(e.data.data.FEXAMDATE),B(e.data.data.FNOVAL),q(e.data.data.FSCRIPTS),X(e.data.data.FSCRPERDAY),ee(e.data.data.FREMUNERATION1),ie(e.data.data.FREMUNERATION2),de(e.data.data.FDAAMT),ve(e.data.data.FTAX),je(e.data.data.FDEVIATION),Ce(e.data.data.FDEVSTATUS),Me(e.data.data.FSCNDVALCND),Fe(e.data.data.FMINAMOUNT),Be(e.data.data.FVERVAL))}).catch(function(e){d(!1)});case 3:d(!1);case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),ze=function(){w(""),j(""),C(""),M(""),F(""),we(!1),B(""),q(""),X(""),ee(""),ie(""),de(""),ve(""),Be(""),s.push("/admin/createxam/1/1")},Ve=function(){var e=Object(r.a)(Xv().mark(function e(){var t,n;return Xv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,""!=b&&void 0!=b){e.next=4;break}return alert("Enter Degree Group"),e.abrupt("return");case 4:if(""!=O&&void 0!=O){e.next=7;break}return alert("Enter Degree"),e.abrupt("return");case 7:return(t=new FormData).append("univcode",localStorage.getItem("univcode")),t.append("fdeggrp",b),t.append("fdegree",O),t.append("fyear",_),t.append("fexamtyp",P),t.append("fexamdate",I),t.append("disab",be),t.append("fvalno",G),t.append("fscript",V),t.append("fscrperday",U),t.append("frem1",$),t.append("frem2",oe),t.append("fdaa",fe),t.append("ftax",me),t.append("deviation",Oe),t.append("devstatus",_e),t.append("secVal",Pe),t.append("minAmt",Ie),t.append("valtype",Ge),e.next=29,Q.a.post(K.b+"a=saveCreateExam",t);case 29:if(0!=(n=e.sent).data.error_code){e.next=35;break}v({type:"OPEN_MSG_BOX",payload:{header:"Success",message:"Updated Successfully..!"}}),ze(),e.next=36;break;case 35:throw new Error(n.data.data.msg);case 36:d(!1),e.next=43;break;case 39:e.prev=39,e.t0=e.catch(0),d(!1),v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 43:case"end":return e.stop()}},e,null,[[0,39]])}));return function(){return e.apply(this,arguments)}}(),qe=/^[0-9\b]+$/;return i.a.createElement(te.a,{style:{position:"fixed",width:"98%",padding:"10px"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Create Exam",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black",onClick:function(){ze()},width:2},"Clear"),i.a.createElement(l.b,{to:"/admin/viewCreateExam"},i.a.createElement(ne.a,{floated:"right",color:"green",size:"mini",width:2},"View")),i.a.createElement(ne.a,{floated:"right",size:"mini",width:2,color:"blue",onClick:function(){Ve()}},"Save"))),i.a.createElement(te.a.Content,{style:{height:"600px"}},i.a.createElement("div",null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Degree Group"),i.a.createElement(ue.a,{type:"text",placeholder:"Degree Group",id:"fdeggrp",value:b,disabled:!!be,onChange:function(e,t){w(t.value.toUpperCase())},maxLength:10})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Degree Group Name"),i.a.createElement(ue.a,{type:"text",placeholder:"Degree Group Name",id:"fdegree",value:O,onChange:function(e,t){j(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Year"),i.a.createElement(ue.a,{type:"text",placeholder:"Year",id:"fyear",value:_,onChange:function(e,t){C(t.value.toUpperCase())},maxLength:4})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Exam Type"),i.a.createElement(ue.a,{type:"text",placeholder:"Exam Type",id:"fexamtyp",value:P,onChange:function(e,t){M(t.value.toUpperCase())},maxLength:1})),i.a.createElement(le.a.Field,{width:"3"},i.a.createElement("label",null,"Exam Date"),i.a.createElement(ue.a,{type:"text",placeholder:"Exam Date",id:"fexamdate",value:I,onChange:function(e,t){F(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"No. of Val."),i.a.createElement(ue.a,{type:"text",placeholder:"Val. No.",id:"fvalno",value:G,onChange:function(e,t){B(t.value)}})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Scripts Per Packet"),i.a.createElement(ue.a,{type:"text",placeholder:"Scripts Per Packet",id:"fscript",value:V,onChange:function(e,t){(""===t.value||qe.test(t.value))&&q(t.value)},maxLength:3})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Scripts Per Day"),i.a.createElement(ue.a,{type:"text",placeholder:"Scripts Per Day",id:"fscrperday",value:U,onChange:function(e,t){(""===t.value||qe.test(t.value))&&X(t.value)},maxLength:3})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Deviation Percentage"),i.a.createElement(ue.a,{type:"text",placeholder:"Deviation Percentage",id:"fscrperday",value:Oe,onChange:function(e,t){(""===t.value||qe.test(t.value))&&je(t.value)}})),i.a.createElement(le.a.Field,{width:"3"},i.a.createElement("label",null,"II Valuation Cond."),i.a.createElement(ue.a,{type:"text",placeholder:"II Valuation Cond.",id:"secDev",value:Pe,onChange:function(e,t){Me(t.value)}})),i.a.createElement(le.a.Field,{width:"3"},i.a.createElement("label",null,"Deviation Includes"),i.a.createElement("input",{style:{position:"absolute"},type:"checkbox",onChange:function(e){return function(e){e.target.checked?Ce("T"):Ce("F")}(e)},checked:"T"===_e}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Remuneration 1"),i.a.createElement(ue.a,{type:"text",id:"frem1",value:$,onChange:function(e,t){(""===t.value||qe.test(t.value))&&ee(t.value)}})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Remuneration 2"),i.a.createElement(ue.a,{type:"text",id:"frem2",value:oe,onChange:function(e,t){(""===t.value||qe.test(t.value))&&ie(t.value)}})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"DA"),i.a.createElement(ue.a,{type:"text",id:"fdaa",value:fe,onChange:function(e,t){(""===t.value||qe.test(t.value))&&de(t.value)}})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Tax"),i.a.createElement(ue.a,{type:"text",id:"ftax",value:me,onChange:function(e,t){(""===t.value||qe.test(t.value))&&ve(t.value)}})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Minimum Amount"),i.a.createElement(ue.a,{type:"text",id:"Minimum Amount",value:Ie,onChange:function(e,t){(""===t.value||qe.test(t.value))&&Fe(t.value)}})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Valuation Type"),i.a.createElement(p.a,{options:[{key:"1",value:"T",text:"Digital Valuation"},{key:"2",value:"F",text:"On Screen Marking"}],value:Ge,selection:!0,placeholder:"Enter QP code",onChange:function(e,t){return Be(t.value)}}))))),i.a.createElement("div",null)))};n(1166);function Kv(){Kv=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Jv=function(e){var t=Object(o.useContext)(m.a),n=t.load,u=t.err_msg,s=t.confirm_err_msg,f=(Object(c.useHistory)(),Object(a.a)(n,2)),d=(f[0],f[1]),h=Object(a.a)(u,2),p=(h[0],h[1]),v=Object(a.a)(s,2),g=(v[0],v[1],Object(o.useState)([])),y=Object(a.a)(g,2),b=y[0],w=y[1],E=Object(o.useState)([]),x=Object(a.a)(E,2),O=(x[0],x[1]),j=Object(o.useState)(""),k=Object(a.a)(j,2);k[0],k[1];Object(o.useEffect)(function(){S()},[]);var S=function(){var e=Object(r.a)(Kv().mark(function e(){var t;return Kv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return d(!0),e.prev=1,e.next=4,Q.a.get("https://universitysolutions.in/univadmin/app.php?a=createExamTab&univcode=".concat(localStorage.getItem("univcode"),"\n "));case 4:if(0!=(t=e.sent).data.error_code){e.next=10;break}w(t.data.data),O(t.data.result),e.next=11;break;case 10:throw new Error(t.data.msg);case 11:e.next=17;break;case 13:e.prev=13,e.t0=e.catch(1),d(!1),p({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 17:d(!1);case 18:case"end":return e.stop()}},e,null,[[1,13]])}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{position:"fixed",width:"98%",padding:"10px"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Create Exam View",i.a.createElement(ne.a,{floated:"right",width:2,color:"black"},"Clear"),i.a.createElement(l.b,{to:"/admin/createxam"},i.a.createElement(ne.a,{floated:"right",width:2,color:"blue"},"Back")))),i.a.createElement(te.a.Content,{style:{height:"530px"}},i.a.createElement("div",{style:{height:"100%",width:"100%",overflowY:"scroll"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("td",null,"Sl. No"),i.a.createElement("td",null,"Degree Group"),i.a.createElement("td",null,"Degree Group Name"),i.a.createElement("td",null,"Exam Year"),i.a.createElement("td",null,"Exam Type"),i.a.createElement("td",null,"Exam Date"),i.a.createElement("td",null,"Action")),b.map(function(e,t){return e.fexamdate.replace("/","*"),i.a.createElement("tr",{height:2,key:t},i.a.createElement("td",{align:"center",width:"60px"},t+1),i.a.createElement("td",{align:"center",width:"100px"},e.fdeggrp),i.a.createElement("td",{style:{paddingLeft:"10px"}},e.fdescpn),i.a.createElement("td",{align:"center",width:"80px"},e.fyear),i.a.createElement("td",{align:"center",width:"80px"},e.fexamtype),i.a.createElement("td",{style:{paddingLeft:"10px"}},e.fexamdate),i.a.createElement("td",{align:"center",width:"80px"},i.a.createElement(l.b,{to:{pathname:"/admin/createxam/".concat(e.fdeggrp,"/true/")}},i.a.createElement(ne.a,{icon:"edit",color:"green",className:"btn btn-outline-danger btn-sm"}))))})))))};function Zv(){Zv=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var $v=[],eg=function(e){var t=Object(c.useHistory)(),n=Object(o.useContext)(m.a),u=n.load,s=n.err_msg,f=Object(a.a)(u,2),d=(f[0],f[1]),p=Object(a.a)(s,2),v=(p[0],p[1]),g=Object(o.useState)(""),y=Object(a.a)(g,2),b=y[0],w=y[1],E=Object(o.useState)(""),x=Object(a.a)(E,2),O=x[0],j=x[1],k=Object(o.useState)(""),S=Object(a.a)(k,2),_=S[0],C=S[1],L=Object(o.useState)(nv()().format("DD/MM/YYYY")),A=Object(a.a)(L,2),P=A[0],M=A[1],N=Object(o.useState)(""),T=Object(a.a)(N,2),I=T[0],F=T[1],D=Object(o.useState)([]),R=Object(a.a)(D,2),G=R[0],B=R[1];Object(o.useEffect)(function(){void 0!==e.match.params.data?H(e.match.params.data):H()},[]);var H=function(){var e=Object(r.a)(Zv().mark(function e(t){return Zv().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return d(!0),$v=[],e.next=4,Q.a.get(K.b+"a=getMenuAndTeachDet&univcode="+localStorage.getItem("univcode")+"&teachcode="+t).then(function(e){if(0===e.data.error_code){var t=e.data.data.teach,n=e.data.data.menu;w(t.fmobile),j(t.fteachname),C(t.fgender),M(nv()(t.fdob).format("DD/MM/YYYY")),F(t.femail);var r=n.map(function(e,t){return""!==e.fteachcode&&(e.fstatus="T",$v.push(e.fmenucode)),e});B(Object(oe.a)(r))}});case 4:d(!1);case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),z=function(){var n=Object(r.a)(Zv().mark(function n(){var r,a;return Zv().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(""!==b){n.next=4;break}return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Mobile No"}}),d(!1),n.abrupt("return");case 4:return d(!0),r=$v.join("*")+"*",(a=new FormData).append("mobile",b),a.append("name",O),a.append("gender",_),a.append("dob",P),a.append("email",I),a.append("data",r),a.append("teachcode",e.match.params.data),n.next=16,Q.a.post(K.b+"a=saveCreateUser&univcode="+localStorage.getItem("univcode"),a).then(function(e){if(0!==e.data.error_code)return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void d(!1);v({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.data.msg}}),t.push("/admin/viewUsers")});case 16:d(!1);case 17:case"end":return n.stop()}},n)}));return function(){return n.apply(this,arguments)}}(),V=function(e,t){var n=G.map(function(n,r){return t.fmenucode===n.fmenucode&&(e.target.checked?(n.fstatus="T",$v.push(t.fmenucode)):($v.map(function(e,n){t.fmenucode===e&&$v.splice(n,1)}),n.fstatus="F")),n});B(Object(oe.a)(n))};return i.a.createElement(te.a,{style:{position:"fixed",width:"98%",padding:"10px"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Create User",i.a.createElement(ne.a,{floated:"right",color:"black",onClick:function(){return w(""),j(""),C(""),M(""),void F("")}},"Clear"),i.a.createElement(ne.a,{content:"Save",color:"green",floated:"right",onClick:function(){return z()}}),i.a.createElement(l.b,{to:{pathname:"/admin/viewUsers"}},i.a.createElement(ne.a,{content:"View",color:"blue",floated:"right",onClick:function(){}}))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,null,i.a.createElement(h.a,{columns:2,divided:!0},i.a.createElement(h.a.Row,null,i.a.createElement(h.a.Column,{width:6},i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement("label",null,"Name"),i.a.createElement(le.a.Input,{disabled:void 0!==e.match.params.data&&!0,placeholder:"Name",value:O,onChange:function(e,t){return j(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement("label",null,"Date of Birth"),i.a.createElement(av.a,{disabled:void 0!==e.match.params.data&&!0,name:"dob",formatChars:{n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"},placeholder:"Date of Birth (DD/MM/YYYY)",value:P,mask:"ed/nm/zyyy",onChange:function(e){M(e.target.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement("div",{onChange:function(e){return C(e.target.value)},style:{display:"flex",gap:"20px",marginLeft:"5px"}},i.a.createElement("div",null,i.a.createElement("b",null," Gender")),i.a.createElement("div",null,i.a.createElement("input",{disabled:void 0!==e.match.params.data&&!0,type:"radio",value:"Male",name:"gender",checked:"Male"===_&&"Male",style:{marginRight:"5px"}}),"Male"),i.a.createElement("div",null,i.a.createElement("input",{disabled:void 0!==e.match.params.data&&!0,type:"radio",value:"Female",name:"gender",checked:"Female"===_&&"Female",style:{marginRight:"5px"}}),"Female"),i.a.createElement("div",null,i.a.createElement("input",{disabled:void 0!==e.match.params.data&&!0,type:"radio",value:"Other",name:"gender",checked:"Other"===_&&"Other",style:{marginRight:"5px"}}),"Other")))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement("label",null,"Mobile No"),i.a.createElement(le.a.Input,{disabled:void 0!==e.match.params.data&&!0,placeholder:"Mobile No.",value:b,onChange:function(e,t){return w(t.value)},maxLength:10}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement("label",null,"Email"),i.a.createElement(le.a.Input,{disabled:void 0!==e.match.params.data&&!0,placeholder:"Email",value:I,onChange:function(e,t){return F(t.value)}}))))),i.a.createElement(h.a.Column,{width:10},i.a.createElement("div",{style:{height:"70vh",overflowY:"auto"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("td",null,"Sl. No."),i.a.createElement("td",null,"Menu Code"),i.a.createElement("td",null,"Menu Name"),i.a.createElement("td",null,"Action"))),i.a.createElement("tbody",null,G.length>0?G.map(function(e,t){return i.a.createElement("tr",{key:t},i.a.createElement("td",{style:{textAlign:"center"}},t+1),i.a.createElement("td",{style:{textAlign:"center"}},e.fmenucode),i.a.createElement("td",{style:{paddingLeft:"20px"}},e.fmenuname),i.a.createElement("td",{style:{textAlign:"center"}},"T"===e.fstatus?i.a.createElement("input",{type:"checkbox",onChange:function(t){return V(t,e)},checked:!0}):i.a.createElement("input",{type:"checkbox",onChange:function(t){return V(t,e)},checked:!1})))}):i.a.createElement("tr",null,i.a.createElement("td",{colSpan:4},"No Data Found")))))))))))};function tg(){tg=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var ng=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),u=(c[0],c[1]),s=Object(a.a)(n,2),f=(s[0],s[1]),d=Object(o.useState)([]),h=Object(a.a)(d,2),p=h[0],v=h[1];Object(o.useEffect)(function(){g()},[]);var g=function(){var e=Object(r.a)(tg().mark(function e(){return tg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),e.next=3,Q.a.get(K.b+"a=getTdvsUserMenu&univcode="+localStorage.getItem("univcode")).then(function(e){if(0!==e.data.error_code)return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void u(!1);v(e.data.data)});case 3:u(!1);case 4:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{width:"100%",border:"1px solid #d1d8df"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Create User",i.a.createElement(l.b,{to:{pathname:"/admin/createuser/"}},i.a.createElement(ne.a,{content:"Back",color:"blue",icon:"angle double left",floated:"right"}))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,null,i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("td",null,"Sl. No."),i.a.createElement("td",null,"Teacher Code"),i.a.createElement("td",null,"Name"),i.a.createElement("td",null,"Mobile No"),i.a.createElement("td",null,"DOB"),i.a.createElement("td",null,"Action"))),i.a.createElement("tbody",null,p.length>0?p.map(function(e,t){return i.a.createElement("tr",{key:t},i.a.createElement("td",{style:{textAlign:"center"}},t+1),i.a.createElement("td",{style:{textAlign:"center"}},e.fteachcode),i.a.createElement("td",{style:{paddingLeft:"20px"}},e.fteachname),i.a.createElement("td",{style:{textAlign:"center"}},e.fmobile),i.a.createElement("td",{style:{textAlign:"center"}},e.fdob),i.a.createElement("td",{style:{textAlign:"center"}},i.a.createElement(l.b,{to:{pathname:"/admin/createuser/".concat(e.fteachcode)}},i.a.createElement(ne.a,{content:"Edit",icon:"edit",color:"green"}))))}):i.a.createElement("tr",null,i.a.createElement("td",{colSpan:5},"No Data Found")))))))};function rg(){rg=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var ag=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),u=(c[0],c[1]),s=Object(a.a)(n,2),f=(s[0],s[1]),d=Object(o.useState)(""),h=Object(a.a)(d,2),p=h[0],v=h[1],g=Object(o.useState)(""),y=Object(a.a)(g,2),b=y[0],w=y[1],E=Object(o.useState)(""),x=Object(a.a)(E,2),O=x[0],j=x[1],k=function(){var e=Object(r.a)(rg().mark(function e(){var t;return rg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==p){e.next=5;break}return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Old Password"}}),e.abrupt("return");case 5:if(""!==b){e.next=10;break}return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter New Password"}}),e.abrupt("return");case 10:if(""!==O){e.next=15;break}return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Confirm Password"}}),e.abrupt("return");case 15:if(b===O){e.next=20;break}return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"New Password and Confirm Password should be same"}}),e.abrupt("return");case 20:return u(!0),(t=new FormData).append("oldpassword",p),t.append("newpassword",b),t.append("teachcode",localStorage.getItem("fteachcode")),e.next=27,Q.a.post(K.b+"a=change_tdvs_user_pwd&univcode="+localStorage.getItem("univcode"),t).then(function(e){if(0!==e.data.error_code)return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void u(!1);f({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.data.msg}})});case 27:u(!1);case 28:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{position:"fixed",width:"98%",padding:"10px"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("h4",null,"Change Password"),i.a.createElement(l.b,{to:{pathname:"/admin"}},i.a.createElement(ne.a,{content:"Exit",color:"red"}))),i.a.createElement(re.a,null)),i.a.createElement(te.a.Description,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Old Password"),i.a.createElement(le.a.Input,{placeholder:"Old Password",value:p,onChange:function(e,t){return v(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"New Password"),i.a.createElement(le.a.Input,{placeholder:"New Password",value:b,onChange:function(e,t){return w(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Confirm Password"),i.a.createElement(le.a.Input,{placeholder:"Confirm Password",value:O,onChange:function(e,t){return j(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement(ne.a,{content:"Change Password",color:"green",onClick:function(){return k()}}))))))};function og(){og=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var ig=[{key:"All",text:"All",value:"All"}],cg=[],lg=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),u=(c[0],c[1]),s=Object(a.a)(n,2),f=(s[0],s[1]),d=Object(o.useState)(!1),h=Object(a.a)(d,2),v=h[0],g=h[1],y=Object(o.useState)(["All"]),b=Object(a.a)(y,2),w=b[0],E=b[1],x=Object(o.useState)(""),O=Object(a.a)(x,2),j=O[0],k=O[1],S=Object(o.useState)("All"),_=Object(a.a)(S,2),C=_[0],L=_[1],A=Object(o.useState)(""),P=Object(a.a)(A,2),M=P[0],N=P[1],T=Object(o.useState)([]),I=Object(a.a)(T,2),F=I[0],D=I[1],R=[{key:"registered",text:"Registered",value:"registered"},{key:"not_registered",text:"Not Registered",value:"not_registered"}];Object(o.useEffect)(function(){G()},[]);var G=function(){var e=Object(r.a)(og().mark(function e(){return og().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u(!0),e.next=4,Q.a.get(K.b+"a=tdvs_getTeacher&univcode="+localStorage.getItem("univcode")).then(function(e){if(0!==e.data.error_code)throw u(!1),new Error(e.data.data.msg);k([].concat(ig,Object(oe.a)(e.data.data))),N([].concat(ig,R))});case 4:u(!1),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}},e,null,[[0,7]])}));return function(){return e.apply(this,arguments)}}(),B=function(){var e=Object(r.a)(og().mark(function e(){return og().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),cg=[],e.prev=2,e.next=5,Q.a.get(K.b+"a=tdvs_get_mail_data&univcode="+localStorage.getItem("univcode")+"&teacher="+w+"&status="+C).then(function(e){if(0!==e.data.error_code)return D([]),f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void u(!1);D(e.data.data),g(!0)});case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),u(!1);case 10:u(!1);case 11:case"end":return e.stop()}},e,null,[[2,7]])}));return function(){return e.apply(this,arguments)}}(),H=function(){var e=Object(r.a)(og().mark(function e(t,n){return og().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:F.map(function(e,r){if(e.fteachcode===n.fteachcode)if(t.target.checked){var a={};a.fteachcode=e.fteachcode,a.fmobile=e.fmobile,a.femail=e.femail,cg.push(a)}else cg.map(function(e,t){n.fteachcode===e.fteachcode&&cg.splice(t,1)})});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),z=function(){var e=Object(r.a)(og().mark(function e(){var t;return og().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),(t=new FormData).append("data",JSON.stringify(cg)),e.next=5,Q.a.post(K.b+"a=tdvs_sendTeacherMail&univcode="+localStorage.getItem("univcode"),t).then(function(e){if(0!==e.data.error_code)return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void u(!1);f({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.data.msg}})});case 5:u(!1);case 6:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{position:"fixed",width:"98%",padding:"10px"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("h4",null,"Send Mail"),i.a.createElement("div",null,v&&i.a.createElement(ne.a,{content:"Send",color:"green",onClick:function(){return z()}}),i.a.createElement(l.b,{to:{pathname:"/admin"}},i.a.createElement(ne.a,{content:"Exit",color:"red"})))),i.a.createElement(re.a,null)),i.a.createElement(te.a.Description,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Teachers"),i.a.createElement(p.a,{multiple:!0,search:!0,selection:!0,name:"teacher",value:w,options:j,onChange:function(e,t){return E(t.value)}})),i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Status"),i.a.createElement(p.a,{search:!0,selection:!0,name:"status",value:C,options:M,onChange:function(e,t){return L(t.value)}})),i.a.createElement(le.a.Field,{width:4},i.a.createElement(ne.a,{style:{position:"relative",top:"23px"},content:"Submit",color:"blue",onClick:function(){return B()}})))),v&&i.a.createElement("div",{style:{height:"60vh",overflowY:"auto"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("td",null,"Sl. No."),i.a.createElement("td",null,"Teach Code"),i.a.createElement("td",null,"TeacherName"),i.a.createElement("td",null,"Mobile"),i.a.createElement("td",null,"Email"),i.a.createElement("td",null,"Status"),i.a.createElement("td",null,"Action"))),i.a.createElement("tbody",null,F.length>0?F.map(function(e,t){return i.a.createElement("tr",{key:t},i.a.createElement("td",{style:{textAlign:"center"}},t+1),i.a.createElement("td",{style:{textAlign:"center"}},e.fteachcode),i.a.createElement("td",{style:{paddingLeft:"10px"}},e.fteachname),i.a.createElement("td",{style:{textAlign:"center"}},e.fmobile),i.a.createElement("td",{style:{paddingLeft:"10px"}},e.femail),i.a.createElement("td",{style:{textAlign:"center"}},e.fstatus),i.a.createElement("td",{style:{textAlign:"center"}},i.a.createElement("input",{type:"checkbox",onChange:function(t){return H(t,e)}})))}):i.a.createElement("tr",null,i.a.createElement("td",{colSpan:7,style:{textAlign:"center"}},"No Data Found")))))))};function ug(){ug=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var sg=[],fg=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),u=(c[0],c[1]),s=Object(a.a)(n,2),f=(s[0],s[1]),d=Object(o.useState)(""),h=Object(a.a)(d,2),v=h[0],g=h[1],y=Object(o.useState)(""),b=Object(a.a)(y,2),w=b[0],E=b[1],x=Object(o.useState)([]),O=Object(a.a)(x,2),j=O[0],k=O[1],S=Object(o.useState)(!1),_=Object(a.a)(S,2),C=_[0],L=_[1];Object(o.useEffect)(function(){A()},[]);var A=function(){var e=Object(r.a)(ug().mark(function e(){return ug().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),e.prev=1,e.next=4,Q.a.get(K.b+"a=tdvs_getCenters&univcode="+localStorage.getItem("univcode")).then(function(e){if(0!==e.data.error_code)return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void u(!1);E(e.data.data)});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),u(!1);case 9:u(!1);case 10:case"end":return e.stop()}},e,null,[[1,6]])}));return function(){return e.apply(this,arguments)}}(),P=function(){var e=Object(r.a)(ug().mark(function e(){return ug().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==v){e.next=3;break}return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Center"}}),e.abrupt("return");case 3:return u(!0),sg=[],e.prev=5,e.next=8,Q.a.get(K.b+"a=tdvs_getValuationCenter&univcode="+localStorage.getItem("univcode")+"¢ercode="+v).then(function(e){if(0!==e.data.error_code)return k([]),f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void u(!1);var t=e.data.data.map(function(e,t){return""!==e.fcntrcode&&(e.fstatus="T"),e});k(Object(oe.a)(t)),L(!0)});case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),u(!1);case 13:u(!1);case 14:case"end":return e.stop()}},e,null,[[5,10]])}));return function(){return e.apply(this,arguments)}}(),M=function(e,t){var n=j.map(function(n,r){return t.fteachcode===n.fteachcode&&(e.target.checked?(n.fcntrcode=v,n.fstatus="T"):(n.fcntrcode="",n.fstatus="F")),n});k(Object(oe.a)(n))},N=function(){var e=Object(r.a)(ug().mark(function e(){var t;return ug().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),sg=[],j.map(function(e,t){if("T"===e.fstatus||"F"===e.fstatus){var n={};n.fteachcode=e.fteachcode,n.fcntrcode=e.fcntrcode,n.fstatus=e.fstatus,sg.push(n)}}),(t=new FormData).append("data",JSON.stringify(sg)),e.next=7,Q.a.post(K.b+"a=tdvs_saveCenterForTeacher&univcode="+localStorage.getItem("univcode"),t).then(function(e){if(0!==e.data.error_code)return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void u(!1);f({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.data.msg}})});case 7:u(!1);case 8:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{position:"fixed",width:"98%",padding:"10px"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("h4",null,"Valuation Center"),i.a.createElement("div",null,i.a.createElement(ne.a,{content:"Save",color:"green",onClick:function(){return N()}}),i.a.createElement(l.b,{to:{pathname:"/admin"}},i.a.createElement(ne.a,{content:"Exit",color:"red"})))),i.a.createElement(re.a,null)),i.a.createElement(te.a.Description,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:8},i.a.createElement("label",null,"Center"),i.a.createElement(p.a,{search:!0,selection:!0,placeholder:"centers",name:"center",value:v,options:w,onChange:function(e,t){return g(t.value)}})),i.a.createElement(le.a.Field,{width:4},i.a.createElement(ne.a,{style:{position:"relative",top:"23px"},content:"Submit",color:"blue",onClick:function(){return P()}})))),C&&i.a.createElement("div",{style:{height:"60vh",overflowY:"auto"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("td",null,"Sl. No."),i.a.createElement("td",null,"Teach Code"),i.a.createElement("td",null,"Teacher Name"),i.a.createElement("td",null,"Mobile No."),i.a.createElement("td",null,"Email ID"),i.a.createElement("td",null,"Center Code"),i.a.createElement("td",null,"Action ",i.a.createElement("br",null),i.a.createElement("input",{type:"checkbox",onChange:function(e){return function(e){var t=j.map(function(t,n){return e.target.checked?(t.fstatus="T",t.fcntrcode=v):(t.fstatus="F",t.fcntrcode=""),t});k(Object(oe.a)(t))}(e)}})))),i.a.createElement("tbody",null,j.length>0?j.map(function(e,t){return i.a.createElement("tr",{key:t},i.a.createElement("td",{style:{textAlign:"center"}},t+1),i.a.createElement("td",{style:{textAlign:"center"}},e.fteachcode),i.a.createElement("td",{style:{paddingLeft:"10px"}},e.fteachname),i.a.createElement("td",{style:{textAlign:"center"}},e.fmobile),i.a.createElement("td",{style:{paddingLeft:"10px"}},e.femail),i.a.createElement("td",{style:{textAlign:"center"}},e.fcntrcode),i.a.createElement("td",{style:{textAlign:"center"}},"T"===e.fstatus?i.a.createElement("input",{type:"checkbox",onChange:function(t){return M(t,e)},checked:!0}):i.a.createElement("input",{type:"checkbox",onChange:function(t){return M(t,e)},checked:!1})))}):i.a.createElement("tr",null,i.a.createElement("td",{style:{textAlign:"center"},colSpan:6},"No data Found")))))))},dg=function(e){var t=e.data;return Object(o.useEffect)(function(){},[]),i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Sl. No."),i.a.createElement("th",null,"Teach Code"),i.a.createElement("th",null,"QP Code"),i.a.createElement("th",null,"Sub Name"),i.a.createElement("th",null,"Val. No."),i.a.createElement("th",null,"Batch No."),i.a.createElement("th",null,"Status"))),i.a.createElement("tbody",null,t.length>0?t.map(function(e,t){return i.a.createElement("tr",{key:t},i.a.createElement("td",{style:{textAlign:"center"}},t+1),i.a.createElement("td",{style:{textAlign:"center"}},e.fteachcode),i.a.createElement("td",{style:{textAlign:"center"}},e.fqpcode),i.a.createElement("td",{style:{paddingLeft:"10px"}},e.fsubname),i.a.createElement("td",{style:{textAlign:"center"}},e.fvalno),i.a.createElement("td",{style:{textAlign:"center"}},e.fbatchno),i.a.createElement("td",{style:{textAlign:"center"}},e.fstatus))}):i.a.createElement("tr",null,i.a.createElement("td",{style:{textAlign:"center"},colSpan:7},"No Data Found"))))};function hg(){hg=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var pg=[],mg=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),u=(c[0],c[1]),s=Object(a.a)(n,2),f=(s[0],s[1]),d=Object(o.useState)(""),h=Object(a.a)(d,2),p=h[0],v=h[1],g=Object(o.useState)([]),y=Object(a.a)(g,2),b=y[0],w=y[1],E=Object(o.useState)([]),x=Object(a.a)(E,2),O=x[0],j=x[1],k=Object(o.useState)(!1),S=Object(a.a)(k,2),_=S[0],C=S[1],L=Object(o.useState)(!1),A=Object(a.a)(L,2),P=A[0],M=A[1],N=function(){var e=Object(r.a)(hg().mark(function e(){return hg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:v(""),w([]),j([]),C(!1),M(!1);case 5:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),T=function(){var e=Object(r.a)(hg().mark(function e(){return hg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==p){e.next=3;break}return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Teacher Code"}}),e.abrupt("return");case 3:return u(!0),pg.length=0,e.next=7,Q.a.get(K.b+"a=tdvs_getBatchRejectScripts&univcode="+localStorage.getItem("univcode")+"&teachcode="+p).then(function(e){if(0!==e.data.error_code)return w([]),f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void u(!1);w(e.data.data),C(!0),M(!0)});case 7:u(!1);case 8:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),I=function(){var e=Object(r.a)(hg().mark(function e(t,n,r,a){return hg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),e.next=3,Q.a.get(K.b+"a=tdvs_viewDetailedData&univcode="+localStorage.getItem("univcode")+"&teachcode="+t+"&qpcode="+n+"&batchno="+r+"&valno="+a).then(function(e){if(0!==e.data.error_code)return j([]),f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void u(!1);j(e.data.data),C(!1)});case 3:u(!1);case 4:case"end":return e.stop()}},e)}));return function(t,n,r,a){return e.apply(this,arguments)}}(),F=function(){var e=Object(r.a)(hg().mark(function e(t,n){return hg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:b.map(function(e,r){return n.fqpcode===e.fqpcode&&e.fbatchno===n.fbatchno&&e.fvalno===n.fvalno?(t.target.checked?(e.freject="T",pg.push(e)):e.freject="F",e):e});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),D=function(){var e=Object(r.a)(hg().mark(function e(){var t,n;return hg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.confirm("Are you sure you want to reset assigned and draft scripts...?")){e.next=12;break}return u(!0),t=[],pg.map(function(e,n){if("T"===e.freject){var r={};r.fteachcode=e.fteachcode,r.fvalno=e.fvalno,r.fqpcode=e.fqpcode,r.fbatchno=e.fbatchno,t.push(r)}}),(n=new FormData).append("data",JSON.stringify(t)),e.next=9,Q.a.post(K.b+"a=tdvs_saveBatchReject&univcode="+localStorage.getItem("univcode"),n).then(function(e){if(0!==e.data.error_code)return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void u(!1);f({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.data.msg}}),w([]),T()});case 9:u(!1),e.next=13;break;case 12:console.log("You Cancelled");case 13:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{position:"fixed",width:"98%",padding:"10px"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Release Scripts",i.a.createElement(l.b,{to:{pathname:"/admin"}},i.a.createElement(ne.a,{floated:"right",color:"red",onClick:function(){return N()}},"Exit")),i.a.createElement(ne.a,{floated:"right",color:"black",onClick:function(){return N()}},"Clear"),P&&(_?i.a.createElement(ne.a,{floated:"right",color:"green",onClick:function(){return D()}},"Save"):i.a.createElement(ne.a,{floated:"right",color:"blue",onClick:function(){return C(!0)}},"Back"))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Teacher Code"),i.a.createElement(le.a.Input,{placeholder:"Teacher Code",value:p,onChange:function(e,t){return v(t.value.toUpperCase())}})),i.a.createElement(le.a.Field,null,i.a.createElement(ne.a,{style:{position:"relative",top:"23px"},content:"Submit",color:"blue",onClick:function(){return T()}})))),P&&i.a.createElement("div",{style:{height:"60vh",overflowY:"auto"}},_?i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("td",null,"Sl. No."),i.a.createElement("td",null,"Teach Code"),i.a.createElement("td",null,"QP Code"),i.a.createElement("td",null,"Subject Name"),i.a.createElement("td",null,"Val. No."),i.a.createElement("td",null,"Batch No."),i.a.createElement("td",null,"Total"),i.a.createElement("td",null,"Final"),i.a.createElement("td",null,"Drafted"),i.a.createElement("td",null,"Assigned"),i.a.createElement("td",null,"View / Reject"))),i.a.createElement("tbody",null,b.length>0?b.map(function(e,t){return i.a.createElement("tr",{key:t},i.a.createElement("td",{style:{textAlign:"center"}},t+1),i.a.createElement("td",{style:{textAlign:"center"}},e.fteachcode),i.a.createElement("td",{style:{textAlign:"center"}},e.fqpcode),i.a.createElement("td",{style:{paddingLeft:"10px"}},e.fsubname),i.a.createElement("td",{style:{textAlign:"center"}},e.fvalno),i.a.createElement("td",{style:{textAlign:"center"}},e.fbatchno),i.a.createElement("td",{style:{textAlign:"center"}},e.ftotal),i.a.createElement("td",{style:{textAlign:"center"}},e.ffinal),i.a.createElement("td",{style:{textAlign:"center"}},e.fdraft),i.a.createElement("td",{style:{textAlign:"center"}},e.fassign),i.a.createElement("td",{style:{textAlign:"center"}},i.a.createElement("div",{style:{display:"flex",justifyContent:"space-evenly",alignItems:"center"}},i.a.createElement("p",{style:{position:"relative",top:"3px",color:"#00b5ae"},onMouseOver:function(e){e.target.style.textDecoration="underline",e.target.style.cursor="pointer"},onMouseOut:function(e){e.target.style.textDecoration=""},onClick:function(){return I(e.fteachcode,e.fqpcode,e.fbatchno,e.fvalno)}},"View"),i.a.createElement("input",{type:"checkbox",onChange:function(t){return F(t,e)}}))))}):i.a.createElement("tr",null,i.a.createElement("td",{style:{textAlign:"center"},colSpan:10},"No Data Found")))):i.a.createElement(dg,{data:O})))))},vg=n(1179);function gg(){gg=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var yg=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,l=(Object(c.useHistory)(),Object(a.a)(t,2)),u=(l[0],l[1]),s=Object(a.a)(n,2),f=(s[0],s[1]),d=Object(o.useState)(""),p=Object(a.a)(d,2),v=p[0],g=p[1],y=Object(o.useState)(""),b=Object(a.a)(y,2),w=b[0],E=b[1],x=Object(o.useState)(""),O=Object(a.a)(x,2),j=O[0],k=O[1],S=Object(o.useState)([]),_=Object(a.a)(S,2),C=_[0],L=_[1],A=Object(o.useState)([]),P=Object(a.a)(A,2),M=P[0],N=P[1],T=Object(o.useState)(!1),I=Object(a.a)(T,2),F=I[0],D=I[1];Object(o.useEffect)(function(){R(),H()},[]);var R=function(){var e=Object(r.a)(gg().mark(function e(){return gg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q.a.get(K.b+"a=getboarddeggrp&univcode="+localStorage.getItem("univcode")).then(function(e){if(0===e.data.error_code){console.log(e.data.data);var t=e.data.data.map(function(e,t){return{key:e.value,value:e.value,label:e.text}});L(t)}});case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),G=function(){var e=Object(r.a)(gg().mark(function e(){return gg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:B();case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),B=function(){var e=Object(r.a)(gg().mark(function e(){return gg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=v&&void 0!=v){e.next=3;break}return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Board Code"}}),e.abrupt("return");case 3:if(""!=j&&void 0!=j){e.next=6;break}return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Board Name"}}),e.abrupt("return");case 6:return u(!0),e.next=9,Q.a.get(K.b+"a=updtshowboard&univcode="+localStorage.getItem("univcode")+"&board="+v+"°group="+w+"&name="+j).then(function(e){u(!1),0===e.data.error_code&&(f({type:"OPEN_MSG_BOX",payload:{header:"Success",message:"Updated Successfully..!"}}),H(),g(""),E(""),k(""))});case 9:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),H=function(){var e=Object(r.a)(gg().mark(function e(){return gg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q.a.get(K.b+"a=getboardtable&univcode="+localStorage.getItem("univcode")).then(function(e){0===e.data.error_code?N(e.data.data):N([])});case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),z=function(){var e=Object(r.a)(gg().mark(function e(){var t=arguments;return gg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:D(!0),g(t.length<=0?void 0:t[0]),E(t.length<=1?void 0:t[1]),k(t.length<=2?void 0:t[2]);case 4:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),V=function(){var e=Object(r.a)(gg().mark(function e(t,n,r){return gg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.confirm("Are you sure?")){e.next=5;break}return e.next=3,Q.a.get(K.b+"a=deleteBoardRow&univcode="+localStorage.getItem("univcode")+"&board="+t+"°group="+n+"&name="+r).then(function(e){0===e.data.error_code&&(f({type:"OPEN_MSG_BOX",payload:{header:"Success",message:"Deleted Successfully..!"}}),H())});case 3:e.next=6;break;case 5:console.log("You cancelled");case 6:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{height:"80vh",width:"98%",padding:"10px"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Create Board",i.a.createElement(ne.a,{floated:"right",color:"red",width:2,onClick:function(){g(""),E(""),k(""),N(""),D(!1)}},"Clear"),i.a.createElement(ne.a,{floated:"right",width:2,color:"blue",onClick:G},"Save"))),i.a.createElement(te.a.Content,{style:{height:"100%"}},i.a.createElement("div",null,i.a.createElement(h.a,{columns:2,divided:!0},i.a.createElement(vg.a,{width:"8"},i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"12"},i.a.createElement("label",null,"Board Code"),i.a.createElement(ue.a,{type:"text",placeholder:"Board Code",id:"brdcode",value:v,onChange:function(e,t){return g(t.value.toUpperCase())},disabled:F}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"12"},i.a.createElement("label",null,"Degree Group"),i.a.createElement(zm,{placeholder:"Degree group",value:w,size:"large",style:{width:"100%"},showSearch:!0,optionFilterProp:"label",options:C,onChange:function(e){E(e)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"12"},i.a.createElement("label",null,"Board Name"),i.a.createElement(ue.a,{type:"text",placeholder:"Board Name",id:"brdname",value:j,onChange:function(e,t){return k(t.value)}}))))),i.a.createElement(vg.a,{width:"8"},i.a.createElement("div",{style:{height:"68vh",overflowY:"auto"}},i.a.createElement("table",{style:{width:"100%"}},i.a.createElement("thead",null,i.a.createElement("tr",{style:{height:"40px"}},i.a.createElement("th",null,"Sl. No."),i.a.createElement("th",null,"Degree Group"),i.a.createElement("th",null,"Board Code"),i.a.createElement("th",null,"Board Name"),i.a.createElement("th",null,"Actions"))),i.a.createElement("tbody",null,M.length>0?M.map(function(e,t){return i.a.createElement("tr",{key:t},i.a.createElement("td",{style:Object(se.a)({border:"1px solid",textAlign:"center"},"border","1px solid")},t+1),i.a.createElement("td",{style:Object(se.a)({border:"1px solid",textAlign:"center"},"border","1px solid")},e.fdeggrp),i.a.createElement("td",{style:Object(se.a)({border:"1px solid",textAlign:"center"},"border","1px solid")},e.fboard),i.a.createElement("td",{style:{border:"1px solid",paddingLeft:"10px"}},e.fboardname),i.a.createElement("td",{style:Object(se.a)({border:"1px solid",textAlign:"center"},"border","1px solid")},i.a.createElement(ne.a,{size:"mini",icon:"edit",basic:!0,content:"Edit",color:"green",onClick:function(){return z(e.fboard,e.fdeggrp,e.fboardname)}}),i.a.createElement(ne.a,{size:"mini",basic:!0,content:"Delete",color:"red",onClick:function(){return V(e.fboard,e.fdeggrp,e.fboardname)}})))}):i.a.createElement("tr",null,i.a.createElement("td",{style:{textAlign:"center"},colSpan:5},"No data found"))))))))))};function bg(){bg=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var wg=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),l=(c[0],c[1]),u=Object(a.a)(n,2),s=(u[0],u[1]),f=Object(o.useState)(""),d=Object(a.a)(f,2),h=d[0],v=d[1],g=Object(o.useState)([]),y=Object(a.a)(g,2),b=y[0],w=y[1],E=Object(o.useState)(""),x=Object(a.a)(E,2),O=x[0],j=x[1],k=Object(o.useState)(""),S=Object(a.a)(k,2),_=S[0],C=S[1],L=Object(o.useState)(["All"]),A=Object(a.a)(L,2),P=A[0],M=A[1],N=Object(o.useState)([{key:"All",text:"All",value:"All"},{key:"A",text:"I Sem",value:"A"},{key:"B",text:"II Sem",value:"B"},{key:"C",text:"III Sem",value:"C"},{key:"D",text:"IV Sem",value:"D"},{key:"E",text:"V Sem",value:"E"},{key:"F",text:"VI Sem",value:"F"},{key:"G",text:"VII Sem",value:"G"},{key:"H",text:"VIII Sem",value:"H"},{key:"I",text:"IX Sem",value:"I"},{key:"J",text:"X Sem",value:"J"}]),T=Object(a.a)(N,2),I=T[0],F=(T[1],Object(o.useState)([])),D=Object(a.a)(F,2),R=D[0],G=D[1],B=Object(o.useState)(!1),H=Object(a.a)(B,2),z=H[0],V=H[1],q=Object(o.useState)([]),Y=Object(a.a)(q,2),W=Y[0],U=Y[1],X=Object(o.useState)([]),J=Object(a.a)(X,2),Z=J[0],$=J[1],ee=Object(o.useState)(!1),ae=Object(a.a)(ee,2),ie=ae[0],ce=ae[1];Object(o.useEffect)(function(){ue()},[]);var ue=function(){var e=Object(r.a)(bg().mark(function e(){return bg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),e.prev=1,e.next=4,Q.a.get(K.b+"a=getboarddeggrp&univcode="+localStorage.getItem("univcode")).then(function(e){if(0!==e.data.error_code)return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"No data found"}}),void l(!1);w(e.data.data)});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),l(!1);case 9:l(!1);case 10:case"end":return e.stop()}},e,null,[[1,6]])}));return function(){return e.apply(this,arguments)}}(),se=function(){var e=Object(r.a)(bg().mark(function e(t){return bg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),e.prev=1,e.next=4,Q.a.get(K.b+"a=tdvs_yearmode&univcode="+localStorage.getItem("univcode")+"°grp="+t).then(function(e){0===e.data.error_code?(j(e.data.data.fyear),C(e.data.data.fexamtype)):l(!1)});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),l(!1);case 9:l(!1);case 10:case"end":return e.stop()}},e,null,[[1,6]])}));return function(t){return e.apply(this,arguments)}}(),fe=function(){var e=Object(r.a)(bg().mark(function e(){return bg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(l(!0),e.prev=1,G([]),""!==h&&""!==O&&""!==_){e.next=8;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"All the fields are mandatory"}}),l(!1),ce(!1),e.abrupt("return");case 8:return e.next=10,Q.a.get(K.b+"a=tdvs_getPergeValCount&univcode="+localStorage.getItem("univcode")+"°grp="+h+"&year="+O+"&mode="+_+"&sem="+P).then(function(e){V(!0),0===e.data.error_code?G(e.data.data):l(!1)});case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),l(!1);case 15:l(!1);case 16:case"end":return e.stop()}},e,null,[[1,12]])}));return function(){return e.apply(this,arguments)}}(),de=function(){var e=Object(r.a)(bg().mark(function e(){var t,n;return bg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(l(!0),e.prev=1,t=[],R.map(function(e,n){"T"===e.fstatus&&t.push(e)}),0!==t.length){e.next=9;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select the qpcode you want to purge"}}),ce(!1),l(!1),e.abrupt("return");case 9:return(n=new FormData).append("data",JSON.stringify(t)),e.next=13,Q.a.post(K.b+"a=tdvs_saveTdvsPergeVal&univcode="+localStorage.getItem("univcode"),n).then(function(e){if(0!==e.data.error_code)return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void l(!1);ce(!0),U(e.data.data.fsuccess),$(e.data.data.ffailure),fe()});case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(1),l(!1);case 18:l(!1);case 19:case"end":return e.stop()}},e,null,[[1,15]])}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{position:"fixed",width:"98%",height:"83vh",border:"1px solid #d1d8df"}},ie&&i.a.createElement(Ym.a,{open:!0,size:"medium",style:{overflowY:"auto",height:"600px"}},i.a.createElement(Ym.a.Header,null,"Success And Failure List",i.a.createElement(ne.a,{floated:"right",secondary:!0,onClick:function(){return ce(!1)}},i.a.createElement(Ue.a,{name:"close"})," close")),i.a.createElement(Ym.a.Content,null,i.a.createElement(te.a.Group,null,i.a.createElement(te.a,null,i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Succeeded QPList"),i.a.createElement(te.a.Description,null,i.a.createElement("ul",null,W.map(function(e,t){return i.a.createElement("li",{key:t},e.success)}))))),i.a.createElement(te.a,null,i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Failed QPList"),i.a.createElement(te.a.Description,null,i.a.createElement("ul",null,Z.map(function(e,t){return i.a.createElement("li",{key:t},e.failure)})))))))),i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h3",null,"Purge Valuation")),i.a.createElement("div",null,i.a.createElement(ne.a,{floated:"right",content:"Clear",color:"black",onClick:function(){return v(""),j(""),C(""),M(["All"]),G([]),void V(!1)}}),i.a.createElement(ne.a,{floated:"right",content:"Save",color:"green",onClick:function(){return de()}}))),i.a.createElement(re.a,null)),i.a.createElement(te.a.Description,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:3},i.a.createElement("label",null,"Degree Group"),i.a.createElement(p.a,{placeholder:"Degree Group",selection:!0,search:!0,value:h,options:b,onChange:function(e,t){v(t.value),se(t.value),V(!1)}})),i.a.createElement(le.a.Field,{width:2},i.a.createElement("label",null,"Exam Year"),i.a.createElement(le.a.Input,{placeholder:"Exam Year",value:O,onChange:function(e,t){return j(t.value)}})),i.a.createElement(le.a.Field,{width:2},i.a.createElement("label",null,"Exam Type"),i.a.createElement(le.a.Input,{placeholder:"Exam Year",value:_,onChange:function(e,t){return C(t.value)}})),i.a.createElement(le.a.Field,{width:7},i.a.createElement("label",null,"Semester"),i.a.createElement(p.a,{placeholder:"Semester",selection:!0,search:!0,multiple:!0,value:P,options:I,onChange:function(e,t){M(t.value)}})),i.a.createElement(le.a.Field,{width:2},i.a.createElement(ne.a,{style:{position:"relative",top:"23px"},content:"Submit",color:"blue",onClick:function(){return fe()}})))),z&&i.a.createElement("div",{style:{height:"60vh",overflowY:"auto",zIndex:-2}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("th",null,"Sl. No."),i.a.createElement("th",null,"QP Code"),i.a.createElement("th",null,"Subject Name"),i.a.createElement("th",null,"Semester"),i.a.createElement("th",null,"Val1 Count"),i.a.createElement("th",null,"Val1 Completed"),i.a.createElement("th",null,"Val2 Count"),i.a.createElement("th",null,"Val2 Completed"),i.a.createElement("th",null,"Deviation Count"),i.a.createElement("th",null,"Deviation Completed"),i.a.createElement("th",null,"Total Count"),i.a.createElement("th",null,"Total Comp."),i.a.createElement("th",null,"Action ",i.a.createElement("br",null),i.a.createElement("input",{type:"checkbox",onChange:function(e){return function(e){var t=R.map(function(t,n){return e.target.checked?t.fstatus="T":t.fstatus="F",t});G(Object(oe.a)(t))}(e)}}))),i.a.createElement("tbody",null,R.length>0?R.map(function(e,t){return i.a.createElement("tr",{style:{textAlign:"center"},key:t},i.a.createElement("td",null,t+1),i.a.createElement("td",null,e.fqpcode),i.a.createElement("td",{style:{textAlign:"initial",paddingLeft:"20px"}},e.fsubname),i.a.createElement("td",null,e.fexamno),i.a.createElement("td",null,e.val1),i.a.createElement("td",null,e.completed1),i.a.createElement("td",null,e.val2),i.a.createElement("td",null,e.completed2),i.a.createElement("td",null,e.valD),i.a.createElement("td",null,e.completedD),i.a.createElement("td",null,e.totcnt),i.a.createElement("td",null,e.totcomp),i.a.createElement("td",null,i.a.createElement("input",{type:"checkbox",checked:"T"===e.fstatus,onChange:function(t){return function(e,t){var n=R.map(function(n,r){return t.fqpcode===n.fqpcode?(e.target.checked?n.fstatus="T":n.fstatus="F",n):n});G(Object(oe.a)(n))}(t,e)}})))}):i.a.createElement("tr",null,i.a.createElement("td",{colSpan:8,style:{textAlign:"center"}},"No Data Found"))))))))};function Eg(){Eg=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var xg=[],Og=[{key:"All",text:"All",value:"All"},{key:"A",text:"I Semester",value:"A"},{key:"B",text:"II Semester",value:"B"},{key:"C",text:"III Semester",value:"C"},{key:"D",text:"IV Semester",value:"D"},{key:"E",text:"V Semester",value:"E"},{key:"F",text:"VI Semester",value:"F"},{key:"G",text:"VII Semester",value:"G"},{key:"H",text:"VIII Semester",value:"H"},{key:"I",text:"IX Semester",value:"I"},{key:"J",text:"X Semester",value:"J"}],jg=[{value:"select",text:"SELECT"}],kg=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),l=(c[0],c[1]),u=Object(a.a)(n,2),s=(u[0],u[1]),f=Object(o.useState)("All"),d=Object(a.a)(f,2),h=d[0],v=d[1],g=Object(o.useState)([]),y=Object(a.a)(g,2),b=y[0],w=y[1],E=Object(o.useState)("All"),x=Object(a.a)(E,2),O=x[0],j=x[1],k=Object(o.useState)([]),S=Object(a.a)(k,2),_=S[0],C=S[1],L=Object(o.useState)(!1),A=Object(a.a)(L,2),P=A[0],M=A[1],N=Object(o.useState)([]),T=Object(a.a)(N,2),I=T[0],F=T[1],D=Object(o.useState)([]),R=Object(a.a)(D,2),G=R[0],B=R[1];Object(o.useEffect)(function(){H()},[]);var H=function(){var e=Object(r.a)(Eg().mark(function e(){return Eg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),e.next=3,Q.a.get(K.b+"a=tdvs_getDegree&univcode="+localStorage.getItem("univcode")).then(function(e){if(0!==e.data.error_code)return w([]),void l(!1);w(e.data.data)}).catch(function(e){l(!1)});case 3:l(!1);case 4:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),z=function(){var e=Object(r.a)(Eg().mark(function e(){return Eg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==h){e.next=3;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Degree"}}),e.abrupt("return");case 3:return l(!0),xg=[],e.next=7,Q.a.get(K.b+"a=tdvs_getSubjectDet&univcode="+localStorage.getItem("univcode")+"°ree="+h+"&sem="+O).then(function(e){if(M(!0),0!==e.data.error_code)return C([]),F([]),B([]),void l(!1);var t=e.data.data.tableData.map(function(e,t){return e&&(e.fstatus="F"),e});C(t),F([].concat(jg,Object(oe.a)(e.data.data.board))),B([].concat(jg,Object(oe.a)(e.data.data.deggrp)))}).catch(function(e){l(!1)});case 7:l(!1);case 8:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),V=function(){var e=Object(r.a)(Eg().mark(function e(){var t;return Eg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),_.map(function(e,t){"T"===e.fstatus&&xg.push(e)}),(t=new FormData).append("data",JSON.stringify(xg)),e.next=6,Q.a.post(K.b+"a=tdvs_saveSubDet&univcode="+localStorage.getItem("univcode"),t).then(function(e){if(0!==e.data.error_code)return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void l(!1);s({type:"OPEN_MSG_BOX",payload:{header:"success",message:e.data.data.msg}})});case 6:l(!1);case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{position:"fixed",width:"98%",height:"80vh",border:"1px solid #d1d8df"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h3",null,"Subject")),i.a.createElement("div",null,i.a.createElement(ne.a,{floated:"right",content:"Clear",color:"black",onClick:function(){return v(""),j("All"),C([]),void M(!1)}}),i.a.createElement(ne.a,{floated:"right",content:"Save",color:"green",onClick:function(){return V()}}))),i.a.createElement(re.a,null)),i.a.createElement(te.a.Description,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Degree"),i.a.createElement(p.a,{placeholder:"Degree",selection:!0,search:!0,value:h,options:b,onChange:function(e,t){return v(t.value)}})),i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Semester"),i.a.createElement(p.a,{placeholder:"Sem",selection:!0,search:!0,value:O,options:Og,onChange:function(e,t){return j(t.value)}})),i.a.createElement(le.a.Field,{width:4},i.a.createElement(ne.a,{style:{position:"relative",top:"23px"},content:"Submit",color:"blue",onClick:function(){return z()}})))),P&&i.a.createElement("div",{style:{height:"60vh",overflowY:"auto"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("td",null,"Sl. No."),i.a.createElement("td",null,"Semester"),i.a.createElement("td",null,"Max Marks"),i.a.createElement("td",null,"QP Code"),i.a.createElement("td",null,"Subject Name"),i.a.createElement("td",null,"Board"),i.a.createElement("td",null,"Degree Group"),i.a.createElement("td",null,"No. of Val"),i.a.createElement("td",null,"No. of Hours"))),i.a.createElement("tbody",null,_.length>0?_.map(function(e,t){return i.a.createElement("tr",{key:t},i.a.createElement("td",{style:{textAlign:"center"}},t+1),i.a.createElement("td",{style:{textAlign:"center"}},e.fexamno),i.a.createElement("td",{style:{textAlign:"center"}},e.fsmaxmark),i.a.createElement("td",{style:{textAlign:"center"}},e.fqpcode),i.a.createElement("td",{style:{textAlign:"initial",paddingLeft:"10px"}},e.fsubname),i.a.createElement("td",{style:{textAlign:"center"}},i.a.createElement(p.a,{style:{width:"100%"},placeholder:"Board",selection:!0,search:!0,value:e.fboard,options:I,onChange:function(t,n){return function(e,t){var n=_.map(function(n,r){return n.fqpcode===t.fqpcode&&(n.fboard=e.value,n.fstatus="T"),n});C(Object(oe.a)(n))}(n,e)}})),i.a.createElement("td",{style:{textAlign:"center"}},i.a.createElement(p.a,{style:{width:"100%"},placeholder:"Degree group",selection:!0,search:!0,value:e.fdeggrp,options:G,onChange:function(t,n){return function(e,t){var n=_.map(function(n,r){return n.fqpcode===t.fqpcode&&(n.fdeggrp=e.value,n.fstatus="T"),n});C(Object(oe.a)(n))}(n,e)}})),i.a.createElement("td",{style:{textAlign:"center"}},i.a.createElement(le.a.Input,{style:{width:"100%"},placeholder:"No. of Val",value:e.fnoval,onChange:function(t,n){return function(e,t){var n=_.map(function(n,r){return n.fqpcode===t.fqpcode&&(n.fnoval=e.value,n.fstatus="T"),n});C(Object(oe.a)(n))}(n,e)}})),i.a.createElement("td",{style:{textAlign:"center"}},i.a.createElement(le.a.Input,{style:{width:"100%"},placeholder:"No. of Hours",value:e.fhours,onChange:function(t,n){return function(e,t){var n=_.map(function(n,r){return n.fqpcode===t.fqpcode&&(n.fhours=e.value,n.fstatus="T"),n});C(Object(oe.a)(n))}(n,e)}})))}):i.a.createElement("tr",null,i.a.createElement("td",{style:{textAlign:"center"},colSpan:7},"No Data Found"))))))))};function Sg(){Sg=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var _g=[{key:"All",text:"All",value:"All"}],Cg=function(){var e=localStorage.getItem("fteachcode"),t=Object(o.useContext)(m.a),n=t.load,c=t.err_msg,l=Object(a.a)(n,2),u=(l[0],l[1]),s=Object(a.a)(c,2),f=(s[0],s[1]),d=Object(o.useState)(""),h=Object(a.a)(d,2),v=h[0],g=h[1],y=Object(o.useState)([]),b=Object(a.a)(y,2),w=b[0],E=b[1],x=Object(o.useState)(["All"]),O=Object(a.a)(x,2),j=O[0],k=O[1],S=Object(o.useState)([]),_=Object(a.a)(S,2),C=_[0],L=_[1],A=Object(o.useState)([]),P=Object(a.a)(A,2),M=P[0],N=P[1],T=Object(o.useState)(!1),I=Object(a.a)(T,2),F=I[0],D=I[1];Object(o.useEffect)(function(){R()},[]);var R=function(){var t=Object(r.a)(Sg().mark(function t(){var n,r;return Sg().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u(!0),t.prev=1,t.next=4,ee.get("/admin/get-panelboard?fusercode=".concat(e));case 4:0===(n=t.sent).data.status&&(r=n.data.result.map(function(e,t){return{key:t,text:e.fboardname,value:e.fboard}}),E(r)),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),u(!1);case 11:u(!1);case 12:case"end":return t.stop()}},t,null,[[1,8]])}));return function(){return t.apply(this,arguments)}}(),G=function(){var t=Object(r.a)(Sg().mark(function t(n){var r,a,o;return Sg().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u(!0),t.prev=1,t.next=4,ee.get("/admin/get-panelqpcode?fusercode=".concat(e,"&brd=").concat(n));case 4:0===(r=t.sent).data.status&&(a=r.data.result.map(function(e,t){return{key:t,text:e.fsubname,value:e.fqpcode}}),o=[].concat(_g,Object(oe.a)(a)),L(o)),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),u(!1);case 11:u(!1);case 12:case"end":return t.stop()}},t,null,[[1,8]])}));return function(e){return t.apply(this,arguments)}}(),B=function(){var e=Object(r.a)(Sg().mark(function e(){return Sg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==v){e.next=3;break}return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Board"}}),e.abrupt("return");case 3:return u(!0),D(!0),e.prev=5,e.next=8,Q.a.get(K.b+"a=tdvs_getDevDet&univcode="+localStorage.getItem("univcode")+"&board="+v+"&qpcode="+j).then(function(e){if(0!==e.data.error_code)return N([]),void u(!1);N(e.data.data)});case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),u(!1);case 13:u(!1);case 14:case"end":return e.stop()}},e,null,[[5,10]])}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{position:"fixed",width:"98%",height:"80vh",border:"1px solid #d1d8df"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h3",null,"Deviation Details")),i.a.createElement("div",null,i.a.createElement(ne.a,{floated:"right",content:"Clear",color:"black",onClick:function(){return g(""),k(["All"]),N([]),void D(!1)}}),i.a.createElement(ne.a,{floated:"right",content:"Report",color:"blue",onClick:function(){""!==v?window.open(K.c+"tdvs_deviationdet&univcode="+localStorage.getItem("univcode")+"&board="+v+"&qpcode="+j):f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Board"}})}}))),i.a.createElement(re.a,null)),i.a.createElement(te.a.Description,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{selection:!0,search:!0,placeholder:"Board",value:v,options:w,onChange:function(e,t){g(t.value),D(!1),G(t.value)}})),i.a.createElement(le.a.Field,{width:8},i.a.createElement("label",null,"QP Code"),i.a.createElement(p.a,{multiple:!0,selection:!0,search:!0,placeholder:"QP Code",value:j,options:C,onChange:function(e,t){k(t.value),D(!1)}})),i.a.createElement(le.a.Field,{width:2},i.a.createElement(ne.a,{style:{position:"relative",top:"23px"},color:"blue",content:"Submit",onClick:function(){return B()}})))),F&&i.a.createElement("div",{style:{height:"60vh",overflowY:"auto"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("td",null,"Sl. No."),i.a.createElement("td",null,"QP Code"),i.a.createElement("td",null,"Subject Name"),i.a.createElement("td",null,"Max Marks"),i.a.createElement("td",null,"Reg. Code"),i.a.createElement("td",null,"Val No."),i.a.createElement("td",null,"Teachcode"),i.a.createElement("td",null,"Teachname"),i.a.createElement("td",null,"Marks1"),i.a.createElement("td",null,"Val No."),i.a.createElement("td",null,"Teachcode"),i.a.createElement("td",null,"Teachname"),i.a.createElement("td",null,"Marks2"),i.a.createElement("td",null,"Difference"))),i.a.createElement("tbody",null,M.length>0?M.map(function(e,t){return i.a.createElement("tr",{style:{textAlign:"center"},key:t},i.a.createElement("td",null,t+1),i.a.createElement("td",null,e.fqpcode),i.a.createElement("td",{style:{paddingLeft:"10px",textAlign:"initial"}},e.fsubname),i.a.createElement("td",null,e.fsmaxmarks),i.a.createElement("td",null,e.fregcode),i.a.createElement("td",null,e.fvalno1),i.a.createElement("td",null,e.fteachcode1),i.a.createElement("td",{style:{paddingLeft:"10px",textAlign:"initial"}},e.fteachname1),i.a.createElement("td",null,e.fsysmarks1),i.a.createElement("td",null,e.fvalno2),i.a.createElement("td",null,e.fteachcode2),i.a.createElement("td",{style:{paddingLeft:"10px",textAlign:"initial"}},e.fteachname2),i.a.createElement("td",null,e.fsysmarks2),i.a.createElement("td",null,e.difmarks))}):i.a.createElement("tr",null,i.a.createElement("td",{style:{textAlign:"center"},colSpan:14},"No Data Found"))))))))};function Lg(){Lg=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Ag=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),l=(c[0],c[1]),u=Object(a.a)(n,2),s=(u[0],u[1]),f=Object(o.useState)(""),d=Object(a.a)(f,2),h=d[0],v=d[1],g=Object(o.useState)(""),y=Object(a.a)(g,2),b=y[0],w=y[1],E=Object(o.useState)([]),x=Object(a.a)(E,2),O=x[0],j=x[1],k=Object(o.useState)(!1),S=Object(a.a)(k,2),_=S[0],C=S[1],L=Object(o.useState)([]),A=Object(a.a)(L,2),P=A[0],M=A[1],N=Object(o.useState)([]),T=Object(a.a)(N,2),I=T[0],F=T[1],D=localStorage.getItem("fteachcode");Object(o.useEffect)(function(){R()},[]);var R=function(){var e=Object(r.a)(Lg().mark(function e(){var t,n;return Lg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),e.prev=1,e.next=4,ee.get("/admin/get-panelboard?fusercode=".concat(D));case 4:0===(t=e.sent).data.status&&(n=t.data.result.map(function(e,t){return{key:t,text:e.fboardname,value:e.fboard}}),M(n)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),l(!1);case 11:l(!1);case 12:case"end":return e.stop()}},e,null,[[1,8]])}));return function(){return e.apply(this,arguments)}}(),G=function(){var e=Object(r.a)(Lg().mark(function e(t){var n,r;return Lg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),e.prev=1,e.next=4,ee.get("/admin/get-panelqpcode?fusercode=".concat(D,"&brd=").concat(t));case 4:0===(n=e.sent).data.status&&(r=n.data.result.map(function(e,t){return{key:t,text:e.fsubname,value:e.fqpcode}}),F(r)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),l(!1);case 11:l(!1);case 12:case"end":return e.stop()}},e,null,[[1,8]])}));return function(t){return e.apply(this,arguments)}}(),B=function(){var e=Object(r.a)(Lg().mark(function e(){return Lg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==h){e.next=3;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"select board"}}),e.abrupt("return");case 3:if(""!==b){e.next=6;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"select qpcode"}}),e.abrupt("return");case 6:return C(!0),e.prev=7,l(!0),e.next=11,Q()({method:"GET",url:K.b+"a=tdvs_getTeacherValDet&univcode="+localStorage.getItem("univcode")+"&board="+h+"&qpcode="+b,headers:{"Content-Type":"application/json"}}).then(function(e){0===e.data.error_code?j(e.data.data):j([])});case 11:l(!1),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(7),l(!1);case 17:case"end":return e.stop()}},e,null,[[7,14]])}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{position:"fixed",width:"98%",height:"80vh",border:"1px solid #d1d8df"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h3",null,"Valuation Details")),i.a.createElement("div",null,i.a.createElement(ne.a,{floated:"right",content:"Clear",color:"black",onClick:function(){return v(""),w(""),j(""),void C("")}}),i.a.createElement(ne.a,{floated:"right",content:"Report",color:"blue",onClick:function(){""!==h?""!==b?window.open(K.c+"tdvs_TeachValReport&univcode="+localStorage.getItem("univcode")+"&board="+h+"&qpcode="+b):s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"select qpcode"}}):s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"select board"}})}}))),i.a.createElement(re.a,null)),i.a.createElement(te.a.Description,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{placeholder:"Board",selection:!0,search:!0,value:h,options:P,onChange:function(e,t){v(t.value),G(t.value)}})),i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Qp Code"),i.a.createElement(p.a,{placeholder:"Qp Code",selection:!0,search:!0,value:b,options:I,onChange:function(e,t){return w(t.value)}})),i.a.createElement(le.a.Field,{width:4},i.a.createElement(ne.a,{style:{position:"relative",top:"23px"},content:"Submit",color:"blue",onClick:function(){return B()}})))),_&&i.a.createElement("div",{style:{height:"60vh",overflowY:"auto"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("td",null,"Sl. No."),i.a.createElement("td",null,"Reg Code"),i.a.createElement("td",null,"Subject Name"),i.a.createElement("td",null,"Max Marks"),i.a.createElement("td",null,"Teach Name"),i.a.createElement("td",null,"Marks1"),i.a.createElement("td",null,"Teach Name"),i.a.createElement("td",null,"Marks2"),i.a.createElement("td",null,"Teach Name"),i.a.createElement("td",null,"Marks3"),i.a.createElement("td",null,"Teach Name"),i.a.createElement("td",null,"Marks4"),i.a.createElement("td",null,"Teach Name"),i.a.createElement("td",null,"Deviation"))),i.a.createElement("tbody",null,O.length>0?O.map(function(e,t){return i.a.createElement("tr",{key:t,style:{textAlign:"center"}},i.a.createElement("td",null,t+1),i.a.createElement("td",null,e.fregcode),i.a.createElement("td",null,e.fsubname),i.a.createElement("td",null,e.fsmaxmarks),i.a.createElement("td",null,e.fteachcode1+" - "+e.fteachname1),i.a.createElement("td",null,e.fsysmarks1),i.a.createElement("td",null,e.fteachcode2+" - "+e.fteachname2),i.a.createElement("td",null,e.fsysmarks2),i.a.createElement("td",null,e.fteachcode3+" - "+e.fteachname3),i.a.createElement("td",null,e.fsysmarks3),i.a.createElement("td",null,e.fteachcode4+" - "+e.fteachname4),i.a.createElement("td",null,e.fsysmarks4),i.a.createElement("td",null,e.fteachcode5+" - "+e.fteachname5),i.a.createElement("td",null,e.fsysmarks5))}):i.a.createElement("tr",null,i.a.createElement("td",{colSpan:14,style:{textAlign:"center"}},"No data found"))))))))};function Pg(){Pg=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Mg=[{key:"All",value:"All",text:"All"}],Ng=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),l=(c[0],c[1]),u=Object(a.a)(n,2),s=(u[0],u[1]),f=Object(o.useState)("All"),d=Object(a.a)(f,2),h=d[0],v=d[1],g=Object(o.useState)([]),y=Object(a.a)(g,2),b=y[0],w=y[1],E=Object(o.useState)("All"),x=Object(a.a)(E,2),O=x[0],j=x[1],k=Object(o.useState)([]),S=Object(a.a)(k,2),_=S[0],C=S[1],L=Object(o.useState)(!1),A=Object(a.a)(L,2),P=A[0],M=A[1],N=Object(o.useState)([]),T=Object(a.a)(N,2),I=T[0],F=T[1],D=localStorage.getItem("fteachcode"),R=Object(o.useState)(""),G=Object(a.a)(R,2),B=G[0],H=G[1],z=Object(o.useState)(""),V=Object(a.a)(z,2),q=V[0],Y=V[1],W=Object(o.useState)(""),U=Object(a.a)(W,2),X=U[0],J=U[1],Z=Object(o.useState)([]),$=Object(a.a)(Z,2),ae=$[0],ie=$[1];Object(o.useEffect)(function(){me(),ce(),se(h)},[]);var ce=function(){var e=Object(r.a)(Pg().mark(function e(){var t,n;return Pg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),e.prev=1,e.next=4,ee.get("/admin/get-panelboard?fusercode=".concat(D));case 4:0===(t=e.sent).data.status&&(n=t.data.result.map(function(e,t){return{key:t,text:e.fboardname,value:e.fboard}}),w([].concat(Mg,Object(oe.a)(n)))),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),l(!1);case 11:l(!1);case 12:case"end":return e.stop()}},e,null,[[1,8]])}));return function(){return e.apply(this,arguments)}}(),se=function(){var e=Object(r.a)(Pg().mark(function e(t){return Pg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),e.prev=1,e.next=4,Q()({method:"GET",url:K.b+"a=tdvs_getTeacherCode&univcode="+localStorage.getItem("univcode")+"&board="+t,headers:{"Content-Type":"application.json"}}).then(function(e){if(0===e.data.error_code){var t=[].concat(Mg,Object(oe.a)(e.data.data));C(t)}else C([])});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),l(!1);case 9:l(!1);case 10:case"end":return e.stop()}},e,null,[[1,6]])}));return function(t){return e.apply(this,arguments)}}(),fe=function(){var e=Object(r.a)(Pg().mark(function e(){return Pg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==X){e.next=3;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select degree group"}}),e.abrupt("return");case 3:if(""!==B){e.next=6;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Year"}}),e.abrupt("return");case 6:if(""!==q){e.next=9;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter examtype"}}),e.abrupt("return");case 9:return l(!0),e.prev=10,M(!0),e.next=14,Q()({method:"GET",url:K.b+"a=TDVS_getTeacherValuationDetails&univcode="+localStorage.getItem("univcode")+"&board="+h+"&teachcode="+O+"&year="+B+"&examtype="+q+"°grp="+X}).then(function(e){0===e.data.error_code?F(e.data.data):F([])});case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(10),l(!1);case 19:l(!1);case 20:case"end":return e.stop()}},e,null,[[10,16]])}));return function(){return e.apply(this,arguments)}}(),de=function(){var e=Object(r.a)(Pg().mark(function e(){return Pg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:v(""),j("All"),M(!1),F([]);case 4:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),he=function(){var e=Object(r.a)(Pg().mark(function e(){return Pg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==X){e.next=3;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select degree group"}}),e.abrupt("return");case 3:if(""!==B){e.next=6;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Year"}}),e.abrupt("return");case 6:if(""!==q){e.next=9;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter examtype"}}),e.abrupt("return");case 9:window.open(K.c+"TDVS_getTeacherValuationDetailsReport&univcode="+localStorage.getItem("univcode")+"&board="+h+"&teachcode="+O+"&year="+B+"&examtype="+q+"°grp="+X);case 10:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),pe=function(){var e=Object(r.a)(Pg().mark(function e(t){return Pg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q.a.get(K.b+"a=tdvs_getYearModeDet&univcode="+localStorage.getItem("univcode")+"°grp="+t).then(function(e){console.log(e),0==e.data.error_code&&(H(e.data.data.fyear),Y(e.data.data.fexamtype))});case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),me=function(){var e=Object(r.a)(Pg().mark(function e(t){return Pg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q.a.get(K.b+"a=tdvs_getDeggreeGroup&univcode="+localStorage.getItem("univcode")).then(function(e){0===e.data.error_code&&ie(e.data.data)});case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{position:"fixed",width:"98%",height:"80vh",border:"1px solid #d1d8df"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h3",null,"Teacher Wise Valuation Details")),i.a.createElement("div",null,i.a.createElement(ne.a,{floated:"right",content:"Clear",color:"black",onClick:function(){return de()}}),i.a.createElement(ne.a,{floated:"right",content:"Report",color:"blue",onClick:function(){return he()}}))),i.a.createElement(re.a,null)),i.a.createElement(te.a.Description,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Degree Group"),i.a.createElement(p.a,{placeholder:"Degree Group",selection:!0,search:!0,value:X,options:ae,onChange:function(e,t){J(t.value),pe(t.value)}})),i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{placeholder:"Board",selection:!0,search:!0,value:h,options:b,onChange:function(e,t){v(t.value),se(t.value)}})),i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Teacher Code"),i.a.createElement(p.a,{placeholder:"Teacher Code",selection:!0,search:!0,value:O,options:_,onChange:function(e,t){return j(t.value)}})),i.a.createElement(le.a.Field,{width:2},i.a.createElement("label",null,"Year"),i.a.createElement(ue.a,{placeholder:"Year",maxLength:4,value:B,onChange:function(e,t){return H(t.value)}})),i.a.createElement(le.a.Field,{width:2},i.a.createElement("label",null,"Exam Type"),i.a.createElement(ue.a,{placeholder:"Exam Type",maxLength:1,value:q,onChange:function(e,t){return Y(t.value)}})),i.a.createElement(le.a.Field,{width:4},i.a.createElement(ne.a,{style:{position:"relative",top:"23px"},content:"Submit",color:"blue",size:"small",onClick:function(){return fe()}})))),P&&i.a.createElement("div",{style:{height:"60vh",overflowY:"auto"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("td",null,"Sl. No."),i.a.createElement("td",null,"Teach Code"),i.a.createElement("td",null,"Teacher Name"),i.a.createElement("td",null,"Mobile"),i.a.createElement("td",null,"Email"),i.a.createElement("td",null,"Aadhaar No"),i.a.createElement("td",null,"Acc No"),i.a.createElement("td",null,"IFSC Code"),i.a.createElement("td",null,"Pan No"),i.a.createElement("td",null,"QP Code"),i.a.createElement("td",null,"Tot. Val. Cnt."),i.a.createElement("td",null,"Qp Code - Marks - Count"),i.a.createElement("td",null,"Tot. Rev. Cnt."),i.a.createElement("td",null,"Qp Code - Marks - Count"))),i.a.createElement("tbody",null,I.length>0?I.map(function(e,t){var n=e.fvalqpdet.split(","),r=e.frvalqpdet.split(",");return i.a.createElement("tr",{key:t,style:{textAlign:"center"}},i.a.createElement("td",null,t+1),i.a.createElement("td",null,e.fteachcode),i.a.createElement("td",{style:{textAlign:"initial",paddingLeft:"10px"}},e.fteachname),i.a.createElement("td",null,e.fmobile),i.a.createElement("td",{style:{textAlign:"initial",paddingLeft:"10px"}},e.femail),i.a.createElement("td",null,e.faadharno),i.a.createElement("td",null,e.faccno),i.a.createElement("td",null,e.fifsccode),i.a.createElement("td",null,e.fpanno),i.a.createElement("td",null,e.fqpcode),i.a.createElement("td",null,e.fvalcnt),i.a.createElement("td",null,i.a.createElement("ul",{style:{listStyle:"none",padding:0}},n.map(function(e,t){return i.a.createElement("li",{key:t},e)}))),i.a.createElement("td",null,e.frvalcnt),i.a.createElement("td",null,i.a.createElement("ul",{style:{listStyle:"none",padding:0}},r.map(function(e,t){return i.a.createElement("li",{key:t},e)}))))}):i.a.createElement("tr",null,i.a.createElement("td",{colSpan:16,style:{textAlign:"center"}},"No data found"))))))))};function Tg(){Tg=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Ig=[{key:"all",value:"All",text:"All"}],Fg=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),l=(c[0],c[1]),u=Object(a.a)(n,2),s=(u[0],u[1]),f=Object(o.useState)(""),d=Object(a.a)(f,2),h=d[0],v=d[1],g=Object(o.useState)([]),y=Object(a.a)(g,2),b=y[0],w=y[1],E=Object(o.useState)("All"),x=Object(a.a)(E,2),O=x[0],j=x[1],k=Object(o.useState)([]),S=Object(a.a)(k,2),_=S[0],C=S[1],L=Object(o.useState)(""),A=Object(a.a)(L,2),P=A[0],M=A[1],N=Object(o.useState)([{key:"D",value:"D",text:"D"},{key:"2",value:"2",text:"2"}]),T=Object(a.a)(N,2),I=T[0],F=(T[1],Object(o.useState)("")),D=Object(a.a)(F,2),R=D[0],G=D[1],B=Object(o.useState)(""),H=Object(a.a)(B,2),z=H[0],V=H[1],q=Object(o.useState)(""),Y=Object(a.a)(q,2),W=Y[0],U=Y[1],X=localStorage.getItem("fteachcode");Object(o.useEffect)(function(){J()},[]);var J=function(){var e=Object(r.a)(Tg().mark(function e(){var t,n;return Tg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),e.prev=1,e.next=4,ee.get("/admin/get-panelboard?fusercode=".concat(X));case 4:0===(t=e.sent).data.status&&(n=t.data.result.map(function(e,t){return{key:t,text:e.fboardname,value:e.fboard}}),w(n)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),l(!1);case 11:l(!1);case 12:case"end":return e.stop()}},e,null,[[1,8]])}));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=Object(r.a)(Tg().mark(function e(t){var n,r;return Tg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),e.prev=1,e.next=4,ee.get("/admin/get-panelqpcode?fusercode=".concat(X,"&brd=").concat(t));case 4:0===(n=e.sent).data.status&&(r=n.data.result.map(function(e,t){return{key:t,text:e.fsubname,value:e.fqpcode}}),C([].concat(Ig,Object(oe.a)(r)))),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),l(!1);case 11:l(!1);case 12:case"end":return e.stop()}},e,null,[[1,8]])}));return function(t){return e.apply(this,arguments)}}(),$=function(){var e=Object(r.a)(Tg().mark(function e(t){return Tg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:l(!0);try{Q.a.get(K.b+"a=tdvs_getDeviationCount&univcode="+localStorage.getItem("univcode")+"&board="+t).then(function(e){0===e.data.error_code&&(G(e.data.data.fdeviation),V(e.data.data.fstatus),U(e.data.data.FSCNDVALCND))})}catch(n){}l(!1);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),ae=function(){var e=Object(r.a)(Tg().mark(function e(){var t;return Tg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==h){e.next=5;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select board"}}),e.abrupt("return");case 5:if(""!==P){e.next=8;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Valuation"}}),e.abrupt("return");case 8:return(t=new FormData).append("board",h),t.append("qpcode",O),t.append("valuation",P),t.append("devPrec",R),t.append("devStatus",z),t.append("percentage",W),l(!0),e.prev=16,e.next=19,Q.a.post(K.b+"a=tdvs_createDevaition&univcode="+localStorage.getItem("univcode"),t).then(function(e){if(0!==e.data.error_code)return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void l(!1);s({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.data.msg}})});case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(16),l(!1);case 24:l(!1);case 25:case"end":return e.stop()}},e,null,[[16,21]])}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{position:"fixed",width:"98%",height:"83vh",border:"1px solid #d1d8df"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h3",null,"Deviation / 2nd Valuation")),i.a.createElement("div",null,i.a.createElement(ne.a,{floated:"right",content:"Clear",color:"black",onClick:function(){return v(""),j("All"),M(""),G(""),V(""),void U("")}}))),i.a.createElement(re.a,null)),i.a.createElement(te.a.Description,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{name:"board",placeholder:"Board",selection:!0,search:!0,value:h,options:b,onChange:function(e,t){v(t.value),Z(t.value),$(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Qp Code"),i.a.createElement(p.a,{name:"qpcode",placeholder:"Qp Code",selection:!0,search:!0,value:O,options:_,onChange:function(e,t){j(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Valuation"),i.a.createElement(p.a,{name:"Valuation",placeholder:"Valuation",selection:!0,search:!0,value:P,options:I,onChange:function(e,t){M(t.value)}}))),"D"===P&&i.a.createElement("div",null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Devaition Percentage"),i.a.createElement(le.a.Input,{name:"DevaitionPercentage",placeholder:"Devaition Percentage",value:R,disabled:!0}))),i.a.createElement(le.a.Group,null,i.a.createElement("div",{style:{display:"flex",gap:"10px"}},i.a.createElement("b",null,"Includes Deviation"),i.a.createElement("input",{type:"checkbox",checked:"T"===z})))),"2"===P&&i.a.createElement("div",null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Second Valuation Condition"),i.a.createElement(le.a.Input,{name:"SecondValuationCondition",placeholder:"Second Valuation Condition",value:W,disabled:!0}))))),i.a.createElement(ne.a,{content:"Create",color:"blue",onClick:function(){return ae()}}))))};function Dg(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Rg(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return Gg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gg(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw o}}}}function Gg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bg(){Bg=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Hg(e){var t,n,r,i=e.chartVersion,c=void 0===i?"current":i,l=e.chartPackages,u=void 0===l?["corechart","controls"]:l,s=e.chartLanguage,f=void 0===s?"en":s,d=e.mapsApiKey,h=Object(o.useState)(null),p=Object(a.a)(h,2),m=p[0],v=p[1],g=Object(o.useState)(!1),y=Object(a.a)(g,2),b=y[0],w=y[1];return t="https://www.gstatic.com/charts/loader.js",n=function(){var e=null===window||void 0===window?void 0:window.google;e&&(e.charts.load(c,{packages:u,language:f,mapsApiKey:d}),e.charts.setOnLoadCallback(function(){v(e)}))},r=function(){w(!0)},Object(o.useEffect)(function(){if(document){var e=document.querySelector('script[src="'.concat(t,'"]'));if(null===e||void 0===e||!e.dataset.loaded){var a=e||document.createElement("script");e||(a.src=t);var o=function(){a.dataset.loaded="1",null===n||void 0===n||n()};return a.addEventListener("load",o),r&&a.addEventListener("error",r),e||document.head.append(a),function(){a.removeEventListener("load",o),r&&a.removeEventListener("error",r)}}null===n||void 0===n||n()}},[]),[m,b]}function zg(e){var t=e.onLoad,n=e.onError,r=Hg(Dg(e,["onLoad","onError"])),i=Object(a.a)(r,2),c=i[0],l=i[1];return Object(o.useEffect)(function(){c&&t&&t(c)},[c]),Object(o.useEffect)(function(){l&&n&&n()},[l]),null}var Vg,qg={legend_toggle:!1,options:{},legendToggle:!1,getChartWrapper:function(){},spreadSheetQueryParameters:{headers:1,gid:1},rootProps:{},chartWrapperParams:{}},Yg=0,Wg=function(){return"reactgooglegraph-".concat(Yg+=1)},Ug=["#3366CC","#DC3912","#FF9900","#109618","#990099","#3B3EAC","#0099C6","#DD4477","#66AA00","#B82E2E","#316395","#994499","#22AA99","#AAAA11","#6633CC","#E67300","#8B0707","#329262","#5574A6","#3B3EAC"],Xg=function(){var e=Object(r.a)(Bg().mark(function e(t,n){var r,a=arguments;return Bg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>2&&void 0!==a[2]?a[2]:{},e.abrupt("return",new Promise(function(e,a){var o="".concat(r.headers?"headers=".concat(r.headers):"headers=0"),i="".concat(r.query?"&tq=".concat(encodeURIComponent(r.query)):""),c="".concat(r.gid?"&gid=".concat(r.gid):""),l="".concat(r.sheet?"&sheet=".concat(r.sheet):""),u="".concat(r.access_token?"&access_token=".concat(r.access_token):""),s="".concat(o).concat(c).concat(l).concat(i).concat(u),f="".concat(n,"/gviz/tq?").concat(s);new t.visualization.Query(f).send(function(t){t.isError()?a("Error in query: ".concat(t.getMessage()," ").concat(t.getDetailedMessage())):e(t.getDataTable())})}));case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),Qg=o.createContext(qg),Kg=Qg.Provider,Jg=Qg.Consumer,Zg=function(e){var t=e.children,n=e.value;return o.createElement(Kg,{value:n},t)},$g=function(e){var t=e.render;return o.createElement(Jg,null,function(e){return t(e)})},ey="#CCCCCC",ty=function(e){function t(){var e,n;Object(mt.a)(this,t);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=Object(ft.a)(this,(e=Object(dt.a)(t)).call.apply(e,[this].concat(o)))).state={hiddenColumns:[]},n.listenToLegendToggle=function(){var e=n.props,t=e.google,r=e.googleChartWrapper;t.visualization.events.addListener(r,"select",function(){var e=r.getChart().getSelection(),t=r.getDataTable();if(0!==e.length&&!e[0].row&&t){var a=e[0].column,o=n.getColumnID(t,a);n.state.hiddenColumns.includes(o)?n.setState(function(e){return Object(ae.a)({},e,{hiddenColumns:Object(oe.a)(e.hiddenColumns.filter(function(e){return e!==o}))})}):n.setState(function(e){return Object(ae.a)({},e,{hiddenColumns:[].concat(Object(oe.a)(e.hiddenColumns),[o])})})}})},n.applyFormatters=function(e,t){var r,a=n.props.google,o=Rg(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;switch(i.type){case"ArrowFormat":new a.visualization.ArrowFormat(i.options).format(e,i.column);break;case"BarFormat":new a.visualization.BarFormat(i.options).format(e,i.column);break;case"ColorFormat":var c,l=new a.visualization.ColorFormat(i.options),u=Rg(i.ranges);try{for(u.s();!(c=u.n()).done;){var s=c.value;l.addRange.apply(l,Object(oe.a)(s))}}catch(f){u.e(f)}finally{u.f()}l.format(e,i.column);break;case"DateFormat":new a.visualization.DateFormat(i.options).format(e,i.column);break;case"NumberFormat":new a.visualization.NumberFormat(i.options).format(e,i.column);break;case"PatternFormat":new a.visualization.PatternFormat(i.options).format(e,i.column)}}}catch(f){o.e(f)}finally{o.f()}},n.getColumnID=function(e,t){return e.getColumnId(t)||e.getColumnLabel(t)},n.draw=function(){var e=Object(r.a)(Bg().mark(function e(t){var r,a,o,i,c,l,u,s,f,d,h,p,m,v,g,y,b,w,E,x,O,j,k,S,_;return Bg().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.data,a=t.diffdata,o=t.rows,i=t.columns,c=t.options,l=t.legend_toggle,u=t.legendToggle,s=t.chartType,f=t.formatters,d=t.spreadSheetUrl,h=t.spreadSheetQueryParameters,p=n.props,m=p.google,v=p.googleChartWrapper,y=null,a&&(b=m.visualization.arrayToDataTable(a.old),w=m.visualization.arrayToDataTable(a.new),y=m.visualization[s].prototype.computeDiff(b,w)),null===r){e.next=8;break}g=Array.isArray(r)?m.visualization.arrayToDataTable(r):new m.visualization.DataTable(r),e.next=19;break;case 8:if(!o||!i){e.next=12;break}g=m.visualization.arrayToDataTable([i].concat(Object(oe.a)(o))),e.next=19;break;case 12:if(!d){e.next=18;break}return e.next=15,Xg(m,d,h);case 15:g=e.sent,e.next=19;break;case 18:g=m.visualization.arrayToDataTable([]);case 19:for(E=g.getNumberOfColumns(),x=0;x<E;x+=1)O=n.getColumnID(g,x),n.state.hiddenColumns.includes(O)&&(j=g.getColumnLabel(x),k=g.getColumnId(x),S=g.getColumnType(x),g.removeColumn(x),g.addColumn({label:j,id:k,type:S}));return _=v.getChart(),"Timeline"===v.getChartType()&&_&&_.clearChart(),v.setChartType(s),v.setOptions(c||{}),v.setDataTable(g),v.draw(),null!==n.props.googleChartDashboard&&n.props.googleChartDashboard.draw(g),y&&(v.setDataTable(y),v.draw()),f&&(n.applyFormatters(g,f),v.setDataTable(g),v.draw()),!0!==u&&!0!==l||n.grayOutHiddenColumns({options:c}),e.abrupt("return");case 32:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),n.grayOutHiddenColumns=function(e){var t=e.options,r=n.props.googleChartWrapper,a=r.getDataTable();if(a){var o=a.getNumberOfColumns();if(!1!==n.state.hiddenColumns.length>0){var i=Array.from({length:o-1}).map(function(e,r){var o=n.getColumnID(a,r+1);return n.state.hiddenColumns.includes(o)?ey:t&&t.colors?t.colors[r]:Ug[r]});r.setOptions(Object(ae.a)({},t,{colors:i})),r.draw()}}},n.onResize=function(){n.props.googleChartWrapper.draw()},n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"componentDidMount",value:function(){this.draw(this.props),window.addEventListener("resize",this.onResize),(this.props.legend_toggle||this.props.legendToggle)&&this.listenToLegendToggle()}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.google,n=e.googleChartWrapper;window.removeEventListener("resize",this.onResize),t.visualization.events.removeAllListeners(n),"Timeline"===n.getChartType()&&n.getChart()&&n.getChart().clearChart()}},{key:"componentDidUpdate",value:function(){this.draw(this.props)}},{key:"render",value:function(){return null}}]),t}(o.Component),ny=function(e){function t(){return Object(mt.a)(this,t),Object(ft.a)(this,Object(dt.a)(t).apply(this,arguments))}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var e=this.props,t=e.google,n=e.googleChartWrapper,r=e.googleChartDashboard;return o.createElement($g,{render:function(e){return o.createElement(ty,Object.assign({},e,{google:t,googleChartWrapper:n,googleChartDashboard:r}))}})}}]),t}(o.Component),ry=function(e){function t(){return Object(mt.a)(this,t),Object(ft.a)(this,Object(dt.a)(t).apply(this,arguments))}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"listenToEvents",value:function(e){var t=this,n=e.chartEvents,r=e.google,a=e.googleChartWrapper;if(n){r.visualization.events.removeAllListeners(a);var o,i=Rg(n);try{var c=function(){var e=o.value;l=t;var n=e.eventName,i=e.callback;r.visualization.events.addListener(a,n,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i({chartWrapper:a,props:l.props,google:r,eventArgs:t})})};for(i.s();!(o=i.n()).done;){var l;c()}}catch(u){i.e(u)}finally{i.f()}}}},{key:"render",value:function(){var e=this,t=this.props,n=t.google,r=t.googleChartWrapper;return o.createElement($g,{render:function(t){return e.listenToEvents({chartEvents:t.chartEvents||null,google:n,googleChartWrapper:r}),null}})}}]),t}(o.Component),ay=0,oy=function(e){function t(){for(var e,n,r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Object(mt.a)(this,t),e=Object(ft.a)(this,Object(dt.a)(t).call(this)),n=Object(st.a)(Object(st.a)(e)),e.state={googleChartWrapper:null,googleChartDashboard:null,googleChartControls:null,googleChartEditor:null,isReady:!1},e.graphID=null,e.dashboard_ref=o.createRef(),e.toolbar_ref=o.createRef(),e.getGraphID=function(){var t,n=e.props,r=n.graphID,a=n.graph_id;return t=r||a?r&&!a?r:a&&!r?a:r:e.graphID?e.graphID:Wg(),e.graphID=t,e.graphID},e.getControlID=function(e,t){return ay+=1,"undefined"===typeof e?"googlechart-control-".concat(t,"-").concat(ay):e},e.addControls=function(t,n){var r=e.props,a=r.google,o=r.controls,i=o?o.map(function(t,n){var r=t.controlID,o=t.controlType,i=t.options,c=t.controlWrapperParams,l=e.getControlID(r,n);return{controlProp:t,control:new a.visualization.ControlWrapper(Object(ae.a)({containerId:l,controlType:o,options:i},c))}}):null;if(!i)return null;n.bind(i.map(function(e){return e.control}),t);var c,l=Rg(i);try{var u=function(){var n,r=c.value,o=r.control,i=r.controlProp.controlEvents,l=Rg(void 0===i?[]:i);try{var u=function(){var r=n.value;s=Object(st.a)(Object(st.a)(e));var i=r.callback,c=r.eventName;a.visualization.events.removeListener(o,c,i),a.visualization.events.addListener(o,c,function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];i({chartWrapper:t,controlWrapper:o,props:s.props,google:a,eventArgs:n})})};for(l.s();!(n=l.n()).done;)u()}catch(f){l.e(f)}finally{l.f()}};for(l.s();!(c=l.n()).done;){var s;u()}}catch(f){l.e(f)}finally{l.f()}return i},e.renderChart=function(){var t=e.props,n=t.width,r=t.height,a=t.options,i=t.style,c=t.className,l=t.rootProps,u=t.google,s=Object(ae.a)({height:r||a&&a.height,width:n||a&&a.width},i);return o.createElement("div",Object.assign({id:e.getGraphID(),style:s,className:c},l),e.state.isReady&&null!==e.state.googleChartWrapper?o.createElement(o.Fragment,null,o.createElement(ny,{googleChartWrapper:e.state.googleChartWrapper,google:u,googleChartDashboard:e.state.googleChartDashboard}),o.createElement(ry,{googleChartWrapper:e.state.googleChartWrapper,google:u})):null)},e.renderControl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return!0};return n.state.isReady&&null!==n.state.googleChartControls?o.createElement(o.Fragment,null,n.state.googleChartControls.filter(function(t){var n=t.controlProp,r=t.control;return e({control:r,controlProp:n})}).map(function(e){var t=e.control;e.controlProp;return o.createElement("div",{key:t.getContainerId(),id:t.getContainerId()})})):null},e.renderToolBar=function(){return e.props.toolbarItems?o.createElement("div",{ref:e.toolbar_ref}):null},e}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.options,n=e.google,r=e.chartType,a=e.chartWrapperParams,o=e.toolbarItems,i=e.getChartEditor,c=e.getChartWrapper,l=Object(ae.a)({chartType:r,options:t,containerId:this.getGraphID()},a),u=new n.visualization.ChartWrapper(l);u.setOptions(t||{}),c&&c(u,n);var s=new n.visualization.Dashboard(this.dashboard_ref),f=this.addControls(u,s);o&&n.visualization.drawToolbar(this.toolbar_ref.current,o);var d=null;i&&i({chartEditor:d=new n.visualization.ChartEditor,chartWrapper:u,google:n}),this.setState({googleChartEditor:d,googleChartControls:f,googleChartDashboard:s,googleChartWrapper:u,isReady:!0})}},{key:"componentDidUpdate",value:function(){if(this.state.googleChartWrapper&&this.state.googleChartDashboard&&this.state.googleChartControls){var e=this.props.controls;if(e)for(var t=0;t<e.length;t+=1){var n=e[t],r=n.controlType,a=n.options,o=n.controlWrapperParams;o&&"state"in o&&this.state.googleChartControls[t].control.setState(o.state),this.state.googleChartControls[t].control.setOptions(a),this.state.googleChartControls[t].control.setControlType(r)}}}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.isReady!==t.isReady||e.controls!==this.props.controls}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,r=e.options,a=e.style,i=Object(ae.a)({height:n||r&&r.height,width:t||r&&r.width},a);return this.props.render?o.createElement("div",{ref:this.dashboard_ref,style:i},o.createElement("div",{ref:this.toolbar_ref,id:"toolbar"}),this.props.render({renderChart:this.renderChart,renderControl:this.renderControl,renderToolbar:this.renderToolBar})):o.createElement("div",{ref:this.dashboard_ref,style:i},this.renderControl(function(e){return"bottom"!==e.controlProp.controlPosition}),this.renderChart(),this.renderControl(function(e){return"bottom"===e.controlProp.controlPosition}),this.renderToolBar())}}]),t}(o.Component),iy=function(e){function t(){var e,n;Object(mt.a)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=Object(ft.a)(this,(e=Object(dt.a)(t)).call.apply(e,[this].concat(a))))._isMounted=!1,n.state={loadingStatus:"loading",google:null},n.onLoad=function(e){if(n.props.onLoad&&n.props.onLoad(e),n.isFullyLoaded(e))n.onSuccess(e);else var t=setInterval(function(){var e=window.google;n._isMounted?e&&n.isFullyLoaded(e)&&(clearInterval(t),n.onSuccess(e)):clearInterval(t)},1e3)},n.onSuccess=function(e){n.setState({loadingStatus:"ready",google:e})},n.onError=function(){n.setState({loadingStatus:"errored"})},n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"render",value:function(){var e=this.props,t=e.chartLanguage,n=e.chartPackages,r=e.chartVersion,a=e.mapsApiKey,i=e.loader,c=e.errorElement;return o.createElement(Zg,{value:this.props},"ready"===this.state.loadingStatus&&null!==this.state.google?o.createElement(oy,Object.assign({},this.props,{google:this.state.google})):"errored"===this.state.loadingStatus&&c?c:i,o.createElement(zg,{chartLanguage:t,chartPackages:n,chartVersion:r,mapsApiKey:a,onLoad:this.onLoad,onError:this.onError}))}},{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"isFullyLoaded",value:function(e){var t=this.props,n=t.controls,r=t.toolbarItems,a=t.getChartEditor;return e&&e.visualization&&e.visualization.ChartWrapper&&e.visualization.Dashboard&&(!n||e.visualization.ChartWrapper)&&(!a||e.visualization.ChartEditor)&&(!r||e.visualization.drawToolbar)}}]),t}(o.Component);iy.defaultProps=qg,function(e){e.annotation="annotation",e.annotationText="annotationText",e.certainty="certainty",e.emphasis="emphasis",e.interval="interval",e.scope="scope",e.style="style",e.tooltip="tooltip",e.domain="domain"}(Vg||(Vg={}));function cy(){cy=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var ly=[["Scripts","Data"]],uy=function(){Object(c.useHistory)();var e=Object(o.useContext)(m.a).load,t=localStorage.getItem("univcode"),u=Object(a.a)(e,2),s=(u[0],u[1]),f=Object(o.useState)(""),d=Object(a.a)(f,2),h=d[0],p=d[1],v=Object(o.useState)(""),g=Object(a.a)(v,2),y=g[0],b=g[1],w=Object(o.useState)(""),E=Object(a.a)(w,2),x=E[0],O=E[1],j=Object(o.useState)([]),k=Object(a.a)(j,2),S=k[0],_=k[1],C=Object(o.useState)(new Date),L=Object(a.a)(C,2),A=L[0],P=(L[1],Object(o.useState)([])),M=Object(a.a)(P,2),N=M[0],T=M[1],I=Object(o.useState)([]),F=Object(a.a)(I,2),D=F[0],R=F[1],G=Object(o.useState)(!1),B=Object(a.a)(G,2),H=B[0],z=B[1],V=Object(o.useState)(""),q=Object(a.a)(V,2),Y=q[0],W=q[1],U=Object(o.useState)(""),X=Object(a.a)(U,2),J=X[0],Z=X[1],$=Object(o.useState)(!1),ee=Object(a.a)($,2),re=ee[0],ae=ee[1],oe={title:"Total Scripts ("+Intl.NumberFormat("en-IN").format(h.Total)+")",colors:["#228B22","#ff0000","#3366cc"],is3D:!0};Object(o.useEffect)(function(){ie()},[]);var ie=function(){var e=Object(r.a)(cy().mark(function e(){return cy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return ly=[["Scripts","Data"]],s(!0),e.next=4,Q.a.get(K.b+"a=tdvs_dashboard&univcode="+t).then(function(e){p(e.data.data.scr),b(e.data.data.val),O(e.data.data.rem),_(e.data.data.currdate),T(e.data.data.assign),R(e.data.data.notass),Object.entries(e.data.data.scr).forEach(function(e){var t=Object(a.a)(e,2),n=t[0],r=t[1];"Total"!==n&&ly.push([n+" ("+Intl.NumberFormat("en-IN").format(r)+")",parseInt(r)])})});case 4:s(!1);case 5:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),ce=function(e){window.open(K.c+"tdvs_getQpNotStartedReprot&univcode="+t+"&rtype="+e)};return i.a.createElement("div",null,i.a.createElement(te.a.Group,null,i.a.createElement(te.a,{style:{width:"41%"}},i.a.createElement(te.a.Content,null,i.a.createElement(iy,{chartType:"PieChart",data:ly,options:oe,width:"100%",height:"250px"})),i.a.createElement("div",{style:{position:"absolute",padding:"20px",right:0,bottom:0}},i.a.createElement(l.b,{to:{pathname:"/admin/dashboard"}},i.a.createElement("a",null,"Click here to know more")))),i.a.createElement(te.a,{style:{width:"55%",border:"none",boxShadow:"none"}},i.a.createElement(te.a.Group,null,i.a.createElement(te.a,{style:{width:"48%"},border:!0},i.a.createElement("center",null,i.a.createElement("h4",{style:sy.textGreen},"Total")),i.a.createElement("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"0 10px 0 10px"}},i.a.createElement("div",null,i.a.createElement("img",{src:n(1397),alt:"mySvgImage",style:{height:"100px",width:"100px"}})),i.a.createElement("div",{style:sy.centerText},i.a.createElement("h5",{style:{color:"#228B22"},onMouseOver:function(e){return e.target.style.textDecoration="underline"},onMouseOut:function(e){return e.target.style.textDecoration="none"}},"Completed:"," ",Intl.NumberFormat("en-IN").format(y.ftotal)," ",i.a.createElement("br",null),"Remaining:"," ",Intl.NumberFormat("en-IN").format(h.Remaining))))),i.a.createElement(te.a,{style:{width:"48%"},border:!0},i.a.createElement("center",null,i.a.createElement("h4",{style:sy.textGreen},"Valuation 1 Details")),i.a.createElement("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"0 10px 0 10px"}},i.a.createElement("div",null,i.a.createElement("img",{src:n(1398),alt:"mySvgImage",style:{height:"100px",width:"100px"}})),i.a.createElement("div",{style:sy.centerText},i.a.createElement("h4",{style:{color:"#3366cc"},onMouseOver:function(e){return e.target.style.textDecoration="underline"},onMouseOut:function(e){return e.target.style.textDecoration="none"}},"Completed:"," ",Intl.NumberFormat("en-IN").format(y.fvalno1)," ",i.a.createElement("br",null),"Remaining: ",Intl.NumberFormat("en-IN").format(x.fvalno1)))))),i.a.createElement(te.a.Group,null,i.a.createElement(te.a,{style:{width:"48%"},border:!0},i.a.createElement("center",null,i.a.createElement("h4",{style:sy.textGreen},"Valuation 2 Details")),i.a.createElement("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"0 10px 0 10px"}},i.a.createElement("div",null,i.a.createElement("img",{src:n(1399),alt:"mySvgImage",style:{height:"100px",width:"100px"}})),i.a.createElement("div",{style:sy.centerText},i.a.createElement("h4",{style:sy.textBlue,onMouseOver:function(e){return e.target.style.textDecoration="underline"},onMouseOut:function(e){return e.target.style.textDecoration="none"}},"Completed:"," ",Intl.NumberFormat("en-IN").format(y.fvalno2)," ",i.a.createElement("br",null),"Remaining: ",Intl.NumberFormat("en-IN").format(x.fvalno2))))),i.a.createElement(te.a,{style:{border:"1px solid #ddd",borderShadow:"1px solid",width:"48%"}},i.a.createElement("center",null,i.a.createElement("h4",{style:sy.textGreen},"Deviation Details")),i.a.createElement("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"0 10px 0 10px"}},i.a.createElement("div",null,i.a.createElement("img",{src:n(1400),alt:"mySvgImage",style:{height:"100px",width:"100px"}})),i.a.createElement("div",{style:sy.centerText},i.a.createElement("h4",{style:{color:"#228B22"},onMouseOver:function(e){return e.target.style.textDecoration="underline"},onMouseOut:function(e){return e.target.style.textDecoration="none"}},"Completed:"," ",Intl.NumberFormat("en-IN").format(y.fvalnoD)," ",i.a.createElement("br",null),"Remaining: ",Intl.NumberFormat("en-IN").format(x.fvalnoD)))))))),i.a.createElement(te.a.Group,null,i.a.createElement(te.a,{style:{width:"35%",height:"45vh",overflowY:"auto"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("td",{colSpan:5},"Current Day Activity (",nv()(A).format("DD/MM/YYYY"),")")),i.a.createElement("tr",null,i.a.createElement("td",null,"Teacher Code"),i.a.createElement("td",null,"Teacher Name"),i.a.createElement("td",null,"QP Code"),i.a.createElement("td",null,"Valno"),i.a.createElement("td",null,"Status"))),i.a.createElement("tbody",null,S.length>0?S.map(function(e,t){return i.a.createElement("tr",{style:{textAlign:"center"},key:t},i.a.createElement("td",null,e.fteachcode),i.a.createElement("td",{style:{textAlign:"initial",paddingLeft:"10px"}},e.fteachname),i.a.createElement("td",null,e.fqpcode),i.a.createElement("td",null,e.fvalno),i.a.createElement("td",null,e.fstatus))}):i.a.createElement("tr",null,i.a.createElement("td",{style:{textAlign:"center"},colSpan:5},"No Data Found"))))),i.a.createElement(te.a,{style:{width:"30%",height:"45vh",overflowY:"auto",marginLeft:"10px"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("td",{colSpan:4},i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0 10px"}},H?i.a.createElement("input",{autoFocus:!0,type:"text",placeholder:"Search",style:{width:"90%",borderRadius:"10px",padding:"5px",transition:"width 0.4s ease-in-out"},onChange:function(e){return W(e.target.value)}}):i.a.createElement("p",null,"Evaluation not started"),i.a.createElement("div",null,i.a.createElement(ne.a,{floated:"right",icon:H?"chevron left":"search",circular:!0,color:"linkedin",onClick:function(){z(!H)}}),!H&&i.a.createElement(ne.a,{floated:"right",icon:"file excel",circular:!0,color:"facebook",onClick:function(){return ce("qpnotstart")}}))))),i.a.createElement("tr",null,i.a.createElement("td",null,"Teacher Code"),i.a.createElement("td",null,"Teacher Name"),i.a.createElement("td",null,"Qp Code"),i.a.createElement("td",null,"Valno"))),i.a.createElement("tbody",null,N.length>0?N.filter(function(e){return e.fteachcode.toLowerCase().includes(Y.toLowerCase())||e.fteachname.toLowerCase().includes(Y.toLowerCase())||e.fqpcode.toLowerCase().includes(Y.toLowerCase())||e.fvalno.toLowerCase().includes(Y.toLowerCase())}).map(function(e,t){return i.a.createElement("tr",{style:{textAlign:"center"},key:t},i.a.createElement("td",null,e.fteachcode),i.a.createElement("td",{style:{textAlign:"initial",paddingLeft:"10px"}},e.fteachname),i.a.createElement("td",null,e.fqpcode),i.a.createElement("td",null,e.fvalno))}):i.a.createElement("tr",null,i.a.createElement("td",{style:{textAlign:"center"},colSpan:4},"No Data Found"))))),i.a.createElement(te.a,{style:{width:"30%",height:"45vh",overflowY:"auto",marginLeft:"10px"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("td",{colSpan:4},i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0 10px"}},re?i.a.createElement("input",{autoFocus:!0,type:"text",placeholder:"Search",style:{width:"90%",borderRadius:"10px",padding:"5px",transition:"width 0.4s ease-in-out"},onChange:function(e){return Z(e.target.value)}}):i.a.createElement("p",null," QP Not Assigned"),i.a.createElement("div",null,i.a.createElement(ne.a,{floated:"right",icon:re?"chevron left":"search",circular:!0,color:"linkedin",onClick:function(){ae(!re)}}),!re&&i.a.createElement(ne.a,{floated:"right",icon:"file excel",circular:!0,color:"facebook",onClick:function(){return ce("qpnotassign")}}))))),i.a.createElement("tr",null,i.a.createElement("td",null,"Qp Code"),i.a.createElement("td",null,"Subject"),i.a.createElement("td",null,"ValNo"),i.a.createElement("td",null,"Count"))),i.a.createElement("tbody",null,D.length>0?D.filter(function(e){return e.fqpcode.toLowerCase().includes(J.toLowerCase())||e.fsubname.toLowerCase().includes(J.toLowerCase())||e.fvalno.toLowerCase().includes(J.toLowerCase())||e.count.toLowerCase().includes(J.toLowerCase())}).map(function(e,t){return i.a.createElement("tr",{style:{textAlign:"center"},key:t},i.a.createElement("td",null,e.fqpcode),i.a.createElement("td",{style:{textAlign:"initial",paddingLeft:"10px"}},e.fsubname),i.a.createElement("td",null,e.fvalno),i.a.createElement("td",null,e.count))}):i.a.createElement("tr",null,i.a.createElement("td",{style:{textAlign:"center"},colSpan:4},"No Data Found")))))))},sy={textGreen:{color:"#fff",backgroundColor:"#00b5ae"},textBlue:{color:"#3366cc"},centerText:{display:"flex",flexDirection:"column",justifyContent:"center"}};function fy(){fy=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var dy=function(e){var t=Object(o.useContext)(m.a),n=t.load,l=t.err_msg,u=t.confirm_err_msg,s=(Object(c.useHistory)(),Object(a.a)(n,2)),f=(s[0],s[1]),d=Object(a.a)(l,2),h=(d[0],d[1]),p=Object(a.a)(u,2),v=(p[0],p[1],localStorage.getItem("fteachcode")),g=localStorage.getItem("fboard"),y=Object(o.useState)(""),b=Object(a.a)(y,2),w=b[0],E=b[1],x=Object(o.useState)([]),O=Object(a.a)(x,2),j=O[0],k=O[1];Object(o.useEffect)(function(){S()},[]);var S=function(){var e=Object(r.a)(fy().mark(function e(){var t;return fy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,f(!0),e.next=4,ee.get("/admin/get-dashboard-det?fusercode=".concat(v,"&fboard=").concat(g));case 4:if(0!=(t=e.sent).data.status){e.next=9;break}k(t.data.result),e.next=10;break;case 9:throw new Error(t.data.msg);case 10:f(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(0),f(!1),h({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 17:case"end":return e.stop()}},e,null,[[0,13]])}));return function(){return e.apply(this,arguments)}}(),_=function(){var e=Object(r.a)(fy().mark(function e(t,n,r,a){var o;return fy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=localStorage.getItem("univcode"),window.open("".concat(K.c,"getTDVSValuationStatusReport&univcode=").concat(o,"&type=").concat(t,"&valno=").concat(r,"&qpcode=").concat(n,"&rtype=").concat(a),"_blank");case 2:case"end":return e.stop()}},e)}));return function(t,n,r,a){return e.apply(this,arguments)}}(),C=function(e){e.target.style.background="#00b5ae",e.target.style.cursor="pointer"},L=function(e){e.target.style.background=""};return i.a.createElement("div",null,i.a.createElement(te.a,{fluid:!0},i.a.createElement("div",{style:{overflowY:"auto",height:"80vh"}},j.length>0?i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("td",{colSpan:11},i.a.createElement("input",{type:"text",placeholder:"Search",style:{borderRadius:"25px",width:"100%",padding:"10px"},onChange:function(e){return E(e.target.value)}}))),i.a.createElement("tr",null,i.a.createElement("td",null," Sl. No"),i.a.createElement("td",null," Degree Group"),i.a.createElement("td",null," Board"),i.a.createElement("td",null," Sem. / Year"),i.a.createElement("td",null," Val. No."),i.a.createElement("td",null," Total Scripts"),i.a.createElement("td",null," Val. Comp."),i.a.createElement("td",null," Pending"),i.a.createElement("td",null," Rejected"),i.a.createElement("td",null," Assigned"),i.a.createElement("td",null," Val. %"))),i.a.createElement("tbody",null,j.filter(function(e){return e.fqpcode.toLowerCase().includes(w.toLowerCase())||e.fsubname.toLowerCase().includes(w.toLowerCase())||e.fexamno.toLowerCase().includes(w.toLowerCase())||e.fvalno.toLowerCase().includes(w.toLowerCase())||e.ftotal.toString().toLowerCase().includes(w.toLowerCase())||e.fsubmit.toString().toLowerCase().includes(w.toLowerCase())||e.fbalance.toString().toLowerCase().includes(w.toLowerCase())||e.freject.toString().toLowerCase().includes(w.toLowerCase())||e.fassign.toString().toLowerCase().includes(w.toLowerCase())||e.fpercent.toString().toLowerCase().includes(w.toLowerCase())}).map(function(e,t){return i.a.createElement("tr",{style:{textAlign:"center"},key:t},i.a.createElement("td",null,t+1),i.a.createElement("td",null," ",e.fqpcode),i.a.createElement("td",{style:{textAlign:"initial",paddingLeft:"10px"}},e.fsubname),i.a.createElement("td",null," ",e.fexamno),i.a.createElement("td",null," ",e.fvalno),i.a.createElement("td",{onClick:function(){return _("Total",e.fqpcode,e.fvalno,"boardwise")},onMouseOver:C,onMouseOut:L},parseInt(e.ftotal).toLocaleString("en-IN")),i.a.createElement("td",{onClick:function(){return _("Final",e.fqpcode,e.fvalno,"boardwise")},onMouseOver:C,onMouseOut:L},parseInt(e.fsubmit).toLocaleString("en-IN")),i.a.createElement("td",{onClick:function(){return _("Balance",e.fqpcode,e.fvalno,"boardwise")},onMouseOver:C,onMouseOut:L},parseInt(e.fbalance).toLocaleString("en-IN")),i.a.createElement("td",{onClick:function(){return _("Rejected",e.fqpcode,e.fvalno,"boardwise")},onMouseOver:C,onMouseOut:L},parseInt(e.freject).toLocaleString("en-IN")),i.a.createElement("td",{onClick:function(){return _("Assigned",e.fqpcode,e.fvalno,"boardwise")},onMouseOver:C,onMouseOut:L},parseInt(e.fassign).toLocaleString("en-IN")),i.a.createElement("td",null," ",Math.trunc(e.fpercent)))}))):null)))};function hy(){hy=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var py=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),l=(c[0],c[1]),u=Object(a.a)(n,2),s=(u[0],u[1]),f=localStorage.getItem("fteachcode"),d=Object(o.useState)(""),p=Object(a.a)(d,2),v=p[0],g=p[1],y=Object(o.useState)(""),b=Object(a.a)(y,2),w=b[0],E=b[1],x=Object(o.useState)(""),O=Object(a.a)(x,2),j=O[0],k=O[1],S=Object(o.useState)(!1),_=Object(a.a)(S,2),C=_[0],L=_[1],A=Object(o.useState)(!1),P=Object(a.a)(A,2),M=P[0],N=P[1],T=Object(o.useState)(""),I=Object(a.a)(T,2),F=I[0],D=I[1],R=Object(o.useState)([]),G=Object(a.a)(R,2),B=(G[0],G[1]),H=Object(o.useState)(""),z=Object(a.a)(H,2),V=z[0],q=z[1],Y=Object(o.useState)(""),W=Object(a.a)(Y,2),U=W[0],X=W[1],J=Object(o.useState)(nv()().format("DD/MM/YYYY")),Z=Object(a.a)(J,2),$=Z[0],ae=Z[1],oe=Object(o.useState)(""),ie=Object(a.a)(oe,2),ce=ie[0],se=ie[1],fe=Object(o.useState)(""),de=Object(a.a)(fe,2),he=de[0],pe=de[1];Object(o.useEffect)(function(){me(),ve()},[]);var me=function(){var e=Object(r.a)(hy().mark(function e(){var t,n;return hy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l(!0),e.next=4,ee.get("/admin/get-deggrp?fusercode=".concat(f));case 4:if(0!=(t=e.sent).data.status){e.next=11;break}n=[],t.data.result.res.map(function(e,t){n.push({key:e.fdeggrp,value:e.fdeggrp,text:e.fdescpn})}),B(n),e.next=12;break;case 11:throw new Error(t.data.msg);case 12:l(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),l(!1),s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(){return e.apply(this,arguments)}}(),ve=function(){var e=Object(r.a)(hy().mark(function e(){var t;return hy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l(!0),e.next=4,Q.a.get(K.b+"a=getRecQPCount&univcode=".concat(localStorage.getItem("univcode")));case 4:t=e.sent,L(!0),N(t.data.data),l(!1),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(0),l(!1),s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 14:case"end":return e.stop()}},e,null,[[0,10]])}));return function(){return e.apply(this,arguments)}}(),ge=function(){var e=Object(r.a)(hy().mark(function e(t){var n;return hy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(l(!0),!window.confirm("Are Sure You want to delete the recoded")){e.next=23;break}return e.prev=3,e.next=6,Q.a.get(K.b+"a=deletRecQPCount&univcode=".concat(localStorage.getItem("univcode"),"&fid=").concat(t));case 6:if(0!=(n=e.sent).data.error_code){e.next=13;break}s({type:"OPEN_MSG_BOX",payload:{header:"Success",message:n.data.data.msg}}),ve(),l(!1),e.next=14;break;case 13:throw new Error(n.data.data.msg);case 14:l(!1),e.next=21;break;case 17:e.prev=17,e.t0=e.catch(3),l(!1),s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 21:e.next=24;break;case 23:l(!1);case 24:case"end":return e.stop()}},e,null,[[3,17]])}));return function(t){return e.apply(this,arguments)}}(),ye=function(){var e=Object(r.a)(hy().mark(function e(){var t,n;return hy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(l(!0),e.prev=1,""!=F&&void 0!=F){e.next=6;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"No degree group found"}}),l(!1),e.abrupt("return");case 6:if(""!=V&&void 0!=V){e.next=10;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Year"}}),l(!1),e.abrupt("return");case 10:if(""!=U&&void 0!=U){e.next=14;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter examtype"}}),l(!1),e.abrupt("return");case 14:if(""!=v&&void 0!=v){e.next=18;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter QP Code"}}),l(!1),e.abrupt("return");case 18:if(""!=w&&void 0!=w){e.next=22;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Number of Count"}}),l(!1),e.abrupt("return");case 22:if(""!=j&&void 0!=j){e.next=26;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Actual Count"}}),l(!1),e.abrupt("return");case 26:return(t=new FormData).append("univcode",localStorage.getItem("univcode")),t.append("fuser",localStorage.getItem("fteachcode")),t.append("deggrp",F),t.append("year",V),t.append("examtype",U),t.append("examdate",$),t.append("qpcode",v),t.append("resCount",w),t.append("actCount",j),t.append("fid",he),e.next=39,Q.a.post(K.b+"a=saveReceiveQPCount",t);case 39:if(0!=(n=e.sent).data.error_code){e.next=47;break}s({type:"OPEN_MSG_BOX",payload:{header:"Success",message:n.data.data.msg}}),ve(),be(),l(!1),e.next=48;break;case 47:throw new Error(n.data.data.msg);case 48:l(!1),e.next=55;break;case 51:e.prev=51,e.t0=e.catch(1),l(!1),s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 55:case"end":return e.stop()}},e,null,[[1,51]])}));return function(){return e.apply(this,arguments)}}(),be=function(){D(""),ae(nv()().format("DD/MM/YYYY")),q(""),X(""),g(""),E(""),k(""),pe("")},we=function(){var e=Object(r.a)(hy().mark(function e(){return hy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q.a.get(K.b+"a=getTdvsYearModeOnQpcode&univcode="+localStorage.getItem("univcode")+"&qpcode="+v).then(function(e){0===e.data.error_code?(q(e.data.data.fyear),X(e.data.data.fexamtype),D(e.data.data.fdeggrp)):(q(""),X(""),D(""))});case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{position:"fixed",width:"98%",height:"78vh",border:"1px solid #d1d8df",overflowY:"auto"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h3",null,"Receive Scripts")),i.a.createElement("div",null,i.a.createElement(ne.a,{floated:"right",content:"Clear",color:"black",onClick:function(){return be()}}))),i.a.createElement(re.a,null)),i.a.createElement(te.a.Description,null,i.a.createElement("div",null,i.a.createElement(h.a,{columns:2,divided:!0},i.a.createElement(vg.a,{width:"6"},i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement(le.a.Field,{width:"16"},i.a.createElement("label",null,"QP Code"),i.a.createElement(ue.a,{type:"text",placeholder:"Enter QP Code",value:v,onBlur:function(){return we()},onChange:function(e,t){return g(t.value.toUpperCase())}})))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:8},i.a.createElement("label",null,"Year"),i.a.createElement(ue.a,{disabled:!0,placeholder:"Year",value:V,maxLength:"4",onChange:function(e,t){var n=t.value.replace(/[^0-9]/g,"");q(n)}})),i.a.createElement(le.a.Field,{width:8},i.a.createElement("label",null,"Mode"),i.a.createElement(ue.a,{disabled:!0,placeholder:"Mode",value:U,maxLength:1,onChange:function(e,t){var n=t.value.replace(/[^0-9]/g,"");X(n)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement("label",null,"Exam Date"),i.a.createElement(av.a,{name:"examdate",formatChars:{n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"},value:$,mask:"ed/nm/zyyy",onChange:function(e){ae(e.target.value)}}))),i.a.createElement(le.a.Group,null),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"16"},i.a.createElement("label",null,"Receive Script Count"),i.a.createElement(ue.a,{type:"number",placeholder:"Enter QP Code",value:w,onChange:function(e,t){return E(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"16"},i.a.createElement("label",null,"Actual Script Count"),i.a.createElement(ue.a,{type:"number",placeholder:"Enter Actual Script Count",value:j,onChange:function(e,t){return k(t.value)}}))),i.a.createElement(ne.a,{content:"Save",color:"green",onClick:function(){return ye()}}))),i.a.createElement(vg.a,{width:"10"},C&&i.a.createElement("div",{style:{height:"68vh",overflowY:"auto"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("td",{colSpan:9},i.a.createElement("input",{type:"text",placeholder:"Search",style:{borderRadius:"25px",width:"100%",padding:"5px"},onChange:function(e){return se(e.target.value)}})),i.a.createElement("td",{style:{textAlign:"center"}},i.a.createElement(ne.a,{content:"Save",color:"blue",onClick:function(){return function(){var e=[];M.map(function(t,n){"T"!==t.fstatus&&"F"!==t.fstatus||e.push(t)});var t=new FormData;t.append("univcode",localStorage.getItem("univcode")),t.append("data",JSON.stringify(e)),l(!0),Q.a.post(K.b+"a=tdvs_saveScriptStatus",t).then(function(e){if(0!==e.data.error_code)return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void l(!1);s({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.data.msg}})}),l(!1)}()}}))),i.a.createElement("tr",null,i.a.createElement("td",null,"Sl. No."),i.a.createElement("td",null,"Degree Group"),i.a.createElement("td",null,"Year"),i.a.createElement("td",null,"Examtype"),i.a.createElement("td",null,"Exam Date"),i.a.createElement("td",null,"QP Code"),i.a.createElement("td",null,"Count"),i.a.createElement("td",null,"Actual Count"),i.a.createElement("td",null,"Status"),i.a.createElement("td",null,"Delete"))),i.a.createElement("tbody",null,M.length>0?M.filter(function(e){return null!==e.fdeggrp&&e.fdeggrp.toLowerCase().includes(ce.toLowerCase())||null!==e.fyear&&e.fyear.toLowerCase().includes(ce.toLowerCase())||null!==e.fexamtype&&e.fexamtype.toLowerCase().includes(ce.toLowerCase())||null!==e.fexamdate&&e.fexamdate.toLowerCase().includes(ce.toLowerCase())||null!==e.fqpcode&&e.fqpcode.toLowerCase().includes(ce.toLowerCase())||null!==e.fcount&&e.fcount.toLowerCase().includes(ce.toLowerCase())||null!==e.factualcount&&e.factualcount.toLowerCase().includes(ce.toLowerCase())}).map(function(e,t){return i.a.createElement("tr",{key:t},i.a.createElement("td",{style:{textAlign:"center"}},t+1),i.a.createElement("td",{style:{textAlign:"center"}},e.fdeggrp),i.a.createElement("td",{style:{textAlign:"center"}},e.fyear),i.a.createElement("td",{style:{textAlign:"center"}},e.fexamtype),i.a.createElement("td",{style:{textAlign:"center"}},nv()(e.fexamdate).format("DD/MM/YYYY")),i.a.createElement("td",{style:{textAlign:"center"}},e.fqpcode),i.a.createElement("td",{style:{textAlign:"center"}},e.fcount),i.a.createElement("td",{style:{textAlign:"center"}},e.factualcount),i.a.createElement("td",{style:{textAlign:"center"}},i.a.createElement("input",{type:"checkbox",checked:"T"===e.fstatus,onChange:function(t){return function(e,t){var n=M.map(function(n,r){return n.fid===t.fid&&(e.target.checked?n.fstatus="T":n.fstatus="F"),n});N(n)}(t,e)}})),i.a.createElement("td",{style:{padding:"0 10px"}},i.a.createElement("div",{style:{display:"flex",justifyContent:"space-around"}},i.a.createElement(ne.a,{size:"mini",color:"green",icon:"edit",onClick:function(){return function(e){D(e.fdeggrp),ae(nv()(e.fexamdate).format("DD/MM/YYYY")),q(e.fyear),X(e.fexamtype),g(e.fqpcode),E(e.fcount),k(e.factualcount),pe(e.fid)}(e)}}),i.a.createElement(ne.a,{size:"mini",color:"red",onClick:function(){return ge(e.fid)},icon:"trash"}))))}):i.a.createElement("tr",null,i.a.createElement("td",{style:{textAlign:"center"},colSpan:7},"No Data Found")))))))))))};function my(){my=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var vy=function(e){var t=Object(o.useContext)(m.a),n=t.load,u=t.err_msg,s=Object(a.a)(n,2),f=(s[0],s[1]),d=Object(a.a)(u,2),h=(d[0],d[1]),v=localStorage.getItem("fteachcode"),g=localStorage.getItem("univcode"),y=e.match.params,b=Object(c.useHistory)(),w=Object(o.useState)(""),E=Object(a.a)(w,2),x=E[0],O=E[1],j=Object(o.useState)([]),k=Object(a.a)(j,2),S=k[0],_=k[1],C=Object(o.useState)(""),L=Object(a.a)(C,2),A=L[0],P=L[1],M=Object(o.useState)([]),N=Object(a.a)(M,2),T=N[0],I=N[1],F=Object(o.useState)(""),D=Object(a.a)(F,2),R=D[0],G=D[1],B=Object(o.useState)([]),H=Object(a.a)(B,2),z=H[0],V=H[1],q=Object(o.useState)(""),Y=Object(a.a)(q,2),W=Y[0],U=Y[1],X=Object(o.useState)([{key:"A",text:"I Semester",value:"A"},{key:"B",text:"II Semester",value:"B"},{key:"C",text:"III Semester",value:"C"},{key:"D",text:"IV Semester",value:"D"},{key:"E",text:"V Semester",value:"E"},{key:"F",text:"VI Semester",value:"F"},{key:"G",text:"VII Semester",value:"G"},{key:"H",text:"VIII Semester",value:"H"},{key:"I",text:"IX Semester",value:"I"},{key:"J",text:"X Semester",value:"J"}]),J=Object(a.a)(X,2),Z=J[0],$=(J[1],Object(o.useState)("")),ae=Object(a.a)($,2),oe=ae[0],ie=ae[1],ce=Object(o.useState)(""),ue=Object(a.a)(ce,2),se=ue[0],fe=ue[1],de=Object(o.useState)(""),he=Object(a.a)(de,2),pe=he[0],me=he[1],ve=Object(o.useState)(""),ge=Object(a.a)(ve,2),ye=ge[0],be=ge[1],we=Object(o.useState)(""),Ee=Object(a.a)(we,2),xe=Ee[0],Oe=Ee[1],je=Object(o.useState)(""),ke=Object(a.a)(je,2),Se=ke[0],_e=ke[1];Object(o.useEffect)(function(){Ce(),Ae(),Le(),y!={}&&(O(y.deggrp),P(y.board),G(y.degree),U(y.examno),ie(y.subcode),fe(y.subname),me(y.subshort),be(y.qpcode),Oe(y.valmax),_e(y.bool))},[]);var Ce=function(){var e=Object(r.a)(my().mark(function e(){var t,n;return my().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,f(!0),e.next=4,ee.get("/admin/get-deggrp?fusercode=".concat(v));case 4:if(0!=(t=e.sent).data.status){e.next=10;break}n=t.data.result.res.map(function(e,t){return{key:e.fdeggrp,value:e.fdeggrp,text:e.fdescpn}}),_(n),e.next=11;break;case 10:throw new Error(t.data.msg);case 11:f(!1),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(0),f(!1),h({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 18:case"end":return e.stop()}},e,null,[[0,14]])}));return function(){return e.apply(this,arguments)}}(),Le=function(){var e=Object(r.a)(my().mark(function e(t){var n,r;return my().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,f(!0),e.next=4,ee.get("/admin/get-panelboard?fusercode=".concat(v));case 4:if(0!=(n=e.sent).data.status){e.next=10;break}r=n.data.result.map(function(e,t){return{key:e.fboard,value:e.fboard,text:e.fboardname}}),I(r),e.next=11;break;case 10:throw new Error(n.data.msg);case 11:f(!1),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(0),f(!1),h({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 18:case"end":return e.stop()}},e,null,[[0,14]])}));return function(t){return e.apply(this,arguments)}}(),Ae=function(){var e=Object(r.a)(my().mark(function e(){return my().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),e.prev=1,e.next=4,Q.a.get(K.b+"a=tdvs_getDegrees&univcode="+g+"°grp="+x).then(function(e){0===e.data.error_code&&V(e.data.data)});case 4:e.next=10;break;case 6:e.prev=6,e.t0=e.catch(1),f(!1),h({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 10:f(!1);case 11:case"end":return e.stop()}},e,null,[[1,6]])}));return function(){return e.apply(this,arguments)}}(),Pe=function(){var e=Object(r.a)(my().mark(function e(){var t;return my().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(f(!0),""!==x&&""!==A&&""!==R&&""!==W&&""!==oe&&""!==se&&""!==pe&&""!==ye&&""!==xe&&void 0!==x&&void 0!==A&&void 0!==R&&void 0!==W&&void 0!==oe&&void 0!==se&&void 0!==pe&&void 0!==ye&&void 0!==xe){e.next=5;break}return h({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"All the fields are mandatory"}}),f(!1),e.abrupt("return");case 5:return(t=new FormData).append("univcode",g),t.append("deggrp",x),t.append("board",A),t.append("degree",R),t.append("sem",W),t.append("subcode",oe),t.append("subname",se),t.append("shortname",pe),t.append("qpcode",ye),t.append("valmax",xe),e.next=18,Q.a.post(K.b+"a=tdvs_saveSubjectCreation",t).then(function(e){if(0!==e.data.error_code)return h({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void f(!1);y.bool&&b.push("/admin/masters/view-subjects"),h({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.data.msg}})});case 18:f(!1);case 19:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{position:"fixed",width:"98%",height:"80vh",border:"1px solid #d1d8df"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h3",null,"Subject Creation")),i.a.createElement("div",null,i.a.createElement(ne.a,{floated:"right",content:"Clear",color:"black",onClick:function(){return O(""),P(""),G(""),U(""),ie(""),fe(""),me(""),be(""),void Oe("")}}),i.a.createElement(l.b,{to:"/admin/masters/view-subjects"},i.a.createElement(ne.a,{floated:"right",content:"View",color:"green"})))),i.a.createElement(re.a,null)),i.a.createElement(te.a.Description,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Degree group"),i.a.createElement(p.a,{placeholder:"Degree group",name:"deggrp",value:x,selection:!0,search:!0,options:S,onChange:function(e,t){O(t.value)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{placeholder:"Board",name:"board",value:A,selection:!0,search:!0,options:T,onChange:function(e,t){P(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Degree"),i.a.createElement(p.a,{disabled:Se,placeholder:"Degree",name:"degree",value:R,selection:!0,search:!0,options:z,onChange:function(e,t){G(t.value)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Semester"),i.a.createElement(p.a,{placeholder:"Sem",name:"sem",value:W,selection:!0,search:!0,options:Z,onChange:function(e,t){U(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Subcode"),i.a.createElement(le.a.Input,{disabled:Se,placeholder:"Subcode",name:"subcode",value:oe,onChange:function(e,t){ie(t.value.toUpperCase())},maxLength:20})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Subject Name"),i.a.createElement(le.a.Input,{placeholder:"Subject Name",name:"subname",value:se,onChange:function(e,t){fe(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Shortname"),i.a.createElement(le.a.Input,{placeholder:"Shortname",name:"shortname",value:pe,onChange:function(e,t){me(t.value)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"QP Code"),i.a.createElement(le.a.Input,{disabled:Se,placeholder:"QP Code",name:"qpcode",value:ye,onChange:function(e,t){be(t.value.toUpperCase())}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Val. Max"),i.a.createElement(le.a.Input,{placeholder:"Val Max",name:"valmax",value:xe,onChange:function(e,t){Oe(t.value)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement(ne.a,{style:{position:"relative",top:"23px"},content:"Save",color:"green",onClick:function(){return Pe()}})))))))};function gy(){gy=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var yy=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),l=(c[0],c[1]),u=Object(a.a)(n,2),s=(u[0],u[1]),f=localStorage.getItem("univcode"),d=localStorage.getItem("fteachcode"),h=Object(o.useState)(""),v=Object(a.a)(h,2),g=v[0],y=v[1],b=Object(o.useState)([]),w=Object(a.a)(b,2),E=w[0],x=w[1],O=Object(o.useState)(""),j=Object(a.a)(O,2),k=j[0],S=j[1],_=Object(o.useState)([]),C=Object(a.a)(_,2),L=C[0],A=C[1],P=Object(o.useState)([]),M=Object(a.a)(P,2),N=M[0],T=M[1],I=Object(o.useState)([{slno:1,fqpcode:"",fmaxscr:"999",fyear:"",fexamtype:"",fvalno:""}]),F=Object(a.a)(I,2),D=F[0],R=F[1],G=Object(o.useState)(!1),B=Object(a.a)(G,2),H=B[0],z=B[1],V=Object(o.useState)(!1),q=Object(a.a)(V,2),Y=q[0],W=q[1],U={width:"100%",border:"1px solid",borderRadius:"4px"};Object(o.useEffect)(function(){X()},[]);var X=function(){var e=Object(r.a)(gy().mark(function e(){var t,n,r,a,o;return gy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l(!0),e.next=4,ee.get("/admin/get-direct-load?fusercode=".concat(d));case 4:if(0!=(t=e.sent).data.status){e.next=18;break}n=[{key:"select",value:"",text:"---select---"}],r=[],t.data.result.qp.map(function(e){r.push({value:e.fqpcode,text:"".concat(e.fsubname)})}),T([].concat(n,r)),a=[],t.data.result.teach.map(function(e){a.push({value:e.fteachcode,text:"".concat(e.fteachname)})}),x([].concat(n,a)),o=[],t.data.result.rev.map(function(e){o.push({value:e.fteachcode,text:"".concat(e.fteachname)})}),A([].concat(n,o)),e.next=19;break;case 18:throw new Error(t.data.msg);case 19:l(!1),e.next=26;break;case 22:e.prev=22,e.t0=e.catch(0),l(!1),s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 26:case"end":return e.stop()}},e,null,[[0,22]])}));return function(){return e.apply(this,arguments)}}(),J=function(){var e=Object(r.a)(gy().mark(function e(){return gy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(l(!0),W(!0),""!==g){e.next=6;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Teacher Code or Reviewer Code"}}),l(!1),e.abrupt("return");case 6:return e.next=8,Q()(K.b+"a=tdvs_getCreatePanelTeacherWise&univcode="+f+"&teacherCode="+g+"&reviewerCode="+k).then(function(e){0===e.data.error_code?R([].concat(Object(oe.a)(e.data.data),Object(oe.a)(D))):R([{slno:1,fqpcode:"",fmaxscr:"999",fyear:"",fexamtype:"",fvalno:""}])});case 8:l(!1);case 9:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=Object(r.a)(gy().mark(function e(t,n){return gy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),e.next=3,Q()(K.b+"a=tdvs_getYearAndMode&univcode="+f+"&qpcode="+t).then(function(e){var r=D.map(function(r,a){return r.slno===n&&(r.fqpcode=t,r.fmaxscr="999",r.fyear=e.data.data.fyear,r.fexamtype=e.data.data.fexamtype),l(!1),r});R(r)});case 3:l(!1);case 4:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),$=function(){var e=Object(r.a)(gy().mark(function e(t,n,r){var a;return gy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=D.map(function(e,a){return a===n&&("QP"===r?e.fqpcode=t:"MAX"===r?e.fmaxscr=t:"YEAR"===r?e.fyear=t:"TYPE"===r?e.fexamtype=t:"VAL"===r&&(e.fvalno=t)),e}),R(Object(oe.a)(a));case 2:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),re=function(){var e=Object(r.a)(gy().mark(function e(){var t;return gy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==g){e.next=4;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Teacher Code or Reviewer Code"}}),l(!1),e.abrupt("return");case 4:return(t=new FormData).append("univcode",f),t.append("teachercode",g),t.append("reviewercode",k),t.append("data",JSON.stringify(D)),l(!0),e.next=12,Q.a.post(K.b+"a=tdvs_createTeacherwisePanel",t).then(function(e){if(0!==e.data.error_code)return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void l(!1);s({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.data.msg}})});case 12:l(!1);case 13:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),ae=/^[0-9\b]+$/;return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Create Panel (Teacherwise)",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black",onClick:function(){y(""),S(""),R([{slno:1,fqpcode:"",fmaxscr:"999",fyear:"",fexamtype:"",fvalno:""}]),z(!1),W(!1)}},"Clear"),i.a.createElement(ne.a,{floated:"right",size:"mini",color:"green",onClick:function(){re()}},"Save"))),i.a.createElement(te.a.Content,{style:{height:"75vh"}},i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Teacher code"),i.a.createElement(p.a,{disabled:H,placeholder:"Select Teacher",name:"Teacher Code",value:g,selection:!0,search:!0,options:E,onChange:function(e,t){y(t.value.toUpperCase())}})),i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Reviewer code"),i.a.createElement(p.a,{disabled:H,placeholder:"Reviewer Code",name:"Reviewer Code",value:k,selection:!0,search:!0,options:L,onChange:function(e,t){S(t.value.toUpperCase())}})),i.a.createElement(le.a.Field,{width:4},i.a.createElement(ne.a,{disabled:H,style:{position:"relative",top:"23px"},content:"Submit",color:"blue",onClick:function(){return J()}})))),Y&&i.a.createElement("div",{style:{height:"60vh",overflowY:"auto"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("td",{style:{width:"3%"}},"Sl. No."),i.a.createElement("td",{style:{width:"30%"}},"QP Code"),i.a.createElement("td",{style:{width:"15%"}},"Max Scr."),i.a.createElement("td",{style:{width:"10%"}},"Year"),i.a.createElement("td",{style:{width:"15%"}},"Exam Type"),i.a.createElement("td",{style:{width:"9%"}},"Val. No."),i.a.createElement("td",{style:{width:"4%"}},"Delete ?"))),i.a.createElement("tbody",null,D.map(function(e,t){return i.a.createElement("tr",{key:t,style:{textAlign:"center"}},i.a.createElement("td",null,t+1),i.a.createElement("td",null,i.a.createElement(p.a,{style:U,placeholder:"QP Code",name:"QPCode",value:e.fqpcode,selection:!0,search:!0,options:N,onChange:function(n,r){$(r.value,t,"QP"),Z(r.value,e.slno)}})),i.a.createElement("td",null,i.a.createElement(ue.a,{style:U,placeholder:"Max Scr",value:e.fmaxscr,onChange:function(e,n){(""===n.value||ae.test(n.value))&&$(n.value,t,"MAX")}})),i.a.createElement("td",null,i.a.createElement(ue.a,{style:U,placeholder:"Year",value:e.fyear,maxLength:4,onChange:function(e,n){$(n.value,t,"YEAR")},disabled:!0})),i.a.createElement("td",null,i.a.createElement(ue.a,{style:U,placeholder:"Exam Type",value:e.fexamtype,maxLength:1,onChange:function(e,n){$(n.value,t,"TYPE")},disabled:!0})),i.a.createElement("td",null,i.a.createElement(ue.a,{style:U,placeholder:"Val No",value:e.fvalno,maxLength:1,onChange:function(e,n){$(n.value,t,"VAL")}})),i.a.createElement("td",null,i.a.createElement("input",{type:"checkbox",checked:"T"===e.fstatus,onChange:function(t){return function(e,t,n){var r=D.map(function(r,a){return t===r.fqpcode&&n===r.fvalno&&(e.target.checked?r.fstatus="T":r.fstatus="F"),r});R(Object(oe.a)(r))}(t,e.fqpcode,e.fvalno)},onKeyDown:function(n){return function(e,t){var n=e+1;if(""===t.fvalno)return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Val no. should not be blank"}}),void l(!1);R(function(e){return[].concat(Object(oe.a)(e),[{slno:n,fqpcode:"",fmaxscr:"999",fyear:"",fexamtype:"",fvalno:""}])})}(t+1,e)}})))}))))))};function by(){by=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var wy=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,l=e.confirm_err_msg,u=(e.auth_token,Object(c.useHistory)(),Object(a.a)(t,2)),s=(u[0],u[1]),f=Object(o.useState)(""),d=Object(a.a)(f,2),h=d[0],v=d[1],g=Object(o.useState)(""),y=Object(a.a)(g,2),b=y[0],w=(y[1],Object(o.useState)("")),E=Object(a.a)(w,2),x=E[0],O=(E[1],Object(o.useState)("999")),j=Object(a.a)(O,2),k=j[0],S=(j[1],Object(o.useState)("")),_=Object(a.a)(S,2),C=_[0],L=(_[1],Object(o.useState)("")),A=Object(a.a)(L,2),P=A[0],M=(A[1],Object(o.useState)("")),N=Object(a.a)(M,2),T=(N[0],N[1],Object(a.a)(n,2)),I=(T[0],T[1]),F=Object(a.a)(l,2),D=(F[0],F[1],localStorage.getItem("fteachcode")),R=Object(o.useState)([]),G=Object(a.a)(R,2),B=G[0],H=G[1],z=Object(o.useState)([]),V=Object(a.a)(z,2),q=(V[0],V[1],localStorage.getItem("univcode"),Object(o.useState)([])),Y=Object(a.a)(q,2),W=Y[0],U=Y[1],X=Object(o.useState)([]),K=Object(a.a)(X,2),J=K[0],Z=K[1],$=Object(o.useState)([{slno:1,fqpcode:"",fmaxscr:"",fyear:"",fexamtype:"",fvalno:""}]),re=Object(a.a)($,2),ae=re[0],oe=(re[1],Object(o.useState)(!1)),ie=Object(a.a)(oe,2),ce=(ie[0],ie[1],Object(o.useState)(!1)),se=Object(a.a)(ce,2),fe=se[0],de=se[1],he={width:"100%",border:"1px solid",borderRadius:"4px"};Object(o.useEffect)(function(){pe()},[]);var pe=function(){var e=Object(r.a)(by().mark(function e(){var t,n;return by().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,Q.a.get("https://universitysolutions.in/univadmin/app.php?a=get_QP_code&univcode=".concat(localStorage.getItem("univcode"),"\n "));case 4:if(0!=(t=e.sent).data.error_code){e.next=11;break}n=[],t.data.data.map(function(e){n.push({value:e.fqpcode,text:"".concat(e.fsubname)})}),H(n),e.next=12;break;case 11:throw new Error(t.data.data.msg);case 12:s(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),s(!1),I({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(){return e.apply(this,arguments)}}(),me=function(){var e=Object(r.a)(by().mark(function e(){var t,n,r;return by().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,ee.get("/admin/get-direct-load?fusercode=".concat(D));case 4:if(0!=(t=e.sent).data.status){e.next=15;break}n=[],t.data.result.teach.map(function(e){n.push({value:e.fteachcode,text:"".concat(e.fteachname," ")})}),U(n),r=[],t.data.result.rev.map(function(e){r.push({value:e.fteachcode,text:"".concat(e.fteachname," ")})}),Z(r),de(!0),e.next=16;break;case 15:throw new Error(t.data.msg);case 16:s(!1),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(0),s(!1),I({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 23:case"end":return e.stop()}},e,null,[[0,19]])}));return function(){return e.apply(this,arguments)}}();return i.a.createElement("div",null,i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Create Panel QP wise",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black",onClick:function(){v("")}},"Clear"),i.a.createElement(ne.a,{floated:"right",size:"mini",color:"green"},"Save"))),i.a.createElement(te.a.Content,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,null,i.a.createElement("label",null,"QP Code:"),i.a.createElement(p.a,{search:!0,selection:!0,placeholder:"Enter QP code",value:h,options:B,onChange:function(e,t){v(t.value)},style:{width:"400px",marginLeft:"10px"}}),i.a.createElement(ne.a,{color:"blue",style:{marginLeft:"10px"},onClick:function(){return me()}},"Submit")))),i.a.createElement(te.a.Content,null,fe&&i.a.createElement("div",{style:{height:"60vh",overflowY:"auto"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("td",{style:{width:"3%"}},"Sl. No."),i.a.createElement("td",{style:{width:"30%"}},"Teacher Code"),i.a.createElement("td",{style:{width:"10%"}},"Reviewer"),i.a.createElement("td",{style:{width:"15%"}},"Max Scr."),i.a.createElement("td",{style:{width:"4%"}},"Year"),i.a.createElement("td",{style:{width:"15%"}},"Exam Type"),i.a.createElement("td",{style:{width:"9%"}},"Val. No."),i.a.createElement("td",{style:{width:"9%"}},"Delete"))),i.a.createElement("tbody",null,ae.map(function(e,t){return i.a.createElement("tr",{key:t,style:{textAlign:"center"}},i.a.createElement("td",null,t+1),i.a.createElement("td",null,i.a.createElement(p.a,{style:he,placeholder:"Teacher Code",name:"TeachCode",value:b,selection:!0,search:!0,options:W})),i.a.createElement("td",null,i.a.createElement(p.a,{style:he,placeholder:"Reviewer Code",name:"TeachCode",value:x,selection:!0,search:!0,options:J})),i.a.createElement("td",null,i.a.createElement(ue.a,{style:he,placeholder:"Max Scr",value:k})),i.a.createElement("td",null,i.a.createElement(ue.a,{style:he,placeholder:"Year",value:C})),i.a.createElement("td",null,i.a.createElement(ue.a,{style:he,placeholder:"Exam Type",value:P})),i.a.createElement("td",null,i.a.createElement(ue.a,{style:he,placeholder:"Val No",value:e.fvalno})),i.a.createElement("td",null,i.a.createElement("input",{type:"checkbox",checked:"T"===e.fstatus})))})))))))};function Ey(){Ey=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var xy=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),u=(c[0],c[1]),s=Object(a.a)(n,2),f=(s[0],s[1]),d=localStorage.getItem("univcode"),h=Object(o.useState)([]),p=Object(a.a)(h,2),v=p[0],g=p[1],y=Object(o.useState)(""),b=Object(a.a)(y,2),w=b[0],E=b[1];Object(o.useEffect)(function(){x()},[]);var x=function(){var e=Object(r.a)(Ey().mark(function e(){return Ey().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),e.next=3,Q.a.get(K.b+"a=tdvs_getSubjectDetails&univcode="+d).then(function(e){0===e.data.error_code?g(e.data.data):g([])});case 3:u(!1);case 4:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),O=function(){var e=Object(r.a)(Ey().mark(function e(t){var n;return Ey().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((n=new FormData).append("univcode",d),n.append("data",JSON.stringify(t)),!window.confirm("Are you sure ?")){e.next=8;break}return e.next=6,Q.a.post(K.b+"a=tdvs_deleteSubCreation",n).then(function(e){0===e.data.error_code?(f({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.data.msg}}),x()):f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}})});case 6:e.next=9;break;case 8:console.log("You cancelled");case 9:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{position:"fixed",width:"98%",height:"80vh",border:"1px solid #d1d8df"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h3",null,"Subject Creation")),i.a.createElement("div",null,i.a.createElement(l.b,{to:"/admin/utility/subjectcreation"},i.a.createElement(ne.a,{floated:"right",content:"Back",color:"blue",icon:"chevron left"})))),i.a.createElement(re.a,null)),i.a.createElement(te.a.Description,null,i.a.createElement("div",{style:{height:"70vh",overflowY:"auto"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("td",{colSpan:11},i.a.createElement("input",{type:"text",placeholder:"Search",style:{borderRadius:"25px",width:"100%",padding:"5px"},onChange:function(e){return E(e.target.value)}}))),i.a.createElement("tr",null,i.a.createElement("td",null,"Sl. No."),i.a.createElement("td",null,"Deggrp"),i.a.createElement("td",null,"Board"),i.a.createElement("td",null,"Degree"),i.a.createElement("td",null,"Exam No."),i.a.createElement("td",null,"Subcode"),i.a.createElement("td",null,"Subject Name"),i.a.createElement("td",null,"Qp Code"),i.a.createElement("td",null,"Shortname"),i.a.createElement("td",null,"Val. Max."),i.a.createElement("td",null,"Action"))),i.a.createElement("tbody",null,v.length>0?v.filter(function(e){return null!==e.fdeggrp&&e.fdeggrp.toLowerCase().includes(w.toLowerCase())||null!==e.fboard&&e.fboard.toLowerCase().includes(w.toLowerCase())||null!==e.fdegree&&e.fdegree.toLowerCase().includes(w.toLowerCase())||null!==e.fexamno&&e.fexamno.toLowerCase().includes(w.toLowerCase())||null!==e.fsubcode&&e.fsubcode.toLowerCase().includes(w.toLowerCase())||null!==e.fsubname&&e.fsubname.toLowerCase().includes(w.toLowerCase())||null!==e.fqpcode&&e.fqpcode.toLowerCase().includes(w.toLowerCase())||null!==e.fsubshort&&e.fsubshort.toLowerCase().includes(w.toLowerCase())||null!==e.fvalmax&&e.fvalmax.toLowerCase().includes(w.toLowerCase())}).map(function(e,t){return i.a.createElement("tr",{style:{textAlign:"center"},key:t},i.a.createElement("td",null,t+1),i.a.createElement("td",null,e.fdeggrp),i.a.createElement("td",null,e.fboard),i.a.createElement("td",null,e.fdegree),i.a.createElement("td",null,e.fexamno),i.a.createElement("td",null,e.fsubcode),i.a.createElement("td",{style:{paddingLeft:"10px",textAlign:"initial"}},e.fsubname),i.a.createElement("td",null,e.fqpcode),i.a.createElement("td",null,e.fsubshort),i.a.createElement("td",null,e.fvalmax),i.a.createElement("td",null,i.a.createElement(l.b,{to:{pathname:"/admin/utility/subjectcreation/".concat(e.fdeggrp,"/").concat(e.fboard,"/").concat(e.fdegree,"/").concat(e.fexamno,"/").concat(e.fsubcode,"/").concat(e.fsubname,"/").concat(e.fqpcode,"/").concat(e.fsubshort,"/").concat(e.fvalmax,"/",!0)}},i.a.createElement(ne.a,{content:"Edit",size:"tiny",basic:!0,icon:"edit",color:"green"})),i.a.createElement(ne.a,{content:"Delete",size:"tiny",basic:!0,icon:"delete",color:"red",onClick:function(){return O(e)}})))}):i.a.createElement("tr",null,i.a.createElement("td",{style:{textAlign:"center"},colSpan:11},"No Data Found"))))))))};function Oy(){Oy=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var jy=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),u=(c[0],c[1]),s=Object(a.a)(n,2),f=(s[0],s[1]),d=localStorage.getItem("fteachcode"),h=Object(o.useState)([]),p=Object(a.a)(h,2),v=p[0],g=p[1],y=Object(o.useState)(""),b=Object(a.a)(y,2),w=b[0],E=b[1];Object(o.useEffect)(function(){x()},[]);var x=function(){var e=Object(r.a)(Oy().mark(function e(){return Oy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u(!0),e.next=4,ee.get("/admin/get-create-teach-details?fusercode=".concat(d)).then(function(e){if(0!==e.data.status)throw new Error(e.data.msg);g(e.data.result),u(!1)}).catch(function(e){f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.message}})});case 4:e.sent,u(!1),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),u(!1),f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 12:case"end":return e.stop()}},e,null,[[0,8]])}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"View Teacher Details",i.a.createElement(l.b,{to:"/admin/createteach/"},i.a.createElement(ne.a,{floated:"right",size:"mini",color:"aqua"},"Back")),i.a.createElement(ne.a,{floated:"right",size:"mini",color:"blue",onClick:function(){!function(){var e=localStorage.getItem("univcode");window.open("".concat(K.c,"tdvsTeachersList&univcode=").concat(e),"_blank")}()}},"Report"))),i.a.createElement(te.a.Content,null,i.a.createElement("div",null,i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("td",{colSpan:9,className:"searchColumn"},i.a.createElement("input",{className:"searchinput",type:"text",placeholder:"search....",onChange:function(e){return E(e.target.value)}}))),i.a.createElement("tr",null,i.a.createElement("td",null,"Sl. No."),i.a.createElement("td",null,"College Code"),i.a.createElement("td",null,"Teacher Code"),i.a.createElement("td",null,"Teacher Name"),i.a.createElement("td",null,"Mobile No."),i.a.createElement("td",null,"Email ID"),i.a.createElement("td",null,"Action"))),i.a.createElement("tbody",null,v.length>0?v.filter(function(e){return e.fcollcode.toLowerCase().includes(w.toLowerCase())||e.fteachcode.toLowerCase().includes(w.toLowerCase())||e.fteachname.toLowerCase().includes(w.toLowerCase())||e.fmobile.toLowerCase().includes(w.toLowerCase())||e.femail.toLowerCase().includes(w.toLowerCase())}).map(function(e,t){return i.a.createElement("tr",{key:t},i.a.createElement("td",{style:{textAlign:"center"}},t+1),i.a.createElement("td",{style:{textAlign:"center"}},e.fcollcode),i.a.createElement("td",{style:{textAlign:"center"}},e.fteachcode),i.a.createElement("td",{style:{paddingLeft:"10px"}},e.fteachname),i.a.createElement("td",{style:{textAlign:"center"}},e.fmobile),i.a.createElement("td",{style:{paddingLeft:"10px"}},e.femail),i.a.createElement("td",{style:{textAlign:"center"}},i.a.createElement(l.b,{to:{pathname:"/admin/createteach/".concat(e.fteachcode,"/").concat(e.fmobile,"/")}},i.a.createElement(ne.a,{basic:!0,icon:"pencil",color:"blue",size:"tiny"},"Edit"))))}):i.a.createElement("tr",null,i.a.createElement("td",{colSpan:9,style:{textAlign:"center"}},"No data found")))))))};function ky(){ky=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Sy=[{key:"1",text:"1",value:"1"},{key:"2",text:"2",value:"2"},{key:"3",text:"3",value:"3"},{key:"4",text:"4",value:"4"},{key:"5",text:"5",value:"5"},{key:"R",text:"R",value:"R"},{key:"D",text:"D",value:"D"},{key:"F",text:"FINAL",value:"F"}],_y=function(){var e=localStorage.getItem("fteachcode"),t=Object(o.useState)(""),n=Object(a.a)(t,2),c=n[0],l=n[1],u=Object(o.useState)([]),s=Object(a.a)(u,2),f=s[0],d=s[1],h=Object(o.useState)(""),v=Object(a.a)(h,2),g=v[0],y=v[1],b=Object(o.useState)([]),w=Object(a.a)(b,2),E=w[0],x=w[1],O=Object(o.useState)(""),j=Object(a.a)(O,2),k=j[0],S=j[1],_=Object(o.useState)(Sy),C=Object(a.a)(_,2),L=C[0],A=(C[1],Object(o.useContext)(m.a)),P=A.load,M=A.err_msg,N=Object(a.a)(P,2),T=(N[0],N[1]),I=Object(a.a)(M,2),F=(I[0],I[1]),D=localStorage.getItem("univcode"),R=Object(o.useState)("new"),G=Object(a.a)(R,2),B=G[0],H=G[1],z=Object(o.useState)(""),V=Object(a.a)(z,2),q=V[0],Y=V[1],W=Object(o.useState)(""),U=Object(a.a)(W,2),X=U[0],Q=U[1];Object(o.useEffect)(function(){J()},[]);var J=function(){var t=Object(r.a)(ky().mark(function t(){var n,r;return ky().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return T(!0),t.prev=1,t.next=4,ee.get("/admin/get-panelboard?fusercode=".concat(e));case 4:0===(n=t.sent).data.status&&(r=n.data.result.map(function(e,t){return{key:t,text:e.fboardname,value:e.fboard}}),d(r)),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),T(!1);case 11:T(!1);case 12:case"end":return t.stop()}},t,null,[[1,8]])}));return function(){return t.apply(this,arguments)}}(),Z=function(){var t=Object(r.a)(ky().mark(function t(n){var r,a,o;return ky().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return T(!0),t.prev=1,t.next=4,ee.get("/admin/get-panelqpcode?fusercode=".concat(e,"&brd=").concat(n));case 4:0===(r=t.sent).data.status&&(a=r.data.result.map(function(e,t){return{key:t,text:e.fsubname,value:e.fqpcode}}),o=Object(oe.a)(a),x(o)),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),T(!1);case 11:T(!1);case 12:case"end":return t.stop()}},t,null,[[1,8]])}));return function(e){return t.apply(this,arguments)}}();return i.a.createElement(te.a,{style:{position:"fixed",width:"98%",height:"80vh",border:"1px solid #d1d8df"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h3",null,"Student Marks Report")),i.a.createElement("div",null,i.a.createElement(ne.a,{floated:"right",content:"Clear",color:"black",onClick:function(){return l(""),y(""),void S("")}}))),i.a.createElement(re.a,null)),i.a.createElement(te.a.Description,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Type"),i.a.createElement(p.a,{selection:!0,search:!0,placeholder:"Type",value:B,options:[{key:"Old",text:"Old",value:"old"},{key:"New",text:"Current",value:"new"}],onChange:function(e,t){H(t.value)}})),i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{selection:!0,search:!0,placeholder:"Board",value:c,options:f,onChange:function(e,t){l(t.value),Z(t.value)}})),i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"QP Code"),i.a.createElement(p.a,{selection:!0,search:!0,placeholder:"QP Code",value:g,options:E,onChange:function(e,t){y(t.value)}})),i.a.createElement(le.a.Field,{width:2},i.a.createElement("label",null,"Val No."),i.a.createElement(p.a,{selection:!0,search:!0,placeholder:"Val No.",value:k,options:L,onChange:function(e,t){S(t.value)}}))),"old"===B&&i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:2},i.a.createElement("label",null,"Year"),i.a.createElement(ue.a,{placeholder:"Year",value:q,maxLength:4,onChange:function(e,t){return Y(t.value)}})),i.a.createElement(le.a.Field,{width:2},i.a.createElement("label",null,"Exam Type"),i.a.createElement(ue.a,{placeholder:"Examtype",value:X,maxLength:1,onChange:function(e,t){return Q(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:2},i.a.createElement(ne.a,{color:"blue",content:"Submit",onClick:function(){""!==c?""!==g?""!==k?window.open(K.c+"tdvs_studentMarksReport&univcode="+D+"&board="+c+"&qpcode="+g+"&valno="+k+"&type="+B+"&year="+q+"&examtype="+X):F({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select valuation no."}}):F({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select qp code"}}):F({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select board"}})}})))))))},Cy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};var Ly,Ay=o.forwardRef(function(e,t){return o.createElement(Sm,Object(Wu.a)({},e,{ref:t,icon:Cy}))}),Py=n(114),My=Object(Xl.a)({},Py),Ny=My.version,Ty=My.render,Iy=My.unmountComponentAtNode;try{Number((Ny||"").split(".")[0])>=18&&(Ly=My.createRoot)}catch(tj){}function Fy(e){var t=My.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===Object(uu.a)(t)&&(t.usingClientEntryPoint=e)}var Dy="__rc_react_root__";function Ry(e,t){Ly?function(e,t){Fy(!0);var n=t[Dy]||Ly(t);Fy(!1),n.render(e),t[Dy]=n}(e,t):function(e,t){Ty(e,t)}(e,t)}function Gy(e){return By.apply(this,arguments)}function By(){return(By=Th(Mh().mark(function e(t){return Mh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[Dy])||void 0===e||e.unmount(),delete t[Dy]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Hy(e){Iy(e)}function zy(){return(zy=Th(Mh().mark(function e(t){return Mh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Ly){e.next=2;break}return e.abrupt("return",Gy(t));case 2:Hy(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}var Vy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};var qy=o.forwardRef(function(e,t){return o.createElement(Sm,Object(Wu.a)({},e,{ref:t,icon:Vy}))}),Yy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var Wy=o.forwardRef(function(e,t){return o.createElement(Sm,Object(Wu.a)({},e,{ref:t,icon:Yy}))}),Uy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var Xy=o.forwardRef(function(e,t){return o.createElement(Sm,Object(Wu.a)({},e,{ref:t,icon:Uy}))}),Qy=n(1213),Ky=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,i=e.duration,c=void 0===i?4.5:i,l=e.eventKey,u=e.content,s=e.closable,f=e.closeIcon,d=void 0===f?"x":f,h=e.props,p=e.onClick,m=e.onNoticeClose,v=e.times,g=e.hovering,y=o.useState(!1),b=Object(Yl.a)(y,2),w=b[0],E=b[1],x=g||w,O=function(){m(l)};o.useEffect(function(){if(!x&&c>0){var e=setTimeout(function(){O()},1e3*c);return function(){clearTimeout(e)}}},[c,x,v]);var j="".concat(n,"-notice");return o.createElement("div",Object(Wu.a)({},h,{ref:t,className:pe()(j,a,Object(Wl.a)({},"".concat(j,"-closable"),s)),style:r,onMouseEnter:function(e){var t;E(!0),null===h||void 0===h||null===(t=h.onMouseEnter)||void 0===t||t.call(h,e)},onMouseLeave:function(e){var t;E(!1),null===h||void 0===h||null===(t=h.onMouseLeave)||void 0===t||t.call(h,e)},onClick:p}),o.createElement("div",{className:"".concat(j,"-content")},u),s&&o.createElement("a",{tabIndex:0,className:"".concat(j,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==Qy.a.ENTER||O()},onClick:function(e){e.preventDefault(),e.stopPropagation(),O()}},d))}),Jy=i.a.createContext({}),Zy=function(e){var t=e.children,n=e.classNames;return i.a.createElement(Jy.Provider,{value:{classNames:n}},t)},$y=function(e){var t,n,r,a={offset:8,threshold:3,gap:16};e&&"object"===Object(uu.a)(e)&&(a.offset=null!==(t=e.offset)&&void 0!==t?t:8,a.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,a.gap=null!==(r=e.gap)&&void 0!==r?r:16);return[!!e,a]},eb=["className","style","classNames","styles"];var tb=function(e){var t,n=e.configList,r=e.placement,a=e.prefixCls,c=e.className,l=e.style,u=e.motion,s=e.onAllNoticeRemoved,f=e.onNoticeClose,d=e.stack,h=Object(o.useContext)(Jy).classNames,p=Object(o.useRef)({}),m=Object(o.useState)(null),v=Object(Yl.a)(m,2),g=v[0],y=v[1],b=Object(o.useState)([]),w=Object(Yl.a)(b,2),E=w[0],x=w[1],O=n.map(function(e){return{config:e,key:String(e.key)}}),j=$y(d),k=Object(Yl.a)(j,2),S=k[0],_=k[1],C=_.offset,L=_.threshold,A=_.gap,P=S&&(E.length>0||O.length<=L),M="function"===typeof u?u(r):u;return Object(o.useEffect)(function(){S&&E.length>1&&x(function(e){return e.filter(function(e){return O.some(function(t){var n=t.key;return e===n})})})},[E,O,S]),Object(o.useEffect)(function(){var e,t;S&&p.current[null===(e=O[O.length-1])||void 0===e?void 0:e.key]&&y(p.current[null===(t=O[O.length-1])||void 0===t?void 0:t.key])},[O,S]),i.a.createElement(Ad.a,Object(Wu.a)({key:r,className:pe()(a,"".concat(a,"-").concat(r),null===h||void 0===h?void 0:h.list,c,(t={},Object(Wl.a)(t,"".concat(a,"-stack"),!!S),Object(Wl.a)(t,"".concat(a,"-stack-expanded"),P),t)),style:l,keys:O,motionAppear:!0},M,{onAllRemoved:function(){s(r)}}),function(e,t){var n=e.config,o=e.className,c=e.style,l=e.index,u=n,s=u.key,d=u.times,m=String(s),v=n,y=v.className,b=v.style,w=v.classNames,j=v.styles,k=Object(Jl.a)(v,eb),_=O.findIndex(function(e){return e.key===m}),L={};if(S){var M=O.length-1-(_>-1?_:l-1),N="top"===r||"bottom"===r?"-50%":"0";if(M>0){var T,I,F;L.height=P?null===(T=p.current[m])||void 0===T?void 0:T.offsetHeight:null===g||void 0===g?void 0:g.offsetHeight;for(var D=0,R=0;R<M;R++){var G;D+=(null===(G=p.current[O[O.length-1-R].key])||void 0===G?void 0:G.offsetHeight)+A}var B=(P?D:M*C)*(r.startsWith("top")?1:-1),H=!P&&null!==g&&void 0!==g&&g.offsetWidth&&null!==(I=p.current[m])&&void 0!==I&&I.offsetWidth?((null===g||void 0===g?void 0:g.offsetWidth)-2*C*(M<3?M:3))/(null===(F=p.current[m])||void 0===F?void 0:F.offsetWidth):1;L.transform="translate3d(".concat(N,", ").concat(B,"px, 0) scaleX(").concat(H,")")}else L.transform="translate3d(".concat(N,", 0, 0)")}return i.a.createElement("div",{ref:t,className:pe()("".concat(a,"-notice-wrapper"),o,null===w||void 0===w?void 0:w.wrapper),style:Object(Xl.a)(Object(Xl.a)(Object(Xl.a)({},c),L),null===j||void 0===j?void 0:j.wrapper),onMouseEnter:function(){return x(function(e){return e.includes(m)?e:[].concat(Object(Ul.a)(e),[m])})},onMouseLeave:function(){return x(function(e){return e.filter(function(e){return e!==m})})}},i.a.createElement(Ky,Object(Wu.a)({},k,{ref:function(e){_>-1?p.current[m]=e:delete p.current[m]},prefixCls:a,classNames:w,styles:j,className:pe()(y,null===h||void 0===h?void 0:h.notice),style:b,times:d,key:s,eventKey:s,onNoticeClose:f,hovering:S&&E.length>0})))})};var nb=o.forwardRef(function(e,t){var n=e.prefixCls,r=void 0===n?"rc-notification":n,a=e.container,i=e.motion,c=e.maxCount,l=e.className,u=e.style,s=e.onAllRemoved,f=e.stack,d=e.renderNotifications,h=o.useState([]),p=Object(Yl.a)(h,2),m=p[0],v=p[1],g=function(e){var t,n=m.find(function(t){return t.key===e});null===n||void 0===n||null===(t=n.onClose)||void 0===t||t.call(n),v(function(t){return t.filter(function(t){return t.key!==e})})};o.useImperativeHandle(t,function(){return{open:function(e){v(function(t){var n,r=Object(Ul.a)(t),a=r.findIndex(function(t){return t.key===e.key}),o=Object(Xl.a)({},e);a>=0?(o.times=((null===(n=t[a])||void 0===n?void 0:n.times)||0)+1,r[a]=o):(o.times=0,r.push(o));return c>0&&r.length>c&&(r=r.slice(-c)),r})},close:function(e){g(e)},destroy:function(){v([])}}});var y=o.useState({}),b=Object(Yl.a)(y,2),w=b[0],E=b[1];o.useEffect(function(){var e={};m.forEach(function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))}),Object.keys(w).forEach(function(t){e[t]=e[t]||[]}),E(e)},[m]);var x=function(e){E(function(t){var n=Object(Xl.a)({},t);return(n[e]||[]).length||delete n[e],n})},O=o.useRef(!1);if(o.useEffect(function(){Object.keys(w).length>0?O.current=!0:O.current&&(null===s||void 0===s||s(),O.current=!1)},[w]),!a)return null;var j=Object.keys(w);return Object(Py.createPortal)(o.createElement(o.Fragment,null,j.map(function(e){var t=w[e],n=o.createElement(tb,{key:e,configList:t,placement:e,prefixCls:r,className:null===l||void 0===l?void 0:l(e),style:null===u||void 0===u?void 0:u(e),motion:i,onNoticeClose:g,onAllNoticeRemoved:x,stack:f});return d?d(n,{prefixCls:r,key:e}):n})),a)}),rb=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],ab=function(){return document.body},ob=0;function ib(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?ab:t,r=e.motion,a=e.prefixCls,i=e.maxCount,c=e.className,l=e.style,u=e.onAllRemoved,s=e.stack,f=e.renderNotifications,d=Object(Jl.a)(e,rb),h=o.useState(),p=Object(Yl.a)(h,2),m=p[0],v=p[1],g=o.useRef(),y=o.createElement(nb,{container:m,ref:g,prefixCls:a,motion:r,maxCount:i,className:c,style:l,onAllRemoved:u,stack:s,renderNotifications:f}),b=o.useState([]),w=Object(Yl.a)(b,2),E=w[0],x=w[1],O=o.useMemo(function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){t&&Object.keys(t).forEach(function(n){var r=t[n];void 0!==r&&(e[n]=r)})}),e}(d,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(ob),ob+=1),x(function(e){return[].concat(Object(Ul.a)(e),[{type:"open",config:t}])})},close:function(e){x(function(t){return[].concat(Object(Ul.a)(t),[{type:"close",key:e}])})},destroy:function(){x(function(e){return[].concat(Object(Ul.a)(e),[{type:"destroy"}])})}}},[]);return o.useEffect(function(){v(n())}),o.useEffect(function(){g.current&&E.length&&(E.forEach(function(e){switch(e.type){case"open":g.current.open(e.config);break;case"close":g.current.close(e.key);break;case"destroy":g.current.destroy()}}),x(function(e){return e.filter(function(e){return!E.includes(e)})}))},[E]),[O,y]}var cb=function(e){var t,n,r=e.componentCls,a=e.iconCls,o=e.boxShadow,i=e.colorText,c=e.colorSuccess,l=e.colorError,u=e.colorWarning,s=e.colorInfo,f=e.fontSizeLG,d=e.motionEaseInOutCirc,h=e.motionDurationSlow,p=e.marginXS,m=e.paddingXS,v=e.borderRadiusLG,g=e.zIndexPopup,y=e.contentPadding,b=e.contentBg,w="".concat(r,"-notice"),E=new Ks("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:m,transform:"translateY(0)",opacity:1}}),x=new Ks("MessageMoveOut",{"0%":{maxHeight:e.height,padding:m,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),O=(t={padding:m,textAlign:"center"},Object(se.a)(t,"".concat(r,"-custom-content > ").concat(a),{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:f}),Object(se.a)(t,"".concat(w,"-content"),{display:"inline-block",padding:y,background:b,borderRadius:v,boxShadow:o,pointerEvents:"all"}),Object(se.a)(t,"".concat(r,"-success > ").concat(a),{color:c}),Object(se.a)(t,"".concat(r,"-error > ").concat(a),{color:l}),Object(se.a)(t,"".concat(r,"-warning > ").concat(a),{color:u}),Object(se.a)(t,"".concat(r,"-info > ").concat(a,",\n ").concat(r,"-loading > ").concat(a),{color:s}),t);return[Object(se.a)({},r,Object.assign(Object.assign({},Dd(e)),(n={color:i,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g},Object(se.a)(n,"".concat(r,"-move-up"),{animationFillMode:"forwards"}),Object(se.a)(n,"\n ".concat(r,"-move-up-appear,\n ").concat(r,"-move-up-enter\n "),{animationName:E,animationDuration:h,animationPlayState:"paused",animationTimingFunction:d}),Object(se.a)(n,"\n ".concat(r,"-move-up-appear").concat(r,"-move-up-appear-active,\n ").concat(r,"-move-up-enter").concat(r,"-move-up-enter-active\n "),{animationPlayState:"running"}),Object(se.a)(n,"".concat(r,"-move-up-leave"),{animationName:x,animationDuration:h,animationPlayState:"paused",animationTimingFunction:d}),Object(se.a)(n,"".concat(r,"-move-up-leave").concat(r,"-move-up-leave-active"),{animationPlayState:"running"}),Object(se.a)(n,"&-rtl",{direction:"rtl",span:{direction:"rtl"}}),n))),Object(se.a)({},r,Object(se.a)({},"".concat(w,"-wrapper"),Object.assign({},O))),Object(se.a)({},"".concat(r,"-notice-pure-panel"),Object.assign(Object.assign({},O),{padding:0,textAlign:"start"}))]},lb=Eh("Message",function(e){var t=hh(e,{height:150});return[cb(t)]},function(e){return{zIndexPopup:e.zIndexPopupBase+qf+10,contentBg:e.colorBgElevated,contentPadding:"".concat((e.controlHeightLG-e.fontSize*e.lineHeight)/2,"px ").concat(e.paddingSM,"px")}}),ub=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},sb={info:o.createElement(Xy,null),success:o.createElement(qy,null),error:o.createElement(Lm,null),warning:o.createElement(Wy,null),loading:o.createElement(Im,null)},fb=function(e){var t=e.prefixCls,n=e.type,r=e.icon,a=e.children;return o.createElement("div",{className:zl()("".concat(t,"-custom-content"),"".concat(t,"-").concat(n))},r||sb[n],o.createElement("span",null,a))},db=function(e){var t=e.prefixCls,n=e.className,r=e.type,i=e.icon,c=e.content,l=ub(e,["prefixCls","className","type","icon","content"]),u=o.useContext(yd).getPrefixCls,s=t||u("message"),f=Ah(s),d=lb(s,f),h=Object(a.a)(d,3),p=h[0],m=h[1],v=h[2];return p(o.createElement(Ky,Object.assign({},l,{prefixCls:s,className:zl()(n,m,"".concat(s,"-notice-pure-panel"),v,f),eventKey:"pure",duration:null,content:o.createElement(fb,{prefixCls:s,type:r,icon:i},c)})))};function hb(e){var t,n=new Promise(function(n){t=e(function(){n(!0)})}),r=function(){null===t||void 0===t||t()};return r.then=function(e,t){return n.then(e,t)},r.promise=n,r}var pb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},mb=function(e){var t=e.children,n=e.prefixCls,r=Ah(n),i=lb(n,r),c=Object(a.a)(i,3),l=c[0],u=c[1],s=c[2];return l(o.createElement(Zy,{classNames:{list:zl()(u,s,r)}},t))},vb=function(e,t){var n=t.prefixCls,r=t.key;return o.createElement(mb,{prefixCls:n,key:r},e)},gb=o.forwardRef(function(e,t){var n=e.top,r=e.prefixCls,i=e.getContainer,c=e.maxCount,l=e.duration,u=void 0===l?3:l,s=e.rtl,f=e.transitionName,d=e.onAllRemoved,h=o.useContext(yd),p=h.getPrefixCls,m=h.getPopupContainer,v=h.message,g=r||p("message"),y=o.createElement("span",{className:"".concat(g,"-close-x")},o.createElement(Pm,{className:"".concat(g,"-close-icon")})),b=ib({prefixCls:g,style:function(){return{left:"50%",transform:"translateX(-50%)",top:null!==n&&void 0!==n?n:8}},className:function(){return zl()(Object(se.a)({},"".concat(g,"-rtl"),s))},motion:function(){return function(e,t){return{motionName:null!==t&&void 0!==t?t:"".concat(e,"-move-up")}}(g,f)},closable:!1,closeIcon:y,duration:u,getContainer:function(){return(null===i||void 0===i?void 0:i())||(null===m||void 0===m?void 0:m())||document.body},maxCount:c,onAllRemoved:d,renderNotifications:vb}),w=Object(a.a)(b,2),E=w[0],x=w[1];return o.useImperativeHandle(t,function(){return Object.assign(Object.assign({},E),{prefixCls:g,message:v})}),x}),yb=0;function bb(e){var t=o.useRef(null);od("Message");return[o.useMemo(function(){var e=function(e){var n;null===(n=t.current)||void 0===n||n.close(e)},n=function(n){if(!t.current){var r=function(){};return r.then=function(){},r}var a=t.current,i=a.open,c=a.prefixCls,l=a.message,u="".concat(c,"-notice"),s=n.content,f=n.icon,d=n.type,h=n.key,p=n.className,m=n.style,v=n.onClose,g=pb(n,["content","icon","type","key","className","style","onClose"]),y=h;return void 0!==y&&null!==y||(y="antd-message-".concat(yb+=1)),hb(function(t){return i(Object.assign(Object.assign({},g),{key:y,content:o.createElement(fb,{prefixCls:c,type:d,icon:f},s),placement:"top",className:zl()(d&&"".concat(u,"-").concat(d),p,null===l||void 0===l?void 0:l.className),style:Object.assign(Object.assign({},null===l||void 0===l?void 0:l.style),m),onClose:function(){null===v||void 0===v||v(),t()}})),function(){e(y)}})},r={open:n,destroy:function(n){var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach(function(e){r[e]=function(t,r,a){var o,i,c;o=t&&"object"===typeof t&&"content"in t?t:{content:t},"function"===typeof r?c=r:(i=r,c=a);var l=Object.assign(Object.assign({onClose:c,duration:i},o),{type:e});return n(l)}}),r},[]),o.createElement(gb,Object.assign({key:"message-holder"},e,{ref:t}))]}var wb=null,Eb=function(e){return e()},xb=[],Ob={};function jb(){var e=Ob,t=e.prefixCls,n=e.getContainer,r=e.duration,a=e.rtl,o=e.maxCount,i=e.top,c=null!==t&&void 0!==t?t:Xd().getPrefixCls("message"),l=(null===n||void 0===n?void 0:n())||document.body;return{prefixCls:c,getContainer:function(){return l},duration:r,rtl:a,maxCount:o,top:i}}var kb=o.forwardRef(function(e,t){var n=o.useState(jb),r=Object(a.a)(n,2),i=r[0],c=r[1],l=bb(i),u=Object(a.a)(l,2),s=u[0],f=u[1],d=Xd(),h=d.getRootPrefixCls(),p=d.getIconPrefixCls(),m=d.getTheme(),v=function(){c(jb)};return o.useEffect(v,[]),o.useImperativeHandle(t,function(){var e=Object.assign({},s);return Object.keys(e).forEach(function(t){e[t]=function(){return v(),s[t].apply(s,arguments)}}),{instance:e,sync:v}}),o.createElement(Jd,{prefixCls:h,iconPrefixCls:p,theme:m},f)});function Sb(){if(!wb){var e=document.createDocumentFragment(),t={fragment:e};return wb=t,void Eb(function(){Ry(o.createElement(kb,{ref:function(e){var n=e||{},r=n.instance,a=n.sync;Promise.resolve().then(function(){!t.instance&&r&&(t.instance=r,t.sync=a,Sb())})}}),e)})}wb.instance&&(xb.forEach(function(e){var t=e.type;if(!e.skipped)switch(t){case"open":Eb(function(){var t=wb.instance.open(Object.assign(Object.assign({},Ob),e.config));null===t||void 0===t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":Eb(function(){null===wb||void 0===wb||wb.instance.destroy(e.key)});break;default:Eb(function(){var n,r=(n=wb.instance)[t].apply(n,Object(Ul.a)(e.args));null===r||void 0===r||r.then(e.resolve),e.setCloseFn(r)})}}),xb=[])}var _b={open:function(e){var t=hb(function(t){var n,r={type:"open",config:e,resolve:t,setCloseFn:function(e){n=e}};return xb.push(r),function(){n?Eb(function(){n()}):r.skipped=!0}});return Sb(),t},destroy:function(e){xb.push({type:"destroy",key:e}),Sb()},config:function(e){Ob=Object.assign(Object.assign({},Ob),e),Eb(function(){var e;null===(e=null===wb||void 0===wb?void 0:wb.sync)||void 0===e||e.call(wb)})},useMessage:function(e){return bb(e)},_InternalPanelDoNotUseOrYouWillBeFired:db};["success","info","warning","error","loading"].forEach(function(e){_b[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){var n=hb(function(n){var r,a={type:e,args:t,resolve:n,setCloseFn:function(e){r=e}};return xb.push(a),function(){r?Eb(function(){r()}):a.skipped=!0}});return Sb(),n}(e,n)}});var Cb=_b,Lb=n(1168),Ab=n(1304),Pb=o.isValidElement;function Mb(e){return e&&Pb(e)&&e.type===o.Fragment}function Nb(e,t){return function(e,t,n){return Pb(e)?o.cloneElement(e,"function"===typeof n?n(e.props||{}):n):t}(e,e,t)}var Tb=function(e){var t=e.componentCls,n=e.colorPrimary;return Object(se.a)({},t,{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:"var(--wave-color, ".concat(n,")"),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s ".concat(e.motionEaseOutCirc),"opacity 2s ".concat(e.motionEaseOutCirc)].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow 0.3s ".concat(e.motionEaseInOut),"opacity 0.35s ".concat(e.motionEaseInOut)].join(",")}}})},Ib=wh("Wave",function(e){return[Tb(e)]}),Fb=n(1181);function Db(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}var Rb="ant-wave-target";function Gb(e){return Number.isNaN(e)?0:e}var Bb=function(e){var t=e.className,n=e.target,r=e.component,i=o.useRef(null),c=o.useState(null),l=Object(a.a)(c,2),u=l[0],s=l[1],f=o.useState([]),d=Object(a.a)(f,2),h=d[0],p=d[1],m=o.useState(0),v=Object(a.a)(m,2),g=v[0],y=v[1],b=o.useState(0),w=Object(a.a)(b,2),E=w[0],x=w[1],O=o.useState(0),j=Object(a.a)(O,2),k=j[0],S=j[1],_=o.useState(0),C=Object(a.a)(_,2),L=C[0],A=C[1],P=o.useState(!1),M=Object(a.a)(P,2),N=M[0],T=M[1],I={left:g,top:E,width:k,height:L,borderRadius:h.map(function(e){return"".concat(e,"px")}).join(" ")};function F(){var e=getComputedStyle(n);s(function(e){var t=getComputedStyle(e),n=t.borderTopColor,r=t.borderColor,a=t.backgroundColor;return Db(n)?n:Db(r)?r:Db(a)?a:null}(n));var t="static"===e.position,r=e.borderLeftWidth,a=e.borderTopWidth;y(t?n.offsetLeft:Gb(-parseFloat(r))),x(t?n.offsetTop:Gb(-parseFloat(a))),S(n.offsetWidth),A(n.offsetHeight);var o=e.borderTopLeftRadius,i=e.borderTopRightRadius,c=e.borderBottomLeftRadius,l=e.borderBottomRightRadius;p([o,i,l,c].map(function(e){return Gb(parseFloat(e))}))}if(u&&(I["--wave-color"]=u),o.useEffect(function(){if(n){var e,t=Object(Fb.a)(function(){F(),T(!0)});return"undefined"!==typeof ResizeObserver&&(e=new ResizeObserver(F)).observe(n),function(){Fb.a.cancel(t),null===e||void 0===e||e.disconnect()}}},[]),!N)return null;var D=("Checkbox"===r||"Radio"===r)&&(null===n||void 0===n?void 0:n.classList.contains(Rb));return o.createElement(Ad.c,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:function(e,t){var n;if(t.deadline||"opacity"===t.propertyName){var r=null===(n=i.current)||void 0===n?void 0:n.parentElement;(function(e){return zy.apply(this,arguments)})(r).then(function(){null===r||void 0===r||r.remove()})}return!1}},function(e){var n=e.className;return o.createElement("div",{ref:i,className:zl()(t,{"wave-quick":D},n),style:I})})},Hb=function(e,t){var n;if("Checkbox"!==t.component||(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked)){var r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",null===e||void 0===e||e.insertBefore(r,null===e||void 0===e?void 0:e.firstChild),Ry(o.createElement(Bb,Object.assign({},t,{target:e})),r)}};var zb=function(e){var t=e.children,n=e.disabled,r=e.component,c=Object(o.useContext)(yd).getPrefixCls,l=Object(o.useRef)(null),u=c("wave"),s=Ib(u),f=Object(a.a)(s,2)[1],d=function(e,t,n){var r=o.useContext(yd).wave,i=zf(),c=Object(a.a)(i,3),l=c[1],u=c[2],s=Object(nh.a)(function(a){var o=e.current;if((null===r||void 0===r||!r.disabled)&&o){var i=o.querySelector(".".concat(Rb))||o;((r||{}).showEffect||Hb)(i,{className:t,token:l,component:n,event:a,hashId:u})}}),f=o.useRef();return function(e){Fb.a.cancel(f.current),f.current=Object(Fb.a)(function(){s(e)})}}(l,zl()(u,f),r);return i.a.useEffect(function(){var e=l.current;if(e&&1===e.nodeType&&!n){var t=function(t){!Object(Ab.a)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||d(t)};return e.addEventListener("click",t,!0),function(){e.removeEventListener("click",t,!0)}}},[n]),i.a.isValidElement(t)?Nb(t,{ref:Object(Lb.c)(t)?Object(Lb.a)(t.ref,l):l}):null!==t&&void 0!==t?t:null},Vb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},qb=o.createContext(void 0),Yb=function(e){var t,n=o.useContext(yd),r=n.getPrefixCls,i=n.direction,c=e.prefixCls,l=e.size,u=e.className,s=Vb(e,["prefixCls","size","className"]),f=r("btn-group",c),d=zf(),h=Object(a.a)(d,3)[2],p="";switch(l){case"large":p="lg";break;case"small":p="sm"}var m=zl()(f,(t={},Object(se.a)(t,"".concat(f,"-").concat(p),p),Object(se.a)(t,"".concat(f,"-rtl"),"rtl"===i),t),u,h);return o.createElement(qb.Provider,{value:l},o.createElement("div",Object.assign({},s,{className:m})))},Wb=/^[\u4e00-\u9fa5]{2}$/,Ub=Wb.test.bind(Wb);function Xb(e){return"string"===typeof e}function Qb(e){return"text"===e||"link"===e}function Kb(e,t){var n=!1,r=[];return i.a.Children.forEach(e,function(e){var t=typeof e,a="string"===t||"number"===t;if(n&&a){var o=r.length-1,i=r[o];r[o]="".concat(i).concat(e)}else r.push(e);n=a}),i.a.Children.map(r,function(e){return function(e,t){if(null!==e&&void 0!==e){var n=t?" ":"";return"string"!==typeof e&&"number"!==typeof e&&Xb(e.type)&&Ub(e.props.children)?Nb(e,{children:e.props.children.split("").join(n)}):Xb(e)?Ub(e)?i.a.createElement("span",null,e.split("").join(n)):i.a.createElement("span",null,e):Mb(e)?i.a.createElement("span",null,e):e}}(e,t)})}var Jb=Object(o.forwardRef)(function(e,t){var n=e.className,r=e.style,a=e.children,o=e.prefixCls,c=zl()("".concat(o,"-icon"),n);return i.a.createElement("span",{ref:t,className:c,style:r},a)}),Zb=Object(o.forwardRef)(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.iconClassName,c=zl()("".concat(n,"-loading-icon"),r);return i.a.createElement(Jb,{prefixCls:n,className:c,style:a,ref:t},i.a.createElement(Im,{className:o}))}),$b=function(){return{width:0,opacity:0,transform:"scale(0)"}},ew=function(e){return{width:e.scrollWidth,opacity:1,transform:"scale(1)"}},tw=function(e){var t=e.prefixCls,n=e.loading,r=e.existIcon,a=e.className,o=e.style,c=!!n;return r?i.a.createElement(Zb,{prefixCls:t,className:a,style:o}):i.a.createElement(Ad.c,{visible:c,motionName:"".concat(t,"-loading-icon-motion"),motionLeave:c,removeOnLeave:!0,onAppearStart:$b,onAppearActive:ew,onEnterStart:$b,onEnterActive:ew,onLeaveStart:ew,onLeaveActive:$b},function(e,n){var r=e.className,c=e.style;return i.a.createElement(Zb,{prefixCls:t,className:a,style:Object.assign(Object.assign({},o),c),ref:n,iconClassName:r})})},nw=function(e,t){return Object(se.a)({},"> span, > ".concat(e),{"&:not(:last-child)":Object(se.a)({},"&, & > ".concat(e),{"&:not(:disabled)":{borderInlineEndColor:t}}),"&:not(:first-child)":Object(se.a)({},"&, & > ".concat(e),{"&:not(:disabled)":{borderInlineStartColor:t}})})},rw=function(e){var t,n,r=e.componentCls,a=e.fontSize,o=e.lineWidth,i=e.groupBorderColor,c=e.colorErrorHover;return Object(se.a)({},"".concat(r,"-group"),[(n={position:"relative",display:"inline-flex"},Object(se.a)(n,"> span, > ".concat(r),{"&:not(:last-child)":Object(se.a)({},"&, & > ".concat(r),{borderStartEndRadius:0,borderEndEndRadius:0}),"&:not(:first-child)":Object(se.a)({marginInlineStart:e.calc(o).mul(-1).equal()},"&, & > ".concat(r),{borderStartStartRadius:0,borderEndStartRadius:0})}),Object(se.a)(n,r,(t={position:"relative",zIndex:1},Object(se.a)(t,"&:hover,\n &:focus,\n &:active",{zIndex:2}),Object(se.a)(t,"&[disabled]",{zIndex:0}),t)),Object(se.a)(n,"".concat(r,"-icon-only"),{fontSize:a}),n),nw("".concat(r,"-primary"),i),nw("".concat(r,"-danger"),c)])},aw=function(e){var t,n=e.componentCls,r=e.iconCls,a=e.fontWeight;return Object(se.a)({},n,(t={outline:"none",position:"relative",display:"inline-block",fontWeight:a,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:"".concat(_u(e.lineWidth)," ").concat(e.lineType," transparent"),cursor:"pointer",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"}},Object(se.a)(t,"".concat(n,"-icon"),{lineHeight:0}),Object(se.a)(t,"> ".concat(r," + span, > span + ").concat(r),{marginInlineStart:e.marginXS}),Object(se.a)(t,"&:not(".concat(n,"-icon-only) > ").concat(n,"-icon"),Object(se.a)({},"&".concat(n,"-loading-icon, &:not(:last-child)"),{marginInlineEnd:e.marginXS})),Object(se.a)(t,"> a",{color:"currentColor"}),Object(se.a)(t,"&:not(:disabled)",Object.assign({},function(e){return{"&:focus-visible":Object.assign({},Hd(e))}}(e))),Object(se.a)(t,"&".concat(n,"-two-chinese-chars::first-letter"),{letterSpacing:"0.34em"}),Object(se.a)(t,"&".concat(n,"-two-chinese-chars > *:not(").concat(r,")"),{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"}),Object(se.a)(t,"&-icon-only".concat(n,"-compact-item"),{flex:"none"}),t))},ow=function(e,t,n){return Object(se.a)({},"&:not(:disabled):not(".concat(e,"-disabled)"),{"&:hover":t,"&:active":n})},iw=function(e){return{minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}},cw=function(e){return{borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}},lw=function(e,t,n,r,a,o,i,c){return Object(se.a)({},"&".concat(e,"-background-ghost"),Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},ow(e,Object.assign({background:t},i),Object.assign({background:t},c))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}}))},uw=function(e){return Object(se.a)({},"&:disabled, &".concat(e.componentCls,"-disabled"),Object.assign({},function(e){return{cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}}(e)))},sw=function(e){return Object.assign({},uw(e))},fw=function(e){return Object(se.a)({},"&:disabled, &".concat(e.componentCls,"-disabled"),{cursor:"not-allowed",color:e.colorTextDisabled})},dw=function(e){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sw(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),ow(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),lw(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Object(se.a)({},"&".concat(e.componentCls,"-dangerous"),Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},ow(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),lw(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),uw(e))))},hw=function(e){var t,n=e.componentCls;return t={},Object(se.a)(t,"".concat(n,"-default"),dw(e)),Object(se.a)(t,"".concat(n,"-primary"),function(e){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sw(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),ow(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),lw(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Object(se.a)({},"&".concat(e.componentCls,"-dangerous"),Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},ow(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),lw(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),uw(e))))}(e)),Object(se.a)(t,"".concat(n,"-dashed"),function(e){return Object.assign(Object.assign({},dw(e)),{borderStyle:"dashed"})}(e)),Object(se.a)(t,"".concat(n,"-link"),function(e){return Object.assign(Object.assign(Object.assign({color:e.colorLink},ow(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),fw(e)),Object(se.a)({},"&".concat(e.componentCls,"-dangerous"),Object.assign(Object.assign({color:e.colorError},ow(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),fw(e))))}(e)),Object(se.a)(t,"".concat(n,"-text"),function(e){return Object.assign(Object.assign(Object.assign({},ow(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),fw(e)),Object(se.a)({},"&".concat(e.componentCls,"-dangerous"),Object.assign(Object.assign({color:e.colorError},fw(e)),ow(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))))}(e)),Object(se.a)(t,"".concat(n,"-ghost"),lw(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),t},pw=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=e.componentCls,o=e.controlHeight,i=e.fontSize,c=e.borderRadius,l=e.buttonPaddingHorizontal,u=e.iconCls,s=e.buttonPaddingVertical,f="".concat(a,"-icon-only");return[Object(se.a)({},"".concat(a).concat(r),(n={fontSize:i,height:o,padding:"".concat(_u(s)," ").concat(_u(l)),borderRadius:c},Object(se.a)(n,"&".concat(f),(t={width:o,paddingInlineStart:0,paddingInlineEnd:0},Object(se.a)(t,"&".concat(a,"-round"),{width:"auto"}),Object(se.a)(t,u,{fontSize:e.buttonIconOnlyFontSize}),t)),Object(se.a)(n,"&".concat(a,"-loading"),{opacity:e.opacityLoading,cursor:"default"}),Object(se.a)(n,"".concat(a,"-loading-icon"),{transition:"width ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,", opacity ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)}),n)),Object(se.a)({},"".concat(a).concat(a,"-circle").concat(r),iw(e)),Object(se.a)({},"".concat(a).concat(a,"-round").concat(r),cw(e))]},mw=function(e){return pw(hh(e,{fontSize:e.contentFontSize}))},vw=function(e){var t=hh(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return pw(t,"".concat(e.componentCls,"-sm"))},gw=function(e){var t=hh(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return pw(t,"".concat(e.componentCls,"-lg"))},yw=function(e){var t=e.componentCls;return Object(se.a)({},t,Object(se.a)({},"&".concat(t,"-block"),{width:"100%"}))},bw=function(e){var t=e.paddingInline,n=e.onlyIconSize;return hh(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:e.paddingBlock,buttonIconOnlyFontSize:n})},ww=function(e){var t=e.fontSize,n=e.fontSize,r=e.fontSizeLG;return{fontWeight:400,defaultShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlTmpOutline),primaryShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlOutline),dangerShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.colorErrorOutline),primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,paddingBlock:Math.max((e.controlHeight-t*e.lineHeight)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*e.lineHeight)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*e.lineHeight)/2-e.lineWidth,0),onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r}},Ew=Eh("Button",function(e){var t=bw(e);return[aw(t),vw(t),mw(t),gw(t),yw(t),hw(t),rw(t)]},ww,{unitless:{fontWeight:!0}});function xw(e){var t="".concat(e.componentCls,"-compact-vertical");return Object(se.a)({},t,Object.assign(Object.assign({},function(e,t){var n;return n={},Object(se.a)(n,"&-item:not(".concat(t,"-last-item)"),{marginBottom:e.calc(e.lineWidth).mul(-1).equal()}),Object(se.a)(n,"&-item",{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}),n}(e,t)),function(e,t){var n;return n={},Object(se.a)(n,"&-item:not(".concat(t,"-first-item):not(").concat(t,"-last-item)"),{borderRadius:0}),Object(se.a)(n,"&-item".concat(t,"-first-item:not(").concat(t,"-last-item)"),Object(se.a)({},"&, &".concat(e,"-sm, &").concat(e,"-lg"),{borderEndEndRadius:0,borderEndStartRadius:0})),Object(se.a)(n,"&-item".concat(t,"-last-item:not(").concat(t,"-first-item)"),Object(se.a)({},"&, &".concat(e,"-sm, &").concat(e,"-lg"),{borderStartStartRadius:0,borderStartEndRadius:0})),n}(e.componentCls,t)))}var Ow=function(e){var t,n=e.componentCls,r=e.calc;return Object(se.a)({},n,(t={},Object(se.a)(t,"&-compact-item".concat(n,"-primary"),Object(se.a)({},"&:not([disabled]) + ".concat(n,"-compact-item").concat(n,"-primary:not([disabled])"),{position:"relative","&:before":{position:"absolute",top:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:"calc(100% + ".concat(_u(e.lineWidth)," * 2)"),backgroundColor:e.colorPrimaryHover,content:'""'}})),Object(se.a)(t,"&-compact-vertical-item",Object(se.a)({},"&".concat(n,"-primary"),Object(se.a)({},"&:not([disabled]) + ".concat(n,"-compact-vertical-item").concat(n,"-primary:not([disabled])"),{position:"relative","&:before":{position:"absolute",top:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:"calc(100% + ".concat(_u(e.lineWidth)," * 2)"),height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}))),t))},jw=function(e,t,n,r){var a=wh(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return function(e){var t=e.prefixCls;return a(t),null}}(["Button","compact"],function(e){var t=bw(e);return[Ip(t),xw(t),Ow(t)]},ww),kw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};var Sw=function(e,t){var n,r,c,l=e.loading,u=void 0!==l&&l,s=e.prefixCls,f=e.type,d=void 0===f?"default":f,h=e.danger,p=e.shape,m=void 0===p?"default":p,v=e.size,g=e.styles,y=e.disabled,b=e.className,w=e.rootClassName,E=e.children,x=e.icon,O=e.ghost,j=void 0!==O&&O,k=e.block,S=void 0!==k&&k,_=e.htmlType,C=void 0===_?"button":_,L=e.classNames,A=e.style,P=void 0===A?{}:A,M=kw(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),N=Object(o.useContext)(yd),T=N.getPrefixCls,I=N.autoInsertSpaceInButton,F=N.direction,D=N.button,R=T("btn",s),G=Ew(R),B=Object(a.a)(G,3),H=B[0],z=B[1],V=B[2],q=Object(o.useContext)(Od),Y=null!==y&&void 0!==y?y:q,W=Object(o.useContext)(qb),U=Object(o.useMemo)(function(){return function(e){if("object"===typeof e&&e){var t=null===e||void 0===e?void 0:e.delay;return{loading:(t=Number.isNaN(t)||"number"!==typeof t?0:t)<=0,delay:t}}return{loading:!!e,delay:0}}(u)},[u]),X=Object(o.useState)(U.loading),Q=Object(a.a)(X,2),K=Q[0],J=Q[1],Z=Object(o.useState)(!1),$=Object(a.a)(Z,2),ee=$[0],te=$[1],ne=Object(o.createRef)(),re=Object(Lb.a)(t,ne),ae=1===o.Children.count(E)&&!x&&!Qb(d);Object(o.useEffect)(function(){var e=null;return U.delay>0?e=setTimeout(function(){e=null,J(!0)},U.delay):J(U.loading),function(){e&&(clearTimeout(e),e=null)}},[U]),Object(o.useEffect)(function(){if(re&&re.current&&!1!==I){var e=re.current.textContent;ae&&Ub(e)?ee||te(!0):ee&&te(!1)}},[re]);var oe=function(t){var n=e.onClick;K||Y?t.preventDefault():null===n||void 0===n||n(t)},ie=!1!==I,ce=Pp(R,F),le=ce.compactSize,ue=ce.compactItemClassnames,fe={large:"lg",small:"sm",middle:void 0},de=Ph(function(e){var t,n;return null!==(n=null!==(t=null!==v&&void 0!==v?v:le)&&void 0!==t?t:W)&&void 0!==n?n:e}),he=de&&fe[de]||"",pe=K?"loading":x,me=Object(ql.a)(M,["navigate"]),ve=zl()(R,z,V,(n={},Object(se.a)(n,"".concat(R,"-").concat(m),"default"!==m&&m),Object(se.a)(n,"".concat(R,"-").concat(d),d),Object(se.a)(n,"".concat(R,"-").concat(he),he),Object(se.a)(n,"".concat(R,"-icon-only"),!E&&0!==E&&!!pe),Object(se.a)(n,"".concat(R,"-background-ghost"),j&&!Qb(d)),Object(se.a)(n,"".concat(R,"-loading"),K),Object(se.a)(n,"".concat(R,"-two-chinese-chars"),ee&&ie&&!K),Object(se.a)(n,"".concat(R,"-block"),S),Object(se.a)(n,"".concat(R,"-dangerous"),!!h),Object(se.a)(n,"".concat(R,"-rtl"),"rtl"===F),n),ue,b,w,null===D||void 0===D?void 0:D.className),ge=Object.assign(Object.assign({},null===D||void 0===D?void 0:D.style),P),ye=zl()(null===L||void 0===L?void 0:L.icon,null===(r=null===D||void 0===D?void 0:D.classNames)||void 0===r?void 0:r.icon),be=Object.assign(Object.assign({},(null===g||void 0===g?void 0:g.icon)||{}),(null===(c=null===D||void 0===D?void 0:D.styles)||void 0===c?void 0:c.icon)||{}),we=x&&!K?i.a.createElement(Jb,{prefixCls:R,className:ye,style:be},x):i.a.createElement(tw,{existIcon:!!x,prefixCls:R,loading:!!K}),Ee=E||0===E?Kb(E,ae&&ie):null;if(void 0!==me.href)return H(i.a.createElement("a",Object.assign({},me,{className:zl()(ve,Object(se.a)({},"".concat(R,"-disabled"),Y)),href:Y?void 0:me.href,style:ge,onClick:oe,ref:re,tabIndex:Y?-1:0}),we,Ee));var xe=i.a.createElement("button",Object.assign({},M,{type:C,className:ve,style:ge,onClick:oe,disabled:Y,ref:re}),we,Ee,ue&&i.a.createElement(jw,{key:"compact",prefixCls:R}));return Qb(d)||(xe=i.a.createElement(zb,{component:"Button",disabled:!!K},xe)),H(xe)},_w=Object(o.forwardRef)(Sw);_w.Group=Yb,_w.__ANT_BUTTON=!0;var Cw=_w,Lw=n(1233),Aw=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=e.type||"",o=a.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),i=t.toLowerCase(),c=[i];return".jpg"!==i&&".jpeg"!==i||(c=[".jpg",".jpeg"]),c.some(function(e){return n.endsWith(e)})}return/\/\*$/.test(t)?o===t.replace(/\/.*$/,""):a===t||!!/^\w+$/.test(t)&&(Object(du.a)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0};function Pw(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(tj){return t}}function Mw(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var r=e.data[t];Array.isArray(r)?r.forEach(function(e){n.append("".concat(t,"[]"),e)}):n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),Pw(t)):e.onSuccess(Pw(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(e){null!==r[e]&&t.setRequestHeader(e,r[e])}),t.send(n),{abort:function(){t.abort()}}}var Nw=function(e,t,n){var r=function e(r,a){r&&(r.path=a||"",r.isFile?r.file(function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))}):r.isDirectory&&function(e,t){var n=e.createReader(),r=[];!function e(){n.readEntries(function(n){var a=Array.prototype.slice.apply(n);r=r.concat(a),a.length?e():t(r)})}()}(r,function(t){t.forEach(function(t){e(t,"".concat(a).concat(r.name,"/"))})}))};e.forEach(function(e){r(e.webkitGetAsEntry())})},Tw=+new Date,Iw=0;function Fw(){return"rc-upload-".concat(Tw,"-").concat(++Iw)}var Dw=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Rw=function(e){Object(rh.a)(n,e);var t=Object(ah.a)(n);function n(){var e;Object(eu.a)(this,n);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return e=t.call.apply(t,[this].concat(a)),Object(Wl.a)(Object(Ih.a)(e),"state",{uid:Fw()}),Object(Wl.a)(Object(Ih.a)(e),"reqs",{}),Object(Wl.a)(Object(Ih.a)(e),"fileInput",void 0),Object(Wl.a)(Object(Ih.a)(e),"_isMounted",void 0),Object(Wl.a)(Object(Ih.a)(e),"onChange",function(t){var n=e.props,r=n.accept,a=n.directory,o=t.target.files,i=Object(Ul.a)(o).filter(function(e){return!a||Aw(e,r)});e.uploadFiles(i),e.reset()}),Object(Wl.a)(Object(Ih.a)(e),"onClick",function(t){var n=e.fileInput;if(n){var r=t.target,a=e.props.onClick;if(r&&"BUTTON"===r.tagName)n.parentNode.focus(),r.blur();n.click(),a&&a(t)}}),Object(Wl.a)(Object(Ih.a)(e),"onKeyDown",function(t){"Enter"===t.key&&e.onClick(t)}),Object(Wl.a)(Object(Ih.a)(e),"onFileDrop",function(t){var n=e.props.multiple;if(t.preventDefault(),"dragover"!==t.type)if(e.props.directory)Nw(Array.prototype.slice.call(t.dataTransfer.items),e.uploadFiles,function(t){return Aw(t,e.props.accept)});else{var r=Object(Ul.a)(t.dataTransfer.files).filter(function(t){return Aw(t,e.props.accept)});!1===n&&(r=r.slice(0,1)),e.uploadFiles(r)}}),Object(Wl.a)(Object(Ih.a)(e),"uploadFiles",function(t){var n=Object(Ul.a)(t),r=n.map(function(t){return t.uid=Fw(),e.processFile(t,n)});Promise.all(r).then(function(t){var n=e.props.onBatchStart;null===n||void 0===n||n(t.map(function(e){return{file:e.origin,parsedFile:e.parsedFile}})),t.filter(function(e){return null!==e.parsedFile}).forEach(function(t){e.post(t)})})}),Object(Wl.a)(Object(Ih.a)(e),"processFile",function(){var t=Th(Mh().mark(function t(n,r){var a,o,i,c,l,u,s,f,d;return Mh().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.props.beforeUpload,o=n,!a){t.next=14;break}return t.prev=3,t.next=6,a(n,r);case 6:o=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),o=!1;case 12:if(!1!==o){t.next=14;break}return t.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!==typeof(i=e.props.action)){t.next=21;break}return t.next=18,i(n);case 18:c=t.sent,t.next=22;break;case 21:c=i;case 22:if("function"!==typeof(l=e.props.data)){t.next=29;break}return t.next=26,l(n);case 26:u=t.sent,t.next=30;break;case 29:u=l;case 30:return s="object"!==Object(uu.a)(o)&&"string"!==typeof o||!o?n:o,f=s instanceof File?s:new File([s],n.name,{type:n.type}),(d=f).uid=n.uid,t.abrupt("return",{origin:n,data:u,parsedFile:d,action:c});case 35:case"end":return t.stop()}},t,null,[[3,9]])}));return function(e,n){return t.apply(this,arguments)}}()),Object(Wl.a)(Object(Ih.a)(e),"saveFileInput",function(t){e.fileInput=t}),e}return Object(tu.a)(n,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(e){var t=this,n=e.data,r=e.origin,a=e.action,o=e.parsedFile;if(this._isMounted){var i=this.props,c=i.onStart,l=i.customRequest,u=i.name,s=i.headers,f=i.withCredentials,d=i.method,h=r.uid,p=l||Mw,m={action:a,filename:u,data:n,file:o,headers:s,withCredentials:f,method:d||"post",onProgress:function(e){var n=t.props.onProgress;null===n||void 0===n||n(e,o)},onSuccess:function(e,n){var r=t.props.onSuccess;null===r||void 0===r||r(e,o,n),delete t.reqs[h]},onError:function(e,n){var r=t.props.onError;null===r||void 0===r||r(e,n,o),delete t.reqs[h]}};c(r),this.reqs[h]=p(m)}}},{key:"reset",value:function(){this.setState({uid:Fw()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}},{key:"render",value:function(){var e,t=this.props,n=t.component,r=t.prefixCls,a=t.className,o=t.classNames,c=void 0===o?{}:o,l=t.disabled,u=t.id,s=t.style,f=t.styles,d=void 0===f?{}:f,h=t.multiple,p=t.accept,m=t.capture,v=t.children,g=t.directory,y=t.openFileDialogOnClick,b=t.onMouseEnter,w=t.onMouseLeave,E=t.hasControlInside,x=Object(Jl.a)(t,Dw),O=pe()((e={},Object(Wl.a)(e,r,!0),Object(Wl.a)(e,"".concat(r,"-disabled"),l),Object(Wl.a)(e,a,a),e)),j=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},k=l?{}:{onClick:y?this.onClick:function(){},onKeyDown:y?this.onKeyDown:function(){},onMouseEnter:b,onMouseLeave:w,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:E?void 0:"0"};return i.a.createElement(n,Object(Wu.a)({},k,{className:O,role:E?void 0:"button",style:s}),i.a.createElement("input",Object(Wu.a)({},Object(Lw.a)(x,{aria:!0,data:!0}),{id:u,disabled:l,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:Object(Xl.a)({display:"none"},d.input),className:c.input,accept:p},j,{multiple:h,onChange:this.onChange},null!=m?{capture:m}:{})),v)}}]),n}(o.Component);function Gw(){}var Bw=function(e){Object(rh.a)(n,e);var t=Object(ah.a)(n);function n(){var e;Object(eu.a)(this,n);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return e=t.call.apply(t,[this].concat(a)),Object(Wl.a)(Object(Ih.a)(e),"uploader",void 0),Object(Wl.a)(Object(Ih.a)(e),"saveUploader",function(t){e.uploader=t}),e}return Object(tu.a)(n,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return i.a.createElement(Rw,Object(Wu.a)({},this.props,{ref:this.saveUploader}))}}]),n}(o.Component);Object(Wl.a)(Bw,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Gw,onError:Gw,onSuccess:Gw,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Hw=Bw,zw=function(e){var t;return Object(se.a)({},e.componentCls,(t={},Object(se.a)(t,"".concat(e.antCls,"-motion-collapse-legacy"),{overflow:"hidden","&-active":{transition:"height ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut,",\n opacity ").concat(e.motionDurationMid," ").concat(e.motionEaseInOut," !important")}}),Object(se.a)(t,"".concat(e.antCls,"-motion-collapse"),{overflow:"hidden",transition:"height ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut,",\n opacity ").concat(e.motionDurationMid," ").concat(e.motionEaseInOut," !important")}),t))},Vw=function(e){var t,n=e.componentCls,r=e.iconCls;return Object(se.a)({},"".concat(n,"-wrapper"),Object(se.a)({},"".concat(n,"-drag"),(t={position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:"".concat(_u(e.lineWidth)," dashed ").concat(e.colorBorder),borderRadius:e.borderRadiusLG,cursor:"pointer",transition:"border-color ".concat(e.motionDurationSlow)},Object(se.a)(t,n,{padding:e.padding}),Object(se.a)(t,"".concat(n,"-btn"),{display:"flex",placeContent:"center",outline:"none",borderRadius:e.borderRadiusLG,"&:focus":{outline:"".concat(_u(e.lineWidthFocus)," solid ").concat(e.colorPrimaryBorder)}}),Object(se.a)(t,"".concat(n,"-drag-container"),{display:"table-cell",verticalAlign:"middle"}),Object(se.a)(t,"\n &:not(".concat(n,"-disabled):hover,\n &-hover:not(").concat(n,"-disabled)\n "),{borderColor:e.colorPrimaryHover}),Object(se.a)(t,"p".concat(n,"-drag-icon"),Object(se.a)({marginBottom:e.margin},r,{color:e.colorPrimary,fontSize:e.uploadThumbnailSize})),Object(se.a)(t,"p".concat(n,"-text"),{margin:"0 0 ".concat(_u(e.marginXXS)),color:e.colorTextHeading,fontSize:e.fontSizeLG}),Object(se.a)(t,"p".concat(n,"-hint"),{color:e.colorTextDescription,fontSize:e.fontSize}),Object(se.a)(t,"&".concat(n,"-disabled"),Object(se.a)({},"p".concat(n,"-drag-icon ").concat(r,",\n p").concat(n,"-text,\n p").concat(n,"-hint\n "),{color:e.colorTextDisabled})),t)))},qw=function(e){var t,n,r,a,o,i=e.componentCls,c=e.antCls,l=e.iconCls,u=e.fontSize,s=e.lineHeight,f=e.calc,d="".concat(i,"-list-item"),h="".concat(d,"-actions"),p="".concat(d,"-action"),m=e.fontHeightSM;return Object(se.a)({},"".concat(i,"-wrapper"),Object(se.a)({},"".concat(i,"-list"),Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),(o={lineHeight:e.lineHeight},Object(se.a)(o,d,(n={position:"relative",height:f(e.lineHeight).mul(u).equal(),marginTop:e.marginXS,fontSize:u,display:"flex",alignItems:"center",transition:"background-color ".concat(e.motionDurationSlow),"&:hover":{backgroundColor:e.controlItemBgHover}},Object(se.a)(n,"".concat(d,"-name"),Object.assign(Object.assign({},Fd),{padding:"0 ".concat(_u(e.paddingXS)),lineHeight:s,flex:"auto",transition:"all ".concat(e.motionDurationSlow)})),Object(se.a)(n,h,(t={},Object(se.a)(t,p,{opacity:0}),Object(se.a)(t,l,{color:e.actionsColor,transition:"all ".concat(e.motionDurationSlow)}),Object(se.a)(t,"\n ".concat(p,":focus-visible,\n &.picture ").concat(p,"\n "),{opacity:1}),Object(se.a)(t,"".concat(p).concat(c,"-btn"),{height:m,border:0,lineHeight:1}),t)),Object(se.a)(n,"".concat(i,"-icon ").concat(l),{color:e.colorTextDescription,fontSize:u}),Object(se.a)(n,"".concat(d,"-progress"),{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:f(u).add(e.paddingXS).equal(),fontSize:u,lineHeight:0,pointerEvents:"none","> div":{margin:0}}),n)),Object(se.a)(o,"".concat(d,":hover ").concat(p),{opacity:1}),Object(se.a)(o,"".concat(d,"-error"),(a={color:e.colorError},Object(se.a)(a,"".concat(d,"-name, ").concat(i,"-icon ").concat(l),{color:e.colorError}),Object(se.a)(a,h,(r={},Object(se.a)(r,"".concat(l,", ").concat(l,":hover"),{color:e.colorError}),Object(se.a)(r,p,{opacity:1}),r)),a)),Object(se.a)(o,"".concat(i,"-list-item-container"),{transition:"opacity ".concat(e.motionDurationSlow,", height ").concat(e.motionDurationSlow),"&::before":{display:"table",width:0,height:0,content:'""'}}),o))))},Yw=new Ks("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Ww=new Ks("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Uw=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.antCls,a="".concat(r,"-fade"),o=n?"&":"";return[Fp(a,Yw,Ww,e.motionDurationMid,n),(t={},Object(se.a)(t,"\n ".concat(o).concat(a,"-enter,\n ").concat(o).concat(a,"-appear\n "),{opacity:0,animationTimingFunction:"linear"}),Object(se.a)(t,"".concat(o).concat(a,"-leave"),{animationTimingFunction:"linear"}),t)]},Xw=new Ks("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Qw=new Ks("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),Kw=function(e){var t,n=e.componentCls,r="".concat(n,"-animate-inline");return[Object(se.a)({},"".concat(n,"-wrapper"),(t={},Object(se.a)(t,"".concat(r,"-appear, ").concat(r,"-enter, ").concat(r,"-leave"),{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"}),Object(se.a)(t,"".concat(r,"-appear, ").concat(r,"-enter"),{animationName:Xw}),Object(se.a)(t,"".concat(r,"-leave"),{animationName:Qw}),t)),Object(se.a)({},"".concat(n,"-wrapper"),Uw(e)),Xw,Qw]},Jw=function(e){var t,n,r,a,o,i=e.componentCls,c=e.iconCls,l=e.uploadThumbnailSize,u=e.uploadProgressOffset,s=e.calc,f="".concat(i,"-list"),d="".concat(f,"-item");return Object(se.a)({},"".concat(i,"-wrapper"),(o={},Object(se.a)(o,"\n ".concat(f).concat(f,"-picture,\n ").concat(f).concat(f,"-picture-card,\n ").concat(f).concat(f,"-picture-circle\n "),(a={},Object(se.a)(a,d,(n={position:"relative",height:s(l).add(s(e.lineWidth).mul(2)).add(s(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:"".concat(_u(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"}},Object(se.a)(n,"".concat(d,"-thumbnail"),Object.assign(Object.assign({},Fd),(t={width:l,height:l,lineHeight:_u(s(l).add(e.paddingSM).equal()),textAlign:"center",flex:"none"},Object(se.a)(t,c,{fontSize:e.fontSizeHeading2,color:e.colorPrimary}),Object(se.a)(t,"img",{display:"block",width:"100%",height:"100%",overflow:"hidden"}),t))),Object(se.a)(n,"".concat(d,"-progress"),{bottom:u,width:"calc(100% - ".concat(_u(s(e.paddingSM).mul(2).equal()),")"),marginTop:0,paddingInlineStart:s(l).add(e.paddingXS).equal()}),n)),Object(se.a)(a,"".concat(d,"-error"),Object(se.a)({borderColor:e.colorError},"".concat(d,"-thumbnail ").concat(c),(r={},Object(se.a)(r,"svg path[fill='".concat(bf[0],"']"),{fill:e.colorErrorBg}),Object(se.a)(r,"svg path[fill='".concat(bf.primary,"']"),{fill:e.colorError}),r))),Object(se.a)(a,"".concat(d,"-uploading"),Object(se.a)({borderStyle:"dashed"},"".concat(d,"-name"),{marginBottom:u})),a)),Object(se.a)(o,"".concat(f).concat(f,"-picture-circle ").concat(d),Object(se.a)({},"&, &::before, ".concat(d,"-thumbnail"),{borderRadius:"50%"})),o))},Zw=function(e){var t,n,r,a,o,i=e.componentCls,c=e.iconCls,l=e.fontSizeLG,u=e.colorTextLightSolid,s=e.calc,f="".concat(i,"-list"),d="".concat(f,"-item"),h=e.uploadPicCardSize;return o={},Object(se.a)(o,"\n ".concat(i,"-wrapper").concat(i,"-picture-card-wrapper,\n ").concat(i,"-wrapper").concat(i,"-picture-circle-wrapper\n "),Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),(a={display:"inline-block",width:"100%"},Object(se.a)(a,"".concat(i).concat(i,"-select"),(t={width:h,height:h,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:"".concat(_u(e.lineWidth)," dashed ").concat(e.colorBorder),borderRadius:e.borderRadiusLG,cursor:"pointer",transition:"border-color ".concat(e.motionDurationSlow)},Object(se.a)(t,"> ".concat(i),{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"}),Object(se.a)(t,"&:not(".concat(i,"-disabled):hover"),{borderColor:e.colorPrimary}),t)),Object(se.a)(a,"".concat(f).concat(f,"-picture-card, ").concat(f).concat(f,"-picture-circle"),(r={},Object(se.a)(r,"".concat(f,"-item-container"),{display:"inline-block",width:h,height:h,marginBlock:"0 ".concat(_u(e.marginXS)),marginInline:"0 ".concat(_u(e.marginXS)),verticalAlign:"top"}),Object(se.a)(r,"&::after",{display:"none"}),Object(se.a)(r,d,{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:"calc(100% - ".concat(_u(s(e.paddingXS).mul(2).equal()),")"),height:"calc(100% - ".concat(_u(s(e.paddingXS).mul(2).equal()),")"),backgroundColor:e.colorBgMask,opacity:0,transition:"all ".concat(e.motionDurationSlow),content:'" "'}}),Object(se.a)(r,"".concat(d,":hover"),Object(se.a)({},"&::before, ".concat(d,"-actions"),{opacity:1})),Object(se.a)(r,"".concat(d,"-actions"),Object(se.a)({position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:"all ".concat(e.motionDurationSlow)},"\n ".concat(c,"-eye,\n ").concat(c,"-download,\n ").concat(c,"-delete\n "),{zIndex:10,width:l,margin:"0 ".concat(_u(e.marginXXS)),fontSize:l,cursor:"pointer",transition:"all ".concat(e.motionDurationSlow),color:u,"&:hover":{color:u},svg:{verticalAlign:"baseline"}})),Object(se.a)(r,"".concat(d,"-thumbnail, ").concat(d,"-thumbnail img"),{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"}),Object(se.a)(r,"".concat(d,"-name"),{display:"none",textAlign:"center"}),Object(se.a)(r,"".concat(d,"-file + ").concat(d,"-name"),{position:"absolute",bottom:e.margin,display:"block",width:"calc(100% - ".concat(_u(s(e.paddingXS).mul(2).equal()),")")}),Object(se.a)(r,"".concat(d,"-uploading"),(n={},Object(se.a)(n,"&".concat(d),{backgroundColor:e.colorFillAlter}),Object(se.a)(n,"&::before, ".concat(c,"-eye, ").concat(c,"-download, ").concat(c,"-delete"),{display:"none"}),n)),Object(se.a)(r,"".concat(d,"-progress"),{bottom:e.marginXL,width:"calc(100% - ".concat(_u(s(e.paddingXS).mul(2).equal()),")"),paddingInlineStart:0}),r)),a))),Object(se.a)(o,"".concat(i,"-wrapper").concat(i,"-picture-circle-wrapper"),Object(se.a)({},"".concat(i).concat(i,"-select"),{borderRadius:"50%"})),o},$w=function(e){var t=e.componentCls;return Object(se.a)({},"".concat(t,"-rtl"),{direction:"rtl"})},eE=function(e){var t,n=e.componentCls,r=e.colorTextDisabled;return Object(se.a)({},"".concat(n,"-wrapper"),Object.assign(Object.assign({},Dd(e)),(t={},Object(se.a)(t,n,{outline:0,"input[type='file']":{cursor:"pointer"}}),Object(se.a)(t,"".concat(n,"-select"),{display:"inline-block"}),Object(se.a)(t,"".concat(n,"-disabled"),{color:r,cursor:"not-allowed"}),t)))},tE=Eh("Upload",function(e){var t=e.fontSizeHeading3,n=e.fontHeight,r=e.lineWidth,a=e.controlHeightLG,o=e.calc,i=hh(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(a).mul(2.55).equal()});return[eE(i),Vw(i),Jw(i),Zw(i),qw(i),Kw(i),$w(i),zw(i)]},function(e){return{actionsColor:e.colorTextDescription}}),nE={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};var rE=o.forwardRef(function(e,t){return o.createElement(Sm,Object(Wu.a)({},e,{ref:t,icon:nE}))}),aE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};var oE=o.forwardRef(function(e,t){return o.createElement(Sm,Object(Wu.a)({},e,{ref:t,icon:aE}))}),iE={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};var cE=o.forwardRef(function(e,t){return o.createElement(Sm,Object(Wu.a)({},e,{ref:t,icon:iE}))});function lE(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function uE(e,t){var n=Object(Ul.a)(t),r=n.findIndex(function(t){return t.uid===e.uid});return-1===r?n.push(e):n[r]=e,n}function sE(e,t){var n=void 0!==e.uid?"uid":"name";return t.filter(function(t){return t[n]===e[n]})[0]}var fE=function(e){return 0===e.indexOf("image/")},dE=function(e){if(e.type&&!e.thumbUrl)return fE(e.type);var t=e.thumbUrl||e.url||"",n=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},hE=200;function pE(e){return new Promise(function(t){if(e.type&&fE(e.type)){var n=document.createElement("canvas");n.width=hE,n.height=hE,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(hE,"px; height: ").concat(hE,"px; z-index: 9999; display: none;"),document.body.appendChild(n);var r=n.getContext("2d"),a=new Image;if(a.onload=function(){var e=a.width,o=a.height,i=hE,c=hE,l=0,u=0;e>o?u=-((c=o*(hE/e))-i)/2:l=-((i=e*(hE/o))-c)/2,r.drawImage(a,l,u,i,c);var s=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(s)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){var o=new FileReader;o.onload=function(){o.result&&(a.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){var i=new FileReader;i.onload=function(){i.result&&t(i.result)},i.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)}else t("")})}var mE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var vE=o.forwardRef(function(e,t){return o.createElement(Sm,Object(Wu.a)({},e,{ref:t,icon:mE}))}),gE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var yE=o.forwardRef(function(e,t){return o.createElement(Sm,Object(Wu.a)({},e,{ref:t,icon:gE}))}),bE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var wE=o.forwardRef(function(e,t){return o.createElement(Sm,Object(Wu.a)({},e,{ref:t,icon:bE}))}),EE={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},xE=function(){var e=Object(o.useRef)([]),t=Object(o.useRef)(null);return Object(o.useEffect)(function(){var n=Date.now(),r=!1;e.current.forEach(function(e){if(e){r=!0;var a=e.style;a.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(a.transitionDuration="0s, 0s")}}),r&&(t.current=Date.now())}),e.current};var OE=0,jE=Object(su.a)();var kE=function(e){var t=o.useState(),n=Object(Yl.a)(t,2),r=n[0],a=n[1];return o.useEffect(function(){a("rc_progress_".concat(function(){var e;return jE?(e=OE,OE+=1):e="TEST_OR_SSR",e}()))},[]),e||r},SE=function(e){var t=e.bg,n=e.children;return o.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function _E(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),a="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(a)})}var CE=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,a=e.gradientId,i=e.radius,c=e.style,l=e.ptg,u=e.strokeLinecap,s=e.strokeWidth,f=e.size,d=e.gapDegree,h=r&&"object"===Object(uu.a)(r),p=h?"#FFF":void 0,m=f/2,v=o.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:m,cy:m,stroke:p,strokeLinecap:u,strokeWidth:s,opacity:0===l?0:1,style:c,ref:t});if(!h)return v;var g="".concat(a,"-conic"),y=d?"".concat(180+d/2,"deg"):"0deg",b=_E(r,(360-d)/360),w=_E(r,1),E="conic-gradient(from ".concat(y,", ").concat(b.join(", "),")"),x="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(w.join(", "),")");return o.createElement(o.Fragment,null,o.createElement("mask",{id:g},v),o.createElement("foreignObject",{x:0,y:0,width:f,height:f,mask:"url(#".concat(g,")")},o.createElement(SE,{bg:x},o.createElement(SE,{bg:E}))))}),LE=function(e,t,n,r,a,o,i,c,l,u){var s=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,f=n/100*360*((360-o)/360),d=0===o?0:{bottom:0,top:180,left:90,right:-90}[i],h=(100-r)/100*t;"round"===l&&100!==r&&(h+=u/2)>=t&&(h=t-.01);return{stroke:"string"===typeof c?c:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:h+s,transform:"rotate(".concat(a+f+d,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},AE=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function PE(e){var t=null!==e&&void 0!==e?e:[];return Array.isArray(t)?t:[t]}var ME=function(e){var t=Object(Xl.a)(Object(Xl.a)({},EE),e),n=t.id,r=t.prefixCls,a=t.steps,i=t.strokeWidth,c=t.trailWidth,l=t.gapDegree,u=void 0===l?0:l,s=t.gapPosition,f=t.trailColor,d=t.strokeLinecap,h=t.style,p=t.className,m=t.strokeColor,v=t.percent,g=Object(Jl.a)(t,AE),y=kE(n),b="".concat(y,"-gradient"),w=50-i/2,E=2*Math.PI*w,x=u>0?90+u/2:-90,O=E*((360-u)/360),j="object"===Object(uu.a)(a)?a:{count:a,space:2},k=j.count,S=j.space,_=PE(v),C=PE(m),L=C.find(function(e){return e&&"object"===Object(uu.a)(e)}),A=L&&"object"===Object(uu.a)(L)?"butt":d,P=LE(E,O,0,100,x,u,s,f,A,i),M=xE();return o.createElement("svg",Object(Wu.a)({className:pe()("".concat(r,"-circle"),p),viewBox:"0 0 ".concat(100," ").concat(100),style:h,id:n,role:"presentation"},g),!k&&o.createElement("circle",{className:"".concat(r,"-circle-trail"),r:w,cx:50,cy:50,stroke:f,strokeLinecap:A,strokeWidth:c||i,style:P}),k?function(){var e=Math.round(k*(_[0]/100)),t=100/k,n=0;return new Array(k).fill(null).map(function(a,c){var l=c<=e-1?C[0]:f,d=l&&"object"===Object(uu.a)(l)?"url(#".concat(b,")"):void 0,h=LE(E,O,n,t,x,u,s,l,"butt",i,S);return n+=100*(O-h.strokeDashoffset+S)/O,o.createElement("circle",{key:c,className:"".concat(r,"-circle-path"),r:w,cx:50,cy:50,stroke:d,strokeWidth:i,opacity:1,style:h,ref:function(e){M[c]=e}})})}():function(){var e=0;return _.map(function(t,n){var a=C[n]||C[C.length-1],c=LE(E,O,e,t,x,u,s,a,A,i);return e+=t,o.createElement(CE,{key:n,color:a,ptg:t,radius:w,prefixCls:r,gradientId:b,style:c,strokeLinecap:A,strokeWidth:i,gapDegree:u,ref:function(e){M[n]=e},size:100})}).reverse()}())},NE=n(1401),TE=n.n(NE);function IE(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,i=e.className,c=e.style;return o.createElement("div",{className:TE()("".concat(n,"-content"),i),style:c},o.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:a},"function"===typeof t?t():t))}var FE=n(1337),DE={shiftX:64,adjustY:1},RE={adjustX:1,shiftY:!0},GE=[0,0],BE={left:{points:["cr","cl"],overflow:RE,offset:[-4,0],targetOffset:GE},right:{points:["cl","cr"],overflow:RE,offset:[4,0],targetOffset:GE},top:{points:["bc","tc"],overflow:DE,offset:[0,-4],targetOffset:GE},bottom:{points:["tc","bc"],overflow:DE,offset:[0,4],targetOffset:GE},topLeft:{points:["bl","tl"],overflow:DE,offset:[0,-4],targetOffset:GE},leftTop:{points:["tr","tl"],overflow:RE,offset:[-4,0],targetOffset:GE},topRight:{points:["br","tr"],overflow:DE,offset:[0,-4],targetOffset:GE},rightTop:{points:["tl","tr"],overflow:RE,offset:[4,0],targetOffset:GE},bottomRight:{points:["tr","br"],overflow:DE,offset:[0,4],targetOffset:GE},rightBottom:{points:["bl","br"],overflow:RE,offset:[4,0],targetOffset:GE},bottomLeft:{points:["tl","bl"],overflow:DE,offset:[0,4],targetOffset:GE},leftBottom:{points:["br","bl"],overflow:RE,offset:[-4,0],targetOffset:GE}},HE=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],zE=Object(o.forwardRef)(function(e,t){var n=e.overlayClassName,r=e.trigger,a=void 0===r?["hover"]:r,i=e.mouseEnterDelay,c=void 0===i?0:i,l=e.mouseLeaveDelay,u=void 0===l?.1:l,s=e.overlayStyle,f=e.prefixCls,d=void 0===f?"rc-tooltip":f,h=e.children,p=e.onVisibleChange,m=e.afterVisibleChange,v=e.transitionName,g=e.animation,y=e.motion,b=e.placement,w=void 0===b?"right":b,E=e.align,x=void 0===E?{}:E,O=e.destroyTooltipOnHide,j=void 0!==O&&O,k=e.defaultVisible,S=e.getTooltipContainer,_=e.overlayInnerStyle,C=(e.arrowContent,e.overlay),L=e.id,A=e.showArrow,P=void 0===A||A,M=Object(Jl.a)(e,HE),N=Object(o.useRef)(null);Object(o.useImperativeHandle)(t,function(){return N.current});var T=Object(Xl.a)({},M);"visible"in e&&(T.popupVisible=e.visible);return o.createElement(FE.a,Object(Wu.a)({popupClassName:n,prefixCls:d,popup:function(){return o.createElement(IE,{key:"content",prefixCls:d,id:L,overlayInnerStyle:_},C)},action:a,builtinPlacements:BE,popupPlacement:w,ref:N,popupAlign:x,getPopupContainer:S,onPopupVisibleChange:p,afterPopupVisibleChange:m,popupTransitionName:v,popupAnimation:g,popupMotion:y,defaultPopupVisible:k,autoDestroy:j,mouseLeaveDelay:u,popupStyle:s,mouseEnterDelay:c,arrow:P},T),h)});var VE=function(e,t,n){var r=e.sizePopupArrow,a=e.arrowPolygon,o=e.arrowPath,i=e.arrowShadowWidth,c=e.borderRadiusXS;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:(0,e.calc)(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:"0 0 ".concat(_u(c)," 0")},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},qE=8;function YE(e){var t=e.contentRadius,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:e.limitVerticalRadius?qE:n}}function WE(e,t){return e?t:{}}function UE(e,t,n){var r,a,o,i,c=e.componentCls,l=e.boxShadowPopoverArrow,u=e.arrowOffsetVertical,s=e.arrowOffsetHorizontal,f=n||{},d=f.arrowDistance,h=void 0===d?0:d,p=f.arrowPlacement,m=void 0===p?{left:!0,right:!0,top:!0,bottom:!0}:p;return Object(se.a)({},c,Object.assign(Object.assign(Object.assign(Object.assign(Object(se.a)({},"".concat(c,"-arrow"),[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},VE(e,t,l)),{"&:before":{background:t}})]),WE(!!m.top,(r={},Object(se.a)(r,["&-placement-top > ".concat(c,"-arrow"),"&-placement-topLeft > ".concat(c,"-arrow"),"&-placement-topRight > ".concat(c,"-arrow")].join(","),{bottom:h,transform:"translateY(100%) rotate(180deg)"}),Object(se.a)(r,"&-placement-top > ".concat(c,"-arrow"),{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"}),Object(se.a)(r,"&-placement-topLeft > ".concat(c,"-arrow"),{left:{_skip_check_:!0,value:s}}),Object(se.a)(r,"&-placement-topRight > ".concat(c,"-arrow"),{right:{_skip_check_:!0,value:s}}),r))),WE(!!m.bottom,(a={},Object(se.a)(a,["&-placement-bottom > ".concat(c,"-arrow"),"&-placement-bottomLeft > ".concat(c,"-arrow"),"&-placement-bottomRight > ".concat(c,"-arrow")].join(","),{top:h,transform:"translateY(-100%)"}),Object(se.a)(a,"&-placement-bottom > ".concat(c,"-arrow"),{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"}),Object(se.a)(a,"&-placement-bottomLeft > ".concat(c,"-arrow"),{left:{_skip_check_:!0,value:s}}),Object(se.a)(a,"&-placement-bottomRight > ".concat(c,"-arrow"),{right:{_skip_check_:!0,value:s}}),a))),WE(!!m.left,(o={},Object(se.a)(o,["&-placement-left > ".concat(c,"-arrow"),"&-placement-leftTop > ".concat(c,"-arrow"),"&-placement-leftBottom > ".concat(c,"-arrow")].join(","),{right:{_skip_check_:!0,value:h},transform:"translateX(100%) rotate(90deg)"}),Object(se.a)(o,"&-placement-left > ".concat(c,"-arrow"),{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"}),Object(se.a)(o,"&-placement-leftTop > ".concat(c,"-arrow"),{top:u}),Object(se.a)(o,"&-placement-leftBottom > ".concat(c,"-arrow"),{bottom:u}),o))),WE(!!m.right,(i={},Object(se.a)(i,["&-placement-right > ".concat(c,"-arrow"),"&-placement-rightTop > ".concat(c,"-arrow"),"&-placement-rightBottom > ".concat(c,"-arrow")].join(","),{left:{_skip_check_:!0,value:h},transform:"translateX(-100%) rotate(-90deg)"}),Object(se.a)(i,"&-placement-right > ".concat(c,"-arrow"),{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"}),Object(se.a)(i,"&-placement-rightTop > ".concat(c,"-arrow"),{top:u}),Object(se.a)(i,"&-placement-rightBottom > ".concat(c,"-arrow"),{bottom:u}),i))))}var XE={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},QE={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},KE=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function JE(e){var t=e.arrowWidth,n=e.autoAdjustOverflow,r=e.arrowPointAtCenter,a=e.offset,o=e.borderRadius,i=e.visibleFirst,c=t/2,l={};return Object.keys(XE).forEach(function(e){var u=r&&QE[e]||XE[e],s=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[e]=s,KE.has(e)&&(s.autoArrow=!1),e){case"top":case"topLeft":case"topRight":s.offset[1]=-c-a;break;case"bottom":case"bottomLeft":case"bottomRight":s.offset[1]=c+a;break;case"left":case"leftTop":case"leftBottom":s.offset[0]=-c-a;break;case"right":case"rightTop":case"rightBottom":s.offset[0]=c+a}var f=YE({contentRadius:o,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":s.offset[0]=-f.arrowOffsetHorizontal-c;break;case"topRight":case"bottomRight":s.offset[0]=f.arrowOffsetHorizontal+c;break;case"leftTop":case"rightTop":s.offset[1]=-f.arrowOffsetHorizontal-c;break;case"leftBottom":case"rightBottom":s.offset[1]=f.arrowOffsetHorizontal+c}s.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};var a=r&&"object"===typeof r?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+n,o.shiftX=!0,o.adjustX=!0}var i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(e,f,t,n),i&&(s.htmlRegion="visibleFirst")}),l}var ZE=new Ks("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),$E=new Ks("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ex=new Ks("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),tx=new Ks("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),nx=new Ks("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),rx=new Ks("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ax={zoom:{inKeyframes:ZE,outKeyframes:$E},"zoom-big":{inKeyframes:ex,outKeyframes:tx},"zoom-big-fast":{inKeyframes:ex,outKeyframes:tx},"zoom-left":{inKeyframes:new Ks("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Ks("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Ks("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Ks("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:nx,outKeyframes:rx},"zoom-down":{inKeyframes:new Ks("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Ks("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},ox=function(e,t){var n,r=e.antCls,a="".concat(r,"-").concat(t),o=ax[t],i=o.inKeyframes,c=o.outKeyframes;return[Fp(a,i,c,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),(n={},Object(se.a)(n,"\n ".concat(a,"-enter,\n ").concat(a,"-appear\n "),{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}}),Object(se.a)(n,"".concat(a,"-leave"),{animationTimingFunction:e.motionEaseInOutCirc}),n)]},ix=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function cx(e,t){return ix.reduce(function(n,r){var a=e["".concat(r,"1")],o=e["".concat(r,"3")],i=e["".concat(r,"6")],c=e["".concat(r,"7")];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:c}))},{})}var lx=function(e){var t,n=e.componentCls,r=e.tooltipMaxWidth,a=e.tooltipColor,o=e.tooltipBg,i=e.tooltipBorderRadius,c=e.zIndexPopup,l=e.controlHeight,u=e.boxShadowSecondary,s=e.paddingSM,f=e.paddingXS;return[Object(se.a)({},n,Object.assign(Object.assign(Object.assign(Object.assign({},Dd(e)),(t={position:"absolute",zIndex:c,display:"block",width:"max-content",maxWidth:r,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o},Object(se.a)(t,"".concat(n,"-inner"),{minWidth:l,minHeight:l,padding:"".concat(_u(e.calc(s).div(2).equal())," ").concat(_u(f)),color:a,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:u,boxSizing:"border-box"}),Object(se.a)(t,["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(","),Object(se.a)({},"".concat(n,"-inner"),{borderRadius:e.min(i,qE)})),Object(se.a)(t,"".concat(n,"-content"),{position:"relative"}),t)),cx(e,function(e,t){var r,a=t.darkColor;return Object(se.a)({},"&".concat(n,"-").concat(e),(r={},Object(se.a)(r,"".concat(n,"-inner"),{backgroundColor:a}),Object(se.a)(r,"".concat(n,"-arrow"),{"--antd-arrow-background-color":a}),r))})),{"&-rtl":{direction:"rtl"}})),UE(e,"var(--antd-arrow-background-color)"),Object(se.a)({},"".concat(n,"-pure"),{position:"relative",maxWidth:"none",margin:e.sizePopupArrow})]},ux=function(e){return Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},YE({contentRadius:e.borderRadius,limitVerticalRadius:!0})),function(e){var t=e.sizePopupArrow,n=e.borderRadiusXS,r=e.borderRadiusOuter,a=t/2,o=a,i=1*r/Math.sqrt(2),c=a-r*(1-1/Math.sqrt(2)),l=a-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),s=2*a-l,f=u,d=2*a-i,h=c,p=2*a-0,m=o,v=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),g=r*(Math.sqrt(2)-1),y="polygon(".concat(g,"px 100%, 50% ").concat(g,"px, ").concat(2*a-g,"px 100%, ").concat(g,"px 100%)");return{arrowShadowWidth:v,arrowPath:"path('M ".concat(0," ").concat(o," A ").concat(r," ").concat(r," 0 0 0 ").concat(i," ").concat(c," L ").concat(l," ").concat(u," A ").concat(n," ").concat(n," 0 0 1 ").concat(s," ").concat(f," L ").concat(d," ").concat(h," A ").concat(r," ").concat(r," 0 0 0 ").concat(p," ").concat(m," Z')"),arrowPolygon:y}}(hh(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})))},sx=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Eh("Tooltip",function(e){var t=e.borderRadius,n=hh(e,{tooltipMaxWidth:250,tooltipColor:e.colorTextLightSolid,tooltipBorderRadius:t,tooltipBg:e.colorBgSpotlight});return[lx(n),ox(e,"zoom-big-fast")]},ux,{resetStyle:!1,injectStyle:t})(e)},fx=ix.map(function(e){return"".concat(e,"-inverse")});function dx(e,t){var n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?ix.includes(e):[].concat(Object(Ul.a)(fx),Object(Ul.a)(ix)).includes(e)}(t),r=zl()(Object(se.a)({},"".concat(e,"-").concat(t),t&&n)),a={},o={};return t&&!n&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:o}}var hx=function(e){var t=e.prefixCls,n=e.className,r=e.placement,i=void 0===r?"top":r,c=e.title,l=e.color,u=e.overlayInnerStyle,s=(0,o.useContext(yd).getPrefixCls)("tooltip",t),f=sx(s),d=Object(a.a)(f,3),h=d[0],p=d[1],m=d[2],v=dx(s,l),g=v.arrowStyle,y=Object.assign(Object.assign({},u),v.overlayStyle),b=zl()(p,m,s,"".concat(s,"-pure"),"".concat(s,"-placement-").concat(i),n,v.className);return h(o.createElement("div",{className:b,style:g},o.createElement("div",{className:"".concat(s,"-arrow")}),o.createElement(IE,Object.assign({},e,{className:p,prefixCls:s,overlayInnerStyle:y}),c)))},px=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},mx=o.forwardRef(function(e,t){var n,r,i=e.prefixCls,c=e.openClassName,l=e.getTooltipContainer,u=e.overlayClassName,s=e.color,f=e.overlayInnerStyle,d=e.children,h=e.afterOpenChange,p=e.afterVisibleChange,m=e.destroyTooltipOnHide,v=e.arrow,g=void 0===v||v,y=e.title,b=e.overlay,w=e.builtinPlacements,E=e.arrowPointAtCenter,x=void 0!==E&&E,O=e.autoAdjustOverflow,j=void 0===O||O,k=!!g,S=zf(),_=Object(a.a)(S,2)[1],C=o.useContext(yd),L=C.getPopupContainer,A=C.getPrefixCls,P=C.direction,M=od("Tooltip"),N=o.useRef(null),T=function(){var e;null===(e=N.current)||void 0===e||e.forceAlign()};o.useImperativeHandle(t,function(){return{forceAlign:T,forcePopupAlign:function(){M.deprecated(!1,"forcePopupAlign","forceAlign"),T()}}});var I=Object(ed.a)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),F=Object(a.a)(I,2),D=F[0],R=F[1],G=!y&&!b&&0!==y,B=o.useMemo(function(){var e,t,n=x;return"object"===typeof g&&(n=null!==(t=null!==(e=g.pointAtCenter)&&void 0!==e?e:g.arrowPointAtCenter)&&void 0!==t?t:x),w||JE({arrowPointAtCenter:n,autoAdjustOverflow:j,arrowWidth:k?_.sizePopupArrow:0,borderRadius:_.borderRadius,offset:_.marginXXS,visibleFirst:!0})},[x,g,w,_]),H=o.useMemo(function(){return 0===y?y:b||y||""},[b,y]),z=o.createElement(Mp,null,"function"===typeof H?H():H),V=e.getPopupContainer,q=e.placement,Y=void 0===q?"top":q,W=e.mouseEnterDelay,U=void 0===W?.1:W,X=e.mouseLeaveDelay,Q=void 0===X?.1:X,K=e.overlayStyle,J=e.rootClassName,Z=px(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),$=A("tooltip",i),ee=A(),te=e["data-popover-inject"],ne=D;"open"in e||"visible"in e||!G||(ne=!1);var re=Pb(d)&&!Mb(d)?d:o.createElement("span",null,d),ae=re.props,oe=ae.className&&"string"!==typeof ae.className?ae.className:zl()(ae.className,c||"".concat($,"-open")),ie=sx($,!te),ce=Object(a.a)(ie,3),le=ce[0],ue=ce[1],fe=ce[2],de=dx($,s),he=de.arrowStyle,pe=Object.assign(Object.assign({},f),de.overlayStyle),me=zl()(u,Object(se.a)({},"".concat($,"-rtl"),"rtl"===P),de.className,J,ue,fe),ve=Uf("Tooltip",Z.zIndex),ge=Object(a.a)(ve,2),ye=ge[0],be=ge[1],we=o.createElement(zE,Object.assign({},Z,{zIndex:ye,showArrow:k,placement:Y,mouseEnterDelay:U,mouseLeaveDelay:Q,prefixCls:$,overlayClassName:me,overlayStyle:Object.assign(Object.assign({},he),K),getTooltipContainer:V||l||L,ref:N,builtinPlacements:B,overlay:z,visible:ne,onVisibleChange:function(t){var n,r;R(!G&&t),G||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!==h&&void 0!==h?h:p,overlayInnerStyle:pe,arrowContent:o.createElement("span",{className:"".concat($,"-arrow-content")}),motion:{motionName:Zf(ee,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),ne?Nb(re,{className:oe}):re);return le(o.createElement(Vf.Provider,{value:be},we))});mx._InternalPanelDoNotUseOrYouWillBeFired=hx;var vx=mx;function gx(e){return!e||e<0?0:e>100?100:e}function yx(e){var t=e.success,n=e.successPercent;return t&&"progress"in t&&(n=t.progress),t&&"percent"in t&&(n=t.percent),n}var bx=function(e){var t=e.percent,n=gx(yx({success:e.success,successPercent:e.successPercent}));return[n,gx(gx(t)-n)]},wx=function(e,t,n){var r,o,i,c,l=-1,u=-1;if("step"===t){var s=n.steps,f=n.strokeWidth;if("string"===typeof e||"undefined"===typeof e)l="small"===e?2:14,u=null!==f&&void 0!==f?f:8;else if("number"===typeof e)l=e,u=e;else{var d=Object(a.a)(e,2),h=d[0];l=void 0===h?14:h;var p=d[1];u=void 0===p?8:p}l*=s}else if("line"===t){var m=null===n||void 0===n?void 0:n.strokeWidth;if("string"===typeof e||"undefined"===typeof e)u=m||("small"===e?6:8);else if("number"===typeof e)l=e,u=e;else{var v=Object(a.a)(e,2),g=v[0];l=void 0===g?-1:g;var y=v[1];u=void 0===y?8:y}}else if("circle"===t||"dashboard"===t)if("string"===typeof e||"undefined"===typeof e){var b="small"===e?[60,60]:[120,120],w=Object(a.a)(b,2);l=w[0],u=w[1]}else"number"===typeof e?(l=e,u=e):(l=null!==(o=null!==(r=e[0])&&void 0!==r?r:e[1])&&void 0!==o?o:120,u=null!==(c=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==c?c:120);return[l,u]},Ex=function(e){var t=e.prefixCls,n=e.trailColor,r=void 0===n?null:n,i=e.strokeLinecap,c=void 0===i?"round":i,l=e.gapPosition,u=e.gapDegree,s=e.width,f=void 0===s?120:s,d=e.type,h=e.children,p=e.success,m=e.size,v=wx(void 0===m?f:m,"circle"),g=Object(a.a)(v,2),y=g[0],b=g[1],w=e.strokeWidth;void 0===w&&(w=Math.max(function(e){return 3/e*100}(y),6));var E={width:y,height:b,fontSize:.15*y+6},x=o.useMemo(function(){return u||0===u?u:"dashboard"===d?75:void 0},[u,d]),O=l||"dashboard"===d&&"bottom"||void 0,j="[object Object]"===Object.prototype.toString.call(e.strokeColor),k=function(e){var t=e.success,n=void 0===t?{}:t,r=e.strokeColor;return[n.strokeColor||vf.green,r||null]}({success:p,strokeColor:e.strokeColor}),S=zl()("".concat(t,"-inner"),Object(se.a)({},"".concat(t,"-circle-gradient"),j)),_=o.createElement(ME,{percent:bx(e),strokeWidth:w,trailWidth:w,strokeColor:k,strokeLinecap:c,trailColor:r,prefixCls:t,gapDegree:x,gapPosition:O});return o.createElement("div",{className:S,style:E},y<=20?o.createElement(vx,{title:h},o.createElement("span",null,_)):o.createElement(o.Fragment,null,_,h))},xx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},Ox=function(e,t){var n=e.from,r=void 0===n?vf.blue:n,a=e.to,o=void 0===a?vf.blue:a,i=e.direction,c=void 0===i?"rtl"===t?"to left":"to right":i,l=xx(e,["from","to","direction"]);if(0!==Object.keys(l).length){var u=function(e){var t=[];return Object.keys(e).forEach(function(n){var r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),(t=t.sort(function(e,t){return e.key-t.key})).map(function(e){var t=e.key,n=e.value;return"".concat(n," ").concat(t,"%")}).join(", ")}(l);return{backgroundImage:"linear-gradient(".concat(c,", ").concat(u,")")}}return{backgroundImage:"linear-gradient(".concat(c,", ").concat(r,", ").concat(o,")")}},jx=function(e){var t=e.prefixCls,n=e.direction,r=e.percent,i=e.size,c=e.strokeWidth,l=e.strokeColor,u=e.strokeLinecap,s=void 0===u?"round":u,f=e.children,d=e.trailColor,h=void 0===d?null:d,p=e.success,m=Object(o.useContext)(yd).direction,v=l&&"string"!==typeof l?Ox(l,n):{backgroundColor:l},g="square"===s||"butt"===s?0:void 0,y={backgroundColor:h||void 0,borderRadius:g},b=wx(null!==i&&void 0!==i?i:[-1,c||("small"===i?6:8)],"line",{strokeWidth:c}),w=Object(a.a)(b,2),E=w[0],x=w[1],O="square"===s||"butt"===s?0:"100px",j=Object.assign({width:"100%",height:x,borderRadius:g,clipPath:"rtl"===m?"inset(0 0 0 ".concat(100-gx(r),"% round ").concat(O,")"):"inset(0 ".concat(100-gx(r),"% 0 0 round ").concat(O,")")},v),k=yx(e),S={width:"100%",height:x,borderRadius:g,clipPath:"rtl"===m?"inset(0 0 0 ".concat(100-gx(k),"% round ").concat(O,")"):"inset(0 ".concat(100-gx(k),"% 0 0 round ").concat(O,")"),backgroundColor:null===p||void 0===p?void 0:p.strokeColor},_={width:E<0?"100%":E,height:x};return o.createElement(o.Fragment,null,o.createElement("div",{className:"".concat(t,"-outer"),style:_},o.createElement("div",{className:"".concat(t,"-inner"),style:y},o.createElement("div",{className:"".concat(t,"-bg"),style:j}),void 0!==k?o.createElement("div",{className:"".concat(t,"-success-bg"),style:S}):null)),f)},kx=function(e){for(var t=e.size,n=e.steps,r=e.percent,i=void 0===r?0:r,c=e.strokeWidth,l=void 0===c?8:c,u=e.strokeColor,s=e.trailColor,f=void 0===s?null:s,d=e.prefixCls,h=e.children,p=Math.round(n*(i/100)),m=wx(null!==t&&void 0!==t?t:["small"===t?2:14,l],"step",{steps:n,strokeWidth:l}),v=Object(a.a)(m,2),g=v[0],y=v[1],b=g/n,w=new Array(n),E=0;E<n;E++){var x=Array.isArray(u)?u[E]:u;w[E]=o.createElement("div",{key:E,className:zl()("".concat(d,"-steps-item"),Object(se.a)({},"".concat(d,"-steps-item-active"),E<=p-1)),style:{backgroundColor:E<=p-1?x:f,width:b,height:y}})}return o.createElement("div",{className:"".concat(d,"-steps-outer")},w,h)},Sx=function(e){var t=e?"100%":"-100%";return new Ks("antProgress".concat(e?"RTL":"LTR","Active"),{"0%":{transform:"translateX(".concat(t,") scaleX(0)"),opacity:.1},"20%":{transform:"translateX(".concat(t,") scaleX(0)"),opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},_x=function(e){var t,n,r,a=e.componentCls,o=e.iconCls;return Object(se.a)({},a,Object.assign(Object.assign({},Dd(e)),(r={display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS}},Object(se.a)(r,"".concat(a,"-outer"),{display:"inline-block",width:"100%"}),Object(se.a)(r,"&".concat(a,"-show-info"),Object(se.a)({},"".concat(a,"-outer"),{marginInlineEnd:"calc(-2em - ".concat(_u(e.marginXS),")"),paddingInlineEnd:"calc(2em + ".concat(_u(e.paddingXS),")")})),Object(se.a)(r,"".concat(a,"-inner"),{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius}),Object(se.a)(r,"".concat(a,"-inner:not(").concat(a,"-circle-gradient)"),Object(se.a)({},"".concat(a,"-circle-path"),{stroke:e.defaultColor})),Object(se.a)(r,"".concat(a,"-success-bg, ").concat(a,"-bg"),{position:"relative",backgroundColor:e.defaultColor,borderRadius:e.lineBorderRadius,transition:"all ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOutCirc)}),Object(se.a)(r,"".concat(a,"-success-bg"),{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess}),Object(se.a)(r,"".concat(a,"-text"),Object(se.a)({display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal"},o,{fontSize:e.fontSize})),Object(se.a)(r,"&".concat(a,"-status-active"),Object(se.a)({},"".concat(a,"-bg::before"),{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:Sx(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'})),Object(se.a)(r,"&".concat(a,"-rtl").concat(a,"-status-active"),Object(se.a)({},"".concat(a,"-bg::before"),{animationName:Sx(!0)})),Object(se.a)(r,"&".concat(a,"-status-exception"),(t={},Object(se.a)(t,"".concat(a,"-bg"),{backgroundColor:e.colorError}),Object(se.a)(t,"".concat(a,"-text"),{color:e.colorError}),t)),Object(se.a)(r,"&".concat(a,"-status-exception ").concat(a,"-inner:not(").concat(a,"-circle-gradient)"),Object(se.a)({},"".concat(a,"-circle-path"),{stroke:e.colorError})),Object(se.a)(r,"&".concat(a,"-status-success"),(n={},Object(se.a)(n,"".concat(a,"-bg"),{backgroundColor:e.colorSuccess}),Object(se.a)(n,"".concat(a,"-text"),{color:e.colorSuccess}),n)),Object(se.a)(r,"&".concat(a,"-status-success ").concat(a,"-inner:not(").concat(a,"-circle-gradient)"),Object(se.a)({},"".concat(a,"-circle-path"),{stroke:e.colorSuccess})),r)))},Cx=function(e){var t,n,r=e.componentCls,a=e.iconCls;return n={},Object(se.a)(n,r,(t={},Object(se.a)(t,"".concat(r,"-circle-trail"),{stroke:e.remainingColor}),Object(se.a)(t,"&".concat(r,"-circle ").concat(r,"-inner"),{position:"relative",lineHeight:1,backgroundColor:"transparent"}),Object(se.a)(t,"&".concat(r,"-circle ").concat(r,"-text"),Object(se.a)({position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)"},a,{fontSize:e.circleIconFontSize})),Object(se.a)(t,"".concat(r,"-circle&-status-exception"),Object(se.a)({},"".concat(r,"-text"),{color:e.colorError})),Object(se.a)(t,"".concat(r,"-circle&-status-success"),Object(se.a)({},"".concat(r,"-text"),{color:e.colorSuccess})),t)),Object(se.a)(n,"".concat(r,"-inline-circle"),Object(se.a)({lineHeight:1},"".concat(r,"-inner"),{verticalAlign:"bottom"})),n},Lx=function(e){var t=e.componentCls;return Object(se.a)({},t,Object(se.a)({},"".concat(t,"-steps"),{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:"all ".concat(e.motionDurationSlow),"&-active":{backgroundColor:e.defaultColor}}}))},Ax=function(e){var t=e.componentCls,n=e.iconCls;return Object(se.a)({},t,Object(se.a)({},"".concat(t,"-small&-line, ").concat(t,"-small&-line ").concat(t,"-text ").concat(n),{fontSize:e.fontSizeSM}))},Px=Eh("Progress",function(e){var t=e.calc(e.marginXXS).div(2).equal(),n=hh(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[_x(n),Cx(n),Lx(n),Ax(n)]},function(e){return{circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:"".concat(e.fontSize/e.fontSizeSM,"em")}}),Mx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},Nx=["normal","exception","active","success"];var Tx=o.forwardRef(function(e,t){var n,r,i=e.prefixCls,c=e.className,l=e.rootClassName,u=e.steps,s=e.strokeColor,f=e.percent,d=void 0===f?0:f,h=e.size,p=void 0===h?"default":h,m=e.showInfo,v=void 0===m||m,g=e.type,y=void 0===g?"line":g,b=e.status,w=e.format,E=e.style,x=Mx(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),O=o.useMemo(function(){var t,n,r=yx(e);return parseInt(void 0!==r?null===(t=null!==r&&void 0!==r?r:0)||void 0===t?void 0:t.toString():null===(n=null!==d&&void 0!==d?d:0)||void 0===n?void 0:n.toString(),10)},[d,e.success,e.successPercent]),j=o.useMemo(function(){return!Nx.includes(b)&&O>=100?"success":b||"normal"},[b,O]),k=o.useContext(yd),S=k.getPrefixCls,_=k.direction,C=k.progress,L=S("progress",i),A=Px(L),P=Object(a.a)(A,3),M=P[0],N=P[1],T=P[2],I=o.useMemo(function(){if(!v)return null;var t,n=yx(e),r="line"===y;return w||"exception"!==j&&"success"!==j?t=(w||function(e){return"".concat(e,"%")})(gx(d),gx(n)):"exception"===j?t=r?o.createElement(Lm,null):o.createElement(Pm,null):"success"===j&&(t=r?o.createElement(qy,null):o.createElement(_m,null)),o.createElement("span",{className:"".concat(L,"-text"),title:"string"===typeof t?t:void 0},t)},[v,d,O,j,y,L,w]),F=Array.isArray(s)?s[0]:s,D="string"===typeof s||Array.isArray(s)?s:void 0;"line"===y?r=u?o.createElement(kx,Object.assign({},e,{strokeColor:D,prefixCls:L,steps:u}),I):o.createElement(jx,Object.assign({},e,{strokeColor:F,prefixCls:L,direction:_}),I):"circle"!==y&&"dashboard"!==y||(r=o.createElement(Ex,Object.assign({},e,{strokeColor:F,prefixCls:L,progressStatus:j}),I));var R=zl()(L,"".concat(L,"-status-").concat(j),"".concat(L,"-").concat(("dashboard"===y?"circle":u&&"steps")||y),(n={},Object(se.a)(n,"".concat(L,"-inline-circle"),"circle"===y&&wx(p,"circle")[0]<=20),Object(se.a)(n,"".concat(L,"-show-info"),v),Object(se.a)(n,"".concat(L,"-").concat(p),"string"===typeof p),Object(se.a)(n,"".concat(L,"-rtl"),"rtl"===_),n),null===C||void 0===C?void 0:C.className,c,l,N,T);return M(o.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null===C||void 0===C?void 0:C.style),E),className:R,role:"progressbar","aria-valuenow":O},Object(ql.a)(x,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),r))}),Ix=o.forwardRef(function(e,t){var n,r,i=e.prefixCls,c=e.className,l=e.style,u=e.locale,s=e.listType,f=e.file,d=e.items,h=e.progress,p=e.iconRender,m=e.actionIconRender,v=e.itemRender,g=e.isImgUrl,y=e.showPreviewIcon,b=e.showRemoveIcon,w=e.showDownloadIcon,E=e.previewIcon,x=e.removeIcon,O=e.downloadIcon,j=e.onPreview,k=e.onDownload,S=e.onClose,_=f.status,C=o.useState(_),L=Object(a.a)(C,2),A=L[0],P=L[1];o.useEffect(function(){"removed"!==_&&P(_)},[_]);var M=o.useState(!1),N=Object(a.a)(M,2),T=N[0],I=N[1];o.useEffect(function(){var e=setTimeout(function(){I(!0)},300);return function(){clearTimeout(e)}},[]);var F=p(f),D=o.createElement("div",{className:"".concat(i,"-icon")},F);if("picture"===s||"picture-card"===s||"picture-circle"===s)if("uploading"===A||!f.thumbUrl&&!f.url){var R=zl()("".concat(i,"-list-item-thumbnail"),Object(se.a)({},"".concat(i,"-list-item-file"),"uploading"!==A));D=o.createElement("div",{className:R},F)}else{var G=(null===g||void 0===g?void 0:g(f))?o.createElement("img",{src:f.thumbUrl||f.url,alt:f.name,className:"".concat(i,"-list-item-image"),crossOrigin:f.crossOrigin}):F,B=zl()("".concat(i,"-list-item-thumbnail"),Object(se.a)({},"".concat(i,"-list-item-file"),g&&!g(f)));D=o.createElement("a",{className:B,onClick:function(e){return j(f,e)},href:f.url||f.thumbUrl,target:"_blank",rel:"noopener noreferrer"},G)}var H=zl()("".concat(i,"-list-item"),"".concat(i,"-list-item-").concat(A)),z="string"===typeof f.linkProps?JSON.parse(f.linkProps):f.linkProps,V=b?m(("function"===typeof x?x(f):x)||o.createElement(vE,null),function(){return S(f)},i,u.removeFile,!0):null,q=w&&"done"===A?m(("function"===typeof O?O(f):O)||o.createElement(yE,null),function(){return k(f)},i,u.downloadFile):null,Y="picture-card"!==s&&"picture-circle"!==s&&o.createElement("span",{key:"download-delete",className:zl()("".concat(i,"-list-item-actions"),{picture:"picture"===s})},q,V),W=zl()("".concat(i,"-list-item-name")),U=f.url?[o.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:W,title:f.name},z,{href:f.url,onClick:function(e){return j(f,e)}}),f.name),Y]:[o.createElement("span",{key:"view",className:W,onClick:function(e){return j(f,e)},title:f.name},f.name),Y],X=y&&(f.url||f.thumbUrl)?o.createElement("a",{href:f.url||f.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:function(e){return j(f,e)},title:u.previewFile},"function"===typeof E?E(f):E||o.createElement(wE,null)):null,Q=("picture-card"===s||"picture-circle"===s)&&"uploading"!==A&&o.createElement("span",{className:"".concat(i,"-list-item-actions")},X,"done"===A&&q,V),K=(0,o.useContext(yd).getPrefixCls)(),J=o.createElement("div",{className:H},D,U,Q,T&&o.createElement(Ad.c,{motionName:"".concat(K,"-fade"),visible:"uploading"===A,motionDeadline:2e3},function(e){var t=e.className,n="percent"in f?o.createElement(Tx,Object.assign({},h,{type:"line",percent:f.percent,"aria-label":f["aria-label"],"aria-labelledby":f["aria-labelledby"]})):null;return o.createElement("div",{className:zl()("".concat(i,"-list-item-progress"),t)},n)})),Z=f.response&&"string"===typeof f.response?f.response:(null===(n=f.error)||void 0===n?void 0:n.statusText)||(null===(r=f.error)||void 0===r?void 0:r.message)||u.uploadError,$="error"===A?o.createElement(vx,{title:Z,getPopupContainer:function(e){return e.parentNode}},J):J;return o.createElement("div",{className:zl()("".concat(i,"-list-item-container"),c),style:l,ref:t},v?v($,f,d,{download:k.bind(null,f),preview:j.bind(null,f),remove:S.bind(null,f)}):$)}),Fx=function(e,t){var n=e.listType,r=void 0===n?"text":n,i=e.previewFile,c=void 0===i?pE:i,l=e.onPreview,u=e.onDownload,s=e.onRemove,f=e.locale,d=e.iconRender,h=e.isImageUrl,p=void 0===h?dE:h,m=e.prefixCls,v=e.items,g=void 0===v?[]:v,y=e.showPreviewIcon,b=void 0===y||y,w=e.showRemoveIcon,E=void 0===w||w,x=e.showDownloadIcon,O=void 0!==x&&x,j=e.removeIcon,k=e.previewIcon,S=e.downloadIcon,_=e.progress,C=void 0===_?{size:[-1,2],showInfo:!1}:_,L=e.appendAction,A=e.appendActionVisible,P=void 0===A||A,M=e.itemRender,N=e.disabled,T=function(){var e=o.useReducer(function(e){return e+1},0);return Object(a.a)(e,2)[1]}(),I=o.useState(!1),F=Object(a.a)(I,2),D=F[0],R=F[1];o.useEffect(function(){"picture"!==r&&"picture-card"!==r&&"picture-circle"!==r||(g||[]).forEach(function(e){"undefined"!==typeof document&&"undefined"!==typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",c&&c(e.originFileObj).then(function(t){e.thumbUrl=t||"",T()}))})},[r,g,c]),o.useEffect(function(){R(!0)},[]);var G=function(e,t){if(l)return null===t||void 0===t||t.preventDefault(),l(e)},B=function(e){"function"===typeof u?u(e):e.url&&window.open(e.url)},H=function(e){null===s||void 0===s||s(e)},z=function(e){if(d)return d(e,r);var t="uploading"===e.status,n=p&&p(e)?o.createElement(cE,null):o.createElement(rE,null),a=t?o.createElement(Im,null):o.createElement(oE,null);return"picture"===r?a=t?o.createElement(Im,null):n:"picture-card"!==r&&"picture-circle"!==r||(a=t?f.uploading:n),a},V=function(e,t,n,r,a){var i={type:"text",size:"small",title:r,onClick:function(n){t(),Pb(e)&&e.props.onClick&&e.props.onClick(n)},className:"".concat(n,"-list-item-action")};if(a&&(i.disabled=N),Pb(e)){var c=Nb(e,Object.assign(Object.assign({},e.props),{onClick:function(){}}));return o.createElement(Cw,Object.assign({},i,{icon:c}))}return o.createElement(Cw,Object.assign({},i),o.createElement("span",null,e))};o.useImperativeHandle(t,function(){return{handlePreview:G,handleDownload:B}});var q=o.useContext(yd).getPrefixCls,Y=q("upload",m),W=q(),U=zl()("".concat(Y,"-list"),"".concat(Y,"-list-").concat(r)),X=Object(Ul.a)(g.map(function(e){return{key:e.uid,file:e}})),Q="picture-card"===r||"picture-circle"===r?"animate-inline":"animate",K={motionDeadline:2e3,motionName:"".concat(Y,"-").concat(Q),keys:X,motionAppear:D},J=o.useMemo(function(){var e=Object.assign({},$f(W));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e},[W]);return"picture-card"!==r&&"picture-circle"!==r&&(K=Object.assign(Object.assign({},J),K)),o.createElement("div",{className:U},o.createElement(Ad.a,Object.assign({},K,{component:!1}),function(e){var t=e.key,n=e.file,a=e.className,i=e.style;return o.createElement(Ix,{key:t,locale:f,prefixCls:Y,className:a,style:i,file:n,items:g,progress:C,listType:r,isImgUrl:p,showPreviewIcon:b,showRemoveIcon:E,showDownloadIcon:O,removeIcon:j,previewIcon:k,downloadIcon:S,iconRender:z,actionIconRender:V,itemRender:M,onPreview:G,onDownload:B,onClose:H})}),L&&o.createElement(Ad.c,Object.assign({},K,{visible:P,forceRender:!0}),function(e){var t=e.className,n=e.style;return Nb(L,function(e){return{className:zl()(e.className,t),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:t?"none":void 0}),e.style)}})}))};var Dx=o.forwardRef(Fx);function Rx(){Rx=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Gx=function(e,t,n,r){return new(n||(n=Promise))(function(a,o){function i(e){try{l(r.next(e))}catch(tj){o(tj)}}function c(e){try{l(r.throw(e))}catch(tj){o(tj)}}function l(e){var t;e.done?a(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())})},Bx="__LIST_IGNORE_".concat(Date.now(),"__"),Hx=function(e,t){var n,r=e.fileList,i=e.defaultFileList,c=e.onRemove,l=e.showUploadList,u=void 0===l||l,s=e.listType,f=void 0===s?"text":s,d=e.onPreview,h=e.onDownload,p=e.onChange,m=e.onDrop,v=e.previewFile,g=e.disabled,y=e.locale,b=e.iconRender,w=e.isImageUrl,E=e.progress,x=e.prefixCls,O=e.className,j=e.type,k=void 0===j?"select":j,S=e.children,_=e.style,C=e.itemRender,L=e.maxCount,A=e.data,P=void 0===A?{}:A,M=e.multiple,N=void 0!==M&&M,T=e.hasControlInside,I=void 0===T||T,F=e.action,D=void 0===F?"":F,R=e.accept,G=void 0===R?"":R,B=e.supportServerRender,H=void 0===B||B,z=e.rootClassName,V=o.useContext(Od),q=null!==g&&void 0!==g?g:V,Y=Object(ed.a)(i||[],{value:r,postState:function(e){return null!==e&&void 0!==e?e:[]}}),W=Object(a.a)(Y,2),U=W[0],X=W[1],Q=o.useState("drop"),K=Object(a.a)(Q,2),J=K[0],Z=K[1],$=o.useRef(null);o.useMemo(function(){var e=Date.now();(r||[]).forEach(function(t,n){t.uid||Object.isFrozen(t)||(t.uid="__AUTO__".concat(e,"_").concat(n,"__"))})},[r]);var ee=function(e,t,n){var r=Object(Ul.a)(t),a=!1;1===L?r=r.slice(-1):L&&(a=r.length>L,r=r.slice(0,L)),Object(Py.flushSync)(function(){X(r)});var o={file:e,fileList:r};n&&(o.event=n),a&&!r.some(function(t){return t.uid===e.uid})||Object(Py.flushSync)(function(){null===p||void 0===p||p(o)})},te=function(e){var t=e.filter(function(e){return!e.file[Bx]});if(t.length){var n=t.map(function(e){return lE(e.file)}),r=Object(Ul.a)(U);n.forEach(function(e){r=uE(e,r)}),n.forEach(function(e,n){var a=e;if(t[n].parsedFile)e.status="uploading";else{var o,i=e.originFileObj;try{o=new File([i],i.name,{type:i.type})}catch(tj){(o=new Blob([i],{type:i.type})).name=i.name,o.lastModifiedDate=new Date,o.lastModified=(new Date).getTime()}o.uid=e.uid,a=o}ee(a,r)})}},ne=function(e,t,n){try{"string"===typeof e&&(e=JSON.parse(e))}catch(tj){}if(sE(t,U)){var r=lE(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;var a=uE(r,U);ee(r,a)}},re=function(e,t){if(sE(t,U)){var n=lE(t);n.status="uploading",n.percent=e.percent;var r=uE(n,U);ee(n,r,e)}},ae=function(e,t,n){if(sE(n,U)){var r=lE(n);r.error=e,r.response=t,r.status="error";var a=uE(r,U);ee(r,a)}},oe=function(e){var t;Promise.resolve("function"===typeof c?c(e):c).then(function(n){var r;if(!1!==n){var a=function(e,t){var n=void 0!==e.uid?"uid":"name",r=t.filter(function(t){return t[n]!==e[n]});return r.length===t.length?null:r}(e,U);a&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null===U||void 0===U||U.forEach(function(e){var n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")}),null===(r=$.current)||void 0===r||r.abort(t),ee(t,a))}})},ie=function(e){Z(e.type),"drop"===e.type&&(null===m||void 0===m||m(e))};o.useImperativeHandle(t,function(){return{onBatchStart:te,onSuccess:ne,onProgress:re,onError:ae,fileList:U,upload:$.current}});var ce=o.useContext(yd),le=ce.getPrefixCls,ue=ce.direction,fe=ce.upload,de=le("upload",x),he=Object.assign(Object.assign({onBatchStart:te,onError:ae,onProgress:re,onSuccess:ne},e),{data:P,multiple:N,action:D,accept:G,supportServerRender:H,prefixCls:de,disabled:q,beforeUpload:function(t,n){return Gx(void 0,void 0,void 0,Rx().mark(function r(){var a,o,i,c;return Rx().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(a=e.beforeUpload,o=e.transformFile,i=t,!a){r.next=13;break}return r.next=5,a(t,n);case 5:if(!1!==(c=r.sent)){r.next=8;break}return r.abrupt("return",!1);case 8:if(delete t[Bx],c!==Bx){r.next=12;break}return Object.defineProperty(t,Bx,{value:!0,configurable:!0}),r.abrupt("return",!1);case 12:"object"===typeof c&&c&&(i=c);case 13:if(!o){r.next=17;break}return r.next=16,o(i);case 16:i=r.sent;case 17:return r.abrupt("return",i);case 18:case"end":return r.stop()}},r)}))},onChange:void 0,hasControlInside:I});delete he.className,delete he.style,S&&!q||delete he.id;var pe="".concat(de,"-wrapper"),me=tE(de,pe),ve=Object(a.a)(me,3),ge=ve[0],ye=ve[1],be=ve[2],we=$d("Upload",dd.Upload),Ee=Object(a.a)(we,1)[0],xe="boolean"===typeof u?{}:u,Oe=xe.showRemoveIcon,je=xe.showPreviewIcon,ke=xe.showDownloadIcon,Se=xe.removeIcon,_e=xe.previewIcon,Ce=xe.downloadIcon,Le="undefined"===typeof Oe?!q:!!Oe,Ae=function(e,t){return u?o.createElement(Dx,{prefixCls:de,listType:f,items:U,previewFile:v,onPreview:d,onDownload:h,onRemove:oe,showRemoveIcon:Le,showPreviewIcon:je,showDownloadIcon:ke,removeIcon:Se,previewIcon:_e,downloadIcon:Ce,iconRender:b,locale:Object.assign(Object.assign({},Ee),y),isImageUrl:w,progress:E,appendAction:e,appendActionVisible:t,itemRender:C,disabled:q}):e},Pe=zl()(pe,O,z,ye,be,null===fe||void 0===fe?void 0:fe.className,(n={},Object(se.a)(n,"".concat(de,"-rtl"),"rtl"===ue),Object(se.a)(n,"".concat(de,"-picture-card-wrapper"),"picture-card"===f),Object(se.a)(n,"".concat(de,"-picture-circle-wrapper"),"picture-circle"===f),n)),Me=Object.assign(Object.assign({},null===fe||void 0===fe?void 0:fe.style),_);if("drag"===k){var Ne,Te=zl()(ye,de,"".concat(de,"-drag"),(Ne={},Object(se.a)(Ne,"".concat(de,"-drag-uploading"),U.some(function(e){return"uploading"===e.status})),Object(se.a)(Ne,"".concat(de,"-drag-hover"),"dragover"===J),Object(se.a)(Ne,"".concat(de,"-disabled"),q),Object(se.a)(Ne,"".concat(de,"-rtl"),"rtl"===ue),Ne));return ge(o.createElement("span",{className:Pe},o.createElement("div",{className:Te,style:Me,onDrop:ie,onDragOver:ie,onDragLeave:ie},o.createElement(Hw,Object.assign({},he,{ref:$,className:"".concat(de,"-btn")}),o.createElement("div",{className:"".concat(de,"-drag-container")},S))),Ae()))}var Ie,Fe=zl()(de,"".concat(de,"-select"),Object(se.a)({},"".concat(de,"-disabled"),q)),De=(Ie=S?void 0:{display:"none"},o.createElement("div",{className:Fe,style:Ie},o.createElement(Hw,Object.assign({},he,{ref:$}))));return ge("picture-card"===f||"picture-circle"===f?o.createElement("span",{className:Pe},Ae(De,!!S)):o.createElement("span",{className:Pe},De,Ae()))};var zx=o.forwardRef(Hx),Vx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};var qx=o.forwardRef(function(e,t){var n=e.style,r=e.height,a=e.hasControlInside,i=void 0!==a&&a,c=Vx(e,["style","height","hasControlInside"]);return o.createElement(zx,Object.assign({ref:t,hasControlInside:i},c,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),Yx=zx;Yx.Dragger=qx,Yx.LIST_IGNORE=Bx;var Wx=Yx;function Ux(){Ux=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Xx=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),u=(c[0],c[1]),s=Object(a.a)(n,2),f=(s[0],s[1]),d=Object(o.useState)(""),h=Object(a.a)(d,2),p=h[0],v=h[1],g=Object(o.useState)(""),y=Object(a.a)(g,2),b=y[0],w=y[1],E=Object(o.useState)(""),x=Object(a.a)(E,2),O=x[0],j=x[1],k=Object(o.useState)(null),S=Object(a.a)(k,2),_=S[0],C=S[1],L=Object(o.useState)(0),A=Object(a.a)(L,2),P=A[0],M=A[1],N=Object(o.useState)(""),T=Object(a.a)(N,2),I=T[0],F=T[1],D=Object(o.useState)(!1),R=Object(a.a)(D,2),G=R[0],B=R[1],H=function(){var e=Object(r.a)(Ux().mark(function e(){var t;return Ux().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).append("year",p),t.append("qpcode",O),t.append("examtype",b),e.next=6,Q.a.get(K.b+"a=checkScriptRecieve&univcode="+localStorage.getItem("univcode")+"&qpcode="+O+"&year="+p+"&examtype="+b).then(function(e){0===e.data.error_code?z({file:_}):f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}})});case 6:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),z=function(){var e=Object(r.a)(Ux().mark(function e(t){var n,r;return Ux().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.file,t.onSuccess,t.onError,""!=O){e.next=5;break}return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Qpcode"}}),C(null),e.abrupt("return");case 5:if(""!=p){e.next=9;break}return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Year"}}),C(null),e.abrupt("return");case 9:if(""!=b){e.next=13;break}return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Examtype"}}),C(null),e.abrupt("return");case 13:if("zip"===n.name.split(".").pop()){e.next=18;break}return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"only zip files allowed"}}),C(null),e.abrupt("return");case 18:return u(!0),(r=new FormData).append("file",n),r.append("year",p),r.append("qpcode",O),r.append("examtype",b),r.append("funivcode",localStorage.getItem("univcode")),e.prev=25,e.next=28,Q.a.post(K.a+"/upload/scripts?univcode="+localStorage.getItem("univcode"),r,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){var t=Math.round(100*e.loaded/e.total);M(t)}}).then(function(e){e.data&&e.data.message?(f({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.message}}),u(!1),V(O,p,b)):(f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.message}}),u(!1))});case 28:e.next=34;break;case 30:e.prev=30,e.t0=e.catch(25),f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Error uploading file:"+e.t0}}),u(!1);case 34:case"end":return e.stop()}},e,null,[[25,30]])}));return function(t){return e.apply(this,arguments)}}(),V=function(){var e=Object(r.a)(Ux().mark(function e(t,n,r){return Ux().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q.a.get(K.b+"a=getScriptUpdCount&univcode="+localStorage.getItem("univcode")+"&qpcode="+t+"&year="+n+"&examtype="+r).then(function(e){if(0!=e.data.error_code)return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void u(!1);F(e.data.data),B(!0)}).catch(function(e){f({type:"OPEN_MSG_BOX",payload:{header:"Error",message:"Error => "+e}}),u(!1)});case 2:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),q=function(){var e=Object(r.a)(Ux().mark(function e(){return Ux().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q.a.get(K.b+"a=getTdvsYearModeOnQpcode&univcode="+localStorage.getItem("univcode")+"&qpcode="+O).then(function(e){0===e.data.error_code?(v(e.data.data.fyear),w(e.data.data.fexamtype)):(v(""),w(""))});case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},G&&i.a.createElement(Ym.a,{open:!0},i.a.createElement(Ym.a.Header,null,"Script Count Data",i.a.createElement(Cw,{secondary:!0,onClick:function(){return B(!1)},style:{float:"right"}},i.a.createElement(Ue.a,{name:"close"})," close")),i.a.createElement(Ym.a.Content,null,i.a.createElement(te.a.Group,null,i.a.createElement(te.a,null,i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Script Count"),i.a.createElement(te.a.Description,null,i.a.createElement("ul",null,i.a.createElement("li",null,i.a.createElement("b",null,"Total Uploaded Scripts:")," ",I.updcount),i.a.createElement("br",null),i.a.createElement("li",null,i.a.createElement("b",null,"Script Recieved Count:")," ",I.fcount),i.a.createElement("br",null),i.a.createElement("li",null,i.a.createElement("b",null,"Actual Count:")," ",I.factualcount)))))))),i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Upload Scripts",i.a.createElement(l.b,{to:"/admin/viewScripts"},i.a.createElement(Cw,{style:{float:"right"},type:"primary"},"View"))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"QP Code"),i.a.createElement(le.a.Input,{value:O,onChange:function(e,t){return j(t.value.toUpperCase())},onBlur:function(){return q()}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Year"),i.a.createElement(le.a.Input,{value:p,maxLength:4,onChange:function(e,t){return v(t.value)}})),i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Exam Type"),i.a.createElement(le.a.Input,{value:b,maxLength:1,onChange:function(e,t){return w(t.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"16"},i.a.createElement("label",null,"Select Zip file "),i.a.createElement(Wx,{customRequest:H,showUploadList:!1,onChange:function(e){"done"===e.file.status?Cb.success("".concat(e.file.name," file uploaded successfully")):"error"===e.file.status&&Cb.error("".concat(e.file.name," file upload failed."))},beforeUpload:function(e){C(e),M(0)}},i.a.createElement(Cw,{icon:i.a.createElement(Ay,null)},"Select File")),_&&i.a.createElement("div",null,i.a.createElement(Tx,{percent:P}),i.a.createElement("p",null,_.name))))))))};function Qx(){Qx=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Kx=function(e){var t=Object(o.useRef)(),n=Object(o.useContext)(m.a),c=(n.teachcode,n.err_msg),l=(n.load,Object(a.a)(c,2)),u=(l[0],l[1]),s=Object(o.useState)(""),f=Object(a.a)(s,2),d=f[0],h=f[1],p=Object(o.useState)([]),v=Object(a.a)(p,2),g=v[0],y=v[1],b=e.match.params,w=b.qpcode,E=b.yearmode,x=b.regno,O=b.valno,j=b.regcode,k=Object(o.useState)([]),S=Object(a.a)(k,2),_=S[0],C=S[1],L=Object(o.useState)([]),A=Object(a.a)(L,2),P=A[0],M=A[1],N=Object(o.useState)([]),T=Object(a.a)(N,2),I=T[0],F=T[1];Object(o.useEffect)(function(){D(w,E,x,O,j),R(w,j,O)},[]),Object(o.useEffect)(function(){var e=function(e){(e.ctrlKey||e.metaKey)&&"p"===e.key&&(e.preventDefault(),H())};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[]);var D=function(){var e=Object(r.a)(Qx().mark(function e(t,n,r,a,o){return Qx().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ee.get("/admin/getValAnswerBookLet?qpcode=".concat(t,"&yearmode=").concat(n,"®no=").concat(r,"&valno=").concat(a,"®code=").concat(o)).then(function(e){0===e.data.status&&(h(e.data.result.ffilepath),y(e.data.result.filenames))}).catch(function(e){return alert("Error => "+e)});case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),alert("Error => "+e.t0);case 8:case"end":return e.stop()}},e,null,[[0,5]])}));return function(t,n,r,a,o){return e.apply(this,arguments)}}(),R=function(){var e=Object(r.a)(Qx().mark(function e(t,n,r){return Qx().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ee.get("/admin/get-eval-marks-state?qpcode=".concat(t,"®code=").concat(n,"&valno=").concat(r)).then(function(e){0===e.data.status&&(C(e.data.sdata),M(e.data.pdata),F(e.data.sum))});case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),u({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 8:case"end":return e.stop()}},e,null,[[0,5]])}));return function(t,n,r){return e.apply(this,arguments)}}(),G=_[0],B=I,H=function(){var e=document.getElementById("printdivcontent").innerHTML,t=window.open("","","height=100%,width=75%");t.document.write("<html><head><title>Print DIV Content</title>"),t.document.write("</head><body >"),t.document.write(e),t.document.write("</body></html>"),t.document.close(),t.print()};return i.a.createElement("div",null,i.a.createElement("div",{ref:t,id:"printdivcontent"},g.length>0?g.map(function(e,t){var n=e.split("_"),r=n.length>2?n[0]+"_"+n[1]+"_"+t+".webp":n[0]+"_"+t+".webp";return console.log(r),i.a.createElement("div",null,0!==t&&1!==t&&"Thumbs.db"!==e&&i.a.createElement("img",{key:t,src:K.a+"/eval-img/"+d+r,width:"100%",height:"100%",alt:"img"}))}):i.a.createElement("p",null,"No Images Found"),i.a.createElement("div",{style:{width:"100%"}},i.a.createElement("center",null,i.a.createElement("h1",null,"Marks Details")),_.length>0?i.a.createElement(ce.a,{style:{border:"1px solid black",width:"100%",borderCollapse:"collapse",textAlign:"center",marginBottom:"20px"}},i.a.createElement(ce.a.Body,null,i.a.createElement(ce.a.Row,{style:{border:"1px solid black"}},i.a.createElement(ce.a.Cell,{style:{border:"1px solid black"}},"QP Code"),i.a.createElement(ce.a.Cell,{style:{border:"1px solid black"}},G.fqpcode),i.a.createElement(ce.a.Cell,{style:{border:"1px solid black"}},"Subject Name"),i.a.createElement(ce.a.Cell,{style:{border:"1px solid black"}},G.fsubname)),i.a.createElement(ce.a.Row,{style:{border:"1px solid black"}},i.a.createElement(ce.a.Cell,{style:{border:"1px solid black"}},"Reg. Code"),i.a.createElement(ce.a.Cell,{style:{border:"1px solid black"}}," ",G.fregcode),i.a.createElement(ce.a.Cell,{style:{border:"1px solid black"}},"Max. Marks"),i.a.createElement(ce.a.Cell,{style:{border:"1px solid black"}}," ",G.ftempmax)))):null,_.length>0?i.a.createElement("div",null,i.a.createElement(ce.a,{style:{border:"1px solid black",width:"100%",borderCollapse:"collapse",textAlign:"center"}},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,{style:{border:"1px solid black"}},i.a.createElement(ce.a.HeaderCell,{textAlign:"center",rowSpan:"2",style:{border:"1px solid black"}},"QNo."),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",colSpan:"3",style:{border:"1px solid black"}},"MARKS")),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{border:"1px solid black"}},"Awarded by Evaluator"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{border:"1px solid black"}},"Allocated by System"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{border:"1px solid black"}},"Max. Marks"))),P.map(function(e){return i.a.createElement(ce.a.Body,{key:e.fpartcode},i.a.createElement(ce.a.Row,{positive:!0,key:e.fpartcode,style:{border:"1px solid black"}},i.a.createElement(ce.a.Cell,{colSpan:"4",textAlign:"center",style:{border:"1px solid black"}},e.fpartdesc," (Answer ",e.fmandqn," / ",e.fmaxqn," ","questions)")),_.map(function(t){if(e.fpartcode==t.fpartcode&&"T"!=t.fsubqn)return i.a.createElement(ce.a.Row,{key:t.fqncode,style:{border:"1px solid black"}},i.a.createElement(ce.a.Cell,{textAlign:"center",style:{border:"1px solid black"}},t.fqnno),i.a.createElement(ce.a.Cell,{textAlign:"center",style:{border:"1px solid black"}},-2==parseFloat(t.fmarks11)?"NA":parseFloat(t.fmarks11)),i.a.createElement(ce.a.Cell,{textAlign:"center",style:{border:"1px solid black"}},-2==parseFloat(t.fmarks12)?"NA":""==t.fmarks12?"":parseFloat(t.fmarks12)),i.a.createElement(ce.a.Cell,{textAlign:"center",style:{border:"1px solid black"}},parseFloat(t.fmaxmarks)))}),i.a.createElement(ce.a.Row,{warning:!0,key:e.fpartcode+1,style:{border:"1px solid black"}},i.a.createElement(ce.a.Cell,{textAlign:"center",style:{border:"1px solid black"}},"Part Total"),i.a.createElement(ce.a.Cell,{textAlign:"center",style:{border:"1px solid black"}},parseFloat(e.fmarks11)),i.a.createElement(ce.a.Cell,{textAlign:"center",style:{border:"1px solid black"}},parseFloat(e.fmarks12)),i.a.createElement(ce.a.Cell,{textAlign:"center",style:{border:"1px solid black"}},parseFloat(e.fmaxmarks))))}),I.length>0?i.a.createElement(ce.a.Footer,null,i.a.createElement(ce.a.Row,{style:{border:"1px solid black"}},i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{border:"1px solid black"}},"Final Marks"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{border:"1px solid black"}},parseFloat(B[0].ftotmarks)),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{border:"1px solid black"}},parseFloat(B[0].fsysmarks)),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{border:"1px solid black"}},parseFloat(G.ftempmax)))):null)):null)))};function Jx(){Jx=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Zx=function(e){function t(){var e,n;Object(mt.a)(this,t);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=Object(ft.a)(this,(e=Object(dt.a)(t)).call.apply(e,[this].concat(o)))).state={board:"",qpCode:"",frmsubmit:!1,total:"",completed:"",remaining:"",enter:1,det:"D",boardOpt:[],qpcodeOpt:[],loading:!1,showAlert:!1,alertMessage:"",alertType:""},n.componentDidMount=Object(r.a)(Jx().mark(function e(){return Jx().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.getDeggrp();case 2:case"end":return e.stop()}},e)})),n.getDeggrp=function(){var e=Object(r.a)(Jx().mark(function e(t){return Jx().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.prev=1,e.next=4,Q.a.get(K.b+"a=getTDVSBoardDetails&univcode="+localStorage.getItem("univcode")+"°grp="+t).then(function(e){if(0!==e.data.error_code)return n.toggleAlert("No data found","error"),void n.setState({qpCode:"",frmsubmit:!1,total:"",completed:"",remaining:"",enter:1,det:"D",boardOpt:[],qpcodeOpt:[]});n.setState({boardOpt:e.data.data})});case 4:n.setState({loading:!1}),e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),alert(e.t0),e.abrupt("return");case 11:case"end":return e.stop()}},e,null,[[1,7]])}));return function(t){return e.apply(this,arguments)}}(),n.toggleAlert=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";n.setState(function(n){return{showAlert:!n.showAlert,alertMessage:e,alertType:t}})},n.handleStart=function(){var e=n.state,t=e.board,r=e.qpCode,a=e.enter,o=e.det;""!=t?""!=r?n.props.history.push("/admin/modifytdvs/".concat(t,"/").concat(r,"/").concat(a,"/").concat(o,"/")):n.toggleAlert("Select QP Code","error"):n.toggleAlert("Select Board First","error")},n.boardDropDownChange=function(){var e=Object(r.a)(Jx().mark(function e(t,r,a){return Jx().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({board:r.value}),e.next=3,Q.a.get(K.b+"a=getTdvsQPDetails&univcode="+localStorage.getItem("univcode")+"&board="+r.value+"°grp="+a).then(function(e){0===e.data.error_code?n.setState({qpcodeOpt:e.data.data}):n.toggleAlert("No data found","error")});case 3:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),n.qpDropDownChange=function(){var e=Object(r.a)(Jx().mark(function e(t,r){return Jx().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setState({qpCode:r.value});case 2:return e.next=4,Q.a.get(K.b+"a=getTotalDecodedScripts&univcode="+localStorage.getItem("univcode")+"&qpcode="+r.value+"&enter="+n.state.enter).then(function(e){0===e.data.error_code?(n.setState({total:e.data.data.Total}),n.setState({completed:e.data.data.Completed}),n.setState({remaining:e.data.data.Remaining})):n.toggleAlert("No data found","error")});case 4:e.sent;case 5:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleCancel=Object(r.a)(Jx().mark(function e(){return Jx().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setState({board:""});case 2:return e.next=4,n.setState({qpCode:""});case 4:case"end":return e.stop()}},e)})),n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.board,r=t.qpCode,a=(t.enter,t.loading),o=t.showAlert,c=t.alertMessage,u=t.alertType,s=this.state.boardOpt.map(function(e,t){return{key:t,value:"".concat(e.fboard),text:"".concat(e.fboard," - ").concat(e.fboardname)}}),f=this.state.qpcodeOpt.map(function(e,t){return{key:t,value:"".concat(e.fqpcode),text:"".concat(e.fqpcode," - ").concat(e.fsubname)}});return i.a.createElement("div",{className:"animated fadeIn"},i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,{style:{height:"720px"}},i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h4",null,"Decoding Entry 1")),i.a.createElement("div",{className:"ml-auto"},i.a.createElement(l.b,{to:"/admin/decoding/Status"},i.a.createElement(ne.a,{color:"blue",content:"Decoding Status",icon:"chevron left"})),i.a.createElement(ne.a,{color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"})))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,{style:{overflowY:"auto",height:"700px"}},i.a.createElement(h.a,{columns:2,divided:!0},i.a.createElement(h.a.Column,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{openOnFocus:!0,fluid:!0,search:!0,selection:!0,value:n,options:s,allowAdditions:!0,placeholder:"board",onChange:this.boardDropDownChange,autoFocus:!0}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement("label",null,"QP Code"),i.a.createElement(p.a,{fluid:!0,search:!0,selection:!0,value:r,options:f,allowAdditions:!0,placeholder:"qpcode",onChange:this.qpDropDownChange}))),i.a.createElement(ne.a,{color:"green",onClick:this.handleStart},"Start")),i.a.createElement(Dv,{loading:a}),i.a.createElement(Rv,{open:o,onClose:function(){return e.setState({showAlert:!1})},message:c,type:u})),i.a.createElement(h.a.Column,null,i.a.createElement("div",null,i.a.createElement("table",{style:{border:"none",borderCollapse:"collapse"}},i.a.createElement("tr",{style:{border:"none"}},i.a.createElement("td",{style:{border:"none"}},i.a.createElement("b",null,"Qp Code")),i.a.createElement("td",{style:{border:"none"}},":"),i.a.createElement("td",{style:{border:"none"}},this.state.qpCode)),i.a.createElement("tr",{style:{border:"none"}},i.a.createElement("td",{style:{border:"none"}},i.a.createElement("b",null,"Total")),i.a.createElement("td",{style:{border:"none"}},":"),i.a.createElement("td",{style:{border:"none"}},this.state.total)),i.a.createElement("tr",{style:{border:"none"}},i.a.createElement("td",{style:{border:"none"}},i.a.createElement("b",null,"Completed")),i.a.createElement("td",{style:{border:"none"}},":"),i.a.createElement("td",{style:{border:"none"}},this.state.completed)),i.a.createElement("tr",{style:{border:"none"}},i.a.createElement("td",{style:{border:"none"}},i.a.createElement("b",null,"Remaining")),i.a.createElement("td",{style:{border:"none"}},":"),i.a.createElement("td",{style:{border:"none"}},this.state.remaining))))))))))}}]),t}(o.Component),$x=Object(c.withRouter)(Zx);function eO(){eO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var tO=function(e){function t(){var e,n;Object(mt.a)(this,t);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=Object(ft.a)(this,(e=Object(dt.a)(t)).call.apply(e,[this].concat(o)))).state={board:"",qpCode:"",frmsubmit:!1,total:"",completed:"",remaining:"",enter:2,det:"D",boardOpt:[],qpcodeOpt:[],loading:!1,showAlert:!1,alertMessage:"",alertType:""},n.componentDidMount=Object(r.a)(eO().mark(function e(){return eO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.getDeggrp();case 2:case"end":return e.stop()}},e)})),n.getDeggrp=function(){var e=Object(r.a)(eO().mark(function e(t){return eO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Q.a.get(K.b+"a=getTDVSBoardDetails&univcode="+localStorage.getItem("univcode")+"°grp="+t).then(function(e){if(0!==e.data.error_code)return n.toggleAlert("No data found","error"),void n.setState({qpCode:"",frmsubmit:!1,total:"",completed:"",remaining:"",enter:2,det:"D"});n.setState({boardOpt:e.data.data})});case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),alert(e.t0),e.abrupt("return");case 9:case"end":return e.stop()}},e,null,[[0,5]])}));return function(t){return e.apply(this,arguments)}}(),n.toggleAlert=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";n.setState(function(n){return{showAlert:!n.showAlert,alertMessage:e,alertType:t}})},n.boardDropDownChange=function(){var e=Object(r.a)(eO().mark(function e(t,r,a){return eO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({board:r.value}),e.next=3,Q.a.get(K.b+"a=getTdvsQPDetails&univcode="+localStorage.getItem("univcode")+"&board="+r.value+"°grp="+a).then(function(e){if(0!==e.data.error_code)return n.toggleAlert("No data found","error"),void n.setState({qpCode:"",frmsubmit:!1,total:"",completed:"",remaining:"",enter:1,det:"D"});n.setState({qpcodeOpt:e.data.data})});case 3:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),n.qpDropDownChange=function(){var e=Object(r.a)(eO().mark(function e(t,r){return eO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setState({qpCode:r.value});case 2:return e.next=4,Q.a.get(K.b+"a=getTotalDecodedScripts&univcode="+localStorage.getItem("univcode")+"&qpcode="+r.value+"&enter="+n.state.enter).then(function(e){console.log(e,"gdfsd"),0===e.data.error_code?(n.setState({total:e.data.data.Total}),n.setState({completed:e.data.data.Completed2}),n.setState({remaining:e.data.data.Remaining2})):alert("No data found")});case 4:e.sent;case 5:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleCancel=Object(r.a)(eO().mark(function e(){return eO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setState({board:""});case 2:return e.next=4,n.setState({qpCode:""});case 4:case"end":return e.stop()}},e)})),n.handleStart=function(){var e=n.state,t=e.board,r=e.qpCode,a=e.enter,o=e.det;""!=t?""!=r?n.props.history.push("/admin/modifytdvs2/".concat(t,"/").concat(r,"/").concat(a,"/").concat(o,"/")):alert("Select QP Code"):alert("Select Board First")},n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.loading,r=t.showAlert,a=t.alertMessage,o=t.alertType,c=this.state,u=c.board,s=c.qpCode,f=(c.enter,this.state.boardOpt.map(function(e,t){return{key:t,value:"".concat(e.fboard),text:"".concat(e.fboard," - ").concat(e.fboardname)}})),d=this.state.qpcodeOpt.map(function(e,t){return{key:t,value:"".concat(e.fqpcode),text:"".concat(e.fqpcode," - ").concat(e.fsubname)}});return i.a.createElement("div",{className:"animated fadeIn"},i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,{style:{height:"720px"}},i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h4",null,"Decoding(Auto) Entry 2")),i.a.createElement("div",{className:"ml-auto"},i.a.createElement(l.b,{to:"/admin/decoding/Status"},i.a.createElement(ne.a,{color:"blue",content:"Decoding Status",icon:"chevron left"})),i.a.createElement(ne.a,{color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"})))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,{style:{overflowY:"auto",height:"700px"}},i.a.createElement(h.a,{columns:2,divided:!0},i.a.createElement(h.a.Column,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{openOnFocus:!0,fluid:!0,search:!0,selection:!0,value:u,options:f,allowAdditions:!0,placeholder:"board",onChange:this.boardDropDownChange,autoFocus:!0}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement("label",null,"QP Code"),i.a.createElement(p.a,{fluid:!0,search:!0,selection:!0,value:s,options:d,allowAdditions:!0,placeholder:"qpcode",onChange:this.qpDropDownChange}))),i.a.createElement(ne.a,{color:"green",onClick:this.handleStart},"Start")),i.a.createElement(Dv,{loading:n}),i.a.createElement(Rv,{open:r,onClose:function(){return e.setState({showAlert:!1})},message:a,type:o})),i.a.createElement(h.a.Column,null,i.a.createElement("div",null,i.a.createElement("table",{style:{border:"none",borderCollapse:"collapse"}},i.a.createElement("tr",{style:{border:"none"}},i.a.createElement("td",{style:{border:"none"}},i.a.createElement("b",null,"Qp Code")),i.a.createElement("td",{style:{border:"none"}},":"),i.a.createElement("td",{style:{border:"none"}},this.state.qpCode)),i.a.createElement("tr",{style:{border:"none"}},i.a.createElement("td",{style:{border:"none"}},i.a.createElement("b",null,"Total")),i.a.createElement("td",{style:{border:"none"}},":"),i.a.createElement("td",{style:{border:"none"}},this.state.total)),i.a.createElement("tr",{style:{border:"none"}},i.a.createElement("td",{style:{border:"none"}},i.a.createElement("b",null,"Completed")),i.a.createElement("td",{style:{border:"none"}},":"),i.a.createElement("td",{style:{border:"none"}},this.state.completed)),i.a.createElement("tr",{style:{border:"none"}},i.a.createElement("td",{style:{border:"none"}},i.a.createElement("b",null,"Remaining")),i.a.createElement("td",{style:{border:"none"}},":"),i.a.createElement("td",{style:{border:"none"}},this.state.remaining))))))))))}}]),t}(o.Component),nO=Object(c.withRouter)(tO);function rO(){rO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var aO=function(e){function t(){var e,n;Object(mt.a)(this,t);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=Object(ft.a)(this,(e=Object(dt.a)(t)).call.apply(e,[this].concat(o)))).state={board:"",qpcodefrm:"0",qpcodeto:"z",entry:"",status:"",report:"",frmsubmit:!1,hover:!1,boardOpt:[],view:[],loading:!1,showAlert:!1,alertMessage:"",alertType:""},n.componentDidMount=Object(r.a)(rO().mark(function e(){return rO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.getDeggrp();case 2:case"end":return e.stop()}},e)})),n.getDeggrp=function(){var e=Object(r.a)(rO().mark(function e(t){return rO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.prev=1,e.next=4,Q.a.get(K.b+"a=getTDVSBoardDetails&univcode="+localStorage.getItem("univcode")+"°grp="+t).then(function(e){0===e.data.error_code?(n.setState({boardOpt:e.data.data}),n.setState({frmsubmit:!1})):n.toggleAlert("No data found","error")});case 4:n.setState({loading:!1}),e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),n.toggleAlert(e.t0),e.abrupt("return");case 11:case"end":return e.stop()}},e,null,[[1,7]])}));return function(t){return e.apply(this,arguments)}}(),n.toggleAlert=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";n.setState(function(n){return{showAlert:!n.showAlert,alertMessage:e,alertType:t}})},n.handleChangeBoard=function(){var e=Object(r.a)(rO().mark(function e(t,r){return rO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({board:r.value});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChangeQpCodeFrm=function(){var e=Object(r.a)(rO().mark(function e(t,r){return rO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({qpcodefrm:r.value});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChangeQpCodeTo=function(){var e=Object(r.a)(rO().mark(function e(t,r){return rO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({qpcodeto:r.value});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChangeStatus=function(){var e=Object(r.a)(rO().mark(function e(t,r){return rO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({status:r.value});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChangeReport=function(){var e=Object(r.a)(rO().mark(function e(t,r){return rO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({report:r.value}),n.setState({frmsubmit:!1});case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.viewTdvsStatus=Object(r.a)(rO().mark(function e(){var t,r,a,o,i,c;return rO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.setState({frmsubmit:!0}),""!==n.state.board){e.next=4;break}return n.toggleAlert("Select Board","error"),e.abrupt("return");case 4:if(""!==n.state.qpcodefrm){e.next=7;break}return n.toggleAlert("Select QP Code From","error"),e.abrupt("return");case 7:if(""!==n.state.qpcodeto){e.next=10;break}return n.toggleAlert("Select QP Code To","error"),e.abrupt("return");case 10:if(""!==n.state.status){e.next=13;break}return n.toggleAlert("Select Status","error"),e.abrupt("return");case 13:if(""!==n.state.report){e.next=16;break}return n.toggleAlert("Select Report Type","error"),e.abrupt("return");case 16:return t=n.state,r=t.board,a=t.qpcodefrm,o=t.qpcodeto,i=t.status,c=t.report,n.setState({loading:!0}),e.prev=18,e.next=21,Q.a.post(K.b+"a=viewTdvsBoard&univcode="+localStorage.getItem("univcode")+"&board="+r+"&qpcodefrm="+a+"&qpcodeto="+o+"&status="+i+"&report="+c).then(function(e){0===e.data.error_code?n.setState({view:e.data.data}):n.toggleAlert(e.data.data.msg,"error")});case 21:n.setState({loading:!1}),e.next=28;break;case 24:return e.prev=24,e.t0=e.catch(18),n.toggleAlert(e.t0,"error"),e.abrupt("return");case 28:n.setState({frmView:!0});case 29:case"end":return e.stop()}},e,null,[[18,24]])})),n.gettdvsDet=function(){var e=Object(r.a)(rO().mark(function e(t,r,a){return rO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({frmsubmit:!0}),window.open(K.c+"tdvs_report_script&univcode="+localStorage.getItem("univcode")+"&val="+t+"&qpcode="+r+"&board="+a+"&format=PDF","_blank");case 2:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),n.gettdvsDetsxls=function(){var e=Object(r.a)(rO().mark(function e(t,r){return rO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({frmsubmit:!0}),window.open(K.c+"tdvs_report_board&univcode="+localStorage.getItem("univcode")+"&val="+t+"&board="+r+"&format=PDF","_blank");case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.reportTdvsStatus=Object(r.a)(rO().mark(function e(){var t,r,a,o,i,c;return rO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.state,r=t.board,a=t.qpcodefrm,o=t.qpcodeto,i=t.status,c=t.report,""!==n.state.board){e.next=4;break}return n.toggleAlert("Select Board","error"),e.abrupt("return");case 4:if(""!==n.state.qpcodefrm){e.next=7;break}return n.toggleAlert("Select QP Code From","error"),e.abrupt("return");case 7:if(""!==n.state.qpcodeto){e.next=10;break}return n.toggleAlert("Select QP Code To","error"),e.abrupt("return");case 10:if(""!==n.state.status){e.next=13;break}return n.toggleAlert("Select Status","error"),e.abrupt("return");case 13:if(""!==n.state.report){e.next=16;break}return n.toggleAlert("Select Report Type","error"),e.abrupt("return");case 16:window.open(K.c+"tdvs_report&univcode="+localStorage.getItem("univcode")+"&board="+r+"&qpcodefrm="+a+"&qpcodeto="+o+"&status="+i+"&report="+c+"&format=PDF","_blank");case 17:case"end":return e.stop()}},e)})),n.handleCancel=function(){n.setState({board:"",qpcodefrm:"0",qpcodeto:"z",status:"",report:"",frmsubmit:!1})},n.handleMouseEnter=function(){n.setState({hover:!0})},n.handleMouseLeave=function(){n.setState({hover:!1})},n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.board,r=t.qpcodefrm,a=t.qpcodeto,o=(t.entry,t.status),c=t.report,l=t.loading,u=t.showAlert,s=t.alertMessage,f=t.alertType,d=this.state.boardOpt.map(function(e){return{key:e.fboard,value:e.fboard,text:e.fboard+" - "+e.fboardname}}),h=[].concat([{key:1,value:"All",text:"All"}],Object(oe.a)(d));return i.a.createElement("div",{className:"animated fadeIn"},i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h3",null,"TDVS Report")),i.a.createElement("div",{className:"ml-auto"},i.a.createElement(ne.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"}),i.a.createElement(ne.a,{basic:!0,color:"blue",onClick:this.reportTdvsStatus,content:"Report",icon:"file"})))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,{style:{overflowY:"auto",height:"600px"}},i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{fluid:!0,search:!0,selection:!0,value:n,name:"board",options:h,placeholder:"board",onChange:this.handleChangeBoard}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:3},i.a.createElement(le.a.Input,{name:"qpfrom",label:"QP Code. From",value:r,onChange:this.handleChangeQpCodeFrm})),i.a.createElement(le.a.Field,{width:3},i.a.createElement(le.a.Input,{name:"qpto",label:"QP Code. To",value:a,onChange:this.handleChangeQpCodeTo}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Status"),i.a.createElement(p.a,{fluid:!0,search:!0,selection:!0,value:o,name:"status",options:[{key:1,value:"All",text:"All"},{key:2,value:"C",text:"Completed"},{key:3,value:"R",text:"Rejected"},{key:4,value:"P",text:"Pending"}],placeholder:"status",onChange:this.handleChangeStatus}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Report Type"),i.a.createElement(p.a,{fluid:!0,search:!0,selection:!0,value:c,name:"report",options:[{key:1,value:"Board",text:"Boardwise"},{key:2,value:"QP",text:"QP Code"}],placeholder:"report",onChange:this.handleChangeReport}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,null,i.a.createElement(ne.a,{basic:!0,color:"blue",onClick:this.viewTdvsStatus,content:"View"})))),i.a.createElement(Dv,{loading:l}),i.a.createElement(Rv,{open:u,onClose:function(){return e.setState({showAlert:!1})},message:s,type:f}),this.state.frmsubmit?i.a.createElement(ce.a,{celled:!0,padded:!0},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{singleLine:!0},"Sl No."),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Board Code"),"QP"==c?i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"QP Code"):i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Board Name"),"QP"==c?i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Subject Name"):null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Total Scripts"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Decoded"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Pending"))),i.a.createElement(ce.a.Body,null,this.state.view.map(function(t,n){return i.a.createElement(ce.a.Row,{key:n,style:{overflow:"hidden"}},i.a.createElement(ce.a.Cell,{textAlign:"center"},n+1),i.a.createElement(ce.a.Cell,{textAlign:"center"},t.fboard),"QP"==c?i.a.createElement(ce.a.Cell,{textAlign:"center"},t.fqpcode):i.a.createElement(ce.a.Cell,null,t.fboardname),"QP"==c?i.a.createElement(ce.a.Cell,null,t.fsubname):null,"QP"==c?i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement("span",{onMouseEnter:e.handleMouseEnter,onMouseLeave:e.handleMouseLeave,style:{color:e.state.hover?"blue":"black",cursor:"pointer"},onClick:function(){return e.gettdvsDet("T",t.fboard,t.fqpcode)}},t.count)):i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement("span",{onMouseEnter:e.handleMouseEnter,onMouseLeave:e.handleMouseLeave,style:{color:e.state.hover?"blue":"black",cursor:"pointer"},onClick:function(){return e.gettdvsDetsxls("T",t.fboard)}},t.count)),"QP"==c?i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement("span",{onMouseEnter:e.handleMouseEnter,onMouseLeave:e.handleMouseLeave,style:{color:e.state.hover?"blue":"black",cursor:"pointer"},onClick:function(){return e.gettdvsDet("D",t.fboard,t.fqpcode)}},t.dcnt)):i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement("span",{onMouseEnter:e.handleMouseEnter,onMouseLeave:e.handleMouseLeave,style:{color:e.state.hover?"blue":"black",cursor:"pointer"},onClick:function(){return e.gettdvsDetsxls("D",t.fboard)}},t.dcnt)),"QP"==c?i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement("span",{onMouseEnter:e.handleMouseEnter,onMouseLeave:e.handleMouseLeave,style:{color:e.state.hover?"blue":"black",cursor:"pointer"},onClick:function(){return e.gettdvsDet("P",t.fboard,t.fqpcode)}},t.per)):i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement("span",{onMouseEnter:e.handleMouseEnter,onMouseLeave:e.handleMouseLeave,style:{color:e.state.hover?"blue":"black",cursor:"pointer"},onClick:function(){return e.gettdvsDetsxls("P",t.fboard)}},t.per)))}))):null))))}}]),t}(o.Component);function oO(){oO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var iO=function(e){function t(){var e,n;Object(mt.a)(this,t);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=Object(ft.a)(this,(e=Object(dt.a)(t)).call.apply(e,[this].concat(o)))).state={board:"",qpCode:"",frmsubmit:!1,table:[],decodeVerify:"",typeDecode:"All",rangfrm:"0",rangto:"500",boardOpt:[],qpcodeOpt:[],loading:!1,showAlert:!1,alertMessage:"",alertType:""},n.componentDidMount=Object(r.a)(oO().mark(function e(){return oO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.getDeggrp();case 2:case"end":return e.stop()}},e)})),n.getDeggrp=function(){var e=Object(r.a)(oO().mark(function e(t){return oO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.prev=1,e.next=4,Q.a.get(K.b+"a=getTDVSBoardDetails&univcode="+localStorage.getItem("univcode")+"°grp="+t).then(function(e){0===e.data.error_code?n.setState({boardOpt:e.data.data}):n.toggleAlert("No data found","error")});case 4:n.setState({loading:!1}),e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),n.toggleAlert(e.t0),e.abrupt("return");case 11:case"end":return e.stop()}},e,null,[[1,7]])}));return function(t){return e.apply(this,arguments)}}(),n.toggleAlert=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";n.setState(function(n){return{showAlert:!n.showAlert,alertMessage:e,alertType:t}})},n.boardDropDownChange=function(){var e=Object(r.a)(oO().mark(function e(t,r,a){return oO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({board:r.value,loading:!0}),e.next=3,Q.a.get(K.b+"a=getTdvsQPDetails&univcode="+localStorage.getItem("univcode")+"&board="+r.value+"°grp="+a).then(function(e){0===e.data.error_code?n.setState({qpcodeOpt:e.data.data}):n.toggleAlert(e.data.data.msg,"error")});case 3:n.setState({loading:!1});case 4:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),n.qpDropDownChange=function(){var e=Object(r.a)(oO().mark(function e(t,r){return oO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({qpCode:r.value}),n.setState({table:[]}),n.setState({typeDecode:"All"}),n.setState({rangfrm:"0"}),n.setState({rangto:"500"}),n.setState({frmsubmit:!1});case 6:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.typOfDecode=function(){var e=Object(r.a)(oO().mark(function e(t,r){return oO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({typeDecode:r.value}),n.setState({rangfrm:"0"}),n.setState({rangto:"500"}),n.setState({frmsubmit:!1});case 4:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.verifyDecoding=Object(r.a)(oO().mark(function e(){var t,r,a,o,i;return oO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.state,r=t.qpCode,a=t.typeDecode,o=t.rangfrm,i=t.rangto,""!=r){e.next=4;break}return n.toggleAlert("Select QP Code","error"),e.abrupt("return");case 4:if(""!=a){e.next=7;break}return n.toggleAlert("Select Type Of Decoding","error"),e.abrupt("return");case 7:if(""!=o){e.next=10;break}return n.toggleAlert("Enter Range From","error"),e.abrupt("return");case 10:if(""!=i){e.next=13;break}return n.toggleAlert("Enter Range to","error"),e.abrupt("return");case 13:return n.setState({loading:!0}),e.next=16,Q.a.post(K.b+"a=decodingData&univcode="+localStorage.getItem("univcode")+"&qpcode="+r+"&typ="+a+"&from="+o+"&to="+i).then(function(e){console.log(e),0===e.data.error_code?n.setState({table:e.data.data}):n.toggleAlert("No data found","error")});case 16:n.setState({frmsubmit:!0,loading:!1});case 17:case"end":return e.stop()}},e)})),n.handleCheckBox=function(e,t){var r=n.state.table.map(function(n,r){return n.fregcode===t.fregcode?(e.target.checked?n.fverifystatus="T":n.fverifystatus="F",n):n});n.setState({table:Object(oe.a)(r)})},n.verifyedDecode=Object(r.a)(oO().mark(function e(){var t,r,a,o,i,c,l;return oO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.state,r=t.qpCode,a=t.typeDecode,o=t.rangfrm,i=t.rangto,c=t.table,""!=r){e.next=4;break}return n.toggleAlert("Select QP Code","error"),e.abrupt("return");case 4:if(""!=a){e.next=7;break}return n.toggleAlert("Select Type Of Decoding","error"),e.abrupt("return");case 7:if(""!=o){e.next=10;break}return n.toggleAlert("Enter Range From","error"),e.abrupt("return");case 10:if(""!=i){e.next=13;break}return n.toggleAlert("Enter Range to","error"),e.abrupt("return");case 13:return l=[],n.state.table.map(function(e,t){"T"!==e.fverifystatus&&"F"!==e.fverifystatus||l.push(e)}),e.prev=15,e.next=18,Q.a.post(K.b+"a=saveVerifyDecode&univcode="+localStorage.getItem("univcode")+"&mob="+localStorage.getItem("fmobileno"),{data:{qpcode:r,userid:localStorage.getItem("fteachcode"),table:c}}).then(function(e){0===e.data.error_code?(n.toggleAlert(e.data.data.msg),n.setState({board:"",qpCode:"",frmsubmit:!1,table:[],decodeVerify:"",typeDecode:"All",rangfrm:"0",rangto:"500"})):n.toggleAlert(e.data.data.msg,"error")});case 18:e.next=24;break;case 20:return e.prev=20,e.t0=e.catch(15),n.toggleAlert(e.t0,"error"),e.abrupt("return");case 24:case"end":return e.stop()}},e,null,[[15,20]])})),n.handleCancel=Object(r.a)(oO().mark(function e(){return oO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({board:""}),n.setState({qpCode:""}),n.setState({typeDecode:"All"}),n.setState({frmsubmit:!1}),n.setState({rangfrm:"0"}),n.setState({rangto:"500"});case 6:case"end":return e.stop()}},e)})),n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.board,r=t.qpCode,a=t.frmsubmit,o=t.typeDecode,c=t.rangfrm,l=t.rangto,u=t.loading,s=t.showAlert,f=t.alertMessage,d=t.alertType,h=this.state.boardOpt.map(function(e,t){return{key:t,value:"".concat(e.fboard),text:"".concat(e.fboard," - ").concat(e.fboardname)}}),m=this.state.qpcodeOpt.map(function(e,t){return{key:t,value:"".concat(e.fqpcode),text:"".concat(e.fqpcode," - ").concat(e.fsubname)}});return i.a.createElement("div",{className:"animated fadeIn"},i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h3",null,"TDVS Decoding Verification")),i.a.createElement("div",null,i.a.createElement(ne.a,{color:"green",icon:"save",onClick:this.verifyedDecode,content:"Save",floated:"right"}),i.a.createElement(ne.a,{color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel",floated:"right"})))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,{style:{overflowY:"auto",height:"700px"}},i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{openOnFocus:!0,fluid:!0,search:!0,selection:!0,value:n,options:h,allowAdditions:!0,placeholder:"Select Board",onChange:this.boardDropDownChange,autoFocus:!0}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"QP Code"),i.a.createElement(p.a,{fluid:!0,search:!0,selection:!0,value:r,options:m,allowAdditions:!0,placeholder:"Select QP Code",onChange:this.qpDropDownChange}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Type"),i.a.createElement(p.a,{fluid:!0,search:!0,selection:!0,value:o,options:[{key:"All",value:"All",text:"All"},{key:"Completed",value:"C",text:"Completed"},{key:"Pending",value:"P",text:"Pending"}],allowAdditions:!0,onChange:this.typOfDecode}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:3},i.a.createElement("label",null,"Limit of Reg. Code"),i.a.createElement(ue.a,{placeholder:"Range From",value:c,onChange:function(t,n){return e.setState({rangfrm:n.value})}})),i.a.createElement(le.a.Field,{width:3},i.a.createElement("label",null,"Limit of Reg. Code"),i.a.createElement(ue.a,{placeholder:"Range To",value:l,onChange:function(t,n){return e.setState({rangto:n.value})}}))),i.a.createElement(ne.a,{color:"blue",onClick:this.verifyDecoding},"Submit")),i.a.createElement(Dv,{loading:u}),i.a.createElement(Rv,{open:s,onClose:function(){return e.setState({showAlert:!1})},message:f,type:d}),a?i.a.createElement("div",{style:{width:"100%",height:"550px",overflowY:"auto",marginTop:"4px"}},i.a.createElement("table",{style:{width:"100%",border:"1px solid"}},i.a.createElement("thead",{style:{backgroundColor:"#1e7f91",color:"white",height:"40px",position:"sticky",top:0}},i.a.createElement("tr",null,i.a.createElement("td",{colSpan:6},i.a.createElement("input",{placeholder:"Search...",onChange:function(t){e.setState({decodeVerify:t.target.value})},value:this.state.decodeVerify,style:{width:"100%",padding:"5px",margin:"10px 0",borderRadius:"15px"}}))),i.a.createElement("tr",null,i.a.createElement("th",{style:{border:"1px solid",textAlign:"center",width:"5%",borderTop:"1px solid"}},"Sl. No."),i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"15%"}},"Reg. Code."),i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"15%"}},"Reg. No."),i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"15%"}},"Answer Booklet No."),i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",width:"40%"}},"Student Name"),i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"10%"}},"Verifiy"))),i.a.createElement("tbody",null,this.state.table.filter(function(t){return t.fregcode.toLowerCase().includes(e.state.decodeVerify.toLowerCase())||t.fansbook.toLowerCase().includes(e.state.decodeVerify.toLowerCase())||t.fregno.toLowerCase().includes(e.state.decodeVerify.toLowerCase())}).map(function(t,n){var r="https://answer-booklets.s3.ap-south-1.amazonaws.com/"+t.ffilepath;return i.a.createElement("tr",{key:n},i.a.createElement("td",{style:{border:"1px solid",textAlign:"center",width:"5%",height:"30px"}},n+1),i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"15%",height:"30px"}},i.a.createElement("a",{href:r,target:"_blank",rel:"noopener noreferrer"},t.fregcode)),i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"15%",height:"30px"}},t.fregno),i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"15%",height:"30px",paddingLeft:"10px"}},t.fansbook),i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",paddingLeft:"10px",width:"35%",height:"40px"}},t.fname),i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"10%",height:"30px"}},i.a.createElement("input",{type:"checkbox",name:"status",checked:"T"==t.fverifystatus,onChange:function(n){return e.handleCheckBox(n,t)}})))})))):null))))}}]),t}(o.Component);function cO(){cO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var lO=function(e){function t(){var e,n;Object(mt.a)(this,t);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=Object(ft.a)(this,(e=Object(dt.a)(t)).call.apply(e,[this].concat(o)))).state={board:"All",qpCode:"All",frmsubmit:!1,status:"F",tab:[],diffType:"All",boardOpt:[],qpcodeOpt:[],diff:"",diffDet:"",loading:!1,showAlert:!1,alertMessage:"",alertType:""},n.componentDidMount=Object(r.a)(cO().mark(function e(){return cO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.getDeggrp();case 2:case"end":return e.stop()}},e)})),n.getDeggrp=function(){var e=Object(r.a)(cO().mark(function e(t){return cO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.prev=1,e.next=4,Q.a.get(K.b+"a=getTDVSBoardDetails&univcode="+localStorage.getItem("univcode")+"°grp="+t).then(function(e){if(0!==e.data.error_code)return n.toggleAlert("No data found","error"),void n.setState({qpCode:"All",frmsubmit:!1,status:"F",tab:[],diffType:"All",boardOpt:[],qpcodeOpt:[],diff:"",diffDet:""});n.setState({boardOpt:e.data.data})});case 4:n.setState({loading:!1}),e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),n.toggleAlert(e.t0,"error"),e.abrupt("return");case 11:case"end":return e.stop()}},e,null,[[1,7]])}));return function(t){return e.apply(this,arguments)}}(),n.toggleAlert=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";n.setState(function(n){return{showAlert:!n.showAlert,alertMessage:e,alertType:t}})},n.boardDropDownChange=function(){var e=Object(r.a)(cO().mark(function e(t,r,a){return cO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({board:r.value}),n.setState({frmsubmit:!1}),n.setState({loading:!0}),e.next=5,Q.a.get(K.b+"a=getTdvsQPDetails&univcode="+localStorage.getItem("univcode")+"&board="+r.value+"°grp="+a).then(function(e){0===e.data.error_code?(n.setState({qpcodeOpt:e.data.data}),n.setState({qpCode:"All"})):n.toggleAlert(e.data.data.msg,"error")});case 5:n.setState({loading:!1});case 6:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),n.qpDropDownChange=function(){var e=Object(r.a)(cO().mark(function e(t,r){return cO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({frmsubmit:!1}),n.setState({qpCode:r.value});case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.typeChange=function(){var e=Object(r.a)(cO().mark(function e(t,r){return cO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({frmsubmit:!1}),n.setState({diffType:r.value});case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.decodeDifference=Object(r.a)(cO().mark(function e(){var t,r,a,o;return cO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.state,r=t.board,a=t.qpCode,t.frmsubmit,o=t.diffType,n.setState({loading:!0}),e.next=4,Q.a.get(K.b+"a=getDecodeDiff&univcode="+localStorage.getItem("univcode")+"&board="+r+"&qpcode="+a+"&type="+o).then(function(e){if(console.log(e),0!==e.data.error_code)return n.toggleAlert(e.data.data.msg,"error"),void n.setState({frmsubmit:!1});n.setState({diffDet:e.data.data}),n.setState({tab:n.state.diffDet}),n.setState({frmsubmit:!0}),n.setState({regno1:n.state.diffDet})});case 4:n.setState({loading:!1});case 5:case"end":return e.stop()}},e)})),n.getDecodeDiff=function(){var e=Object(r.a)(cO().mark(function e(t,r,a){var o;return cO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.prev=1,e.next=4,Q.a.get(K.b+"a=getDecodeDiff&univcode="+localStorage.getItem("univcode")+"&board="+t+"&qpcode="+r+"&type="+a);case 4:if(o=e.sent,console.log(o),0!==o.data.error_code){e.next=10;break}n.setState({tab:o.data.data}),e.next=12;break;case 10:return n.toggleAlert("No data found","error"),e.abrupt("return");case 12:n.setState({loading:!1}),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(1),console.error("Error fetching decode difference:",e.t0),n.toggleAlert("Error fetching decode difference","error");case 19:case"end":return e.stop()}},e,null,[[1,15]])}));return function(t,n,r){return e.apply(this,arguments)}}(),n.handleCancel=Object(r.a)(cO().mark(function e(){return cO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({board:"All",qpCode:"All",diffType:"All"});case 1:case"end":return e.stop()}},e)})),n.regno1=function(){var e=Object(r.a)(cO().mark(function e(t,r){var a;return cO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=n.state.tab.map(function(e,n){return n===r&&(e.fregno=t.target.value),e}),n.setState({tab:a}),n.setState({status:"T"});case 3:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.ansbook1=function(){var e=Object(r.a)(cO().mark(function e(t,r){var a;return cO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=n.state.tab.map(function(e,n){return n===r&&(e.fansbook=t.target.value),e}),n.setState({tab:a}),n.setState({status:"T"});case 3:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.studid=function(){var e=Object(r.a)(cO().mark(function e(t,r){var a;return cO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=n.state.tab.map(function(e,n){return n===r&&(e.FSTUDID=t.target.value),e}),n.setState({tab:a}),n.setState({status:"T"});case 3:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.regno2=function(){var e=Object(r.a)(cO().mark(function e(t,r){var a;return cO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=n.state.tab.map(function(e,n){return n===r&&(e.fregno2=t.target.value),e}),n.setState({tab:a}),n.setState({status:"T"});case 3:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.ansbook2=function(){var e=Object(r.a)(cO().mark(function e(t,r){var a;return cO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=n.state.tab.map(function(e,n){return n===r&&(e.fansbook2=t.target.value),e}),n.setState({tab:a}),n.setState({status:"T"});case 3:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.studid2=function(){var e=Object(r.a)(cO().mark(function e(t,r){var a;return cO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=n.state.tab.map(function(e,n){return n===r&&(e.fstudid2=t.target.value),e}),n.setState({tab:a}),n.setState({status:"T"});case 3:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.updateReg=function(){var e=Object(r.a)(cO().mark(function e(t,r,a,o,i,c){return cO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("F"!=n.state.status){e.next=3;break}return n.toggleAlert("No Correction done","error"),e.abrupt("return");case 3:if(""!=a){e.next=6;break}return n.toggleAlert("Enter Reg. No 1","error"),e.abrupt("return");case 6:if(""!=i){e.next=9;break}return n.toggleAlert("Enter Reg. No 2","error"),e.abrupt("return");case 9:if(""!=o){e.next=12;break}return n.toggleAlert("Enter Answer 1","error"),e.abrupt("return");case 12:if(""!=c){e.next=15;break}return n.toggleAlert("Enter Answer 2","error"),e.abrupt("return");case 15:return n.setState({loading:!0}),e.next=18,Q.a.post(K.b+"a=saveUpdatedRegAnsNo&univcode="+localStorage.getItem("univcode")+"®code="+t+"&qpcode="+r+"®1="+a+"&ans1="+o+"®2="+i+"&ans2="+c+"&user="+localStorage.getItem("fteachcode")+"&type="+n.state.diffType).then(function(e){console.log(e),n.setState({diff:e.data.data}),0==n.state.diff.code?(n.decodeDifference(),n.setState({frmsubmit:!0}),n.setState({regno1:n.state.diffDet}),n.setState({tab:n.state.diffDet})):n.toggleAlert(e.data.data.msg,"error")});case 18:n.setState({loading:!1});case 19:case"end":return e.stop()}},e)}));return function(t,n,r,a,o,i){return e.apply(this,arguments)}}(),n.decodemisDet=Object(r.a)(cO().mark(function e(){var t,r,a,o,i;return cO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.setState({frmsubmit:!0}),t=n.state,r=t.board,a=t.qpCode,""!==r){e.next=7;break}return o={header:"Error",content:"Select Board"},n.props.showError(o),n.toggleAlert("Select Board","error"),e.abrupt("return");case 7:if(""!==a){e.next=12;break}return i={header:"Error",content:"Select QP Code"},n.props.showError(i),n.toggleAlert("Select QP Code","error"),e.abrupt("return");case 12:window.open(K.c+"decodeMissDet&univcode="+localStorage.getItem("univcode","error")+"&board="+r+"&qpcode="+a+"&format=PDF","_blank"),n.setState({frmsubmit:!1});case 14:case"end":return e.stop()}},e)})),n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.board,r=t.qpCode,a=t.frmsubmit,o=t.diffType,c=t.loading,l=t.showAlert,u=t.alertMessage,s=t.alertType,f=[{key:"All",value:"All",text:"All"}],d=this.state.boardOpt.map(function(e,t){return{key:t,value:"".concat(e.fboard),text:"".concat(e.fboard," - ").concat(e.fboardname)}}),h=[].concat(f,Object(oe.a)(d)),m=[].concat(f,[{key:"Reg. No",value:"Regno",text:"Reg. No"},{key:"Answer Booklet",value:"Ans",text:"Answer Booklet"}]),v=this.state.qpcodeOpt.map(function(e,t){return{key:t,value:"".concat(e.fqpcode),text:"".concat(e.fqpcode," - ").concat(e.fsubname)}}),g=[].concat(f,Object(oe.a)(v));return i.a.createElement("div",{className:"animated fadeIn"},i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h4",null,"Decoding Difference")),i.a.createElement("div",{className:"ml-auto"},i.a.createElement(ne.a,{color:"blue",icon:"file",onClick:this.decodemisDet,content:"Report"}),i.a.createElement(ne.a,{color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"})))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,{style:{overflowY:"auto",height:"700px"}},i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:5},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{openOnFocus:!0,fluid:!0,search:!0,selection:!0,value:n,options:h,allowAdditions:!0,placeholder:"Select Board",onChange:this.boardDropDownChange,autoFocus:!0})),i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"QP Code"),i.a.createElement(p.a,{fluid:!0,search:!0,selection:!0,value:r,options:g,allowAdditions:!0,placeholder:"Select QP Code",onChange:this.qpDropDownChange})),i.a.createElement(le.a.Field,{width:3},i.a.createElement("label",null,"Difference Type"),i.a.createElement(p.a,{fluid:!0,search:!0,selection:!0,value:o,options:m,allowAdditions:!0,placeholder:"Select Type",onChange:this.typeChange})),i.a.createElement(le.a.Field,{width:3},i.a.createElement(ne.a,{color:"blue",onClick:this.decodeDifference,style:{position:"absolute",bottom:0}},"Submit")))),i.a.createElement(Dv,{loading:c}),i.a.createElement(Rv,{open:l,onClose:function(){return e.setState({showAlert:!1})},message:u,type:s}),a?i.a.createElement("div",{style:{width:"100%",height:"550px",overflowY:"auto",marginTop:"4px"}},i.a.createElement("table",{style:{width:"100%",border:"1px solid"}},i.a.createElement("thead",{style:{backgroundColor:"#1e7f91",color:"white",height:"40px",position:"sticky",top:0}},i.a.createElement("tr",null,i.a.createElement("th",{style:{border:"1px solid",textAlign:"center",width:"5%",borderTop:"1px solid"}},"Sl. No."),i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"15%"}},"Board"),i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"15%"}},"QP Code."),i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"15%"}},"Reg. Code."),i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"12%"}},"Stud Id"),"Ans"!==this.state.diffType?i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"11%"}},"Reg. No.1"):null,"Ans"!==this.state.diffType?i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"11%"}},"Reg. No 2"):null,"Regno"!==this.state.diffType?i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"8%"}},"Ansbook 1"):null,"Regno"!==this.state.diffType?i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"8%"}},"Ansbook 2"):null,i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"12%"}},"Update"))),i.a.createElement("tbody",null,this.state.tab.map(function(t,n){return i.a.createElement("tr",{key:n},i.a.createElement("td",{style:{border:"1px solid",textAlign:"center",width:"5%",height:"30px"}},n+1),i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"15%",height:"30px"}},t.fboard),i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"15%",height:"30px"}},t.fqpcode),i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"15%",height:"30px",paddingLeft:"10px"}},i.a.createElement("a",{href:"https://answer-booklets.s3.ap-south-1.amazonaws.com/"+t.FFILEPATH,target:"_blank"},t.fregcode)),i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",paddingLeft:"10px",width:"12%",height:"40px"}},t.FSTUDID),"Ans"!==e.state.diffType?i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",paddingLeft:"10px",width:"11%",height:"40px"}},i.a.createElement("input",{type:"text",value:t.fregno,onChange:function(t){return e.regno1(t,n)}})):null,"Ans"!==e.state.diffType?i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",paddingLeft:"10px",width:"11%",height:"40px"}},i.a.createElement("input",{type:"text",value:t.fregno2,onChange:function(t){return e.regno2(t,n)}})):null,"Regno"!==e.state.diffType?i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",paddingLeft:"10px",width:"8%",height:"40px"}},i.a.createElement("input",{type:"text",value:t.fansbook,onChange:function(t){return e.ansbook1(t,n)}})):null,"Regno"!==e.state.diffType?i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",paddingLeft:"10px",width:"8%",height:"40px"}},i.a.createElement("input",{type:"text",value:t.fansbook2,onChange:function(t){return e.ansbook2(t,n)}})):null,i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",paddingLeft:"10px",width:"12%",height:"40px"}},i.a.createElement(ne.a,{type:"submit",content:"Update",color:"green",onClick:function(){return e.updateReg(t.fregcode,t.fqpcode,t.fregno,t.fansbook,t.fregno2,t.fansbook2)}})))})))):null))))}}]),t}(o.Component),uO=n(1540),sO=n(1309);function fO(){fO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var dO=function(e){function t(e){var n;return Object(mt.a)(this,t),(n=Object(ft.a)(this,Object(dt.a)(t).call(this,e))).handleCancel=Object(r.a)(fO().mark(function e(){return fO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setState({regcode:""});case 2:case"end":return e.stop()}},e)})),n.handleBlur=function(){var e=Object(r.a)(fO().mark(function e(t){return fO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.prev=1,e.next=4,Q.a.get(K.b+"a=getTDVSStudentDeatils&univcode="+localStorage.getItem("univcode")+"®no="+t).then(function(e){0===e.data.error_code?n.setState({name:e.data.data.fname}):n.toggleAlert(e.data.data.msg,"error")});case 4:n.setState({loading:!1}),e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),n.toggleAlert(e.t0,"error"),e.abrupt("return");case 11:case"end":return e.stop()}},e,null,[[1,7]])}));return function(t){return e.apply(this,arguments)}}(),n.toggleAlert=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";n.setState(function(n){return{showAlert:!n.showAlert,alertMessage:e,alertType:t}})},n.handleBlurRegcode=function(){var e=Object(r.a)(fO().mark(function e(t){var r;return fO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=n.state.regcode){e.next=2;break}return e.abrupt("return");case 2:return n.setState({loading:!0}),e.next=5,Q.a.get(K.b+"a=getTDVSRegCode&univcode="+localStorage.getItem("univcode")+"®code="+t);case 5:r=e.sent,n.setState({loading:!1}),-1===r.data.error_code&&n.toggleAlert(r.data.data.msg,"error"),0===r.data.error_code&&(n.setState({filepath:r.data.data.ffilepath}),n.setState({qpcode:r.data.data.fqpcode}));case 9:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),n.handleReject=Object(r.a)(fO().mark(function e(){return fO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setState({check:!n.state.check});case 2:case"end":return e.stop()}},e)})),n.handleClickSave=Object(r.a)(fO().mark(function e(){var t;return fO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("Rejected"==n.state.rejected){e.next=13;break}if(""!==n.state.regcode){e.next=5;break}return n.toggleAlert("Enter Reg Code","error"),n.inputRef.current.focus(),e.abrupt("return");case 5:if(""!==n.state.ansbook){e.next=9;break}return n.toggleAlert("Enter Answer Booklet Code","error"),n.inputRef.current.focus(),e.abrupt("return");case 9:if(""!==n.state.regno){e.next=13;break}return n.toggleAlert("Enter Register Number","error"),n.inputRef.current.focus(),e.abrupt("return");case 13:return n.setState({loading:!0}),e.next=16,Q.a.post(K.b+"a=saveMissedRegcode&univcode="+localStorage.getItem("univcode")+"®code="+n.state.regcode+"&ansbook="+n.state.ansbook+"&qpcode="+n.state.qpcode+"®no="+n.state.regno+"&user="+n.state.fuser+"&rejected="+n.state.rejected+"&remarks="+n.state.remarks);case 16:if(t=e.sent,n.setState({loading:!1}),0!==t.data.error_code){e.next=23;break}return n.toggleAlert(t.data.data.msg,"success"),n.setState({regcode:"",ansbook:"",regno:"",name:"",qpcode:"",filepath:"",check:!1,rejected:"",remarks:""}),n.inputRef.current.focus(),e.abrupt("return");case 23:if(-1!==t.data.error_code){e.next=28;break}return n.toggleAlert(t.data.data.msg,"error"),n.setState({regcode:"",ansbook:"",regno:"",name:"",qpcode:"",filepath:"",check:!1,rejected:"",remarks:""}),n.inputRef.current.focus(),e.abrupt("return");case 28:if(-2!==t.data.error_code){e.next=33;break}return n.toggleAlert(t.data.data.msg,"error"),n.setState({regcode:"",ansbook:"",regno:"",name:"",qpcode:"",filepath:"",check:!1,rejected:"",remarks:""}),n.inputRef.current.focus(),e.abrupt("return");case 33:case"end":return e.stop()}},e)})),n.changeMarks=function(e,t){n.setState({remarks:t.value})},n.inputRef=i.a.createRef(),n.state={regcode:"",ansbook:"",regno:"",name:"",qpcode:"",filepath:"",fuser:localStorage.getItem("fteachcode"),check:!1,rejected:"",remarks:"",loading:!1,showAlert:!1,alertMessage:"",alertType:""},n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.loading,r=t.showAlert,a=t.alertMessage,o=t.alertType,c="https://answer-booklets.s3.ap-south-1.amazonaws.com/"+this.state.filepath;return i.a.createElement("div",null,i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,{style:{height:"720px"}},i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h4",null,"Reg Code Decoding")),i.a.createElement("div",{className:"ml-auto"},i.a.createElement(ne.a,{color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"})))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,{style:{overflowY:"auto",height:"700px"}},i.a.createElement(h.a,{columns:2,divided:!0},i.a.createElement(h.a.Column,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:12},i.a.createElement("label",null,"Reg. Code"),i.a.createElement("input",{autoFocus:!0,style:{borderColor:"#bebfc0",borderWidth:"1px",width:"100%",borderRadius:"4px"},placeholder:"Reg Code",name:"regcode",ref:this.inputRef,value:this.state.regcode,onChange:function(t){return e.setState({regcode:t.target.value.toUpperCase()})},onBlur:function(t){return e.handleBlurRegcode(t.target.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:12},i.a.createElement("label",null,"QP Code"),i.a.createElement(le.a.Input,{placeholder:"Qp Code",name:"qpcode",value:this.state.qpcode,disabled:!0}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:12},i.a.createElement("label",null,"Answer Booklet No."),i.a.createElement(le.a.Input,{placeholder:"Answer Booklet No.",name:"ansbook",value:this.state.ansbook,onChange:function(t,n){return e.setState({ansbook:n.value.toUpperCase()})}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:12},i.a.createElement("label",null,"Reg. No. / Stud ID"),i.a.createElement(le.a.Input,{placeholder:"Register Number",name:"regno",value:this.state.regno,onChange:function(t,n){return e.setState({regno:n.value.toUpperCase()})},onBlur:function(t){return e.handleBlur(t.target.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:12},i.a.createElement("label",null,"Name"),i.a.createElement(le.a.Input,{placeholder:"Name",name:"name",value:this.state.name,disabled:!0}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:12},i.a.createElement("div",{style:{display:"flex"}},i.a.createElement("label",null,"Rejected"),i.a.createElement("input",{className:"ui checkbox",type:"checkbox",name:"reject",value:this.state.rejected,style:{marginLeft:"5px",position:"relative",bottom:"3px"},checked:this.state.check?this.state.rejected="Rejected":this.state.rejected="",onClick:this.handleReject})))),"Rejected"===this.state.rejected?i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:12},i.a.createElement(uO.a,{placeholder:"Tell us more",value:this.state.remarks,onChange:this.changeMarks}))):null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:4},i.a.createElement(ne.a,{color:"blue",onClick:this.handleClickSave},"Save")))),i.a.createElement(Dv,{loading:n}),i.a.createElement(Rv,{open:r,onClose:function(){return e.setState({showAlert:!1})},message:a,type:o})),i.a.createElement(h.a.Column,null,i.a.createElement(sO.a,{style:{overflow:"auto !important"}},i.a.createElement("iframe",{src:c,width:"555px",height:"600px",style:{top:"-70px",position:"relative"}}))))))))}}]),t}(o.Component);function hO(){hO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var pO=function(e){function t(e){var n;return Object(mt.a)(this,t),(n=Object(ft.a)(this,Object(dt.a)(t).call(this,e))).handleCancel=Object(r.a)(hO().mark(function e(){return hO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setState({regcode:"",ansbook:"",regno:"",name:"",qpcode:"",filepath:"",newansbook:"",newregno:"",studid:"",serv:"F"});case 2:case"end":return e.stop()}},e)})),n.handleBlur=function(){var e=Object(r.a)(hO().mark(function e(t){return hO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.next=3,Q.a.get(K.b+"a=getNameRegNo&univcode="+localStorage.getItem("univcode")+"®no="+t).then(function(e){-1===e.data.error_code&&n.toggleAlert(e.data.data.msg,"error"),n.setState({name:e.data.data.fname,studid:e.data.data.fstudid})});case 3:e.sent,n.setState({loading:!1});case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),n.toggleAlert=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";n.setState(function(n){return{showAlert:!n.showAlert,alertMessage:e,alertType:t}})},n.handleBlurRegcode=function(){var e=Object(r.a)(hO().mark(function e(t){return hO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=n.state.regcode){e.next=2;break}return e.abrupt("return");case 2:return n.setState({loading:!0}),e.prev=3,e.next=6,Q.a.get(K.b+"a=updateRegCode&univcode="+localStorage.getItem("univcode")+"®code="+t).then(function(e){-1===e.data.error_code&&n.toggleAlert(e.data.data.msg,"error"),0===e.data.error_code&&(n.setState({filepath:e.data.data.ffilepath}),n.setState({qpcode:e.data.data.fqpcode}),n.setState({regno:e.data.data.FREGNO}),n.setState({ansbook:e.data.data.fansbook,serv:e.data.data.FFILFRMSER}))});case 6:n.setState({loading:!1}),e.next=13;break;case 9:return e.prev=9,e.t0=e.catch(3),n.toggleAlert(e.t0,"error"),e.abrupt("return");case 13:case"end":return e.stop()}},e,null,[[3,9]])}));return function(t){return e.apply(this,arguments)}}(),n.setEntrytyp=function(){var e=Object(r.a)(hO().mark(function e(t,r){return hO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({entry:r.value});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleClickSave=Object(r.a)(hO().mark(function e(){return hO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("Rejected"==n.state.rejected){e.next=17;break}if(""!==n.state.regcode){e.next=5;break}return n.toggleAlert("Enter Reg Code","error"),n.inputRef.current.focus(),e.abrupt("return");case 5:if(""!==n.state.entry){e.next=9;break}return n.toggleAlert("Select Decoding Entry","error"),n.inputRef.current.focus(),e.abrupt("return");case 9:if(""!==n.state.newansbook){e.next=13;break}return n.toggleAlert("Enter Answer Booklet Code","error"),n.inputRef.current.focus(),e.abrupt("return");case 13:if(""!==n.state.newregno){e.next=17;break}return n.toggleAlert("Enter Register Number","error"),n.inputRef.current.focus(),e.abrupt("return");case 17:return n.setState({loading:!0}),e.prev=18,e.next=21,Q.a.get(K.b+"a=saveUpdatedRegNo&univcode="+localStorage.getItem("univcode")+"®code="+n.state.regcode+"&ansbook="+n.state.newansbook+"&qpcode="+n.state.qpcode+"®no="+n.state.newregno+"&user="+n.state.fuser+"&entrytyp="+n.state.entry+"&studid="+n.state.studid).then(function(e){return 0===e.data.error_code?(n.toggleAlert(e.data.data.msg,"sucess"),n.setState({regcode:"",ansbook:"",regno:"",name:"",qpcode:"",filepath:"",newansbook:"",newregno:"",entry:""}),void n.inputRef.current.focus()):(n.setState({loading:!1}),-1===e.data.error_code?(n.toggleAlert(e.data.data.msg,"error"),n.setState({regcode:"",ansbook:"",regno:"",name:"",qpcode:"",filepath:"",newansbook:"",newregno:"",entry:""}),void n.inputRef.current.focus()):-2===e.data.error_code?(n.toggleAlert(e.data.data.msg,"error"),n.setState({regcode:"",ansbook:"",regno:"",name:"",qpcode:"",filepath:"",newansbook:"",newregno:"",entry:""}),void n.inputRef.current.focus()):void 0)});case 21:n.setState({loading:!1}),e.next=28;break;case 24:return e.prev=24,e.t0=e.catch(18),n.toggleAlert(e.t0,"error"),e.abrupt("return");case 28:case"end":return e.stop()}},e,null,[[18,24]])})),n.inputRef=i.a.createRef(),n.state={regcode:"",ansbook:"",regno:"",name:"",qpcode:"",filepath:"",fuser:localStorage.getItem("fteachcode"),remarks:"",newregno:"",newansbook:"",entry:"",studid:"",serv:"F",loading:!1,showAlert:!1,alertMessage:"",alertType:""},n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.loading,r=t.showAlert,a=t.alertMessage,o=t.alertType,c="";c="051"==localStorage.getItem("univcode")?"#zoom=100":"#view=fitH,320";var l="T"===this.state.serv?"https://app.universitysolutions.in/eval-img/"+this.state.filepath+this.state.regcode+"_0.webp"+c:"https://answer-booklets.s3.ap-south-1.amazonaws.com/"+this.state.filepath+c;return i.a.createElement("div",null,i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,{style:{height:"720px"}},i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h4",null,"Decode Correction")),i.a.createElement("div",{className:"ml-auto"},i.a.createElement(ne.a,{color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"})))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,{style:{overflowY:"auto",height:"700px"}},i.a.createElement(h.a,{columns:2,divided:!0},i.a.createElement(h.a.Column,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement("label",null,"Reg. Code"),i.a.createElement("input",{autoFocus:!0,style:{borderColor:"#bebfc0",borderWidth:"1px",width:"100%",borderRadius:"4px"},placeholder:"Reg Code",name:"regcode",ref:this.inputRef,value:this.state.regcode,onChange:function(t){return e.setState({regcode:t.target.value.toUpperCase()})},onBlur:function(t){return e.handleBlurRegcode(t.target.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement("label",null,"QP Code"),i.a.createElement(le.a.Input,{placeholder:"Qp Code",name:"qpcode",value:this.state.qpcode,disabled:!0}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement("label",null,"Decoding Entry"),i.a.createElement(p.a,{fluid:!0,search:!0,selection:!0,value:this.state.entry,options:[{key:"1",value:"1",text:"1"},{key:"2",value:"2",text:"2"}],allowAdditions:!0,placeholder:"Select Decoding Entry",onChange:this.setEntrytyp}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement("label",null,"Answer Booklet No."),i.a.createElement(le.a.Input,{placeholder:"Answer Booklet No.",name:"ansbook",value:this.state.ansbook,disabled:!0}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement("label",null,"New Answer Booklet No."),i.a.createElement(le.a.Input,{placeholder:"New Answer Booklet No.",name:"ansbook",value:this.state.newansbook,onChange:function(t,n){return e.setState({newansbook:n.value.toUpperCase()})}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement("label",null,"Register Number"),i.a.createElement(le.a.Input,{placeholder:"Register Number",name:"regno",value:this.state.regno,disabled:!0}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement("label",null,"New Register Number"),i.a.createElement(le.a.Input,{placeholder:"New Register Number",name:"regno",value:this.state.newregno,onChange:function(t,n){return e.setState({newregno:n.value.toUpperCase()})},onBlur:function(t){return e.handleBlur(t.target.value)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:8},i.a.createElement("label",null,"Name"),i.a.createElement(le.a.Input,{placeholder:"Name",name:"name",value:this.state.name,disabled:!0})),i.a.createElement(le.a.Field,{width:8},i.a.createElement("label",null,"Stud. ID"),i.a.createElement(le.a.Input,{placeholder:"Stud. ID",name:"studid",value:this.state.studid,disabled:!0}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement(ne.a,{color:"blue",onClick:this.handleClickSave},"Save")))),i.a.createElement(Dv,{loading:n}),i.a.createElement(Rv,{open:r,onClose:function(){return e.setState({showAlert:!1})},message:a,type:o})),i.a.createElement(h.a.Column,null,i.a.createElement(sO.a,{style:{overflow:"auto !important"}},"T"===this.state.serv?i.a.createElement("img",{src:l,width:"630px",height:"1000px"}):i.a.createElement("iframe",{src:l,width:"630px",height:"1000px"}))))))))}}]),t}(o.Component);function mO(){mO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var vO=function(e){function t(e){var n;return Object(mt.a)(this,t),(n=Object(ft.a)(this,Object(dt.a)(t).call(this,e))).componentDidMount=Object(r.a)(mO().mark(function e(){return mO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.getTDVSQpPdfDet(n.state.board,n.state.qpcode,n.state.enter,localStorage.getItem("fteachcode"));case 2:n.inputRef.current&&n.inputRef.current.focus();case 3:case"end":return e.stop()}},e)})),n.toggleAlert=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";n.setState(function(n){return{showAlert:!n.showAlert,alertMessage:e,alertType:t}})},n.getTDVSQpPdfDet=function(){var e=Object(r.a)(mO().mark(function e(t,r,a,o){return mO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.prev=1,e.next=4,Q.a.get(K.b+"a=getTDVSQpPdfDet&univcode="+localStorage.getItem("univcode")+"&board="+t+"&qpcode="+r+"&userid="+o+"&enter="+a).then(function(e){if(0===e.data.error_code)n.setState({pdftdvs:e.data.data});else if(alert(e.data.data.msg),"1"==n.state.enter){var t="";t="S"===n.state.dete?"/admin/decoding/Status":"/admin/decoding/entry1",n.props.history.push(t)}});case 4:n.setState({loading:!1}),e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),alert(e.t0),e.abrupt("return");case 11:case"end":return e.stop()}},e,null,[[1,7]])}));return function(t,n,r,a){return e.apply(this,arguments)}}(),n.getRegCodeStatus=function(){n.props.getTDVSAnswerBookDetails(n.state.regcode)},n.changeRegno=function(){var e=Object(r.a)(mO().mark(function e(t,r){return mO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setState({regno:r.value.toUpperCase()});case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleBlur=function(){var e=Object(r.a)(mO().mark(function e(t){var r;return mO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.next=3,Q.a.get(K.b+"a=getTDVSStudentDeatils&univcode="+localStorage.getItem("univcode")+"®no="+t);case 3:if(r=e.sent,n.setState({loading:!1}),-1!=r.data.error_code){e.next=11;break}return n.toggleAlert(r.data.data.msg,"error"),n.setState({name:"",studid:"",fregno:""}),e.abrupt("return");case 11:n.setState({name:r.data.data.fname,studid:r.data.data.fstudid,fregno:r.data.data.fregno});case 12:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),n.changeAnsbookValue=function(){var e=Object(r.a)(mO().mark(function e(t,r){return mO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setState({ansbook:t.target.value.toUpperCase()});case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.saveTDVSDecoding=function(){var e=Object(r.a)(mO().mark(function e(t){return mO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),"Rejected"===n.state.rejected){e.next=10;break}if(""!==n.state.ansbook){e.next=6;break}return n.toggleAlert("Enter Answer Booklet Code","error"),n.inputRef.current.focus(),e.abrupt("return");case 6:if(""!==n.state.regno){e.next=10;break}return n.toggleAlert("Enter Register Number","error"),n.inputRef.current.focus(),e.abrupt("return");case 10:if("053"===localStorage.getItem("univcode")){e.next=15;break}if(""!==n.state.studid){e.next=15;break}return n.toggleAlert("Enter valid Student Reg. No / Stud. ID","error"),n.inputRef.current.focus(),e.abrupt("return");case 15:return n.setState({loading:!0}),e.prev=16,e.next=19,Q.a.post(K.b+"a=saveTDVSDecoding&univcode="+localStorage.getItem("univcode")+"®code="+n.state.pdftdvs.fregcode+"&ansbook="+n.state.ansbook+"&qpcode="+n.state.qpcode+"®no="+n.state.regno+"&user="+n.state.fuser+"&rejected="+n.state.rejected+"&remarks="+n.state.remarks+"&enter="+n.state.enter+"&fstudid="+n.state.studid+"&fregno="+n.state.fregno).then(function(e){if(console.log(e),""!==e.data){if(0!==e.data.error_code)return void n.toggleAlert(e.data.data.msg,"error");n.toggleAlert(e.data.data.msg,"success"),n.setState({regno:"",name:"",ansbook:"",studid:"",fregno:""}),n.inputRef.current.focus()}});case 19:n.setState({loading:!1}),e.next=26;break;case 22:return e.prev=22,e.t0=e.catch(16),alert(e.t0),e.abrupt("return");case 26:return n.setState({loading:!0}),e.prev=27,e.next=30,n.getTDVSQpPdfDet(n.state.board,n.state.qpcode,n.state.enter,localStorage.getItem("fteachcode"));case 30:n.setState({loading:!1}),e.next=37;break;case 33:return e.prev=33,e.t1=e.catch(27),alert(e.t1),e.abrupt("return");case 37:n.setState({regno:"",name:"",ansbook:"",studid:"",fregno:""}),n.inputRef.current.focus(),t.preventDefault();case 40:case"end":return e.stop()}},e,null,[[16,22],[27,33]])}));return function(t){return e.apply(this,arguments)}}(),n.handleBlurAnsBook=function(){var e=Object(r.a)(mO().mark(function e(t){var r;return mO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.next=3,Q.a.get(K.b+"a=getTdvsAnsBookDet&univcode="+localStorage.getItem("univcode")+"&ansbook="+t+"&enter="+n.state.enter);case 3:r=e.sent,n.setState({loading:!1}),-1===r.data.error_code&&n.toggleAlert(r.data.data.msg,"error");case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),n.handleReject=Object(r.a)(mO().mark(function e(){return mO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setState({check:!n.state.check});case 2:case"end":return e.stop()}},e)})),n.changeMarks=function(){var e=Object(r.a)(mO().mark(function e(t,r){return mO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({remarks:r.value});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleStart=function(){var e="";e="S"===n.state.dete?"/admin/decoding/Status":"/admin/decoding/entry1",n.props.history.push(e)},n.inputRef=i.a.createRef(),n.state={regno:"",name:"",ansbook:"",board:n.props.match.params.fbaord,qpcode:n.props.match.params.fqpcode,enter:n.props.match.params.enter,fuser:localStorage.getItem("fteachcode"),rejected:"",check:!1,remarks:"",dete:n.props.match.params.det,studid:"",fregno:"",pdftdvs:"",loading:!1,showAlert:!1,alertMessage:"",alertType:""},n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.loading,r=t.showAlert,a=t.alertMessage,o=t.alertType,c="";c="051"==localStorage.getItem("univcode")?"#zoom=100":"#view=fitH,320";var l="T"===this.state.pdftdvs.FFILFRMSER?"https://app.universitysolutions.in/eval-img/"+this.state.pdftdvs.ffilepath+this.state.pdftdvs.fregcode+"_0.webp"+c:"https://answer-booklets.s3.ap-south-1.amazonaws.com/"+this.state.pdftdvs.ffilepath+c;this.state.dete;var u="T"===this.state.pdftdvs.FFILFRMSER?"Auto":"hidden";return i.a.createElement("div",null,i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,{style:{height:"720px"}},i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h4",null,"Decoding Entry 1")),i.a.createElement("div",{className:"ml-auto"},i.a.createElement(ne.a,{basic:!0,color:"blue",content:"Back",icon:"arrow left",onClick:this.handleStart}),i.a.createElement(ne.a,{basic:!0,onClick:this.saveTDVSDecoding,color:"green",icon:"save",content:"Save"})))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,null,i.a.createElement(h.a,{columns:2,divided:!0,style:{marginLeft:"10px",marginTop:"0px",width:"100%"}},i.a.createElement(h.a.Row,{stretched:!0},i.a.createElement("div",{style:{display:"block",overflow:"hidden",overflowY:u,height:"630px",width:"60%"}},i.a.createElement(h.a.Column,{width:10,style:{height:"auto"}},i.a.createElement(sO.a,{style:{overflow:"auto !important"}},"T"===this.state.pdftdvs.FFILFRMSER?i.a.createElement("img",{src:l,width:"100%",height:"1200px"}):i.a.createElement("iframe",{src:l,width:"100%",height:"1200px"}))),i.a.createElement(Dv,{loading:n}),i.a.createElement(Rv,{open:r,onClose:function(){return e.setState({showAlert:!1})},message:a,type:o})),i.a.createElement("div",{style:{width:"20%"}},i.a.createElement(h.a.Column,{width:"100%"},i.a.createElement("div",{style:{marginTop:"-40px",width:"500px"}},i.a.createElement("style",null,".custom-table {\n width: 700px;\n border: none !important;\n width: 100%; \n\n }\n .custom-table td,\n .custom-table th { \n border: none !important;\n padding: 7px; \n height: 30px; \n }\n\n .custom-table tr {\n border: none !important;\n height: 50px; \n }\n "),i.a.createElement(ce.a,{className:"custom-table",compact:!0},i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,i.a.createElement("label",null,"QP Code"))),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement(le.a.Input,{placeholder:"QP Code",name:"qpcode",value:this.state.qpcode,disabled:!0}))),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,i.a.createElement("label",null,"Reg. Code"))),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement(le.a.Input,{placeholder:"Reg. Code",name:"regcode",value:this.state.pdftdvs.fregcode,disabled:!0}))),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,i.a.createElement("label",null,"Subject"))),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement(le.a.Input,{placeholder:"Subject name",name:"subject",value:this.state.pdftdvs.fsubname,disabled:!0}))),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,"Answer Book")),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement("input",{ref:this.inputRef,autoFocus:!0,style:{borderColor:"#bebfc0",borderWidth:"1px",height:"33px",width:"180px",borderRadius:"4px"},placeholder:"Answer Book",name:"ansbook",value:this.state.ansbook,onChange:this.changeAnsbookValue,onBlur:function(t){return e.handleBlurAnsBook(t.target.value)}}))),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,"Reg. No / Stud. ID")),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement(le.a.Input,{placeholder:"Reg. No.",name:"regno",value:this.state.regno,onChange:this.changeRegno,onBlur:function(t){return e.handleBlur(t.target.value)}}))),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,"Student Name")),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement(le.a.Input,{placeholder:"Name",name:"name",value:this.state.name,disabled:!0}))),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,"Student Reg. No")),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement(le.a.Input,{placeholder:"Reg. No",name:"fregno",value:this.state.fregno,disabled:!0}))),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,"Student ID")),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement(le.a.Input,{placeholder:"Stud. Id",name:"studid",value:this.state.studid,disabled:!0}))),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,"Rejected")),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement("input",{className:"ui checkbox",type:"checkbox",name:"reject",value:this.state.rejected,style:{position:"inherit"},checked:this.state.check?this.state.rejected="Rejected":this.state.rejected="",onClick:this.handleReject}))),"Rejected"===this.state.rejected?i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,"Remarks")),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement(uO.a,{placeholder:"Tell us more",value:this.state.remarks,onChange:this.changeMarks}))):null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null),i.a.createElement(ce.a.Cell,null),i.a.createElement(ce.a.Cell,null,i.a.createElement(ne.a,{color:"blue",onClick:this.saveTDVSDecoding},"Save")))))))))))))}}]),t}(o.Component);function gO(){gO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var yO=function(e){function t(e){var n;return Object(mt.a)(this,t),(n=Object(ft.a)(this,Object(dt.a)(t).call(this,e))).componentDidMount=Object(r.a)(gO().mark(function e(){return gO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.getTDVSQpPdfDet(n.state.board,n.state.qpcode,n.state.enter,localStorage.getItem("fteachcode"));case 2:n.inputRef.current&&n.inputRef.current.focus();case 3:case"end":return e.stop()}},e)})),n.toggleAlert=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";n.setState(function(n){return{showAlert:!n.showAlert,alertMessage:e,alertType:t}})},n.getTDVSQpPdfDet=function(){var e=Object(r.a)(gO().mark(function e(t,r,a,o){return gO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.prev=1,e.next=4,Q.a.get(K.b+"a=getTDVSQpPdfDet&univcode="+localStorage.getItem("univcode")+"&board="+t+"&qpcode="+r+"&userid="+o+"&enter="+a).then(function(e){if(console.log(e),0===e.data.error_code)n.setState({pdftdvs:e.data.data});else if(alert(e.data.data.msg),"2"==n.state.enter){var t="";t="S"===n.state.dete?"/admin/decoding/Status":"/admin/decoding/entry2",n.props.history.push(t)}});case 4:n.setState({loading:!1}),e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),alert(e.t0),e.abrupt("return");case 11:case"end":return e.stop()}},e,null,[[1,7]])}));return function(t,n,r,a){return e.apply(this,arguments)}}(),n.getRegCodeStatus=function(){n.props.getTDVSAnswerBookDetails(n.state.regcode)},n.changeRegno=function(){var e=Object(r.a)(gO().mark(function e(t,r){return gO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setState({regno:r.value.toUpperCase()});case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleBlur=function(){var e=Object(r.a)(gO().mark(function e(t){var r;return gO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.next=3,Q.a.get(K.b+"a=getTDVSStudentDeatils&univcode="+localStorage.getItem("univcode")+"®no="+t);case 3:if(-1!==(r=e.sent).data.error_code){e.next=8;break}return n.toggleAlert(r.data.data.msg,"error"),n.setState({name:"",studid:"",fregno:""}),e.abrupt("return");case 8:n.setState({name:r.data.data.fname,studid:r.data.data.fstudid,fregno:r.data.data.fregno});case 9:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),n.changeAnsbookValue=function(){var e=Object(r.a)(gO().mark(function e(t,r){return gO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setState({ansbook:t.target.value.toUpperCase()});case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.saveTDVSDecoding=function(){var e=Object(r.a)(gO().mark(function e(t){return gO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),"Rejected"==n.state.rejected){e.next=15;break}if(""!==n.state.ansbook){e.next=6;break}return alert("Enter Answer Booklet Code"),n.inputRef.current.focus(),e.abrupt("return");case 6:if(""!==n.state.regno){e.next=10;break}return alert("Enter Register Number"),n.inputRef.current.focus(),e.abrupt("return");case 10:if("053"===localStorage.getItem("univcode")){e.next=15;break}if(""!==n.state.studid){e.next=15;break}return alert("Enter valid Student Reg. No / Stud. ID"),n.inputRef.current.focus(),e.abrupt("return");case 15:return n.setState({loading:!0}),e.prev=16,e.next=19,Q.a.post(K.b+"a=saveTDVSDecoding&univcode="+localStorage.getItem("univcode")+"®code="+n.state.pdftdvs.fregcode+"&ansbook="+n.state.ansbook+"&qpcode="+n.state.qpcode+"®no="+n.state.regno+"&user="+n.state.fuser+"&rejected="+n.state.rejected+"&remarks="+n.state.remarks+"&enter="+n.state.enter+"&fstudid="+n.state.studid+"&fregno="+n.state.fregno).then(function(e){if(""!==e.data){if(0!==e.data.error_code)return void n.toggleAlert(e.data.data.msg,"error");n.toggleAlert(e.data.data.msg,"success"),n.setState({regno:"",name:"",ansbook:"",studid:"",fregno:""}),n.inputRef.current.focus()}});case 19:n.setState({loading:!1}),e.next=26;break;case 22:return e.prev=22,e.t0=e.catch(16),alert(e.t0),e.abrupt("return");case 26:return n.setState({loading:!0}),e.prev=27,e.next=30,n.getTDVSQpPdfDet(n.state.board,n.state.qpcode,n.state.enter,localStorage.getItem("fteachcode"));case 30:n.setState({loading:!1}),e.next=37;break;case 33:return e.prev=33,e.t1=e.catch(27),alert(e.t1),e.abrupt("return");case 37:n.setState({regno:"",name:"",ansbook:"",studid:"",fregno:""}),n.inputRef.current&&n.inputRef.current.focus(),t.preventDefault();case 40:case"end":return e.stop()}},e,null,[[16,22],[27,33]])}));return function(t){return e.apply(this,arguments)}}(),n.handleBlurAnsBook=function(){var e=Object(r.a)(gO().mark(function e(t){var r;return gO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.next=3,Q.a.get(K.b+"a=getTdvsAnsBookDet&univcode="+localStorage.getItem("univcode")+"&ansbook="+t+"&enter="+n.state.enter);case 3:r=e.sent,n.setState({loading:!1}),-1===r.data.error_code&&n.toggleAlert(r.data.data.msg,"error");case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),n.handleReject=Object(r.a)(gO().mark(function e(){return gO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setState({check:!n.state.check});case 2:case"end":return e.stop()}},e)})),n.changeMarks=function(){var e=Object(r.a)(gO().mark(function e(t,r){return gO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({remarks:r.value});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleStart=function(){var e="";e="S"===n.state.dete?"/admin/decoding/Status":"/admin/decoding/entry2",n.props.history.push(e)},n.inputRef=i.a.createRef(),n.state={regno:"",name:"",ansbook:"",board:n.props.match.params.fbaord,qpcode:n.props.match.params.fqpcode,enter:n.props.match.params.enter,fuser:localStorage.getItem("fteachcode"),rejected:"",check:!1,remarks:"",dete:n.props.match.params.det,studid:"",fregno:"",pdftdvs:"",loading:!1,showAlert:!1,alertMessage:"",alertType:""},n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.loading,r=t.showAlert,a=t.alertMessage,o=t.alertType,c="";c="051"==localStorage.getItem("univcode")?"#zoom=100":"#view=fitH,320";var l="T"===this.state.pdftdvs.FFILFRMSER?"https://app.universitysolutions.in/eval-img/"+this.state.pdftdvs.ffilepath+this.state.pdftdvs.fregcode+"_0.webp"+c:"https://answer-booklets.s3.ap-south-1.amazonaws.com/"+this.state.pdftdvs.ffilepath+c;this.state.dete;var u="T"===this.state.pdftdvs.FFILFRMSER?"Auto":"hidden";return i.a.createElement("div",null,i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,{style:{height:"720px"}},i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h4",null,"Decoding Entry 2")),i.a.createElement("div",{className:"ml-auto"},i.a.createElement(ne.a,{basic:!0,color:"blue",content:"Back",icon:"arrow left",onClick:this.handleStart})))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,null,i.a.createElement(h.a,{columns:2,divided:!0,style:{marginLeft:"10px",marginTop:"0px",width:"100%"}},i.a.createElement(h.a.Row,{stretched:!0},i.a.createElement("div",{style:{display:"block",overflow:"hidden",overflowY:u,width:"60%",height:"630px"}},i.a.createElement(h.a.Column,{width:10,style:{height:"auto"}},i.a.createElement(sO.a,{style:{overflow:"auto !important"}},"T"===this.state.pdftdvs.FFILFRMSER?i.a.createElement("img",{src:l,width:"100%",height:"1200px"}):i.a.createElement("iframe",{src:l,width:"100%",height:"1200px"}))),i.a.createElement(Dv,{loading:n}),i.a.createElement(Rv,{open:r,onClose:function(){return e.setState({showAlert:!1})},message:a,type:o})),i.a.createElement("div",{style:{width:"20%"}},i.a.createElement(h.a.Column,{width:"100%"},i.a.createElement("div",{style:{marginTop:"-40px",width:"500px"}},i.a.createElement("style",null,".custom-table {\n border: none !important;\n width: 100%; \n\n }\n .custom-table td,\n .custom-table th { \n border: none !important;\n padding: 7px; \n height: 30px; \n }\n\n .custom-table tr {\n border: none !important;\n height: 50px; \n }\n "),i.a.createElement(ce.a,{className:"custom-table",compact:!0},i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,i.a.createElement("label",null,"QP Code"))),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement(le.a.Input,{placeholder:"QP Code",name:"qpcode",value:this.state.qpcode,disabled:!0}))),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,i.a.createElement("label",null,"Reg. Code"))),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement(le.a.Input,{placeholder:"Reg. Code",name:"regcode",value:this.state.pdftdvs.fregcode,disabled:!0}))),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,i.a.createElement("label",null,"Subject"))),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement(le.a.Input,{placeholder:"Subject name",name:"subject",value:this.state.pdftdvs.fsubname,disabled:!0}))),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,"Answer Book")),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement("input",{ref:this.inputRef,autoFocus:!0,style:{borderColor:"#bebfc0",borderWidth:"1px",height:"33px",width:"180px",borderRadius:"4px"},placeholder:"Answer Book",name:"ansbook",value:this.state.ansbook,onChange:this.changeAnsbookValue,onBlur:function(t){return e.handleBlurAnsBook(t.target.value)}}))),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,"Reg. No. / Stud. ID")),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement(le.a.Input,{placeholder:"Reg. No.",name:"regno",value:this.state.regno,onChange:this.changeRegno,onBlur:function(t){return e.handleBlur(t.target.value)}}))),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,"Student Name")),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement(le.a.Input,{placeholder:"Name",name:"name",value:this.state.name,disabled:!0}))),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,"Student Reg. No")),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement(le.a.Input,{placeholder:"Reg. No",name:"fregno",value:this.state.fregno,disabled:!0}))),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,"Student I'D")),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement(le.a.Input,{placeholder:"Stud. I'D",name:"studid",value:this.state.studid,disabled:!0}))),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,"Rejected")),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement("input",{className:"ui checkbox",type:"checkbox",name:"reject",value:this.state.rejected,style:{position:"inherit"},checked:this.state.check?this.state.rejected="Rejected":this.state.rejected="",onClick:this.handleReject}))),"Rejected"===this.state.rejected?i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null,i.a.createElement("b",null,"Remarks")),i.a.createElement(ce.a.Cell,null,":"),i.a.createElement(ce.a.Cell,null,i.a.createElement(uO.a,{placeholder:"Tell us more",value:this.state.remarks,onChange:this.changeMarks}))):null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.Cell,null),i.a.createElement(ce.a.Cell,null),i.a.createElement(ce.a.Cell,null,i.a.createElement(ne.a,{color:"blue",onClick:this.saveTDVSDecoding},"Save")))))))))))))}}]),t}(o.Component),bO=n(1241);function wO(){wO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var EO=[{key:"All",value:"All",text:"All"}],xO=function(e){function t(){var e,n;Object(mt.a)(this,t);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=Object(ft.a)(this,(e=Object(dt.a)(t)).call.apply(e,[this].concat(o)))).state={deggrp:"All",programee:"All",degree:"All",sem:"All",subject:"All",date:"All",frmsubmit:!1,showValuationCards:!1,selectedQPCode:null,programeOpts:[],degreeOption:[],deggrpopt:[],subjOption:[],dateOption:[],frmdate:"",todate:"",qpfrm:"0",qpto:"Z",qpPtrnStatus:"All",qpStatus:"All",ansKeyStatus:"All",all:[],semnall:[],fdeggrp:[],degreenall:[],subjnall:[],tdvsdate:[],table:[],valuationData:[],loading:!1,showAlert:!1,alertMessage:"",alertType:""},n.componentDidMount=Object(r.a)(wO().mark(function e(){return wO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.loaddegreegroup(),e.next=3,n.setData();case 3:case"end":return e.stop()}},e)})),n.loaddegreegroup=Object(r.a)(wO().mark(function e(){var t;return wO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),"",t="",t="051"==localStorage.getItem("univcode")?"loaddeggrpnotif":"loaddeggrpexamcentre",e.prev=4,e.next=7,Q.a.get(K.b+"a="+t+"&univcode="+localStorage.getItem("univcode")+"&fcollcode=").then(function(e){0===e.data.error_code?n.setState({fdeggrp:e.data.data}):n.toggleAlert(e.data.data.msg,"error")});case 7:n.setState({loading:!1}),e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(4),alert(e.t0),e.abrupt("return");case 14:case"end":return e.stop()}},e,null,[[4,10]])})),n.toggleAlert=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";n.setState(function(n){return{showAlert:!n.showAlert,alertMessage:e,alertType:t}})},n.handleChangeDeggrp=function(){var e=Object(r.a)(wO().mark(function e(t,r){return wO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({deggrp:r.value,frmsubmit:!1,programee:"All",degree:"All",sem:"All",subject:"All",date:"All",viewdis:!1}),console.log(r,"s"),e.next=4,n.setData(r.value);case 4:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.setData=function(){var e=Object(r.a)(wO().mark(function e(t){var r,a,o,i,c,l,u,s,f;return wO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===t&&(t=n.state.deggrp),n.setState({loading:!0}),e.prev=2,e.next=5,Q.a.get(K.b+"a=loadalldata&univcode="+localStorage.getItem("univcode")+"&data="+t).then(function(e){0===e.data.error_code?n.setState({all:e.data.data}):n.toggleAlert(e.data.data.msg,"error")});case 5:n.setState({loading:!1}),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(2),alert(e.t0),e.abrupt("return");case 12:r=n.state.all.program.map(function(e){return{key:e.fprogcode,value:e.fprogcode,text:e.fprogcode}}),a=[].concat(EO,Object(oe.a)(r)),n.setState({programeOpts:a}),o=n.state.all.degree.map(function(e){return{key:e.fdegree,value:e.fdegree,text:e.fdegree+" - "+e.fdescpn}}),i=[].concat(EO,Object(oe.a)(o)),n.setState({degreeOption:i}),c=n.state.all.subject.map(function(e){return{key:e.fqpcode,value:e.fqpcode,text:e.fqpcode+" - "+e.fsubname}}),l=[].concat(EO,Object(oe.a)(c)),n.setState({subjOption:l}),u=n.state.all.dates.map(function(e){return{key:e.fdoe,value:e.fdoe,text:e.fdoe}}),s=[].concat(EO,Object(oe.a)(u)),n.setState({dateOption:s}),f=[{key:"Uploaded",value:"Uploaded",text:"Uploaded"},{key:"Pending",value:"Pending",text:"Pending"}],n.setState({qpOption:[].concat(EO,f)});case 26:case"end":return e.stop()}},e,null,[[2,8]])}));return function(t){return e.apply(this,arguments)}}(),n.handleChangeprogramee=function(){var e=Object(r.a)(wO().mark(function e(t,r){var a,o,i,c,l,u;return wO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({programee:r.value,frmsubmit:!1,degree:"All",sem:"All",subject:"All",date:"All"}),n.setState({loading:!0}),e.prev=2,e.next=5,Q.a.get(K.b+"a=loadtdvsdegree&univcode="+localStorage.getItem("univcode")+"&program="+r.value+"°grp="+n.state.deggrp).then(function(e){if(0!==e.data.error_code)return n.toggleAlert(e.data.data.msg,"error"),void n.setState({});n.setState({degreenall:e.data.data})});case 5:n.setState({loading:!1}),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(2),alert(e.t0),e.abrupt("return");case 12:a=n.state.degreenall.degree.map(function(e){return{key:e.fdegree,value:e.fdegree,text:e.fdegree+" - "+e.fdescpn}}),o=[].concat(EO,Object(oe.a)(a)),n.setState({degreeOption:o}),i=n.state.degreenall.subject.map(function(e){return{key:e.fqpcode,value:e.fqpcode,text:e.fqpcode+" - "+e.fsubname}}),c=[].concat(EO,Object(oe.a)(i)),n.setState({subjOption:c}),l=n.state.degreenall.dates.map(function(e){return{key:e.fdoe,value:e.fdoe,text:e.fdoe}}),u=[].concat(EO,Object(oe.a)(l)),n.setState({dateOption:u});case 21:case"end":return e.stop()}},e,null,[[2,8]])}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChangeDegree=function(){var e=Object(r.a)(wO().mark(function e(t,r){var a,o,i,c;return wO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({degree:r.value,sem:"All",subject:"All",date:"All"}),n.setState({loading:!0}),e.prev=2,e.next=5,Q.a.get(K.b+"a=loadtdvssubject&univcode="+localStorage.getItem("univcode")+"°ree="+r.value+"°grp="+n.state.deggrp+"&program="+n.state.programee).then(function(e){console.log(e,"cbcv"),0===e.data.error_code?n.setState({semnall:e.data.data}):n.toggleAlert(e.data.data.msg,"error")});case 5:n.setState({loading:!1}),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(2),alert(e.t0),e.abrupt("return");case 12:a=n.state.semnall.subject.map(function(e){return{key:e.fqpcode,value:e.fqpcode,text:e.fqpcode+" - "+e.fsubname}}),o=[].concat(EO,Object(oe.a)(a)),n.setState({subjOption:o}),i=n.state.semnall.dates.map(function(e){return{key:e.fdoe,value:e.fdoe,text:e.fdoe}}),c=[].concat(EO,Object(oe.a)(i)),n.setState({dateOption:c,frmsubmit:!1});case 18:case"end":return e.stop()}},e,null,[[2,8]])}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChangeSem=function(){var e=Object(r.a)(wO().mark(function e(t,r){var a,o,i,c;return wO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({sem:r.value,frmsubmit:!1,subject:"All",date:"All"}),n.setState({loading:!0}),e.prev=2,e.next=5,Q.a.get(K.b+"a=loadtdvssubj&univcode="+localStorage.getItem("univcode")+"&sem="+r.value+"°grp="+n.state.deggrp+"&program="+n.state.programee+"°ree="+n.state.degree).then(function(e){console.log(e,"cbcv"),0===e.data.error_code?n.setState({subjnall:e.data.data}):n.toggleAlert(e.data.data.msg,"error")});case 5:n.setState({loading:!1}),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(2),alert(e.t0),e.abrupt("return");case 12:a=n.state.subjnall.subject.map(function(e){return{key:e.fqpcode,value:e.fqpcode,text:e.fqpcode+" - "+e.fsubname}}),o=[].concat(EO,Object(oe.a)(a)),n.setState({subjOption:o}),i=n.state.subjnall.dates.map(function(e){return{key:e.fdoe,value:e.fdoe,text:e.fdoe}}),c=[].concat(EO,Object(oe.a)(i)),n.setState({dateOption:c});case 18:case"end":return e.stop()}},e,null,[[2,8]])}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChangeSub=function(){var e=Object(r.a)(wO().mark(function e(t,r){var a,o;return wO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({subject:r.value,date:"All"}),n.setState({loading:!0}),e.prev=2,e.next=5,Q.a.get(K.b+"a=loadtdvsdate&univcode="+localStorage.getItem("univcode")+"&subject="+r.value+"°grp="+n.state.deggrp+"&program="+n.state.programee+"°ree="+n.state.degree+"&sem="+n.state.sem).then(function(e){console.log(e,"cbcv"),0===e.data.error_code?n.setState({tdvsdate:e.data.data}):n.toggleAlert(e.data.data.msg,"error")});case 5:n.setState({loading:!1}),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(2),alert(e.t0),e.abrupt("return");case 12:a=n.state.tdvsdate.map(function(e){return{key:e.fdoe,value:e.fdoe,text:e.fdoe}}),o=[].concat(EO,Object(oe.a)(a)),n.setState({dateOption:o,frmsubmit:!1});case 15:case"end":return e.stop()}},e,null,[[2,8]])}));return function(t,n){return e.apply(this,arguments)}}(),n.handleDateChangeFrom=function(){var e=Object(r.a)(wO().mark(function e(t,r){return wO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:"date",n.setState({date:r.value,frmdate:"",todate:"",qpfrm:"0",qpto:"Z",qpPtrnStatus:"All",qpStatus:"All",ansKeyStatus:"All",table:[]}),n.setState({frmsubmit:!1});case 3:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.getTdvsStats=Object(r.a)(wO().mark(function e(){return wO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==n.state.deggrp){e.next=3;break}return n.toggleAlert("Select Degree Group","error"),e.abrupt("return");case 3:if(""!==n.state.programee){e.next=6;break}return n.toggleAlert("Select Programmee","error"),e.abrupt("return");case 6:if(""!==n.state.degree){e.next=9;break}return n.toggleAlert("Select degree","error"),e.abrupt("return");case 9:if(""!==n.state.sem){e.next=12;break}return n.toggleAlert("Select sem","error"),e.abrupt("return");case 12:if(""!==n.state.subject){e.next=15;break}return n.toggleAlert("Select Subject","error"),e.abrupt("return");case 15:if(""!==n.state.date){e.next=18;break}return n.toggleAlert("Select Date","error"),e.abrupt("return");case 18:return n.setState({loading:!0}),e.prev=19,e.next=22,Q.a.get(K.b+"a=loadtdvsstats&univcode="+localStorage.getItem("univcode")+"°grp="+n.state.deggrp+"&programee="+n.state.programee+"°ree="+n.state.degree+"&sem="+n.state.sem+"&subject="+n.state.subject+"&date="+n.state.date+"&frmdate="+n.state.frmdate+"&todate="+n.state.todate+"&qpfrm="+n.state.qpfrm+"&qpto="+n.state.qpto+"&qpptrn="+n.state.qpPtrnStatus+"&qpstatus="+n.state.qpStatus+"&ansstats="+n.state.ansKeyStatus).then(function(e){if(console.log(e,"vvvsss"),0===e.data.error_code)n.setState({table:e.data.data});else{if(-1===e.data.error_code)return void n.toggleAlert(e.data.data.msg,"error");n.toggleAlert("Something Went Wrong","error")}});case 22:n.setState({loading:!1}),e.next=29;break;case 25:return e.prev=25,e.t0=e.catch(19),alert(e.t0),e.abrupt("return");case 29:n.setState({frmsubmit:!0,showValuationCards:!1});case 30:case"end":return e.stop()}},e,null,[[19,25]])})),n.loadtdvsstats=Object(r.a)(wO().mark(function e(){return wO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)})),n.handleCancel=function(){window.location.reload()},n.onViewClick=function(){var e=Object(r.a)(wO().mark(function e(t){return wO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.prev=1,e.next=4,Q.a.get(K.b+"a=loadqpdetails&univcode="+localStorage.getItem("univcode")+"&fqpcode="+t).then(function(e){0===e.data.error_code?n.setState({valuationData:e.data.data,showValuationCards:!0,selectedQPCode:t,viewdis:!0}):n.toggleAlert(e.data.data.msg,"error")});case 4:n.setState({loading:!1}),e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),alert(e.t0),e.abrupt("return");case 11:case"end":return e.stop()}},e,null,[[1,7]])}));return function(t){return e.apply(this,arguments)}}(),n.handleHideValuationCards=function(){n.setState({showValuationCards:!1,selectedQPCode:null,viewdis:!1})},n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"renderValuationTables",value:function(){var e=this.state.valuationData.result1;return e&&0!==e.length?Object(oe.a)(new Set(e.map(function(e){return e.fvalno}))).map(function(t){return i.a.createElement(te.a,{key:t,style:{width:"700px"}},i.a.createElement(te.a.Content,null,i.a.createElement(ce.a,{celled:!0},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{colSpan:"5",style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"Valuation ",t)),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"Teacher Code"),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"Teacher Name"),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"Assigned Scripts"),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"Tot. Valued"))),i.a.createElement(ce.a.Body,null,e.filter(function(e){return e.fvalno===t}).map(function(e,t){return null===e.teachstatus?i.a.createElement(ce.a.Row,{key:t},i.a.createElement(ce.a.Cell,{textAlign:"center",colSpan:"4"},"Teacher Not Assigned")):e.teachstatus.split("*").map(function(e,n){var r=e.split(" - ");return i.a.createElement(ce.a.Row,{key:"".concat(t,"_").concat(n)},i.a.createElement(ce.a.Cell,{textAlign:"center"},r[0]||"Teacher not assigned"),i.a.createElement(ce.a.Cell,{textAlign:"center"},r[1]||"Teacher not assigned"),i.a.createElement(ce.a.Cell,{textAlign:"center"},r[2]||"Teacher not assigned"),i.a.createElement(ce.a.Cell,{textAlign:"center"},r[3]||"Teacher not assigned"))})})))))}):null}},{key:"render",value:function(){var e=this,t=this.state,n=t.loading,r=t.showAlert,a=t.alertMessage,o=t.alertType,c=[{key:"All",value:"All",text:"All"}],l=this.state.fdeggrp.map(function(e){return{key:e.fdeggrp,value:e.fdeggrp,text:e.fdescpn}}),u=[].concat(c,Object(oe.a)(l)),s=[].concat(c,[{key:"A",value:"A",text:"I Semester"},{key:"B",value:"B",text:"II Semester"},{key:"C",value:"C",text:"III Semester"},{key:"D",value:"D",text:"IV Semester"},{key:"E",value:"E",text:"V Semester"},{key:"F",value:"F",text:"VI Semester"},{key:"G",value:"G",text:"VII Semester"},{key:"H",value:"H",text:"VIII Semester"},{key:"I",value:"I",text:"IX Semester"},{key:"J",value:"J",text:"X Semester"}]);return i.a.createElement("div",null,i.a.createElement(te.a,{fluid:!0},i.a.createElement(bO.a,null,i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h4",null,"TDVS Statistics")),i.a.createElement("div",{className:"ml-auto"},i.a.createElement(ne.a,{size:"mini",basic:!0,color:"blue",icon:"ban",content:"Clear",onClick:this.handleCancel})))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,{style:{height:"auto"}},i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Degree Group"),i.a.createElement(p.a,{fluid:!0,selection:!0,search:!0,value:this.state.deggrp,options:u,name:"deggrp",placeholder:"Select Degree Group",onChange:this.handleChangeDeggrp})),i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Program"),i.a.createElement(p.a,{fluid:!0,selection:!0,search:!0,value:this.state.programee,options:this.state.programeOpts,name:"programee",placeholder:"Select Programee",onChange:this.handleChangeprogramee})),i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Degree"),i.a.createElement(p.a,{fluid:!0,selection:!0,search:!0,value:this.state.degree,options:this.state.degreeOption,name:"degree",placeholder:"Select Degree",onChange:this.handleChangeDegree}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"QP Code / Course"),i.a.createElement(p.a,{fluid:!0,selection:!0,search:!0,value:this.state.subject,options:this.state.subjOption,name:"subject",placeholder:"Select Subject",onChange:this.handleChangeSub})),i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Sem/Year"),i.a.createElement(p.a,{fluid:!0,selection:!0,search:!0,value:this.state.sem,options:s,name:"sem",placeholder:"Select Sem",onChange:this.handleChangeSem})),i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Exam Date"),i.a.createElement(p.a,{fluid:!0,selection:!0,search:!0,value:this.state.date,options:this.state.dateOption,name:"date",placeholder:"Exam Date",onChange:this.handleDateChangeFrom}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:3},i.a.createElement("label",null,"From Date"),i.a.createElement("input",{type:"date",onChange:function(t){e.setState({frmdate:t.target.value,frmsubmit:!1,date:"All"})},mask:"ed/nm/zyyy",clearIcon:!1,className:"date",name:"frmdate",value:this.state.frmdate})),i.a.createElement(le.a.Field,{width:3},i.a.createElement("label",null,"To date"),i.a.createElement("input",{type:"date",onChange:function(t){e.setState({todate:t.target.value,frmsubmit:!1,date:"All"})},mask:"ed/nm/zyyy",clearIcon:!1,className:"date",name:"frmdate",value:this.state.todate})),i.a.createElement(le.a.Field,{width:2},i.a.createElement("label",null,"QP From"),i.a.createElement(ue.a,{type:"text",value:this.state.qpfrm,name:"qpfrm",placeholder:"QP Range",onChange:function(t,n){return e.setState({qpfrm:n.value,frmsubmit:!1})}})),i.a.createElement(le.a.Field,{width:2},i.a.createElement("label",null,"QP To"),i.a.createElement(ue.a,{type:"text",value:this.state.qpto,name:"qpto",placeholder:"QP Range",onChange:function(t,n){return e.setState({qpto:n.value,frmsubmit:!1})}})),i.a.createElement(le.a.Field,{width:2},i.a.createElement("label",null,"QP Pattern Status"),i.a.createElement(p.a,{fluid:!0,selection:!0,search:!0,value:this.state.qpPtrnStatus,options:this.state.qpOption,name:"qpptr",onChange:function(t,n){return e.setState({qpPtrnStatus:n.value,frmsubmit:!1})}})),i.a.createElement(le.a.Field,{width:2},i.a.createElement("label",null,"QP Status"),i.a.createElement(p.a,{fluid:!0,selection:!0,search:!0,value:this.state.qpStatus,options:this.state.qpOption,name:"qpstut",onChange:function(t,n){return e.setState({qpStatus:n.value,frmsubmit:!1})}})),i.a.createElement(le.a.Field,{width:2},i.a.createElement("label",null,"Ans Key Status"),i.a.createElement(p.a,{fluid:!0,selection:!0,search:!0,value:this.state.ansKeyStatus,options:this.state.qpOption,name:"qpstut",onChange:function(t,n){return e.setState({ansKeyStatus:n.value,frmsubmit:!1})}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,null,i.a.createElement(ne.a,{basic:!0,color:"blue",onClick:this.getTdvsStats,content:"View",size:"tiny",disabled:this.state.viewdis})))),i.a.createElement(Dv,{loading:n}),i.a.createElement(Rv,{open:r,onClose:function(){return e.setState({showAlert:!1})},message:a,type:o}),this.state.frmsubmit&&!this.state.showValuationCards?i.a.createElement("div",{style:{overflowX:"auto"}},i.a.createElement(ce.a,{celled:!0},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"Sl.No"),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"Course Name"),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"Exm Date"),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"QP Pattern?"),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"QP Uploaded?"),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"Ans key Uploaded?"),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"Ans. bklt. Upl."),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"1st Val Tot."),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"1st Val Pend"),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"2nd Val Tot."),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"2nd Val Pend"),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"Devtion Tot."),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"Devtion Pend"),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"Decoded Count."),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"Action"))),i.a.createElement(ce.a.Body,null,this.state.table.map(function(t,n){return i.a.createElement(ce.a.Row,{key:n},i.a.createElement(ce.a.Cell,{style:{textAlign:"center"}},n+1),i.a.createElement(ce.a.Cell,null,t.fqpcode,"- ",t.FSUBNAME),i.a.createElement(ce.a.Cell,{style:{textAlign:"center"}},t.fdoe),i.a.createElement(ce.a.Cell,null,t.ftempcode?"Yes (".concat(t.ftempcode,")"):"No"),i.a.createElement(ce.a.Cell,{style:{textAlign:"center"}},t.qpupd),i.a.createElement(ce.a.Cell,{style:{textAlign:"center"}},t.ansupd),i.a.createElement(ce.a.Cell,{style:{textAlign:"center"}},t.updstatus),i.a.createElement(ce.a.Cell,{style:{textAlign:"center"}},t.fvalcnt),i.a.createElement(ce.a.Cell,{style:{textAlign:"center"}},t.fpend),i.a.createElement(ce.a.Cell,{style:{textAlign:"center"}},t.svalcnt),i.a.createElement(ce.a.Cell,{style:{textAlign:"center"}},t.spend),i.a.createElement(ce.a.Cell,{style:{textAlign:"center"}},t.dvalcnt),i.a.createElement(ce.a.Cell,{style:{textAlign:"center"}},t.dvalc),i.a.createElement(ce.a.Cell,{style:{textAlign:"center"}},t.decodestatus),i.a.createElement(ce.a.Cell,{style:{textAlign:"center"}},i.a.createElement(ne.a,{basic:!0,color:"blue",onClick:function(){return e.onViewClick(t.fqpcode)},icon:"eye",size:"mini"})))})))):null,this.state.showValuationCards&&i.a.createElement("div",{style:{position:"relative"}},i.a.createElement(ne.a,{basic:!0,color:"red",onClick:this.handleHideValuationCards,content:"Back",style:{position:"absolute",top:"-50px",right:0}}),i.a.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}},i.a.createElement(te.a,{style:{width:"700px"}},i.a.createElement(te.a.Content,null,i.a.createElement(ce.a,{celled:!0},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{colSpan:"5",style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},this.state.valuationData.result[0].fsubname," -",this.state.valuationData.result[0].fqpcode)),i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"Val. No."),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"Tot. Scriptd"),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"Tot. Valued"),i.a.createElement(ce.a.HeaderCell,{style:{textAlign:"center",background:"rgb(30, 127, 145)",color:"white"}},"Val. Pending"))),i.a.createElement(ce.a.Body,null,this.state.valuationData.result.map(function(e,t){return i.a.createElement(ce.a.Row,{key:t},i.a.createElement(ce.a.Cell,{style:{textAlign:"center"}},e.fvalno),i.a.createElement(ce.a.Cell,{style:{textAlign:"center"}},e.cnt),i.a.createElement(ce.a.Cell,{style:{textAlign:"center"}},e.fsstatus),i.a.createElement(ce.a.Cell,{style:{textAlign:"center"}},e.fpstatus))}))))),this.renderValuationTables()))))))}}]),t}(o.Component);function OO(){OO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var jO=function(e){function t(){var e,n;Object(mt.a)(this,t);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=Object(ft.a)(this,(e=Object(dt.a)(t)).call.apply(e,[this].concat(o)))).state={degrp:"All",board:"All",qpcode:"All",table:[],type:"",frmsubmit:!1,url:"",file:{},deggrp:[],boaddet:[],qpdet:[],tabRejScr:[],loading:!1,showAlert:!1,alertMessage:"",alertType:""},n.componentDidMount=Object(r.a)(OO().mark(function e(){return OO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.prev=1,e.next=4,Q.a.get(K.b+"a=getDegrGrp&univcode="+localStorage.getItem("univcode")).then(function(e){0===e.data.error_code?n.setState({deggrp:e.data.data}):n.setState({board:"All",qpcode:"All",table:[],type:"",frmsubmit:!1})});case 4:n.setState({loading:!1}),e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),alert(e.t0),e.abrupt("return");case 11:return e.next=13,n.scriptBoard(n.state.degrp);case 13:return e.next=15,n.qpRecjDet(n.state.degrp,n.state.qpcode);case 15:case"end":return e.stop()}},e,null,[[1,7]])})),n.scriptBoard=function(){var e=Object(r.a)(OO().mark(function e(t){return OO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(t,"scriptBoard"),n.setState({loading:!0}),e.prev=2,e.next=5,Q.a.get(K.b+"a=scriptBoardDet&univcode="+localStorage.getItem("univcode")+"°grp="+t).then(function(e){0===e.data.error_code&&n.setState({boaddet:e.data.data})});case 5:n.setState({loading:!1}),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(2),alert(e.t0),e.abrupt("return");case 12:case"end":return e.stop()}},e,null,[[2,8]])}));return function(t){return e.apply(this,arguments)}}(),n.qpRecjDet=function(){var e=Object(r.a)(OO().mark(function e(t,r){return OO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(t,r,"qpRecjDet"),n.setState({loading:!0}),e.prev=2,e.next=5,Q.a.get(K.b+"a=qpRecjDet&univcode="+localStorage.getItem("univcode")+"°grp="+t+"&board="+r).then(function(e){0===e.data.error_code&&n.setState({qpdet:e.data.data})});case 5:n.setState({loading:!1}),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(2),alert(e.t0),e.abrupt("return");case 12:case"end":return e.stop()}},e,null,[[2,8]])}));return function(t,n){return e.apply(this,arguments)}}(),n.degrp=function(){var e=Object(r.a)(OO().mark(function e(t,r){return OO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({degrp:r.value}),e.next=3,n.scriptBoard(r.value);case 3:n.setState({frmsubmit:!1});case 4:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.boardval=function(){var e=Object(r.a)(OO().mark(function e(t,r){return OO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({board:r.value}),e.next=3,n.qpRecjDet(n.state.degrp,r.value);case 3:n.setState({frmsubmit:!1});case 4:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.qpDetval=function(){var e=Object(r.a)(OO().mark(function e(t,r){return OO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({qpcode:r.value}),n.setState({frmsubmit:!1});case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.getRejScr=Object(r.a)(OO().mark(function e(){return OO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.getRejScrCheck(n.state.degrp,n.state.board,n.state.qpcode),n.setState({frmsubmit:!0});case 2:case"end":return e.stop()}},e)})),n.getRejScrCheck=function(){var e=Object(r.a)(OO().mark(function e(t,r,a){return OO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.prev=1,e.next=4,Q.a.get(K.b+"a=getRejScrCheck&univcode="+localStorage.getItem("univcode")+"°grp="+t+"&board="+r+"&qpcode="+a).then(function(e){0===e.data.error_code?n.setState({tabRejScr:e.data.data}):n.setState({board:"All",qpcode:"All",table:[],type:"",tabRejScr:[]})});case 4:n.setState({loading:!1}),e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),alert(e.t0),e.abrupt("return");case 11:case"end":return e.stop()}},e,null,[[1,7]])}));return function(t,n,r){return e.apply(this,arguments)}}(),n.handleCancel=Object(r.a)(OO().mark(function e(){return OO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({degrp:"All",board:"All",qpcode:"All",frmsubmit:!1});case 1:case"end":return e.stop()}},e)})),n.resetScript=function(){var e=Object(r.a)(OO().mark(function e(t,r,a,o){return OO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!("R"==o?window.confirm("Are you sure you want to do Reset?"):window.confirm("Are you sure you want to do Delete?"))){e.next=15;break}return e.prev=2,e.next=5,Q.a.post(K.b+"a=restRejScr&univcode="+localStorage.getItem("univcode")+"&qpcode="+t+"®code="+r+"&valno="+a+"&userid="+localStorage.getItem("fteachcode")+"&per="+o).then(function(e){0===e.data.error_code?n.getRejScr():n.toggleAlert(e.data.data.msg,"error")});case 5:n.setState({loading:!1}),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(2),alert(e.t0),e.abrupt("return");case 12:return e.next=14,n.getRejScrCheck(n.state.degrp,n.state.board,n.state.qpcode);case 14:n.setState({frmsubmit:!0});case 15:case"end":return e.stop()}},e,null,[[2,8]])}));return function(t,n,r,a){return e.apply(this,arguments)}}(),n.deleteScript=function(){var e=Object(r.a)(OO().mark(function e(t,r,a,o){var i,c;return OO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!window.confirm("Are You sure? You want to delete ? \n Finalized script will be deleted.")){e.next=10;break}return n.setState({loading:!0}),e.next=5,ee.post("/admin/del-reject-script?qpcode="+t+"®code="+r);case 5:i=e.sent,n.setState({loading:!1}),0===i.data.status?(alert(i.data.msg),c=n.state.tabRejScr.filter(function(e){return e.fregcode!=r}),n.setState({tabRejScr:c})):alert(i.data.msg),e.next=11;break;case 10:console.log("cancelled");case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),alert("Something went wrong");case 16:case"end":return e.stop()}},e,null,[[0,13]])}));return function(t,n,r,a){return e.apply(this,arguments)}}(),n.setFile=function(){var e=Object(r.a)(OO().mark(function e(t,r,a,o,i,c,l){var u,s;return OO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(u=o.split("/"),u[5],u[4],a+".pdf",n.setState({file:t.target.files[0]}),(s=new FormData).append("File",t.target.files[0]),s.append("univcode",localStorage.getItem("univcode")),s.append("QP",r),s.append("reg",a),s.append("filepath",o),s.append("Fmode",c),s.append("fdeggrp",i),s.append("fvalno",l),s.append("userid",localStorage.getItem("fteachcode")),!window.confirm("Are you sure you want to do Upload?")){e.next=31;break}return e.prev=17,e.next=20,Q.a.post(K.b+"a=uploadNewScript",s).then(function(e){-1===e.data.error_code?n.toggleAlert(e.data.data.msg,"error"):n.toggleAlert("","sucess")});case 20:n.setState({loading:!1}),e.next=27;break;case 23:return e.prev=23,e.t0=e.catch(17),alert(e.t0),e.abrupt("return");case 27:n.getRejScrCheck(n.state.degrp,n.state.board,n.state.qpcode),n.setState({frmsubmit:!0}),e.next=32;break;case 31:n.toggleAlert("File not Uploaded","error");case 32:case"end":return e.stop()}},e,null,[[17,23]])}));return function(t,n,r,a,o,i,c){return e.apply(this,arguments)}}(),n.toggleAlert=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";n.setState(function(n){return{showAlert:!n.showAlert,alertMessage:e,alertType:t}})},n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.loading,r=t.showAlert,a=t.alertMessage,o=t.alertType,c=t.degrp,l=t.board,u=t.qpcode,s=t.deggrp,f=t.boaddet,d=t.qpdet,h=t.tabRejScr,m=[{key:1,value:"All",text:"All"}],v=s.map(function(e){return{key:e.fdeggrp,value:e.fdeggrp,text:e.fdeggrp+"-"+e.fdescpn}}),g=[].concat(m,Object(oe.a)(v)),y=f.map(function(e){return{key:e.fboard,value:e.fboard,text:e.fboard+"-"+e.fboardname}}),b=[].concat(m,Object(oe.a)(y)),w=d.map(function(e){return{key:e.fqpcode,value:e.fqpcode,text:e.fqpcode}}),E=[].concat(m,Object(oe.a)(w));return i.a.createElement("div",{className:"animated fadeIn"},i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,{style:{height:"720px"}},i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h3",null,"Rejected Script Cross Check")),i.a.createElement("div",{className:"ml-auto"},i.a.createElement(ne.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"})))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,{style:{overflowY:"auto",height:"700px"}},i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:8},i.a.createElement("label",null,"Degree Group"),i.a.createElement(p.a,{openOnFocus:!0,fluid:!0,search:!0,selection:!0,options:g,value:c,onChange:this.degrp,allowAdditions:!0,placeholder:"Degree Group",autoFocus:!0})),i.a.createElement(le.a.Field,{width:8},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{openOnFocus:!0,fluid:!0,search:!0,selection:!0,options:b,value:l,onChange:this.boardval,allowAdditions:!0,autoFocus:!0}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:8},i.a.createElement("label",null,"QP Code"),i.a.createElement(p.a,{openOnFocus:!0,fluid:!0,search:!0,selection:!0,options:E,value:u,onChange:this.qpDetval,allowAdditions:!0,autoFocus:!0})),i.a.createElement(le.a.Field,{width:8},i.a.createElement(ne.a,{style:{bottom:"1px",position:"absolute"},basic:!0,color:"blue",onClick:function(){return e.getRejScr()}},"Submit")))),i.a.createElement(Dv,{loading:n}),i.a.createElement(Rv,{open:r,onClose:function(){return e.setState({showAlert:!1})},message:a,type:o}),this.state.frmsubmit&&i.a.createElement("div",{style:{width:"100%",height:"550px",overflowY:"auto",marginTop:"4px"}},i.a.createElement("table",{style:{width:"100%",border:"1px solid"}},i.a.createElement("thead",{style:{backgroundColor:"#1e7f91",color:"white",height:"40px",position:"sticky",top:0}},i.a.createElement("tr",null,i.a.createElement("th",{style:{textAlign:"center",border:"1px solid black",width:"8%"}},"Sl. No."),i.a.createElement("th",{style:{textAlign:"center",border:"1px solid black",width:"15%"}},"QP Code"),i.a.createElement("th",{style:{textAlign:"center",border:"1px solid black",width:"25%"}},"Subject Name"),i.a.createElement("th",{style:{textAlign:"center",border:"1px solid black",width:"15%"}},"Reg. Code."),i.a.createElement("th",{style:{textAlign:"center",border:"1px solid black",width:"7%"}},"Val. No."),i.a.createElement("th",{style:{textAlign:"center",border:"1px solid black",width:"15%"}},"Remarks"),i.a.createElement("th",{style:{textAlign:"center",border:"1px solid black",width:"15%"}},"Action"))),i.a.createElement("tbody",null,h.length>0?h.map(function(t,n){return i.a.createElement("tr",{key:n,style:{textAlign:"center"}},i.a.createElement("td",{style:{border:"1px solid black"}},n+1),i.a.createElement("td",{style:{border:"1px solid black"}},t.fqpcode),i.a.createElement("td",{style:{border:"1px solid black",textAlign:"left"}},t.fsubname),i.a.createElement("td",{style:{border:"1px solid black"}},i.a.createElement("a",{target:"_blank",href:"https://answer-booklets.s3.ap-south-1.amazonaws.com/"+t.ffilepath},t.fregcode)),i.a.createElement("td",{style:{border:"1px solid black"}},t.fvalno),i.a.createElement("td",{style:{border:"1px solid black",textAlign:"left"}},t.frejreason+" "+t.frejremarks),i.a.createElement("td",{style:{border:"1px solid black"}},i.a.createElement(ne.a,{basic:!0,size:"small",color:"black",content:"Reset",onClick:function(){return e.resetScript(t.fqpcode,t.fregcode,t.fvalno,"R")}}),i.a.createElement(ne.a,{basic:!0,size:"small",type:"delete",color:"red",content:"Delete",onClick:function(){return e.deleteScript(t.fqpcode,t.fregcode,t.fvalno,"D")}})))}):i.a.createElement("tr",null,i.a.createElement("td",{colSpan:9,align:"center"},"No data found")))))))))}}]),t}(o.Component);n(1402);function kO(){kO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var SO=function(e){function t(){var e,n,a;Object(mt.a)(this,t);for(var o=arguments.length,i=new Array(o),c=0;c<o;c++)i[c]=arguments[c];return(a=Object(ft.a)(this,(e=Object(dt.a)(t)).call.apply(e,[this].concat(i)))).state=(n={deggrp:"All",board:"All",qpcode:"",type:"All",limit:50,url:null,table:[],frmsubmit:!1,count:"",loading:!1,showAlert:!1,alertMessage:"",alertType:"",DegreeDetails:[],tdvsBoardDet:[],qpcod:[]},Object(se.a)(n,"table",[]),Object(se.a)(n,"regcodedata",[]),n),a.toggleAlert=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";a.setState(function(n){return{showAlert:!n.showAlert,alertMessage:e,alertType:t}})},a.componentDidMount=Object(r.a)(kO().mark(function e(){return kO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.generateDegreeDetails();case 2:return e.next=4,a.getTDVSBoardDetails(a.state.deggrp);case 4:a.getTdvsQPDetails(a.state.board,a.state.deggrp);case 5:case"end":return e.stop()}},e)})),a.generateDegreeDetails=function(){var e=Object(r.a)(kO().mark(function e(t){return kO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a.setState({loading:!0}),e.prev=1,e.next=4,Q.a.get(K.b+"a=generateDegreeDetails&univcode="+localStorage.getItem("univcode")+"°grp="+t).then(function(e){0===e.data.error_code?a.setState({DegreeDetails:e.data.data}):a.toggleAlert(e.data.data.msg,"error")});case 4:a.setState({loading:!1}),e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),alert(e.t0),e.abrupt("return");case 11:case"end":return e.stop()}},e,null,[[1,7]])}));return function(t){return e.apply(this,arguments)}}(),a.getTDVSBoardDetails=function(){var e=Object(r.a)(kO().mark(function e(t){return kO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a.setState({loading:!0}),e.prev=1,e.next=4,Q.a.get(K.b+"a=getTDVSBoardDetails&univcode="+localStorage.getItem("univcode")+"°grp="+t).then(function(e){0===e.data.error_code?a.setState({tdvsBoardDet:e.data.data}):a.toggleAlert(e.data.data.msg,"error")});case 4:a.setState({loading:!1}),e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),alert(e.t0),e.abrupt("return");case 11:case"end":return e.stop()}},e,null,[[1,7]])}));return function(t){return e.apply(this,arguments)}}(),a.getTdvsQPDetails=function(){var e=Object(r.a)(kO().mark(function e(t,n){return kO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a.setState({loading:!0}),e.prev=1,e.next=4,Q.a.get(K.b+"a=getTdvsQPDetails&univcode="+localStorage.getItem("univcode")+"&board="+t+"°grp="+n).then(function(e){0===e.data.error_code?a.setState({qpcod:e.data.data}):a.toggleAlert(e.data.data.msg,"error")});case 4:a.setState({loading:!1}),e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),alert(e.t0),e.abrupt("return");case 11:case"end":return e.stop()}},e,null,[[1,7]])}));return function(t,n){return e.apply(this,arguments)}}(),a.getQPDetails=Object(r.a)(kO().mark(function e(){return kO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=a.state.deggrp){e.next=3;break}return a.toggleAlert("Select Degree Group","error"),e.abrupt("return");case 3:if(""!=a.state.board){e.next=6;break}return a.toggleAlert("Select Board","error"),e.abrupt("return");case 6:if(""!=a.state.qpcode){e.next=9;break}return a.toggleAlert("Select Qpcode","error"),e.abrupt("return");case 9:return e.next=11,a.getQPVerificationDet(a.state.deggrp,a.state.board,a.state.qpcode,a.state.type,a.state.limit);case 11:console.log(a.state.regcodedata,"vbsv"),a.setState({frmsubmit:!0}),a.setState({table:a.state.regcodedata}),a.state.regcodedata.map(function(e,t){0===t&&(a.setState({url:e.FFILEPATH}),a.setState({count:t+1}))});case 15:case"end":return e.stop()}},e)})),a.getQPVerificationDet=function(){var e=Object(r.a)(kO().mark(function e(t,n,r,o,i){return kO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("sssss"),a.setState({loading:!0}),e.prev=2,e.next=5,Q.a.get(K.b+"a=getQPVerificationDet&univcode="+localStorage.getItem("univcode")+"°grp="+t+"&board="+n+"&qpcode="+r+"&type="+o+"&limit="+i).then(function(e){console.log(e,"ss"),0===e.data.error_code?a.setState({regcodedata:e.data.data}):a.toggleAlert(e.data.data.msg,"error")});case 5:a.setState({loading:!1}),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(2),alert(e.t0),e.abrupt("return");case 12:case"end":return e.stop()}},e,null,[[2,8]])}));return function(t,n,r,a,o){return e.apply(this,arguments)}}(),a.handleSave=Object(r.a)(kO().mark(function e(){var t;return kO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=a.state.deggrp){e.next=3;break}return a.toggleAlert("Select Degree Group","error"),e.abrupt("return");case 3:if(""!=a.state.board){e.next=6;break}return a.toggleAlert("Select Board","error"),e.abrupt("return");case 6:if(""!=a.state.qpcode){e.next=9;break}return a.toggleAlert("Select Qpcode","error"),e.abrupt("return");case 9:t=[],a.state.table.map(function(e,n){if(null!=e.FVERSTATUS&&""!=e.FVERSTATUS){var r={qpcode:e.FQPCODE,regcode:e.FREGCODE,status:e.FVERSTATUS,remarks:e.FVERREMARKS,user:a.props.user};t.push(r)}}),a.verifyRegcode(t);case 12:case"end":return e.stop()}},e)})),a.verifyRegcode=function(){var e=Object(r.a)(kO().mark(function e(t){return kO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a.setState({loading:!0}),e.prev=1,e.next=4,Q.a.post(K.b+"a=verifyRegcode&univcode="+localStorage.getItem("univcode")+"&data="+JSON.stringify(t)).then(function(e){-1===e.data.error_code&&a.toggleAlert(e.data.data.msg,"error"),0!==e.data.error_code||a.toggleAlert(e.data.data.msg,"success")});case 4:a.setState({loading:!1}),e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),alert(e.t0),e.abrupt("return");case 11:case"end":return e.stop()}},e,null,[[1,7]])}));return function(t){return e.apply(this,arguments)}}(),a.handleCancel=function(){a.setState({deggrp:"All",board:"All",qpcode:"",type:"All",limit:50,url:null,table:[],frmsubmit:!1,count:""})},a.handleChangeStatus=function(e,t){var n=a.state.table.map(function(n,r){return r===e&&(n.FVERSTATUS=t),n});a.setState({table:n})},a.handleApproveCheck=function(e,t,n){var r=a.state.table.map(function(n,r){return t.FREGCODE===n.FREGCODE&&e&&(n.FVERSTATUS="Approved"),n});a.setState({table:r});a.state.table.map(function(e,t){n+1==t&&(a.setState({url:e.FFILEPATH}),a.setState({count:n+1+1}))})},a.handleRejectCheck=function(e,t,n){var r=a.state.table.map(function(n,r){return t.FREGCODE===n.FREGCODE&&e&&(n.FVERSTATUS="Rejected",n.FVERREMARKS="Scanned Not Properly / QP code not matched"),n});a.setState({table:r});a.state.table.map(function(e,t){n+1==t&&(a.setState({url:e.FFILEPATH}),a.setState({count:n+1+1}))})},a}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.loading,r=t.showAlert,a=t.alertMessage,o=t.alertType,c=[{key:"All",value:"All",text:"All"}],l=this.state.DegreeDetails.map(function(e,t){return{key:t,value:e.fdeggrp,text:"".concat(e.fdeggrp," - ").concat(e.fdescpn)}}),u=[].concat(c,Object(oe.a)(l)),s=this.state.tdvsBoardDet.map(function(e,t){return{key:t,value:"".concat(e.fboard),text:"".concat(e.fboard," - ").concat(e.fboardname)}}),f=[].concat(c,Object(oe.a)(s)),d=this.state.qpcod.map(function(e,t){return{key:t,value:"".concat(e.fqpcode),text:"".concat(e.fqpcode," - ").concat(e.fsubname)}});return i.a.createElement("div",{className:"animated fadeIn"},i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,{style:{height:"720px"}},i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h3",null,"Regcode Verification")),i.a.createElement("div",{className:"ml-auto"},i.a.createElement(ne.a,{basic:!0,color:"green",icon:"save",onClick:this.handleSave,content:"Save"}),i.a.createElement(ne.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"})))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,{style:{overflowY:"auto",height:"700px"}},i.a.createElement(h.a,{columns:2,divided:!0},i.a.createElement(h.a.Column,{width:7},i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:8},i.a.createElement("label",null,"Degree Group"),i.a.createElement(p.a,{openOnFocus:!0,fluid:!0,search:!0,selection:!0,value:this.state.deggrp,options:u,allowAdditions:!0,placeholder:"Degree Group",onChange:function(t,n){e.setState({deggrp:n.value}),e.getTDVSBoardDetails(n.value)},autoFocus:!0})),i.a.createElement(le.a.Field,{width:8},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{openOnFocus:!0,fluid:!0,search:!0,selection:!0,value:this.state.board,options:f,allowAdditions:!0,placeholder:"board",onChange:function(t,n){e.setState({board:n.value}),e.getTdvsQPDetails(n.value,e.state.deggrp)},autoFocus:!0}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:8},i.a.createElement("label",null,"QP Code"),i.a.createElement(p.a,{openOnFocus:!0,fluid:!0,search:!0,selection:!0,value:this.state.qpcode,options:d,allowAdditions:!0,placeholder:"Select Board",onChange:function(t,n){return e.setState({qpcode:n.value})},autoFocus:!0})),i.a.createElement(le.a.Field,{width:8},i.a.createElement("label",null,"Type"),i.a.createElement(p.a,{openOnFocus:!0,fluid:!0,search:!0,selection:!0,value:this.state.type,options:[{key:"All",value:"All",text:"All"},{key:"Verified",value:"Verified",text:"Verified"},{key:"Rejected",value:"Rejected",text:"Rejected"},{key:"Pending",value:"Pending",text:"Pending"}],allowAdditions:!0,placeholder:"Type",onChange:function(t,n){return e.setState({type:n.value})},autoFocus:!0}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:8},i.a.createElement("label",null,"Limit"),i.a.createElement(p.a,{openOnFocus:!0,fluid:!0,search:!0,selection:!0,value:this.state.limit,options:[{key:"All",value:"All",text:"All"},{key:10,value:10,text:10},{key:50,value:50,text:50},{key:100,value:100,text:100}],allowAdditions:!0,placeholder:"Limit",onChange:function(t,n){return e.setState({limit:n.value})},autoFocus:!0})),i.a.createElement(le.a.Field,{width:8},i.a.createElement(ne.a,{style:{bottom:"1px",position:"absolute"},basic:!0,color:"green",onClick:function(){return e.getQPDetails()}},"View")))),i.a.createElement(Dv,{loading:n}),i.a.createElement(Rv,{open:r,onClose:function(){return e.setState({showAlert:!1})},message:a,type:o}),this.state.frmsubmit&&i.a.createElement("div",{style:{marginTop:"20px",height:"390px",width:"100%",overflowY:"auto"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",{class:"red"},i.a.createElement("th",null,"Sl. No."),i.a.createElement("th",null,"Reg. Code"),i.a.createElement("th",null,"File Name"),i.a.createElement("th",null,"Approve"),i.a.createElement("th",null,"Reject"))),i.a.createElement("tbody",null,this.state.table.map(function(t,n){var r=t.FFILEPATH.split("/");return i.a.createElement("tr",{style:{backgroundColor:e.state.count-1==n?"green":"#fff",color:e.state.count-1==n?"#fff":"#000"}},i.a.createElement("td",{style:{textAlign:"center",width:"40px"}},n+1),i.a.createElement("td",{style:{cursor:"pointer",textAlign:"center"},onClick:function(){e.setState({url:t.FFILEPATH}),e.setState({count:n+1})}},t.FREGCODE),i.a.createElement("td",{style:{cursor:"pointer",textAlign:"center"},onClick:function(){e.setState({url:t.FFILEPATH}),e.setState({count:n+1})}},r[r.length-1]),i.a.createElement("td",{style:{textAlign:"center"}},i.a.createElement(Xm.a,{checked:"Approved"==t.FVERSTATUS,onClick:function(r,a){return e.handleApproveCheck(a.checked,t,n)}})),i.a.createElement("td",{style:{textAlign:"center"}},i.a.createElement(Xm.a,{checked:"Rejected"==t.FVERSTATUS,onClick:function(r,a){return e.handleRejectCheck(a.checked,t,n)}})))}))))),i.a.createElement(h.a.Column,{width:9},i.a.createElement(sO.a,{style:{overflow:"auto !important"}},i.a.createElement("iframe",{src:"https://answer-booklets.s3.ap-south-1.amazonaws.com/"+this.state.url+"#view=fitH,300",width:"100%",height:"600px",onLoad:this.handlePdfLoaded}))))))))}}]),t}(o.Component);function _O(){_O=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var CO=function(e){function t(){var e,n;Object(mt.a)(this,t);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=Object(ft.a)(this,(e=Object(dt.a)(t)).call.apply(e,[this].concat(o)))).state={qpcode:"All",qpdet:!1,searchQP:"",resQPDet:[],totansup:[],loading:!1,showAlert:!1,alertMessage:"",alertType:""},n.toggleAlert=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";n.setState(function(n){return{showAlert:!n.showAlert,alertMessage:e,alertType:t}})},n.componentDidMount=function(){n.loadQPDet()},n.loadQPDet=Object(r.a)(_O().mark(function e(){return _O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.prev=1,e.next=4,Q.a.get(K.b+"a=loadQPDet&univcode="+localStorage.getItem("univcode")).then(function(e){0===e.data.error_code?n.setState({resQPDet:e.data.data}):n.toggleAlert(e.data.data.msg,"error")});case 4:n.setState({loading:!1}),e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),alert(e.t0),e.abrupt("return");case 11:case"end":return e.stop()}},e,null,[[1,7]])})),n.qpcode=function(){var e=Object(r.a)(_O().mark(function e(t,r){return _O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({qpcode:r.value});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.submitQP=Object(r.a)(_O().mark(function e(){return _O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=n.state.qpcode){e.next=3;break}return n.toggleAlert("Select QP Code","error"),e.abrupt("return");case 3:return e.next=5,n.totUploadAnsBookDet(n.state.qpcode);case 5:n.setState({qpdet:!0});case 6:case"end":return e.stop()}},e)})),n.totUploadAnsBookDet=function(){var e=Object(r.a)(_O().mark(function e(t){return _O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({loading:!0}),e.prev=1,e.next=4,Q.a.get(K.b+"a=totUploadAnsBookDet&univcode="+localStorage.getItem("univcode")+"&qpcode="+t).then(function(e){0===e.data.error_code?n.setState({totansup:e.data.data}):n.toggleAlert(e.data.data.msg,"error")});case 4:n.setState({loading:!1}),e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),alert(e.t0),e.abrupt("return");case 11:case"end":return e.stop()}},e,null,[[1,7]])}));return function(t){return e.apply(this,arguments)}}(),n.handleCancel=function(){n.setState({qpcode:"All",qpdet:!1,searchQP:"",totansup:[],loading:!1,showAlert:!1,alertMessage:"",alertType:""})},n}return Object(pt.a)(t,e),Object(vt.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.qpcode,r=t.qpdet,a=t.resQPDet,o=t.totansup,c=t.loading,l=t.showAlert,u=t.alertMessage,s=t.alertType,f=a.map(function(e,t){return{key:t,value:e.fqpcode,text:e.fqpcode+" - "+e.fsubname}}),d=[].concat([{key:"All",value:"All",text:"All"}],Object(oe.a)(f));return i.a.createElement("div",null,i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h3",null,"Uploaded Answer Book")),i.a.createElement("div",{className:"ml-auto"},i.a.createElement(ne.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"})))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,null,i.a.createElement("div",null,i.a.createElement("label",null,"QP Code"),i.a.createElement("label",{style:{marginLeft:"5px"}},":"),i.a.createElement(p.a,{search:!0,selection:!0,style:{width:"400px",marginLeft:"5px"},options:d,value:n,onChange:this.qpcode,placeholder:"Select QP Code"})),i.a.createElement("div",null,i.a.createElement(ne.a,{style:{marginTop:"5px",marginLeft:"58px"},content:"Submit",color:"blue",onClick:this.submitQP})))),i.a.createElement(Dv,{loading:c}),i.a.createElement(Rv,{open:l,onClose:function(){return e.setState({showAlert:!1})},message:u,type:s}),r?i.a.createElement("div",{style:{width:"100%",height:"550px",overflowY:"auto",marginTop:"4px"}},i.a.createElement("table",{style:{width:"100%",border:"1px solid"}},i.a.createElement("thead",{style:{backgroundColor:"#1e7f91",color:"white",height:"40px",position:"sticky",top:0}},i.a.createElement("tr",null,i.a.createElement("td",{colSpan:7},i.a.createElement("input",{placeholder:"Search...",onChange:function(t){e.setState({searchQP:t.target.value})},value:this.state.searchQP,style:{width:"100%",padding:"5px",margin:"10px 0",borderRadius:"15px"}}))),i.a.createElement("tr",{style:{height:"40px"}},i.a.createElement("th",{style:{border:"1px solid",textAlign:"center",width:"5%",borderTop:"1px solid",borderLeft:"1px solid"}},"Sl. No."),i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"10%"}},"QP Code."),i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",width:"40%"}},"Subject Name"),i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"5%"}},"1st Val.No."),i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"5%"}},"2nd Val.No."),i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"5%"}},"Deviation"),i.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"5%"}},"Revaluation"))),i.a.createElement("tbody",null,o.filter(function(t){return t.fqpcode.toLowerCase().includes(e.state.searchQP.toLowerCase())||t.subname.toLowerCase().includes(e.state.searchQP.toLowerCase())}).map(function(e,t){return i.a.createElement("tr",{key:t},i.a.createElement("td",{style:{border:"1px solid",textAlign:"center",width:"5%",height:"30px"}},t+1),i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"10%",height:"30px"}},e.fqpcode),i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",width:"40%",height:"30px",paddingLeft:"10px"}},e.subname),i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",paddingLeft:"10px",width:"5%",height:"30px"}},e.fst),i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"5%",height:"30px"}},e.sst),i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"5%",height:"30px"}},e.dst),i.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"5%",height:"30px"}},e.rst))})))):null))))}}]),t}(o.Component);function LO(){LO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var AO=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),u=(c[0],c[1]),s=Object(a.a)(n,2),f=(s[0],s[1]),d=Object(o.useState)({qpcode:"",regcodeFrom:"0",regcodeTo:"Z",year:"",examtype:""}),h=Object(a.a)(d,2),v=h[0],g=h[1],y=Object(o.useState)(!1),b=Object(a.a)(y,2),w=b[0],E=b[1],x=Object(o.useState)([]),O=Object(a.a)(x,2),j=O[0],k=O[1],S=Object(o.useState)([]),_=Object(a.a)(S,2),C=_[0],L=_[1];Object(o.useEffect)(function(){A()},[]);var A=function(){var e=Object(r.a)(LO().mark(function e(){return LO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),e.next=3,ee.get("/admin/get-upd-qpcodes?type=delete").then(function(e){if(0!==e.data.status)throw u(!1),new Error(e.data.msg);var t=e.data.result.length>0&&e.data.result.map(function(e,t){return{key:t,value:e.fqpcode,text:e.fsubname+" ["+e.fqpcode+"]"}});k(t),u(!1)}).catch(function(e){f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.message}}),u(!1)});case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),P=function(e,t){g(function(e){return Object(ae.a)({},e,Object(se.a)({},t.name,t.value))}),"qpcode"===t.name&&console.log(t)},M=function(){var e=Object(r.a)(LO().mark(function e(){return LO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=v.qpcode){e.next=3;break}return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"select Qpcode"}}),e.abrupt("return");case 3:if(""!=v.year){e.next=6;break}return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Year"}}),e.abrupt("return");case 6:if(""!=v.examtype){e.next=9;break}return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Examtype"}}),e.abrupt("return");case 9:return E(!0),u(!0),e.next=13,ee.get("/admin/get-upd-scripts?data="+JSON.stringify(v)).then(function(e){0===e.data.status?(L(e.data.result),u(!1)):L([]),u(!1)}).catch(function(e){f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.message}}),u(!1)});case 13:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),N=function(){var e=Object(r.a)(LO().mark(function e(t){return LO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.confirm("Are You sure? You want to delete ?")){e.next=6;break}return u(!0),e.next=4,ee.post("/admin/upd-script-del?examtype=".concat(v.examtype,"&year=").concat(v.year,"&type=multiple"),{data:JSON.stringify(t)}).then(function(e){0===e.data.status?(f({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.msg}}),M(),u(!1)):f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Failed to delete"}}),u(!1)}).catch(function(e){f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.message}}),u(!1)});case 4:e.next=7;break;case 6:console.log("cancelled");case 7:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Uploaded Scripts",i.a.createElement(l.b,{to:"/admin/utility/upload-scripts"},i.a.createElement(ne.a,{content:"Back",color:"blue",size:"small",floated:"right"}))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,{style:{margin:"10px"}},i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"QP Code"),i.a.createElement(p.a,{selection:!0,search:!0,placeholder:"Qp Code",value:v.qpcode,options:j,name:"qpcode",onChange:function(e,t){return P(0,t)}})),i.a.createElement(le.a.Field,{width:"3"},i.a.createElement("label",null,"Regcode Range(From)"),i.a.createElement(le.a.Input,{value:v.regcodeFrom,name:"regcodeFrom",maxLength:"50",onChange:function(e,t){return P(0,t)}})),i.a.createElement(le.a.Field,{width:"3"},i.a.createElement("label",null,"Regcode Range(To)"),i.a.createElement(le.a.Input,{value:v.regcodeTo,name:"regcodeTo",maxLength:"50",onChange:function(e,t){return P(0,t)}})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"Year"),i.a.createElement(le.a.Input,{value:v.year,name:"year",maxLength:4,onChange:function(e,t){return P(0,t)}})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement("label",null,"ExamType"),i.a.createElement(le.a.Input,{value:v.examtype,name:"examtype",maxLength:"1",onChange:function(e,t){return P(0,t)}})),i.a.createElement(le.a.Field,{width:"2"},i.a.createElement(ne.a,{content:"View",color:"blue",style:{position:"relative",top:"23px"},onClick:M})))),w&&i.a.createElement("table",{style:{width:"100%"}},i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",{width:"5%"},"Sl. No."),i.a.createElement("th",{width:"18%"},"Qp Code"),i.a.createElement("th",{width:"27%"},"Subject Name"),i.a.createElement("th",{width:"8%"},"Year"),i.a.createElement("th",{width:"8%"},"Examtype"),i.a.createElement("th",{width:"10%"},"Count"),i.a.createElement("th",{width:"14%"},"View"),"9741089633"==localStorage.getItem("fmobile")&&i.a.createElement("th",{width:"14%"},"Delete?"))),i.a.createElement("tbody",null,C.length>0?C.map(function(e,t){return i.a.createElement("tr",{align:"center",key:t},i.a.createElement("td",null,t+1),i.a.createElement("td",null,e.fqpcode),i.a.createElement("td",{align:"initial",style:{paddingLeft:"10px"}},e.fsubname),i.a.createElement("td",null,e.fyear),i.a.createElement("td",null,e.fexamtype),i.a.createElement("td",null,e.cnt),i.a.createElement("td",null,i.a.createElement(l.b,{to:{pathname:"/admin/detailed-scripts/".concat(e.fqpcode,"/").concat(v.year,"/").concat(v.examtype,"/").concat(v.regcodeFrom,"/").concat(v.regcodeTo)}},i.a.createElement(ne.a,{content:"View Detailed",icon:"eye",color:"blue",size:"mini"}))),"9741089633"==localStorage.getItem("fmobile")&&i.a.createElement("td",null,i.a.createElement(ne.a,{content:"Delete",color:"red",icon:"trash",onClick:function(){N(e)},size:"mini"})))}):i.a.createElement("tr",{align:"center"},i.a.createElement("td",{colSpan:8},"No data found")))))))};function PO(){PO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var MO=function(e){var t=e.match.params,n=t.qpcode,c=t.examtype,u=t.year,s=t.from,f=t.to,d=Object(o.useContext)(m.a),h=d.load,p=d.err_msg,v=Object(a.a)(h,2),g=(v[0],v[1]),y=Object(a.a)(p,2),b=(y[0],y[1]),w=Object(o.useState)([]),E=Object(a.a)(w,2),x=E[0],O=E[1];Object(o.useEffect)(function(){j()},[]);var j=function(){var e=Object(r.a)(PO().mark(function e(){return PO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return g(!0),e.next=3,ee.get("/admin/get-upd-det-scripts?qpcode=".concat(n,"&year=").concat(u,"&examtype=").concat(c,"&from=").concat(s,"&to=").concat(f)).then(function(e){0===e.data.status?(O(e.data.result),g(!1)):(O([]),g(!1))}).catch(function(e){b({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.message}}),g(!1)});case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),k=function(){var e=Object(r.a)(PO().mark(function e(){var t;return PO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.confirm("Are You sure? You want to delete ?")){e.next=8;break}return t=[],x.map(function(e,n){return!0===e.checked&&t.push(e)}),g(!0),e.next=6,ee.post("/admin/upd-script-del?examtype=".concat(c,"&year=").concat(u,"&type=one"),{data:JSON.stringify(t)}).then(function(e){0===e.data.status?(b({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.msg}}),j(),g(!1)):(b({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Failed to delete"}}),g(!1))}).catch(function(e){b({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.message}}),g(!1)});case 6:e.next=9;break;case 8:console.log("cancelled");case 9:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Uploaded Scripts (Detailed)",i.a.createElement(ne.a,{content:"Save",onClick:k,color:"green",size:"small",floated:"right"}),i.a.createElement(l.b,{to:"/admin/viewScripts"},i.a.createElement(ne.a,{content:"Back",color:"blue",size:"small",floated:"right"}))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,{style:{margin:"10px"}},i.a.createElement("div",{style:{height:"500px",overflowY:"auto",width:"80%"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",{width:"8%"},"Sl. No."),i.a.createElement("th",{width:"18%"},"QP Code"),i.a.createElement("th",{width:"32%"},"Subject Name"),i.a.createElement("th",{width:"8%"},"Year"),i.a.createElement("th",{width:"8%"},"Examtype"),i.a.createElement("th",{width:"18%"},"Reg. Code"),i.a.createElement("th",{width:"8%"},"Delete?",i.a.createElement("br",null),"9741089633"==localStorage.getItem("fmobile")&&i.a.createElement("input",{type:"checkbox",onChange:function(e){return function(e){var t=x.map(function(t,n){return t.checked=e.target.checked,t});O(Object(oe.a)(t))}(e)}})))),i.a.createElement("tbody",null,x.length>0?x.map(function(e,t){return i.a.createElement("tr",{align:"center"},i.a.createElement("td",null,t+1),i.a.createElement("td",null,e.fqpcode),i.a.createElement("td",{align:"initial",style:{paddingLeft:"10px"}},e.fsubname),i.a.createElement("td",null,e.fyear),i.a.createElement("td",null,e.fexamtype),i.a.createElement("td",null,e.fregcode),i.a.createElement("td",null,i.a.createElement("input",{checked:e.checked,type:"checkbox",onChange:function(e){return function(e,t){var n=Object(oe.a)(x);n[t].checked=e.target.checked,O(Object(oe.a)(n))}(e,t)}})))}):i.a.createElement("tr",{align:"center"},i.a.createElement("td",{colSpan:7},"No data found"))))))))};function NO(){NO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function TO(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),l=(c[0],c[1]),u=Object(a.a)(n,2),s=(u[0],u[1]),f=Object(o.useState)(""),d=Object(a.a)(f,2),h=d[0],v=d[1],g=Object(o.useState)([]),y=Object(a.a)(g,2),b=y[0],w=y[1],E=Object(o.useState)(""),x=Object(a.a)(E,2),O=x[0],j=x[1],k=Object(o.useState)(""),S=Object(a.a)(k,2),_=S[0],C=S[1],L=Object(o.useState)(["All"]),A=Object(a.a)(L,2),P=A[0],M=A[1],N=Object(o.useState)([{key:"All",text:"All",value:"All"},{key:"A",text:"I Sem",value:"A"},{key:"B",text:"II Sem",value:"B"},{key:"C",text:"III Sem",value:"C"},{key:"D",text:"IV Sem",value:"D"},{key:"E",text:"V Sem",value:"E"},{key:"F",text:"VI Sem",value:"F"},{key:"G",text:"VII Sem",value:"G"},{key:"H",text:"VIII Sem",value:"H"},{key:"I",text:"IX Sem",value:"I"},{key:"J",text:"X Sem",value:"J"}]),T=Object(a.a)(N,2),I=T[0],F=(T[1],Object(o.useState)([])),D=Object(a.a)(F,2),R=D[0],G=D[1],B=Object(o.useState)(!1),H=Object(a.a)(B,2),z=H[0],V=H[1],q=Object(o.useState)([]),Y=Object(a.a)(q,2),W=Y[0],U=Y[1],X=Object(o.useState)([]),J=Object(a.a)(X,2),Z=J[0],$=J[1],ae=Object(o.useState)(!1),ie=Object(a.a)(ae,2),ce=ie[0],ue=ie[1];Object(o.useEffect)(function(){se()},[]);var se=function(){var e=Object(r.a)(NO().mark(function e(){return NO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),e.prev=1,e.next=4,Q.a.get(K.b+"a=getboarddeggrp&univcode="+localStorage.getItem("univcode")).then(function(e){if(0!==e.data.error_code)return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"No data found"}}),void l(!1);w(e.data.data)});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),l(!1);case 9:l(!1);case 10:case"end":return e.stop()}},e,null,[[1,6]])}));return function(){return e.apply(this,arguments)}}(),fe=function(){var e=Object(r.a)(NO().mark(function e(t){return NO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),e.prev=1,e.next=4,Q.a.get(K.b+"a=tdvs_yearmode&univcode="+localStorage.getItem("univcode")+"°grp="+t).then(function(e){0===e.data.error_code?(j(e.data.data.fyear),C(e.data.data.fexamtype)):l(!1)});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),l(!1);case 9:l(!1);case 10:case"end":return e.stop()}},e,null,[[1,6]])}));return function(t){return e.apply(this,arguments)}}(),de=function(){var e=Object(r.a)(NO().mark(function e(){return NO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(l(!0),e.prev=1,G([]),""!==h&&""!==O&&""!==_){e.next=8;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"All the fields are mandatory"}}),l(!1),ue(!1),e.abrupt("return");case 8:return e.next=10,Q.a.get(K.b+"a=tdvs_getPergeValCount&univcode="+localStorage.getItem("univcode")+"°grp="+h+"&year="+O+"&mode="+_+"&sem="+P).then(function(e){V(!0),0===e.data.error_code?G(e.data.data):l(!1)});case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),l(!1);case 15:l(!1);case 16:case"end":return e.stop()}},e,null,[[1,12]])}));return function(){return e.apply(this,arguments)}}(),he=function(){var e=Object(r.a)(NO().mark(function e(){var t;return NO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(l(!0),t=[],R.map(function(e,n){"T"===e.fstatus&&t.push(e)}),0!==t.length){e.next=8;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select the qpcode you want to purge"}}),ue(!1),l(!1),e.abrupt("return");case 8:return e.next=10,ee.post("/admin/purge-scripts",{data:JSON.stringify(t)}).then(function(e){if(console.log(e),0!==e.data.status)return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Something went wrong"}}),void l(!1);ue(!0),U(e.data.msg.fsuccess),$(e.data.msg.ffailure),de()}).catch(function(e){s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Something went wrong",err:e}}),l(!1)});case 10:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},ce&&i.a.createElement(Ym.a,{open:!0,style:{overflowY:"auto",height:"600px"}},i.a.createElement(Ym.a.Header,null,"Success And Failure List",i.a.createElement(ne.a,{floated:"right",secondary:!0,onClick:function(){return ue(!1)}},i.a.createElement(Ue.a,{name:"close"})," close")),i.a.createElement(Ym.a.Content,null,i.a.createElement(te.a.Group,null,i.a.createElement(te.a,null,i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Succeeded QPList"),i.a.createElement(te.a.Description,null,i.a.createElement("ul",null,W.map(function(e,t){return i.a.createElement("li",{key:t},e)}))))),i.a.createElement(te.a,null,i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Failed QPList"),i.a.createElement(te.a.Description,null,i.a.createElement("ul",null,Z.map(function(e,t){return i.a.createElement("li",{key:t},e)})))))))),i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h3",null,"Purge Valuations")),i.a.createElement("div",null,i.a.createElement(ne.a,{floated:"right",content:"Clear",color:"black",onClick:function(){return v(""),j(""),C(""),M(["All"]),G([]),void V(!1)}}),i.a.createElement(ne.a,{floated:"right",content:"Save",color:"green",onClick:function(){return he()}}))),i.a.createElement(re.a,null)),i.a.createElement(te.a.Description,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:3},i.a.createElement("label",null,"Degree Group"),i.a.createElement(p.a,{placeholder:"Degree Group",selection:!0,search:!0,value:h,options:b,onChange:function(e,t){v(t.value),fe(t.value),V(!1)}})),i.a.createElement(le.a.Field,{width:2},i.a.createElement("label",null,"Exam Year"),i.a.createElement(le.a.Input,{placeholder:"Exam Year",value:O,onChange:function(e,t){return j(t.value)}})),i.a.createElement(le.a.Field,{width:2},i.a.createElement("label",null,"Exam Type"),i.a.createElement(le.a.Input,{placeholder:"Exam Year",value:_,onChange:function(e,t){return C(t.value)}})),i.a.createElement(le.a.Field,{width:7},i.a.createElement("label",null,"Semester"),i.a.createElement(p.a,{placeholder:"Semester",selection:!0,search:!0,multiple:!0,value:P,options:I,onChange:function(e,t){M(t.value)}})),i.a.createElement(le.a.Field,{width:2},i.a.createElement(ne.a,{style:{position:"relative",top:"23px"},content:"Submit",color:"blue",onClick:function(){return de()}})))),z&&i.a.createElement("div",{style:{height:"60vh",overflowY:"auto",zIndex:-2}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Sl. No."),i.a.createElement("th",null,"QP Code"),i.a.createElement("th",null,"Subject Name"),i.a.createElement("th",null,"Semester"),i.a.createElement("th",null,"Val1 Count"),i.a.createElement("th",null,"Val1 Completed"),i.a.createElement("th",null,"Val2 Count"),i.a.createElement("th",null,"Val2 Completed"),i.a.createElement("th",null,"Deviation Count"),i.a.createElement("th",null,"Deviation Completed"),i.a.createElement("th",null,"Total Count"),i.a.createElement("th",null,"Total Comp."),i.a.createElement("th",null,"Action ",i.a.createElement("br",null),i.a.createElement("input",{type:"checkbox",onChange:function(e){return function(e){var t=R.map(function(t,n){return e.target.checked?t.fstatus="T":t.fstatus="F",t});G(Object(oe.a)(t))}(e)}})))),i.a.createElement("tbody",null,R.length>0?R.map(function(e,t){return i.a.createElement("tr",{style:{textAlign:"center"},key:t},i.a.createElement("td",null,t+1),i.a.createElement("td",null,e.fqpcode),i.a.createElement("td",{style:{textAlign:"initial",paddingLeft:"20px"}},e.fsubname),i.a.createElement("td",null,e.fexamno),i.a.createElement("td",null,e.val1),i.a.createElement("td",null,e.completed1),i.a.createElement("td",null,e.val2),i.a.createElement("td",null,e.completed2),i.a.createElement("td",null,e.valD),i.a.createElement("td",null,e.completedD),i.a.createElement("td",null,e.totcnt),i.a.createElement("td",null,e.totcomp),i.a.createElement("td",null,i.a.createElement("input",{type:"checkbox",checked:"T"===e.fstatus,onChange:function(t){return function(e,t){var n=R.map(function(n,r){return t.fqpcode===n.fqpcode?(e.target.checked?n.fstatus="T":n.fstatus="F",n):n});G(Object(oe.a)(n))}(t,e)}})))}):i.a.createElement("tr",null,i.a.createElement("td",{colSpan:13,style:{textAlign:"center"}},"No Data Found"))))))))}function IO(){IO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function FO(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),l=(c[0],c[1]),u=Object(a.a)(n,2),s=(u[0],u[1]),f=Object(o.useState)(""),d=Object(a.a)(f,2),h=d[0],p=d[1],v=Object(o.useState)({}),g=Object(a.a)(v,2),y=g[0],b=g[1],w=Object(o.useState)(!1),E=Object(a.a)(w,2),x=E[0],O=E[1],j=function(){var e=Object(r.a)(IO().mark(function e(){return IO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==h){e.next=3;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Dummy Number"}}),e.abrupt("return");case 3:return l(!0),e.next=6,Q.a.get(K.b+"a=getFinaledValScripts&univcode="+localStorage.getItem("univcode")+"&dummyno="+h).then(function(e){if(0!==e.data.error_code)return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),b({}),void l(!1);O(!0),b(e.data.data),l(!1)}).catch(function(e){s({type:"OPEN_MSG_BOX",payload:{header:"Error",message:"Error"+e}}),l(!1)});case 6:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),k=function(){var e=Object(r.a)(IO().mark(function e(){var t;return IO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.confirm("Are you sure You want to reset?")){e.next=8;break}return(t=new FormData).append("data",JSON.stringify(y)),l(!0),e.next=6,Q.a.post(K.b+"a=resetValScript&univcode="+localStorage.getItem("univcode"),t).then(function(e){if(0!==e.data.error_code)return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void l(!1);s({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.data.msg}}),l(!1)}).catch(function(e){s({type:"OPEN_MSG_BOX",payload:{header:"Error",message:"Error"+e}}),l(!1)});case 6:e.next=10;break;case 8:console.log("Cancelled"),l(!1);case 10:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(bO.a,null,i.a.createElement(te.a.Header,null,"Reset Valuation"),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null," Dummy Number"),i.a.createElement(le.a.Input,{maxLength:"40",value:h,onChange:function(e,t){return p(t.value)}})),i.a.createElement(le.a.Field,{width:4},i.a.createElement(ne.a,{content:"Submit",color:"blue",style:{position:"relative",top:"23px"},onClick:function(){return j()}})))),x&&i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Dummy No."),i.a.createElement("th",null,"Batch No."),i.a.createElement("th",null,"QP Code"),i.a.createElement("th",null,"Teach. Code"),i.a.createElement("th",null,"Val. No."),i.a.createElement("th",null,"Tot. Marks"),i.a.createElement("th",null,"Status"),i.a.createElement("th",null,"Action"))),i.a.createElement("tbody",null,i.a.createElement("tr",{align:"center"},i.a.createElement("td",null,y.FDUMMYNO),i.a.createElement("td",null,y.FBATCHNO),i.a.createElement("td",null,y.FQPCODE),i.a.createElement("td",null,y.FTEACHCODE),i.a.createElement("td",null,y.FVALNO),i.a.createElement("td",null,y.FTOTMARKS),i.a.createElement("td",null,y.FSTATUS),i.a.createElement("td",null,i.a.createElement(ne.a,{icon:"edit outline",content:"Reset",color:"green",size:"tiny",onClick:function(){return k()}}))))))))}function DO(){DO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function RO(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),u=(c[0],c[1]),s=Object(a.a)(n,2),f=(s[0],s[1]),d=Object(o.useState)({rtype:"",deggrp:"",board:"",year:"",examtype:"",teachFrom:"0",teachTo:"Z"}),h=Object(a.a)(d,2),v=h[0],g=h[1],y=Object(o.useState)([]),b=Object(a.a)(y,2),w=b[0],E=b[1],x=Object(o.useState)([]),O=Object(a.a)(x,2),j=O[0],k=O[1],S=localStorage.getItem("fteachcode");Object(o.useEffect)(function(){_()},[]);var _=function(){var e=Object(r.a)(DO().mark(function e(){var t,n;return DO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u(!0),e.next=4,ee.get("/admin/get-workdone-report?fusercode=".concat(S));case 4:if(0!=(t=e.sent).data.status){e.next=11;break}n=[],t.data.result.fdeggrp.map(function(e){n.push({value:e.fdeggrp,text:"".concat(e.fdescpn)})}),E(n),e.next=12;break;case 11:throw new Error(t.data.msg);case 12:u(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),u(!1),f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(){return e.apply(this,arguments)}}(),C=function(){var e=Object(r.a)(DO().mark(function e(t){var n,r;return DO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u(!0),e.next=4,ee.get("/admin/get-workdone-board?fusercode=".concat(S,"&fdeggrp=").concat(t));case 4:if(0!=(n=e.sent).data.status){e.next=11;break}r=[],n.data.result.fboard.map(function(e){r.push({value:e.fboard,text:"".concat(e.fboardname)})}),k(r),e.next=12;break;case 11:throw new Error(n.data.msg);case 12:u(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),u(!1),f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(t){return e.apply(this,arguments)}}(),L=function(){var e=Object(r.a)(DO().mark(function e(t){return DO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q.a.get(K.b+"a=tdvs_getYearModeDet&univcode="+localStorage.getItem("univcode")+"°grp="+t).then(function(e){console.log(e),0==e.data.error_code&&g(function(t){return Object(ae.a)({},t,{year:e.data.data.fyear,examtype:e.data.data.fexamtype})})});case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),A=function(e,t){g(function(e){return Object(ae.a)({},e,Object(se.a)({},t.name,t.value))}),"deggrp"===t.name&&(C(t.value),L(t.value))},P=function(){var e=Object(r.a)(DO().mark(function e(){var t,n,r,a,o,i;return DO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=v.deggrp,n=v.board,r=v.year,a=v.examtype,o=v.teachFrom,i=v.teachTo,console.log(v),e.next=4,Q.a.post(K.b+"a=Generate_Bill_New&univcode="+localStorage.getItem("univcode")+"&fdegreegrp="+t+"&fboard="+n+"&year="+r+"&examtype="+a+"&teachrngfrm="+o+"&teachrngto="+i).then(function(e){console.log(e)}).catch(function(e){return console.log(e)});case 4:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(bO.a,null,i.a.createElement(te.a.Header,null,"Generate Bill",i.a.createElement(l.b,{to:"/admin/view-generatebill"},i.a.createElement(ne.a,{color:"blue",floated:"right"},"View"))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Type"),i.a.createElement(p.a,{placeholder:"Select Report Type",name:"rtype",value:v.rtype,selection:!0,search:!0,options:[{key:"valuationbill",value:"valuationbill",text:"Valuation bill"},{key:"tadabill",value:"tadabill",text:"TADA bill"}],onChange:function(e,t){return A(0,t)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Degree Group"),i.a.createElement(p.a,{search:!0,selection:!0,name:"deggrp",value:v.deggrp,options:w,onChange:function(e,t){return A(0,t)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{search:!0,selection:!0,name:"board",value:v.board,options:j,onChange:function(e,t){return A(0,t)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:3},i.a.createElement("label",null,"Year"),i.a.createElement(le.a.Input,{name:"year",maxLength:4,value:v.year,onChange:function(e,t){return A(0,t)}})),i.a.createElement(le.a.Field,{width:3},i.a.createElement("label",null,"Examtype"),i.a.createElement(le.a.Input,{name:"examtype",maxLength:1,value:v.examtype,onChange:function(e,t){return A(0,t)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:3},i.a.createElement("label",null,"Teacher Range (From)"),i.a.createElement(le.a.Input,{name:"teachFrom",value:v.teachFrom,onChange:function(e,t){return A(0,t)}})),i.a.createElement(le.a.Field,{width:3},i.a.createElement("label",null,"Teacher Range (To)"),i.a.createElement(le.a.Input,{name:"teachTo",value:v.teachTo,onChange:function(e,t){return A(0,t)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,null,i.a.createElement(ne.a,{content:"Generate",color:"blue",onClick:function(){return P()}})))))))}function GO(){GO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var BO=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),u=(c[0],c[1]),s=Object(a.a)(n,2),f=(s[0],s[1]),d=Object(o.useState)([]),h=Object(a.a)(d,2),p=h[0],v=h[1];Object(o.useEffect)(function(){g()},[]);var g=function(){var e=Object(r.a)(GO().mark(function e(){return GO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),e.next=3,Q.a.get(K.b+"a=getTdvsBills&univcode="+localStorage.getItem("univcode")).then(function(e){if(0!==e.data.error_code)return f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void u(!1);v(e.data.data),u(!1)}).catch(function(e){f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.message}}),u(!1)});case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"View Bills",i.a.createElement(l.b,{to:"/admin/val-bill"},i.a.createElement(ne.a,{floated:"right",color:"blue",size:"small",content:"Back"}))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,null,i.a.createElement("table",{style:{width:"70%"}},i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Sl. No."),i.a.createElement("th",null,"Examdate"),i.a.createElement("th",null,"Deggree Group"),i.a.createElement("th",null,"Board"),i.a.createElement("th",null,"Year"),i.a.createElement("th",null,"Examtype"),i.a.createElement("th",null,"Count"),i.a.createElement("th",null,"Action"))),i.a.createElement("tbody",null,p.length>0?p.map(function(e,t){return i.a.createElement("tr",{align:"center"},i.a.createElement("td",null,t+1),i.a.createElement("td",null,e.fexamdate),i.a.createElement("td",null,e.fdeggrp),i.a.createElement("td",null,e.fboard),i.a.createElement("td",null,e.fyear),i.a.createElement("td",null,e.fexamtype),i.a.createElement("td",null,e.cnt),i.a.createElement("td",null,i.a.createElement(ne.a,{content:"generate",size:"tiny",color:"green",onClick:function(){return function(e){window.open(K.c+"generatebill_acu&univcode="+localStorage.getItem("univcode")+"&fdegreegrp="+e.fdeggrp+"&fboard="+e.fboard+"&teachrngfrm=0&teachrngto=z&year="+e.fyear+"&examtype="+e.fexamtype)}(e)}})))}):i.a.createElement("tr",{align:"center"},i.a.createElement("td",{colSpan:8},"No data found")))))))};function HO(){HO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var zO=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),l=(c[0],c[1]),u=Object(a.a)(n,2),s=(u[0],u[1]),f=Object(o.useState)(""),d=Object(a.a)(f,2),h=d[0],p=d[1],v=Object(o.useState)({}),g=Object(a.a)(v,2),y=g[0],b=g[1],w=Object(o.useState)(!1),E=Object(a.a)(w,2),x=E[0],O=E[1],j=function(){var e=Object(r.a)(HO().mark(function e(){return HO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),e.next=3,Q.a.get(K.b+"a=tdvs_getBillDetails&univcode="+localStorage.getItem("univcode")+"&billno="+h).then(function(e){if(0!==e.data.error_code)return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void l(!1);b(e.data.data),l(!1),O(!0)}).catch(function(e){s({type:"OPEN_MSG_BOX",payload:{header:"Error",message:"error=> "+e}}),l(!1)});case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),k=function(){var e=Object(r.a)(HO().mark(function e(t){return HO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.confirm("Are yopu sure you want to reset ?")){e.next=6;break}return l(!0),e.next=4,Q.a.post(K.b+"a=tdvs_resetBill&univcode="+localStorage.getItem("univcode")+"&data="+JSON.stringify(t)).then(function(e){return 0===e.data.error_code?(s({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.data.msg}}),O(!1),b({}),void l(!1)):(s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}}),void l(!1))}).catch(function(e){s({type:"OPEN_MSG_BOX",payload:{header:"Error",message:"error=> "+e}}),l(!1)});case 4:e.next=7;break;case 6:console.log("you cancelled");case 7:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Reset Bill"),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:6},i.a.createElement("label",null,"Bill Number"),i.a.createElement(le.a.Input,{value:h,onChange:function(e,t){return p(t.value)}})),i.a.createElement(le.a.Field,{width:2},i.a.createElement(ne.a,{content:"Submit",style:{position:"relative",top:"23px"},onClick:function(){return j()},color:"blue"})))),x&&i.a.createElement(te.a,{style:{width:"500px"}},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Bill Details"),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,null,i.a.createElement("div",{style:{marginBottom:"10px"}},i.a.createElement("label",null,i.a.createElement("b",null," Bill No")),i.a.createElement("span",{style:{float:"right"}},y.fbillno)),i.a.createElement(re.a,null),i.a.createElement("div",{style:{marginBottom:"10px"}},i.a.createElement("label",null,i.a.createElement("b",null," Teacher Code")),i.a.createElement("span",{style:{float:"right"}},y.fteachcode)),i.a.createElement(re.a,null),i.a.createElement("div",{style:{marginBottom:"10px"}},i.a.createElement("label",null,i.a.createElement("b",null," Degree Group")),i.a.createElement("span",{style:{float:"right"}},y.fdeggrp)),i.a.createElement(re.a,null),i.a.createElement("div",{style:{marginBottom:"10px"}},i.a.createElement("label",null,i.a.createElement("b",null," Board")),i.a.createElement("span",{style:{float:"right"}},y.fboard)),i.a.createElement(re.a,null),i.a.createElement("div",{style:{marginBottom:"10px"}},i.a.createElement("label",null,i.a.createElement("b",null," Year")),i.a.createElement("span",{style:{float:"right"}},y.fyear)),i.a.createElement(re.a,null),i.a.createElement("div",{style:{marginBottom:"10px"}},i.a.createElement("label",null,i.a.createElement("b",null," Examtype")),i.a.createElement("span",{style:{float:"right"}},y.fexamtype)),i.a.createElement(re.a,null),i.a.createElement("div",{style:{marginBottom:"10px"}},i.a.createElement("label",null,i.a.createElement("b",null,"Total")),i.a.createElement("span",{style:{float:"right"}},y.ftotal)),i.a.createElement(re.a,null),i.a.createElement(ne.a,{floated:"right",size:"tiny",color:"red",onClick:function(){return k(y)}},"Reset")))))))};function VO(){VO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var qO=function(e){var t=Object(o.useContext)(m.a),n=t.load,l=t.err_msg,u=t.confirm_err_msg,s=(t.auth_token,Object(c.useHistory)(),Object(a.a)(n,2)),f=(s[0],s[1]),d=Object(a.a)(l,2),h=(d[0],d[1]),p=Object(a.a)(u,2),v=(p[0],p[1],Object(o.useState)(!1)),g=Object(a.a)(v,2),y=(g[0],g[1]),b=Object(o.useState)(""),w=Object(a.a)(b,2),E=w[0],x=w[1],O=Object(o.useState)([]),j=Object(a.a)(O,2),k=j[0],S=j[1],_=localStorage.getItem("univcode"),C=Object(o.useState)(""),L=Object(a.a)(C,2),A=L[0],P=L[1];Object(o.useEffect)(function(){},[]);var M=function(){var e=Object(r.a)(VO().mark(function e(){return VO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:x(""),S([]);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),N=function(){var e=Object(r.a)(VO().mark(function e(t,n,r,a,o){return VO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q.a.get(K.b+"a=getAnsBookImagesTrans&univcode="+_+"&qpcode="+t+"&yearmode="+a+"®no="+n+"&valno="+r+"®code="+o).then(function(e){console.log(e),0==e.data.error_code&&"T"==e.data.data.FFILFRMSER?window.open("/#/admin/viewValAnsBook/".concat(t,"/").concat(a,"/").concat(r,"/").concat(n,"/").concat(o,"/viewval")):window.open(K.c+"digitalPhotoCopyDownload&univcode="+_+"®no="+n+"&qpcode="+t+"&val="+r+"&yearmode="+a,"_blank")});case 2:case"end":return e.stop()}},e)}));return function(t,n,r,a,o){return e.apply(this,arguments)}}(),T=function(){var e=Object(r.a)(VO().mark(function e(){return VO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=E){e.next=3;break}return h({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Reg No..!"}}),e.abrupt("return");case 3:return e.next=5,Q.a.get(K.b+"a=getRVPCAnsView&univcode="+_+"®no="+E).then(function(e){0==e.data.error_code?(S(e.data.data.data),P(e.data.data.stdname.fname),y(!0),f(!1)):h({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}})});case 5:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"View RVPC Answer Booklet",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black",onClick:function(){return M()}},"Clear"))),i.a.createElement(te.a.Content,{style:{height:"75vh",overflowY:"scroll"}},i.a.createElement("div",null,i.a.createElement("div",{className:"col-md-3"},i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,null,i.a.createElement("label",null,"Reg No."),i.a.createElement(ue.a,{type:"text",placeholder:"Reg No.",id:"fregno",style:{width:"12em"},value:E,onChange:function(e,t){x(t.value.toUpperCase())}})),k.length>0?i.a.createElement(le.a.Field,null,i.a.createElement("label",null,"Student Name"),i.a.createElement(ue.a,{type:"text",id:"fname",style:{width:"18em",color:"black"},value:A})):null,i.a.createElement(le.a.Field,null,i.a.createElement(ne.a,{color:"blue",onClick:function(){T()},style:{marginTop:"1.8rem"}},"Submit")))))),k.length>0?i.a.createElement(ce.a,{celled:!0},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Sl. No"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Year Mode"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Degree"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Semester"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Subject Name"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"QP Code"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Ans Booklet No"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Max Marks"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Marks"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Val. No."),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Action"),"053"==_?i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Revaluation"):null)),i.a.createElement(ce.a.Body,null,k.map(function(e,t){return i.a.createElement(ce.a.Row,{key:t},i.a.createElement(ce.a.Cell,{textAlign:"center"},t+1),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.yearmode),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fdegree),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fexamno),i.a.createElement(ce.a.Cell,{textAlign:"left"},e.fsubname+" - "+e.fsubshort),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fqpcode)," ",i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fansbook),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fsmaxmarks),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fsysmarks),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fvalno),i.a.createElement(ce.a.Cell,{textAlign:"center"},i.a.createElement(ne.a,{basic:!0,size:"tiny",color:"blue",style:{marginTop:"10%"},onClick:function(){N(e.fqpcode,e.fregno,e.fvalno,e.yearmode,e.fregcode)}},"View")))}))):null))};function YO(){YO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var WO=[{key:"select",value:"",text:"Select"}],UO=function(e){var t=Object(o.useContext)(m.a),n=t.load,c=t.err_msg,u=Object(a.a)(n,2),s=(u[0],u[1]),f=Object(a.a)(c,2),d=(f[0],f[1]),v=localStorage.getItem("fteachcode"),g=localStorage.getItem("univcode"),y=Object(o.useState)(""),b=Object(a.a)(y,2),w=b[0],E=b[1],x=Object(o.useState)([]),O=Object(a.a)(x,2),j=O[0],k=O[1],S=Object(o.useState)(""),_=Object(a.a)(S,2),C=_[0],L=_[1],A=Object(o.useState)([]),P=Object(a.a)(A,2),M=P[0],N=P[1],T=Object(o.useState)(""),I=Object(a.a)(T,2),F=I[0],D=I[1],R=Object(o.useState)(""),G=Object(a.a)(R,2),B=G[0],H=G[1],z=Object(o.useState)(""),V=Object(a.a)(z,2),q=V[0],Y=V[1],W=Object(o.useState)(""),U=Object(a.a)(W,2),X=U[0],J=U[1],Z=Object(o.useState)(!0),$=Object(a.a)(Z,2),ae=$[0],ie=$[1],ce=Object(o.useState)([]),ue=Object(a.a)(ce,2),se=ue[0],fe=ue[1],de=Object(o.useState)([]),he=Object(a.a)(de,2),pe=he[0],me=he[1],ve=Object(o.useState)([]),ge=Object(a.a)(ve,2),ye=ge[0],be=ge[1],we=Object(o.useState)(!1),Ee=Object(a.a)(we,2),xe=Ee[0],Oe=Ee[1],je=Object(o.useState)(nv()().format("DD/MM/YYYY")),ke=Object(a.a)(je,2),Se=ke[0],_e=ke[1],Ce=Object(o.useState)(""),Le=Object(a.a)(Ce,2),Ae=Le[0],Pe=Le[1],Me=Object(o.useState)(""),Ne=Object(a.a)(Me,2),Te=Ne[0],Ie=Ne[1],Fe=Object(o.useState)(""),De=Object(a.a)(Fe,2),Re=De[0],Ge=De[1],Be=Object(o.useState)(""),He=Object(a.a)(Be,2),ze=He[0],Ve=He[1];Object(o.useEffect)(function(){Ye(),We(),"upd"==e.match.params.type&&qe(e.match.params.id,e.match.params.qpcode)},[]);var qe=function(){var e=Object(r.a)(YO().mark(function e(t,n){var r,a;return YO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q.a.get(K.b+"getQpReceivedData&univcode="+g+"&id="+t+"&qpcode="+n);case 2:0===(r=e.sent).data.error_code&&(a=r.data.data,D(a.fqpcode),ie(!1),E(a.fdeggrp),L(a.fboard),H(a.fyear),Y(a.fexamtype),J(a.examname),Ge(a.fnoval),Ve(a.fhours),_e(a.examdate),Ie(a.factualcount),Pe(a.fcount));case 4:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),Ye=function(){var e=Object(r.a)(YO().mark(function e(){var t,n,r;return YO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,ee.get("/admin/get-deggrp?fusercode=".concat(v));case 4:if(0!=(t=e.sent).data.status){e.next=11;break}n=t.data.result.res.map(function(e,t){return{key:e.fdeggrp,value:e.fdeggrp,text:e.fdescpn}}),r=[].concat(WO,Object(oe.a)(n)),k(r),e.next=12;break;case 11:throw new Error(t.data.msg);case 12:s(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(){return e.apply(this,arguments)}}(),We=function(){var e=Object(r.a)(YO().mark(function e(){var t,n,r;return YO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s(!0),e.prev=1,e.next=4,ee.get("/admin/get-panelboard?fusercode=".concat(v));case 4:0===(t=e.sent).data.status&&(n=t.data.result.map(function(e,t){return{key:t,text:e.fboardname,value:e.fboard}}),r=[].concat(WO,Object(oe.a)(n)),N(r)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),s(!1);case 11:s(!1);case 12:case"end":return e.stop()}},e,null,[[1,8]])}));return function(){return e.apply(this,arguments)}}(),Xe=function(){var e=Object(r.a)(YO().mark(function e(){var t;return YO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,Q.a.get(K.b+"a=getYearMode&univcode="+g+"&qpcode="+F);case 4:t=e.sent,console.log(t),0===t.data.error_code?(H(t.data.data.fyear),Y(t.data.data.fexamtype),J(t.data.data.fexamdate),E(t.data.data.fdeggrp),L(t.data.data.fboard)):(H(""),Y(""),J(""),E(""),L("")),s(!1),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(0),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 14:case"end":return e.stop()}},e,null,[[0,10]])}));return function(){return e.apply(this,arguments)}}(),Qe=function(){var e=Object(r.a)(YO().mark(function e(){var t;return YO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==F){e.next=3;break}return d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter QP Code"}}),e.abrupt("return");case 3:return e.prev=3,s(!0),e.next=7,Q.a.get(K.b+"a=getQpCodeValDetails&univcode="+g+"&qpcode="+F);case 7:0===(t=e.sent).data.error_code?fe(t.data.data):fe([]),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(3),s(!1),d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 15:case"end":return e.stop()}},e,null,[[3,11]])}));return function(){return e.apply(this,arguments)}}(),Ke=function(){var e=Object(r.a)(YO().mark(function e(t){var n;return YO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=[]).push(t),s(!0),e.next=5,ee.post("/admin/purge-scripts",{data:JSON.stringify(n)}).then(function(e){if(console.log(e),0!==e.data.status)return d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Something went wrong"}}),void s(!1);Oe(!0),e.data.msg.fsuccess.length>0&&(me(e.data.msg.fsuccess),fe([])),be(e.data.msg.ffailure),s(!1)}).catch(function(e){d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Something went wrong",err:e}}),s(!1)});case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),Je=function(){var e=Object(r.a)(YO().mark(function e(t){var n;return YO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,Q.a.get(K.b+"a=getYearModeWithDeggrp&univcode="+g+"°grp="+t);case 4:n=e.sent,console.log(n),0===n.data.error_code?(H(n.data.data.fyear),Y(n.data.data.fexamtype),J(n.data.data.fexamdate)):(H(""),Y(""),J("")),s(!1),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),s(!1);case 13:case"end":return e.stop()}},e,null,[[0,10]])}));return function(t){return e.apply(this,arguments)}}(),Ze=function(){var t=Object(r.a)(YO().mark(function t(){var n,r,a;return YO().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==F){t.next=3;break}return d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter QP Code"}}),t.abrupt("return");case 3:if(""!==w){t.next=6;break}return d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Degree Group"}}),t.abrupt("return");case 6:if(""!==Re){t.next=9;break}return d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter No. of Val."}}),t.abrupt("return");case 9:if(""!==Te){t.next=12;break}return d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Actual Count"}}),t.abrupt("return");case 12:if(""!==Ae){t.next=15;break}return d({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Received Count"}}),t.abrupt("return");case 15:return(n=new FormData).append("qpcode",F),n.append("univcode",g),n.append("deggrp",w),n.append("board",C),n.append("year",B),n.append("examtype",q),n.append("exam",Se),n.append("receivedcount",Ae),n.append("actcount",Te),n.append("nohrs",ze),n.append("noval",Re),n.append("user",v),n.append("type",e.match.params.type),n.append("id",e.match.params.id),s(!0),t.next=33,Q.a.post(K.b+"a=saveScriptReceivedata",n);case 33:r=t.sent,a="",a=0===r.data.error_code?"Success":"Message",d({type:"OPEN_MSG_BOX",payload:{header:a,message:r.data.data.msg}}),s(!1);case 38:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("h3",null," Receive Scripts"),i.a.createElement("div",null,i.a.createElement(ne.a,{color:"black",size:"small"},"Cancel"),i.a.createElement(l.b,{to:"/admin/view-scripts-details"},i.a.createElement(ne.a,{color:"green",size:"small"},"View"))))),i.a.createElement(re.a,null),i.a.createElement(Ym.a,{open:xe,style:{overflowY:"auto",height:"600px"}},i.a.createElement(Ym.a.Header,null,"Success And Failure List",i.a.createElement(ne.a,{floated:"right",secondary:!0,onClick:function(){return Oe(!1)}},i.a.createElement(Ue.a,{name:"close"})," close")),i.a.createElement(Ym.a.Content,null,i.a.createElement(te.a.Group,null,i.a.createElement(te.a,null,i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Succeeded QPList"),i.a.createElement(te.a.Description,null,i.a.createElement("ul",null,pe.map(function(e,t){return i.a.createElement("li",{key:t},e)}))))),i.a.createElement(te.a,null,i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"Failed QPList"),i.a.createElement(te.a.Description,null,i.a.createElement("ul",null,ye.map(function(e,t){return i.a.createElement("li",{key:t},e)})))))))),i.a.createElement(te.a.Description,null,i.a.createElement(h.a,{columns:2,divided:!0},i.a.createElement(vg.a,{width:"8"},i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:16},i.a.createElement("label",null,"QP Code"),i.a.createElement(le.a.Input,{disabled:!ae&&!0,placeholder:"QP Code",value:F,maxLength:20,onChange:function(e,t){D(t.value)},onBlur:function(){Xe(),Qe()}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:8},i.a.createElement("label",null,"Degree Group"),i.a.createElement(p.a,{disabled:ae,placeholder:"Degree group",name:"deggrp",value:w,selection:!0,search:!0,options:j,onChange:function(e,t){E(t.value),Je(t.value)}})),i.a.createElement(le.a.Field,{width:8},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{disabled:ae,placeholder:"Board",name:"board",value:C,selection:!0,search:!0,options:M,onChange:function(e,t){L(t.value)}}),i.a.createElement("a",{style:{float:"right"},onClick:function(){ie(!1),E(""),L("")}},"Change Degree Group"))),i.a.createElement(le.a.Group,null),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Year"),i.a.createElement(le.a.Input,{disabled:!0,placeholder:"Year",value:B})),i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"Exam Type"),i.a.createElement(le.a.Input,{disabled:!0,placeholder:"Exam Type",value:q})),i.a.createElement(le.a.Field,{width:8},i.a.createElement("label",null,"Exam Name"),i.a.createElement(le.a.Input,{disabled:!0,placeholder:"Exam Date",value:X}))),i.a.createElement(le.a.Group,null),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:3},i.a.createElement("label",null,"No. of Valuation"),i.a.createElement(le.a.Input,{placeholder:"No. of Valuation",name:"noval",maxLength:1,value:Re,onChange:function(e,t){var n=t.value.replace(/[^0-9]/g,"");Ge(n)}})),i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"No. of Hours"),i.a.createElement(le.a.Input,{placeholder:"No. of Hours",name:"nohrs",maxLength:4,value:ze,onChange:function(e,t){var n=t.value.replace(/[^0-9]/g,"");Ve(n)}})),i.a.createElement(le.a.Field,{width:3},i.a.createElement("label",null,"Exam Date"),i.a.createElement(av.a,{name:"examdate",formatChars:{n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"},value:Se,mask:"ed/nm/zyyy",onChange:function(e){_e(e.target.value)}})),i.a.createElement(le.a.Field,{width:3},i.a.createElement("label",null,"Actual Count"),i.a.createElement(le.a.Input,{placeholder:"Actual Count",value:Te,maxLength:6,onChange:function(e,t){var n=t.value.replace(/[^0-9]/g,"");Ie(n)}})),i.a.createElement(le.a.Field,{width:3},i.a.createElement("label",null,"Received Count"),i.a.createElement(le.a.Input,{placeholder:"Received Count",value:Ae,maxLength:6,onChange:function(e,t){var n=t.value.replace(/[^0-9]/g,"");Pe(n)}}))),i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,null,i.a.createElement(ne.a,{content:"Save",color:"blue",onClick:Ze}))))),i.a.createElement(vg.a,{width:"8"},se.length>0&&i.a.createElement("table",{style:{width:"100%"}},i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",{colSpan:6,align:"left"},"Purge Valuation")),i.a.createElement("tr",null,i.a.createElement("th",null,"QP Code"),i.a.createElement("th",null,"Year"),i.a.createElement("th",null,"Exam Type"),i.a.createElement("th",null,"Count"),i.a.createElement("th",null,"Valued"),i.a.createElement("th",null,"Action"))),i.a.createElement("tbody",null,se.map(function(e,t){return i.a.createElement("tr",{style:{textAlign:"center"}},i.a.createElement("td",null,e.fqpcode),i.a.createElement("td",null,e.fyear),i.a.createElement("td",null,e.fexamtype),i.a.createElement("td",null,e.cnt),i.a.createElement("td",null,e.valued),i.a.createElement("td",null,i.a.createElement(ne.a,{content:"Purge",size:"mini",color:"blue",onClick:function(){return Ke(e)}})))}))))))))};function XO(){XO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var QO=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),u=(c[0],c[1]),s=Object(a.a)(n,2),f=(s[0],s[1]),d=localStorage.getItem("univcode"),h=Object(o.useState)([]),p=Object(a.a)(h,2),v=p[0],g=p[1],y=Object(o.useState)(""),b=Object(a.a)(y,2),w=b[0],E=b[1];Object(o.useEffect)(function(){x()},[]);var x=function(){var e=Object(r.a)(XO().mark(function e(){var t;return XO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),e.next=3,Q.a.get(K.b+"a=getScriptRecieveData&univcode="+d);case 3:0===(t=e.sent).data.error_code?g(t.data.data):g([]),u(!1);case 6:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),O=function(){var e=Object(r.a)(XO().mark(function e(t){var n,r;return XO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(u(!0),!window.confirm("Are Sure You want to delete the recoded")){e.next=24;break}return e.prev=3,e.next=6,Q.a.get(K.b+"a=deletRecQPCount&univcode=".concat(d,"&fid=").concat(t));case 6:if(0!=(n=e.sent).data.error_code){e.next=14;break}f({type:"OPEN_MSG_BOX",payload:{header:"Success",message:n.data.data.msg}}),r=v.filter(function(e){return e.fid!=t}),g(r),u(!1),e.next=15;break;case 14:throw new Error(n.data.data.msg);case 15:u(!1),e.next=22;break;case 18:e.prev=18,e.t0=e.catch(3),u(!1),f({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 22:e.next=25;break;case 24:u(!1);case 25:case"end":return e.stop()}},e,null,[[3,18]])}));return function(t){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("h3",null,"View Script Receive Count"),i.a.createElement("div",null,i.a.createElement(l.b,{to:"/admin/receive-script-new/ins"},i.a.createElement(ne.a,{icon:"arrow left",content:"Back",color:"blue",size:"small"}))))),i.a.createElement(re.a,null),i.a.createElement(te.a.Description,null,i.a.createElement("table",{style:{width:"60%"}},i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",{colSpan:10},i.a.createElement("input",{type:"text",placeholder:"Search",style:{borderRadius:"25px",width:"100%",padding:"5px"},value:w,onChange:function(e){return E(e.target.value)}}))),i.a.createElement("tr",null,i.a.createElement("th",{width:"5%"},"SL. No."),i.a.createElement("th",{width:"10%"},"Qp Code"),i.a.createElement("th",{width:"10%"},"Deggrp"),i.a.createElement("th",{width:"10%"},"Board"),i.a.createElement("th",{width:"10%"},"Year"),i.a.createElement("th",{width:"10%"},"Examtype"),i.a.createElement("th",{width:"10%"},"Exam Date"),i.a.createElement("th",{width:"10%"},"Received Count"),i.a.createElement("th",{width:"10%"},"Actual Count"),i.a.createElement("th",{width:"10%"},"Action"))),i.a.createElement("tbody",null,v.length>0?v.filter(function(e){return e.fqpcode.toLowerCase().includes(w.toLowerCase())||e.fyear.toLowerCase().includes(w.toLowerCase())||e.fexamtype.toLowerCase().includes(w.toLowerCase())||e.fdeggrp.toLowerCase().includes(w.toLowerCase())||e.fboard.toLowerCase().includes(w.toLowerCase())}).map(function(e,t){return i.a.createElement("tr",{key:t,style:{textAlign:"center"}},i.a.createElement("td",null,t+1),i.a.createElement("td",null,e.fqpcode),i.a.createElement("td",null,e.fdeggrp),i.a.createElement("td",null,e.fboard),i.a.createElement("td",null,e.fyear),i.a.createElement("td",null,e.fexamtype),i.a.createElement("td",null,e.fexamdate),i.a.createElement("td",null,e.fcount),i.a.createElement("td",null,e.factualcount),i.a.createElement("td",null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-around"}},i.a.createElement(l.b,{to:{pathname:"/admin/receive-script-new/".concat(e.fid,"/").concat(e.fqpcode,"/upd")}},i.a.createElement(ne.a,{size:"mini",color:"green",icon:"edit"})),i.a.createElement(ne.a,{size:"mini",color:"red",onClick:function(){return O(e.fid)},icon:"trash"}))))}):i.a.createElement("tr",null,i.a.createElement("td",{colSpan:10,align:"center"},"No data found")))))))};function KO(){KO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var JO=function(){var e=Object(o.useContext)(m.a),t=e.load,n=e.err_msg,c=Object(a.a)(t,2),l=(c[0],c[1]),u=Object(a.a)(n,2),s=(u[0],u[1]),f=Object(o.useState)(""),d=Object(a.a)(f,2),h=d[0],v=d[1],g=Object(o.useState)([]),y=Object(a.a)(g,2),b=y[0],w=y[1],E=Object(o.useState)(""),x=Object(a.a)(E,2),O=x[0],j=x[1],k=Object(o.useState)(""),S=Object(a.a)(k,2),_=S[0],C=S[1],L=Object(o.useState)([]),A=Object(a.a)(L,2),P=A[0],M=A[1],N=Object(o.useState)([]),T=Object(a.a)(N,2),I=T[0],F=T[1],D=Object(o.useState)(!1),R=Object(a.a)(D,2),G=R[0],B=R[1];Object(o.useEffect)(function(){H()},[]);var H=function(){var e=Object(r.a)(KO().mark(function e(){return KO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),e.next=3,ee.get("/admin/get-upd-qpcodes?type=delete").then(function(e){if(0!==e.data.status)throw l(!1),new Error(e.data.msg);var t=e.data.result.length>0&&e.data.result.map(function(e,t){return{key:t,value:e.fqpcode,text:e.fsubname+" ["+e.fqpcode+"]"}});w(t),l(!1)}).catch(function(e){s({type:"OPEN_MSG_BOX",payload:{header:"Error",message:e.message}}),l(!1)});case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),z=function(){var e=Object(r.a)(KO().mark(function e(){return KO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=h&&""!=O&&""!=_){e.next=3;break}return s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"All the fileds are mandatory"}}),e.abrupt("return");case 3:return l(!0),e.next=6,ee.get("/admin/get-upd-det-scripts?qpcode=".concat(h,"&year=").concat(O,"&examtype=").concat(_,"&from=0&to=Z")).then(function(e){if(B(!0),0===e.data.status){var t=e.data.result.map(function(e,t){return Object(ae.a)({},e,{key:t})});M(t),l(!1)}else M([]),l(!1)}).catch(function(e){s({type:"OPEN_MSG_BOX",payload:{header:"Error",message:e.message}}),l(!1)});case 6:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),V=function(){var e=Object(r.a)(KO().mark(function e(){var t,n;return KO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.confirm("Are You sure? You want to delete ? \n Finalized scripts will be ignored.")){e.next=11;break}return t=P.filter(function(e){return 1==e.checked}),console.log(t),l(!0),e.next=6,ee.post("/admin/del-script",{data:JSON.stringify(t)});case 6:n=e.sent,l(!1),0===n.data.status?(s({type:"OPEN_MSG_BOX",payload:{header:"Success",message:n.data.msg}}),z()):s({type:"OPEN_MSG_BOX",payload:{header:"Message",message:n.data.msg}}),e.next=12;break;case 11:console.log("canceled");case 12:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},i.a.createElement("div",null,i.a.createElement("h3",null,"Reset Script")),i.a.createElement("div",null,i.a.createElement(ne.a,{floated:"right",content:"Clear",color:"black",onClick:function(){return v(""),w([]),j(""),C(""),M([]),F([]),void B(!1)}}),i.a.createElement(ne.a,{floated:"right",content:"Save",color:"green",onClick:function(){return V()}}))),i.a.createElement(re.a,null)),i.a.createElement(te.a.Description,null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:4},i.a.createElement("label",null,"QP Code"),i.a.createElement(p.a,{selection:!0,search:!0,placeholder:"Qp Code",value:h,options:b,name:"qpcode",onChange:function(e,t){return v(t.value)}})),i.a.createElement(le.a.Field,{width:2},i.a.createElement("label",null,"Year"),i.a.createElement(le.a.Input,{value:O,maxLength:4,onChange:function(e,t){return j(t.value)}})),i.a.createElement(le.a.Field,{width:2},i.a.createElement("label",null,"Examtype"),i.a.createElement(le.a.Input,{value:_,maxLength:1,onChange:function(e,t){return C(t.value)}})),i.a.createElement(le.a.Field,null,i.a.createElement("label",null,i.a.createElement("br",null)),i.a.createElement(ne.a,{floated:"right",content:"View",color:"blue",onClick:function(){return z()}})))),G&&i.a.createElement("div",{style:{height:"450px",overflowY:"auto"}},i.a.createElement("table",null,i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("td",{colSpan:7},i.a.createElement(ue.a,{placeholder:"Search Reg. Code",style:{width:"100%"},value:I,onChange:function(e,t){return F(t.value)}}))),i.a.createElement("tr",null,i.a.createElement("th",{width:"8%"},"Sl. No."),i.a.createElement("th",{width:"18%"},"QP Code"),i.a.createElement("th",{width:"32%"},"Subject Name"),i.a.createElement("th",{width:"8%"},"Year"),i.a.createElement("th",{width:"8%"},"Examtype"),i.a.createElement("th",{width:"18%"},"Reg. Code"),i.a.createElement("th",{width:"8%"},"Delete?",i.a.createElement("br",null),"9741089633"==localStorage.getItem("fmobile")&&i.a.createElement("input",{type:"checkbox",onChange:function(e){return function(e){var t=P.map(function(t,n){return Object(ae.a)({},t,{checked:e.target.checked})});M(t)}(e)}})))),i.a.createElement("tbody",null,P.length>0?P.filter(function(e){return e.fregcode.toString().includes(I)}).map(function(e,t){return i.a.createElement("tr",{align:"center",key:e.key},i.a.createElement("td",null,t+1),i.a.createElement("td",null,e.fqpcode),i.a.createElement("td",{align:"initial",style:{paddingLeft:"10px"}},e.fsubname),i.a.createElement("td",null,e.fyear),i.a.createElement("td",null,e.fexamtype),i.a.createElement("td",null,e.fregcode),i.a.createElement("td",null,i.a.createElement("input",{checked:e.checked,type:"checkbox",onChange:function(t){return function(e,t){var n=P;n[e.key].checked=t.target.checked,M(Object(oe.a)(n))}(e,t)}})))}):i.a.createElement("tr",{align:"center"},i.a.createElement("td",{colSpan:7},"No data found"))))))))};function ZO(){ZO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var $O=function(e){var t=Object(o.useContext)(m.a),n=t.load,u=t.err_msg,s=t.confirm_err_msg,f=(Object(c.useHistory)(),Object(a.a)(n,2)),d=(f[0],f[1]),h=Object(a.a)(u,2),v=(h[0],h[1]),g=Object(a.a)(s,2),y=(g[0],g[1],localStorage.getItem("fteachcode")),b=Object(o.useState)("All"),w=Object(a.a)(b,2),E=w[0],x=w[1],O=Object(o.useState)(""),j=Object(a.a)(O,2),k=j[0],S=j[1],_=Object(o.useState)("All"),C=Object(a.a)(_,2),L=C[0],A=C[1],P=Object(o.useState)([{key:"All",value:"All",text:"All"},{key:"1",value:"1",text:"1"},{key:"2",value:"2",text:"2"},{key:"3",value:"3",text:"3"},{key:"4",value:"4",text:"4"},{key:"5",value:"5",text:"5"},{key:"R",value:"R",text:"R"},{key:"D",value:"D",text:"D"}]),M=Object(a.a)(P,2),N=M[0],T=(M[1],Object(o.useState)(!1)),I=Object(a.a)(T,2),F=I[0],D=I[1],R=Object(o.useState)([]),G=Object(a.a)(R,2),B=G[0],H=G[1],z=Object(o.useState)([]),V=Object(a.a)(z,2),q=V[0],Y=V[1],W=Object(o.useState)(""),U=Object(a.a)(W,2),X=U[0],Q=U[1];Object(o.useEffect)(function(){J()},[]);var J=function(){var e=Object(r.a)(ZO().mark(function e(){var t,n;return ZO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(!0),e.next=4,ee.get("/admin/get-direct-load?fusercode=".concat(y));case 4:if(0!=(t=e.sent).data.status){e.next=11;break}n=[{key:"All",value:"All",text:"All"}],t.data.result.board.map(function(e){n.push({value:e.fboard,text:"".concat(e.fboardname)})}),S(n),e.next=12;break;case 11:throw new Error(t.data.msg);case 12:d(!1),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),d(!1),v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 19:case"end":return e.stop()}},e,null,[[0,15]])}));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=Object(r.a)(ZO().mark(function e(){var t;return ZO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=E){e.next=4;break}return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Board"}}),d(!1),e.abrupt("return");case 4:if(""!=L){e.next=8;break}return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select Valuation Number"}}),d(!1),e.abrupt("return");case 8:return e.prev=8,d(!0),e.next=12,ee.get("/admin/get-view-masrev?fusercode=".concat(y,"&board=").concat(E,"&fval=").concat(L));case 12:if(0!=(t=e.sent).data.status){e.next=19;break}D(!0),H(t.data.result),Y(t.data.result),e.next=21;break;case 19:throw D(!1),new Error(t.data.msg);case 21:d(!1),e.next=28;break;case 24:e.prev=24,e.t0=e.catch(8),d(!1),v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 28:case"end":return e.stop()}},e,null,[[8,24]])}));return function(){return e.apply(this,arguments)}}();!function(){var e=Object(r.a)(ZO().mark(function e(t,n){var r,a,o;return ZO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=B.filter(function(e,n){if(n===t)return e}),e.prev=2,d(!0),a={del:r},e.next=7,ee.post("/admin/del-view-panel?fusercode=".concat(y),a);case 7:if(0!=(o=e.sent).data.status){e.next=13;break}v({type:"OPEN_MSG_BOX",payload:{header:"Success",message:"Deleted succesfully..!"}}),Z(),e.next=14;break;case 13:throw new Error(o.data.msg);case 14:d(!1),e.next=21;break;case 17:e.prev=17,e.t0=e.catch(2),d(!1),v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 21:case"end":return e.stop()}},e,null,[[2,17]])}))}();i.a.Component;return i.a.createElement(te.a,{fluid:!0},i.a.createElement(te.a.Content,null,i.a.createElement(te.a.Header,null,"QP assigned Report",i.a.createElement(ne.a,{floated:"right",size:"mini",color:"black",onClick:function(){x(""),A(""),D(!1)}},"Clear"),i.a.createElement(ne.a,{floated:"right",size:"mini",color:"green",onClick:function(){!function(){var e=localStorage.getItem("univcode");window.open("".concat(K.c,"getPanelViewReportExcel&univcode=").concat(e,"&fboard=").concat(E,"&fvalno=").concat(L),"_blank")}()}},"Report"),i.a.createElement(l.b,{to:"/admin/directmasrev/1/1/"},i.a.createElement(ne.a,{floated:"right",size:"mini",color:"blue"},"Back")))),i.a.createElement(te.a.Content,{style:{height:"75vh",overflowY:"scroll"}},i.a.createElement("div",null,i.a.createElement(le.a,null,i.a.createElement(le.a.Group,null,i.a.createElement(le.a.Field,{width:"4"},i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{placeholder:"Select board",name:"fboard",value:E,selection:!0,search:!0,options:k,onChange:function(e,t){x(t.value),D(!1),A("All")}})),i.a.createElement(le.a.Field,{width:"3"},i.a.createElement("label",null,"Valuation Number"),i.a.createElement(p.a,{placeholder:"Select Val No.",name:"fvalno",value:L,selection:!0,search:!0,options:N,onChange:function(e,t){A(t.value),D(!1)}})),i.a.createElement(le.a.Field,{width:4},i.a.createElement(ne.a,{style:{position:"relative",top:"23px"},content:"Submit",color:"blue",onClick:function(){return Z()}}))))),1==F?i.a.createElement("div",null,i.a.createElement("div",{class:"ui search"},i.a.createElement("div",{class:"ui icon input"},i.a.createElement(ue.a,{type:"text",placeholder:"Search...",style:{width:"75em"},value:X,onChange:function(e,t){!function(e){var t=e,n="";""!==e?(n=B.filter(function(e){return Object.keys(e).some(function(n){return e[n].toLowerCase().includes(t.toLowerCase())})}),H(n)):H(q),Q(e)}(t.value)}}),i.a.createElement("i",{class:"search icon"}))),B.length>0?i.a.createElement(ce.a,{celled:!0},i.a.createElement(ce.a.Header,null,i.a.createElement(ce.a.Row,null,i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"5%"}},"Sl. No"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Board"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"20%"}},"Subject"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"20%"}},"Teacher Name"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"15%"}},"Reviewer Name"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Val No"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Scripts"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center",style:{width:"8%"}},"Year & Exam"),i.a.createElement(ce.a.HeaderCell,{textAlign:"center"},"Email Status"))),i.a.createElement(ce.a.Body,null,B.map(function(e,t){return i.a.createElement(ce.a.Row,{key:t},i.a.createElement(ce.a.Cell,{textAlign:"center"},t+1),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fboard),i.a.createElement(ce.a.Cell,{textAlign:"left"},e.fqpcode+" - "+e.fsubname),i.a.createElement(ce.a.Cell,{textAlign:"left"},e.fteachcode+" - "+e.fteachname),i.a.createElement(ce.a.Cell,{textAlign:"left"},e.frevcode+" - "+e.frevname),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fvalno),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fmaxscr),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.fyear+" - "+e.fexamtype),i.a.createElement(ce.a.Cell,{textAlign:"center"},e.femail))}))):null):null))};function ej(){ej=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new k(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,o)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function i(){return new t(function(a,i){!function r(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}(r,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(y),l(y,c,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}t.default=function(e){var t=Object(o.useContext)(m.a),n=(t.load,t.err_msg),v=Object(c.useHistory)(),y=Object(a.a)(n,2),w=(y[0],y[1]),x=Object(o.useState)({}),j=Object(a.a)(x,2),S=j[0],C=j[1],A=Object(o.useState)([]),M=Object(a.a)(A,2),T=M[0],F=M[1],R=localStorage.getItem("fteachcode"),B=localStorage.getItem("fusertype"),z=Object(o.useState)([]),q=Object(a.a)(z,2),W=(q[0],q[1]),X=Object(o.useState)(null),Q=Object(a.a)(X,2),K=Q[0],J=Q[1];Object(o.useEffect)(function(){var e=localStorage.getItem("univcode");"041"==e?J(E.a):"027"==e?J(g.a):"020"==e?J(O.a):"098"==e?J(b.a):"033"==e?J(k.a):"050"==e?J(_.a):"040"==e?J(L.a):"030"==e?J(P.a):"051"==e?J(I.a):"053"==e?J(N.a):"003D"==e?J(D.a):"026"==e?J(G.a):"060"==e?J(H.a):"056"==e?J(V.a):"061"==e?J(Y.a):"062"==e&&J(U.a);var t=function(){var e=Object(r.a)(ej().mark(function e(){var t,n;return ej().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ee.get("admin/getMenu/menuinfo?fteachcode=".concat(R,"&fusertype=").concat(B));case 3:return 0==(t=e.sent).data.status&&F(t.data.result),e.next=7,ee.get("admin/get-deggrp-stat?fusercode=".concat(R,"&fdegfrm=0&fdegto=ZZZZ"));case 7:0==(n=e.sent).data.status&&W(n.data.result),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),e.t0.response&&401==e.t0.response.status?(w({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Authentication failed. Login again !!!"}}),v.push(localStorage.getItem("rootPath"))):w({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 14:case"end":return e.stop()}},e,null,[[0,11]])}));return function(){return e.apply(this,arguments)}}();(function(){var e=Object(r.a)(ej().mark(function e(){var t;return ej().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=4,ee.get("/eval/dashboard/get-teach-per-info?fteachcode=".concat(R));case 4:if(0!=(t=e.sent).data.status){e.next=12;break}return C(t.data.result),t.data.result.frev,e.next=10,localStorage.setItem("fboard",t.data.result.fboard);case 10:e.next=13;break;case 12:throw new Error(t.data.msg);case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(0),e.t0.response&&401==e.t0.response.status?(w({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Authentication failed. Login again !!!"}}),v.push(localStorage.getItem("rootPath"))):w({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.t0.message}});case 18:case"end":return e.stop()}},e,null,[[0,15]])}));return function(){return e.apply(this,arguments)}})()(),t()},[]);return i.a.createElement("div",{className:"app",style:{overflow:"auto"}},"viewval"!==e.location.pathname.split("/").pop()&&i.a.createElement("div",null,i.a.createElement(u.a,{fixed:"top",color:"teal",inverted:!0,style:{height:"65px"}},i.a.createElement(s.a,{fluid:!0},i.a.createElement(u.a.Item,{as:"a",header:!0},i.a.createElement(f.a,{size:"tiny",src:K,style:{marginRight:"1.5em",width:"061"==localStorage.getItem("univcode")?"150px":"80px",height:"061"==localStorage.getItem("univcode")?"40px":"60px"}})),i.a.createElement(d.a,{as:"h1",style:{color:"#fff",fontSize:"25px",margin:"16px"},textAlign:"center"},"Takshila - Digital Valuation System"),i.a.createElement(u.a.Menu,{position:"right"},i.a.createElement(u.a.Item,{as:"a",name:"Welcome: ".concat(S.fteachname)},"Welcome: ",S.fteachname),i.a.createElement(u.a.Item,{as:"a",name:"logout",onClick:function(){localStorage.removeItem("token"),localStorage.removeItem("fteachcode"),v.push(localStorage.getItem("rootPath"))}})))),i.a.createElement("div",{style:{marginTop:"5em",marginLeft:"1em"}},i.a.createElement(h.a,null,i.a.createElement(h.a.Column,null,i.a.createElement(u.a,{horizontal:"true",size:"large",style:{width:"100%"}},T.map(function(e,t){return"C"==e.mainmenu?i.a.createElement(p.a,{item:!0,text:e.name,key:t},i.a.createElement(p.a.Menu,null,e.child.map(function(e,t){return i.a.createElement(l.c,{to:{pathname:"".concat(e.FFUNCTION)},key:t},i.a.createElement(p.a.Item,{onMouseOver:function(t){return function(e,t){t&&(e.target.style.background="#000",e.target.style.color="#fff")}(t,e.FMENUNAME)},onMouseOut:function(t){return function(e,t){t&&(e.target.style.background="",e.target.style.color="")}(t,e.FMENUNAME)}},e.FMENUNAME))}))):i.a.createElement(u.a.Item,{key:t,name:e.name,link:!0,onClick:function(){return v.push(e.url)}})})))))),i.a.createElement("div",{style:{marginTop:"1em",marginLeft:"1em"}},i.a.createElement(h.a,null,i.a.createElement(h.a.Column,{width:16,style:{paddingRight:"2.5em"}},i.a.createElement(c.Switch,null,i.a.createElement(c.Route,{exact:!0,path:"/admin",component:uy}),i.a.createElement(c.Route,{exact:!0,path:"/admin/dashboard",component:dy}),i.a.createElement(c.Route,{path:"/admin/qptemplate",component:ut}),i.a.createElement(c.Route,{path:"/admin/decoding-pages",component:Dl}),i.a.createElement(c.Route,{path:"/admin/allot-batch",component:Gl}),i.a.createElement(c.Route,{path:"/admin/qp-stats",component:qm}),i.a.createElement(c.Route,{path:"/admin/createpanel/",component:Um}),i.a.createElement(c.Route,{path:"/admin/Detailed/:screen/:ifrevcode/:fboard/:fqpcode",component:ev}),i.a.createElement(c.Route,{path:"/admin/teachenable/",component:Km}),i.a.createElement(c.Route,{path:"/admin/teacherinfo/",component:Zm}),i.a.createElement(c.Route,{path:"/admin/daywisevalscripts/",component:iv}),i.a.createElement(c.Route,{path:"/admin/qpcreatepanel/",component:lv}),i.a.createElement(c.Route,{path:"/admin/QpDetailed/:screen/:ifrevcode/:fboard/:fqpcode",component:sv}),i.a.createElement(c.Route,{path:"/admin/valcntr/",component:pv}),i.a.createElement(c.Route,{exact:!0,path:"/admin/createteach/",component:yv}),i.a.createElement(c.Route,{path:"/admin/directmasrev/:screen/:dtt",component:Ev}),i.a.createElement(c.Route,{path:"/admin/masrevview/",component:Ov}),i.a.createElement(c.Route,{path:"/admin/workdone-report/",component:kv}),i.a.createElement(c.Route,{path:"/admin/wrkdn_rept/",component:_v}),i.a.createElement(c.Route,{path:"/admin/viewansbook/",component:Lv}),i.a.createElement(c.Route,{path:"/admin/viewrvpcansbook/",component:qO}),i.a.createElement(c.Route,{path:"/admin/valbill/",component:Pv}),i.a.createElement(c.Route,{path:"/admin/verifyqppattern/",component:Tv}),i.a.createElement(c.Route,{path:"/admin/decodingstatus/",component:Hv}),i.a.createElement(c.Route,{path:"/admin/deggr/",component:Vv}),i.a.createElement(c.Route,{path:"/admin/valuationcount/",component:Yv}),i.a.createElement(c.Route,{path:"/admin/regcodevaluation",component:Uv}),i.a.createElement(c.Route,{path:"/admin/createxam/:deggrp/:boolean/",component:Qv}),i.a.createElement(c.Route,{path:"/admin/createxam",component:Qv}),i.a.createElement(c.Route,{path:"/admin/viewCreateExam/",component:Jv}),i.a.createElement(c.Route,{path:"/admin/createuser/:data",component:eg}),i.a.createElement(c.Route,{path:"/admin/createuser/",component:eg}),i.a.createElement(c.Route,{path:"/admin/viewUsers",component:ng}),i.a.createElement(c.Route,{path:"/admin/utility/changepassword",component:ag}),i.a.createElement(c.Route,{path:"/admin/transaction/sendmail/",component:lg}),i.a.createElement(c.Route,{path:"/admin/transaction/valcenter/",component:fg}),i.a.createElement(c.Route,{path:"/admin/transaction/rejectbatch/",component:mg}),i.a.createElement(c.Route,{path:"/admin/masters/createboard/",component:yg}),i.a.createElement(c.Route,{path:"/admin/masters/purgevaluation/",component:wg}),i.a.createElement(c.Route,{path:"/admin/masters/subject/",component:kg}),i.a.createElement(c.Route,{path:"/admin/statistics/dev-det",component:Cg}),i.a.createElement(c.Route,{path:"/admin/transaction/val-det",component:Ag}),i.a.createElement(c.Route,{path:"/admin/transaction/teach-val-count",component:Ng}),i.a.createElement(c.Route,{path:"/admin/utility/createdeviation",component:Fg}),i.a.createElement(c.Route,{path:"/admin/utility/recieve-scripts",component:py}),i.a.createElement(c.Route,{path:"/admin/utility/subjectcreation/:deggrp/:board/:degree/:examno/:subcode/:subname/:qpcode/:subshort/:valmax/:bool",component:vy}),i.a.createElement(c.Route,{path:"/admin/utility/subjectcreation",component:vy}),i.a.createElement(c.Route,{path:"/admin/masters/create-teacherwise-panel",component:yy}),i.a.createElement(c.Route,{path:"/admin/masters/create-qpwise-panel",component:wy}),i.a.createElement(c.Route,{path:"/admin/masters/view-subjects",component:xy}),i.a.createElement(c.Route,{path:"/admin/masters/viewTeacherDet",component:jy}),i.a.createElement(c.Route,{path:"/admin/createteach/:fteachcode/:mobile",component:yv}),i.a.createElement(c.Route,{path:"/admin/studentMarksReport",component:_y}),i.a.createElement(c.Route,{path:"/admin/utility/upload-scripts",component:Xx}),i.a.createElement(c.Route,{path:"/admin/viewValAnsBook/:qpcode/:yearmode/:valno/:regno/:regcode/:viewval",component:Kx}),i.a.createElement(c.Route,{path:"/admin/decoding/entry1",component:$x}),i.a.createElement(c.Route,{path:"/admin/decoding/entry2",component:nO}),i.a.createElement(c.Route,{path:"/admin/decoding/Statistics",component:aO}),i.a.createElement(c.Route,{path:"/admin/decoding/Verification",component:iO}),i.a.createElement(c.Route,{path:"/admin/decoding/Difference",component:lO}),i.a.createElement(c.Route,{path:"/admin/decoding/Status",component:Hv}),i.a.createElement(c.Route,{path:"/admin/decoding/Manual",component:dO}),i.a.createElement(c.Route,{path:"/admin/decoding/Correction",component:pO}),i.a.createElement(c.Route,{path:"/admin/modifytdvs/:fbaord/:fqpcode/:enter/:det",component:vO}),i.a.createElement(c.Route,{path:"/admin/modifytdvs2/:fbaord/:fqpcode/:enter/:det",component:yO}),i.a.createElement(c.Route,{path:"/admin/decoding/TDVS",component:xO}),i.a.createElement(c.Route,{path:"/admin/answerbook/RejScripts",component:jO}),i.a.createElement(c.Route,{path:"/admin/answerbook/QualityCheck",component:SO}),i.a.createElement(c.Route,{path:"/admin/answerbook/ScriptStats",component:CO}),i.a.createElement(c.Route,{path:"/admin/viewScripts",component:AO}),i.a.createElement(c.Route,{path:"/admin/detailed-scripts/:qpcode/:year/:examtype/:from/:to",component:MO}),i.a.createElement(c.Route,{path:"/admin/purge-scripts",component:TO}),i.a.createElement(c.Route,{path:"/admin/reset-valuation",component:FO}),i.a.createElement(c.Route,{path:"/admin/val-bill",component:RO}),i.a.createElement(c.Route,{path:"/admin/view-generatebill",component:BO}),i.a.createElement(c.Route,{path:"/admin/reset-val-bill",component:zO}),i.a.createElement(c.Route,{path:"/admin/receive-script-new/:id/:qpcode/:type",component:UO}),i.a.createElement(c.Route,{path:"/admin/receive-script-new/:type",component:UO}),i.a.createElement(c.Route,{path:"/admin/view-scripts-details",component:QO}),i.a.createElement(c.Route,{path:"/admin/reset-script",component:JO}),i.a.createElement(c.Route,{path:"/admin/qp_assgRep",component:$O}),i.a.createElement(c.Redirect,{from:"/",to:"/admin"}))))))}},70:function(e,t,n){"use strict";n.r(t);var r=!0;t.default=function(e,t){if(!r){if(e)return;var n="Warning: "+t;"undefined"!==typeof console&&console.warn(n);try{throw Error(n)}catch(a){}}}},71:function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"a",function(){return a}),n.d(t,"b",function(){return o}),n.d(t,"d",function(){return i});var r=window.location.protocol+"//universitysolutions.in/univadmin/app.php?a=",a="http://localhost:8080",o="https://universitysolutions.in/univadmin/app.php?",i="https://universitysolutions.in/tdvs-php/app.php?a="}}]); //# sourceMappingURL=8.fae877be.chunk.js.map
Close