function postGenericAjaxObject(n,t){var i="";return $.ajax({url:n,async:!1,data:t,type:"POST",success:function(n){i=n},error:function(n,t,i){alert(i+" | "+n.responseText);alert(n.responseText);console.log(n.responseText)}}),i}function getGenericAjaxObject(n,t){var i="";return $.ajax({url:n,async:!1,data:t,type:"GET",success:function(n){i=n},error:function(n,t,i){alert(i+" | "+n.responseText);alert(n.responseText);console.log(n.responseText)}}),i}function postGenericAjaxObjectAndCallBack(n,t,i){var r;$.ajax({url:n,async:!0,data:t,type:"POST",success:function(n){r=n;i(r)},error:function(n,t,i){n.status!==0&&(alert("There is a problem communicating with the server. Please check your internet connection :"+i),alert(n.responseText),console.log(n.responseText))}})}function toggleSlide(n){$("#"+n).slideToggle("fast")}function slideOutIfTicked(n,t){var i=t.checked;i==!0?$("#"+n).slideDown("fast"):$("#"+n).slideUp("fast")}function openAJAXModal(n,t,i,r,u,f){var e=getGenericAjaxObject(n,t);$("#"+i).html(e);$("#"+r).modal("show");$.validator.unobtrusive.parse($("#"+i));u&&$("#validationsummary").hide();f!=null&&f()}function closeAllModals(){$(".modal").fadeOut("fast");$(".modal-backdrop").fadeOut("fast").remove();$("body").removeClass("modal-open");$("body").prop("style","")}function customConfirm(n,t){$("#modConfirm").modal("show");$("#hConfirmQuestion").html(n);$("#btnConfirmYes").bind("click",function(){t!=null&&t();$("#modConfirm").modal("hide");$("#btnConfirmYes").unbind()})}function gridDateFilter(n){n.kendoDatePicker({format:"dd/MM/yyyy"})}function resizeGrid(n){var i;gridElement=$("#"+n);var t=$(window).height(),r=$(gridElement).position().top,u=$(".k-grouping-header").outerHeight(),f=0;i=u>0?t-r-u-f:t-r-f;i>200?gridElement.height(i):gridElement.height(t)}function setListBackToTopVisible(n){function r(){t.scrollTop()>0?i.show():i.hide()}var t=$("#"+n),i;t;t.append('<button type="button" data-scroll-to-top-for="'+n+'" class="btn-back-to-top"><span class="sr-only">Back to top<\/span><\/button>');i=t.find('[data-scroll-to-top-for="'+n+'"]');r();t.scroll(function(){r()});i.click(function(){return t.animate({scrollTop:0},"fast"),!1})}function updateInstallerURL(n,t){var i=new URL(window.location);i.searchParams.set("i",n);t!=null&&i.searchParams.set("o",t);window.history.pushState({},"",i)}function resetInstallerURL(){window.history.pushState("","","/")}function copyURLToClipboard(){navigator.permissions.query({name:"clipboard-write"}).then(n=>{(n.state=="granted"||n.state=="prompt")&&navigator.clipboard.writeText(window.location.href)});$(".copy-to-cliboard").html("Copied successfully!").addClass("copied")}var gridElement;!function(n){function f(n){for(var u=[],i=0,r=n.length,t;i<r;)t=n.charCodeAt(i++),t>=55296&&t<=56319&&i<r?(r=n.charCodeAt(i++),56320==(64512&r)?u.push(((1023&t)<<10)+(1023&r)+65536):(u.push(t),i--)):u.push(t);return u}function r(n,t){var i=Object.prototype.toString.call(n),r="string"==typeof n||"[object NodeList]"===i||"[object HTMLCollection]"===i||1===n.nodeType,u="function"==typeof t;return r||console.error("Countable: Not a valid target"),u||console.error("Countable: Not a valid callback function"),r&&u}function e(n,t){var u=""+("string"==typeof n?n:"value"in n?n.value:n.textContent),r;return(t=t||{}).stripTags&&(u=u.replace(/<\/?[a-z][^>]*>/gi,"")),t.ignore&&i.call(t.ignore,function(n){u=u.replace(n,"")}),r=u.trim(),{paragraphs:r?(r.match(t.hardReturns?/\n{2,}/g:/\n+/g)||[]).length+1:0,sentences:r?(r.match(/[.?!…]+./g)||[]).length+1:0,words:r?(r.replace(/['";:,.?¿\-!¡]+/g,"").match(/\S+/g)||[]).length:0,characters:r?f(u).length:0,all:f(u).length}}var t=[],i=Array.prototype.forEach,u={on:function(n,u,f){if(r(n,u))return Array.isArray(n)||(n=[n]),i.call(n,function(n){var i=function(){u.call(n,e(n,f))};t.push({element:n,handler:i});i();n.addEventListener("input",i)}),this},off:function(n){if(r(n,function(){}))return Array.isArray(n)||(n=[n]),t.filter(function(t){return-1!==n.indexOf(t.element)}).forEach(function(n){n.element.removeEventListener("input",n.handler)}),t=t.filter(function(t){return-1===n.indexOf(t.element)}),this},count:function(n,t,u){if(r(n,t))return Array.isArray(n)||(n=[n]),i.call(n,function(n){t.call(n,e(n,u))}),this},enabled:function(n){return void 0===n.length&&(n=[n]),t.filter(function(t){return-1!==n.indexOf(t.element)}).length===n.length}};"object"==typeof exports?module.exports=u:"function"==typeof define&&define.amd?define(function(){return u}):n.Countable=u}(this)