Current File : /home/pacjaorg/pacjaorg/cop.pacja.org/media/com_akeeba/js/UserInterfaceCommon.min.js |
/*
Copyright (c)2006-2023 Nicholas K. Dionysopoulos / Akeeba Ltd
@license GNU General Public License version 3, or later
Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com
Copyright (c) 2009 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
Usage: Math.uuid()
*/
if("undefined"==typeof akeeba)var akeeba={};"undefined"==typeof akeeba.UserInterfaceCommon&&(akeeba.UserInterfaceCommon={});Math.uuid=function(){var a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");return function(b,c){var e=[];c=c||a.length;if(b)for(var d=0;d<b;d++)e[d]=a[0|Math.random()*c];else for(e[8]=e[13]=e[18]=e[23]="-",e[14]="4",d=0;36>d;d++)e[d]||(b=0|16*Math.random(),e[d]=a[19==d?b&3|8:b]);return e.join("")}}();
function basename(a,b){a=a.replace(/^.*[\/\\]/g,"");"string"==typeof b&&a.substr(a.length-b.length)==b&&(a=a.substr(0,a.length-b.length));return a}function empty(a){var b;if(""===a||0===a||"0"===a||null===a||!1===a||"undefined"===typeof a)return!0;if("object"==typeof a){for(b in a)return!1;return!0}return!1}function array_shift(a){if(0===a.length)return null;if(0<a.length)return a.shift()}
function trim(a,b){var c;a+="";b=b?(b+"").replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^:])/g,"$1"):" \n\r\t\f\v\u00a0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000";var e=a.length;for(c=0;c<e;c++)if(-1===b.indexOf(a.charAt(c))){a=a.substring(c);break}e=a.length;for(c=e-1;0<=c;c--)if(-1===b.indexOf(a.charAt(c))){a=a.substring(0,c+1);break}return-1===b.indexOf(a.charAt(0))?a:""}
Object.keys||(Object.keys=function(){var a=Object.prototype.hasOwnProperty,b=!{toString:null}.propertyIsEnumerable("toString"),c="toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor".split(" "),e=c.length;return function(d){if("object"!==typeof d&&("function"!==typeof d||null===d))throw new TypeError("Object.keys called on non-object");var g=[],f;for(f in d)a.call(d,f)&&g.push(f);if(b)for(f=0;f<e;f++)a.call(d,c[f])&&g.push(c[f]);return g}}());
function escapeHTML(a){return a.split("&").join("&").split("<").join("<").split(">").join(">")}; //# sourceMappingURL=UserInterfaceCommon.min.map