function rejectPrompt(){console.log("rejectPrompt!"),setTimeout(function(){window.close()},500)}function log(e,t){if(void 0===t)return void(window.console&&!0===debugMode&&console.log(e));window.console&&!0===debugMode&&console.log(e,t)}function smkProfilerLoaded(){if("object"==typeof jic&&"function"==typeof jic.repopulateForms&&jic.repopulateForms(),getParams().smkDuid){var e=document.getElementById("capture-email-form-smk-duid");null!==e&&e.setAttribute("value",getParams().smkDuid)}}function hideCaptureEmail(){var e=document.getElementById("capture-email-overlay");null!==e&&(e.style.visibility="hidden");var t=document.getElementById("capture-email-container");null!==t&&(t.style.visibility="hidden")}function showCaptureEmail(){var e=document.getElementById("capture-email-overlay");null!==e&&(e.style.visibility="visible");var t=document.getElementById("capture-email-container");null!==t&&(t.style.visibility="visible")}function getParams(e){var t=e?e.split("?")[1]:window.location.search.slice(1),i={};if(t){t=t.split("#")[0];for(var o=t.split("&"),n=0;n-1?e.replace(/###/g,"."):e}for(var n="string"!=typeof t?[].concat(t):t.split(".");n.length>1;){if(!e)return{};var a=o(n.shift());!e[a]&&i&&(e[a]=new i),e=e[a]}return e?{obj:e,k:o(n.shift())}:{}}function o(e,t,o){var n=i(e,t,Object);n.obj[n.k]=o}function n(e,t,o,n){var a=i(e,t,Object),s=a.obj,r=a.k;s[r]=s[r]||[],n&&(s[r]=s[r].concat(o)),n||s[r].push(o)}function a(e,t){var o=i(e,t),n=o.obj,a=o.k;return n?n[a]:void 0}function s(e,t,i){for(var o in t)o in e?"string"==typeof e[o]||e[o]instanceof String||"string"==typeof t[o]||t[o]instanceof String?i&&(e[o]=t[o]):s(e[o],t[o],i):e[o]=t[o];return e}function r(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function l(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return P[e]}):e}function c(e){return e.interpolation={unescapeSuffix:"HTML"},e.interpolation.prefix=e.interpolationPrefix||"__",e.interpolation.suffix=e.interpolationSuffix||"__",e.interpolation.escapeValue=e.escapeInterpolation||!1,e.interpolation.nestingPrefix=e.reusePrefix||"$t(",e.interpolation.nestingSuffix=e.reuseSuffix||")",e}function u(e){return e.resStore&&(e.resources=e.resStore),e.ns&&e.ns.defaultNs?(e.defaultNS=e.ns.defaultNs,e.ns=e.ns.namespaces):e.defaultNS=e.ns||"translation",e.fallbackToDefaultNS&&e.defaultNS&&(e.fallbackNS=e.defaultNS),e.saveMissing=e.sendMissing,e.saveMissingTo=e.sendMissingTo||"current",e.returnNull=!e.fallbackOnNull,e.returnEmptyString=!e.fallbackOnEmpty,e.returnObjects=e.returnObjectTrees,e.joinArrays="\n",e.returnedObjectHandler=e.objectTreeKeyHandler,e.parseMissingKeyHandler=e.parseMissingKey,e.appendNamespaceToMissingKey=!0,e.nsSeparator=e.nsseparator,e.keySeparator=e.keyseparator,"sprintf"===e.shortcutFunction&&(e.overloadTranslationOptionHandler=function(e){for(var t=[],i=1;i-1&&i.observers[e].splice(o,1)}else delete i.observers[e]})},e.prototype.emit=function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;t>o;o++)i[o-1]=arguments[o];this.observers[e]&&this.observers[e].forEach(function(e){e.apply(void 0,i)}),this.observers["*"]&&this.observers["*"].forEach(function(t){var o;t.apply(t,(o=[e]).concat.apply(o,i))})},e}(),P={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},C=function(e){function t(){var i=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],o=arguments.length<=1||void 0===arguments[1]?{ns:["translation"],defaultNS:"translation"}:arguments[1];v.classCallCheck(this,t);var n=v.possibleConstructorReturn(this,e.call(this));return n.data=i,n.options=o,n}return v.inherits(t,e),t.prototype.addNamespaces=function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)},t.prototype.removeNamespaces=function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)},t.prototype.getResource=function(e,t,i){var o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],n=o.keySeparator||this.options.keySeparator;void 0===n&&(n=".");var s=[e,t];return i&&"string"!=typeof i&&(s=s.concat(i)),i&&"string"==typeof i&&(s=s.concat(n?i.split(n):i)),e.indexOf(".")>-1&&(s=e.split(".")),a(this.data,s)},t.prototype.addResource=function(e,t,i,n){var a=arguments.length<=4||void 0===arguments[4]?{silent:!1}:arguments[4],s=this.options.keySeparator;void 0===s&&(s=".");var r=[e,t];i&&(r=r.concat(s?i.split(s):i)),e.indexOf(".")>-1&&(r=e.split("."),n=t,t=r[1]),this.addNamespaces(t),o(this.data,r,n),a.silent||this.emit("added",e,t,i,n)},t.prototype.addResources=function(e,t,i){for(var o in i)"string"==typeof i[o]&&this.addResource(e,t,o,i[o],{silent:!0});this.emit("added",e,t,i)},t.prototype.addResourceBundle=function(e,t,i,n,r){var l=[e,t];e.indexOf(".")>-1&&(l=e.split("."),n=i,i=t,t=l[1]),this.addNamespaces(t);var c=a(this.data,l)||{};n?s(c,i,r):c=v.extends({},c,i),o(this.data,l,c),this.emit("added",e,t,i)},t.prototype.removeResourceBundle=function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)},t.prototype.hasResourceBundle=function(e,t){return void 0!==this.getResource(e,t)},t.prototype.getResourceBundle=function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?v.extends({},this.getResource(e,t)):this.getResource(e,t)},t.prototype.toJSON=function(){return this.data},t}(x),S={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,i,o,n){var a=this;return e.forEach(function(e){a.processors[e]&&(t=a.processors[e].process(t,i,o,n))}),t}},N=function(e){function i(o){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];v.classCallCheck(this,i);var a=v.possibleConstructorReturn(this,e.call(this));return t(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector"],o,a),a.options=n,a.logger=k.create("translator"),a}return v.inherits(i,e),i.prototype.changeLanguage=function(e){e&&(this.language=e)},i.prototype.exists=function(e){var t=arguments.length<=1||void 0===arguments[1]?{interpolation:{}}:arguments[1];return"v1"===this.options.compatibilityAPI&&(t=p(t)),void 0!==this.resolve(e,t)},i.prototype.extractFromKey=function(e,t){var i=t.nsSeparator||this.options.nsSeparator;void 0===i&&(i=":");var o=t.ns||this.options.defaultNS;if(i&&e.indexOf(i)>-1){var n=e.split(i);o=n[0],e=n[1]}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}},i.prototype.translate=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if("object"!==(void 0===t?"undefined":v.typeof(t))?t=this.options.overloadTranslationOptionHandler(arguments):"v1"===this.options.compatibilityAPI&&(t=p(t)),void 0===e||null===e||""===e)return"";"number"==typeof e&&(e=String(e)),"string"==typeof e&&(e=[e]);var i=t.lng||this.language;if(i&&"cimode"===i.toLowerCase())return e[e.length-1];var o=t.keySeparator||this.options.keySeparator||".",n=this.extractFromKey(e[e.length-1],t),a=n.key,s=n.namespaces,r=s[s.length-1],l=this.resolve(e,t),c=Object.prototype.toString.apply(l),u=["[object Number]","[object Function]","[object RegExp]"],d=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays;if(l&&"string"!=typeof l&&u.indexOf(c)<0&&(!d||"[object Array]"!==c)){if(!t.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(a,l,t):"key '"+a+" ("+this.language+")' returned an object instead of string.";var f="[object Array]"===c?[]:{};for(var g in l)f[g]=this.translate(""+a+o+g,v.extends({joinArrays:!1,ns:s},t));l=f}else if(d&&"[object Array]"===c)(l=l.join(d))&&(l=this.extendTranslation(l,a,t));else{var m=!1,h=!1;if(this.isValidLookup(l)||void 0===t.defaultValue||(m=!0,l=t.defaultValue),this.isValidLookup(l)||(h=!0,l=a),h||m){this.logger.log("missingKey",i,r,a,l);var b=[];if("fallback"===this.options.saveMissingTo&&this.options.fallbackLng&&this.options.fallbackLng[0])for(var y=0;yi;i++)t[i]=arguments[i];return o.translate.apply(o,t)},i),i.interpolation&&this.interpolator.reset();var a=i.postProcess||this.options.postProcess,s="string"==typeof a?[a]:a;return void 0!==e&&s&&s.length&&!1!==i.applyPostProcessor&&(e=S.handle(s,e,t,i,this)),e},i.prototype.resolve=function(e){var t=this,i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=void 0;return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!t.isValidLookup(o)){var n=t.extractFromKey(e,i),a=n.key,s=n.namespaces;t.options.fallbackNS&&(s=s.concat(t.options.fallbackNS));var r=void 0!==i.count&&"string"!=typeof i.count,l=void 0!==i.context&&"string"==typeof i.context&&""!==i.context,c=i.lngs?i.lngs:t.languageUtils.toResolveHierarchy(i.lng||t.language);s.forEach(function(e){t.isValidLookup(o)||c.forEach(function(n){if(!t.isValidLookup(o)){var s=a,c=[s],u=void 0;r&&(u=t.pluralResolver.getSuffix(n,i.count)),r&&l&&c.push(s+u),l&&c.push(s+=""+t.options.contextSeparator+i.context),r&&c.push(s+=u);for(var d=void 0;d=c.pop();)t.isValidLookup(o)||(o=t.getResource(n,e,d,i))}})})}}),o},i.prototype.isValidLookup=function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)},i.prototype.getResource=function(e,t,i){var o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3];return this.resourceStore.getResource(e,t,i,o)},i}(x),E=function(){function e(t){v.classCallCheck(this,e),this.options=t,this.whitelist=this.options.whitelist||!1,this.logger=k.create("languageUtils")}return e.prototype.getLanguagePartFromCode=function(e){if(e.indexOf("-")<0)return e;var t=["NB-NO","NN-NO","nb-NO","nn-NO","nb-no","nn-no"],i=e.split("-");return this.formatLanguageCode(t.indexOf(e)>-1?i[1].toLowerCase():i[0])},e.prototype.formatLanguageCode=function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],i=e.split("-");return this.options.lowerCaseLng?i=i.map(function(e){return e.toLowerCase()}):2===i.length?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=g(i[1].toLowerCase()))):3===i.length&&(i[0]=i[0].toLowerCase(),2===i[1].length&&(i[1]=i[1].toUpperCase()),"sgn"!==i[0]&&2===i[2].length&&(i[2]=i[2].toUpperCase()),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=g(i[1].toLowerCase())),t.indexOf(i[2].toLowerCase())>-1&&(i[2]=g(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e},e.prototype.isWhitelisted=function(e){return"languageOnly"===this.options.load&&(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(e)>-1},e.prototype.toResolveHierarchy=function(e,t){var i=this;"string"==typeof(t=t||this.options.fallbackLng||[])&&(t=[t]);var o=[],n=function(e){i.isWhitelisted(e)?o.push(e):i.logger.warn("rejecting non-whitelisted language code: "+e)};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&n(this.formatLanguageCode(e)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(e))):"string"==typeof e&&n(this.formatLanguageCode(e)),t.forEach(function(e){o.indexOf(e)<0&&n(i.formatLanguageCode(e))}),o},e}(),T=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","es_ar","et","eu","fi","fo","fur","fy","gl","gu","ha","he","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt","pt_br","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21}],A={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:e%100>=3&&10>=e%100?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&4>=e?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:7>e?2:11>e?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&20>e?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(10>e%100||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||e%100>1&&11>e%100?1:e%100>10&&20>e%100?2:3)},20:function(e){return Number(1==e?0:0===e||e%100>0&&20>e%100?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)}},L=function(){function e(t){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];v.classCallCheck(this,e),this.languageUtils=t,this.options=i,this.logger=k.create("pluralResolver"),this.rules=m()}return e.prototype.addRule=function(e,t){this.rules[e]=t},e.prototype.getRule=function(e){return this.rules[this.languageUtils.getLanguagePartFromCode(e)]},e.prototype.needsPlural=function(e){var t=this.getRule(e);return!(t&&t.numbers.length<=1)},e.prototype.getSuffix=function(e,t){var i=this,o=this.getRule(e);if(!o)return this.logger.warn("no plural rule found for: "+e),"";var n=function(){if(1===o.numbers.length)return{v:""};var e=o.noAbs?o.plurals(t):o.plurals(Math.abs(t)),n=o.numbers[e];2===o.numbers.length&&1===o.numbers[0]&&(2===n?n="plural":1===n&&(n=""));var a=function(){return i.options.prepend&&n.toString()?i.options.prepend+n.toString():n.toString()};return"v1"===i.options.compatibilityJSON?1===n?{v:""}:"number"==typeof n?{v:"_plural_"+n.toString()}:{v:a()}:"v2"===i.options.compatibilityJSON||2===o.numbers.length&&1===o.numbers[0]?{v:a()}:2===o.numbers.length&&1===o.numbers[0]?{v:a()}:{v:i.options.prepend&&e.toString()?i.options.prepend+e.toString():e.toString()}}();return"object"===(void 0===n?"undefined":v.typeof(n))?n.v:void 0},e}(),j=function(){function t(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];v.classCallCheck(this,t),this.logger=k.create("interpolator"),this.init(e,!0)}return t.prototype.init=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];arguments[1]&&(this.options=e),e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escapeValue=t.escapeValue,this.prefix=t.prefix?r(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?r(t.suffix):t.suffixEscaped||"}}",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?r(t.nestingPrefix):t.nestingPrefixEscaped||r("$t("),this.nestingSuffix=t.nestingSuffix?r(t.nestingSuffix):t.nestingSuffixEscaped||r(")");var i=this.prefix+"(.+?)"+this.suffix;this.regexp=new RegExp(i,"g");var o=this.prefix+this.unescapePrefix+"(.+?)"+this.unescapeSuffix+this.suffix;this.regexpUnescape=new RegExp(o,"g");var n=this.nestingPrefix+"(.+?)"+this.nestingSuffix;this.nestingRegexp=new RegExp(n,"g")},t.prototype.reset=function(){this.options&&this.init(this.options)},t.prototype.interpolate=function(t,i){for(var o=void 0,n=void 0;o=this.regexpUnescape.exec(t);){var s=a(i,o[1].trim());t=t.replace(o[0],s)}for(;o=this.regexp.exec(t);)n=a(i,o[1].trim()),"string"!=typeof n&&(n=e(n)),n||(this.logger.warn("missed to pass in variable "+o[1]+" for interpolating "+t),n=""),n=function(e){return e.replace(/\$/g,"$$$$")}(this.escapeValue?l(n):n),t=t.replace(o[0],n),this.regexp.lastIndex=0;return t},t.prototype.nest=function(t,i){function o(e){if(e.indexOf(",")<0)return e;var t=e.split(",");e=t.shift();var i=t.join(",");i=this.interpolate(i,r);try{r=JSON.parse(i)}catch(t){this.logger.error("failed parsing options string in nesting for key "+e,t)}return e}var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],a=void 0,s=void 0,r=JSON.parse(JSON.stringify(n));for(r.applyPostProcessor=!1;a=this.nestingRegexp.exec(t);)s=i(o.call(this,a[1].trim()),r),"string"!=typeof s&&(s=e(s)),s||(this.logger.warn("missed to pass in variable "+a[1]+" for interpolating "+t),s=""),s=function(e){return e.replace(/\$/g,"$$$$")}(this.escapeValue?l(s):s),t=t.replace(a[0],s),this.regexp.lastIndex=0;return t},t}(),O=function(e){function t(i,o,n){var a=arguments.length<=3||void 0===arguments[3]?{}:arguments[3];v.classCallCheck(this,t);var s=v.possibleConstructorReturn(this,e.call(this));return s.backend=i,s.store=o,s.services=n,s.options=a,s.logger=k.create("backendConnector"),s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(n,a.backend,a),s}return v.inherits(t,e),t.prototype.queueLoad=function(e,t,i){var o=this,n=[],a=[],s=[],r=[];return e.forEach(function(e){var i=!0;t.forEach(function(t){var s=e+"|"+t;o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,i=!1,a.indexOf(s)<0&&a.push(s),n.indexOf(s)<0&&n.push(s),r.indexOf(t)<0&&r.push(t)))}),i||s.push(e)}),(n.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:i}),{toLoad:n,pending:a,toLoadLanguages:s,toLoadNamespaces:r}},t.prototype.loaded=function(e,t,i){var o=this,a=e.split("|"),s=v.slicedToArray(a,2),r=s[0],l=s[1];t&&this.emit("failedLoading",r,l,t),i&&this.store.addResourceBundle(r,l,i),this.state[e]=t?-1:2,this.queue.forEach(function(i){n(i.loaded,[r],l),h(i.pending,e),t&&i.errors.push(t),0!==i.pending.length||i.done||(i.errors.length?i.callback(i.errors):i.callback(),o.emit("loaded",i.loaded),i.done=!0)}),this.queue=this.queue.filter(function(e){return!e.done})},t.prototype.read=function(e,t,i,o,n,a){var s=this;return o||(o=0),n||(n=250),e.length?void this.backend[i](e,t,function(r,l){return r&&l&&5>o?void setTimeout(function(){s.read.call(s,e,t,i,++o,2*n,a)},n):void a(r,l)}):a(null,{})},t.prototype.load=function(e,t,i){var o=this;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();var n=v.extends({},this.backend.options,this.options.backend);"string"==typeof e&&(e=this.services.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,i);return s.toLoad.length?void(n.allowMultiLoading&&this.backend.readMulti?this.read(s.toLoadLanguages,s.toLoadNamespaces,"readMulti",null,null,function(e,t){e&&o.logger.warn("loading namespaces "+s.toLoadNamespaces.join(", ")+" for languages "+s.toLoadLanguages.join(", ")+" via multiloading failed",e),!e&&t&&o.logger.log("loaded namespaces "+s.toLoadNamespaces.join(", ")+" for languages "+s.toLoadLanguages.join(", ")+" via multiloading",t),s.toLoad.forEach(function(i){var n=i.split("|"),s=v.slicedToArray(n,2),r=s[0],l=s[1],c=a(t,[r,l]);if(c)o.loaded(i,e,c);else{var u="loading namespace "+l+" for language "+r+" via multiloading failed";o.loaded(i,u),o.logger.error(u)}})}):function(){var e=function(e){var t=this,i=e.split("|"),o=v.slicedToArray(i,2),n=o[0],a=o[1];this.read(n,a,"read",null,null,function(i,o){i&&t.logger.warn("loading namespace "+a+" for language "+n+" failed",i),!i&&o&&t.logger.log("loaded namespace "+a+" for language "+n,o),t.loaded(e,i,o)})};s.toLoad.forEach(function(t){e.call(o,t)})}()):void(s.pending.length||i())},t.prototype.saveMissing=function(e,t,i,o){this.backend&&this.backend.create&&this.backend.create(e,t,i,o),e&&e[0]&&this.store.addResource(e[0],t,i,o)},t}(x),R=function(e){function t(i,o,n){var a=arguments.length<=3||void 0===arguments[3]?{}:arguments[3];v.classCallCheck(this,t);var s=v.possibleConstructorReturn(this,e.call(this));return s.cache=i,s.store=o,s.services=n,s.options=a,s.logger=k.create("cacheConnector"),s.cache&&s.cache.init&&s.cache.init(n,a.cache,a),s}return v.inherits(t,e),t.prototype.load=function(e,t,i){var o=this;if(!this.cache)return i&&i();var n=v.extends({},this.cache.options,this.options.cache);"string"==typeof e&&(e=this.services.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]),n.enabled?this.cache.load(e,function(t,n){if(t&&o.logger.error("loading languages "+e.join(", ")+" from cache failed",t),n)for(var a in n)for(var s in n[a])if("i18nStamp"!==s){var r=n[a][s];r&&o.store.addResourceBundle(a,s,r)}i&&i()}):i&&i()},t.prototype.save=function(){this.cache&&this.options.cache&&this.options.cache.enabled&&this.cache.save(this.store.data)},t}(x);return new(function(e){function t(){var i=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],o=arguments[1];v.classCallCheck(this,t);var n=v.possibleConstructorReturn(this,e.call(this));return n.options=y(i),n.services={},n.logger=k,n.modules={},o&&!n.isInitialized&&n.init(i,o),n}return v.inherits(t,e),t.prototype.init=function(e,t){function i(e){return e?"function"==typeof e?new e:e:void 0}var o=this;if("function"==typeof e&&(t=e,e={}),e||(e={}),"v1"===e.compatibilityAPI?this.options=v.extends({},b(),y(u(e)),{}):"v1"===e.compatibilityJSON?this.options=v.extends({},b(),y(d(e)),{}):this.options=v.extends({},b(),this.options,y(e)),t||(t=function(){}),!this.options.isClone){this.modules.logger?k.init(i(this.modules.logger),this.options):k.init(null,this.options);var n=new E(this.options);this.store=new C(this.options.resources,this.options);var a=this.services;a.logger=k,a.resourceStore=this.store,a.resourceStore.on("added removed",function(e,t){a.cacheConnector.save()}),a.languageUtils=n,a.pluralResolver=new L(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON}),a.interpolator=new j(this.options),a.backendConnector=new O(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;t>n;n++)i[n-1]=arguments[n];o.emit.apply(o,[e].concat(i))}),a.backendConnector.on("loaded",function(e){a.cacheConnector.save()}),a.cacheConnector=new R(i(this.modules.cache),a.resourceStore,a,this.options),a.cacheConnector.on("*",function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;t>n;n++)i[n-1]=arguments[n];o.emit.apply(o,[e].concat(i))}),this.modules.languageDetector&&(a.languageDetector=i(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.translator=new N(this.services,this.options),this.translator.on("*",function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;t>n;n++)i[n-1]=arguments[n];o.emit.apply(o,[e].concat(i))})}["getResource","addResource","addResources","addResourceBundle","removeResourceBundle","hasResourceBundle","getResourceBundle"].forEach(function(e){o[e]=function(){return this.store[e].apply(this.store,arguments)}}),"v1"===this.options.compatibilityAPI&&f(this);var s=function(){o.changeLanguage(o.options.lng,function(e,i){o.emit("initialized",o.options),o.logger.log("initialized",o.options),t(e,i)})};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),this},t.prototype.loadResources=function(e){var t=this;if(e||(e=function(){}),this.options.resources)e(null);else{var i=function(){if(t.language&&"cimode"===t.language.toLowerCase())return{v:e()};var i=[],o=function(e){t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){i.indexOf(e)<0&&i.push(e)})};o(t.language),t.options.preload&&t.options.preload.forEach(function(e){o(e)}),t.services.cacheConnector.load(i,t.options.ns,function(){ t.services.backendConnector.load(i,t.options.ns,e)})}();if("object"===(void 0===i?"undefined":v.typeof(i)))return i.v}},t.prototype.use=function(e){return"backend"===e.type&&(this.modules.backend=e),"cache"===e.type&&(this.modules.cache=e),("logger"===e.type||e.log&&e.warn&&e.warn)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"postProcessor"===e.type&&S.addPostProcessor(e),this},t.prototype.changeLanguage=function(e,t){var i=this,o=function(o){e&&(i.emit("languageChanged",e),i.logger.log("languageChanged",e)),t&&t(o,function(){for(var e=arguments.length,t=Array(e),o=0;e>o;o++)t[o]=arguments[o];return i.t.apply(i,t)})};!e&&this.services.languageDetector&&(e=this.services.languageDetector.detect()),e&&(this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.translator.changeLanguage(e),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage(e)),this.loadResources(function(e){o(e)})},t.prototype.getFixedT=function(e,t){var i=this,o=function e(t,o){return o=o||{},o.lng=o.lng||e.lng,o.ns=o.ns||e.ns,i.t(t,o)};return o.lng=e,o.ns=t,o},t.prototype.t=function(){return this.translator&&this.translator.translate.apply(this.translator,arguments)},t.prototype.exists=function(){return this.translator&&this.translator.exists.apply(this.translator,arguments)},t.prototype.setDefaultNamespace=function(e){this.options.defaultNS=e},t.prototype.loadNamespaces=function(e,t){var i=this;return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){i.options.ns.indexOf(e)<0&&i.options.ns.push(e)}),void this.loadResources(t)):t&&t()},t.prototype.loadLanguages=function(e,t){"string"==typeof e&&(e=[e]);var i=this.options.preload||[],o=e.filter(function(e){return i.indexOf(e)<0});return o.length?(this.options.preload=i.concat(o),void this.loadResources(t)):t()},t.prototype.dir=function(e){return e||(e=this.language),["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"},t.prototype.createInstance=function(){return new t(arguments.length<=0||void 0===arguments[0]?{}:arguments[0],arguments[1])},t.prototype.cloneInstance=function(){var e=this,i=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],o=arguments[1],n=new t(v.extends({},i,this.options,{isClone:!0}),o);return["store","translator","services","language"].forEach(function(t){n[t]=e[t]}),n},t}(x))}),function(e,t){"use strict";var i="model",o="name",n="type",a="vendor",s="version",r="mobile",l="tablet",c={extend:function(e,t){var i={};for(var o in e)t[o]&&t[o].length%2==0?i[o]=t[o].concat(e[o]):i[o]=e[o];return i},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},u={rgx:function(e,t){for(var i,o,n,a,s,r,l=0;l0?2==a.length?"function"==typeof a[1]?this[a[0]]=a[1].call(this,r):this[a[0]]=a[1]:3==a.length?"function"!=typeof a[1]||a[1].exec&&a[1].test?this[a[0]]=r?r.replace(a[1],a[2]):void 0:this[a[0]]=r?a[1].call(this,r,a[2]):void 0:4==a.length&&(this[a[0]]=r?a[3].call(this,r.replace(a[1],a[2])):void 0):this[a]=r||void 0;l+=2}},str:function(e,t){for(var i in t)if("object"==typeof t[i]&&t[i].length>0){for(var o=0;o
Por favor, carregue em no canto superior direito e abra a ligação no Chrome.',"error_outdated-chrome-desktop":"Por favor atualize o Chrome para a última versão.","error_outdated-chrome-mobile":"Por favor atualize o Chrome para a última versão.","error_disabled-notifications-desktop_1":"As notificações estão desativadas.","error_disabled-notifications-desktop_2":"Por favor clique no icon à esquerda do URL e altere as permissões das Notificações.","error_disabled-notifications-mobile_1":"As notificações estão desativadas.","error_disabled-notifications-mobile_2":"Por favor clique no icon à esquerda do URL e altere as permissões das Notificações.","error_notifications-already-enabled_1":"As notificações já estão ativas, pode fechar esta janela.","error_notifications-already-enabled_2":"Se deseja desativar as notificações por favor clique no icon à esquerda do URL e altere as permissões das Notificações."}},en:{translation:{msg_wants_to_send_notifications:"wants to send notifications:",msg_mobile_notification_title:"Sample notification",msg_mobile_notification_message:"Will appear on your phone",msg_desktop_notification_title:"Sample notification",msg_desktop_notification_message:"Will appear on your computer",msg_opt_out:"(You can disable them at any time)",button_continue:"Continue",button_cancel:"Cancel",email_button_submit:"Submit",email_action_message:"Would you like to receibe our newsletter?",email_success_message:"Thank you!",email_no_thanks:"No thanks",email_also:"And also",error_ios:"Web Push Notifications are not supported by iOS.","error_not-chrome-desktop":"Web Push Notifications are not supported by your browser. Please install Chrome to get notifications.","error_not-chrome-Android":"Web Push Notifications are not supported by your browser. Please install Chrome to get notifications.","error_not-chrome-Android-facebook":"Web Push Notifications are not supported by your browser. Please install Chrome to get notifications.","error_outdated-chrome-desktop":"Please update your Chrome web browser to get notifications.","error_outdated-chrome-mobile":"Please update your Chrome web browser to get notifications.","error_disabled-notifications-desktop_1":"Notifications are currently disabled.","error_disabled-notifications-desktop_2":"Please click the icon left of the URL on the address bar of this window and set notification permissions to be allowed.","error_disabled-notifications-mobile_1":"Notifications are currently disabled.","error_disabled-notifications-mobile_2":"Please click the icon left of the URL on the address bar of this window and set notification permissions to be allowed.","error_notifications-already-enabled_1":"Notifications are already enabled, you may close this window.","error_notifications-already-enabled_2":"If you would like to unsubscribe from all notifications click the icon left of the URL on the address bar of this window and set notification permissions to be blocked."}},pl:{translation:{msg_wants_to_send_notifications:"chce wysyłać powiadomienia:",msg_mobile_notification_title:"Przykładowe powiadomienie",msg_mobile_notification_message:"Które pojawi się na ekranie Twojego telefonu",msg_desktop_notification_title:"Przykładowe powiadomienie",msg_desktop_notification_message:"Które pojawi się na ekranie Twojego komputera",msg_opt_out:"(Możesz wyłączyć powiadomienia w dowolnym momencie)",button_continue:"Continue",button_cancel:"Cancel",email_button_submit:"Submit",email_action_message:"Would you like to receibe our newsletter?",email_success_message:"Thank you!",email_no_thanks:"No thanks",email_also:"And also",error_ios:"Powiadomienia nie są dostępne dla iOS.","error_not-chrome-desktop":"Powiadomienia nie działają w Twojej przeglądarce. Zainstaluj Chrome, aby otrzymywać powiadomienia.","error_not-chrome-Android":"Powiadomienia nie działają w Twojej przeglądarce. Zainstaluj Chrome, aby otrzymywać powiadomienia.","error_not-chrome-Android-facebook":"Powiadomienia nie działają w Twojej przeglądarce. Zainstaluj Chrome, aby otrzymywać powiadomienia.","error_outdated-chrome-desktop":"Zaktualizuj przeglądarkę Chrome, aby otrzymywać powiadomienia.","error_outdated-chrome-mobile":"Zaktualizuj przeglądarkę Chrome, aby otrzymywać powiadomienia.","error_disabled-notifications-desktop_1":"Powiadomienia wyłączone","error_disabled-notifications-desktop_2":"Kliknij ikonkę z lewej story paska adresu, aby aktywować otrzymywanie powiadomień.","error_disabled-notifications-mobile_1":"Powiadomienia wyłączone.","error_disabled-notifications-mobile_2":"Kliknij ikonkę z lewej story paska adresu, aby aktywować otrzymywanie powiadomień.","error_notifications-already-enabled_1":"Powiadomienia włączone, możesz zamknąć to okno","error_notifications-already-enabled_2":"Jeśli chcesz zrezygnować z otrzymywania powiadomień, kliknij ikonkę z lewej strony paska adresu i wybierz opcję blokowania powiadomień."}},es:{translation:{msg_wants_to_send_notifications:"desea enviar notificaciones:",msg_mobile_notification_title:"Notificación de ejemplo",msg_mobile_notification_message:"Se mostrará en tu móvil",msg_desktop_notification_title:"Notificación de ejemplo",msg_desktop_notification_message:"Se mostrará en tu ordenador",msg_opt_out:"(Puedes desactivarlas en cualquier momento)",button_continue:"Continue",button_cancel:"Cancel",email_button_submit:"Submit",email_action_message:"Would you like to receibe our newsletter?",email_success_message:"Thank you!",email_no_thanks:"No thanks",email_also:"And also",error_ios:"Las Notificaciones Push Web no son compatibles con iOS.","error_not-chrome-desktop":"Las Notificaciones Push Web no son compatibles con tu navegador. Por favor, instala Chrome para recibir notificaciones.","error_not-chrome-Android":"Las Notificaciones Push Web no son compatibles con tu navegador. Por favor, instala Chrome para recibir notificaciones.","error_not-chrome-Android-facebook":"Las Notificaciones Push Web no son compatibles con tu navegador. Por favor, instala Chrome para recibir notificaciones.","error_outdated-chrome-desktop":"Por favor, actualiza tu navegador Chrome para recibir notificaciones.","error_outdated-chrome-mobile":"Por favor, actualiza tu navegador Chrome para recibir notificaciones.","error_disabled-notifications-desktop_1":"Las Notificaciones están desactivadas.","error_disabled-notifications-desktop_2":"Haz clic en el icono a la izquierda de la URL, en la barra de direcciones de esta ventana, y selecciona la opción que permite el envío de notificaciones.","error_disabled-notifications-mobile_1":"Las Notificaciones están desactivadas.","error_disabled-notifications-mobile_2":"Haz clic en el icono a la izquierda de la URL, en la barra de direcciones de esta ventana, y selecciona la opción que permite el envío de notificaciones.","error_notifications-already-enabled_1":"Las Notificaciones ya están activadas, puedes cerrar esta ventana.","error_notifications-already-enabled_2":"Si deseas desactivar todas las notificaciones, haz clic en el icono a la izquierda de la URL, en la barra de direcciones de esta ventana, y selecciona la opción que bloquea el envío de notificaciones."}}},PushnewsSubscription=PushnewsSubscription||[],debugMode=!1;const GEO_API_ENDPOINT="https://p.ca.engagement.coremedia.cloud/api/public/geolocation/7z2mkcK41CTmhbHKGRyrzlIum250VTGrpYok/";getParams().name&&(__config.site.name=getParams().name),getParams().domain&&(__config.site.domain=getParams().domain),getParams().appId&&(__config.onesignal.appId=getParams().appId),getParams().welcomeMessage&&""!==getParams().welcomeMessage&&(delete __config.onesignal.welcomeNotification.disable,__config.onesignal.welcomeNotification.message=getParams().welcomeMessage,getParams().welcomeTitle&&""!==getParams().welcomeTitle?__config.onesignal.welcomeNotification.title=getParams().welcomeTitle:__config.onesignal.welcomeNotification.title=__config.site.name,getParams().welcomeUrl&&""!==getParams().welcomeUrl&&(__config.onesignal.welcomeNotification.url=getParams().welcomeUrl)),getParams().lng&&(__config.lng=getParams().lng),getParams().origin&&(__config.site.origin=getParams().origin),requirejs.config({baseUrl:"/scripts"}),requirejs(["bower/i18next/i18next.min","bower/ua-parser-js/dist/ua-parser.min"],function(e,t){function i(e,t){var i=document.getElementById(e);null!==i&&"object"==typeof i&&(i.innerHTML=t)}function o(e,t){var i=e+"_"+t,o=document.getElementById("capture-email-form-pushnews-id");null!==o&&o.setAttribute("value",i);var n=document.getElementById("capture-email-form-app-id");null!==n&&n.setAttribute("value",e);var a=document.getElementById("capture-email-form-pushnewsapp-id");null!==a&&a.setAttribute("value",e)}function n(){return null!=navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i)}function a(e){switch(log("Error: "+e),document.getElementById("white-wrapper").style.zIndex="10",document.getElementById("white-wrapper").style.opacity=".75",document.getElementById("error-box").style.opacity="1",document.getElementById("error-box").style.display="block",document.getElementById(e).style.display="block",sendMessageToParentWindow({type:"error",data:{type:e}}),e){case"notifications-already-enabled":PushnewsSubscription.push(["getUserId",function(e){sendMessageToParentWindow({type:"newSubscription",data:{onesignal_id:e,gaTrackingEventAction:"PopupAllow"}}),rejectPrompt()}]);break;case"push-not-supported":a("not-chrome-desktop")}}function s(e,t){var i={},o=e.split(",");for(var n in o){var a=o[n].split(":");i[a[0]]=a[1]}if(!0===t){var s=new XMLHttpRequest;s.open("GET",GEO_API_ENDPOINT,!1),s.send(null);var r=JSON.parse(s.responseText);if("object"==typeof r){var l=r.payload.hasOwnProperty("countryCode")?r.payload.countryCode:null,c=r.payload.hasOwnProperty("country")?r.payload.country:null,u=r.payload.hasOwnProperty("regionCode")?r.payload.regionCode:null,d=r.payload.hasOwnProperty("region")?r.payload.region:null,p=r.payload.hasOwnProperty("city")?r.payload.city:null,f=r.payload.hasOwnProperty("zipcode")?r.payload.zipcode:null;null!==l&&(i.countryCode=l),null!==c&&(i.countryName=c),null!==u&&(i.stateCode=u),null!==d&&(i.stateName=d),null!==p&&(i.cityName=p),null!==f&&(i.zipCode=f)}}return i}var r=__config.site.name,l=__config.site.domain,c=!1,u=getParams().emailCapture;"string"!=typeof u||"1"!==u.trim()&&"true"!==u.trim()||(c=!0),document.title=l+" - Pushnews",1==getParams().debug&&(debugMode=!0,log("Debug Mode ON")),log(getParams()),e.init({debug:!1,lng:__config.lng,fallbackLng:"en",resources:__i18ntranslations}),i("mobile-directions",e.t("msg_wants_to_send_notifications")),i("mobile-notification-title",e.t("msg_mobile_notification_title")),i("mobile-notification-message",e.t("msg_mobile_notification_message")),i("desktop-notification-title",e.t("msg_desktop_notification_title")),i("desktop-notification-message",e.t("msg_desktop_notification_message")),i("mobile-opt-out",e.t("msg_opt_out")),i("ios",e.t("error_ios")),i("not-chrome-desktop",e.t("error_not-chrome-desktop")),i("not-chrome-Android",e.t("error_not-chrome-Android")),i("not-chrome-Android-facebook",e.t("error_not-chrome-Android-facebook")),i("outdated-chrome-desktop",e.t("error_outdated-chrome-desktop")),i("outdated-chrome-mobile",e.t("error_outdated-chrome-mobile")),i("disabled-notifications-desktop_1",e.t("error_disabled-notifications-desktop_1")),i("disabled-notifications-desktop_2",e.t("error_disabled-notifications-desktop_2")),i("disabled-notifications-mobile_1",e.t("error_disabled-notifications-mobile_1")),i("disabled-notifications-mobile_2",e.t("error_disabled-notifications-mobile_2")),i("notifications-already-enabled_1",e.t("error_notifications-already-enabled_1")),i("notifications-already-enabled_2",e.t("error_notifications-already-enabled_2")),i("desktop-notification-url",l),i("mobile-notification-url",l),i("global-button-continue",e.t("button_continue")),[].forEach.call(document.getElementsByClassName("domainName"),function(e){e.innerHTML=r}),getParams().siteLogo&&[].forEach.call(document.getElementsByClassName("siteLogo"),function(e){e.setAttribute("src",getParams().siteLogo)}),getParams().actionMessage&&i("mobile-directions",getParams().actionMessage),getParams().caption&&i("mobile-opt-out",getParams().caption),getParams().notificationIcon&&[].forEach.call(document.getElementsByClassName("notification-icon"),function(e){e.setAttribute("src",getParams().notificationIcon)}),getParams().notificationTitle&&[].forEach.call(document.getElementsByClassName("notification-title"),function(e){e.innerHTML=getParams().notificationTitle}),getParams().notificationMessage&&[].forEach.call(document.getElementsByClassName("notification-message"),function(e){e.innerHTML=getParams().notificationMessage}),getParams().iframe||function(t,i){var o=document.createElement("form");o.setAttribute("id","capture-email-form"),o.setAttribute("action","https://pushnews.ca.engagement.coremedia.cloud/api.php/directlead/87c818c5b03e75f997db246311defb1649ef9031"),o.setAttribute("method","POST"),o.setAttribute("data-smk-form","data-smk-form"),o.addEventListener("submit",function(t){t.preventDefault(),"undefined"!=typeof jic&&jic.repopulateForms();var i=new XMLHttpRequest;i.open(this.method,this.action,!0),i.send(new FormData(this)),i.onload=function(){var t=document.createElement("p");t.setAttribute("id","capture-email-success-message"),t.innerHTML=getParams().emailSuccessMessage?getParams().emailSuccessMessage:e.t("email_success_message"),o.replaceWith(t),sendMessageToParentWindow({type:"newPopupEmailCaptured",data:{email:d.value,campaignId:"pushmail_optinYes"}}),setTimeout(function(){rejectPrompt()},2e3)},i.onerror=function(){rejectPrompt()}});var n=document.createElement("div");n.setAttribute("id","capture-email-overlay"),n.style.visibility="hidden";var a=document.createElement("div");if(a.setAttribute("id","capture-email-container"),a.style.visibility="hidden",getParams().siteLogo){var s=document.createElement("img");s.setAttribute("src",getParams().siteLogo),a.appendChild(s)}var r=document.createElement("h2");r.innerHTML=getParams().name?getParams().name:e.t("email_also"),a.appendChild(r);var l=document.createElement("div");l.setAttribute("id","capture-email-box"),a.appendChild(l);var c=document.createElement("span") ;c.innerHTML=getParams().emailNoThanks?getParams().emailNoThanks:e.t("email_no_thanks"),c.setAttribute("onclick","window.close();"),a.appendChild(c);var u=document.createElement("p");u.innerHTML=getParams().emailActionMessage?getParams().emailActionMessage:e.t("email_action_message"),l.appendChild(u);var d=document.createElement("input");d.setAttribute("type","email"),d.setAttribute("required","required"),d.setAttribute("name","lead[email]"),d.setAttribute("placeholder","E-mail"),o.appendChild(d);var p=document.createElement("input");p.setAttribute("id","capture-email-form-app-id"),p.setAttribute("name","extra[app_id]"),p.setAttribute("type","hidden"),o.appendChild(p);var f=document.createElement("input");f.setAttribute("id","capture-email-form-pushnewsapp-id"),f.setAttribute("name","extra[pushnews_appid]"),f.setAttribute("type","hidden"),o.appendChild(f);var g=document.createElement("input");g.setAttribute("id","capture-email-form-pushnews-id"),g.setAttribute("name","extra[pushnews_id]"),g.setAttribute("type","hidden"),o.appendChild(g);var m=document.createElement("input");m.setAttribute("id","capture-identification-number-1"),m.setAttribute("name","lead[identification_number1]"),m.setAttribute("type","hidden"),m.setAttribute("value","push_notification_widget_popup"),o.appendChild(m);var h=document.createElement("input");h.setAttribute("id","capture-email-form-smk-duid"),h.setAttribute("name","lead[df_uid]"),h.setAttribute("type","hidden"),o.appendChild(h);var b=document.createElement("button");b.innerHTML=getParams().emailButtonSubmit?getParams().emailButtonSubmit:e.t("email_button_submit"),o.appendChild(b),l.appendChild(o),document.body.appendChild(n),document.body.appendChild(a),setTimeout(function(){n.style.opacity=.95},250),setTimeout(function(){a.style.opacity=.95},250)}(),"bg"!==getParams().theme&&"boxbg"!==getParams().theme||(getParams().themeBackground&&[].forEach.call(document.getElementsByTagName("html"),function(e){e.style.backgroundImage="url("+getParams().themeBackground+")"}),[].forEach.call(document.getElementsByClassName("siteLogo"),function(e){e.setAttribute("src",getParams().themeLogo?getParams().themeLogo:getParams().notificationIcon)}),[].forEach.call(document.getElementsByClassName("themeText1"),function(e){e.innerHTML=getParams().themeText1?getParams().themeText1:getParams().actionMessage,getParams().themeTextColor&&(e.style.color=getParams().themeTextColor)}),[].forEach.call(document.getElementsByClassName("themeText2"),function(e){e.innerHTML=getParams().themeText2?getParams().themeText2:getParams().name,getParams().themeTextColor&&(e.style.color=getParams().themeTextColor)}),[].forEach.call(document.getElementsByClassName("themeText3"),function(e){e.innerHTML=getParams().themeText3?getParams().themeText3:getParams().caption,getParams().themeTextColor&&(e.style.color=getParams().themeTextColor)}),getParams().themeBoxColor&&(null!==document.getElementById("inner-box")&&(document.getElementById("inner-box").style.backgroundColor=getParams().themeBoxColor),null!==document.getElementById("triangle-up")&&(document.getElementById("triangle-up").style.borderBottomColor=getParams().themeBoxColor,document.getElementById("triangle-up").style.borderTopColor=getParams().themeBoxColor)));var d={appId:__config.onesignal.appId};if(1==getParams().disablePermissionRequest)log("Not requesting push notifications permission (disablePermissionRequest=1)");else{if(getParams().iframe){log("pushnewsSubscriptionConfig",d),PushnewsSubscription.push(["init",d]);var p=getParams().tags,f=s(p);return void PushnewsSubscription.push(function(){PushnewsSubscription.sendTags(f).then(function(){log("Tags were sent")})})}d.autoRegister=!1,d.welcomeNotification=__config.onesignal.welcomeNotification,log("pushnewsSubscriptionConfig",d),PushnewsSubscription.push(["init",d]);var p=getParams().tags;PushnewsSubscription.push(function(){PushnewsSubscription.isPushSupported()?"granted"===Notification.permission?(a("notifications-already-enabled"),rejectPrompt()):(PushnewsSubscription.registerForPushNotifications(),PushnewsSubscription.on(PushnewsSubscription.EVENTS.subscriptionChange,function(e){if(e){var t=s(p,!0);PushnewsSubscription.sendTags(t);var i=PushnewsSubscription.getUserId();sendMessageToParentWindow({type:"newSubscription",data:{onesignal_id:i,gaTrackingEventAction:"PopupAllow"}}),!0===c?(o(__config.onesignal.appId,i),showCaptureEmail()):rejectPrompt()}}),PushnewsSubscription.on(PushnewsSubscription.EVENTS.notificationPermissionChange,function(e){sendMessageToParentWindow({type:"notificationPermissionChange",data:{currentPermission:e.to}}),"denied"===e.to&&(log(),rejectPrompt())})):a("push-not-supported")})}null!==document.getElementById("global-button-continue")&&document.getElementById("global-button-continue").addEventListener("click",function(){PushnewsSubscription.push(["registerForPushNotifications"])}),n()?(null!==document.getElementById("desktop-notification")&&(document.getElementById("desktop-notification").style.display="none"),null!==document.getElementById("mobile-notification")&&(document.getElementById("mobile-notification").style.display="block")):(null!==document.getElementById("mobile-notification")&&(document.getElementById("mobile-notification").style.display="none"),null!==document.getElementById("desktop-notification")&&(document.getElementById("desktop-notification").style.display="block"));var g=new t,m=g.getResult(),h=m.browser.name,b=m.browser.version,y=m.os.name;m.engine.name;PushnewsSubscription.isPushSupported()||("iOS"===y?a("ios"):"Chrome"!==h?a("Android"===y?"Facebook"===h?"not-chrome-Android-facebook":"not-chrome-Android":"not-chrome-desktop"):parseInt(b.substring(0,2))<42&&a(n()?"outdated-chrome-mobile":"outdated-chrome-desktop"))}),window.addEventListener("message",function(e){var t=e.data;e.origin.replace("https://","").replace("http://","");if("sendPushNotification"===t.type){var i=t.message,o=i.title,n=i.body,a=i.url,s=i.hasOwnProperty("icon")?i.icon:"https://icons.pn.vg/default_images/pushnews-pushicon-128-red.png";PushnewsSubscription.push(function(){PushnewsSubscription.sendSelfNotification(o,n,a,s)})}}),define("pushnews",function(){});