const copernica = (function() {
const $=function(){const e=Symbol("elements"),t=new WeakMap;class n{constructor(t){this[e]=t}get length(){return this[e].length}get(t){return void 0===t?Array.from(this[e]):t<0||t>=this[e].length?void 0:this[e][t]}each(t){return this[e].forEach((e,n)=>{t.call(e,n,e)}),this}forEach(t){return this[e].forEach((e,n)=>{t(e,n)}),this}map(t){return this[e].map((e,n)=>t(e,n))}attr(t,n){return void 0===n?this[e][0]?this[e][0].getAttribute(t):void 0:this.forEach(e=>e.setAttribute(t,n))}find(t){return new n(this[e].map(e=>Array.from(e.querySelectorAll(t))).flat())}addClass(e){return this.forEach(t=>t.classList.add(e))}hasClass(t){return this[e].some(e=>e.classList.contains(t))}removeClass(e){return this.forEach(t=>t.classList.remove(e))}toggleClass(e,t){return void 0===t?this.forEach(t=>t.classList.toggle(e)):t?this.addClass(e):this.removeClass(e)}css(t,n){return void 0===t?this[e][0]?getComputedStyle(this[e][0]):void 0:"string"==typeof t&&void 0===n?this[e][0]?getComputedStyle(this[e][0])[t]:void 0:"string"==typeof t&&void 0!==n?this.forEach(e=>e.style[t]=n):"object"==typeof t?this.forEach(e=>Object.entries(t).forEach(([t,n])=>e.style[t]=n)):this}prepend(t){return this.forEach((n,o)=>{const r=0===o?t[e]:t.clone(!0)[e];n.prepend(...r)})}append(e){return this.forEach((t,n)=>{0==n?e.forEach(e=>t.appendChild(e)):e.clone(!0).forEach(e=>t.appendChild(e))})}appendTo(e){return e.append(this),this}html(t){return void 0===t?this[e][0]?this[e][0].innerHTML:void 0:this.forEach(e=>e.innerHTML=t)}text(t){return void 0===t?this[e][0]?this[e][0].textContent:void 0:this.forEach(e=>e.textContent=t)}clone(o){const r=(e,n)=>{const o=t.get(e);o&&o.forEach((e,t)=>e.forEach(e=>$(n).on(t,e)));for(let t=0;t<e.children.length;++t)r(e.children[t],n.children[t])};return new n(this[e].map(e=>{const t=e.cloneNode(!0);return o&&r(e,t),t}))}remove(){return this.forEach(e=>e.remove())}empty(){return this.forEach(e=>e.innerHTML="")}on(e,n){return this.forEach(o=>{o.addEventListener(e,n),t.has(o)||t.set(o,new Map);const r=t.get(o);r.has(e)||r.set(e,new Set),r.get(e).add(n)})}one(e,t){return this.forEach(n=>{const o=function(r){$(n).off(e,o),t.call(this,r)};$(n).on(e,o)})}off(e,n){return this.forEach(o=>{const r=t.get(o);if(!r)return;if(void 0===e)return r.forEach((e,t)=>{e.forEach(e=>o.removeEventListener(t,e))}),void t.delete(o);const i=r.get(e);i&&(void 0===n?(i.forEach(t=>{o.removeEventListener(e,t)}),i.clear()):(o.removeEventListener(e,n),i.delete(n)),i.size>0||(1!=r.size?r.delete(e):t.delete(o)))})}attachShadow(t="open"){return new n("open"!==t&&"closed"!==t?[]:this[e].map(e=>{if(!(e instanceof HTMLElement))return null;if(e.shadowRoot)return e.shadowRoot;try{return e.attachShadow({mode:t})}catch(e){return null}}).filter(Boolean))}val(t){return void 0===t?this[e][0]?this[e][0].value:void 0:this.forEach(e=>e.value=t)}}return function(e){if(e instanceof n)return e;if(e instanceof Element)return new n([e]);if(e===window||e===document)return new n([e]);if(Array.isArray(e)||e instanceof NodeList)return new n(Array.from(e));if("string"!=typeof e)return new n([]);if(!/^<\s*\w+.*?>/.test(e.trim()))return new n(Array.from(document.querySelectorAll(e)));const t=document.createElement("template");return t.innerHTML=e.trim(),new n(Array.from(t.content.childNodes).filter(e=>1===e.nodeType))}}(),http=function(){const e="39f64a9990e7f9be2d22747039043e01",t=127,n="v3",o="https:\/\/sdk.copernica.com\/",r=(r,i)=>{const s=(()=>{const[o,i]=r.split("/",2);return i?n+"/"+o+"/"+t+"/"+e+"/"+i:n+"/"+o+"/"+t+"/"+e})();if(void 0===i)return o+s;const c=new URL(o+s);return Object.entries(i).forEach(([e,t])=>void c.searchParams.append(e,t)),c.toString()};let i=null;const s=function(){const e=new Set;return{add:t=>e.add(t),remove:t=>e.delete(t),notify:t=>e.forEach(e=>e(t))}}();s.add(e=>{"identify"==e.cmd&&localStorage.removeItem("copses"),"welcome"==e.cmd&&e.identifier&&localStorage.setItem("copses",e.identifier)});const c=e=>{const t={};e&&(t["Content-Type"]="application/json");const n=localStorage.getItem("copses");return n&&(t["X-Copses"]=n),t},a=(e,t,n)=>fetch(t,{method:e,credentials:"include",body:void 0!==n?JSON.stringify(n):null,headers:c(void 0!==n)}).then(e=>e.text().then(t=>{if(!e.ok)throw new Error(`Request failed with status ${e.status}: ${t}`);e.headers.has("x-copses")&&localStorage.setItem("copses",e.headers.get("x-copses"));const n=(e.headers.get("content-type")||"").includes("application/json")?JSON.parse(t):t;return{code:e.status,status:e.ok?"success":"failure",message:n}})),d=r=>new Promise(function(c,a){if((!i||i.readyState>1)&&(i=(r=>{const i=new WebSocket((o+n+"/"+t+"/"+e+"/"+n).replace(/^https/,"wss")),c=i.send.bind(i);return i.send=(e=>c("string"==typeof e?e:JSON.stringify(e))),i.addEventListener("message",e=>s.notify(JSON.parse(e.data))),i.addEventListener("open",()=>i.send(JSON.stringify({cmd:"hello",id:localStorage.getItem("copses"),url:r})),{once:!0}),i})(r)),i.readyState==WebSocket.OPEN)return c(i);i.addEventListener("error",a,{once:!0}),i.addEventListener("open",e=>c(e.target),{once:!0})}),l=(e,t)=>e.read().then(({done:n,value:o})=>{if(n)return;const r=t.decode(o,{stream:!0});if(!r.length)return l(e,t);try{const e=JSON.parse(r);s.notify(e)}catch(e){}return l(e,t)}),u=r=>new Promise(function(a,u){i&&i.close();const p=e=>{"welcome"==e.cmd&&(s.remove(p),clearTimeout(h),a())},h=setTimeout(function(){s.remove(p),u()},1e4);var f;s.add(p),d(r).catch(()=>{f={url:r},fetch(o+n+"/"+t+"/"+e+"/"+n,{method:"POST",credentials:"include",body:void 0!==f?JSON.stringify(f):null,headers:Object.assign({"X-Stream":!0},c(void 0!==f))}).then(e=>{if(!e.ok)throw new Error(`Request failed with status ${e.status}`);const t=e.body.getReader(),n=new TextDecoder;l(t,n)})})});return{get:(e,t)=>a("GET",r(e,t)),post:(e,t)=>a("POST",r(e),t),put:(e,t)=>a("PUT",r(e),t),delete:(e,t)=>a("DELETE",r(e),t),ws:e=>d().then(e),subscribe:e=>void s.add(e),unsubscribe:e=>void s.remove(e),verify:e=>u(e)}}(),scrape=function(){const e=['meta[property="og:type"]','meta[property="og:title"]','meta[property="og:image"]','meta[property="og:description"]','meta[name="robots"]','meta[name="keywords"]','meta[name="description"]'];return function(){const t=e.flatMap(e=>$(e).map(e=>e.outerHTML)),n=$('script[type="application/ld+json"]').map(e=>$(e).html()),o=$('link[rel="canonical"]').map(e=>$(e).attr("href"));return{title:document.title,ldScripts:n,canonicalUrls:o,metaTags:t}}}(),tracker=function(){let e=null;const t=()=>{const e=document.cookie.split(";").find(e=>e.trim().startsWith("copernica_tracking="));return e?"on"===e.split("=")[1]:true},n=e=>{Boolean(t())!=Boolean(e)&&(document.cookie=`copernica_tracking=${e?"on":"off"}; path=/; max-age=31536000;`,e&&!o&&s({}))},o=()=>e||(e=http.post("hi",{url:document.location.toString()}).then(()=>http.verify(document.location.toString())));http.subscribe(t=>{"identify"==t.cmd&&(e=null,o())});const r=(e,n)=>t()?o().then(()=>http.ws().then(t=>{t.send(Object.assign({cmd:e},n))}).catch(()=>http.post(e,n))):Promise.reject("tracking disabled"),i=(e,n)=>t()?o().then(()=>http.post(e,n)):Promise.reject("tracking disabled"),s=e=>r("pageview",Object.assign({url:document.location.toString()},scrape(),e));return t()&&s({}),{enabled:t,enable:e=>n(void 0===e||e),disable:()=>n(!1),send:r,post:i,identify:e=>i("identify",{token:e}).then(e=>!0),trigger:(e,t)=>r("trigger",Object.assign({event:e},t)),pageview:s}}(),checkpush=function(){const e=function(){this.send=((e,t)=>((e,t)=>http.post("push-notification",{title:e,body:t}))(e,t))};return function(){return http.get("push-subscribed").then(t=>t.message?new e:Promise.reject({code:"NOT_FOUND",type:"SubscriptionError",reason:"Not subscription found"}),()=>Promise.reject({code:"SUBSCRIPTION_REQUEST_FAILED",type:"RetrievalError",reason:"Error retrieving subscription information"}))}}(),form=function(){if(!document.querySelector('script[src="https://www.google.com/recaptcha/api.js"]')){const e=document.createElement("script");e.src="https://www.google.com/recaptcha/api.js",e.async=!0,e.defer=!0,document.head.appendChild(e)}const e={default:["helloworld","sliding-box-1"],loaded:[]},t=t=>http.get("html/"+t).then(o=>((t=>e.loaded.includes(t)?Promise.resolve():http.get("css/"+t).then(n=>{const o=document.createElement("style");o.textContent=n.message,document.head.appendChild(o),e.loaded.push(t)}))(t),new n(o.message))),n=function(t,n){const o=$("<div>");let r,i=0;const s=t.pages.map(e=>$("<div>").html(e.code));let c={};this.attachTo=((n,r)=>{const i=Object.assign({delay:0},r);return new Promise(function(r,s){setTimeout(()=>{n instanceof HTMLElement?$(n).append(o):n.append(o),e.default.includes(t.name)&&(e=>http.get("js/"+e).then(e=>{const t=document.createElement("script");t.type="text/javascript",t.text=e.message,document.head.appendChild(t)}))(t.name),a("attachTo"),r(this)},1e3*i.delay)})}),this.popover=(e=>{const n=Object.assign({delay:0},e);return new Promise(function(e,i){r&&r.destroy(),setTimeout(()=>{r=ui.popover(Object.assign({html:o,css:t.style},n)),a("popover"),e(this)},1e3*n.delay)})}),this.hide=(()=>(r?r.hide():o.css("display","none"),this)),this.show=(()=>(r?r.show():o.css("display","block"),this));const a=e=>tracker.send("form-display",{webform:t.name,data:{url:document.location.toString(),display:e}});this.page=(e=>{if(e<0||e>=t.pages.length)return this;o.empty().append(s[e]);const n=o.find("form");n.off("submit").on("submit",e=>{e.preventDefault(),this.submit()}),n.off("click").on("click",e=>{const t=e.target.closest("button[data-action]");if(t)switch(t.dataset.action){case"submit":this.submit();break;case"back":this.back()}});const r=n.find("div.date-element");return r.length>0&&r.forEach(e=>(e=>{const t=e.find('input[type="text"]'),n=e.find('input[type="date"]');0!==t.length&&0!==n.length&&(t.off("click").on("click",()=>{const e=n.get(0);e.showPicker?e.showPicker():e.click()}),n.off("change").on("change",()=>{if(!n.val())return void t.val("");const e=t.get(0).dataset.format,[o,r,i]=n.val().trim().split("-");t.val(e.replace("dd",i).replace("mm",r).replace("yyyy",o))}))})($(e))),i=e,this}),this.back=(()=>(i>0&&this.page(i-1),this)),this.data=(()=>{const e=new FormData(o.find("form").get(0));return Object.fromEntries(e.entries())}),this.validate=(()=>{const e=o.find("form").get(0);return e instanceof HTMLFormElement?e.reportValidity()?Promise.resolve(this):Promise.reject("Validation failed"):Promise.reject("Invalid form element")});const d=e=>{const o=this.data(),r=t.pages[i];return this.validate().then(()=>(c=Object.assign(c,o),tracker.send("form-submit",{webform:t.name,token:e||null,page:r.id,final:r.final,data:{url:document.location.toString(),event:n?n.event:void 0,box:n?n.box:void 0},pagefields:o,formfields:c}),i+1<t.pages.length?this.page(i+1):this.hide().page(0)))};this.submit=(()=>null==this.data()?Promise.reject("Form not found"):t.sitekey?(()=>{const e=$("<div>").attr("id","recaptcha-invisible-container").appendTo($("body"));return new Promise((n,o)=>{const r=grecaptcha.render(e.get(0),{sitekey:t.sitekey,size:"invisible",callback:t=>{d(t).then(e=>{n(e)}).catch(e=>{o(e)}).finally(()=>{e.remove()})}});grecaptcha.execute(r)})})():d()),this.page(0)};return function(o,r){return e.default.includes(o)?t(o):http.get("form",{name:o}).then(e=>new n(e.message,r))}}();http.subscribe(e=>{"webform"==e.cmd&&form(e.webform,{event:e.event,boxId:e.box}).then(t=>{switch(e.display){case"popover":return t.popover(e.options);case"attach":return t.attachTo(document.querySelector(e.selector));default:console.warn("unknown webform display action",e)}})}),http.subscribe(instruction=>{if("script"==instruction.cmd)try{return eval(instruction.script)}catch(e){console.warn("Script execution failed: ",e)}});const personalize=function(e){return http.post("personalize",e)},profile=function(){const e=e=>http.put("profile-fields",{fields:e}),t=(e,t)=>"object"==typeof t?http.post("subprofile",{collection:e,fields:t}).then(e=>new SubProfile(e.message)):void 0===t?http.get("subprofile",{id:e}).then(e=>new SubProfile(e.message)):"number"==typeof t?http.get("subprofile",{target:e,id:t}).then(e=>new SubProfile(e.message)):void 0,n=e=>http.get("subprofiles",{target:e}).then(e=>new SubProfileCollection(e.message)),o=e=>http.put("profile-interests",{interests:e}),r=()=>http.delete("profile"),i=function(){return http.get("profile").then(i=>new function(i){this.fields=(t=>void 0===t?i.fields:e(t)),this.interests=(e=>void 0===e?i.interests:o(e)),this.remove=(()=>r()),this.subprofile=((e,n)=>t(e,n)),this.subprofiles=(e=>n(e))}(i.message))};return i.fields=function(t){return void 0===t?i().then(e=>e.fields()):e(t)},i.interests=function(e){return void 0===e?i().then(e=>e.interests()):o(e)},i.remove=function(){return r()},i.subprofile=((e,n)=>t(e,n)),i.subprofiles=(e=>n(e)),i}(),requestpush=function(){const e=function(){this.send=((e,t)=>((e,t)=>http.post("push-notification",{title:e,body:t}))(e,t))};return function(t){return Notification.requestPermission().then(n=>"granted"!==n?Promise.reject({code:"NOTIFICATION_PERMISSION_DENIED",type:"PermissionError",reason:"Notification permission denied"}):t&&t.length?http.get("push-key").then(n=>{return(e=>new Promise(function(t,n){if(!navigator.serviceWorker)return n({code:"SERVICE_WORKER_NOT_SUPPORTED",type:"RegistrationError",reason:"Service workers are not supported in this browser."});navigator.serviceWorker.getRegistration(e,{scope:"/"}).then(o=>{if(o)return t(o);navigator.serviceWorker.register(e,{scope:"/"}).then(()=>t,e=>n({code:"SERVICE_WORKER_REGISTRATION_FAILED",type:"RegistrationError",reason:e.message||"Failed to register service worker"}))},e=>n({code:"SERVICE_WORKER_REGISTRATION_FAILED",type:"RegistrationError",reason:e.message||"Failed to fetch service worker registration"}))}))(t).then(t=>{const o=(e=>{const t=(e+"=".repeat((4-e.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),n=window.atob(t);return new Uint8Array([...n].map(e=>e.charCodeAt(0)))})(n.message);return t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:o}).then(t=>(t=>{const n=t.getKey("p256dh"),o=t.getKey("auth"),r=n?btoa(String.fromCharCode.apply(null,new Uint8Array(n))):null,i=o?btoa(String.fromCharCode.apply(null,new Uint8Array(o))):null;return http.post("subscribe-notifications",{token:i,key:r,endpoint:t.endpoint,url:document.location.toString()}).then(()=>new e,e=>Promise.reject({code:"SUBSCRIPTION_FAILED",type:"SubscriptionError",reason:e.message||"Failed to subscribe for push notifications"}))})(t),e=>Promise.reject({code:"SUBSCRIPTION_FAILED",type:"SubscriptionError",reason:e.message||"Failed to subscribe for push notifications"}))})}):Promise.reject({code:"INVALID_SERVICE_WORKER_PATH",type:"ConfigurationError",reason:"Invalid service worker path"}),e=>Promise.reject({code:"PERMISSION_REQUEST_FAILED",type:"PermissionError",reason:"string"==typeof e?e:e.message||"Unknown error occurred"}))}}(),updateFields=e=>http.put("subprofile-fields",{fields:e}),remove=e=>void 0!==e?http.delete("subprofile",{id:e}):http.delete("subprofile"),SubProfileCollection=function(e){const t={[Symbol.iterator](){const t=Object.keys(e);let n=0;return{next(){if(n<t.length){const o=t[n++];return{value:new SubProfile(e[o]),done:!1}}return{done:!0}}}}};return new Proxy(t,{get:(n,o)=>"symbol"==typeof o?n[o]:isNaN(o)?Array.prototype.hasOwnProperty(o)?(...e)=>Array.from(t)[o](...e):null:e.hasOwnProperty(o)?new SubProfile(e[o]):null})},SubProfile=function(e){this.fields=(t=>void 0===t?e.fields:updateFields(t)),this.remove=(()=>remove(e.id))},subprofile=function(){const e=function(){return http.get("subprofile").then(e=>new SubProfile(e.message))};return e.fields=function(t){return void 0===t?e().then(e=>e.fields()):updateFields(t)},e.remove=function(){return remove()},e}();(()=>{const e=e=>{if(!e.getAttribute("data-copernica"))return;const t=e.getAttribute("data-copernica").split(".");3==t.length&&["profile","subprofile"].includes(t[0])&&("subprofile"==t[0]&&"field"!=t[1]||("profile"!=t[0]||["field","interest"].includes(t[1]))&&("field"==t[1]&&e.value||("profile"==t[0]?profile():subprofile()).then(n=>{"interest"==t[1]&&n.interests().includes(t[2])&&"checkbox"===e.type&&(e.checked=!0),"field"==t[1]&&n.fields()[t[2]]&&(e.value=n.fields()[t[2]])})))};document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll("input[data-copernica]").forEach(t=>{e(t)}),new MutationObserver(t=>{for(const n of t)"attributes"===n.type&&e(n.target),"childList"===n.type&&n.addedNodes.forEach(t=>{1===t.nodeType&&("INPUT"===t.nodeName&&e(t),t.querySelectorAll("input[data-copernica]").forEach(t=>{e(t)}))})}).observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-copernica"]})}),document.querySelectorAll("input[data-copernica]").forEach(t=>{e(t)})})(),(()=>{const e=(e,t,n)=>{const o=e.submit.bind(e);e.addEventListener(t,t=>{t.preventDefault(),function(){const t=new FormData(e),r=Object.fromEntries(t.entries());e.querySelectorAll("[copernica-name]").forEach(e=>{const t=e.getAttribute("name"),n=e.getAttribute("copernica-name");t&&n&&r[t]&&t!=n&&(r[n]=r[t],delete r[t])}),tracker.trigger(n,r).finally(()=>{o()})}()})},t=t=>{const n=t.getAttribute("copernica-intercept");if(!n||!n.includes(":"))return;const[o,r]=n.split(":");"submit"==o&&o&&r&&e(t,o,r)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll("form[copernica-intercept]").forEach(e=>{t(e)})}):document.querySelectorAll("form[copernica-intercept]").forEach(e=>{t(e)})})();const ui=function(){const e=new Map,t=t=>{if(e.has(t+".css"))return e.get(t+".css");const n=http.get("css/"+t);return n.then(e=>$("<style>").text(e.message).appendTo($("head")),n=>{e.delete(t+".css")}),e.set(t+".css",n),n},n=function(){let e=0,o=null;const r=o=>(()=>t("copernica-ui-overlay").then(()=>{const e=$("div.copernica-ui-overlay");return e.length>0?e:$("<div>").addClass("copernica-ui-overlay").appendTo($("body"))}))().then(t=>new Promise(r=>{const i=()=>{0==e&&t.remove(),r(n)},s=setTimeout(i,1e3);t.toggleClass("copernica-ui-overlay-show",o).one("transitionend",e=>{clearTimeout(s),i()})}));return new class{toggle(t){return t||void 0===enabled&&0==e?this.show():this.hide()}show(){return 0==e++&&(o=r(!0)),o}hide(){return--e>0?Promise.resolve(n):o=r(!1)}}}();return{popover:function(e){const n=Object.assign({},{position:"center",overlay:!0,html:"This is the <b>content</b> for the popover."},e),o="copernica-ui-popover",r=$("<div>").addClass(o.concat("-content")).addClass(o.concat("-").concat(n.position)),i=$("<div>").addClass(o).append(r).on("click",e=>e.stopPropagation()),s=$("<span>").addClass("copernica-ui-close-button").appendTo(r),c=$("<div>").addClass(o.concat("-scrollable")).appendTo(r).attachShadow("open");n.css&&c.prepend($("<style>").text(n.css)),"string"==typeof n.html?c.html(n.html):c.append(n.html);const a=Symbol("clickhandler"),d=Symbol("escapehandler"),l=t(o).then(()=>i.appendTo($("body")));return new class{constructor(){var e,t;this[a]=(e=>this.destroy()),this[d]=(t=>(e=this,t=t,void("Escape"===t.key&&e.destroy()))),setTimeout(()=>this.show(),500)}toggle(e){const t=o.concat("-show"),r=i.hasClass(t);return void 0===e&&(e=!r),r==e?l.then(e=>this):($(document)[e?"on":"off"]("keydown",this[d]),s[e?"on":"off"]("click",this[a]),new Promise(r=>{const s=()=>{e?l.then(e=>r(this)):r(this)},c=setTimeout(()=>s(),1e3);i.toggleClass(t,e).one("transitionend",e=>{clearTimeout(c),s()}),n.overlay&&i.toggleClass(o.concat("-overlay"),e)}))}show(){return this.toggle(!0)}hide(){return this.toggle(!1)}destroy(){return this.hide().then(()=>(i.remove(),this))}}},slide:function(e){e=Object.assign({},{position:"right",overlay:!0,html:"<h4>This is a slide</h4><p>This is the content for the slide.</p>"},e),t("copernica-ui-slide");const o=document.createElement("div");o.classList.add("copernica-ui-slide"),o.innerHTML=e.html,document.body.appendChild(o),o.classList.add("copernica-ui-slide-"+e.position);const r=t=>{e.overlay&&n.hide(),o.classList.remove("copernica-ui-slide-show"),o.addEventListener("transitionend",()=>{try{document.body.removeChild(o),document.removeEventListener(t.type,r)}catch(e){}})};document.addEventListener("click",r),o.addEventListener("click",function(e){e.stopPropagation()}),e.overlay&&n.show(),o.classList.add("copernica-ui-slide-show")},action:function(e){e=Object.assign({},{position:"bottom-right",forced:!0,action:"to-be-decided",button:{icon:"gift",title:"Claim your gift",style:"copernica-ui-action-style-1"},html:null},e),t("copernica-ui-action");const o=document.createElement("div");if(o.classList.add("copernica-ui-action"),o.classList.add("copernica-ui-action-"+e.position),e.html)o.innerHTML=e.html;else{const t=document.createElement("button");t.classList.add("copernica-ui-action-button"),t.classList.add(e.button.style),t.innerHTML='<i class="fa fa-'+e.button.icon+'"></i> ',t.innerHTML+=e.button.title,t.addEventListener("click",function(t){window.open("https://ms.copernica.com","_blank"),e.forced&&n.hide()}),o.appendChild(t)}document.body.appendChild(o);e.forced&&n.show(),o.classList.add("copernica-ui-action-show")},hello:function(){$("<div>").html("<h2>Hello World</h2>").appendTo($("body"))}}}();return{form:form,profile:profile,subprofile:subprofile,pageview:tracker.pageview,trigger:tracker.trigger,enable:tracker.enable,disable:tracker.disable,requestpush:requestpush,checkpush:checkpush,ui:ui,identify:tracker.identify,personalize:personalize};

})();
