(function(){function n(n){var i,t;if(!this.length)return null;for(i=encodeURIComponent(n+"[0]")+"="+this[0],t=1;t<this.length;t++)i+="&"+encodeURIComponent(n+"["+t+"]")+"="+this[t];return i}Array.prototype.toQueryParam=n})(),function(){"use strict";function n(n){return Object.prototype.toString.call(n)!=="[object Date]"?!1:!Number.isNaN(n.getTime())}function t(n){return n.setHours(0,0,0,0),n}Date.isValid=Date.isValid||n;Date.setStartOfDay=Date.setStartOfDay||t}(),function(){"use strict";function n(n){return(n=+n,n===0||Number.isNaN(n))?Number(n):n>0?1:-1}Math.sign=Math.sign||n}(),function(){function n(n){function t(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return[t()+t(),t(),t(),t(),t()+t()+t()].join(n===undefined?"-":n)}function t(){var n=this;if(n<=0)return"ingen";var t=1e3,i=Math.floor(Math.log(n)/Math.log(t));return(n/Math.pow(t,i)).toPrecision(3)+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]}Number.prototype.bytesToSize=Number.prototype.bytesToSize||t;Number.guid=Number.guid||n;Number.isNaN=Number.isNaN||isNaN}(),function(){function f(n,i){var u="",r;for(n=n||10,i=i||t,r=0;r<n;r++)u+=i[Math.floor(Math.random()*i.length)];return u}function e(){return this.replace(u,"")}function o(){var n=this,t;if(arguments.length===1){t=Object.prototype.toString.apply(arguments[0]).slice(8,-1);switch(t){case"Array":return n.formatByArray(arguments[0]);case"Function":return n.formatByFunction(arguments[0])}}return n.formatByArray(Array.prototype.slice.call(arguments))}function s(n){for(var r=this,t,u=[],f;f=i.exec(r);)u.push(f);for(t=0;t<u.length;t++)r=r.replace(u[t][0],n[Number(u[t][1])]);return r}function h(n){for(var i=this,t,u=[],f;f=r.exec(i);)u.push(f);for(t=0;t<u.length;t++)i=i.replace(u[t][0],n(u[t][1]));return i}function c(){for(var f={},e=(this||"").toString().split("&"),n,t,i,r,o,s,u=0;u<e.length;u++)n=e[u],t=n.indexOf("="),t==-1?(i=n,r=null):(i=n.substr(0,t),r=n.substr(t+1)),o=decodeURIComponent(i),s=decodeURIComponent(r),f[o]=s;return f}function n(t,i){return t.length<i?n("0"+t,i):t}function l(){return this.replace(/\s/g,"")}var t="abcdefghijklmnopqrstuvwxyz0123456789",i=new RegExp("{([0-9]+)}","gm"),r=new RegExp("{([^}]+)}","gm"),u=new RegExp("^s+|s+$","gm");String.random=String.random||f;String.prototype.trim=String.prototype.trim||e;String.prototype.format=o;String.prototype.formatByArray=s;String.prototype.formatByFunction=h;String.prototype.queryToObject=c;String.prototype.pad=function(t){return n(this,t)};String.prototype.removeWhitespaces=l}()