diff --git a/dist/minifill.min.js b/dist/minifill.min.js index 4461a09..ea9f85d 100644 --- a/dist/minifill.min.js +++ b/dist/minifill.min.js @@ -1,2 +1,2 @@ // minifill.min.js | MIT | dnp_theme -!function(){function L(a,b,c){var g,d=a.document&&a[C][b].match(/([\d\.]+)(%|cm|em|in|mm|pc|pt|)/)||[0,0,""],e=d[1],f=d[2];return c=c?/%|em/.test(f)&&a.parentElement?L(a.parentElement,"fontSize",null):16:c,g="fontSize"==b?c:/width/i.test(b)?a.clientWidth:a.clientHeight,"%"==f?e/100*g:"cm"==f?.3937*e*96:"em"==f?e*c:"in"==f?96*e:"mm"==f?.3937*e*96/10:"pc"==f?12*e*96/72:"pt"==f?96*e/72:e}function M(a,b){var c="border"==b?"Width":"",d=b+"Top"+c,e=b+"Right"+c,f=b+"Bottom"+c,g=b+"Left"+c;a[b]=(a[d]==a[e]&&a[d]==a[f]&&a[d]==a[g]?[a[d]]:a[d]==a[f]&&a[g]==a[e]?[a[d],a[e]]:a[g]==a[e]?[a[d],a[e],a[f]]:[a[d],a[e],a[f],a[g]]).join(" ")}function N(a){var f,b=this,c=a[C],d=L(a,p),e=function(a){return"-"+a.toLowerCase()};for(f in c)if(Array.prototype.push.call(b,"styleFloat"==f?"float":f.replace(/[A-Z]/,e)),"width"==f)b[f]=a.offsetWidth+"px";else if("height"==f)b[f]=a.offsetHeight+"px";else if("styleFloat"==f)b.float=c[f];else if(/margin.|padding.|border.+W/.test(f)&&"auto"!=b[f])b[f]=Math.round(L(a,f,d))+"px";else if(/^outline/.test(f))try{b[f]=c[f]}catch(a){b.outlineColor=c.color,b.outlineStyle=b.outlineStyle||"none",b.outlineWidth=b.outlineWidth||"0px",b.outline=[b.outlineColor,b.outlineWidth,b.outlineStyle].join(" ")}else b[f]=c[f];M(b,"margin"),M(b,"padding"),M(b,"border"),b[p]=Math.round(d)+"px"}var a="className",b="add",c="classList",d="remove",e="contains",f="Document",g=document,h=this[f]||this.HTMLDocument,i="Window",j=window,k=this.constructor||this[i]||Window,l="prototype",m="indexOf",n="length",o="getComputedStyle",p="fontSize",q="HTMLElement",r="documentElement",s="now",t="performance",u=Element,v="Event",w="CustomEvent",x="_events",y="type",z="target",A="currentTarget",B="relatedTarget",C="currentStyle",D="cancelable",E="bubbles",F="cancelBubble",G="cancelImmediate",H="detail",I="addEventListener",J="removeEventListener",K="dispatchEvent";if(j[q]||(j[q]=j[u]),Array[l][m]||(Array[l][m]=function(a){if(void 0===this||null===this)throw new TypeError(this+" is not an object");var b=this instanceof String?this.split(""):this,c=Math.max(Math.min(b[n],9007199254740991),0)||0,d=Number(arguments[1])||0;for(d=(d<0?Math.max(c+d,0):d)-1;++d-1},j=this[b]=function(b){i(b)||(g.push(b),f[a]=g.join(" "))},k=this[d]=function(b){i(b)&&(g.splice(g[m](b),1),f[a]=g.join(" "))},o=(this.toggle=function(a){i(a)?k(a):j(a)},0);o-1},addClass=this[k]=function(c){hasClass(c)||(b.push(c),a[j]=b.join(" "))},removeClass=this[m]=function(c){hasClass(c)&&(b.splice(b[p](c),1),a[j]=b.join(" "))},toggleClass=this.toggle=function(a){hasClass(a)?removeClass(a):addClass(a)}};Object.defineProperty(i[o],l,{get:function(){return new O(this)}})}e[w]&&f[o][w]||(e[w]=f[o][w]=c[o][w]=i[o][w]=function(a,c){if(!a)throw new Error("Not enough arguments");var d,e=!(!c||void 0===c[E])&&c[E],f=!(!c||void 0===c[D])&&c[D];return"createEvent"in b?(d=b.createEvent(w),d.initEvent(a,e,f)):(d=b.createEventObject(),d[z]=a,d[E]=e,d[D]=f),d}),x in e&&x in f[o]||(e[x]=f[o][x]=c[o][x]=Element[o][x]=function(a,b){if(!a)throw Error("CustomEvent TypeError: An event name must be provided.");var c=new Event(a,b);return c[H]=b&&b[H]||null,c}),e[I]&&f[o][I]||(e[I]=f[o][I]=c[o][I]=i[o][I]=function(){var a=this,c=arguments[0],d=arguments[1];a[y]||(a[y]={}),a[y][c]||(a[y][c]=function(c){var i,d=a[y][c[z]].list,e=d.slice(),f=-1,g=e[q];for(c.preventDefault=function(){c[D]!==!1&&(c.returnValue=!1)},c.stopPropagation=function(){c[F]=!0},c.stopImmediatePropagation=function(){c[F]=!0,c[G]=!0},c[B]=a,c[C]=c[C]||c.fromElement||null,c[A]=c[A]||c.srcElement||a,c.timeStamp=(new Date).getTime(),c.clientX&&(c.pageX=c.clientX+b[h].scrollLeft,c.pageY=c.clientY+b[h].scrollTop);++f