/* Minification failed. Returning unminified contents.
(4,4): run-time error CSS1019: Unexpected token, found '('
(4,5): run-time error CSS1019: Unexpected token, found 'function('
(4,17): run-time error CSS1031: Expected selector, found ')'
(4,17): run-time error CSS1025: Expected comma or open brace, found ')'
(4,152): run-time error CSS1019: Unexpected token, found ')'
(4,153): run-time error CSS1019: Unexpected token, found '('
(4,159): run-time error CSS1031: Expected selector, found 'function('
(4,20163): run-time error CSS1019: Unexpected token, found ')'
(12,1): run-time error CSS1019: Unexpected token, found '!'
(12,2): run-time error CSS1019: Unexpected token, found 'function('
(12,14): run-time error CSS1031: Expected selector, found ')'
(12,14): run-time error CSS1025: Expected comma or open brace, found ')'
(12,246): run-time error CSS1019: Unexpected token, found '('
(12,252): run-time error CSS1031: Expected selector, found 'function('
(12,57790): run-time error CSS1019: Unexpected token, found ')'
(19,1): run-time error CSS1019: Unexpected token, found '('
(19,11): run-time error CSS1031: Expected selector, found '('
(19,11): run-time error CSS1025: Expected comma or open brace, found '('
(19,96): run-time error CSS1019: Unexpected token, found ')'
(19,97): run-time error CSS1019: Unexpected token, found '('
(19,107): run-time error CSS1031: Expected selector, found '('
(19,107): run-time error CSS1025: Expected comma or open brace, found '('
(19,36732): run-time error CSS1019: Unexpected token, found ')'
(27,1): run-time error CSS1019: Unexpected token, found '('
(27,11): run-time error CSS1031: Expected selector, found '('
(27,11): run-time error CSS1025: Expected comma or open brace, found '('
(95,2): run-time error CSS1019: Unexpected token, found ')'
(95,3): run-time error CSS1019: Unexpected token, found '('
(95,20): run-time error CSS1031: Expected selector, found ')'
(95,20): run-time error CSS1025: Expected comma or open brace, found ')'
(111,1): run-time error CSS1019: Unexpected token, found '('
(111,11): run-time error CSS1031: Expected selector, found '('
(111,11): run-time error CSS1025: Expected comma or open brace, found '('
(119,2): run-time error CSS1019: Unexpected token, found ')'
(119,3): run-time error CSS1019: Unexpected token, found '('
(119,18): run-time error CSS1031: Expected selector, found '!'
(119,18): run-time error CSS1025: Expected comma or open brace, found '!'
(275,2): run-time error CSS1019: Unexpected token, found ')'
(277,1): run-time error CSS1019: Unexpected token, found '"use strict"'
(282,8): run-time error CSS1031: Expected selector, found '='
(282,8): run-time error CSS1025: Expected comma or open brace, found '='
(285,27): run-time error CSS1031: Expected selector, found '='
(285,27): run-time error CSS1025: Expected comma or open brace, found '='
(291,24): run-time error CSS1031: Expected selector, found '='
(291,24): run-time error CSS1025: Expected comma or open brace, found '='
(298,4): run-time error CSS1031: Expected selector, found '('
(298,4): run-time error CSS1025: Expected comma or open brace, found '('
(308,4): run-time error CSS1031: Expected selector, found '('
(308,4): run-time error CSS1025: Expected comma or open brace, found '('
(320,4): run-time error CSS1031: Expected selector, found '('
(320,4): run-time error CSS1025: Expected comma or open brace, found '('
(326,4): run-time error CSS1031: Expected selector, found '('
(326,4): run-time error CSS1025: Expected comma or open brace, found '('
(332,4): run-time error CSS1031: Expected selector, found '('
(332,4): run-time error CSS1025: Expected comma or open brace, found '('
(339,30): run-time error CSS1031: Expected selector, found '='
(339,30): run-time error CSS1025: Expected comma or open brace, found '='
(348,20): run-time error CSS1031: Expected selector, found '='
(348,20): run-time error CSS1025: Expected comma or open brace, found '='
(349,13): run-time error CSS1031: Expected selector, found '='
(349,13): run-time error CSS1025: Expected comma or open brace, found '='
(355,21): run-time error CSS1031: Expected selector, found '='
(355,21): run-time error CSS1025: Expected comma or open brace, found '='
(358,15): run-time error CSS1031: Expected selector, found '='
(358,15): run-time error CSS1025: Expected comma or open brace, found '='
(360,20): run-time error CSS1031: Expected selector, found '='
(360,20): run-time error CSS1025: Expected comma or open brace, found '='
(372,16): run-time error CSS1031: Expected selector, found '='
(372,16): run-time error CSS1025: Expected comma or open brace, found '='
(374,11): run-time error CSS1031: Expected selector, found '='
(374,11): run-time error CSS1025: Expected comma or open brace, found '='
(393,2): run-time error CSS1019: Unexpected token, found '('
(393,3): run-time error CSS1019: Unexpected token, found ')'
(395,1): run-time error CSS1019: Unexpected token, found 'eval('
(395,15): run-time error CSS1031: Expected selector, found '('
(395,15): run-time error CSS1025: Expected comma or open brace, found '('
(395,407): run-time error CSS1019: Unexpected token, found '('
(395,408): run-time error CSS1019: Unexpected token, found ''a(31.9&&!31.9.3c){(8(){6 G=8(s,x,f){5.1L=[];5.1p={};5.29=C;5.1K={};5.1a={};5.f=9.1y({2z:18,37:2u,2r:18,2Z:18,2T:2u,2S:2u},f);5.2Q(s,x);a(s){5.1n(5.1a[\'1V\'],x,5.f)}5.1a=C};G.m.2G=\'0.7.0\';G.m.2Q=8(s,x){6 2E=/\\{#3i *(\\w*?)( .*)*\\}/g;6 20,1x,H;6 1v=C;6 2x=[];2v((20=2E.3U(s))!=C){1v=2E.1v;1x=20[1];H=s.2s(\'{#/3i \'+1x+\'}\',1v);a(H==-1){Y c 12(\'14: G "\'+1x+\'" 2n 1Q 3H.\');}5.1a[1x]=s.2h(1v,H);2x[1x]=L.2c(20[2])}a(1v===C){5.1a[\'1V\']=s;b}F(6 i 1N 5.1a){a(i!=\'1V\'){5.1K[i]=c G()}}F(6 i 1N 5.1a){a(i!=\'1V\'){5.1K[i].1n(5.1a[i],9.1y({},x||{},5.1K||{}),9.1y({},5.f,2x[i]));5.1a[i]=C}}};G.m.1n=8(s,x,f){a(s==15){5.1L.A(c 1d(\'\',1));b}s=s.W(/[\\n\\r]/g,\'\');s=s.W(/\\{\\*.*?\\*\\}/g,\'\');5.29=9.1y({},5.1K||{},x||{});5.f=c 25(f);6 j=5.1L;6 J=s.1c(/\\{#.*?\\}/g);6 Z=0,H=0;6 e;6 1b=0;6 21=0;F(6 i=0,l=(J)?(J.O):(0);i<l;++i){a(1b){H=s.2s(\'{#/1z}\');a(H==-1){Y c 12("14: 3f 1G 3e 1z.");}a(H>Z){j.A(c 1d(s.2h(Z,H),1))}Z=H+11;1b=0;i=9.3Z(\'{#/1z}\',J);3b}H=s.2s(J[i],Z);a(H>Z){j.A(c 1d(s.2h(Z,H),1b))}6 3X=J[i].1c(/\\{#([\\w\\/]+).*?\\}/);6 2w=E.$1;36(2w){q\'3T\':++21;j.1U();q\'a\':e=c 1t(J[i],j);j.A(e);j=e;M;q\'U\':j.1U();M;q\'/a\':2v(21){j=j.1T();--21}q\'/F\':q\'/1S\':j=j.1T();M;q\'1S\':e=c 1j(J[i],j);j.A(e);j=e;M;q\'F\':e=1R(J[i],j);j.A(e);j=e;M;q\'2q\':j.A(c 2I(J[i],5.29));M;q\'h\':j.A(c 2p(J[i]));M;q\'2o\':j.A(c 2m(J[i]));M;q\'3M\':j.A(c 1d(\'{\'));M;q\'3K\':j.A(c 1d(\'}\'));M;q\'1z\':1b=1;M;q\'/1z\':Y c 12("14: 3f 2k 3e 1z.");2R:Y c 12(\'14: 3G 3E \'+2w+\'.\');}Z=H+J[i].O}a(s.O>Z){j.A(c 1d(s.3D(Z),1b))}};G.m.I=8(d,h,z,B){++B;6 $T=d,22,1Y;a(5.f.2T){$T=L.1m(d,{1W:(5.f.37&&B==1),1F:5.f.2z})}a(!5.f.2S){22=5.1p;1Y=h}U{22=L.1m(5.1p,{1W:(5.f.2r),1F:18});1Y=L.1m(h,{1W:(5.f.2r&&B==1),1F:18})}6 $P=9.1y({},22,1Y);6 $Q=z;$Q.2G=5.2G;6 13=\'\';F(6 i=0,l=5.1L.O;i<l;++i){13+=5.1L[i].I($T,$P,$Q,B)}--B;b 13};G.m.28=8(1J,1M){5.1p[1J]=1M};L=8(){};L.3q=8(3p){b 3p.W(/&/g,\'&4b;\').W(/>/g,\'&3o;\').W(/</g,\'&3n;\').W(/"/g,\'&48;\').W(/\'/g,\'&#39;\')};L.1m=8(d,1A){a(d==C){b d}36(d.3m){q 25:6 o={};F(6 i 1N d){o[i]=L.1m(d[i],1A)}a(!1A.1F){o.3k=d.3k}b o;q 47:6 o=[];F(6 i=0,l=d.O;i<l;++i){o[i]=L.1m(d[i],1A)}b o;q 3j:b(1A.1W)?(L.3q(d)):(d);q 46:a(1A.1F){Y c 12("14: 45 44 1Q 43.");}2R:b d}};L.2c=8(24){a(24===C||24===15){b{}}6 o=24.42(/[= ]/);a(o[0]===\'\'){o.41()}6 2B={};F(6 i=0,l=o.O;i<l;i+=2){2B[o[i]]=o[i+1]}b 2B};6 1d=8(2A,1b){5.23=2A;5.3h=1b};1d.m.I=8(d,h,z,B){6 t=5.23;a(!5.3h){6 $T=d;6 $P=h;6 $Q=z;t=t.W(/\\{(.*?)\\}/g,8(40,3g){6 19=V(3g);a(1I 19==\'8\'){6 f=9.K(z,\'1i\').f;a(f.2z||!f.2Z){b\'\'}U{19=19($T,$P,$Q)}}b(19===15)?(""):(3j(19))})}b t};6 1t=8(D,1r){5.1Z=1r;D.1c(/\\{#(?:U)*a (.*?)\\}/);5.3d=E.$1;5.1g=[];5.1f=[];5.1w=5.1g};1t.m.A=8(e){5.1w.A(e)};1t.m.1T=8(){b 5.1Z};1t.m.1U=8(){5.1w=5.1f};1t.m.I=8(d,h,z,B){6 $T=d;6 $P=h;6 $Q=z;6 2y=(V(5.3d))?(5.1g):(5.1f);6 13=\'\';F(6 i=0,l=2y.O;i<l;++i){13+=2y[i].I(d,h,z,B)}b 13};1R=8(D,1r){a(D.1c(/\\{#F (\\w+?) *= *(\\S+?) +3Y +(\\S+?) *(?:R=(\\S+?))*\\}/)){D=\'{#1S 1R.3a 38 \'+E.$1+\' 2k=\'+(E.$2||0)+\' 1G=\'+(E.$3||-1)+\' R=\'+(E.$4||1)+\' 1E=$T}\';b c 1j(D,1r)}U{Y c 12(\'14: 3W 3V "35": \'+D);}};1R.3a=8(i){b i};6 1j=8(D,1r){5.1Z=1r;D.1c(/\\{#1S (.+?) 38 (\\w+?)( .+)*\\}/);5.34=E.$1;5.y=E.$2;5.N=E.$3||C;5.N=L.2c(5.N);5.1g=[];5.1f=[];5.1w=5.1g};1j.m.A=8(e){5.1w.A(e)};1j.m.1T=8(){b 5.1Z};1j.m.1U=8(){5.1w=5.1f};1j.m.I=8(d,h,z,B){6 $T=d;6 $P=h;6 $Q=z;6 1h=V(5.34);6 1D=[];6 1u=1I 1h;a(1u==\'33\'){6 2t=[];9.17(1h,8(k,v){1D.A(k);2t.A(v)});1h=2t}6 1E=(5.N.1E!==15)?(V(5.N.1E)):{};6 s=1H(V(5.N.2k)||0),e;6 R=1H(V(5.N.R)||1);a(1u!=\'8\'){e=1h.O}U{a(5.N.1G===15||5.N.1G===C){e=1H.3S}U{e=1H(V(5.N.1G))+((R>0)?(1):(-1))}}6 13=\'\';6 i,l;a(5.N.1C){6 19=s+1H(V(5.N.1C));e=(19>e)?(e):(19)}a((e>s&&R>0)||(e<s&&R<0)){6 1q=0;6 30=(1u!=\'8\')?(3R.3Q((e-s)/R)):15;6 1s,1k;F(;((R>0)?(s<e):(s>e));s+=R,++1q){1s=1D[s];a(1u!=\'8\'){1k=1h[s]}U{1k=1h(s);a(1k===15||1k===C){M}}a((1u==\'33\')&&(1s 1N 25)&&(25[1s]===$T[1s])){3b}$T=1E;6 p=$T[5.y]=1k;$T[5.y+\'$2Y\']=s;$T[5.y+\'$1q\']=1q;$T[5.y+\'$2X\']=(1q==0);$T[5.y+\'$3l\']=(s+R>=e);$T[5.y+\'$2V\']=30;$T[5.y+\'$1D\']=1s;$T[5.y+\'$1I\']=1I 1k;F(i=0,l=5.1g.O;i<l;++i){13+=5.1g[i].I($T,h,z,B)}1e $T[5.y+\'$2Y\'];1e $T[5.y+\'$1q\'];1e $T[5.y+\'$2X\'];1e $T[5.y+\'$3l\'];1e $T[5.y+\'$2V\'];1e $T[5.y+\'$1D\'];1e $T[5.y+\'$1I\'];1e $T[5.y]}}U{F(i=0,l=5.1f.O;i<l;++i){13+=5.1f[i].I($T,h,z,B)}}b 13};6 2I=8(D,x){D.1c(/\\{#2q (.*?)(?: 3P=(.*?))?\\}/);5.2H=x[E.$1];a(5.2H==15){Y c 12(\'14: 3O 35 2q: \'+E.$1);}5.2U=E.$2};2I.m.I=8(d,h,z,B){6 $T=d;b 5.2H.I(V(5.2U),h,z,B)};6 2p=8(D){D.1c(/\\{#h 1J=(\\w*?) 1M=(.*?)\\}/);5.y=E.$1;5.23=E.$2};2p.m.I=8(d,h,z,B){6 $T=d;6 $P=h;6 $Q=z;h[5.y]=V(5.23);b\'\'};6 2m=8(D){D.1c(/\\{#2o 3N=(.*?)\\}/);5.2d=V(E.$1);5.2l=5.2d.O;a(5.2l<=0){Y c 12(\'14: 2o 3L 3J 3I\');}5.2f=0;5.2b=-1};2m.m.I=8(d,h,z,B){6 2j=9.K(z,\'1B\');a(2j!=5.2b){5.2b=2j;5.2f=0}6 i=5.2f++%5.2l;b 5.2d[i]};9.X.1n=8(s,x,f){a(s.3m===G){b 9(5).17(8(){9.K(5,\'1i\',s);9.K(5,\'1B\',0)})}U{b 9(5).17(8(){9.K(5,\'1i\',c G(s,x,f));9.K(5,\'1B\',0)})}};9.X.3F=8(1o,x,f){6 s=9.2g({1l:1o,2e:18}).2P;b 9(5).1n(s,x,f)};9.X.3C=8(2i,x,f){6 s=$(\'#\'+2i).2A();a(s==C){s=$(\'#\'+2i).2O();s=s.W(/&3n;/g,"<").W(/&3o;/g,">")}s=9.3B(s);s=s.W(/^<\\!\\[3A\\[([\\s\\S]*)\\]\\]>$/3z,\'$1\');b 9(5).1n(s,x,f)};9.X.3y=8(){6 1C=0;9(5).17(8(){a(9.K(5,\'1i\')){++1C}});b 1C};9.X.3x=8(){9(5).32();b 9(5).17(8(){9.2N(5,\'1i\')})};9.X.28=8(1J,1M){b 9(5).17(8(){6 t=9.K(5,\'1i\');a(t===15){Y c 12(\'14: G 2n 1Q 2W.\');}t.28(1J,1M)})};9.X.2a=8(d,h){b 9(5).17(8(){6 t=9.K(5,\'1i\');a(t===15){Y c 12(\'14: G 2n 1Q 2W.\');}9.K(5,\'1B\',9.K(5,\'1B\')+1);9(5).2O(t.I(d,h,5,0))})};9.X.3w=8(1o,h){6 10=5;6 s=9.2g({1l:1o,2e:18,3v:18,3u:\'3t\',3s:8(d){9(10).2a(d,h)}});b 5};6 1P=8(1l,h,1O,1X,16){5.2M=1l;5.1p=h;5.2L=1O;5.2K=1X;5.16=16;5.2C=C;6 10=5;9(16).17(8(){9.K(5,\'2D\',10)});5.27()};1P.m.27=8(){5.2J();a(5.16.O==0){b}6 10=5;9.4f(5.2M,5.2K,8(d){9(10.16).2a(d,10.1p)});5.2C=4e(8(){10.27()},5.2L)};1P.m.2J=8(){5.16=9.3r(5.16,8(o){a(9.4d.4c){6 n=o.2F;2v(n&&n!=4a){n=n.2F}b n!=C}U{b o.2F!=C}})};9.X.49=8(1l,h,1O,1X){6 u=c 1P(1l,h,1O,1X,5);b u.2C};9.X.32=8(){b 9(5).17(8(){6 26=9.K(5,\'2D\');a(26==C){b}6 10=5;26.16=9.3r(26.16,8(o){b o!=10});9.2N(5,\'2D\')})};9.1y({3c:8(s,x,f){b c G(s,x,f)},4g:8(1o,x,f){6 s=9.2g({1l:1o,2e:18}).2P;b c G(s,x,f)}})})(9)}''
(395,6611): run-time error CSS1019: Unexpected token, found ','
(395,6613): run-time error CSS1019: Unexpected token, found '62'
(395,6615): run-time error CSS1019: Unexpected token, found ','
(395,6617): run-time error CSS1019: Unexpected token, found '265'
(395,6620): run-time error CSS1019: Unexpected token, found ','
(395,6622): run-time error CSS1019: Unexpected token, found ''|||||this|var||function|jQuery|if|return|new|||settings||param||node|||prototype||||case|||||||includes|_name|element|push|deep|null|oper|RegExp|for|Template|se|get|op|data|TemplateUtils|break|_option|length|||step|||else|eval|replace|fn|throw|ss|that||Error|ret|jTemplates|undefined|objs|each|false|tmp|_templates_code|literalMode|match|TextNode|delete|_onFalse|_onTrue|fcount|jTemplate|opFOREACH|cval|url|cloneData|setTemplate|url_|_param|iteration|par|ckey|opIF|mode|lastIndex|_currentState|tname|extend|literal|filter|jTemplateSID|count|key|extData|noFunc|end|Number|typeof|name|_templates|_tree|value|in|interval|Updater|not|opFORFactory|foreach|getParent|switchToElse|MAIN|escapeData|args|_param2|_parent|iter|elseif_level|_param1|_value|optionText|Object|updater|run|setParam|_includes|processTemplate|_lastSessionID|optionToObject|_values|async|_index|ajax|substring|elementName|sid|begin|_length|Cycle|is|cycle|UserParam|include|filter_params|indexOf|arr|true|while|op_|_template_settings|tab|disallow_functions|val|obj|timer|jTemplateUpdater|reg|parentNode|version|_template|Include|detectDeletedNodes|_args|_interval|_url|removeData|html|responseText|splitTemplates|default|clone_params|clone_data|_root|total|defined|first|index|runnable_functions|_total|window|processTemplateStop|object|_arg|find|switch|filter_data|as||funcIterator|continue|createTemplate|_cond|of|No|__a1|_literalMode|template|String|toString|last|constructor|lt|gt|txt|escapeHTML|grep|success|json|dataType|cache|processTemplateURL|removeTemplate|hasTemplate|im|CDATA|trim|setTemplateElement|substr|tag|setTemplateURL|unknown|closed|elements|no|rdelim|has|ldelim|values|Cannot|root|ceil|Math|MAX_VALUE|elseif|exec|failed|Operator|ppp|to|inArray|__a0|shift|split|allowed|are|Functions|Function|Array|quot|processTemplateStart|document|amp|msie|browser|setTimeout|getJSON|createTemplateURL''
(395,8496): run-time error CSS1030: Expected identifier, found 'split('
(395,8496): run-time error CSS1019: Unexpected token, found 'split('
(395,8502): run-time error CSS1019: Unexpected token, found ''|''
(395,8505): run-time error CSS1019: Unexpected token, found ')'
(395,8506): run-time error CSS1019: Unexpected token, found ','
(395,8508): run-time error CSS1019: Unexpected token, found '0'
(395,8509): run-time error CSS1019: Unexpected token, found ','
(395,8511): run-time error CSS1019: Unexpected token, found '{'
(395,8512): run-time error CSS1019: Unexpected token, found '}'
(395,8513): run-time error CSS1019: Unexpected token, found ')'
(395,8514): run-time error CSS1019: Unexpected token, found ')'
(399,7): run-time error CSS1031: Expected selector, found '='
(399,7): run-time error CSS1025: Expected comma or open brace, found '='
(443,2): run-time error CSS1019: Unexpected token, found '('
(443,3): run-time error CSS1019: Unexpected token, found ')'
(446,22): run-time error CSS1031: Expected selector, found '='
(446,22): run-time error CSS1025: Expected comma or open brace, found '='
(459,25): run-time error CSS1031: Expected selector, found '='
(459,25): run-time error CSS1025: Expected comma or open brace, found '='
(569,2): run-time error CSS1019: Unexpected token, found '('
(569,3): run-time error CSS1019: Unexpected token, found ')'
(570,25): run-time error CSS1031: Expected selector, found '='
(570,25): run-time error CSS1025: Expected comma or open brace, found '='
(586,10): run-time error CSS1031: Expected selector, found 'clickAutocompleteTextLi('
(586,10): run-time error CSS1025: Expected comma or open brace, found 'clickAutocompleteTextLi('
(591,24): run-time error CSS1031: Expected selector, found '='
(591,24): run-time error CSS1025: Expected comma or open brace, found '='
(661,1): run-time error CSS1019: Unexpected token, found '$'
(661,2): run-time error CSS1019: Unexpected token, found '('
(661,12): run-time error CSS1031: Expected selector, found '('
(661,12): run-time error CSS1025: Expected comma or open brace, found '('
(671,2): run-time error CSS1019: Unexpected token, found ')'
(675,15): run-time error CSS1031: Expected selector, found '='
(675,15): run-time error CSS1025: Expected comma or open brace, found '='
(723,2): run-time error CSS1019: Unexpected token, found '('
(723,3): run-time error CSS1019: Unexpected token, found ')'
(724,1): run-time error CSS1019: Unexpected token, found '$'
(724,2): run-time error CSS1019: Unexpected token, found '('
(724,12): run-time error CSS1031: Expected selector, found '('
(724,12): run-time error CSS1025: Expected comma or open brace, found '('
(745,2): run-time error CSS1019: Unexpected token, found ')'
(746,1): run-time error CSS1019: Unexpected token, found '$'
(746,2): run-time error CSS1019: Unexpected token, found '('
(746,9): run-time error CSS1031: Expected selector, found ')'
(746,9): run-time error CSS1025: Expected comma or open brace, found ')'
(758,2): run-time error CSS1019: Unexpected token, found ')'
(761,12): run-time error CSS1031: Expected selector, found '='
(761,12): run-time error CSS1025: Expected comma or open brace, found '='
(1058,1): run-time error CSS1019: Unexpected token, found '$'
(1058,2): run-time error CSS1019: Unexpected token, found '('
(1058,12): run-time error CSS1031: Expected selector, found '('
(1058,12): run-time error CSS1025: Expected comma or open brace, found '('
(1080,2): run-time error CSS1019: Unexpected token, found ')'
(1081,1): run-time error CSS1019: Unexpected token, found '$'
(1081,2): run-time error CSS1019: Unexpected token, found '('
(1081,12): run-time error CSS1031: Expected selector, found '('
(1081,12): run-time error CSS1025: Expected comma or open brace, found '('
(1110,2): run-time error CSS1019: Unexpected token, found ')'
(1112,1): run-time error CSS1019: Unexpected token, found '('
(1112,11): run-time error CSS1031: Expected selector, found '('
(1112,11): run-time error CSS1025: Expected comma or open brace, found '('
(1122,2): run-time error CSS1019: Unexpected token, found ')'
(1122,3): run-time error CSS1019: Unexpected token, found '('
(1122,10): run-time error CSS1031: Expected selector, found ')'
(1122,10): run-time error CSS1025: Expected comma or open brace, found ')'
(1126,29): run-time error CSS1031: Expected selector, found '='
(1126,29): run-time error CSS1025: Expected comma or open brace, found '='
(1181,31): run-time error CSS1031: Expected selector, found '='
(1181,31): run-time error CSS1025: Expected comma or open brace, found '='
(1216,24): run-time error CSS1031: Expected selector, found '='
(1216,24): run-time error CSS1025: Expected comma or open brace, found '='
(1228,13): run-time error CSS1031: Expected selector, found '='
(1228,13): run-time error CSS1025: Expected comma or open brace, found '='
(1255,20): run-time error CSS1031: Expected selector, found '='
(1255,20): run-time error CSS1025: Expected comma or open brace, found '='
(1286,1): run-time error CSS1019: Unexpected token, found '$'
(1286,2): run-time error CSS1019: Unexpected token, found '('
(1286,12): run-time error CSS1031: Expected selector, found '('
(1286,12): run-time error CSS1025: Expected comma or open brace, found '('
(1288,2): run-time error CSS1019: Unexpected token, found ')'
(1289,10): run-time error CSS1031: Expected selector, found '='
(1289,10): run-time error CSS1025: Expected comma or open brace, found '='
(1335,9): run-time error CSS1031: Expected selector, found '='
(1335,9): run-time error CSS1025: Expected comma or open brace, found '='
(1348,2): run-time error CSS1019: Unexpected token, found '('
(1348,3): run-time error CSS1019: Unexpected token, found ')'
(1351,1): run-time error CSS1019: Unexpected token, found '$'
(1351,2): run-time error CSS1019: Unexpected token, found '('
(1351,12): run-time error CSS1031: Expected selector, found '('
(1351,12): run-time error CSS1025: Expected comma or open brace, found '('
(1357,2): run-time error CSS1019: Unexpected token, found ')'
 */
