(function(q){"object"===typeof exports&&"undefined"!==typeof module?module.exports=q():"function"===typeof define&&define.amd?define([],q):("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this).SmartBanner=q()})(function(){return function c(f,h,d){function b(e,g){if(!h[e]){if(!f[e]){var l="function"==typeof require&&require;if(!g&&l)return l(e,!0);if(a)return a(e,!0);l=Error("Cannot find module '"+e+"'");throw l.code="MODULE_NOT_FOUND",l;}l=h[e]= {exports:{}};f[e][0].call(l.exports,function(a){var d=f[e][1][a];return b(d?d:a)},l,l.exports,c,f,h,d)}return h[e].exports}for(var a="function"==typeof require&&require,g=0;gparseInt(a.os.version)?this.type="ios":"Android"===a.os.name&& (this.type="android");!this.type||navigator.standalone||e.get("smartbanner-closed")||e.get("smartbanner-installed")||(d(this,m[this.type]),this.parseAppId()&&(this.create(),this.show()))};c.prototype={constructor:c,create:function(){for(var d=this.getStoreLink(),e=this.options.price[this.type]+" - "+this.options.store[this.type],r,g=0;g
'+this.options.title+"
"+this.options.author+"
"+e+'
'+this.options.button+"";a.body?a.body.appendChild(c):a&& a.addEventListener("DOMContentLoaded",function(){a.body.appendChild(c)});b(".smartbanner-button",c).addEventListener("click",this.install.bind(this),!1);b(".smartbanner-close",c).addEventListener("click",this.close.bind(this),!1)},hide:function(){g.classList.remove("smartbanner-show")},show:function(){g.classList.add("smartbanner-show")},close:function(){this.hide();e.set("smartbanner-closed","true",{path:"/",expires:new Date(+new Date+864E5*this.options.daysHidden)})},install:function(){this.hide(); e.set("smartbanner-installed","true",{path:"/",expires:new Date(+new Date+864E5*this.options.daysReminder)})},parseAppId:function(){var a=b('meta[name="'+this.appMeta+'"]');if(a)return this.appId="windows"===this.type?a.getAttribute("content"):/app-id=([^\s,]+)/.exec(a.getAttribute("content"))[1]}};f.exports=c},{"component-query":2,"cookie-cutter":3,"get-doc":4,"ua-parser-js":6,"xtend/mutable":7}],2:[function(c,f,h){function d(b,a){return a.querySelector(b)}h=f.exports=function(b,a){a=a||document; return d(b,a)};h.all=function(b,a){a=a||document;return a.querySelectorAll(b)};h.engine=function(b){if(!b.one)throw Error(".one callback required");if(!b.all)throw Error(".all callback required");d=b.one;h.all=b.all;return h}},{}],3:[function(c,f,h){h=f.exports=function(d){d||(d={});"string"===typeof d&&(d={cookie:d});void 0===d.cookie&&(d.cookie="");return{get:function(b){for(var a=d.cookie.split(/;\s*/),g=0;g