neonewint.com
Open in
urlscan Pro
198.251.84.200
Public Scan
URL:
https://neonewint.com/cdn.weglot.com/weglot.min.js
Submission: On November 21 via api from US — Scanned from DE
Submission: On November 21 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
var Weglot=function(d,b){"use strict";d=d&&d.hasOwnProperty("default")?d.default:d,b=b&&b.hasOwnProperty("default")?b.default:b;var t=[],e=["ABBR","ACRONYM","B","BDO","BIG","CITE","EM","I","KBD","Q","SMALL","STRONG","SUB","SUP","U"],n=["A","BDI","BR","DEL","DFN","INS","S","SPAN"],r={v1:t,v2:e,v3:n},a=Object.freeze({v1:t,v2:e,v3:n,default:r}),o=a?r:a;o.v2.unshift("#text");var i=o,p={excluded_blocks:[],translate_images:!0,extra_definitions:[],translation_engine:2,noTranslateAttribute:"data-wg-notranslate",mergeNodes:[]};function s(n){return{get:function(t){return t.getAttribute(n)},set:function(t,e){t.setAttribute(n,e)}}}var h=[];h.push({type:1,selectors:["[title]"],attribute:s("title")},{type:2,selectors:["input[type='submit']","input[type='button']","button"],attribute:s("value")},{type:3,selectors:["input[placeholder]","textarea[placeholder]"],attribute:s("placeholder")},{type:4,selectors:["meta[name='description']","meta[property='og:title']","meta[property='og:description']","meta[property='og:site_name']","meta[property='og:image:alt']","meta[name='twitter:title']","meta[name='twitter:description']","meta[itemprop='description']","meta[itemprop='name']"],attribute:s("content")},{type:5,selectors:["youtube.com","youtu.be","vimeo.com","dailymotion.com"].map(function(t){return"iframe[src*='"+t+"']"}),attribute:s("src")},{type:7,selectors:["img"],attribute:s("alt")},{type:8,selectors:["[href$='.pdf']","[href$='.docx']","[href$='.doc']"],attribute:s("href")}),p&&p.translate_images&&(h.push({type:6,selectors:["img:not([src*='data:image'])"],attribute:{get:function(t){var e=t.src?t.src.split("?"):"";return e[1]&&(t.queryString=e[1]),e[0]},set:function(t,e,n){if(e===n){if(t.removeAttribute("data-wgtranslated"),t.isChanged){var r=t.queryString?"?"+t.queryString:"";t.src=e+r,t.hasAttribute("wgsrcset")&&(t.srcset=t.getAttribute("wgsrcset")||t.dataset.srcset,t.removeAttribute("wgsrcset"))}}else t.src.split("?")[0]!==e&&n!==e&&(t.src=e,t.hasAttribute("srcset")&&(t.setAttribute("wgsrcset",t.srcset),t.srcset=""),t.dataset.wgtranslated=!0,t.isChanged=!0)}}}),h.push({type:6,selectors:["meta[property='og:image']","meta[property='og:logo']"],attribute:s("content")}));var u=new WeakMap,c=new WeakMap,l=new WeakMap,f=new WeakMap,g=new WeakMap;function m(t,e,n){if(t.has(e)){var r=t.get(e),a=r.result;if(r.textContent===e.textContent)return a}var o=n(e);return e&&t.set(e,{result:o,textContent:e.textContent}),o}function v(t){return m(u,t,function(t){return t&&y(t)&&function r(t){return m(l,t,function(t){if(!t.childNodes)return!0;for(var e=0;e<t.childNodes.length;e++){var n=t.childNodes[e];if(1===n.nodeType&&!r(n)||!w(n))return!1}return!0})}(t)&&!m(f,t,function(t){return 1===t.nodeType&&!!t.querySelector("["+p.noTranslateAttribute+"]")})})}function y(t,e){return void 0===e&&(e=!0),m(c,t,function(t){return!(!t.textContent||e&&!t.textContent.trim()||-1!==t.textContent.indexOf("BESbswy")||t.parentNode&&t.parentNode.nodeName&&-1!==["script","style","noscript"].indexOf(t.parentNode.nodeName.toLowerCase())||function(t){if(!(t=t.trim()))return;var e=t.charAt(0);if("["!==e&&"{"!==e)return;var n=t[t.length-1];return("]"===n||"}"===n)&&(t=t.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""),/^[\],:{}\s]*$/.test(t))}(t.textContent))})}function w(t){return p.mergeNodes.includes(t.nodeName)||p.selectorMerging&&t.matches&&t.matches(p.selectorMerging)}function _(t){return m(g,t,function(t){for(var e=3===t.nodeType&&y(t,!1)?1:0,n=0,r=t.childNodes;n<r.length;n+=1){e+=_(r[n])}return e})}function A(n,r){return function(t,e){try{return t[n]?t[n](e):r}catch(t){console.warn("Your CSS rules are incorrect: "+e)}return r}}var k=A("querySelectorAll",[]),E=A("matches",!1),S=new WeakMap;function x(t){var e=t.querySelectorAll?t:t.parentNode;if(t&&e){if(!function(t){var e=p.excluded_blocks,n=p.noTranslateAttribute;if(e&&e.length){var r=e.map(function(t){return t.value}).join(",");if(E(t,r))return t.setAttribute(n,"manual");for(var a=k(t,"["+n+"=manual]"),o=0,i=a;o<i.length;o+=1){i[o].removeAttribute(n)}var s=k(t,r);if(s)for(var u=0,c=s;u<c.length;u+=1){c[u].setAttribute(n,"manual")}}}(e),p.whitelist&&p.whitelist.length){var n=p.whitelist.map(function(t){return t.value}).join(","),r=[];if(e.closest&&e.closest(n)){var a=C(e),o=N(e);r=r.concat(o,a)}for(var i=0,s=k(e,n);i<s.length;i+=1){var u=s[i],c=C(u),l=N(u);r=r.concat(l,c)}return r}var f=C(e),d=N(e);return[].concat(d,f)}}function N(t){for(var e,n=[],r=2<=p.translation_engine,a=b.createTreeWalker(t,4,null,!1);e=a.nextNode();)if(y(e)&&!T(e))if(r){var o=I(e);if(o&&S.has(o)){var i=S.get(o),s=i[0],u=i[1],c=i[2];n.push({element:s,words:u,type:1,properties:c});continue}var l=O(e,a);if(l){var f=l[0],d=l[1],g=l[2];j(d)&&(S.set(f,l),n.push({element:f,words:d,type:1,properties:g}))}}else{var h=e.textContent;j(h)&&n.push({element:e,words:h,type:1,properties:{}})}return n}function C(l){var f=[];return h.forEach(function(t){for(var e,n,r=t.attribute,a=t.type,o=t.selectors,i=0,s=(e=l,n=o.join(","),0<e.childElementCount?e.querySelectorAll(n):e.matches&&e.matches(n)?[e]:[]);i<s.length;i+=1){var u=s[i];if(!T(u)){var c=r.get(u);j(c)&&f.push({element:u,words:c,type:a})}}}),f}function T(t){return t.closest||(t=t.parentNode),t.closest&&t.closest("["+p.noTranslateAttribute+"]")}function O(t,e){for(var n=[],r=t;v(t.parentNode);)t=t.parentNode,r.textContent.trim()!==t.textContent.trim()&&(r=t);r.textContent.trim()===t.textContent.trim()&&(t=r);for(var a=0;a<_(t)-1;a++){var o=e.nextNode();if(o&&!t.contains(o)){e.previousNode();break}}var i=t.cloneNode(!0);if(2<p.translation_engine){L(t,function(t){if(1===t.nodeType){var e=function(t){if(!t.attributes)return t;for(var e=[],n=0;n<t.attributes.length;n++)e.push(t.attributes[n]);return e}(t);n.push({attributes:e,child:t})}});var s=1;L(i,function(t){1===t.nodeType&&(function(t){if(!t.attributes)return;for(;0<t.attributes.length;)t.removeAttribute(t.attributes[0].name)}(t),t.setAttribute("wg-"+s++,""))})}if(t)return t.wgResolved=!0,[t,i.innerHTML||i.textContent,n]}function L(t,e){if(t.childNodes)for(var n=0,r=t.childNodes;n<r.length;n+=1){var a=r[n];if(!a)return;e(a),L(a,e)}}function j(t){return t&&""!==t.trim()&&"​"!==t}function I(t){if(t.wgResolved)return!1;var e=t;do{if(e.wgResolved)return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return!1}var M=function(t,g){t.forEach(function(t){var e=t.element,n=t.type,r=t.words,a=t.properties,o=g.from_words.findIndex(function(t){return t===r}),i=g.to_words[o];if(i){if(1===n&&a)if(1===e.nodeType){var s=(l=i,f=t,(d=b.createElement("div")).innerHTML=l,function t(e,n,r){var a=b.createDocumentFragment();if(1!==e.nodeType)return a.appendChild(n),a;for(var o=n.childNodes.length,i=0;i<o;i++){var s=n.firstChild,u=void 0;if(u=q(s)){var c=r[u-1];if(!c)continue;var l=c.used?c.child.cloneNode(!0):c.child,f=t(l,s,r);if(f.contains(l))return console.error("[Weglot] There is an HTML error in the translation of: "+e.innerHTML),a;l.innerHTML="",l.appendChild(f),a.appendChild(l),b.createDocumentFragment().appendChild(s),c.used=!0}else a.appendChild(s)}return a}(f.element,d,f.properties));e.innerHTML="",e.appendChild(s)}else if(-1!==i.indexOf("<")){var u=b.createElement("div");u.innerHTML=i,t.element.textContent=u.innerText}else e.textContent&&(e.textContent=i);else{var c=h.find(function(t){return t.type===n&&t.selectors.some(function(t){return e.matches(t)})});c&&c.attribute&&c.attribute.set(e,i,r)}var l,f,d;t.wgResolved=!1}})};function q(t){if(t&&1===t.nodeType&&t.attributes&&t.attributes[0]){var e=parseInt(t.attributes[0].name.split("wg-")[1]);return isNaN(e)?void 0:e}}function B(t,e){if(!e||!e.translation_engine)throw"translation_engine is required";var r,n;return Object.assign(p,e),p.document=t,p.mergeNodes=(r=e.translation_engine,i.v2.unshift("#text"),Object.keys(i).reduce(function(t,e,n){return n+1<=r?t.concat(i[e]):t},[])),Array.isArray(p.extra_merged_selectors)&&(p.selectorMerging=e.extra_merged_selectors.filter(function(t){return t&&"string"==typeof t}).join(",")),((n=p)&&n.extra_definitions||[]).forEach(function(t){var e=t.type,n=t.selector,r=t.attribute;r&&n?h.push({type:e,selectors:[n],attribute:{get:function(t){return t.getAttribute(r)},set:function(t,e){return t.setAttribute(r,e)}}}):console.warn("[Weglot] Each extra definition option needs at least {attribute,selector} https://bit.ly/2FRMsT0")}),1}function D(n){return function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];console[n].apply(console,["[Weglot]"].concat(t))}}function R(t){return W+t+"/translate"}function z(n,r){return function(t,e){try{return t[n](e)}catch(t){P.error("The CSS selectors that you provided are incorrect: "+e)}return r}}var P={warn:D("warn"),error:D("error"),log:D("log")},W="https://",H=R("api.weglot.com"),F=R("cdn-api.weglot.com"),U=W+"cdn.weglot.com/projects-settings/",J="https://cdn.weglot.com/weglot.min.css",G="wglang",Y="wg-style-trans",V="data-wg-notranslate",$=8100,K="weglot:cache",Q=216e5,X={shopify:2,bigcommerce:3,jimdo:4,squarespace:5,wix:6},Z=["excluded_blocks","dynamic","excluded_paths","dangerously_force_dynamic","extra_definitions","translate_event"],tt=["polyfillReady","languageChanged","initialized","start","switchersReady"],et={button_style:{full_name:!0,with_name:!0,is_dropdown:!0,with_flags:!1,flag_type:""},switchers:[],auto_switch:!1,auto_switch_fallback:"",excluded_blocks:[],whitelist:[],translate_event:[{selector:"[data-wg-translate-event]",eventName:null}],customer_tag:!1,order_tag:!0,dynamic:"",excluded_paths:[],wait_transition:!0,subdomain:!1,hide_switcher:!1,translate_search:!1,translate_images:!0,search_forms:"",cache:!1,live:!0,loading_bar:!0,search_parameter:"",translation_engine:2},nt=["none","shiny","square","circle","rectangle_mat"],rt=["Node.prototype.contains","Element.prototype.cloneNode","Object.keys","location.origin","MutationObserver","Promise","Element.prototype.matches","Element.prototype.closest","String.prototype.includes","fetch","Array.prototype.find","Array.prototype.findIndex","Object.assign","Array.prototype.includes","URL"],at=[{match:/Chrome\/(\d+)/,version:49},{match:/Firefox\/(\d+)/,version:44},{match:/Version\/(\d+)/,version:11}],ot=z("querySelectorAll",[]),it=z("querySelector",null),st=z("closest",null),ut=function(t){return b.getElementById(t)};function ct(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function lt(e){e=""+e;return[" ","&",""","<",">"].some(function(t){return-1!==e.indexOf(t)})?e.replace(/ /g," ").replace(/&/g,"&").replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">"):e}function ft(t,e){var n=t.className.split(" ");return n.push(e),t.className=n.join(" ")}function dt(t,e){return t.className=t.className.split(" ").filter(function(t){return t&&t!==e}).join(" ")}function gt(t,e){return t.className.split(" ").includes(e)}function ht(t,e){var n=b.createElement("style");ct(ut(e)),n.id=e,n.type="text/css",n.styleSheet?n.styleSheet.cssText=t:n.appendChild(b.createTextNode(t)),b.head.appendChild(n)}function pt(){return/Google|facebook|bing|yahoo|Baidu|Yandex/i.test(navigator.userAgent)}function mt(t,e,n){var r=new URL(t,location.href);return r.searchParams.set(e,n),""+r.pathname+r.search}function vt(){function e(){return location.host.split(".")}var t=b.getElementsByTagName("base")[0];if(t)try{return new URL(t.href,location.href).host.split(".")}catch(t){return e()}return e()}function yt(t,e){if(!b.querySelector(t)){var n=b.createElement("link");!function(t,e){for(var n in e)t.setAttribute(n,e[n])}(n,e),b.head.appendChild(n)}}var wt=function(r,a){var o;return void 0===a&&(a=1e3),function(){for(var t=this,e=[],n=arguments.length;n--;)e[n]=arguments[n];clearTimeout(o),o=setTimeout(function(){r.apply(t,e)},a)}},bt=function(t){var e=(new Date).getTime().toString();try{var n=t.contentWindow;return(n[e]="asd")===n[e]}catch(t){return!1}};var _t,At={},kt=function(t,e){At[t]=e},Et=function(t,e){if(At[t])return At[t](e)},St={};try{b.cookie,_t=!0}catch(t){_t=!1}St.set=function(t,e,n,r,a){_t&&(t=t.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29"),e=e.toString().replace(/[^+#$&/:<-[\]-}]/g,encodeURIComponent),n=n?";domain="+n:"",a=a?";expires="+a:"",r=r||"",b.cookie=t+"="+e+n+";path=/"+r+a+";")},St.get=function(t){if(!_t)return null;for(var e=b.cookie.split(";");e.length;){var n=e.pop(),r=n.indexOf("=");if(r=r<0?n.length:r,decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))===t)return decodeURIComponent(n.slice(r+1))}return null},St.erase=function(t,e,n){St.set(t,"",e,n,"Thu, 01 Jan 1970 00:00:00 GMT")};var xt=[];function Nt(t,e,n){if(t)return n();Ct(e,n,!0)}function Ct(t,e,n){return"function"!=typeof e?(P.error("You should provide a callback function as second argument"),!1):tt.indexOf(t)<0?(P.error("No Weglot event is named "+t),!1):(xt.push({name:t,callback:e,internal:n}),!0)}function Tt(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];for(var r=0,a=xt.filter(function(t){return t.name===e});r<a.length;r+=1){var o=a[r];o.callback.apply(o,t)}}var Ot,Lt=function(){var t,e,n="wg-test";try{return(t=localStorage).setItem(n,n),e=t.getItem(n)===n,t.removeItem(n),e&&t}catch(t){return null}}();function jt(){-1!==location.search.indexOf("weglot-private=0")&&St.set("wg-private-mode","0");var t=b.getElementById("admin-bar-iframe")||b.getElementById("preview-bar-iframe")||-1!==location.search.indexOf("weglot-private=1")||"1"===St.get("wg-private-mode");return t&&St.set("wg-private-mode","1"),t}function It(){if(Ot)return Ot;if(!ie.api_key)return P.warn("Weglot must be initialized to use it."),[];var t=(ie.languages||[]).filter(function(t){return(!1!==t.enabled||jt())&&(!t.connect_host_destination||t.connect_host_destination.is_dns_set)}).map(function(t){return t.language_to});if(!t.length)throw Error("Please provide at least one public destination language");var n=[].concat(ie.language_from,t);return Ot=n.filter(function(t,e){return n.indexOf(t)==e})}var Mt=vt();2===Mt[0].length||"www"===Mt[0]?Mt[0]="":Mt.unshift("");var qt=Mt.join(".");function Bt(){return ie.host?ie.host.replace("www.","."):qt}var Dt,Rt=function(t){St.set(G,t,Bt())},zt=function(t){Lt.setItem(G,t.substring(0,2))},Pt=function(){var t=St.get(G);return t&&It().includes(t)?t:null},Wt=function(){var t=Lt.getItem(G);try{t=JSON.parse(t)}catch(t){}return t&&It().includes(t)?t:null},Ht=function(){St.erase(G,Bt())},Ft=function(){Lt.removeItem(G)};function Ut(t){t&&(ie.subdomain?Rt:Lt?zt:Rt)(t)}function Jt(){return ie.subdomain?Pt():Lt?Wt():null}var Gt,Yt=function(t){var e,n=(e=t,b.querySelector('link[hreflang="'+e+'"]'));return n?n.href:null},Vt=function(){var t=b.documentElement.getAttribute("data-wg-translated");if(t)return t;var e=vt();if("www"===e[0])return null;try{for(var n=b.querySelectorAll("link[hreflang]"),r=0,a=n;r<a.length;r+=1){var o=a[r];if(new URL(o.getAttribute("href")).hostname===d.location.hostname)return o.getAttribute("hreflang").substring(0,2)}}catch(t){}return 2<e.length&&2===e[0].length?e[0]:void 0}(),$t=function(){return Vt&&It().includes(Vt)?Vt:ie.language_from},Kt=function(t){var e=function(e){var t=new URL(d.location.href);if(ie.is_connect){if(e===ie.language_from)return t.hostname=ie.host,t.toString();var n=(ie.languages.find(function(t){return t.language_to===e})||{}).connect_host_destination;if(n&&n.host)return t.hostname=n.host,t.toString()}}(t);return e||((void 0!==Dt?Dt:Dt=function(){try{for(var t=!0,e=new URL(Yt(ie.language_from)).hostname,n=0;n<ie.languages.length;n++){var r=ie.languages[n],a=new URL(Yt(r.language_to)).hostname;if(e===a){t=!1;break}e=a}return t}catch(t){return!1}}())?Yt:function(t){var e=vt(),n="www"===e[0]?"www":"",r=t===ie.language_from?n:t;2===e.length||2!==e[0].length&&"www"!==e[0]?e.unshift(r):e[0]=r;var a=e.filter(function(t){return t&&t.length}).join(".");return location.protocol+"//"+a+location.pathname})(t)};function Qt(t){Gt=t}var Xt=function(){if(Gt)return Gt;if(ie.is_connect){var t=ie.languages.find(function(t){return t.connect_host_destination&&t.connect_host_destination.host===d.location.href});if(t)return t.language_to}return ie.subdomain?Gt=$t():(Gt=Jt())||ie.language_from};function Zt(t,e){var n=e;n=n||Xt();for(var r=0,a=t;r<a.length;r+=1){var o=a[r];if(!o||!o.dataset||!o.dataset.wgOnlyDisplay)return;o.hidden=o.dataset.wgOnlyDisplay!==n}}var te={};function ee(t){return t?"string"!=typeof t?t:t.split(",").map(function(t){return{value:t}}):[]}function ne(t,e){if(void 0===e&&(e=""),!t)return et.button_style;var n=t.classF||"",r=n.match(/flag-(\d)/),a={with_name:t.withname,full_name:!!t.fullname,is_dropdown:!!t.is_dropdown,with_flags:-1!==n.indexOf("wg-flags"),flag_type:r&&r[1]?nt[r[1]]:"",invert_flags:!0};return e&&(a.custom_css=e),a}function re(t){var e=t.styleOpt,n=t.containerCss,r=t.target,a=t.sibling;return{button_style:ne(e,n),location:{target:r,sibling:a}}}te[X.shopify]=function(){function a(t){for(var e=c(t),n=0,r=b.querySelectorAll(['form[method="post"][action^="/cart"]','form[method="post"][action^="/checkout"]'].join(","));n<r.length;n+=1){var a=r[n],o=a.getAttribute("action");0===o.indexOf("/cart")&&"/cart"!==o.split("?")[0]||a.setAttribute("action",mt(o,"locale",e))}for(var i=0,s=b.querySelectorAll('a[href^="/checkout"],a[href^="/cart/checkout"]');i<s.length;i+=1){var u=s[i];u.setAttribute("href",mt(u.getAttribute("href"),"locale",e))}}function o(t){void 0===t&&(t=Xt());var e=b.getElementById("create_customer")||b.querySelector('form[action="/account"]');if(e){var n=b.getElementById("weglot-lang-form");n&&n.parentNode.removeChild(n);var r=b.createElement("input");Object.assign(r,{type:"hidden",id:"weglot-lang-form",name:"customer[tags]",value:"#wg"+t+"#wg"}),e.appendChild(r)}}function c(t){return"pt"===t?"pt-PT":"fl"===t?"fil":"zh"===t?"zh-CN":"tw"===t?"zh-TW":t.substr(0,2)}var i=function(){var t=b.getElementById("shopify-features");if(!t)return null;var e=t.textContent.match(/"shopId":(\d*)/);return e?e[1]:null};Ct("initialized",function(){d.langify&&console.log("%c Please, uninstall langify to properly use Weglot","background:#3d46fb;color:#fff");var t,e=b.querySelectorAll("[data-wg-only-display]");e.length&&Zt(e),ie.customer_tag&&o(),b.getElementsByClassName("shopify-payment-button").length&&(t=d.fetch,d.fetch=function(){if("/wallets/checkouts.json"===arguments[0])try{var e=JSON.parse(arguments[1].body),n=c(Xt());e.checkout.attributes={},ie.cart_attributes.forEach(function(t){return e.checkout.attributes[t]=n}),arguments[1].body=JSON.stringify(e)}catch(t){}return t.apply(d,arguments)})},!0),kt("onPageLanguageSet",function(t){var e,n;!pt()&&ie.order_tag&&function(e){var t=ie.cart_attributes.map(function(t){return"attributes["+t+"]="+c(e)}).join("&");fetch("/cart/update.js",{method:"POST",body:t,headers:{"Content-Type":"application/x-www-form-urlencoded"},credentials:"same-origin"});for(var n=b.querySelectorAll('a[href*="/cart/"]'),r="attributes[lang]="+e,a=0,o=n;a<o.length;a+=1){var i=o[a],s=i.getAttribute("href");if(s){var u=s.match(/\/cart\/\d+:\d+(\?)?/);u&&(s=s.replace(/&?attributes\[lang\]=([a-zA-Z-]+)/g,""),i.setAttribute("href",s+(u[1]?"&":"?")+r))}}}(t),a(t),e=t,(n=i())&&St.set("checkout_locale",c(e),null,n);var r=b.querySelectorAll("[data-wg-only-display]");r.length&&Zt(r,t),ie.customer_tag&&o(t)}),kt("onDynamicDetected",function(){a(Xt())});return kt("startWhen",function(){return ut("admin-bar-iframe")||ut("preview-bar-iframe")||jt()||function(){for(var t=0,e=b.scripts;t<e.length;t+=1){if(-1!==e[t].src.indexOf("preview_bar_injector"))return!0}return!1}()}),{cart_attributes:["lang","Invoice Language"],excluded_blocks:["input[type='radio']","span.money",".price",".product__prices","#admin-bar-iframe","#isp_refine_nevigation","#isp_header_subtitle",".isp_sorting_and_result_view_wrapper","#isp_results_did_you_mean > span",".isp_facet_show_hide_values","#isp_main_search_box",".snize-filter-variant-count",".snize-search-results-header a",".snize-search-results-header b"].map(function(t){return{value:t}}),search_forms:"form[action='/pages/search-results'],form[action='/search']",search_parameter:"q",dangerously_force_dynamic:".shopify-payment-button button",dynamic:["form.cart.ajaxcart","form.cart-drawer","#cross-sell",".wheelio_holder",".mini-cart","#shopify-product-reviews","#esc-oos-form",".product__add-to-cart-button","select.product-variants>option:not([value])",".ui-autocomplete",".shopify-payment-button__button","#isp_search_result_page_container",".snize-ac-results","#snize_results",".snize-recommendation",".snize-modal",".snize-search-results-header","div>span.cc-message"].join(","),extra_definitions:[{type:1,selector:".snize-color-swatch",attribute:"data-sntooltip"}]}},te[X.bigcommerce]=function(){return kt("onPageLanguageSet",function(t){!function(t){for(var e=0,n=b.querySelectorAll('[href*="/checkout.php"],[href*="/cart.php"]');e<n.length;e+=1){var r=n[e];r.setAttribute("href",mt(r.getAttribute("href"),"lang",t))}}(t)}),{dynamic:[".quick-shop-details","#QuickViewProductDetails",".QuickViewModal",".modalContainer",".ng-checkout-container",".previewCartAction"].join(","),search_forms:"form[action='/search.php']",search_parameter:"search_query"}},te[X.jimdo]=function(){return{excluded_blocks:['[data-display="cms-only"]',".j-admin-links",".cc-m-status-empty"].map(function(t){return{value:t}})}},te[X.squarespace]=function(){var t=[".sqs-cookie-banner-v2-text",".sqs-announcement-bar-text"];b.getElementById("sqs-cart-root")&&t.push("#sqs-cart-container"),b.getElementById("sqs-standard-checkout")&&t.push("#checkout");return{force_translation:t.join(","),dynamic:[".sqs-cookie-banner-v2-text",".sqs-announcement-bar-text","#sqs-cart-container","#checkout"].join(",")}},te[X.wix]=function(){var t=b.documentElement.getAttribute("data-wg-translated")?"":"#SITE_CONTAINER";if(d.hasOwnProperty("wixBiSession")&&"bolt"!==d.wixBiSession.renderType&&"dashboard.weglot.com"!==location.hostname)return b.addEventListener("DOMContentLoaded",function(){new MutationObserver(function(t){for(var e=0;e<t.length;e++){"SUCCESS"===t[e].target.getAttribute("data-santa-render-status")&&(this.disconnect(),Tt("start"))}}).observe(b.getElementById("SITE_CONTAINER"),{attributes:!0,attributeFilter:["data-santa-render-status"]})}),{dynamic:t,delayStart:!0,wait_transition:!1};if(d.hasOwnProperty("wixBiSession")&&"bolt"===d.wixBiSession.renderType){var e=0,n=setInterval(function(){(b.body&&d.sssr||40===e)&&(Tt("start"),clearInterval(n)),e++},100);return{dynamic:t,delayStart:!0,wait_transition:!1}}return{dynamic:t}};var ae=[{from:"originalLanguage",to:"language_from"},{from:"autoSwitch",to:"auto_switch"},{from:"autoSwitchFallback",to:"auto_switch_fallback"},{from:"waitTransition",to:"wait_transition"},{from:"subDomain",to:"subdomain"},{from:"translateSearch",to:"translate_search"},{from:"searchsForms",to:"search_forms"},{from:"searchParameter",to:"search_parameter"},{from:"hideSwitcher",to:"hide_switcher"},{from:"dangerouslyForceDynamic",to:"dangerously_force_dynamic"},{from:"loadingBar",to:"loading_bar"},{from:"customerTag",to:"customer_tag"},{from:"orderTag",to:"order_tag"},{from:"translateImages",to:"translate_images"},{from:"extraDefinitions",to:"extra_definitions"},{from:"excludePaths",to:"excluded_paths",func:function(t){return t?"string"!=typeof t?t:t.split(",").filter(function(t){return!!t}).map(function(t){return{value:t,type:"CONTAIN"}}):[]}},{from:"exceptions",to:"excluded_blocks",func:ee},{from:"whiteList",to:"whitelist",func:ee},{from:"styleOpt",to:"button_style",func:ne},{from:"destinationLanguages",to:"languages",func:function(t){return"string"!=typeof t?t:t.split(",").map(function(t){return{language_to:t,provider:null,automatic_translation_enabled:!0}})}}];function oe(t){var a=Object.assign({},t);return a.switchers&&("string"==typeof a.switchers&&(a.switchers=JSON.parse(a.switchers)),a.switchers.length&&!a.switchers[0].button_style&&(a.switchers=a.switchers.map(re))),Array.isArray(a.dynamic)&&(a.dynamic=a.dynamic.join(",")),Array.isArray(a.translate_iframes)&&(a.translate_iframes=a.translate_iframes.join(",")),ae.forEach(function(t){var e=t.from,n=t.to,r=t.func;void 0!==a[e]&&(a[n]=r?r(a[e]):a[e],delete a[e])}),a}var ie={};function se(t){if(!t||!t.api_key)throw Error("You have to provide at least a key");var e=t.api_key.split("wg_").pop(),r=oe(t);return e&&r.language_from&&r.languages?Promise.resolve(ue(r)):fetch(""+U+e+".json").then(function(t){return t.json()}).then(function(t){var e=t.custom_settings,n=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&-1===e.indexOf(r)&&(n[r]=t[r]);return n}(t,["custom_settings"]);return r.button_style=Object.assign(e?e.button_style:{},r.button_style),ue(Object.assign({},n,e,r))}).catch(function(){throw Error("Cannot fetch Weglot options. Is your key correct ?")})}function ue(t){Object.assign({live:!0},t);var e,n,r,a=t.technology_id||ie.technology_id,o=(e=a,X&&te[e]?te[e]():{}),i=Object.assign({},et,o);return Object.assign(ie,i,t),Z.forEach(function(t){ie[t]!==i[t]&&(ie[t]=function(t,e){if(!e)return t;if(Array.isArray(t))return[].concat(t,e);return"object"!=typeof t?(t=function(t){return t.split(",").filter(function(t){return t}).join(",")}(t))&&0<t.length&&t!==e?t+=","+e:t=e:Object.assign({},t,e)}(ie[t],i[t]))}),ie.is_connect=t.languages.some(function(t){return t.connect_host_destination&&t.connect_host_destination.is_dns_set&&t.connect_host_destination.created_on_aws}),ie.subdomain=ie.subdomain||ie.is_connect,n=J,(r=b.createElement("link")).rel="stylesheet",r.type="text/css",r.href=n,b.head.appendChild(r),ie.button_style&&ie.button_style.custom_css&&ht(ie.button_style.custom_css,"weglot-custom-style"),ie.cache&&"dashboard.weglot.com"===location.hostname&&(ie.cache=!1),ie.api_key.length<36&&(ie.translation_engine=1),ie}var ce=!1;function le(){ce=!0,Tt("polyfillReady")}function fe(){return ce}!function(t){if(d.Prototype&&(delete Object.prototype.toJSON,delete Array.prototype.toJSON),function(){if(!navigator||!navigator.userAgent)return 1;for(var t=0,e=at;t<e.length;t+=1){var n=e[t],r=navigator.userAgent.match(n.match);if(r&&r[1]&&+r[1]>=n.version)return}return 1}()){var e,n,r,a,o,i,s="https://cdn.polyfill.io/v2/polyfill.min.js?callback=Weglot.polyReady&features="+rt.join(",");e=s,a=!(n=function(){}),o=b.getElementsByTagName("head")[0]||b.documentElement,(i=b.createElement("script")).type="text/javascript",i.src=e,i.addEventListener?(i.addEventListener("load",u,!1),i.addEventListener("error",u,!1)):i.readyState&&(i.onreadystatechange=u),o.insertBefore(i,o.firstChild)}else t();function u(){a||(a=!0,setTimeout(function(){return n(r)},20))}}(le);function de(){function t(t){var e=t.substring(0,2),n=ge[e]?ge[e]:e;return r.includes(n)}function e(t){var e=t.substring(0,2);return"zh"!==e?ge[e]?ge[e]:e:["zh","zh-cn","zh-sg","zh-hans"].includes(t.toLowerCase())?"zh":"tw"}var r=It();if(navigator.languages)for(var n=0,a=navigator.languages;n<a.length;n+=1){var o=a[n];if(t(o))return e(o)}var i=navigator.language||navigator.userLanguage||"";return t(i)?e(i):null}var ge={nn:"no",nb:"no"},he=function(e,n){return Object.keys(e).forEach(function(t){return n(t,e[t])})},pe=function(){if("shopify.weglot.com"===location.host)return!1;if("string"==typeof ie.excluded_paths&&ie.excluded_paths.split(",").some(function(t){return new RegExp(t).test(location.pathname)}))return!0;var r=""+location.pathname+location.search;return ie.excluded_paths.some(function(t){var e=t.type,n=t.value;switch(e){case"START_WITH":return 0===r.indexOf(n);case"END_WITH":return-1!==r.indexOf(n,r.length-n.length);case"CONTAIN":return-1!==r.indexOf(n);case"IS_EXACTLY":return r===n;case"MATCH_REGEX":return new RegExp(n).test(r);default:return!1}})},me=function(){if(!ie.auto_switch||pt())return null;var t=de();return t||(ie.auto_switch_fallback?ie.auto_switch_fallback:null)};function ve(){ct(ut(Y))}function ye(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function we(t,e){return null===e?ye(t):[ye(t),"=",ye(e)].join("")}var be=!1,_e={},Ae={};if(Lt&&Lt.getItem(K))try{_e=JSON.parse(Lt.getItem(K)),Object.keys(_e).forEach(function(e){Object.keys(_e[e]).forEach(function(t){2===t.length&&(Ae[t]||(Ae[t]=[]),Ae[t].push(_e[e][t]))})}),be=!0}catch(t){be=!0}function ke(t){return _e[t]}function Ee(){Lt.setItem(K,JSON.stringify(_e))}var Se=[];function xe(t){return void 0===t&&(t=b.documentElement),x(t)}function Ne(t){var e=t.filter(function(e){return!Se.some(function(t){return t.element.isSameNode(e.element)})});return Se=[].concat(Se,e),e}function Ce(t){return void 0===t&&(t=Se),t.map(function(t){return{t:t.type,w:t.words}}).reduce(function(t,e){return t.some(function(t){return t.t===e.t&&t.w===e.w})?t:t.concat(e)},[])}function Te(t,e){void 0===e&&(e=!1),t&&t.to_words.length&&(e||(Se=Se.map(function(t){return t.words=lt(t.words),t})),M(Se,t))}function Oe(t,e){var n;void 0===e&&(e={cdn:!1,search:!1});var r,a,o,i,s,u,l=t.l_to,c=t.words,f=c;if("dashboard.weglot.com"!==location.hostname){if(a=l,o=[],i=[],s=[],c.forEach(function(t){var e=ke(t.w);e&&e[a]?(o.push(e[a]),i.push(lt(t.w))):s.push(t)}),f=(n={cachedWords:{to_words:o,from_words:i},newWords:s}).newWords,(r=n.cachedWords).to_words.length&&!e.search){if(!f.length)return Promise.resolve(r);Te(r)}if(be&&(f=[].concat(f,function(){be=!1;var e=(new Date).getTime();return Object.keys(_e).filter(function(t){return _e[t].createdTime+Q<e}).map(function(t){return{t:_e[t].t,w:t}})}())),!f.length)return e.search?Promise.resolve(r):Promise.resolve({to_words:[],from_words:[]})}return t.words=f,t.request_url=(u=b.querySelector("link[rel='canonical'][href]"))&&u.getAttribute("href")?u.getAttribute("href"):d.location.href,function(t,e){var n={},r="";if(e=e||ie.cdn){var a=JSON.stringify(t.words),o=function(i){return i?Object.keys(i).map(function(t){var e=i[t];if(void 0===e)return"";if(Array.isArray(e)){for(var n=[],r=0,a=e.slice();r<a.length;r+=1){var o=a[r];void 0!==o&&n.push(we(t,o))}return n.join("&")}return we(t,e)}).filter(function(t){return 0<t.length}).join("&"):""}(Object.assign({},t,{words:a,api_key:ie.api_key}));if(o.length<$)return Le(r=F+"?"+o,n)}return r=(e?F:H)+"?api_key="+ie.api_key,n={method:"POST",body:function(t){return t.replace(/[\u007F-\uFFFF]/g,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).substr(-4)})}(JSON.stringify(t))},Le(r,n)}(t,e.cdn).then(function(c){return f.forEach(function(t,e){var n,r,a,o,i,s,u=c.to_words[e];n=t.w,r=t.t,a=u,o=l,(s=ke(n))?(s[o]=a,s.createdTime=(new Date).getTime(),s.t=r):_e[n]=((i={})[o]=a,i.createdTime=(new Date).getTime(),i.t=r,i),Ae[o]||(Ae[o]=[]),Ae[o].push(a),ie.cache&&Lt&&wt(Ee)()}),c})}function Le(t,e){return fetch(t,e).then(je).then(function(t){return t.json()}).then(function(t){if(!t||!t.to_words)throw Error("An error occurred, please try again later");return t})}function je(t){if(401===t.status)throw Error("Your Weglot API key seems wrong.");if(402===t.status)throw Error("You reached Weglot limitaton. Please upgrade your plan.");if(t.status<200&&300<=t.status)throw Error(t.statusText);return t}function Ie(t,e,n){void 0===n&&(n={});n=Object.assign({},{title:!0,cdn:!1,search:!1},n);var r={l_from:ie.language_from,l_to:e,words:t};return n.title&&(r.title=b.title),Oe(r,n)}function Me(t,e){if("string"!=typeof t||"function"!=typeof e)return!1;var n=Xt();return n===ie.language_from?(e(t),!1):(Oe({l_from:n,l_to:ie.language_from,words:[{t:2,w:t}]},{cdn:!0,search:!0}).then(function(t){return t.to_words[0].toLowerCase().trim()}).then(e),!0)}function qe(t){return Be[t]}var Be={af:"Afrikaans",am:"አማáˆáŠ›",ar:"العربية",az:"AzÉ™rbaycanca",ba:"БашҡортÑа",be:"БеларуÑкаÑ",bg:"БългарÑки",bn:"বাংলা",bs:"Bosanski",ca:"Català ",co:"Corsu",cs:"ÄŒeÅ¡tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"Ελληνικά",en:"English",eo:"Esperanto",es:"Español",et:"Eesti",eu:"Euskara",fa:"Ùارسی",fi:"Suomi",fj:"Na Vosa Vaka-Viti",fl:"Filipino",fr:"Français",fy:"Frysk",ga:"Gaeilge",gd:"Gà idhlig",gl:"Galego",gu:"ગà«àªœàª°àª¾àª¤à«€",ha:"Ù‡ÙŽÙˆÙسَ",he:"עברית",hi:"हिनà¥à¤¦à¥€",hr:"Hrvatski",ht:"Kreyòl Ayisyen",hu:"Magyar",hw:"Hawaiann",hy:"Õ€Õ¡ÕµÕ¥Ö€Õ¥Õ¶",id:"Bahasa Indonesia",ig:"Igbo",is:"Ãslenska",it:"Italiano",ja:"日本語",jv:"Basa Jawa",ka:"ქáƒáƒ თული",kk:"Қазақша",km:"ភាសាážáŸ’មែរ",kn:"ಕನà³à²¨à²¡",ko:"í•œêµì–´",ku:"Kurdî",ky:"Кыргызча",la:"Latina",lb:"Lëtzebuergesch",lo:"ພາສາລາວ",lt:"Lietuvių",lv:"LatvieÅ¡u",mg:"Malagasy",mi:"MÄori",mk:"МакедонÑки",ml:"മലയാളം",mn:"Монгол",mr:"मराठी",ms:"Bahasa Melayu",mt:"Malti",my:"မြန်မာဘာသာ",ne:"नेपाली",nl:"Nederlands",no:"Norsk",ny:"Chichewa",pa:"ਪੰਜਾਬੀ",pl:"Polski",ps:"پښتو",pt:"Português",ro:"Română",ru:"РуÑÑкий",sd:"سنڌي‎",si:"සිංහල",sk:"SlovenÄina",sl:"SlovenÅ¡Äina",sm:"Gagana SÄmoa",sn:"ChiShona",so:"Soomaaliga",sq:"Shqip",sr:"СрпÑки",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"தமிழà¯",te:"తెలà±à°—à±",tg:"Тоҷикӣ",th:"ภาษาไทย",tl:"Tagalog",to:"faka Tonga",tr:"Türkçe",tt:"Татарча",tw:"ä¸æ–‡ (ç¹é«”)",ty:"Reo MÄ’ohi",uk:"УкраїнÑька",ur:"اردو",uz:"O‘zbek",vi:"Tiếng Việt",xh:"isiXhosa",yi:"ייִדיש",yo:"Yorùbá",zh:"ä¸æ–‡ (简体)",zu:"isiZulu"},De=13,Re=27,ze=38,Pe=40;function We(t,e){var n=qe(e);t.setAttribute("aria-label","Language selection: "+n)}function He(t){return!t.className.includes("country-selector closed")}function Fe(t){var e,n;(gt(e=t,n="closed")?dt:ft)(e,n),t.childNodes[0]&&(gt(t,"closed")?t.childNodes[0].setAttribute("aria-expanded","false"):t.childNodes[0].setAttribute("aria-expanded","true"));var r=b.body,a=b.documentElement,o=Math.max(r.scrollHeight,r.offsetHeight,a.clientHeight,a.scrollHeight,a.offsetHeight),i=function(t){for(var e=0;t;)e+=t.offsetTop||0,t=t.offsetParent;return e}(t),s=getComputedStyle(t).getPropertyValue("position");return("fixed"!==s&&o/2<i||"fixed"===s&&100<i)&&ft(t,"weg-openup"),0}var Ue=function(t,e,n){void 0===t&&(t=!1),void 0===e&&(e=ie.button_style),void 0===n&&(n=!1);var a=e.full_name,o=e.with_name,i=e.is_dropdown,r=e.flag_type,s=e.invert_flags;void 0===s&&(s=!0);var u=(e.with_flags?"wg-flags ":"")+" flag-"+nt.indexOf(r),c=b.createElement("div");ft(c,"weglot-container"),n&&ft(c,"weglot_here"),t&&ft(c,"wg-default");var l=b.createElement("aside");l.setAttribute("data-wg-notranslate","");var f=i?"wg-drop":"wg-list";l.className="weglot_switcher "+f+" country-selector closed",l.addEventListener("click",function(){gt(l,"wg-mouse-click")||ft(l,"wg-mouse-click"),w()}),c.appendChild(l);var d=Xt(),g=It().sort(),h=b.createElement("div"),p=b.createElement("a");p.setAttribute("tabindex",-1),p.setAttribute("href","#"),p.setAttribute("target","_self"),p.addEventListener("click",function(t){t.preventDefault()}),p.innerText=o?a?qe(d):d.toUpperCase():"",(i||!i&&s)&&h.appendChild(p),h.className="wgcurrent wg-li "+u+" "+d,h.setAttribute("data-l",d),h.setAttribute("tabindex","0"),h.setAttribute("aria-expanded","false"),h.setAttribute("role","combobox"),We(h,d);var m,v=b.createElement("ul");g.forEach(function(t){if(t!==d||!i&&!s){var e=qe(t),n=b.createElement("a");n.setAttribute("aria-label",e),n.setAttribute("href",ie.subdomain?Kt(t):"#"),n.onclick=function(t){t.preventDefault();var e=r.getAttribute("data-l");hn(e)},n.innerText=o?a?e:t.toUpperCase():"";var r=b.createElement("li");r.className="wg-li "+u+" "+t,r.appendChild(n),r.setAttribute("data-l",t),r.id="wg-"+t,v.appendChild(r)}}),l.addEventListener("keydown",function(t){if(t.keyCode!==De){if((t.keyCode===Pe||t.keyCode===ze)&&He(l))return t.preventDefault(),y(t.keyCode),void m.scrollIntoView({block:"center"});t.keyCode===Re&&He(l)&&(t.preventDefault(),w())}else{if(t.preventDefault(),m){var e=m.getAttribute("data-l");hn(e),We(h,e)}w()}});var y=function(t){var e=t===Pe?"nextSibling":"previousSibling";if(m){if(!m[e])return;dt(m,"focus"),(m=m[e]).classList.add("focus"),m.childNodes[0].focus()}else{var n=l.className.includes("weg-openup")?"ul li.wg-li:last-child":"ul li.wg-li";(m=h.parentNode.querySelector(n))&&(m.classList.add("focus"),m.childNodes[0].focus())}},w=function(){Fe(l),h.focus(),m&&dt(m,"focus"),m=null};return l.appendChild(h),l.appendChild(v),c},Je=!1,Ge=[];function Ye(t,e){if(void 0===e&&(e=t.length),t.location&&t.location.target){var n=it(b,t.location.target);if(n){var r=t.button_style||t.style,a=Ue(!1,r);if(a.setAttribute("style",r.custom_css),a.setAttribute("data-switcher-id",e),a.id="weglot-switcher-"+(e+1),a.setAttribute("data-switcher-style-opt",JSON.stringify(r)),t.location.sibling)try{n.insertBefore(a,it(b,t.location.sibling))}catch(t){return}else n.insertBefore(a,null);t.ready=!0,Ge[e]?Ge[e]=t:Ge.push(t);for(var o=0,i=b.querySelectorAll(".weglot-container:empty");o<i.length;o+=1){ct(i[o])}return 1}}}var Ve,$e=0;function Ke(){var s=["name","value"];ie.translate_event.forEach(function(r){for(var t=ot(b.body,r.selector),e=function(){var o=a[n];if(o.alreadyListeningEventInput)return!o.alreadyListeningEventInput.isConnected&&$e<10&&($e++,o.parentNode.insertBefore(o.alreadyListeningEventInput,o.nextSibling)),{};var i=o.cloneNode(!0);if(!i)return{};i.name="",o.alreadyListeningEventInput=i,o.parentNode.insertBefore(i,o.nextSibling),o.style.display="none",new MutationObserver(function(t){for(var e=0,n=t;e<n.length;e+=1){var r=n[e],a=o.getAttribute(r.attributeName);s.includes(r.attributeName)&&i.setAttribute(r.attributeName,a)}}).observe(o,{attributes:!0});var t=wt(function(t){13===t.keyCode&&t.target.form?t.target.form.dispatchEvent(new Event("submit")):Me(t.target.value,function(t){Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set.call(o,t);var e=r.eventName||o.getAttribute("data-wg-translate-event"),n=b.createEvent("HTMLEvents");n.initEvent(e,!0,!1),o.dispatchEvent(n)})},400);i.addEventListener("keydown",t)},n=0,a=t;n<a.length;n+=1){var o=e();if(o)return o.v}})}var Qe=[];function Xe(){ie.switchers.length&&Je&&(ie.switchers||[]).filter(function(t){return!t.ready}).forEach(function(t){t.ready||Ye(t)}),Ke(),mn()}function Ze(t){var e,n=t!==b;e=n?function(){return!0}:ie.dynamic?tn:function(){return!1},Ve=ie.excluded_blocks.map(function(t){return t.value}).join(",");var r=n?t:t.body;new MutationObserver(function(t){var o;o=e,(t=t.filter(function(t){var e,n=t.addedNodes,r=t.type,a=t.target;return"attributes"===r&&"IMG"===(e=a).nodeName&&e.srcset&&e.dataset.wgtranslated&&(e.setAttribute("wgsrcset",e.srcset),e.srcset=""),n.length?(setTimeout(Xe),!Ve||!a||!a.closest(Ve)):t.attributeName!==V&&o(a)&&("characterData"===r||"attributes"===r)})).length&&function(t,n,e){void 0===e&&(e=!0);for(var r=[],a=function(t){var e=xe(t);e&&e.forEach(function(t){!function(t){if(ie.dangerously_force_dynamic&&(t.closest&&t.closest(ie.dangerously_force_dynamic)||t.parentNode&&t.parentNode.closest&&t.parentNode.closest(ie.dangerously_force_dynamic)))return;return Qe.includes(t)}(t.element)&&n(t.element)&&function(t,e){var n=Xt(),r=ke(e);if(r&&e!==r[n])return 1;var a=Se.map(function(t){return t.node}).includes(t),o=ie.language_from!==n&&function(t,e){return!!Ae[e]&&Ae[e].includes(t)}(e,n);return a&&!r&&!o||!a&&!o}(t.element,t.words)&&(r.push(t),Qe.push(t.element))})},o=0,i=t;o<i.length;o+=1){var s=i[o],u=s.type,c=s.target,l=s.addedNodes,f=s.attributeName;switch(u){case"attributes":"id"!==f&&"class"!==f&&a(c);break;case"characterData":a(c);break;case"childList":for(var d=0,g=l;d<g.length;d+=1){var h=g[d];if(a(h),e){var p=[];"IFRAME"===h.tagName?p=[h]:h.querySelectorAll&&(p=h.querySelectorAll("iframe"));for(var m=0;m<p.length;m++){var v=p[m];n(v)&&bt(v)&&(a(v.contentWindow.document),Ze(v.contentWindow.document))}}}}}r.length&&(Ne(r),en(r),Et("onDynamicDetected"))}(t,e)}).observe(r,{childList:!0,subtree:!0,characterData:!0,attributes:!0})}function tn(t){if(!ie.dynamic)return!1;t&&t.closest||(t=t.parentNode);var e=ie.dynamic;return ie.dangerously_force_dynamic&&(e+=","+ie.dangerously_force_dynamic),t&&t.closest&&st(t,e)}function en(e){var t=Xt();if(t!==ie.language_from){return Ie(Ce(e),t,{title:!1,cdn:!0}).then(function(t){e=e.map(function(t){return t.words=lt(t.words),t}),M(e,t)})}}function nn(t){var e=t.parentNode;if(e.previousSibling&&e.previousSibling.firstChild){var n=e.previousSibling.getAttribute("data-l"),r=e.previousSibling.firstChild.innerHTML,a=e.previousSibling.className.replace(/\s\w{2}$/,"").replace("wgcurrent wg-li ","");e.previousSibling.setAttribute("data-l",t.getAttribute("data-l")),e.previousSibling.setAttribute("class","wgcurrent wg-li "+a+" "+t.getAttribute("data-l")),e.previousSibling.firstChild.innerHTML=t.firstChild.innerHTML,t.setAttribute("data-l",n),t.setAttribute("class","wg-li "+a+" "+n),t.setAttribute("id","wg-"+n),t.firstChild.innerHTML=r,t.firstChild.setAttribute("aria-label",r)}}var rn=function(t){for(var e=0,n=b.getElementsByClassName("wg-li "+t);e<n.length;e+=1){nn(n[e])}};function an(){var t=ut("wg_progress").firstElementChild,e=t.getAttribute("aria-valuenow"),n=parseInt(e)+(4*Math.random()+2);n<=100&&(t.setAttribute("aria-valuenow",n.toString()),t.style.width=n+"%")}function on(t){clearInterval(t),ct(ut("wg_progress"))}function sn(t){if(t.data){var e=t.data,n=e.message,r=e.payload;if(n&&r)switch(n){case"Weglot.setLanguage":hn(r);break;default:return}}}function un(t){It().forEach(function(t){var e,n;n=Kt(e=t),yt("link[rel='alternate'][hreflang='"+e+"'][href]",{rel:"alternate",hreflang:e,href:n})}),yt("link[rel='canonical'][href]",{rel:"canonical",href:Kt(t)})}function cn(t,e,n){var r=mn(),a=t&&!n&&d.top===d&&(!ie.subdomain||ie.subdomain&&"/"===d.location.pathname),o=xe();if(Ne(o),r&&!ie.hide_switcher&&function(){for(var t=b.querySelectorAll("#weglot_here, .weglot_here"),n=!1,e=0,r=t;e<r.length;e+=1){var a=r[e];a.parentNode.insertBefore(Ue(!1,ie.button_style,!0),a),ct(a),n=!0}ie.switchers&&0<ie.switchers.length&&ie.switchers.forEach(function(t,e){Ye(t,e)&&(n=!0)}),b.querySelector(".weglot-container.wg-default")&&(n=!0),(Je=n)||b.body.appendChild(Ue(!0))}(),Tt("switchersReady",t),t&&e&&Ut(t),n)ln(t);else if(ie.force_translation){for(var i=[],s=0,u=o;s<u.length;s+=1){var c=u[s],l=c.element;l.closest||(l=l.parentNode),l.closest&&l.closest(ie.force_translation)&&i.push(c)}en(i)}a&&pn(t),ie.dynamic.length&&Ze(b),Ke(),function(){d.addEventListener("message",sn,!1);var t=ie.translate_iframes;if(t){for(var n=[],e=0,r=ot(b.body,t);e<r.length;e+=1){var a=r[e];n.push(a)}kt("onPageLanguageSet",function(t){var e={message:"Weglot.setLanguage",payload:t};n.forEach(function(t){return t.contentWindow.postMessage(e,"*")})})}}(),["alert"].forEach(function(t){var n=d[t];d[t]=function(){var e=arguments;if("string"==typeof arguments[0]){var t=Xt();return ie.language_from===t?n.apply(d,arguments):Ie([{t:2,w:arguments[0]}],t,{title:!1,cdn:!0}).then(function(t){return e[0]=t.to_words[0],n.apply(d,e)})}}}),Tt("initialized",t)}function ln(e,n){if(!pn(e)){if(ie.loading_bar)var r=function(){try{var t=b.createElement("div");return t.className="wg-progress",t.id="wg_progress",t.innerHTML='<div class="wg-progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width:0"></div>',b.body.appendChild(t),setInterval(an,100)}catch(t){}}();if(n=n||Xt(),rn(e),e===ie.language_from){Et("onPageLanguageSet",e);var t=Se.map(function(t){return t.words});return ve(),Te({from_words:t,to_words:t}),ie.loading_bar&&on(r),b.documentElement.setAttribute("lang",e),void Tt("languageChanged",e,n||"")}Ie(Ce(),e).then(function(t){ve(),Te(t),b.documentElement.setAttribute("lang",e),Tt("languageChanged",e,n||""),ie.loading_bar&&on(r)}).catch(function(t){throw ie.loading_bar&&on(r),ve(),Ht(),Lt&&Ft(),t}),Et("onPageLanguageSet",e)}}Ct("initialized",function(t){ie.subdomain&&("loading"===b.readyState?b.addEventListener("DOMContentLoaded",function(){return un(t)}):un(t)),ie.translate_search&&function(){for(var t=ie.search_forms,n=ie.search_parameter,e=0,r=ot(b,t);e<r.length;e+=1){var a=r[e];a.addEventListener("submit",function(t){t.preventDefault();var e=t.target.elements[n].value;Me(e,function(t){St.set("wg-search-form",e),a.elements[n].value=t,a.submit()})});var o=void 0;-1!==d.location.search.indexOf(n+"=")&&a.elements[n]&&(o=St.get("wg-search-form"))&&(a.elements[n].value=o)}St.erase("wg-search-form")}()},!0);var fn,dn,gn,hn=function(t){var e=Xt();t!==e&&(It().includes(t)?(Qt(t),Ut(t),ln(t,e)):P.warn(t+" isn't a language you have added"))};function pn(t){if(!ie.host||ie.languages.map(function(t){return t.connect_host_destination&&t.connect_host_destination.host}).concat(ie.host).includes(d.location.hostname)){var e=$t();return ie.subdomain&&e!==t&&(d.location.replace(Kt(t)),1)}}function mn(){var t=It(),i=!1,s={};return t.forEach(function(e){for(var t,n=b.querySelectorAll(["a[href='#Weglot-"+(t=e)+"']","a[href$='change-language.weglot.com/"+t+"']"].join(",")),r=0,a=n;r<a.length;r+=1){var o=a[r];o.setAttribute(V,""),ft(o,"weglot-link"),ft(o,"weglot-link-"+e),e===Xt()&&ft(o,"weglot-link--active"),ie.subdomain?o.setAttribute("href",Kt(e)):o.setAttribute("href","#"),o.addEventListener("click",function(t){t.preventDefault(),hn(e)})}0===(s[e]=n).length&&(i=!0)}),Ct("languageChanged",function(i){he(s,function(t,e){if(t===i)for(var n=0,r=e;n<r.length;n+=1){ft(r[n],"weglot-link--active")}else for(var a=0,o=e;a<o.length;a+=1){dt(o[a],"weglot-link--active")}})},!0),i}var vn=!0;function yn(){var t=b.createElement("meta");t.name="google",t.content="notranslate",b.head&&b.head.appendChild(t),b.documentElement&&"cms.e.jimdo.com"!==d.location.host&&b.documentElement.setAttribute("translate","no")}function wn(){if(B(b,ie),pe())return ve(),void mn();if(Et("onWeglotSetup"),!_n.initialized){var t=function(t){for(var e=d.location.search.substring(1).split("&"),n=0;n<e.length;n++){var r=e[n].split("=");if(r[0]===t)return r[1]}return!1}("lang"),e=Jt();if(ie.subdomain)if(vn=!1,ie.auto_switch&&e)dn=t||e;else{var n=$t();n&&It().includes(n)&&n!==ie.language_from&&(dn=n);var r=me();r&&n!==r&&(dn=r)}else if(t&&It().includes(t))dn=t;else if(e)dn=e;else{var a=me();a&&(dn=a)}Qt(dn),(gn=dn&&dn!==ie.language_from&&b.documentElement.getAttribute("data-wg-translated")!==dn)&&ie.wait_transition?ht("@keyframes wg{from{color:transparent;}to{color:transparent;}}body *{color:transparent!important;animation:1s linear infinite wg!important;}",Y):ve(),ie.delayStart?Ct("start",function(){return bn()},!0):"loading"===b.readyState?b.addEventListener("DOMContentLoaded",function(){return bn()}):bn()}}function bn(t){if((ie.live||Et("startWhen")||t)&&(!b.querySelector("#has-script-tags")||b.querySelector("#has-script-tags")&&(0<b.head.innerHTML.indexOf("weglot_script_tag")||0<b.documentElement.innerHTML.indexOf("weglot_script_tag"))))try{cn(dn,vn,gn)}catch(t){ve(),P.error("There has been an error initializing",t)}else ve();_n.initialized=!0}var _n=d.Weglot||{initialized:!1,options:ie,dynamic:"",switchTo:hn,setup:function(e){yn(),fn||(fn=!0,Nt(fe(),"polyfillReady",function(){var t=e.api_key;e.translation_engine=t&&36<=t.length?2:1,function(e){var t=["api_key","originalLanguage","destinationLanguages"];if(!e||t.some(function(t){return!e[t]}))throw Error("You have to provide at least: "+t.join(", "));ue(oe(e))}(e),wn()}))},initialize:function(t){yn(),fn||(fn=!0,Nt(fe(),"polyfillReady",function(){se(t).then(function(){return wn()})}))},on:function(t,e){return Ct(t,e,!1)},off:function(e,n){function r(t){return xt[t].name===e&&!xt[t].internal}var t,a=!1;t="function"==typeof n?function(t){return r(t)&&xt[t].callback===n}:function(t){return r(t)};for(var o=xt.length-1;0<=o;o--)t(o)&&(xt.splice(o,1),a=!0);return a},getStoredLang:Jt,getLanguageName:qe,getCurrentLang:Xt,polyReady:le,getCache:function(){return _e},addNodes:function(t){var e=xe(t);return Ne(e),en(e)},search:Me,translate:function(t,r){void 0===t&&(t={});var a=t.words,o=t.languageTo;if(void 0===o&&(o=Xt()),Array.isArray(a)&&"object"==typeof a[0])return o===ie.language_from?(r&&r(a.map(function(t){return t.w})),Promise.resolve(a.map(function(t){return t.w}))):new Promise(function(e,n){Ie(a,o,{title:!1,cdn:!0}).then(function(t){if(!t||!t.to_words)throw t;r&&r(t.to_words),e(t.to_words)}).catch(function(t){n(t),r&&r(null,t)})});var e="Weglot.translate: 1st arg must be an array of objects";return P.error(e),r&&r(null,e),Promise.reject()},getBestAvailableLanguage:de};return _n}(window,document);