/*
 Copyright (C) Federico Zivolo 2018
 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
 */(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=getComputedStyle(e,null);return t?o[t]:o}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll|overlay)/.test(r+s+p)?e:n(o(e))}function r(e){return 11===e?re:10===e?pe:re||pe}function p(e){if(!e)return document.documentElement;for(var o=r(10)?document.body:null,n=e.offsetParent;n===o&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TD','TABLE'].indexOf(n.nodeName)&&'static'===t(n,'position')?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function s(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||p(e.firstElementChild)===e)}function d(e){return null===e.parentNode?e:d(e.parentNode)}function a(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=o?e:t,i=o?t:e,r=document.createRange();r.setStart(n,0),r.setEnd(i,0);var l=r.commonAncestorContainer;if(e!==l&&t!==l||n.contains(i))return s(l)?l:p(l);var f=d(e);return f.host?a(f.host,t):a(e,d(t).host)}function l(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',n=e.nodeName;if('BODY'===n||'HTML'===n){var i=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||i;return r[o]}return e[o]}function f(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=l(t,'top'),i=l(t,'left'),r=o?-1:1;return e.top+=n*r,e.bottom+=n*r,e.left+=i*r,e.right+=i*r,e}function m(e,t){var o='x'===t?'Left':'Top',n='Left'==o?'Right':'Bottom';return parseFloat(e['border'+o+'Width'],10)+parseFloat(e['border'+n+'Width'],10)}function h(e,t,o,n){return $(t['offset'+e],t['scroll'+e],o['client'+e],o['offset'+e],o['scroll'+e],r(10)?o['offset'+e]+n['margin'+('Height'===e?'Top':'Left')]+n['margin'+('Height'===e?'Bottom':'Right')]:0)}function c(){var e=document.body,t=document.documentElement,o=r(10)&&getComputedStyle(t);return{height:h('Height',e,t,o),width:h('Width',e,t,o)}}function g(e){return le({},e,{right:e.left+e.width,bottom:e.top+e.height})}function u(e){var o={};try{if(r(10)){o=e.getBoundingClientRect();var n=l(e,'top'),i=l(e,'left');o.top+=n,o.left+=i,o.bottom+=n,o.right+=i}else o=e.getBoundingClientRect()}catch(t){}var p={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},s='HTML'===e.nodeName?c():{},d=s.width||e.clientWidth||p.right-p.left,a=s.height||e.clientHeight||p.bottom-p.top,f=e.offsetWidth-d,h=e.offsetHeight-a;if(f||h){var u=t(e);f-=m(u,'x'),h-=m(u,'y'),p.width-=f,p.height-=h}return g(p)}function b(e,o){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],p=r(10),s='HTML'===o.nodeName,d=u(e),a=u(o),l=n(e),m=t(o),h=parseFloat(m.borderTopWidth,10),c=parseFloat(m.borderLeftWidth,10);i&&'HTML'===o.nodeName&&(a.top=$(a.top,0),a.left=$(a.left,0));var b=g({top:d.top-a.top-h,left:d.left-a.left-c,width:d.width,height:d.height});if(b.marginTop=0,b.marginLeft=0,!p&&s){var y=parseFloat(m.marginTop,10),w=parseFloat(m.marginLeft,10);b.top-=h-y,b.bottom-=h-y,b.left-=c-w,b.right-=c-w,b.marginTop=y,b.marginLeft=w}return(p&&!i?o.contains(l):o===l&&'BODY'!==l.nodeName)&&(b=f(b,o)),b}function y(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=e.ownerDocument.documentElement,n=b(e,o),i=$(o.clientWidth,window.innerWidth||0),r=$(o.clientHeight,window.innerHeight||0),p=t?0:l(o),s=t?0:l(o,'left'),d={top:p-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:r};return g(d)}function w(e){var n=e.nodeName;return'BODY'===n||'HTML'===n?!1:'fixed'===t(e,'position')||w(o(e))}function E(e){if(!e||!e.parentElement||r())return document.documentElement;for(var o=e.parentElement;o&&'none'===t(o,'transform');)o=o.parentElement;return o||document.documentElement}function v(e,t,i,r){var p=4<arguments.length&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},d=p?E(e):a(e,t);if('viewport'===r)s=y(d,p);else{var l;'scrollParent'===r?(l=n(o(t)),'BODY'===l.nodeName&&(l=e.ownerDocument.documentElement)):'window'===r?l=e.ownerDocument.documentElement:l=r;var f=b(l,d,p);if('HTML'===l.nodeName&&!w(d)){var m=c(),h=m.height,g=m.width;s.top+=f.top-f.marginTop,s.bottom=h+f.top,s.left+=f.left-f.marginLeft,s.right=g+f.left}else s=f}return s.left+=i,s.top+=i,s.right-=i,s.bottom-=i,s}function x(e){var t=e.width,o=e.height;return t*o}function O(e,t,o,n,i){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var p=v(o,n,r,i),s={top:{width:p.width,height:t.top-p.top},right:{width:p.right-t.right,height:p.height},bottom:{width:p.width,height:p.bottom-t.bottom},left:{width:t.left-p.left,height:p.height}},d=Object.keys(s).map(function(e){return le({key:e},s[e],{area:x(s[e])})}).sort(function(e,t){return t.area-e.area}),a=d.filter(function(e){var t=e.width,n=e.height;return t>=o.clientWidth&&n>=o.clientHeight}),l=0<a.length?a[0].key:d[0].key,f=e.split('-')[1];return l+(f?'-'+f:'')}function L(e,t,o){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,i=n?E(t):a(t,o);return b(o,i,n)}function S(e){var t=getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom),n=parseFloat(t.marginLeft)+parseFloat(t.marginRight),i={width:e.offsetWidth+n,height:e.offsetHeight+o};return i}function T(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 C(e,t,o){o=o.split('-')[0];var n=S(e),i={width:n.width,height:n.height},r=-1!==['right','left'].indexOf(o),p=r?'top':'left',s=r?'left':'top',d=r?'height':'width',a=r?'width':'height';return i[p]=t[p]+t[d]/2-n[d]/2,i[s]=o===s?t[s]-n[a]:t[T(s)],i}function D(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function N(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var n=D(e,function(e){return e[t]===o});return e.indexOf(n)}function P(t,o,n){var i=void 0===n?t:t.slice(0,N(t,'name',n));return i.forEach(function(t){t['function']&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var n=t['function']||t.fn;t.enabled&&e(n)&&(o.offsets.popper=g(o.offsets.popper),o.offsets.reference=g(o.offsets.reference),o=n(o,t))}),o}function k(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=L(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=O(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=C(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?'fixed':'absolute',e=P(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function W(e,t){return e.some(function(e){var o=e.name,n=e.enabled;return n&&o===t})}function B(e){for(var t=[!1,'ms','Webkit','Moz','O'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof document.body.style[r])return r}return null}function H(){return this.state.isDestroyed=!0,W(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[B('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function A(e){var t=e.ownerDocument;return t?t.defaultView:window}function M(e,t,o,i){var r='BODY'===e.nodeName,p=r?e.ownerDocument.defaultView:e;p.addEventListener(t,o,{passive:!0}),r||M(n(p.parentNode),t,o,i),i.push(p)}function I(e,t,o,i){o.updateBound=i,A(e).addEventListener('resize',o.updateBound,{passive:!0});var r=n(e);return M(r,'scroll',o.updateBound,o.scrollParents),o.scrollElement=r,o.eventsEnabled=!0,o}function F(){this.state.eventsEnabled||(this.state=I(this.reference,this.options,this.state,this.scheduleUpdate))}function R(e,t){return A(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 U(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=R(this.reference,this.state))}function Y(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function j(e,t){Object.keys(t).forEach(function(o){var n='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&Y(t[o])&&(n='px'),e.style[o]=t[o]+n})}function K(e,t){Object.keys(t).forEach(function(o){var n=t[o];!1===n?e.removeAttribute(o):e.setAttribute(o,t[o])})}function q(e,t,o){var n=D(e,function(e){var o=e.name;return o===t}),i=!!n&&e.some(function(e){return e.name===o&&e.enabled&&e.order<n.order});if(!i){var r='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+r+' modifier in order to work, be sure to include it before '+r+'!')}return i}function G(e){return'end'===e?'start':'start'===e?'end':e}function z(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=me.indexOf(e),n=me.slice(o+1).concat(me.slice(0,o));return t?n.reverse():n}function V(e,t,o,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],p=i[2];if(!r)return e;if(0===p.indexOf('%')){var s;switch(p){case'%p':s=o;break;case'%':case'%r':default:s=n;}var d=g(s);return d[t]/100*r}if('vh'===p||'vw'===p){var a;return a='vh'===p?$(document.documentElement.clientHeight,window.innerHeight||0):$(document.documentElement.clientWidth,window.innerWidth||0),a/100*r}return r}function _(e,t,o,n){var i=[0,0],r=-1!==['right','left'].indexOf(n),p=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=p.indexOf(D(p,function(e){return-1!==e.search(/,|\s/)}));p[s]&&-1===p[s].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var d=/\s*,\s*|\s+/,a=-1===s?[p]:[p.slice(0,s).concat([p[s].split(d)[0]]),[p[s].split(d)[1]].concat(p.slice(s+1))];return a=a.map(function(e,n){var i=(1===n?!r:r)?'height':'width',p=!1;return e.reduce(function(e,t){return''===e[e.length-1]&&-1!==['+','-'].indexOf(t)?(e[e.length-1]=t,p=!0,e):p?(e[e.length-1]+=t,p=!1,e):e.concat(t)},[]).map(function(e){return V(e,i,t,o)})}),a.forEach(function(e,t){e.forEach(function(o,n){Y(o)&&(i[t]+=o*('-'===e[n-1]?-1:1))})}),i}function X(e,t){var o,n=t.offset,i=e.placement,r=e.offsets,p=r.popper,s=r.reference,d=i.split('-')[0];return o=Y(+n)?[+n,0]:_(n,p,s,d),'left'===d?(p.top+=o[0],p.left-=o[1]):'right'===d?(p.top+=o[0],p.left+=o[1]):'top'===d?(p.left+=o[0],p.top-=o[1]):'bottom'===d&&(p.left+=o[0],p.top+=o[1]),e.popper=p,e}for(var J=Math.min,Q=Math.round,Z=Math.floor,$=Math.max,ee='undefined'!=typeof window&&'undefined'!=typeof document,te=['Edge','Trident','Firefox'],oe=0,ne=0;ne<te.length;ne+=1)if(ee&&0<=navigator.userAgent.indexOf(te[ne])){oe=1;break}var i=ee&&window.Promise,ie=i?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()},oe))}},re=ee&&!!(window.MSInputMethodContext&&document.documentMode),pe=ee&&/MSIE 10/.test(navigator.userAgent),se=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},de=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),ae=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},le=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},fe=['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'],me=fe.slice(3),he={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},ce=function(){function t(o,n){var i=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};se(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=ie(this.update.bind(this)),this.options=le({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o&&o.jquery?o[0]:o,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(le({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){i.options.modifiers[e]=le({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return le({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var p=this.options.eventsEnabled;p&&this.enableEventListeners(),this.state.eventsEnabled=p}return de(t,[{key:'update',value:function(){return k.call(this)}},{key:'destroy',value:function(){return H.call(this)}},{key:'enableEventListeners',value:function(){return F.call(this)}},{key:'disableEventListeners',value:function(){return U.call(this)}}]),t}();return ce.Utils=('undefined'==typeof window?global:window).PopperUtils,ce.placements=fe,ce.Defaults={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,o=t.split('-')[0],n=t.split('-')[1];if(n){var i=e.offsets,r=i.reference,p=i.popper,s=-1!==['bottom','top'].indexOf(o),d=s?'left':'top',a=s?'width':'height',l={start:ae({},d,r[d]),end:ae({},d,r[d]+r[a]-p[a])};e.offsets.popper=le({},p,l[n])}return e}},offset:{order:200,enabled:!0,fn:X,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var o=t.boundariesElement||p(e.instance.popper);e.instance.reference===o&&(o=p(o));var n=B('transform'),i=e.instance.popper.style,r=i.top,s=i.left,d=i[n];i.top='',i.left='',i[n]='';var a=v(e.instance.popper,e.instance.reference,t.padding,o,e.positionFixed);i.top=r,i.left=s,i[n]=d,t.boundaries=a;var l=t.priority,f=e.offsets.popper,m={primary:function(e){var o=f[e];return f[e]<a[e]&&!t.escapeWithReference&&(o=$(f[e],a[e])),ae({},e,o)},secondary:function(e){var o='right'===e?'left':'top',n=f[o];return f[e]>a[e]&&!t.escapeWithReference&&(n=J(f[o],a[e]-('right'===e?f.width:f.height))),ae({},o,n)}};return l.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';f=le({},f,m[t](e))}),e.offsets.popper=f,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,n=t.reference,i=e.placement.split('-')[0],r=Z,p=-1!==['top','bottom'].indexOf(i),s=p?'right':'bottom',d=p?'left':'top',a=p?'width':'height';return o[s]<r(n[d])&&(e.offsets.popper[d]=r(n[d])-o[a]),o[d]>r(n[s])&&(e.offsets.popper[d]=r(n[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,o){var n;if(!q(e.instance.modifiers,'arrow','keepTogether'))return e;var i=o.element;if('string'==typeof i){if(i=e.instance.popper.querySelector(i),!i)return e;}else if(!e.instance.popper.contains(i))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var r=e.placement.split('-')[0],p=e.offsets,s=p.popper,d=p.reference,a=-1!==['left','right'].indexOf(r),l=a?'height':'width',f=a?'Top':'Left',m=f.toLowerCase(),h=a?'left':'top',c=a?'bottom':'right',u=S(i)[l];d[c]-u<s[m]&&(e.offsets.popper[m]-=s[m]-(d[c]-u)),d[m]+u>s[c]&&(e.offsets.popper[m]+=d[m]+u-s[c]),e.offsets.popper=g(e.offsets.popper);var b=d[m]+d[l]/2-u/2,y=t(e.instance.popper),w=parseFloat(y['margin'+f],10),E=parseFloat(y['border'+f+'Width'],10),v=b-e.offsets.popper[m]-w-E;return v=$(J(s[l]-u,v),0),e.arrowElement=i,e.offsets.arrow=(n={},ae(n,m,Q(v)),ae(n,h,''),n),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(W(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=v(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split('-')[0],i=T(n),r=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case he.FLIP:p=[n,i];break;case he.CLOCKWISE:p=z(n);break;case he.COUNTERCLOCKWISE:p=z(n,!0);break;default:p=t.behavior;}return p.forEach(function(s,d){if(n!==s||p.length===d+1)return e;n=e.placement.split('-')[0],i=T(n);var a=e.offsets.popper,l=e.offsets.reference,f=Z,m='left'===n&&f(a.right)>f(l.left)||'right'===n&&f(a.left)<f(l.right)||'top'===n&&f(a.bottom)>f(l.top)||'bottom'===n&&f(a.top)<f(l.bottom),h=f(a.left)<f(o.left),c=f(a.right)>f(o.right),g=f(a.top)<f(o.top),u=f(a.bottom)>f(o.bottom),b='left'===n&&h||'right'===n&&c||'top'===n&&g||'bottom'===n&&u,y=-1!==['top','bottom'].indexOf(n),w=!!t.flipVariations&&(y&&'start'===r&&h||y&&'end'===r&&c||!y&&'start'===r&&g||!y&&'end'===r&&u);(m||b||w)&&(e.flipped=!0,(m||b)&&(n=p[d+1]),w&&(r=G(r)),e.placement=n+(r?'-'+r:''),e.offsets.popper=le({},e.offsets.popper,C(e.instance.popper,e.offsets.reference,e.placement)),e=P(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],n=e.offsets,i=n.popper,r=n.reference,p=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return i[p?'left':'top']=r[o]-(s?i[p?'width':'height']:0),e.placement=T(t),e.offsets.popper=g(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!q(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=D(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottom<o.top||t.left>o.right||t.top>o.bottom||t.right<o.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 o=t.x,n=t.y,i=e.offsets.popper,r=D(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==r&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var s,d,a=void 0===r?t.gpuAcceleration:r,l=p(e.instance.popper),f=u(l),m={position:i.position},h={left:Z(i.left),top:Q(i.top),bottom:Q(i.bottom),right:Z(i.right)},c='bottom'===o?'top':'bottom',g='right'===n?'left':'right',b=B('transform');if(d='bottom'==c?-f.height+h.bottom:h.top,s='right'==g?-f.width+h.right:h.left,a&&b)m[b]='translate3d('+s+'px, '+d+'px, 0)',m[c]=0,m[g]=0,m.willChange='transform';else{var y='bottom'==c?-1:1,w='right'==g?-1:1;m[c]=d*y,m[g]=s*w,m.willChange=c+', '+g}var E={"x-placement":e.placement};return e.attributes=le({},E,e.attributes),e.styles=le({},m,e.styles),e.arrowStyles=le({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return j(e.instance.popper,e.styles),K(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&j(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,n,i){var r=L(i,t,e,o.positionFixed),p=O(o.placement,r,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',p),j(t,{position:o.positionFixed?'fixed':'absolute'}),o},gpuAcceleration:void 0}}},ce});
//# sourceMappingURL=popper.min.js.map

/*!
  * Bootstrap v4.3.1 (https://getbootstrap.com/)
  * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t=t||self).bootstrap={},t.jQuery,t.Popper)}(this,function(t,g,u){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function l(o){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},e=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.forEach(function(t){var e,n,i;e=o,i=r[n=t],n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i})}return o}g=g&&g.hasOwnProperty("default")?g.default:g,u=u&&u.hasOwnProperty("default")?u.default:u;var e="transitionend";function n(t){var e=this,n=!1;return g(this).one(_.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||_.triggerTransitionEnd(e)},t),this}var _={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=g(t).css("transition-duration"),n=g(t).css("transition-delay"),i=parseFloat(e),o=parseFloat(n);return i||o?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){g(t).trigger(e)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=e[i],s=r&&_.isElement(r)?"element":(a=r,{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}var a},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"!=typeof t.getRootNode)return t instanceof ShadowRoot?t:t.parentNode?_.findShadowRoot(t.parentNode):null;var e=t.getRootNode();return e instanceof ShadowRoot?e:null}};g.fn.emulateTransitionEnd=n,g.event.special[_.TRANSITION_END]={bindType:e,delegateType:e,handle:function(t){if(g(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var o="alert",r="bs.alert",a="."+r,c=g.fn[o],h={CLOSE:"close"+a,CLOSED:"closed"+a,CLICK_DATA_API:"click"+a+".data-api"},f="alert",d="fade",m="show",p=function(){function i(t){this._element=t}var t=i.prototype;return t.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},t.dispose=function(){g.removeData(this._element,r),this._element=null},t._getRootElement=function(t){var e=_.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=g(t).closest("."+f)[0]),n},t._triggerCloseEvent=function(t){var e=g.Event(h.CLOSE);return g(t).trigger(e),e},t._removeElement=function(e){var n=this;if(g(e).removeClass(m),g(e).hasClass(d)){var t=_.getTransitionDurationFromElement(e);g(e).one(_.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(t)}else this._destroyElement(e)},t._destroyElement=function(t){g(t).detach().trigger(h.CLOSED).remove()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(r);e||(e=new i(this),t.data(r,e)),"close"===n&&e[n](this)})},i._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),i}();g(document).on(h.CLICK_DATA_API,'[data-dismiss="alert"]',p._handleDismiss(new p)),g.fn[o]=p._jQueryInterface,g.fn[o].Constructor=p,g.fn[o].noConflict=function(){return g.fn[o]=c,p._jQueryInterface};var v="button",y="bs.button",E="."+y,C=".data-api",T=g.fn[v],S="active",b="btn",I="focus",D='[data-toggle^="button"]',w='[data-toggle="buttons"]',A='input:not([type="hidden"])',N=".active",O=".btn",k={CLICK_DATA_API:"click"+E+C,FOCUS_BLUR_DATA_API:"focus"+E+C+" blur"+E+C},P=function(){function n(t){this._element=t}var t=n.prototype;return t.toggle=function(){var t=!0,e=!0,n=g(this._element).closest(w)[0];if(n){var i=this._element.querySelector(A);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(S))t=!1;else{var o=n.querySelector(N);o&&g(o).removeClass(S)}if(t){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!this._element.classList.contains(S),g(i).trigger("change")}i.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(S)),t&&g(this._element).toggleClass(S)},t.dispose=function(){g.removeData(this._element,y),this._element=null},n._jQueryInterface=function(e){return this.each(function(){var t=g(this).data(y);t||(t=new n(this),g(this).data(y,t)),"toggle"===e&&t[e]()})},s(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n}();g(document).on(k.CLICK_DATA_API,D,function(t){t.preventDefault();var e=t.target;g(e).hasClass(b)||(e=g(e).closest(O)),P._jQueryInterface.call(g(e),"toggle")}).on(k.FOCUS_BLUR_DATA_API,D,function(t){var e=g(t.target).closest(O)[0];g(e).toggleClass(I,/^focus(in)?$/.test(t.type))}),g.fn[v]=P._jQueryInterface,g.fn[v].Constructor=P,g.fn[v].noConflict=function(){return g.fn[v]=T,P._jQueryInterface};var L="carousel",j="bs.carousel",H="."+j,R=".data-api",x=g.fn[L],F={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},U={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},W="next",q="prev",M="left",K="right",Q={SLIDE:"slide"+H,SLID:"slid"+H,KEYDOWN:"keydown"+H,MOUSEENTER:"mouseenter"+H,MOUSELEAVE:"mouseleave"+H,TOUCHSTART:"touchstart"+H,TOUCHMOVE:"touchmove"+H,TOUCHEND:"touchend"+H,POINTERDOWN:"pointerdown"+H,POINTERUP:"pointerup"+H,DRAG_START:"dragstart"+H,LOAD_DATA_API:"load"+H+R,CLICK_DATA_API:"click"+H+R},B="carousel",V="active",Y="slide",z="carousel-item-right",X="carousel-item-left",$="carousel-item-next",G="carousel-item-prev",J="pointer-event",Z=".active",tt=".active.carousel-item",et=".carousel-item",nt=".carousel-item img",it=".carousel-item-next, .carousel-item-prev",ot=".carousel-indicators",rt="[data-slide], [data-slide-to]",st='[data-ride="carousel"]',at={TOUCH:"touch",PEN:"pen"},lt=function(){function r(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(ot),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=r.prototype;return t.next=function(){this._isSliding||this._slide(W)},t.nextWhenVisible=function(){!document.hidden&&g(this._element).is(":visible")&&"hidden"!==g(this._element).css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(q)},t.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(it)&&(_.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(t){var e=this;this._activeElement=this._element.querySelector(tt);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)g(this._element).one(Q.SLID,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var i=n<t?W:q;this._slide(i,this._items[t])}},t.dispose=function(){g(this._element).off(H),g.removeData(this._element,j),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(t){return t=l({},F,t),_.typeCheckConfig(L,t,U),t},t._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;0<e&&this.prev(),e<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&g(this._element).on(Q.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&g(this._element).on(Q.MOUSEENTER,function(t){return e.pause(t)}).on(Q.MOUSELEAVE,function(t){return e.cycle(t)}),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var n=this;if(this._touchSupported){var e=function(t){n._pointerEvent&&at[t.originalEvent.pointerType.toUpperCase()]?n.touchStartX=t.originalEvent.clientX:n._pointerEvent||(n.touchStartX=t.originalEvent.touches[0].clientX)},i=function(t){n._pointerEvent&&at[t.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=t.originalEvent.clientX-n.touchStartX),n._handleSwipe(),"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval))};g(this._element.querySelectorAll(nt)).on(Q.DRAG_START,function(t){return t.preventDefault()}),this._pointerEvent?(g(this._element).on(Q.POINTERDOWN,function(t){return e(t)}),g(this._element).on(Q.POINTERUP,function(t){return i(t)}),this._element.classList.add(J)):(g(this._element).on(Q.TOUCHSTART,function(t){return e(t)}),g(this._element).on(Q.TOUCHMOVE,function(t){var e;(e=t).originalEvent.touches&&1<e.originalEvent.touches.length?n.touchDeltaX=0:n.touchDeltaX=e.originalEvent.touches[0].clientX-n.touchStartX}),g(this._element).on(Q.TOUCHEND,function(t){return i(t)}))}},t._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},t._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(et)):[],this._items.indexOf(t)},t._getItemByDirection=function(t,e){var n=t===W,i=t===q,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var s=(o+(t===q?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},t._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(tt)),o=g.Event(Q.SLIDE,{relatedTarget:t,direction:e,from:i,to:n});return g(this._element).trigger(o),o},t._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(Z));g(e).removeClass(V);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&g(n).addClass(V)}},t._slide=function(t,e){var n,i,o,r=this,s=this._element.querySelector(tt),a=this._getItemIndex(s),l=e||s&&this._getItemByDirection(t,s),c=this._getItemIndex(l),h=Boolean(this._interval);if(o=t===W?(n=X,i=$,M):(n=z,i=G,K),l&&g(l).hasClass(V))this._isSliding=!1;else if(!this._triggerSlideEvent(l,o).isDefaultPrevented()&&s&&l){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(l);var u=g.Event(Q.SLID,{relatedTarget:l,direction:o,from:a,to:c});if(g(this._element).hasClass(Y)){g(l).addClass(i),_.reflow(l),g(s).addClass(n),g(l).addClass(n);var f=parseInt(l.getAttribute("data-interval"),10);this._config.interval=f?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,f):this._config.defaultInterval||this._config.interval;var d=_.getTransitionDurationFromElement(s);g(s).one(_.TRANSITION_END,function(){g(l).removeClass(n+" "+i).addClass(V),g(s).removeClass(V+" "+i+" "+n),r._isSliding=!1,setTimeout(function(){return g(r._element).trigger(u)},0)}).emulateTransitionEnd(d)}else g(s).removeClass(V),g(l).addClass(V),this._isSliding=!1,g(this._element).trigger(u);h&&this.cycle()}},r._jQueryInterface=function(i){return this.each(function(){var t=g(this).data(j),e=l({},F,g(this).data());"object"==typeof i&&(e=l({},e,i));var n="string"==typeof i?i:e.slide;if(t||(t=new r(this,e),g(this).data(j,t)),"number"==typeof i)t.to(i);else if("string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}else e.interval&&e.ride&&(t.pause(),t.cycle())})},r._dataApiClickHandler=function(t){var e=_.getSelectorFromElement(this);if(e){var n=g(e)[0];if(n&&g(n).hasClass(B)){var i=l({},g(n).data(),g(this).data()),o=this.getAttribute("data-slide-to");o&&(i.interval=!1),r._jQueryInterface.call(g(n),i),o&&g(n).data(j).to(o),t.preventDefault()}}},s(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return F}}]),r}();g(document).on(Q.CLICK_DATA_API,rt,lt._dataApiClickHandler),g(window).on(Q.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(st)),e=0,n=t.length;e<n;e++){var i=g(t[e]);lt._jQueryInterface.call(i,i.data())}}),g.fn[L]=lt._jQueryInterface,g.fn[L].Constructor=lt,g.fn[L].noConflict=function(){return g.fn[L]=x,lt._jQueryInterface};var ct="collapse",ht="bs.collapse",ut="."+ht,ft=g.fn[ct],dt={toggle:!0,parent:""},gt={toggle:"boolean",parent:"(string|element)"},_t={SHOW:"show"+ut,SHOWN:"shown"+ut,HIDE:"hide"+ut,HIDDEN:"hidden"+ut,CLICK_DATA_API:"click"+ut+".data-api"},mt="show",pt="collapse",vt="collapsing",yt="collapsed",Et="width",Ct="height",Tt=".show, .collapsing",St='[data-toggle="collapse"]',bt=function(){function a(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(St)),i=0,o=n.length;i<o;i++){var r=n[i],s=_.getSelectorFromElement(r),a=[].slice.call(document.querySelectorAll(s)).filter(function(t){return t===e});null!==s&&0<a.length&&(this._selector=s,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=a.prototype;return t.toggle=function(){g(this._element).hasClass(mt)?this.hide():this.show()},t.show=function(){var t,e,n=this;if(!this._isTransitioning&&!g(this._element).hasClass(mt)&&(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(Tt)).filter(function(t){return"string"==typeof n._config.parent?t.getAttribute("data-parent")===n._config.parent:t.classList.contains(pt)})).length&&(t=null),!(t&&(e=g(t).not(this._selector).data(ht))&&e._isTransitioning))){var i=g.Event(_t.SHOW);if(g(this._element).trigger(i),!i.isDefaultPrevented()){t&&(a._jQueryInterface.call(g(t).not(this._selector),"hide"),e||g(t).data(ht,null));var o=this._getDimension();g(this._element).removeClass(pt).addClass(vt),this._element.style[o]=0,this._triggerArray.length&&g(this._triggerArray).removeClass(yt).attr("aria-expanded",!0),this.setTransitioning(!0);var r="scroll"+(o[0].toUpperCase()+o.slice(1)),s=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,function(){g(n._element).removeClass(vt).addClass(pt).addClass(mt),n._element.style[o]="",n.setTransitioning(!1),g(n._element).trigger(_t.SHOWN)}).emulateTransitionEnd(s),this._element.style[o]=this._element[r]+"px"}}},t.hide=function(){var t=this;if(!this._isTransitioning&&g(this._element).hasClass(mt)){var e=g.Event(_t.HIDE);if(g(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",_.reflow(this._element),g(this._element).addClass(vt).removeClass(pt).removeClass(mt);var i=this._triggerArray.length;if(0<i)for(var o=0;o<i;o++){var r=this._triggerArray[o],s=_.getSelectorFromElement(r);if(null!==s)g([].slice.call(document.querySelectorAll(s))).hasClass(mt)||g(r).addClass(yt).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[n]="";var a=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,function(){t.setTransitioning(!1),g(t._element).removeClass(vt).addClass(pt).trigger(_t.HIDDEN)}).emulateTransitionEnd(a)}}},t.setTransitioning=function(t){this._isTransitioning=t},t.dispose=function(){g.removeData(this._element,ht),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(t){return(t=l({},dt,t)).toggle=Boolean(t.toggle),_.typeCheckConfig(ct,t,gt),t},t._getDimension=function(){return g(this._element).hasClass(Et)?Et:Ct},t._getParent=function(){var t,n=this;_.isElement(this._config.parent)?(t=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var e='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',i=[].slice.call(t.querySelectorAll(e));return g(i).each(function(t,e){n._addAriaAndCollapsedClass(a._getTargetFromElement(e),[e])}),t},t._addAriaAndCollapsedClass=function(t,e){var n=g(t).hasClass(mt);e.length&&g(e).toggleClass(yt,!n).attr("aria-expanded",n)},a._getTargetFromElement=function(t){var e=_.getSelectorFromElement(t);return e?document.querySelector(e):null},a._jQueryInterface=function(i){return this.each(function(){var t=g(this),e=t.data(ht),n=l({},dt,t.data(),"object"==typeof i&&i?i:{});if(!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||(e=new a(this,n),t.data(ht,e)),"string"==typeof i){if("undefined"==typeof e[i])throw new TypeError('No method named "'+i+'"');e[i]()}})},s(a,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return dt}}]),a}();g(document).on(_t.CLICK_DATA_API,St,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var n=g(this),e=_.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(e));g(i).each(function(){var t=g(this),e=t.data(ht)?"toggle":n.data();bt._jQueryInterface.call(t,e)})}),g.fn[ct]=bt._jQueryInterface,g.fn[ct].Constructor=bt,g.fn[ct].noConflict=function(){return g.fn[ct]=ft,bt._jQueryInterface};var It="dropdown",Dt="bs.dropdown",wt="."+Dt,At=".data-api",Nt=g.fn[It],Ot=new RegExp("38|40|27"),kt={HIDE:"hide"+wt,HIDDEN:"hidden"+wt,SHOW:"show"+wt,SHOWN:"shown"+wt,CLICK:"click"+wt,CLICK_DATA_API:"click"+wt+At,KEYDOWN_DATA_API:"keydown"+wt+At,KEYUP_DATA_API:"keyup"+wt+At},Pt="disabled",Lt="show",jt="dropup",Ht="dropright",Rt="dropleft",xt="dropdown-menu-right",Ft="position-static",Ut='[data-toggle="dropdown"]',Wt=".dropdown form",qt=".dropdown-menu",Mt=".navbar-nav",Kt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Qt="top-start",Bt="top-end",Vt="bottom-start",Yt="bottom-end",zt="right-start",Xt="left-start",$t={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},Gt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},Jt=function(){function c(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=c.prototype;return t.toggle=function(){if(!this._element.disabled&&!g(this._element).hasClass(Pt)){var t=c._getParentFromElement(this._element),e=g(this._menu).hasClass(Lt);if(c._clearMenus(),!e){var n={relatedTarget:this._element},i=g.Event(kt.SHOW,n);if(g(t).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof u)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var o=this._element;"parent"===this._config.reference?o=t:_.isElement(this._config.reference)&&(o=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(o=this._config.reference[0])),"scrollParent"!==this._config.boundary&&g(t).addClass(Ft),this._popper=new u(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===g(t).closest(Mt).length&&g(document.body).children().on("mouseover",null,g.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),g(this._menu).toggleClass(Lt),g(t).toggleClass(Lt).trigger(g.Event(kt.SHOWN,n))}}}},t.show=function(){if(!(this._element.disabled||g(this._element).hasClass(Pt)||g(this._menu).hasClass(Lt))){var t={relatedTarget:this._element},e=g.Event(kt.SHOW,t),n=c._getParentFromElement(this._element);g(n).trigger(e),e.isDefaultPrevented()||(g(this._menu).toggleClass(Lt),g(n).toggleClass(Lt).trigger(g.Event(kt.SHOWN,t)))}},t.hide=function(){if(!this._element.disabled&&!g(this._element).hasClass(Pt)&&g(this._menu).hasClass(Lt)){var t={relatedTarget:this._element},e=g.Event(kt.HIDE,t),n=c._getParentFromElement(this._element);g(n).trigger(e),e.isDefaultPrevented()||(g(this._menu).toggleClass(Lt),g(n).toggleClass(Lt).trigger(g.Event(kt.HIDDEN,t)))}},t.dispose=function(){g.removeData(this._element,Dt),g(this._element).off(wt),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;g(this._element).on(kt.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function(t){return t=l({},this.constructor.Default,g(this._element).data(),t),_.typeCheckConfig(It,t,this.constructor.DefaultType),t},t._getMenuElement=function(){if(!this._menu){var t=c._getParentFromElement(this._element);t&&(this._menu=t.querySelector(qt))}return this._menu},t._getPlacement=function(){var t=g(this._element.parentNode),e=Vt;return t.hasClass(jt)?(e=Qt,g(this._menu).hasClass(xt)&&(e=Bt)):t.hasClass(Ht)?e=zt:t.hasClass(Rt)?e=Xt:g(this._menu).hasClass(xt)&&(e=Yt),e},t._detectNavbar=function(){return 0<g(this._element).closest(".navbar").length},t._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),t},c._jQueryInterface=function(e){return this.each(function(){var t=g(this).data(Dt);if(t||(t=new c(this,"object"==typeof e?e:null),g(this).data(Dt,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},c._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var e=[].slice.call(document.querySelectorAll(Ut)),n=0,i=e.length;n<i;n++){var o=c._getParentFromElement(e[n]),r=g(e[n]).data(Dt),s={relatedTarget:e[n]};if(t&&"click"===t.type&&(s.clickEvent=t),r){var a=r._menu;if(g(o).hasClass(Lt)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&g.contains(o,t.target))){var l=g.Event(kt.HIDE,s);g(o).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&g(document.body).children().off("mouseover",null,g.noop),e[n].setAttribute("aria-expanded","false"),g(a).removeClass(Lt),g(o).removeClass(Lt).trigger(g.Event(kt.HIDDEN,s)))}}}},c._getParentFromElement=function(t){var e,n=_.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},c._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||g(t.target).closest(qt).length)):Ot.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!g(this).hasClass(Pt))){var e=c._getParentFromElement(this),n=g(e).hasClass(Lt);if(n&&(!n||27!==t.which&&32!==t.which)){var i=[].slice.call(e.querySelectorAll(Kt));if(0!==i.length){var o=i.indexOf(t.target);38===t.which&&0<o&&o--,40===t.which&&o<i.length-1&&o++,o<0&&(o=0),i[o].focus()}}else{if(27===t.which){var r=e.querySelector(Ut);g(r).trigger("focus")}g(this).trigger("click")}}},s(c,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return $t}},{key:"DefaultType",get:function(){return Gt}}]),c}();g(document).on(kt.KEYDOWN_DATA_API,Ut,Jt._dataApiKeydownHandler).on(kt.KEYDOWN_DATA_API,qt,Jt._dataApiKeydownHandler).on(kt.CLICK_DATA_API+" "+kt.KEYUP_DATA_API,Jt._clearMenus).on(kt.CLICK_DATA_API,Ut,function(t){t.preventDefault(),t.stopPropagation(),Jt._jQueryInterface.call(g(this),"toggle")}).on(kt.CLICK_DATA_API,Wt,function(t){t.stopPropagation()}),g.fn[It]=Jt._jQueryInterface,g.fn[It].Constructor=Jt,g.fn[It].noConflict=function(){return g.fn[It]=Nt,Jt._jQueryInterface};var Zt="modal",te="bs.modal",ee="."+te,ne=g.fn[Zt],ie={backdrop:!0,keyboard:!0,focus:!0,show:!0},oe={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},re={HIDE:"hide"+ee,HIDDEN:"hidden"+ee,SHOW:"show"+ee,SHOWN:"shown"+ee,FOCUSIN:"focusin"+ee,RESIZE:"resize"+ee,CLICK_DISMISS:"click.dismiss"+ee,KEYDOWN_DISMISS:"keydown.dismiss"+ee,MOUSEUP_DISMISS:"mouseup.dismiss"+ee,MOUSEDOWN_DISMISS:"mousedown.dismiss"+ee,CLICK_DATA_API:"click"+ee+".data-api"},se="modal-dialog-scrollable",ae="modal-scrollbar-measure",le="modal-backdrop",ce="modal-open",he="fade",ue="show",fe=".modal-dialog",de=".modal-body",ge='[data-toggle="modal"]',_e='[data-dismiss="modal"]',me=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",pe=".sticky-top",ve=function(){function o(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(fe),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var t=o.prototype;return t.toggle=function(t){return this._isShown?this.hide():this.show(t)},t.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){g(this._element).hasClass(he)&&(this._isTransitioning=!0);var n=g.Event(re.SHOW,{relatedTarget:t});g(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),g(this._element).on(re.CLICK_DISMISS,_e,function(t){return e.hide(t)}),g(this._dialog).on(re.MOUSEDOWN_DISMISS,function(){g(e._element).one(re.MOUSEUP_DISMISS,function(t){g(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},t.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=g.Event(re.HIDE);if(g(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=g(this._element).hasClass(he);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),g(document).off(re.FOCUSIN),g(this._element).removeClass(ue),g(this._element).off(re.CLICK_DISMISS),g(this._dialog).off(re.MOUSEDOWN_DISMISS),i){var o=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(o)}else this._hideModal()}}},t.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return g(t).off(ee)}),g(document).off(re.FOCUSIN),g.removeData(this._element,te),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(t){return t=l({},ie,t),_.typeCheckConfig(Zt,t,oe),t},t._showElement=function(t){var e=this,n=g(this._element).hasClass(he);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),g(this._dialog).hasClass(se)?this._dialog.querySelector(de).scrollTop=0:this._element.scrollTop=0,n&&_.reflow(this._element),g(this._element).addClass(ue),this._config.focus&&this._enforceFocus();var i=g.Event(re.SHOWN,{relatedTarget:t}),o=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,g(e._element).trigger(i)};if(n){var r=_.getTransitionDurationFromElement(this._dialog);g(this._dialog).one(_.TRANSITION_END,o).emulateTransitionEnd(r)}else o()},t._enforceFocus=function(){var e=this;g(document).off(re.FOCUSIN).on(re.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===g(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?g(this._element).on(re.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||g(this._element).off(re.KEYDOWN_DISMISS)},t._setResizeEvent=function(){var e=this;this._isShown?g(window).on(re.RESIZE,function(t){return e.handleUpdate(t)}):g(window).off(re.RESIZE)},t._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){g(document.body).removeClass(ce),t._resetAdjustments(),t._resetScrollbar(),g(t._element).trigger(re.HIDDEN)})},t._removeBackdrop=function(){this._backdrop&&(g(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(t){var e=this,n=g(this._element).hasClass(he)?he:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=le,n&&this._backdrop.classList.add(n),g(this._backdrop).appendTo(document.body),g(this._element).on(re.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._element.focus():e.hide())}),n&&_.reflow(this._backdrop),g(this._backdrop).addClass(ue),!t)return;if(!n)return void t();var i=_.getTransitionDurationFromElement(this._backdrop);g(this._backdrop).one(_.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){g(this._backdrop).removeClass(ue);var o=function(){e._removeBackdrop(),t&&t()};if(g(this._element).hasClass(he)){var r=_.getTransitionDurationFromElement(this._backdrop);g(this._backdrop).one(_.TRANSITION_END,o).emulateTransitionEnd(r)}else o()}else t&&t()},t._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var o=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(me)),e=[].slice.call(document.querySelectorAll(pe));g(t).each(function(t,e){var n=e.style.paddingRight,i=g(e).css("padding-right");g(e).data("padding-right",n).css("padding-right",parseFloat(i)+o._scrollbarWidth+"px")}),g(e).each(function(t,e){var n=e.style.marginRight,i=g(e).css("margin-right");g(e).data("margin-right",n).css("margin-right",parseFloat(i)-o._scrollbarWidth+"px")});var n=document.body.style.paddingRight,i=g(document.body).css("padding-right");g(document.body).data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}g(document.body).addClass(ce)},t._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(me));g(t).each(function(t,e){var n=g(e).data("padding-right");g(e).removeData("padding-right"),e.style.paddingRight=n||""});var e=[].slice.call(document.querySelectorAll(""+pe));g(e).each(function(t,e){var n=g(e).data("margin-right");"undefined"!=typeof n&&g(e).css("margin-right",n).removeData("margin-right")});var n=g(document.body).data("padding-right");g(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},t._getScrollbarWidth=function(){var t=document.createElement("div");t.className=ae,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},o._jQueryInterface=function(n,i){return this.each(function(){var t=g(this).data(te),e=l({},ie,g(this).data(),"object"==typeof n&&n?n:{});if(t||(t=new o(this,e),g(this).data(te,t)),"string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n](i)}else e.show&&t.show(i)})},s(o,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return ie}}]),o}();g(document).on(re.CLICK_DATA_API,ge,function(t){var e,n=this,i=_.getSelectorFromElement(this);i&&(e=document.querySelector(i));var o=g(e).data(te)?"toggle":l({},g(e).data(),g(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var r=g(e).one(re.SHOW,function(t){t.isDefaultPrevented()||r.one(re.HIDDEN,function(){g(n).is(":visible")&&n.focus()})});ve._jQueryInterface.call(g(e),o,this)}),g.fn[Zt]=ve._jQueryInterface,g.fn[Zt].Constructor=ve,g.fn[Zt].noConflict=function(){return g.fn[Zt]=ne,ve._jQueryInterface};var ye=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Ee={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ce=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Te=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function Se(t,s,e){if(0===t.length)return t;if(e&&"function"==typeof e)return e(t);for(var n=(new window.DOMParser).parseFromString(t,"text/html"),a=Object.keys(s),l=[].slice.call(n.body.querySelectorAll("*")),i=function(t,e){var n=l[t],i=n.nodeName.toLowerCase();if(-1===a.indexOf(n.nodeName.toLowerCase()))return n.parentNode.removeChild(n),"continue";var o=[].slice.call(n.attributes),r=[].concat(s["*"]||[],s[i]||[]);o.forEach(function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===ye.indexOf(n)||Boolean(t.nodeValue.match(Ce)||t.nodeValue.match(Te));for(var i=e.filter(function(t){return t instanceof RegExp}),o=0,r=i.length;o<r;o++)if(n.match(i[o]))return!0;return!1})(t,r)||n.removeAttribute(t.nodeName)})},o=0,r=l.length;o<r;o++)i(o);return n.body.innerHTML}var be="tooltip",Ie="bs.tooltip",De="."+Ie,we=g.fn[be],Ae="bs-tooltip",Ne=new RegExp("(^|\\s)"+Ae+"\\S+","g"),Oe=["sanitize","whiteList","sanitizeFn"],ke={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object"},Pe={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Le={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:Ee},je="show",He="out",Re={HIDE:"hide"+De,HIDDEN:"hidden"+De,SHOW:"show"+De,SHOWN:"shown"+De,INSERTED:"inserted"+De,CLICK:"click"+De,FOCUSIN:"focusin"+De,FOCUSOUT:"focusout"+De,MOUSEENTER:"mouseenter"+De,MOUSELEAVE:"mouseleave"+De},xe="fade",Fe="show",Ue=".tooltip-inner",We=".arrow",qe="hover",Me="focus",Ke="click",Qe="manual",Be=function(){function i(t,e){if("undefined"==typeof u)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t=i.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=g(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(g(this.getTipElement()).hasClass(Fe))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),g.removeData(this.element,this.constructor.DATA_KEY),g(this.element).off(this.constructor.EVENT_KEY),g(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&g(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===g(this.element).css("display"))throw new Error("Please use show on visible elements");var t=g.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){g(this.element).trigger(t);var n=_.findShadowRoot(this.element),i=g.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!i)return;var o=this.getTipElement(),r=_.getUID(this.constructor.NAME);o.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&g(o).addClass(xe);var s="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,a=this._getAttachment(s);this.addAttachmentClass(a);var l=this._getContainer();g(o).data(this.constructor.DATA_KEY,this),g.contains(this.element.ownerDocument.documentElement,this.tip)||g(o).appendTo(l),g(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new u(this.element,o,{placement:a,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:We},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),g(o).addClass(Fe),"ontouchstart"in document.documentElement&&g(document.body).children().on("mouseover",null,g.noop);var c=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,g(e.element).trigger(e.constructor.Event.SHOWN),t===He&&e._leave(null,e)};if(g(this.tip).hasClass(xe)){var h=_.getTransitionDurationFromElement(this.tip);g(this.tip).one(_.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},t.hide=function(t){var e=this,n=this.getTipElement(),i=g.Event(this.constructor.Event.HIDE),o=function(){e._hoverState!==je&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),g(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(g(this.element).trigger(i),!i.isDefaultPrevented()){if(g(n).removeClass(Fe),"ontouchstart"in document.documentElement&&g(document.body).children().off("mouseover",null,g.noop),this._activeTrigger[Ke]=!1,this._activeTrigger[Me]=!1,this._activeTrigger[qe]=!1,g(this.tip).hasClass(xe)){var r=_.getTransitionDurationFromElement(n);g(n).one(_.TRANSITION_END,o).emulateTransitionEnd(r)}else o();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(t){g(this.getTipElement()).addClass(Ae+"-"+t)},t.getTipElement=function(){return this.tip=this.tip||g(this.config.template)[0],this.tip},t.setContent=function(){var t=this.getTipElement();this.setElementContent(g(t.querySelectorAll(Ue)),this.getTitle()),g(t).removeClass(xe+" "+Fe)},t.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=Se(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?g(e).parent().is(t)||t.empty().append(e):t.text(g(e).text())},t.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:_.isElement(this.config.container)?g(this.config.container):g(document).find(this.config.container)},t._getAttachment=function(t){return Pe[t.toUpperCase()]},t._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)g(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(t){return i.toggle(t)});else if(t!==Qe){var e=t===qe?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=t===qe?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;g(i.element).on(e,i.config.selector,function(t){return i._enter(t)}).on(n,i.config.selector,function(t){return i._leave(t)})}}),g(this.element).closest(".modal").on("hide.bs.modal",function(){i.element&&i.hide()}),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||g(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?Me:qe]=!0),g(e.getTipElement()).hasClass(Fe)||e._hoverState===je?e._hoverState=je:(clearTimeout(e._timeout),e._hoverState=je,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===je&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||g(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?Me:qe]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=He,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===He&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function(t){var e=g(this.element).data();return Object.keys(e).forEach(function(t){-1!==Oe.indexOf(t)&&delete e[t]}),"number"==typeof(t=l({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),_.typeCheckConfig(be,t,this.constructor.DefaultType),t.sanitize&&(t.template=Se(t.template,t.whiteList,t.sanitizeFn)),t},t._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleanTipClass=function(){var t=g(this.getTipElement()),e=t.attr("class").match(Ne);null!==e&&e.length&&t.removeClass(e.join(""))},t._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},t._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(g(t).removeClass(xe),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},i._jQueryInterface=function(n){return this.each(function(){var t=g(this).data(Ie),e="object"==typeof n&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),g(this).data(Ie,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Le}},{key:"NAME",get:function(){return be}},{key:"DATA_KEY",get:function(){return Ie}},{key:"Event",get:function(){return Re}},{key:"EVENT_KEY",get:function(){return De}},{key:"DefaultType",get:function(){return ke}}]),i}();g.fn[be]=Be._jQueryInterface,g.fn[be].Constructor=Be,g.fn[be].noConflict=function(){return g.fn[be]=we,Be._jQueryInterface};var Ve="popover",Ye="bs.popover",ze="."+Ye,Xe=g.fn[Ve],$e="bs-popover",Ge=new RegExp("(^|\\s)"+$e+"\\S+","g"),Je=l({},Be.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Ze=l({},Be.DefaultType,{content:"(string|element|function)"}),tn="fade",en="show",nn=".popover-header",on=".popover-body",rn={HIDE:"hide"+ze,HIDDEN:"hidden"+ze,SHOW:"show"+ze,SHOWN:"shown"+ze,INSERTED:"inserted"+ze,CLICK:"click"+ze,FOCUSIN:"focusin"+ze,FOCUSOUT:"focusout"+ze,MOUSEENTER:"mouseenter"+ze,MOUSELEAVE:"mouseleave"+ze},sn=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),(e.prototype.constructor=e).__proto__=n;var o=i.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(t){g(this.getTipElement()).addClass($e+"-"+t)},o.getTipElement=function(){return this.tip=this.tip||g(this.config.template)[0],this.tip},o.setContent=function(){var t=g(this.getTipElement());this.setElementContent(t.find(nn),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(on),e),t.removeClass(tn+" "+en)},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var t=g(this.getTipElement()),e=t.attr("class").match(Ge);null!==e&&0<e.length&&t.removeClass(e.join(""))},i._jQueryInterface=function(n){return this.each(function(){var t=g(this).data(Ye),e="object"==typeof n?n:null;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),g(this).data(Ye,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Je}},{key:"NAME",get:function(){return Ve}},{key:"DATA_KEY",get:function(){return Ye}},{key:"Event",get:function(){return rn}},{key:"EVENT_KEY",get:function(){return ze}},{key:"DefaultType",get:function(){return Ze}}]),i}(Be);g.fn[Ve]=sn._jQueryInterface,g.fn[Ve].Constructor=sn,g.fn[Ve].noConflict=function(){return g.fn[Ve]=Xe,sn._jQueryInterface};var an="scrollspy",ln="bs.scrollspy",cn="."+ln,hn=g.fn[an],un={offset:10,method:"auto",target:""},fn={offset:"number",method:"string",target:"(string|element)"},dn={ACTIVATE:"activate"+cn,SCROLL:"scroll"+cn,LOAD_DATA_API:"load"+cn+".data-api"},gn="dropdown-item",_n="active",mn='[data-spy="scroll"]',pn=".nav, .list-group",vn=".nav-link",yn=".nav-item",En=".list-group-item",Cn=".dropdown",Tn=".dropdown-item",Sn=".dropdown-toggle",bn="offset",In="position",Dn=function(){function n(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+vn+","+this._config.target+" "+En+","+this._config.target+" "+Tn,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,g(this._scrollElement).on(dn.SCROLL,function(t){return n._process(t)}),this.refresh(),this._process()}var t=n.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?bn:In,o="auto"===this._config.method?t:this._config.method,r=o===In?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,n=_.getSelectorFromElement(t);if(n&&(e=document.querySelector(n)),e){var i=e.getBoundingClientRect();if(i.width||i.height)return[g(e)[o]().top+r,n]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},t.dispose=function(){g.removeData(this._element,ln),g(this._scrollElement).off(cn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(t){if("string"!=typeof(t=l({},un,"object"==typeof t&&t?t:{})).target){var e=g(t.target).attr("id");e||(e=_.getUID(an),g(t.target).attr("id",e)),t.target="#"+e}return _.typeCheckConfig(an,t,fn),t},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),n<=t){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",").map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'}),n=g([].slice.call(document.querySelectorAll(t.join(","))));n.hasClass(gn)?(n.closest(Cn).find(Sn).addClass(_n),n.addClass(_n)):(n.addClass(_n),n.parents(pn).prev(vn+", "+En).addClass(_n),n.parents(pn).prev(yn).children(vn).addClass(_n)),g(this._scrollElement).trigger(dn.ACTIVATE,{relatedTarget:e})},t._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(t){return t.classList.contains(_n)}).forEach(function(t){return t.classList.remove(_n)})},n._jQueryInterface=function(e){return this.each(function(){var t=g(this).data(ln);if(t||(t=new n(this,"object"==typeof e&&e),g(this).data(ln,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},s(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return un}}]),n}();g(window).on(dn.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(mn)),e=t.length;e--;){var n=g(t[e]);Dn._jQueryInterface.call(n,n.data())}}),g.fn[an]=Dn._jQueryInterface,g.fn[an].Constructor=Dn,g.fn[an].noConflict=function(){return g.fn[an]=hn,Dn._jQueryInterface};var wn="bs.tab",An="."+wn,Nn=g.fn.tab,On={HIDE:"hide"+An,HIDDEN:"hidden"+An,SHOW:"show"+An,SHOWN:"shown"+An,CLICK_DATA_API:"click"+An+".data-api"},kn="dropdown-menu",Pn="active",Ln="disabled",jn="fade",Hn="show",Rn=".dropdown",xn=".nav, .list-group",Fn=".active",Un="> li > .active",Wn='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',qn=".dropdown-toggle",Mn="> .dropdown-menu .active",Kn=function(){function i(t){this._element=t}var t=i.prototype;return t.show=function(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&g(this._element).hasClass(Pn)||g(this._element).hasClass(Ln))){var t,i,e=g(this._element).closest(xn)[0],o=_.getSelectorFromElement(this._element);if(e){var r="UL"===e.nodeName||"OL"===e.nodeName?Un:Fn;i=(i=g.makeArray(g(e).find(r)))[i.length-1]}var s=g.Event(On.HIDE,{relatedTarget:this._element}),a=g.Event(On.SHOW,{relatedTarget:i});if(i&&g(i).trigger(s),g(this._element).trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(t=document.querySelector(o)),this._activate(this._element,e);var l=function(){var t=g.Event(On.HIDDEN,{relatedTarget:n._element}),e=g.Event(On.SHOWN,{relatedTarget:i});g(i).trigger(t),g(n._element).trigger(e)};t?this._activate(t,t.parentNode,l):l()}}},t.dispose=function(){g.removeData(this._element,wn),this._element=null},t._activate=function(t,e,n){var i=this,o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?g(e).children(Fn):g(e).find(Un))[0],r=n&&o&&g(o).hasClass(jn),s=function(){return i._transitionComplete(t,o,n)};if(o&&r){var a=_.getTransitionDurationFromElement(o);g(o).removeClass(Hn).one(_.TRANSITION_END,s).emulateTransitionEnd(a)}else s()},t._transitionComplete=function(t,e,n){if(e){g(e).removeClass(Pn);var i=g(e.parentNode).find(Mn)[0];i&&g(i).removeClass(Pn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(g(t).addClass(Pn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),_.reflow(t),t.classList.contains(jn)&&t.classList.add(Hn),t.parentNode&&g(t.parentNode).hasClass(kn)){var o=g(t).closest(Rn)[0];if(o){var r=[].slice.call(o.querySelectorAll(qn));g(r).addClass(Pn)}t.setAttribute("aria-expanded",!0)}n&&n()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(wn);if(e||(e=new i(this),t.data(wn,e)),"string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),i}();g(document).on(On.CLICK_DATA_API,Wn,function(t){t.preventDefault(),Kn._jQueryInterface.call(g(this),"show")}),g.fn.tab=Kn._jQueryInterface,g.fn.tab.Constructor=Kn,g.fn.tab.noConflict=function(){return g.fn.tab=Nn,Kn._jQueryInterface};var Qn="toast",Bn="bs.toast",Vn="."+Bn,Yn=g.fn[Qn],zn={CLICK_DISMISS:"click.dismiss"+Vn,HIDE:"hide"+Vn,HIDDEN:"hidden"+Vn,SHOW:"show"+Vn,SHOWN:"shown"+Vn},Xn="fade",$n="hide",Gn="show",Jn="showing",Zn={animation:"boolean",autohide:"boolean",delay:"number"},ti={animation:!0,autohide:!0,delay:500},ei='[data-dismiss="toast"]',ni=function(){function i(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var t=i.prototype;return t.show=function(){var t=this;g(this._element).trigger(zn.SHOW),this._config.animation&&this._element.classList.add(Xn);var e=function(){t._element.classList.remove(Jn),t._element.classList.add(Gn),g(t._element).trigger(zn.SHOWN),t._config.autohide&&t.hide()};if(this._element.classList.remove($n),this._element.classList.add(Jn),this._config.animation){var n=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},t.hide=function(t){var e=this;this._element.classList.contains(Gn)&&(g(this._element).trigger(zn.HIDE),t?this._close():this._timeout=setTimeout(function(){e._close()},this._config.delay))},t.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Gn)&&this._element.classList.remove(Gn),g(this._element).off(zn.CLICK_DISMISS),g.removeData(this._element,Bn),this._element=null,this._config=null},t._getConfig=function(t){return t=l({},ti,g(this._element).data(),"object"==typeof t&&t?t:{}),_.typeCheckConfig(Qn,t,this.constructor.DefaultType),t},t._setListeners=function(){var t=this;g(this._element).on(zn.CLICK_DISMISS,ei,function(){return t.hide(!0)})},t._close=function(){var t=this,e=function(){t._element.classList.add($n),g(t._element).trigger(zn.HIDDEN)};if(this._element.classList.remove(Gn),this._config.animation){var n=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(Bn);if(e||(e=new i(this,"object"==typeof n&&n),t.data(Bn,e)),"string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method named "'+n+'"');e[n](this)}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"DefaultType",get:function(){return Zn}},{key:"Default",get:function(){return ti}}]),i}();g.fn[Qn]=ni._jQueryInterface,g.fn[Qn].Constructor=ni,g.fn[Qn].noConflict=function(){return g.fn[Qn]=Yn,ni._jQueryInterface},function(){if("undefined"==typeof g)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=g.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),t.Util=_,t.Alert=p,t.Button=P,t.Carousel=lt,t.Collapse=bt,t.Dropdown=Jt,t.Modal=ve,t.Popover=sn,t.Scrollspy=Dn,t.Tab=Kn,t.Toast=ni,t.Tooltip=Be,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=bootstrap.min.js.map
/*! jQuery UI - v1.12.1 - 2019-02-06
* http://jqueryui.com
* Includes: widget.js, position.js, keycode.js, unique-id.js, widgets/autocomplete.js, widgets/menu.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */

(function (t) { "function" == typeof define && define.amd ? define(["jquery"], t) : t(jQuery) })(function (t) { t.ui = t.ui || {}, t.ui.version = "1.12.1"; var e = 0, i = Array.prototype.slice; t.cleanData = function (e) { return function (i) { var s, n, o; for (o = 0; null != (n = i[o]) ; o++) try { s = t._data(n, "events"), s && s.remove && t(n).triggerHandler("remove") } catch (a) { } e(i) } }(t.cleanData), t.widget = function (e, i, s) { var n, o, a, r = {}, l = e.split(".")[0]; e = e.split(".")[1]; var h = l + "-" + e; return s || (s = i, i = t.Widget), t.isArray(s) && (s = t.extend.apply(null, [{}].concat(s))), t.expr[":"][h.toLowerCase()] = function (e) { return !!t.data(e, h) }, t[l] = t[l] || {}, n = t[l][e], o = t[l][e] = function (t, e) { return this._createWidget ? (arguments.length && this._createWidget(t, e), void 0) : new o(t, e) }, t.extend(o, n, { version: s.version, _proto: t.extend({}, s), _childConstructors: [] }), a = new i, a.options = t.widget.extend({}, a.options), t.each(s, function (e, s) { return t.isFunction(s) ? (r[e] = function () { function t() { return i.prototype[e].apply(this, arguments) } function n(t) { return i.prototype[e].apply(this, t) } return function () { var e, i = this._super, o = this._superApply; return this._super = t, this._superApply = n, e = s.apply(this, arguments), this._super = i, this._superApply = o, e } }(), void 0) : (r[e] = s, void 0) }), o.prototype = t.widget.extend(a, { widgetEventPrefix: n ? a.widgetEventPrefix || e : e }, r, { constructor: o, namespace: l, widgetName: e, widgetFullName: h }), n ? (t.each(n._childConstructors, function (e, i) { var s = i.prototype; t.widget(s.namespace + "." + s.widgetName, o, i._proto) }), delete n._childConstructors) : i._childConstructors.push(o), t.widget.bridge(e, o), o }, t.widget.extend = function (e) { for (var s, n, o = i.call(arguments, 1), a = 0, r = o.length; r > a; a++) for (s in o[a]) n = o[a][s], o[a].hasOwnProperty(s) && void 0 !== n && (e[s] = t.isPlainObject(n) ? t.isPlainObject(e[s]) ? t.widget.extend({}, e[s], n) : t.widget.extend({}, n) : n); return e }, t.widget.bridge = function (e, s) { var n = s.prototype.widgetFullName || e; t.fn[e] = function (o) { var a = "string" == typeof o, r = i.call(arguments, 1), l = this; return a ? this.length || "instance" !== o ? this.each(function () { var i, s = t.data(this, n); return "instance" === o ? (l = s, !1) : s ? t.isFunction(s[o]) && "_" !== o.charAt(0) ? (i = s[o].apply(s, r), i !== s && void 0 !== i ? (l = i && i.jquery ? l.pushStack(i.get()) : i, !1) : void 0) : t.error("no such method '" + o + "' for " + e + " widget instance") : t.error("cannot call methods on " + e + " prior to initialization; " + "attempted to call method '" + o + "'") }) : l = void 0 : (r.length && (o = t.widget.extend.apply(null, [o].concat(r))), this.each(function () { var e = t.data(this, n); e ? (e.option(o || {}), e._init && e._init()) : t.data(this, n, new s(o, this)) })), l } }, t.Widget = function () { }, t.Widget._childConstructors = [], t.Widget.prototype = { widgetName: "widget", widgetEventPrefix: "", defaultElement: "<div>", options: { classes: {}, disabled: !1, create: null }, _createWidget: function (i, s) { s = t(s || this.defaultElement || this)[0], this.element = t(s), this.uuid = e++, this.eventNamespace = "." + this.widgetName + this.uuid, this.bindings = t(), this.hoverable = t(), this.focusable = t(), this.classesElementLookup = {}, s !== this && (t.data(s, this.widgetFullName, this), this._on(!0, this.element, { remove: function (t) { t.target === s && this.destroy() } }), this.document = t(s.style ? s.ownerDocument : s.document || s), this.window = t(this.document[0].defaultView || this.document[0].parentWindow)), this.options = t.widget.extend({}, this.options, this._getCreateOptions(), i), this._create(), this.options.disabled && this._setOptionDisabled(this.options.disabled), this._trigger("create", null, this._getCreateEventData()), this._init() }, _getCreateOptions: function () { return {} }, _getCreateEventData: t.noop, _create: t.noop, _init: t.noop, destroy: function () { var e = this; this._destroy(), t.each(this.classesElementLookup, function (t, i) { e._removeClass(i, t) }), this.element.off(this.eventNamespace).removeData(this.widgetFullName), this.widget().off(this.eventNamespace).removeAttr("aria-disabled"), this.bindings.off(this.eventNamespace) }, _destroy: t.noop, widget: function () { return this.element }, option: function (e, i) { var s, n, o, a = e; if (0 === arguments.length) return t.widget.extend({}, this.options); if ("string" == typeof e) if (a = {}, s = e.split("."), e = s.shift(), s.length) { for (n = a[e] = t.widget.extend({}, this.options[e]), o = 0; s.length - 1 > o; o++) n[s[o]] = n[s[o]] || {}, n = n[s[o]]; if (e = s.pop(), 1 === arguments.length) return void 0 === n[e] ? null : n[e]; n[e] = i } else { if (1 === arguments.length) return void 0 === this.options[e] ? null : this.options[e]; a[e] = i } return this._setOptions(a), this }, _setOptions: function (t) { var e; for (e in t) this._setOption(e, t[e]); return this }, _setOption: function (t, e) { return "classes" === t && this._setOptionClasses(e), this.options[t] = e, "disabled" === t && this._setOptionDisabled(e), this }, _setOptionClasses: function (e) { var i, s, n; for (i in e) n = this.classesElementLookup[i], e[i] !== this.options.classes[i] && n && n.length && (s = t(n.get()), this._removeClass(n, i), s.addClass(this._classes({ element: s, keys: i, classes: e, add: !0 }))) }, _setOptionDisabled: function (t) { this._toggleClass(this.widget(), this.widgetFullName + "-disabled", null, !!t), t && (this._removeClass(this.hoverable, null, "ui-state-hover"), this._removeClass(this.focusable, null, "ui-state-focus")) }, enable: function () { return this._setOptions({ disabled: !1 }) }, disable: function () { return this._setOptions({ disabled: !0 }) }, _classes: function (e) { function i(i, o) { var a, r; for (r = 0; i.length > r; r++) a = n.classesElementLookup[i[r]] || t(), a = e.add ? t(t.unique(a.get().concat(e.element.get()))) : t(a.not(e.element).get()), n.classesElementLookup[i[r]] = a, s.push(i[r]), o && e.classes[i[r]] && s.push(e.classes[i[r]]) } var s = [], n = this; return e = t.extend({ element: this.element, classes: this.options.classes || {} }, e), this._on(e.element, { remove: "_untrackClassesElement" }), e.keys && i(e.keys.match(/\S+/g) || [], !0), e.extra && i(e.extra.match(/\S+/g) || []), s.join(" ") }, _untrackClassesElement: function (e) { var i = this; t.each(i.classesElementLookup, function (s, n) { -1 !== t.inArray(e.target, n) && (i.classesElementLookup[s] = t(n.not(e.target).get())) }) }, _removeClass: function (t, e, i) { return this._toggleClass(t, e, i, !1) }, _addClass: function (t, e, i) { return this._toggleClass(t, e, i, !0) }, _toggleClass: function (t, e, i, s) { s = "boolean" == typeof s ? s : i; var n = "string" == typeof t || null === t, o = { extra: n ? e : i, keys: n ? t : e, element: n ? this.element : t, add: s }; return o.element.toggleClass(this._classes(o), s), this }, _on: function (e, i, s) { var n, o = this; "boolean" != typeof e && (s = i, i = e, e = !1), s ? (i = n = t(i), this.bindings = this.bindings.add(i)) : (s = i, i = this.element, n = this.widget()), t.each(s, function (s, a) { function r() { return e || o.options.disabled !== !0 && !t(this).hasClass("ui-state-disabled") ? ("string" == typeof a ? o[a] : a).apply(o, arguments) : void 0 } "string" != typeof a && (r.guid = a.guid = a.guid || r.guid || t.guid++); var l = s.match(/^([\w:-]*)\s*(.*)$/), h = l[1] + o.eventNamespace, c = l[2]; c ? n.on(h, c, r) : i.on(h, r) }) }, _off: function (e, i) { i = (i || "").split(" ").join(this.eventNamespace + " ") + this.eventNamespace, e.off(i).off(i), this.bindings = t(this.bindings.not(e).get()), this.focusable = t(this.focusable.not(e).get()), this.hoverable = t(this.hoverable.not(e).get()) }, _delay: function (t, e) { function i() { return ("string" == typeof t ? s[t] : t).apply(s, arguments) } var s = this; return setTimeout(i, e || 0) }, _hoverable: function (e) { this.hoverable = this.hoverable.add(e), this._on(e, { mouseenter: function (e) { this._addClass(t(e.currentTarget), null, "ui-state-hover") }, mouseleave: function (e) { this._removeClass(t(e.currentTarget), null, "ui-state-hover") } }) }, _focusable: function (e) { this.focusable = this.focusable.add(e), this._on(e, { focusin: function (e) { this._addClass(t(e.currentTarget), null, "ui-state-focus") }, focusout: function (e) { this._removeClass(t(e.currentTarget), null, "ui-state-focus") } }) }, _trigger: function (e, i, s) { var n, o, a = this.options[e]; if (s = s || {}, i = t.Event(i), i.type = (e === this.widgetEventPrefix ? e : this.widgetEventPrefix + e).toLowerCase(), i.target = this.element[0], o = i.originalEvent) for (n in o) n in i || (i[n] = o[n]); return this.element.trigger(i, s), !(t.isFunction(a) && a.apply(this.element[0], [i].concat(s)) === !1 || i.isDefaultPrevented()) } }, t.each({ show: "fadeIn", hide: "fadeOut" }, function (e, i) { t.Widget.prototype["_" + e] = function (s, n, o) { "string" == typeof n && (n = { effect: n }); var a, r = n ? n === !0 || "number" == typeof n ? i : n.effect || i : e; n = n || {}, "number" == typeof n && (n = { duration: n }), a = !t.isEmptyObject(n), n.complete = o, n.delay && s.delay(n.delay), a && t.effects && t.effects.effect[r] ? s[e](n) : r !== e && s[r] ? s[r](n.duration, n.easing, o) : s.queue(function (i) { t(this)[e](), o && o.call(s[0]), i() }) } }), t.widget, function () { function e(t, e, i) { return [parseFloat(t[0]) * (u.test(t[0]) ? e / 100 : 1), parseFloat(t[1]) * (u.test(t[1]) ? i / 100 : 1)] } function i(e, i) { return parseInt(t.css(e, i), 10) || 0 } function s(e) { var i = e[0]; return 9 === i.nodeType ? { width: e.width(), height: e.height(), offset: { top: 0, left: 0 } } : t.isWindow(i) ? { width: e.width(), height: e.height(), offset: { top: e.scrollTop(), left: e.scrollLeft() } } : i.preventDefault ? { width: 0, height: 0, offset: { top: i.pageY, left: i.pageX } } : { width: e.outerWidth(), height: e.outerHeight(), offset: e.offset() } } var n, o = Math.max, a = Math.abs, r = /left|center|right/, l = /top|center|bottom/, h = /[\+\-]\d+(\.[\d]+)?%?/, c = /^\w+/, u = /%$/, d = t.fn.position; t.position = { scrollbarWidth: function () { if (void 0 !== n) return n; var e, i, s = t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"), o = s.children()[0]; return t("body").append(s), e = o.offsetWidth, s.css("overflow", "scroll"), i = o.offsetWidth, e === i && (i = s[0].clientWidth), s.remove(), n = e - i }, getScrollInfo: function (e) { var i = e.isWindow || e.isDocument ? "" : e.element.css("overflow-x"), s = e.isWindow || e.isDocument ? "" : e.element.css("overflow-y"), n = "scroll" === i || "auto" === i && e.width < e.element[0].scrollWidth, o = "scroll" === s || "auto" === s && e.height < e.element[0].scrollHeight; return { width: o ? t.position.scrollbarWidth() : 0, height: n ? t.position.scrollbarWidth() : 0 } }, getWithinInfo: function (e) { var i = t(e || window), s = t.isWindow(i[0]), n = !!i[0] && 9 === i[0].nodeType, o = !s && !n; return { element: i, isWindow: s, isDocument: n, offset: o ? t(e).offset() : { left: 0, top: 0 }, scrollLeft: i.scrollLeft(), scrollTop: i.scrollTop(), width: i.outerWidth(), height: i.outerHeight() } } }, t.fn.position = function (n) { if (!n || !n.of) return d.apply(this, arguments); n = t.extend({}, n); var u, p, f, g, m, _, v = t(n.of), b = t.position.getWithinInfo(n.within), y = t.position.getScrollInfo(b), w = (n.collision || "flip").split(" "), k = {}; return _ = s(v), v[0].preventDefault && (n.at = "left top"), p = _.width, f = _.height, g = _.offset, m = t.extend({}, g), t.each(["my", "at"], function () { var t, e, i = (n[this] || "").split(" "); 1 === i.length && (i = r.test(i[0]) ? i.concat(["center"]) : l.test(i[0]) ? ["center"].concat(i) : ["center", "center"]), i[0] = r.test(i[0]) ? i[0] : "center", i[1] = l.test(i[1]) ? i[1] : "center", t = h.exec(i[0]), e = h.exec(i[1]), k[this] = [t ? t[0] : 0, e ? e[0] : 0], n[this] = [c.exec(i[0])[0], c.exec(i[1])[0]] }), 1 === w.length && (w[1] = w[0]), "right" === n.at[0] ? m.left += p : "center" === n.at[0] && (m.left += p / 2), "bottom" === n.at[1] ? m.top += f : "center" === n.at[1] && (m.top += f / 2), u = e(k.at, p, f), m.left += u[0], m.top += u[1], this.each(function () { var s, r, l = t(this), h = l.outerWidth(), c = l.outerHeight(), d = i(this, "marginLeft"), _ = i(this, "marginTop"), x = h + d + i(this, "marginRight") + y.width, C = c + _ + i(this, "marginBottom") + y.height, D = t.extend({}, m), T = e(k.my, l.outerWidth(), l.outerHeight()); "right" === n.my[0] ? D.left -= h : "center" === n.my[0] && (D.left -= h / 2), "bottom" === n.my[1] ? D.top -= c : "center" === n.my[1] && (D.top -= c / 2), D.left += T[0], D.top += T[1], s = { marginLeft: d, marginTop: _ }, t.each(["left", "top"], function (e, i) { t.ui.position[w[e]] && t.ui.position[w[e]][i](D, { targetWidth: p, targetHeight: f, elemWidth: h, elemHeight: c, collisionPosition: s, collisionWidth: x, collisionHeight: C, offset: [u[0] + T[0], u[1] + T[1]], my: n.my, at: n.at, within: b, elem: l }) }), n.using && (r = function (t) { var e = g.left - D.left, i = e + p - h, s = g.top - D.top, r = s + f - c, u = { target: { element: v, left: g.left, top: g.top, width: p, height: f }, element: { element: l, left: D.left, top: D.top, width: h, height: c }, horizontal: 0 > i ? "left" : e > 0 ? "right" : "center", vertical: 0 > r ? "top" : s > 0 ? "bottom" : "middle" }; h > p && p > a(e + i) && (u.horizontal = "center"), c > f && f > a(s + r) && (u.vertical = "middle"), u.important = o(a(e), a(i)) > o(a(s), a(r)) ? "horizontal" : "vertical", n.using.call(this, t, u) }), l.offset(t.extend(D, { using: r })) }) }, t.ui.position = { fit: { left: function (t, e) { var i, s = e.within, n = s.isWindow ? s.scrollLeft : s.offset.left, a = s.width, r = t.left - e.collisionPosition.marginLeft, l = n - r, h = r + e.collisionWidth - a - n; e.collisionWidth > a ? l > 0 && 0 >= h ? (i = t.left + l + e.collisionWidth - a - n, t.left += l - i) : t.left = h > 0 && 0 >= l ? n : l > h ? n + a - e.collisionWidth : n : l > 0 ? t.left += l : h > 0 ? t.left -= h : t.left = o(t.left - r, t.left) }, top: function (t, e) { var i, s = e.within, n = s.isWindow ? s.scrollTop : s.offset.top, a = e.within.height, r = t.top - e.collisionPosition.marginTop, l = n - r, h = r + e.collisionHeight - a - n; e.collisionHeight > a ? l > 0 && 0 >= h ? (i = t.top + l + e.collisionHeight - a - n, t.top += l - i) : t.top = h > 0 && 0 >= l ? n : l > h ? n + a - e.collisionHeight : n : l > 0 ? t.top += l : h > 0 ? t.top -= h : t.top = o(t.top - r, t.top) } }, flip: { left: function (t, e) { var i, s, n = e.within, o = n.offset.left + n.scrollLeft, r = n.width, l = n.isWindow ? n.scrollLeft : n.offset.left, h = t.left - e.collisionPosition.marginLeft, c = h - l, u = h + e.collisionWidth - r - l, d = "left" === e.my[0] ? -e.elemWidth : "right" === e.my[0] ? e.elemWidth : 0, p = "left" === e.at[0] ? e.targetWidth : "right" === e.at[0] ? -e.targetWidth : 0, f = -2 * e.offset[0]; 0 > c ? (i = t.left + d + p + f + e.collisionWidth - r - o, (0 > i || a(c) > i) && (t.left += d + p + f)) : u > 0 && (s = t.left - e.collisionPosition.marginLeft + d + p + f - l, (s > 0 || u > a(s)) && (t.left += d + p + f)) }, top: function (t, e) { var i, s, n = e.within, o = n.offset.top + n.scrollTop, r = n.height, l = n.isWindow ? n.scrollTop : n.offset.top, h = t.top - e.collisionPosition.marginTop, c = h - l, u = h + e.collisionHeight - r - l, d = "top" === e.my[1], p = d ? -e.elemHeight : "bottom" === e.my[1] ? e.elemHeight : 0, f = "top" === e.at[1] ? e.targetHeight : "bottom" === e.at[1] ? -e.targetHeight : 0, g = -2 * e.offset[1]; 0 > c ? (s = t.top + p + f + g + e.collisionHeight - r - o, (0 > s || a(c) > s) && (t.top += p + f + g)) : u > 0 && (i = t.top - e.collisionPosition.marginTop + p + f + g - l, (i > 0 || u > a(i)) && (t.top += p + f + g)) } }, flipfit: { left: function () { t.ui.position.flip.left.apply(this, arguments), t.ui.position.fit.left.apply(this, arguments) }, top: function () { t.ui.position.flip.top.apply(this, arguments), t.ui.position.fit.top.apply(this, arguments) } } } }(), t.ui.position, t.ui.keyCode = { BACKSPACE: 8, COMMA: 188, DELETE: 46, DOWN: 40, END: 35, ENTER: 13, ESCAPE: 27, HOME: 36, LEFT: 37, PAGE_DOWN: 34, PAGE_UP: 33, PERIOD: 190, RIGHT: 39, SPACE: 32, TAB: 9, UP: 38 }, t.fn.extend({ uniqueId: function () { var t = 0; return function () { return this.each(function () { this.id || (this.id = "ui-id-" + ++t) }) } }(), removeUniqueId: function () { return this.each(function () { /^ui-id-\d+$/.test(this.id) && t(this).removeAttr("id") }) } }), t.ui.safeActiveElement = function (t) { var e; try { e = t.activeElement } catch (i) { e = t.body } return e || (e = t.body), e.nodeName || (e = t.body), e }, t.widget("ui.menu", { version: "1.12.1", defaultElement: "<ul>", delay: 300, options: { icons: { submenu: "ui-icon-caret-1-e" }, items: "> *", menus: "ul", position: { my: "left top", at: "right top" }, role: "menu", blur: null, focus: null, select: null }, _create: function () { this.activeMenu = this.element, this.mouseHandled = !1, this.element.uniqueId().attr({ role: this.options.role, tabIndex: 0 }), this._addClass("ui-menu", "ui-widget ui-widget-content"), this._on({ "mousedown .ui-menu-item": function (t) { t.preventDefault() }, "click .ui-menu-item": function (e) { var i = t(e.target), s = t(t.ui.safeActiveElement(this.document[0])); !this.mouseHandled && i.not(".ui-state-disabled").length && (this.select(e), e.isPropagationStopped() || (this.mouseHandled = !0), i.has(".ui-menu").length ? this.expand(e) : !this.element.is(":focus") && s.closest(".ui-menu").length && (this.element.trigger("focus", [!0]), this.active && 1 === this.active.parents(".ui-menu").length && clearTimeout(this.timer))) }, "mouseenter .ui-menu-item": function (e) { if (!this.previousFilter) { var i = t(e.target).closest(".ui-menu-item"), s = t(e.currentTarget); i[0] === s[0] && (this._removeClass(s.siblings().children(".ui-state-active"), null, "ui-state-active"), this.focus(e, s)) } }, mouseleave: "collapseAll", "mouseleave .ui-menu": "collapseAll", focus: function (t, e) { var i = this.active || this.element.find(this.options.items).eq(0); e || this.focus(t, i) }, blur: function (e) { this._delay(function () { var i = !t.contains(this.element[0], t.ui.safeActiveElement(this.document[0])); i && this.collapseAll(e) }) }, keydown: "_keydown" }), this.refresh(), this._on(this.document, { click: function (t) { this._closeOnDocumentClick(t) && this.collapseAll(t), this.mouseHandled = !1 } }) }, _destroy: function () { var e = this.element.find(".ui-menu-item").removeAttr("role aria-disabled"), i = e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup"); this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(), i.children().each(function () { var e = t(this); e.data("ui-menu-submenu-caret") && e.remove() }) }, _keydown: function (e) { var i, s, n, o, a = !0; switch (e.keyCode) { case t.ui.keyCode.PAGE_UP: this.previousPage(e); break; case t.ui.keyCode.PAGE_DOWN: this.nextPage(e); break; case t.ui.keyCode.HOME: this._move("first", "first", e); break; case t.ui.keyCode.END: this._move("last", "last", e); break; case t.ui.keyCode.UP: this.previous(e); break; case t.ui.keyCode.DOWN: this.next(e); break; case t.ui.keyCode.LEFT: this.collapse(e); break; case t.ui.keyCode.RIGHT: this.active && !this.active.is(".ui-state-disabled") && this.expand(e); break; case t.ui.keyCode.ENTER: case t.ui.keyCode.SPACE: this._activate(e); break; case t.ui.keyCode.ESCAPE: this.collapse(e); break; default: a = !1, s = this.previousFilter || "", o = !1, n = e.keyCode >= 96 && 105 >= e.keyCode ? "" + (e.keyCode - 96) : String.fromCharCode(e.keyCode), clearTimeout(this.filterTimer), n === s ? o = !0 : n = s + n, i = this._filterMenuItems(n), i = o && -1 !== i.index(this.active.next()) ? this.active.nextAll(".ui-menu-item") : i, i.length || (n = String.fromCharCode(e.keyCode), i = this._filterMenuItems(n)), i.length ? (this.focus(e, i), this.previousFilter = n, this.filterTimer = this._delay(function () { delete this.previousFilter }, 1e3)) : delete this.previousFilter } a && e.preventDefault() }, _activate: function (t) { this.active && !this.active.is(".ui-state-disabled") && (this.active.children("[aria-haspopup='true']").length ? this.expand(t) : this.select(t)) }, refresh: function () { var e, i, s, n, o, a = this, r = this.options.icons.submenu, l = this.element.find(this.options.menus); this._toggleClass("ui-menu-icons", null, !!this.element.find(".ui-icon").length), s = l.filter(":not(.ui-menu)").hide().attr({ role: this.options.role, "aria-hidden": "true", "aria-expanded": "false" }).each(function () { var e = t(this), i = e.prev(), s = t("<span>").data("ui-menu-submenu-caret", !0); a._addClass(s, "ui-menu-icon", "ui-icon " + r), i.attr("aria-haspopup", "true").prepend(s), e.attr("aria-labelledby", i.attr("id")) }), this._addClass(s, "ui-menu", "ui-widget ui-widget-content ui-front"), e = l.add(this.element), i = e.find(this.options.items), i.not(".ui-menu-item").each(function () { var e = t(this); a._isDivider(e) && a._addClass(e, "ui-menu-divider", "ui-widget-content") }), n = i.not(".ui-menu-item, .ui-menu-divider"), o = n.children().not(".ui-menu").uniqueId().attr({ tabIndex: -1, role: this._itemRole() }), this._addClass(n, "ui-menu-item")._addClass(o, "ui-menu-item-wrapper"), i.filter(".ui-state-disabled").attr("aria-disabled", "true"), this.active && !t.contains(this.element[0], this.active[0]) && this.blur() }, _itemRole: function () { return { menu: "menuitem", listbox: "option" }[this.options.role] }, _setOption: function (t, e) { if ("icons" === t) { var i = this.element.find(".ui-menu-icon"); this._removeClass(i, null, this.options.icons.submenu)._addClass(i, null, e.submenu) } this._super(t, e) }, _setOptionDisabled: function (t) { this._super(t), this.element.attr("aria-disabled", t + ""), this._toggleClass(null, "ui-state-disabled", !!t) }, focus: function (t, e) { var i, s, n; this.blur(t, t && "focus" === t.type), this._scrollIntoView(e), this.active = e.first(), s = this.active.children(".ui-menu-item-wrapper"), this._addClass(s, null, "ui-state-active"), this.options.role && this.element.attr("aria-activedescendant", s.attr("id")), n = this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"), this._addClass(n, null, "ui-state-active"), t && "keydown" === t.type ? this._close() : this.timer = this._delay(function () { this._close() }, this.delay), i = e.children(".ui-menu"), i.length && t && /^mouse/.test(t.type) && this._startOpening(i), this.activeMenu = e.parent(), this._trigger("focus", t, { item: e }) }, _scrollIntoView: function (e) { var i, s, n, o, a, r; this._hasScroll() && (i = parseFloat(t.css(this.activeMenu[0], "borderTopWidth")) || 0, s = parseFloat(t.css(this.activeMenu[0], "paddingTop")) || 0, n = e.offset().top - this.activeMenu.offset().top - i - s, o = this.activeMenu.scrollTop(), a = this.activeMenu.height(), r = e.outerHeight(), 0 > n ? this.activeMenu.scrollTop(o + n) : n + r > a && this.activeMenu.scrollTop(o + n - a + r)) }, blur: function (t, e) { e || clearTimeout(this.timer), this.active && (this._removeClass(this.active.children(".ui-menu-item-wrapper"), null, "ui-state-active"), this._trigger("blur", t, { item: this.active }), this.active = null) }, _startOpening: function (t) { clearTimeout(this.timer), "true" === t.attr("aria-hidden") && (this.timer = this._delay(function () { this._close(), this._open(t) }, this.delay)) }, _open: function (e) { var i = t.extend({ of: this.active }, this.options.position); clearTimeout(this.timer), this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden", "true"), e.show().removeAttr("aria-hidden").attr("aria-expanded", "true").position(i) }, collapseAll: function (e, i) { clearTimeout(this.timer), this.timer = this._delay(function () { var s = i ? this.element : t(e && e.target).closest(this.element.find(".ui-menu")); s.length || (s = this.element), this._close(s), this.blur(e), this._removeClass(s.find(".ui-state-active"), null, "ui-state-active"), this.activeMenu = s }, this.delay) }, _close: function (t) { t || (t = this.active ? this.active.parent() : this.element), t.find(".ui-menu").hide().attr("aria-hidden", "true").attr("aria-expanded", "false") }, _closeOnDocumentClick: function (e) { return !t(e.target).closest(".ui-menu").length }, _isDivider: function (t) { return !/[^\-\u2014\u2013\s]/.test(t.text()) }, collapse: function (t) { var e = this.active && this.active.parent().closest(".ui-menu-item", this.element); e && e.length && (this._close(), this.focus(t, e)) }, expand: function (t) { var e = this.active && this.active.children(".ui-menu ").find(this.options.items).first(); e && e.length && (this._open(e.parent()), this._delay(function () { this.focus(t, e) })) }, next: function (t) { this._move("next", "first", t) }, previous: function (t) { this._move("prev", "last", t) }, isFirstItem: function () { return this.active && !this.active.prevAll(".ui-menu-item").length }, isLastItem: function () { return this.active && !this.active.nextAll(".ui-menu-item").length }, _move: function (t, e, i) { var s; this.active && (s = "first" === t || "last" === t ? this.active["first" === t ? "prevAll" : "nextAll"](".ui-menu-item").eq(-1) : this.active[t + "All"](".ui-menu-item").eq(0)), s && s.length && this.active || (s = this.activeMenu.find(this.options.items)[e]()), this.focus(i, s) }, nextPage: function (e) { var i, s, n; return this.active ? (this.isLastItem() || (this._hasScroll() ? (s = this.active.offset().top, n = this.element.height(), this.active.nextAll(".ui-menu-item").each(function () { return i = t(this), 0 > i.offset().top - s - n }), this.focus(e, i)) : this.focus(e, this.activeMenu.find(this.options.items)[this.active ? "last" : "first"]())), void 0) : (this.next(e), void 0) }, previousPage: function (e) { var i, s, n; return this.active ? (this.isFirstItem() || (this._hasScroll() ? (s = this.active.offset().top, n = this.element.height(), this.active.prevAll(".ui-menu-item").each(function () { return i = t(this), i.offset().top - s + n > 0 }), this.focus(e, i)) : this.focus(e, this.activeMenu.find(this.options.items).first())), void 0) : (this.next(e), void 0) }, _hasScroll: function () { return this.element.outerHeight() < this.element.prop("scrollHeight") }, select: function (e) { this.active = this.active || t(e.target).closest(".ui-menu-item"); var i = { item: this.active }; this.active.has(".ui-menu").length || this.collapseAll(e, !0), this._trigger("select", e, i) }, _filterMenuItems: function (e) { var i = e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&"), s = RegExp("^" + i, "i"); return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function () { return s.test(t.trim(t(this).children(".ui-menu-item-wrapper").text())) }) } }), t.widget("ui.autocomplete", { version: "1.12.1", defaultElement: "<input>", options: { appendTo: null, autoFocus: !1, delay: 300, minLength: 1, position: { my: "left top", at: "left bottom", collision: "none" }, source: null, change: null, close: null, focus: null, open: null, response: null, search: null, select: null }, requestIndex: 0, pending: 0, _create: function () { var e, i, s, n = this.element[0].nodeName.toLowerCase(), o = "textarea" === n, a = "input" === n; this.isMultiLine = o || !a && this._isContentEditable(this.element), this.valueMethod = this.element[o || a ? "val" : "text"], this.isNewMenu = !0, this._addClass("ui-autocomplete-input"), this.element.attr("autocomplete", "off"), this._on(this.element, { keydown: function (n) { if (this.element.prop("readOnly")) return e = !0, s = !0, i = !0, void 0; e = !1, s = !1, i = !1; var o = t.ui.keyCode; switch (n.keyCode) { case o.PAGE_UP: e = !0, this._move("previousPage", n); break; case o.PAGE_DOWN: e = !0, this._move("nextPage", n); break; case o.UP: e = !0, this._keyEvent("previous", n); break; case o.DOWN: e = !0, this._keyEvent("next", n); break; case o.ENTER: this.menu.active && (e = !0, n.preventDefault(), this.menu.select(n)); break; case o.TAB: this.menu.active && this.menu.select(n); break; case o.ESCAPE: this.menu.element.is(":visible") && (this.isMultiLine || this._value(this.term), this.close(n), n.preventDefault()); break; default: i = !0, this._searchTimeout(n) } }, keypress: function (s) { if (e) return e = !1, (!this.isMultiLine || this.menu.element.is(":visible")) && s.preventDefault(), void 0; if (!i) { var n = t.ui.keyCode; switch (s.keyCode) { case n.PAGE_UP: this._move("previousPage", s); break; case n.PAGE_DOWN: this._move("nextPage", s); break; case n.UP: this._keyEvent("previous", s); break; case n.DOWN: this._keyEvent("next", s) } } }, input: function (t) { return s ? (s = !1, t.preventDefault(), void 0) : (this._searchTimeout(t), void 0) }, focus: function () { this.selectedItem = null, this.previous = this._value() }, blur: function (t) { return this.cancelBlur ? (delete this.cancelBlur, void 0) : (clearTimeout(this.searching), this.close(t), this._change(t), void 0) } }), this._initSource(), this.menu = t("<ul>").appendTo(this._appendTo()).menu({ role: null }).hide().menu("instance"), this._addClass(this.menu.element, "ui-autocomplete", "ui-front"), this._on(this.menu.element, { mousedown: function (e) { e.preventDefault(), this.cancelBlur = !0, this._delay(function () { delete this.cancelBlur, this.element[0] !== t.ui.safeActiveElement(this.document[0]) && this.element.trigger("focus") }) }, menufocus: function (e, i) { var s, n; return this.isNewMenu && (this.isNewMenu = !1, e.originalEvent && /^mouse/.test(e.originalEvent.type)) ? (this.menu.blur(), this.document.one("mousemove", function () { t(e.target).trigger(e.originalEvent) }), void 0) : (n = i.item.data("ui-autocomplete-item"), !1 !== this._trigger("focus", e, { item: n }) && e.originalEvent && /^key/.test(e.originalEvent.type) && this._value(n.value), s = i.item.attr("aria-label") || n.value, s && t.trim(s).length && (this.liveRegion.children().hide(), t("<div>").text(s).appendTo(this.liveRegion)), void 0) }, menuselect: function (e, i) { var s = i.item.data("ui-autocomplete-item"), n = this.previous; this.element[0] !== t.ui.safeActiveElement(this.document[0]) && (this.element.trigger("focus"), this.previous = n, this._delay(function () { this.previous = n, this.selectedItem = s })), !1 !== this._trigger("select", e, { item: s }) && this._value(s.value), this.term = this._value(), this.close(e), this.selectedItem = s } }), this.liveRegion = t("<div>", { role: "status", "aria-live": "assertive", "aria-relevant": "additions" }).appendTo(this.document[0].body), this._addClass(this.liveRegion, null, "ui-helper-hidden-accessible"), this._on(this.window, { beforeunload: function () { this.element.removeAttr("autocomplete") } }) }, _destroy: function () { clearTimeout(this.searching), this.element.removeAttr("autocomplete"), this.menu.element.remove(), this.liveRegion.remove() }, _setOption: function (t, e) { this._super(t, e), "source" === t && this._initSource(), "appendTo" === t && this.menu.element.appendTo(this._appendTo()), "disabled" === t && e && this.xhr && this.xhr.abort() }, _isEventTargetInWidget: function (e) { var i = this.menu.element[0]; return e.target === this.element[0] || e.target === i || t.contains(i, e.target) }, _closeOnClickOutside: function (t) { this._isEventTargetInWidget(t) || this.close() }, _appendTo: function () { var e = this.options.appendTo; return e && (e = e.jquery || e.nodeType ? t(e) : this.document.find(e).eq(0)), e && e[0] || (e = this.element.closest(".ui-front, dialog")), e.length || (e = this.document[0].body), e }, _initSource: function () { var e, i, s = this; t.isArray(this.options.source) ? (e = this.options.source, this.source = function (i, s) { s(t.ui.autocomplete.filter(e, i.term)) }) : "string" == typeof this.options.source ? (i = this.options.source, this.source = function (e, n) { s.xhr && s.xhr.abort(), s.xhr = t.ajax({ url: i, data: e, dataType: "json", success: function (t) { n(t) }, error: function () { n([]) } }) }) : this.source = this.options.source }, _searchTimeout: function (t) { clearTimeout(this.searching), this.searching = this._delay(function () { var e = this.term === this._value(), i = this.menu.element.is(":visible"), s = t.altKey || t.ctrlKey || t.metaKey || t.shiftKey; (!e || e && !i && !s) && (this.selectedItem = null, this.search(null, t)) }, this.options.delay) }, search: function (t, e) { return t = null != t ? t : this._value(), this.term = this._value(), t.length < this.options.minLength ? this.close(e) : this._trigger("search", e) !== !1 ? this._search(t) : void 0 }, _search: function (t) { this.pending++, this._addClass("ui-autocomplete-loading"), this.cancelSearch = !1, this.source({ term: t }, this._response()) }, _response: function () { var e = ++this.requestIndex; return t.proxy(function (t) { e === this.requestIndex && this.__response(t), this.pending--, this.pending || this._removeClass("ui-autocomplete-loading") }, this) }, __response: function (t) { t && (t = this._normalize(t)), this._trigger("response", null, { content: t }), !this.options.disabled && t && t.length && !this.cancelSearch ? (this._suggest(t), this._trigger("open")) : this._close() }, close: function (t) { this.cancelSearch = !0, this._close(t) }, _close: function (t) { this._off(this.document, "mousedown"), this.menu.element.is(":visible") && (this.menu.element.hide(), this.menu.blur(), this.isNewMenu = !0, this._trigger("close", t)) }, _change: function (t) { this.previous !== this._value() && this._trigger("change", t, { item: this.selectedItem }) }, _normalize: function (e) { return e.length && e[0].label && e[0].value ? e : t.map(e, function (e) { return "string" == typeof e ? { label: e, value: e } : t.extend({}, e, { label: e.label || e.value, value: e.value || e.label }) }) }, _suggest: function (e) { var i = this.menu.element.empty(); this._renderMenu(i, e), this.isNewMenu = !0, this.menu.refresh(), i.show(), this._resizeMenu(), i.position(t.extend({ of: this.element }, this.options.position)), this.options.autoFocus && this.menu.next(), this._on(this.document, { mousedown: "_closeOnClickOutside" }) }, _resizeMenu: function () { var t = this.menu.element; t.outerWidth(Math.max(t.width("").outerWidth() + 1, this.element.outerWidth())) }, _renderMenu: function (e, i) { var s = this; t.each(i, function (t, i) { s._renderItemData(e, i) }) }, _renderItemData: function (t, e) { return this._renderItem(t, e).data("ui-autocomplete-item", e) }, _renderItem: function (e, i) { return t("<li>").append(t("<div>").text(i.label)).appendTo(e) }, _move: function (t, e) { return this.menu.element.is(":visible") ? this.menu.isFirstItem() && /^previous/.test(t) || this.menu.isLastItem() && /^next/.test(t) ? (this.isMultiLine || this._value(this.term), this.menu.blur(), void 0) : (this.menu[t](e), void 0) : (this.search(null, e), void 0) }, widget: function () { return this.menu.element }, _value: function () { return this.valueMethod.apply(this.element, arguments) }, _keyEvent: function (t, e) { (!this.isMultiLine || this.menu.element.is(":visible")) && (this._move(t, e), e.preventDefault()) }, _isContentEditable: function (t) { if (!t.length) return !1; var e = t.prop("contentEditable"); return "inherit" === e ? this._isContentEditable(t.parent()) : "true" === e } }), t.extend(t.ui.autocomplete, { escapeRegex: function (t) { return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&") }, filter: function (e, i) { var s = RegExp(t.ui.autocomplete.escapeRegex(i), "i"); return t.grep(e, function (t) { return s.test(t.label || t.value || t) }) } }), t.widget("ui.autocomplete", t.ui.autocomplete, { options: { messages: { noResults: "No search results.", results: function (t) { return t + (t > 1 ? " results are" : " result is") + " available, use up and down arrow keys to navigate." } } }, __response: function (e) { var i; this._superApply(arguments), this.options.disabled || this.cancelSearch || (i = e && e.length ? this.options.messages.results(e.length) : this.options.messages.noResults, this.liveRegion.children().hide(), t("<div>").text(i).appendTo(this.liveRegion)) } }), t.ui.autocomplete });
/*!
* jQuery Cookie Plugin v1.3.0
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2013 Klaus Hartl
* Released under the MIT license
*/
(function ($, document, undefined) {
    var pluses = /\+/g;

    function raw(s) {
        return s;
    }

    function decoded(s) {
        return unRfc2068(decodeURIComponent(s.replace(pluses, ' ')));
    }

    function unRfc2068(value) {
        if (value.indexOf('"') === 0) {
            // This is a quoted cookie as according to RFC2068, unescape
            value = value.slice(1, -1).replace('\\"', '"').replace('\\\\', '\\');
        }
        return value;
    }

    var config = $.cookie = function (key, value, options) {

        // write
        if (value !== undefined) {
            options = $.extend({}, config.defaults, options);

            if (value === null) {
                options.expires = -1;
            }

            if (typeof options.expires === 'number') {
                var days = options.expires, t = options.expires = new Date();
                t.setDate(t.getDate() + days);
            }

            value = config.json ? JSON.stringify(value) : String(value);

            return (document.cookie = [
				encodeURIComponent(key), '=', config.raw ? value : encodeURIComponent(value),
				options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
				options.path ? '; path=' + options.path : '',
				options.domain ? '; domain=' + options.domain : '',
				options.secure ? '; secure' : ''
            ].join(''));
        }

        // read
        var decode = config.raw ? raw : decoded;
        var cookies = document.cookie.split('; ');
        for (var i = 0, l = cookies.length; i < l; i++) {
            var parts = cookies[i].split('=');
            if (decode(parts.shift()) === key) {
                var cookie = decode(parts.join('='));
                return config.json ? JSON.parse(cookie) : cookie;
            }
        }
        return null;
    };

    config.defaults = {};

    $.removeCookie = function (key, options) {
        if ($.cookie(key) !== null) {
            $.cookie(key, null, options);
            return true;
        }
        return false;
    };

})(jQuery, document);
/*!
 * Lazy Load - JavaScript plugin for lazy loading images
 *
 * Copyright (c) 2007-2019 Mika Tuupola
 *
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Project home:
 *   https://appelsiini.net/projects/lazyload
 *
 * Version: 2.0.0-rc.2
 *
 */

(function (root, factory) {
    if (typeof exports === "object") {
        module.exports = factory(root);
    } else if (typeof define === "function" && define.amd) {
        define([], factory);
    } else {
        root.LazyLoad = factory(root);
    }
})(typeof global !== "undefined" ? global : this.window || this.global, function (root) {

    "use strict";

    if (typeof define === "function" && define.amd) {
        root = window;
    }

    const defaults = {
        src: "data-src",
        srcset: "data-srcset",
        selector: ".lazyload",
        root: null,
        rootMargin: "0px",
        threshold: 0
    };

    /**
    * Merge two or more objects. Returns a new object.
    * @private
    * @param {Boolean}  deep     If true, do a deep (or recursive) merge [optional]
    * @param {Object}   objects  The objects to merge together
    * @returns {Object}          Merged values of defaults and options
    */
    const extend = function () {

        let extended = {};
        let deep = false;
        let i = 0;
        let length = arguments.length;

        /* Check if a deep merge */
        if (Object.prototype.toString.call(arguments[0]) === "[object Boolean]") {
            deep = arguments[0];
            i++;
        }

        /* Merge the object into the extended object */
        let merge = function (obj) {
            for (let prop in obj) {
                if (Object.prototype.hasOwnProperty.call(obj, prop)) {
                    /* If deep merge and property is an object, merge properties */
                    if (deep && Object.prototype.toString.call(obj[prop]) === "[object Object]") {
                        extended[prop] = extend(true, extended[prop], obj[prop]);
                    } else {
                        extended[prop] = obj[prop];
                    }
                }
            }
        };

        /* Loop through each object and conduct a merge */
        for (; i < length; i++) {
            let obj = arguments[i];
            merge(obj);
        }

        return extended;
    };

    function LazyLoad(images, options) {
        this.settings = extend(defaults, options || {});
        this.images = images || document.querySelectorAll(this.settings.selector);
        this.observer = null;
        this.init();
    }

    LazyLoad.prototype = {
        init: function () {

            /* Without observers load everything and bail out early. */
            if (!root.IntersectionObserver) {
                this.loadImages();
                return;
            }

            let self = this;
            let observerConfig = {
                root: this.settings.root,
                rootMargin: this.settings.rootMargin,
                threshold: [this.settings.threshold]
            };

            this.observer = new IntersectionObserver(function (entries) {
                Array.prototype.forEach.call(entries, function (entry) {
                    if (entry.isIntersecting) {
                        self.observer.unobserve(entry.target);
                        let src = entry.target.getAttribute(self.settings.src);
                        let srcset = entry.target.getAttribute(self.settings.srcset);
                        if ("img" === entry.target.tagName.toLowerCase()) {
                            if (src) {
                                entry.target.src = src;
                            }
                            if (srcset) {
                                entry.target.srcset = srcset;
                            }
                        } else {
                            entry.target.style.backgroundImage = "url(" + src + ")";
                        }
                    }
                });
            }, observerConfig);

            Array.prototype.forEach.call(this.images, function (image) {
                self.observer.observe(image);
            });
        },

        loadAndDestroy: function () {
            if (!this.settings) { return; }
            this.loadImages();
            this.destroy();
        },

        loadImages: function () {
            if (!this.settings) { return; }

            let self = this;
            Array.prototype.forEach.call(this.images, function (image) {
                let src = image.getAttribute(self.settings.src);
                let srcset = image.getAttribute(self.settings.srcset);
                if ("img" === image.tagName.toLowerCase()) {
                    if (src) {
                        image.src = src;
                    }
                    if (srcset) {
                        image.srcset = srcset;
                    }
                } else {
                    image.style.backgroundImage = "url('" + src + "')";
                }
            });
        },

        destroy: function () {
            if (!this.settings) { return; }
            this.observer.disconnect();
            this.settings = null;
        }
    };

    root.lazyload = function (images, options) {
        return new LazyLoad(images, options);
    };

    if (root.jQuery) {
        const $ = root.jQuery;
        $.fn.lazyload = function (options) {
            options = options || {};
            options.attribute = options.attribute || "data-src";
            new LazyLoad($.makeArray(this), options);
            return this;
        };
    }

    return LazyLoad;
});

"use strict";

/*******************************************
Helper Libraries
*******************************************/
var GC = { cookies: {}, styling: {}, sell: {}, search: {}, init: {}};

// Convert a number string to a Number. i.e.  var myString = "1,234.56"; var num = myString.toNumber(2); // 1234.56
String.prototype.toNumber = function (s) {
    var decimals = s || 2;
    return Number(this.replace(/[^0-9\.]+/g, "")).toFixed(decimals);
};

// Array Remove - By John Resig (MIT Licensed)
Array.prototype.remove = function (from, to) {
    var rest = this.slice((to || from) + 1 || this.length);
    this.length = from < 0 ? this.length + from : from;
    return this.push.apply(this, rest);
};

//Array Map
if (typeof Array.prototype.map !== "function") {
    Array.prototype.map = function (callback, thisArg) {
        for (var i = 0, n = this.length, a = []; i < n; i++) {
            if (i in this) a[i] = callback.call(thisArg, this[i]);
        }
        return a;
    };
}

// add indexOf to IE 8 and below
if (!Array.prototype.indexOf) {
    Array.prototype.indexOf = function (needle) {
        for (var i = 0; i < this.length; i++) {
            if (this[i] === needle) {
                return i;
            }
        }
        return -1;
    };
}

//String Trim Function.  i.e. var myString = " Hello World "; myString.trim(); //result: "Hello World"
if (typeof String.prototype.trim !== "function") {
    String.prototype.trim = function () {
        return this.replace(/^\s+|\s+$/g, "");
    };
}
//String Trim Left Function.  i.e. var myString = " Hello World "; myString.trimLeft(); //result: "Hello World "
if (typeof String.prototype.trimLeft !== "function") {
    String.prototype.trimLeft = function () {
        return this.replace(/^\s+/, "");
    };
}
//String Trim Right Function string.trimRight()
if (typeof String.prototype.trimRight !== "function") {
    String.prototype.trimRight = function () {
        return this.replace(/\s+$/, "");
    };
}

//Takes a number and Convert to a money format with c=<digits after decimal>, d=<type of decimal points>, t=<type of thousands seperator> i.e. c=2, d='.', t=',' | (1234.560).formatMoney(2, '.', ','); returns 1,234.56
Number.prototype.formatMoney = function (c, d, t) {
    var s, j, i;
    var n = this;
    c = isNaN(c = Math.abs(c)) ? 2 : c, d = d == undefined ? "." : d, t = t == undefined ? "," : t, s = n < 0 ? "-" : "", i = parseInt(n = Math.abs(+n || 0).toFixed(c)) + "", j = (j = i.length) > 3 ? j % 3 : 0;
    return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : "");
};



GC.fieldFocusClear = function (field, value) { if (field.value == value) { field.value = ""; } };
GC.stopRKey = (function (evt) {
    var evt = (evt) ? evt : ((event) ? event : null);
    var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
    if ((evt.keyCode == 13) && (node.type == "text")) { return false; }
});

document.onkeypress = GC.stopRKey;

// Enter key select the button to click for a textbox
GC.doBtnClick = function (e, btnId) { var code = (e.keyCode || e.which); if (code === 13) { $(btnId).click(); } };

GC.copyToClipboard = function (el) {
    var url = $(el).data('url');

    navigator.clipboard.writeText(url).then(function () {
        $('.jsCopiedTooltip').fadeIn('fast');
        setTimeout(function () {
            $('.jsCopiedTooltip').fadeOut('slow');
        }, 1000)
    });
};

//btnFavorite
GC.addFavorite = function (productId) { window.location = '/customer/favorites/add/' + productId; };

GC.helper = function () {
    /********************************
    Insert leading zeros (2013.01.16.CAS)
    ********************************/
    function pad(num, size) {
        var output = num.toString();
        while (output.length < size) {
            output = "0" + output;
        }
        return output;
    }
    function getId(idString) {
        return Number(idString.split('-')[1]);
    }

    return {
        zeroPad: pad,
        getId: getId
    };
}();
/* jTemplates 0.7.0 (http://jtemplates.tpython.com) Copyright (c) 2008 Tomasz Gloc */
eval(function (p, a, c, k, e, r) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] }]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('a(31.9&&!31.9.3c){(8(){6 G=8(s,x,f){5.1L=[];5.1p={};5.29=C;5.1K={};5.1a={};5.f=9.1y({2z:18,37:2u,2r:18,2Z:18,2T:2u,2S:2u},f);5.2Q(s,x);a(s){5.1n(5.1a[\'1V\'],x,5.f)}5.1a=C};G.m.2G=\'0.7.0\';G.m.2Q=8(s,x){6 2E=/\\{#3i *(\\w*?)( .*)*\\}/g;6 20,1x,H;6 1v=C;6 2x=[];2v((20=2E.3U(s))!=C){1v=2E.1v;1x=20[1];H=s.2s(\'{#/3i \'+1x+\'}\',1v);a(H==-1){Y c 12(\'14: G "\'+1x+\'" 2n 1Q 3H.\');}5.1a[1x]=s.2h(1v,H);2x[1x]=L.2c(20[2])}a(1v===C){5.1a[\'1V\']=s;b}F(6 i 1N 5.1a){a(i!=\'1V\'){5.1K[i]=c G()}}F(6 i 1N 5.1a){a(i!=\'1V\'){5.1K[i].1n(5.1a[i],9.1y({},x||{},5.1K||{}),9.1y({},5.f,2x[i]));5.1a[i]=C}}};G.m.1n=8(s,x,f){a(s==15){5.1L.A(c 1d(\'\',1));b}s=s.W(/[\\n\\r]/g,\'\');s=s.W(/\\{\\*.*?\\*\\}/g,\'\');5.29=9.1y({},5.1K||{},x||{});5.f=c 25(f);6 j=5.1L;6 J=s.1c(/\\{#.*?\\}/g);6 Z=0,H=0;6 e;6 1b=0;6 21=0;F(6 i=0,l=(J)?(J.O):(0);i<l;++i){a(1b){H=s.2s(\'{#/1z}\');a(H==-1){Y c 12("14: 3f 1G 3e 1z.");}a(H>Z){j.A(c 1d(s.2h(Z,H),1))}Z=H+11;1b=0;i=9.3Z(\'{#/1z}\',J);3b}H=s.2s(J[i],Z);a(H>Z){j.A(c 1d(s.2h(Z,H),1b))}6 3X=J[i].1c(/\\{#([\\w\\/]+).*?\\}/);6 2w=E.$1;36(2w){q\'3T\':++21;j.1U();q\'a\':e=c 1t(J[i],j);j.A(e);j=e;M;q\'U\':j.1U();M;q\'/a\':2v(21){j=j.1T();--21}q\'/F\':q\'/1S\':j=j.1T();M;q\'1S\':e=c 1j(J[i],j);j.A(e);j=e;M;q\'F\':e=1R(J[i],j);j.A(e);j=e;M;q\'2q\':j.A(c 2I(J[i],5.29));M;q\'h\':j.A(c 2p(J[i]));M;q\'2o\':j.A(c 2m(J[i]));M;q\'3M\':j.A(c 1d(\'{\'));M;q\'3K\':j.A(c 1d(\'}\'));M;q\'1z\':1b=1;M;q\'/1z\':Y c 12("14: 3f 2k 3e 1z.");2R:Y c 12(\'14: 3G 3E \'+2w+\'.\');}Z=H+J[i].O}a(s.O>Z){j.A(c 1d(s.3D(Z),1b))}};G.m.I=8(d,h,z,B){++B;6 $T=d,22,1Y;a(5.f.2T){$T=L.1m(d,{1W:(5.f.37&&B==1),1F:5.f.2z})}a(!5.f.2S){22=5.1p;1Y=h}U{22=L.1m(5.1p,{1W:(5.f.2r),1F:18});1Y=L.1m(h,{1W:(5.f.2r&&B==1),1F:18})}6 $P=9.1y({},22,1Y);6 $Q=z;$Q.2G=5.2G;6 13=\'\';F(6 i=0,l=5.1L.O;i<l;++i){13+=5.1L[i].I($T,$P,$Q,B)}--B;b 13};G.m.28=8(1J,1M){5.1p[1J]=1M};L=8(){};L.3q=8(3p){b 3p.W(/&/g,\'&4b;\').W(/>/g,\'&3o;\').W(/</g,\'&3n;\').W(/"/g,\'&48;\').W(/\'/g,\'&#39;\')};L.1m=8(d,1A){a(d==C){b d}36(d.3m){q 25:6 o={};F(6 i 1N d){o[i]=L.1m(d[i],1A)}a(!1A.1F){o.3k=d.3k}b o;q 47:6 o=[];F(6 i=0,l=d.O;i<l;++i){o[i]=L.1m(d[i],1A)}b o;q 3j:b(1A.1W)?(L.3q(d)):(d);q 46:a(1A.1F){Y c 12("14: 45 44 1Q 43.");}2R:b d}};L.2c=8(24){a(24===C||24===15){b{}}6 o=24.42(/[= ]/);a(o[0]===\'\'){o.41()}6 2B={};F(6 i=0,l=o.O;i<l;i+=2){2B[o[i]]=o[i+1]}b 2B};6 1d=8(2A,1b){5.23=2A;5.3h=1b};1d.m.I=8(d,h,z,B){6 t=5.23;a(!5.3h){6 $T=d;6 $P=h;6 $Q=z;t=t.W(/\\{(.*?)\\}/g,8(40,3g){6 19=V(3g);a(1I 19==\'8\'){6 f=9.K(z,\'1i\').f;a(f.2z||!f.2Z){b\'\'}U{19=19($T,$P,$Q)}}b(19===15)?(""):(3j(19))})}b t};6 1t=8(D,1r){5.1Z=1r;D.1c(/\\{#(?:U)*a (.*?)\\}/);5.3d=E.$1;5.1g=[];5.1f=[];5.1w=5.1g};1t.m.A=8(e){5.1w.A(e)};1t.m.1T=8(){b 5.1Z};1t.m.1U=8(){5.1w=5.1f};1t.m.I=8(d,h,z,B){6 $T=d;6 $P=h;6 $Q=z;6 2y=(V(5.3d))?(5.1g):(5.1f);6 13=\'\';F(6 i=0,l=2y.O;i<l;++i){13+=2y[i].I(d,h,z,B)}b 13};1R=8(D,1r){a(D.1c(/\\{#F (\\w+?) *= *(\\S+?) +3Y +(\\S+?) *(?:R=(\\S+?))*\\}/)){D=\'{#1S 1R.3a 38 \'+E.$1+\' 2k=\'+(E.$2||0)+\' 1G=\'+(E.$3||-1)+\' R=\'+(E.$4||1)+\' 1E=$T}\';b c 1j(D,1r)}U{Y c 12(\'14: 3W 3V "35": \'+D);}};1R.3a=8(i){b i};6 1j=8(D,1r){5.1Z=1r;D.1c(/\\{#1S (.+?) 38 (\\w+?)( .+)*\\}/);5.34=E.$1;5.y=E.$2;5.N=E.$3||C;5.N=L.2c(5.N);5.1g=[];5.1f=[];5.1w=5.1g};1j.m.A=8(e){5.1w.A(e)};1j.m.1T=8(){b 5.1Z};1j.m.1U=8(){5.1w=5.1f};1j.m.I=8(d,h,z,B){6 $T=d;6 $P=h;6 $Q=z;6 1h=V(5.34);6 1D=[];6 1u=1I 1h;a(1u==\'33\'){6 2t=[];9.17(1h,8(k,v){1D.A(k);2t.A(v)});1h=2t}6 1E=(5.N.1E!==15)?(V(5.N.1E)):{};6 s=1H(V(5.N.2k)||0),e;6 R=1H(V(5.N.R)||1);a(1u!=\'8\'){e=1h.O}U{a(5.N.1G===15||5.N.1G===C){e=1H.3S}U{e=1H(V(5.N.1G))+((R>0)?(1):(-1))}}6 13=\'\';6 i,l;a(5.N.1C){6 19=s+1H(V(5.N.1C));e=(19>e)?(e):(19)}a((e>s&&R>0)||(e<s&&R<0)){6 1q=0;6 30=(1u!=\'8\')?(3R.3Q((e-s)/R)):15;6 1s,1k;F(;((R>0)?(s<e):(s>e));s+=R,++1q){1s=1D[s];a(1u!=\'8\'){1k=1h[s]}U{1k=1h(s);a(1k===15||1k===C){M}}a((1u==\'33\')&&(1s 1N 25)&&(25[1s]===$T[1s])){3b}$T=1E;6 p=$T[5.y]=1k;$T[5.y+\'$2Y\']=s;$T[5.y+\'$1q\']=1q;$T[5.y+\'$2X\']=(1q==0);$T[5.y+\'$3l\']=(s+R>=e);$T[5.y+\'$2V\']=30;$T[5.y+\'$1D\']=1s;$T[5.y+\'$1I\']=1I 1k;F(i=0,l=5.1g.O;i<l;++i){13+=5.1g[i].I($T,h,z,B)}1e $T[5.y+\'$2Y\'];1e $T[5.y+\'$1q\'];1e $T[5.y+\'$2X\'];1e $T[5.y+\'$3l\'];1e $T[5.y+\'$2V\'];1e $T[5.y+\'$1D\'];1e $T[5.y+\'$1I\'];1e $T[5.y]}}U{F(i=0,l=5.1f.O;i<l;++i){13+=5.1f[i].I($T,h,z,B)}}b 13};6 2I=8(D,x){D.1c(/\\{#2q (.*?)(?: 3P=(.*?))?\\}/);5.2H=x[E.$1];a(5.2H==15){Y c 12(\'14: 3O 35 2q: \'+E.$1);}5.2U=E.$2};2I.m.I=8(d,h,z,B){6 $T=d;b 5.2H.I(V(5.2U),h,z,B)};6 2p=8(D){D.1c(/\\{#h 1J=(\\w*?) 1M=(.*?)\\}/);5.y=E.$1;5.23=E.$2};2p.m.I=8(d,h,z,B){6 $T=d;6 $P=h;6 $Q=z;h[5.y]=V(5.23);b\'\'};6 2m=8(D){D.1c(/\\{#2o 3N=(.*?)\\}/);5.2d=V(E.$1);5.2l=5.2d.O;a(5.2l<=0){Y c 12(\'14: 2o 3L 3J 3I\');}5.2f=0;5.2b=-1};2m.m.I=8(d,h,z,B){6 2j=9.K(z,\'1B\');a(2j!=5.2b){5.2b=2j;5.2f=0}6 i=5.2f++%5.2l;b 5.2d[i]};9.X.1n=8(s,x,f){a(s.3m===G){b 9(5).17(8(){9.K(5,\'1i\',s);9.K(5,\'1B\',0)})}U{b 9(5).17(8(){9.K(5,\'1i\',c G(s,x,f));9.K(5,\'1B\',0)})}};9.X.3F=8(1o,x,f){6 s=9.2g({1l:1o,2e:18}).2P;b 9(5).1n(s,x,f)};9.X.3C=8(2i,x,f){6 s=$(\'#\'+2i).2A();a(s==C){s=$(\'#\'+2i).2O();s=s.W(/&3n;/g,"<").W(/&3o;/g,">")}s=9.3B(s);s=s.W(/^<\\!\\[3A\\[([\\s\\S]*)\\]\\]>$/3z,\'$1\');b 9(5).1n(s,x,f)};9.X.3y=8(){6 1C=0;9(5).17(8(){a(9.K(5,\'1i\')){++1C}});b 1C};9.X.3x=8(){9(5).32();b 9(5).17(8(){9.2N(5,\'1i\')})};9.X.28=8(1J,1M){b 9(5).17(8(){6 t=9.K(5,\'1i\');a(t===15){Y c 12(\'14: G 2n 1Q 2W.\');}t.28(1J,1M)})};9.X.2a=8(d,h){b 9(5).17(8(){6 t=9.K(5,\'1i\');a(t===15){Y c 12(\'14: G 2n 1Q 2W.\');}9.K(5,\'1B\',9.K(5,\'1B\')+1);9(5).2O(t.I(d,h,5,0))})};9.X.3w=8(1o,h){6 10=5;6 s=9.2g({1l:1o,2e:18,3v:18,3u:\'3t\',3s:8(d){9(10).2a(d,h)}});b 5};6 1P=8(1l,h,1O,1X,16){5.2M=1l;5.1p=h;5.2L=1O;5.2K=1X;5.16=16;5.2C=C;6 10=5;9(16).17(8(){9.K(5,\'2D\',10)});5.27()};1P.m.27=8(){5.2J();a(5.16.O==0){b}6 10=5;9.4f(5.2M,5.2K,8(d){9(10.16).2a(d,10.1p)});5.2C=4e(8(){10.27()},5.2L)};1P.m.2J=8(){5.16=9.3r(5.16,8(o){a(9.4d.4c){6 n=o.2F;2v(n&&n!=4a){n=n.2F}b n!=C}U{b o.2F!=C}})};9.X.49=8(1l,h,1O,1X){6 u=c 1P(1l,h,1O,1X,5);b u.2C};9.X.32=8(){b 9(5).17(8(){6 26=9.K(5,\'2D\');a(26==C){b}6 10=5;26.16=9.3r(26.16,8(o){b o!=10});9.2N(5,\'2D\')})};9.1y({3c:8(s,x,f){b c G(s,x,f)},4g:8(1o,x,f){6 s=9.2g({1l:1o,2e:18}).2P;b c G(s,x,f)}})})(9)}', 62, 265, '|||||this|var||function|jQuery|if|return|new|||settings||param||node|||prototype||||case|||||||includes|_name|element|push|deep|null|oper|RegExp|for|Template|se|get|op|data|TemplateUtils|break|_option|length|||step|||else|eval|replace|fn|throw|ss|that||Error|ret|jTemplates|undefined|objs|each|false|tmp|_templates_code|literalMode|match|TextNode|delete|_onFalse|_onTrue|fcount|jTemplate|opFOREACH|cval|url|cloneData|setTemplate|url_|_param|iteration|par|ckey|opIF|mode|lastIndex|_currentState|tname|extend|literal|filter|jTemplateSID|count|key|extData|noFunc|end|Number|typeof|name|_templates|_tree|value|in|interval|Updater|not|opFORFactory|foreach|getParent|switchToElse|MAIN|escapeData|args|_param2|_parent|iter|elseif_level|_param1|_value|optionText|Object|updater|run|setParam|_includes|processTemplate|_lastSessionID|optionToObject|_values|async|_index|ajax|substring|elementName|sid|begin|_length|Cycle|is|cycle|UserParam|include|filter_params|indexOf|arr|true|while|op_|_template_settings|tab|disallow_functions|val|obj|timer|jTemplateUpdater|reg|parentNode|version|_template|Include|detectDeletedNodes|_args|_interval|_url|removeData|html|responseText|splitTemplates|default|clone_params|clone_data|_root|total|defined|first|index|runnable_functions|_total|window|processTemplateStop|object|_arg|find|switch|filter_data|as||funcIterator|continue|createTemplate|_cond|of|No|__a1|_literalMode|template|String|toString|last|constructor|lt|gt|txt|escapeHTML|grep|success|json|dataType|cache|processTemplateURL|removeTemplate|hasTemplate|im|CDATA|trim|setTemplateElement|substr|tag|setTemplateURL|unknown|closed|elements|no|rdelim|has|ldelim|values|Cannot|root|ceil|Math|MAX_VALUE|elseif|exec|failed|Operator|ppp|to|inArray|__a0|shift|split|allowed|are|Functions|Function|Array|quot|processTemplateStart|document|amp|msie|browser|setTimeout|getJSON|createTemplateURL'.split('|'), 0, {}));
//***********************
//GC Query String Function
//***********************
GC.qs = function () {
    function getValue(qName) {
        var result = {}, queryString = location.search.substring(1), re = /([^&=]+)=([^&]*)/g, m;
        while (m = re.exec(queryString)) {
            result[decodeURIComponent(m[1])] = decodeURIComponent(m[2]);
        }
        return result[qName];
    };

    function updateValue(that, queryName, redirectToFirstPage) {

        function getCat() {
            var ddlCat = '#ddlCat';
            var cat = $(ddlCat).find('li').val();
            if (cat > 0) {
                return cat;
            }
            else return "";
        }
        var category = getCat();
        var qs = {
            name: queryName,
            selection: (that.type === 'checkbox') ? that.checked : $(that).val(),
            queryUrl: location.search,
            nameExist: location.search.indexOf(queryName)
        };

        if (qs.nameExist !== -1) {
            qs.queryUrl = qs.queryUrl.replace(qs.name + "=" + GC.qs.getValue(qs.name), qs.name + "=" + qs.selection);

        } else {
            qs.queryUrl = (qs.queryUrl === '') ? "?" + qs.name + "=" + qs.selection : qs.queryUrl + "&" + qs.name + "=" + qs.selection;
        }
        qs.queryUrl = (redirectToFirstPage) ? qs.queryUrl.replace("page=" + getValue("page"), "") : qs.queryUrl;

        var hasCategory = /cat=/.test(qs.queryUrl);
        qs.queryUrl = (!hasCategory && category > 0) ? qs.queryUrl + "&cat=" + category : qs.queryUrl;
        document.location = qs.queryUrl;
    };

    return {
        update: updateValue,
        getValue: getValue
    };
}();


GC.qs.fillCheckboxes = function (checkboxGroup, qsName) {
    var qsValue = GC.qs.getValue(qsName) || "";
    $(checkboxGroup).find('input').each(function () {
        for (var i = 0; i < qsValue.length; i++) {
            if ($(this).val() === qsValue.charAt(i)) {
                $(this).prop('checked', true);
            }
        }
    });
};
/********************************
GC Page Cookie Settings
********************************/
GC.cookies.pageSettings = function () {

    var c = {
        cookieName: 'opt',
        cookieDefault: '2.32.0.1.0.creditcard',
        cookieExpires: { expires: 1, path: '/' }
    };

    var s = {
        settings: {
            viewType: 2,
            pageSize: 32,
            sortBy: 0,
            metalSizeType: 1,
            inStock: 0,
            paymentType: 1
        },
        ids: {
            viewMode: '.jsViewType',
            sortBy: '#ddlSort',
            pageSize: '#ddlPageSize',
            metalSizeType: '#jsFiltersSize',
            inStock: '#cbInStock',
            payType: '.cbPayType'
        },
        txtSearch: '.jsTxtSearch'
    };

    function setCookie(option, value) {
        var cookieValue = $.cookie(c.cookieName);
        if (!cookieValue) {
            $.cookie(c.cookieName, c.cookieDefault, c.cookieExpires);
        }

        var cookieOptions = cookieValue.split('.');

        if (cookieOptions.length !== 6) {
            $.cookie(c.cookieName, c.cookieDefault, c.cookieExpires);
        }
        else {

            for (var i = 0; i < cookieOptions.length; i++) {
                if (option === i) {
                    cookieOptions[i] = value;
                }
            }
            cookieValue = cookieOptions.join('.');
            $.cookie(c.cookieName, cookieValue, c.cookieExpires);
        }
    }

    function getPageSettings() {
        
        var settingsCookie = $.cookie(c.cookieName) || c.cookieDefault;
        var settings = settingsCookie.split('.');
        s.settings.viewType = settings[0] || GC.qs.getValue('vt') || 3;
        s.settings.pageSize = settings[1] || GC.qs.getValue('psize') || 16;
        s.settings.sortBy = settings[2] || GC.qs.getValue('sort');
        s.settings.metalSizeType = settings[3] || 1;
        s.settings.inStock = (settings[4] === '1') || (GC.qs.getValue('instk') === 'true');
        s.settings.paymentType = settings[5] || 1;
    }

    var bindEvents = function () {
        $(s.ids.viewMode).on('click', function () {
            setCookie(0, $(this).val());
            GC.qs.update(this, 'vt');
        });

        $(s.ids.pageSize).find('button').on('click', function () {
            setCookie(1, $(this).val());
            GC.qs.update(this, 'psize', true);

        });

        $(s.ids.sortBy).on('change', function () {
            setCookie(2, $(this).val());
            GC.qs.update(this, 'sort');
        });

        $(s.ids.metalSizeType).find(".jsSizeTab li").click(function () {
            setCookie(3, $(this).find('input').val());
        });

        $(s.ids.inStock).on('change', function () {
            var isStockOnly = $(this).is(":checked");
            var value = (isStockOnly) ? 1 : 0;
            setCookie(4, value);
            GC.qs.update(this, 'instk', true);
        });

        $(s.ids.payType).on('click', function () {
            var paymentType = $(this).val();

            if (paymentType) {
                paymentType = paymentType.toLowerCase();
            }
            setCookie(5, paymentType);
        });

        getPageSettings();
    };

    function initSettings(newCookie) {
        c.cookieName = newCookie || c.cookieName;
        bindEvents();
        return s;
    }

    return { init: initSettings }; //initalizes config, return settings object, pass in cookie name
}();
GC.initImageLazyLoading = function() {
    $("img.lazy").lazyload({
        event: "delay",
        effect: 'fadeIn'
    });

    //image lazyloading
    $(window).bind("load", function () {
        var timeout = setTimeout(function () {
            $("img.lazy").trigger("delay")
        }, 100);
    });
};
/********************************
GC Search Function
********************************/
function clickAutocompleteTextLi(searchText) {
    $('.jsTxtSearch').val(searchText);
    $('.jsSearchBtn').click();
}

GC.search.autocomplete = (function () {
    var ajaxFormSubmit = function () {
        var $form = $(this);

        var options = {
            url: $form.attr("action"),
            type: $form.attr("method"),
            data: $form.serialize()
        };

        $.ajax(options).done(function (data) {
            var $target = $($form.attr("data-otf-target"));
            $target.replaceWith(data);
        });
        //return false;
    };

    var createAutocomplete = function () {
        var $input = $(this);
        var options = {
            source: $input.attr("data-otf-autocomplete"),
            select: function (event, ui) {
                if (ui.item.productId > 0)
                    window.location = "/products/" + ui.item.productId;
            }
        };

        $input.autocomplete(options).autocomplete("instance")._renderItem = function (ul, item) {
            return $("<li class='jsAutoCompleteLi'>").addClass(item.type)
                .append(buildImage(item.image))
                .append(item.label)
                .append(formatSku(item.sku))
                .appendTo(ul);
        };

        function buildImage(imageName) {
            if (!imageName)
                return;

            var img = $('<img class="jsAcImg">');
            img.prop('src', '/files/images/products/' + imageName);

            return img;
        }
        
        function formatSku(sku) {
            var span = $('<span class="jsAcSku">');
            span.text(sku);
            return span;
        }
    };

    $('.jsTxtSearch').bind('autocompleteopen', function (event, data) {
        var li = $('<li>').addClass('viewAllResult').prop('tabindex', -1);
        var link = $('<a>').html('See more results for <span>' + $(this).val() + '</span>').attr('onclick', "$('.jsSearchBtn').click();");
        link.appendTo(li);
        li.appendTo('ul.ui-autocomplete');

        $('.jsAutoCompleteLi').each(function () {
            var text = $(this).text()
            $(this).attr('onclick', "clickAutocompleteTextLi('" + text + "');");
        });
    });

    $("form[data-otf-ajax='true']").submit(ajaxFormSubmit);
    $("input[data-otf-autocomplete]").each(createAutocomplete);

    

})();
$(function () {
    var gclid = GC.qs.getValue('gclid') || "";
    if (gclid != '') {
        var option = {
            url: "/help/UpdateGCLID?gclid="+ gclid,
            type: 'POST'
        }
       
        $.ajax(option);
    }
});
/********************************
GC Cart Precios Metal Ticker Function
********************************/
GC.spotTicker = function () {
    var up = { arrow: 'fa-caret-up', color: 'green' };
    var down = { arrow: 'fa-caret-down', color: 'red' };

    var au = { spot: '.jsGoldPrice', arrow: '.jsGoldArrow', diff: '.jsGoldDiff' };
    var ag = { spot: '.jsSilverPrice', arrow: '.jsSilverArrow', diff: '.jsSilverDiff' };
    var pt = { spot: '.jsPlatinumPrice', arrow: '.jsPlatinumArrow', diff: '.jsPlatinumDiff' };
    var pd = { spot: '.jsPalladiumPrice', arrow: '.jsPalladiumArrow', diff: '.jsPalladiumDiff' };

    function updateTicker(metal, price, change) {
        $(metal.spot).text('$' + price.formatMoney());
        $(metal.diff).text(change.toFixed('2'));

        if (change >= 0) {
            $(metal.arrow).removeClass(down.arrow).addClass(up.arrow);
            $(metal.arrow).removeClass(down.color).addClass(up.color);
            $(metal.diff).removeClass(down.color).addClass(up.color);
        } else {
            $(metal.arrow).removeClass(up.arrow).addClass(down.arrow);
            $(metal.arrow).removeClass(up.color).addClass(down.color);
            $(metal.diff).removeClass(up.color).addClass(down.color);
        }
    }

    function getSpot(isBid) {
        $.ajax({
            type: "GET",
            contentType: "application/json; charset=utf-8",
            url: (isBid) ? "/api/spot/bid" : "/api/spot/ask",
            data: "{}",
            cache: false, //set cache to false so that the broswer will not cache the service call
            dataType: "json",
            success: function (data) {
                updateTicker(au, data.au, data.auChange);
                updateTicker(ag, data.ag, data.agChange);
                updateTicker(pt, data.pt, data.ptChange);
                updateTicker(pd, data.pd, data.pdChange);
            },
            error: function () { console.log("json call failed") }
        });
    }

    return {
        get: function (msec, isBid) {
            getSpot(isBid);
            setTimeout('GC.spotTicker.get(' + msec + ',' + isBid + ')', msec);
        }
    }
}();
$(function () {
    "use strict";

    var cookieConsent = $.cookie('cookieconsent');

    if (cookieConsent != 'dismiss') {
        $.get('/widget/CookieLaw').done(function (data) {
            $('#jsGDRP').append(data);
            setTimeout(function () {
                $('#jsGDRP .gdrp').addClass('active');
            }, 100);
        });
    }

    $('html').on('click', '#jsAgreeGDPR', function () {
        $('#jsGDRP .gdrp').removeClass('active');
        $.cookie('cookieconsent', 'dismiss', { expires: 365, path: '/' });
        setTimeout(function () {
            $('#jsGDRP').remove();
        }, 1000);
    });
});
$(window).on('load', function () {
    var ua = window.navigator.userAgent;

    var msie = ua.indexOf('MSIE ');
    if (msie > 0) {
        // IE 10 or older => return version number
        var version = parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);

        if (version < 10) {
            window.location.href('/help/upgrade-browser');
        }
    }
});


var layout = {
    siteNotification: function () {
        //    $.get('/widget/sitenotification').done(function (data) {
        //        $('#jsInitSiteNotificationAjax').html(data);
        //        $("img.lazy").lazyload();
        //    });
        $(document).on('click', '.jsBtnExpand', function (event) {
            $('.jsText').toggleClass('text');
            $('.jsBtnExpand').toggleClass('fa-angle-down');
            $('.jsBtnExpand').toggleClass('fa-angle-up');
        });

    },
    initMiniCart: function () {
        $.get('/widget/minicart').done(function (data) {
            $('#jsMiniCart').empty().append(data);
        });
    },

    initCSS: function () {
        var css = $('#jsCSSBundle').val();

        $('<link />', {
            rel: 'stylesheet',
            type: 'text/css',
            href: css
        }).appendTo('head');
    },

    lazyLoad: function () {
        let images = document.querySelectorAll('.lazy');
        lazyload(images);

        //image lazyloading
        $(window).bind("load", function () {
            var timeout = setTimeout(function () {
                $("img.lazy").trigger("delay")
            }, 100);
        });
    },

    smoothScroll: function () {
        $(document).on('click', '.jsSmoothScroll', function (event) {
            event.preventDefault();

            $('html, body').animate({
                scrollTop: ($($.attr(this, 'href')).offset().top) - 50
            }, 500);

        });
    },

    mobileMenu: function () {
        $('#jsMobileMenu-btn').click(function () {
            var windowWidth = $(window).width();

            if (windowWidth < 1024) {
                $('#jsMobileMenu-ctn').addClass('mmShow');
            }
        });

        $('.jsBtnCloseMobileMenu').click(function () {
            $('#jsMobileMenu-ctn').removeClass('mmShow').addClass('mmHide');

            setTimeout(function () {
                $('#jsMobileMenu-ctn').removeClass('mmHide');
            }, 450);
        });

        $('.jsMMBg').click(function () {
            $('.jsBtnCloseMobileMenu').click();
        });
    },


    menu: function () {


        $('.jsGoToMenu').click(function () {
            var windowWidth = $(window).width();

            if (windowWidth < 1024) {
                $('.jsMainMenu').addClass('mmShow');
            }
        });

        $('.jsBtnCloseMobileMenu').click(function () {
            $('.jsMainMenu').removeClass('mmShow').addClass('mmHide');

            setTimeout(function () {
                $('.jsMainMenu').removeClass('mmHide');
            }, 450);
        });

        $('.jsMMBg').click(function () {
            $('.jsBtnCloseMobileMenu').click();
        });

        $('html').on('click', '.jsMainMenu .jsArrow', function () {

            var megaMenu = $(this).siblings('.megaMenu');

            if (megaMenu.is(":visible")) {
                megaMenu.hide();
            } else {
                megaMenu.show();
            }
        })
    },

    megaMenu: function () {
        function closeMegaMenu($parent) {
            $parent.removeClass('active').addClass('deactive');
            setTimeout(function () {
                $parent.removeClass('deactive');
            }, 450);
        }

        $('html').on('mouseover', '.jsMegaMenu', function () {
            var windowWidth = $(window).width();

            if (windowWidth > 1024) {
                var $this = $(this);
                var $active = $this.siblings('.jsMegaMenu.active');

                if ($active.length === 0) {
                    $this.addClass('active');
                } else {
                    closeMegaMenu($active);
                    setTimeout(function () {
                        $this.addClass('active');
                    }, 100);
                }
            };
        });

        $('html').on('mouseleave', '.jsMegaMenu.active', function (e) {
            var $this = $(this);
            setTimeout(function () {
                closeMegaMenu($this);
            }, 100);
        });


    },

    menuAccount: function () {
        function closeAccountMenu($this) {
            $('#jsMenuAccount-ctn').removeClass('active').addClass('deactive');

            setTimeout(function () {
                $this.removeClass('active');
                $('#jsMenuAccount-ctn').removeClass('deactive');
            }, 950);
        };

        $('#jsMenuAccount-btn').click(function () {
            if ($(this).hasClass('active')) {
                closeAccountMenu($(this));
            } else {
                $(this).addClass('active');
                $('#jsMenuAccount-ctn').addClass('active');
            }
        });

        $(document).click(function (e) {
            var $cont = $('#jsMenuAccount')

            if (!$cont.is(e.target) && $cont.has(e.target).length === 0 && $('#jsMenuAccount-btn').hasClass('active')) {
                closeAccountMenu($('#jsMenuAccount-btn'));
            }
        });
    },

    modal: function () {
        $('html').on('click', '.jsModalClose', function (e) {
            var container = $('.jsModalContent');
            if (!container.is(e.target) && container.has(e.target).length === 0) {
                $('#jsAjaxPopup').empty();
                layout.initMiniCart();
            }
        });

        $('html').on('click', '.jsModalCloseBtn', function () {
            $('#jsAjaxPopup').empty();
        });
    },

    stickyFooter: function () {
        var bodyHeight = $('body').height();
        var browserHeight = $(window).height();

        if (browserHeight > bodyHeight) {
            $('.jsFooter').addClass('sticky');
        } else {
            $('.jsFooter').removeClass('sticky');
        }
    },

    stickySpotPrice: function () {
        var pos = $('#jsSpotPriceHeader').offset();
        if (pos == null) {
            return;
        }

        var divPos = pos.top;

        $(window).scroll(function () {
            var docPos = $(document).scrollTop();

            if (docPos > divPos) {
                $('#jsSpotPriceHeader').parent().addClass('fixed');
            } else {
                $('#jsSpotPriceHeader').parent().removeClass('fixed');
            }
        });
    },

    spotPriceMenu: function () {
        function closeSpotPrice() {

        };

        $('#jsSpotPrice-btn').click(function () {

            if ($(this).hasClass('active')) {
                $(this).removeClass('active');
                $('#jsSpotPrice-ctn').removeClass('active');
            } else {
                $(this).addClass('active');
                $('#jsSpotPrice-ctn').addClass('active');
            }
        });
    },

    incrementProductQty: function () {
        $(document).on('click', '.jsProductQtyAdd', function () {
            var parent = $(this).parents('.wrap');
            var textBox = parent.find('.jsProductQty');
            var hiddenQty = parent.find('.jsProductQtyHidden');

            var qty = Number(textBox.val()) + 1;

            textBox.val(qty);
            hiddenQty.val(qty); // hack to prevent existing ajax javascript from breaking. need to refactor form submit
        });

        $(document).on('keyup', '.jsProductQty', function () {
            var parent = $(this).parents('.wrap');
            var qty = $(this).val();
            var hiddenQty = parent.find('.jsProductQtyHidden');
            hiddenQty.val(qty); // hack to update quantity textbox prevent existing ajax javascript from breaking. need to refactor form submit
        });
    },

    decrementProductQty: function () {
        $(document).on('click', '.jsProductQtyMin', function () {
            var parent = $(this).parents('.wrap');
            var textBox = parent.find('.jsProductQty');
            var hiddenQty = parent.find('.jsProductQtyHidden');

            var qty = Number(textBox.val()) - 1;

            if (qty < 1) {
                qty = 1;
            }

            textBox.val(qty);
            hiddenQty.val(qty); // hack to prevent existing ajax javascript from breaking. need to refactor form submit
        });
    },
    lazyLoadProductModule: function () {
        $('module').each(function () {
            var $module = $(this);

            var moduleParam = getParam($module);

            $.post('/content-module/product-module', moduleParam).done(function (data) {
                $module.replaceWith(data);
                $("img.lazy").lazyload();
            });

            function getParam($module) {
                return {
                    type: $module.attr("product"),
                    search: $module.attr("search"),
                    categoryId: $module.attr("categoryId"),
                    skus: $module.attr("skus"),
                    count: $module.attr("count"),
                    template: $module.attr("template"),
                };
            }
        });
    }
}


$(function () {
    "use strict";

    document.documentElement.classList.remove("no-js");

    GC.spotTicker.get(10000);

    layout.siteNotification();
    //layout.mobileMenu();
    layout.menu();
    layout.menuAccount();
    layout.lazyLoad();
    layout.smoothScroll();
    //layout.megaMenu();
    layout.modal();
    layout.stickyFooter();
    layout.spotPriceMenu();

    layout.incrementProductQty();
    layout.decrementProductQty();
    layout.lazyLoadProductModule();
    //layout.stickySpotPrice();
});
$(function () {
    "use strict";

    var newsletterModal = $.cookie('newslettermodal');

    if (newsletterModal != 'ishide') {
        $.get('/email/NewsletterSignup').done(function (data) {
            $('body').append(data);

            var isShowNewsletterModal = $('#jsNewsletterSignupModal').data('show-modal');

            if (isShowNewsletterModal == 'True') {
                setTimeout(function () {
                    $('#jsNewsletterSignupModal').addClass('show');
                }, 100);
            } else {
                $('#jsNewsletterSignupModal').remove();
            }
        });
    }

    $('html').on('click', '#jsNewsletterModalClose', function () {
        $('#jsNewsletterSignupModal').removeClass('show');
        $.cookie('newslettermodal', 'ishide', { expires: 365, path:'/' });
        setTimeout(function () {
            $('#jsNewsletterSignupModal').remove();
        }, 1000);
    });
    
});
// Text Change
(function (a) {
    a.event.special.textchange = {
        setup: function () { a(this).data("lastValue", this.contentEditable === "true" ? a(this).html() : a(this).val()); a(this).bind("keyup.textchange", a.event.special.textchange.handler); a(this).bind("cut.textchange paste.textchange input.textchange", a.event.special.textchange.delayedHandler) }, teardown: function () { a(this).unbind(".textchange") }, handler: function () { a.event.special.textchange.triggerIfChanged(a(this)) }, delayedHandler: function () {
            var c = a(this); setTimeout(function () { a.event.special.textchange.triggerIfChanged(c) }, 25)
        }, triggerIfChanged: function (a) { var b = a[0].contentEditable === "true" ? a.html() : a.val(); b !== a.data("lastValue") && (a.trigger("textchange", [a.data("lastValue")]), a.data("lastValue", b)) }
    }; a.event.special.hastext = { setup: function () { a(this).bind("textchange", a.event.special.hastext.handler) }, teardown: function () { a(this).unbind("textchange", a.event.special.hastext.handler) }, handler: function (c, b) { b === "" && b !== a(this).val() && a(this).trigger("hastext") } }; a.event.special.notext = {
        setup: function () {
            a(this).bind("textchange", a.event.special.notext.handler)
        }, teardown: function () { a(this).unbind("textchange", a.event.special.notext.handler) }, handler: function (c, b) { a(this).val() === "" && a(this).val() !== b && a(this).trigger("notext") }
    }
})(jQuery);
/****************************
Restore settings for page checkboxes and list, bind events for listing pages which use filters
****************************/
GC.init.filterEventBindings = function (s, f) {
    //Metal Size Tabs
    $(f.id.size + ' .jsSizeTab li').click(function () {
        $('.jsWeightList').addClass('d-none');
        $("#" + this.id + "-tab").removeClass('d-none');
        $(this).siblings().removeClass('active');
        $(this).addClass('active');
    });

    //toggle All Metals select off if other metals are checked
    $('.cbMetalType').click(function () {
        $('#jsCbAllMetals').prop('checked', false);
        $('#jsCbAllMetals').parent('li').removeClass('selected');
    });
    $('#jsCbAllMetals').click(function () {
        $('.cbMetalType').prop('checked', false);
        $(this).parent('li').removeClass('selected');
    });

    //Filter search Button
    $(".jsBtnApplyFilters").click(function () {
        var catId = $('#hfCatId').val();
        GC.search.buildUrl(s.txtSearch, catId);
    });

    //$(".jsFilterItems li label").click(function () {
    //    var catId = $('#hfCatId').val();
    //    GC.search.buildUrl(s.txtSearch, catId);
    //});

    //search filters remove buttons
    $('.jsAppliedFilterBtn').click(function () {
        var className = $(this).data('filter-id');
        $(this).remove();
        $('#' + className).prop("checked", false);
        var catId = $('#jsCatId').val();
        GC.search.buildUrl(s.txtSearch, catId);
    });

    $('.jsCollapseFilter').on('click', function () {
        var $filterItem = $(this).next('.jsFilterItems');

        if ($filterItem.is(':hidden')) {
            $filterItem.slideDown('fast');
            $(this).find('i').removeClass('fa-plus').addClass('fa-minus');
        } else {
            $filterItem.slideUp('fast');
            $(this).find('i').addClass('fa-plus').removeClass('fa-minus');
        }
    });

    // Add class on Active Filter Block
    $('#tfActiveFilter:has(span)').addClass('hasActiveFilter');
};

GC.init.filterRestoreSettings = function (s, f) {
    //fills refine search checkboxes
    GC.qs.fillCheckboxes(f.id.size, 'ssize');
    GC.qs.fillCheckboxes(f.id.metal, 'smetal');
    GC.qs.fillCheckboxes(f.id.opt, 'sopt');
    GC.qs.fillCheckboxes(f.id.country, 'scountry');

    //oz, kilo, gram tab setting
    var sizeType = $(f.id.size + ' li input')[s.settings.metalSizeType - 1];
    var selectedMetalTab = $(sizeType).parent()[0];
    if ($(selectedMetalTab).length > 0) {
        $('.jsWeightList').addClass('none');
        $(selectedMetalTab).addClass('active');
        $("#" + selectedMetalTab.id + "-tab").removeClass('none');
    }

    //If no metal filters applied. check all products
    var hasMetalFilter = $(f.id.metal).find(':checkbox:checked').length;
    if (!hasMetalFilter) {
        $('#jsCbAllMetals').prop('checked', true);
    }

    //init checkbox and dropdown value for listing options
    $(s.ids.sortBy).val(s.settings.sortBy);
    $(s.ids.pageSize).val(s.settings.pageSize);
    $(s.ids.inStock).prop('checked', s.settings.inStock);

    $('.cbPayType').each(function () {
        if ($(this).prop('value') === s.settings.paymentType) {
            $(this).prop('checked', 'checked');
            $('.basePrice' + s.settings.paymentType).addClass('highlight');
        }
    });
};

GC.init.productFilters = function (settings) {
    var filters = {
        id : {
            size: '#jsFiltersSize',
            metal: '#jsFiltersMetal',
            opt: '#jsFiltersOpt',
            country: '#jsFiltersCountry',
        }
    };
    GC.init.filterRestoreSettings(settings, filters);
    GC.init.filterEventBindings(settings, filters);
};
GC.validate = (function (e) {
    var c = {
        hasText: '.hasText',
        errorMsg: '.errorMsg'
    };

    function hasText(btn) {
        $(btn).click(function (e) {
            //e.preventDefault();
            $(c.hasText).each(function () {
                var text = $(this).val();
                if ($.trim(text).length > 0) {
                } else {
                    var msg = '*Please enter a value for all fields<br/>';
                    $(c.errorMsg).append(msg).removeClass('hide');
                }

            });

        });
    }
    return {
        hasText: hasText
    };
})();

// GC Input Validator
GC.validate.number = (function () {
        var c = {
            validInt: '.validInt',
            num: '.validNum'
        };

        function validateInt() {
            
            $(c.validInt).bind('keypress', function (evt) {
                var charCode = (evt.which) ? evt.which : event.keyCode;
                if (charCode > 31 && (charCode < 48 || charCode > 57)) {
                    return false;
                }
                return true;
            });
            $(c.num).bind('keypress', function (evt) {
                var charCode = (evt.which) ? evt.which : event.keyCode;
                if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57)) {
                    return false;
                }
                return true;
            });

        }
        return {
            init: function () {
                setTimeout(validateInt, 500);
            }
        };
})();

$(function () {
    GC.validate.number.init();
});
var sell = {
    coinCount: function () {
        $('html').on('keyup mouseup', '.jsCoinCount', function () {
            var wrapper = $(this).parents('.jsFace');

            function getCount(cssName) {
                return wrapper.find(cssName).val() || 0;
            }

            var nickels = getCount('.jsNickels');
            var dimes = getCount('.jsDimes');
            var quarters = getCount('.jsQuarters');
            var halves = getCount('.jsHalves');

            var total = (nickels * 5 + dimes * 10 + quarters * 25 + halves * 50) * 0.01;

            wrapper.find('.jsItemQty').val(total.toFixed(2));
            wrapper.find('.jsDollarTotal').text(total.toFixed(2));
        });
    },

    updateQty: function () {
        $('html').on('keyup', '.jsQty', function () {
            $(this).prev('.jsUpdateQtyBtn').removeClass('d-none');
        });

        $('.jsQty').keypress(function (e) {
            var key = e.which;
            if (key == 13) {
                $(this).parents('form').find('.jsUpdateQtyBtn').click();
                return false;
            }
        });
    },

    confirmOrder: function () {
        $('#jsConfrimSell').click(function () {
            if ($('#cbTerms').prop('checked') == false || $('#cbPriceTerms').prop('checked') == false) {
                $('.jsShowTermAlert').removeClass('d-none');
                //alert("You must agree to the terms and conditions to continue.");
                return false;
            }
        });
    }
};

GC.sell = function () {
    function add(that) {
        var pid = $(that).data('product-id');
        var qty = $(that).parent('.jsFace').find('.jsItemQty').val() || 1;

        $.get('/sell-gold-silver/AddItemPopup', { profileId: pid, qty: qty }).done(function (data) {
            $('#jsAjaxPopup').empty().append(data);
        });
    }

    return {
        add: add
    };
}();


$(function () {
    "use strict";

    sell.coinCount();
    sell.updateQty();
    sell.confirmOrder();
});
