var Qowaiv;(function(n){var t=function(){function n(){this.v="00000000-0000-0000-0000-000000000000"}return n.prototype.toString=function(){return this.v},n.prototype.format=function(n){switch(n){case"B":return"{"+this.v+"}";case"b":return"{"+this.v.toLowerCase()+"}";case"S":return this.v.replace(/-/g,"");case"s":return this.v.replace(/-/g,"").toLowerCase();case"l":return this.v.toLowerCase();case"U":case"u":default:return this.v}},n.prototype.toJSON=function(){return this.v},n.fromJSON=function(t){return n.parse(t)},n.prototype.equals=function(t){return t!==null&&t instanceof n&&t.v===this.v},n.isValid=function(n){return/^[0-9ABCDEF]{32}$/i.test(n.replace(/-/g,""))},n.parse=function(t){if(t==="")return new n;if(n.isValid(t)){var i=new n;return t=t.replace(/-/g,"").toUpperCase(),i.v=t.replace(/(.{8})(.{4})(.{4})(.{4})(.{8})/,"$1-$2-$3-$4-$5"),i}return null},n.newGuid=function(t){var r=new n,u,f,i,e,o;if(r.v=(n.rndGuid(!1)+n.rndGuid(!0)+n.rndGuid(!0)+n.rndGuid(!1)).toUpperCase(),t!==null&&t instanceof n){for(u="0123456789ABCDEF",f="",i=0;i<36;i++)e=u.indexOf(t.v.charAt(i)),o=u.indexOf(r.v.charAt(i)),f+=e===-1||o===-1?r.v.charAt(i):u.charAt(e^o);r.v=f}return r},n.rndGuid=function(n){var t=(Math.random().toString(16)+"000000000").substr(2,8);return n?"-"+t.substr(0,4)+"-"+t.substr(4,4):t},n}();n.Guid=t})(Qowaiv||(Qowaiv={})),function(n){var t=function(){function n(n,t,i,r,u){this.v=this.num(n)*86400,this.v+=this.num(t)*3600,this.v+=this.num(i)*60,this.v+=this.num(r),this.v+=this.num(u)*.001}return n.prototype.num=function(n){return isNaN(n)?0:n},n.prototype.getDays=function(){return~~(this.v/86400)},n.prototype.getHours=function(){return~~(this.v/3600%24)},n.prototype.getMinutes=function(){return~~(this.v/60%60)},n.prototype.getSeconds=function(){return~~(this.v%60)},n.prototype.getMilliseconds=function(){return~~(this.v*1e3%1e3)},n.prototype.getTotalDays=function(){return this.v/86400},n.prototype.getTotalHours=function(){return this.v/3600},n.prototype.getTotalMinutes=function(){return this.v/60},n.prototype.getTotalSeconds=function(){return this.v},n.prototype.getTotalMilliseconds=function(){return this.v*1e3},n.prototype.getTicks=function(){return~~(this.v*1e7)},n.prototype.multiply=function(t){if(isNaN(t))throw Error("factor is not a number.");return n.fromSeconds(this.v*t)},n.prototype.divide=function(t){if(isNaN(t))throw Error("factor is not a number.");if(t===0)throw Error("factor is zero.");return n.fromSeconds(this.v/t)},n.prototype.toString=function(){var t=this.getTotalSeconds()%60,i=this.getMinutes(),r=this.getHours(),u=this.getDays(),n="";return(n!==""||u!==0)&&(n+=u+":"),n!==""&&r<10&&(n+="0"),(n!==""||r!==0)&&(n+=r+":"),n!==""&&i<10&&(n+="0"),(n!==""||i!==0)&&(n+=i+":"),n!==""&&t<10&&(n+="0"),(n!==""||t!==0)&&(n+=t),n},n.prototype.format=function(){var i=Math.round(this.v),r=n.fromSeconds(i);return r.toString()},n.prototype.toJSON=function(){return this.toString()},n.fromJSON=function(t){return n.parse(t)},n.prototype.equals=function(t){return t!==null&&t!==undefined&&t instanceof n&&t.v===this.v},n.isValid=function(t){return typeof t=="string"&&n.pattern.test(t)},n.parse=function(t){if(n.isValid(t)){var r=t.split(":"),i=r.length,u=parseFloat(r[i-1].replace(",",".")),f=i>3?parseInt(r[i-4]):0,e=i>2?parseInt(r[i-3]):0,o=i>1?parseInt(r[i-2]):0;return new n(f,e,o,u)}return null},n.fromSeconds=function(t){if(isNaN(t))throw Error("seconds is not a number.");return new n(0,0,0,t)},n.pattern=/^\d*((((\d+:(2[0-3]|[0-1]\d)|\d)?:[0-5])?\d:)?[0-5])?\d([,\.]\d+)?$/,n}();n.TimeSpan=t}(Qowaiv||(Qowaiv={}))