!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.ViewportExtra=e()}("undefined"!=typeof self?self:this,function(){"use strict";var t;return(t=function(t){if(this.minWidth=this.maxWidth=null,"number"==typeof t)this.minWidth=t;else{if("object"!=typeof t)throw new Error("ViewportExtra requires an argument that is number or object");if("number"==typeof t.minWidth&&(this.minWidth=t.minWidth),"number"==typeof t.maxWidth&&(this.maxWidth=t.maxWidth),"number"==typeof this.minWidth&&"number"==typeof this.maxWidth&&this.minWidth>this.maxWidth)throw new Error("ViewportExtra requires that maxWidth is not less than minWidth")}this.applyToElement()}).prototype.applyToElement=function(){if("undefined"!=typeof window){var e=t.createContent(this,window);e&&t.element.setAttribute("content",e)}},t.createContent=function(t,e){var i,n,o,d;return i=n="",o=[],d=e.document.documentElement.clientWidth,null!=t.minWidth&&t.minWidth===t.maxWidth?(i="width="+t.minWidth,n="initial-scale="+d/t.minWidth):null!=t.minWidth&&dt.maxWidth&&(i="width="+t.maxWidth,n="initial-scale="+d/t.maxWidth),[i,n].forEach(function(t){t&&o.push(t)}),o.join(",")},t.createElement=function(){var t=document.createElement("meta");return t.setAttribute("name","viewport"),t.setAttribute("content","width=device-width,initial-scale=1"),document.head.insertBefore(t,null),t},t.element="undefined"==typeof window?null:document.querySelector('[name="viewport"]')||t.createElement(),t}); //# sourceMappingURL=_map/viewport-extra.min.js.map