`)})}else if(b.Result==a3){$.stdShowMessage({icon:a4,message:a5,type:a6})}}),error:((a,b,c)=>{console.warn(a.responseText)})})}});var w=((a,b,c)=>{var d=a[b];a[b]=a[c];a[c]=d});var r=(a=>$(`div[name="match-`+ a+ am));var u=((a,b,c)=>{var d=a.length,e,f;if(b$(`div.card[name="group-`+ a+ `"] > div.card-body > div[name="matches-content"]`));var a=(()=>{$(A).append(``);$(A).append(``);$(A).append(``);$(A).append(``);$(A).append(``)});var g=(()=>{var a=$(H).val();$.ajax({method:X,crossDomain:!0,headers:{'Access-Control-Allow-Origin':Y},url:`https://sobrepique.com/api/v1/IwXY2Ft-I0y1jIssmjJsDQ/categories`,dataType:Z,data:{tournament_id:a},success:((a,b,c)=>{if(a.Result==_){var d=$(M);var e=$(`label[name="categories-label"]`);var f=$(`div[name="tabs-content"]`);if(a.Options.length>z){d.removeClass(G);e.addClass(G);f.removeClass(G);var g=a0;d.empty();d.append(``);a.Options.forEach((a=>{g=``;d.append(g)}))}else{d.addClass(G);e.removeClass(G);f.addClass(G)}}else if(a.Result==a3){d.addClass(G);e.removeClass(G);f.addClass(G);$.stdShowMessage({icon:a4,message:a5,type:a6})};h();i();x()}),error:((a,b,c)=>{console.warn(a.responseText)})})});var c=(()=>{var a=b();return a.find(B).length});var p=(a=>$(`.device-`+ a).is(`:visible`));var o=(()=>$(aH));var n=(()=>$(aH)!=y&&$(aH).val()!=-a1);var e=(()=>{$(H).on(I,(a=>{$(J).attr(K,L);g()}));$(M).on(I,function(a){$(J).attr(K,L);h();const b=N($(O,this).attr(P));j(b)});$(Q).on(I,function(a){$(J).attr(K,L);$(`div.tab-content > div.tab-pane > div.row[name="groups-matches-content"]`).attr(K,R);const b=N($(O,this).attr(P));j(b);const c=$(S);if(!c.hasClass(T)){c.tab(U)};x()});$(`a[data-toggle="tab"]`).on(`shown.bs.tab`,(a=>{var c=b();const d=c.attr(V)||W;if(d==W||!m()||n()){c.removeClass(G);i()}else{c.addClass(G)}}));$(document).on(`click`,`span[name="btn-group-calculator"]`,function(a){var b=$(this).attr(`data-value`);s(b)})});var i=(()=>{var a=b();if(a.attr(K)==L){a.empty();var c=$(H).val();var d=$(M).val();const b=o().attr(a8);var e=a.attr(V)||z;if(d!=-a1){$.ajax({method:X,crossDomain:!0,headers:{'Access-Control-Allow-Origin':Y},url:`https://sobrepique.com/api/v1/IwXY2Ft-I0y1jIssmjJsDQ/matches`,dataType:Z,data:{tournament_id:c,category_id:d,round:e,playoff_type_id:b},success:((b,c,d)=>{if(b.Result==_){if(b.Records.length>z){var f=z;var g=a0;while(f{console.warn(a.responseText)})})}}});$(document).ajaxStart((()=>{$.blockUI({message:y,fadeIn:z})})).ajaxStop((()=>{$.unblockUI()}));a();d();e();f()}))