PageSourceSearch

https://www.thinglink.com/js/ext/cookieconsent.js

js thinglink.com collected 2026-09-24 07:31:57 UTC 17,713 bytes, 1 lines download raw bytes

1!function(){"use strict";var e="initCookieConsent";"undefined"!=typeof window&&"function"!=typeof window[e]&&(window[e]=function(m){function b(e){var t;"number"==typeof(F=e).cookie_expiration&&(y.cookie_expiration=F.cookie_expiration),"number"==typeof F.cookie_necessary_only_expiration&&(y.cookie_necessary_only_expiration=F.cookie_necessary_only_expiration),"boolean"==typeof F.autorun&&(y.autorun=F.autorun),"string"==typeof F.cookie_domain&&(y.cookie_domain=F.cookie_domain),"string"==typeof F.cookie_same_site&&(y.cookie_same_site=F.cookie_same_site),"string"==typeof F.cookie_path&&(y.cookie_path=F.cookie_path),"string"==typeof F.cookie_name&&(y.cookie_name=F.cookie_name),"function"==typeof F.onAccept&&(N=F.onAccept),"function"==typeof F.onFirstAction&&(L=F.onFirstAction),"function"==typeof F.onChange&&(T=F.onChange),"opt-out"===F.mode&&(y.mode="opt-out"),"number"==typeof F.revision&&(-1<F.revision&&(y.revision=F.revision),E=!0),"boolean"==typeof F.autoclear_cookies&&(y.autoclear_cookies=F.autoclear_cookies),!0===F.use_rfc_cookie&&(y.use_rfc_cookie=!0),"boolean"==typeof F.hide_from_bots&&(y.hide_from_bots=F.hide_from_bots),y.hide_from_bots&&(I=navigator&&(navigator.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)||navigator.webdriver)),y.page_scripts=!0===F.page_scripts,"browser"===F.auto_language||!0===F.auto_language?y.auto_language="browser":"document"===F.auto_language&&(y.auto_language="document"),y.auto_language,y.current_lang=(e=F.languages,t=F.current_lang,"browser"===y.auto_language?he(ge(),e):"document"===y.auto_language?he(document.documentElement.lang,e):"string"==typeof t?y.current_lang=he(t,e):(y.current_lang,y.current_lang))}function v(t){for(var e="accept-",n=r("c-settings"),i=r(e+"all"),o=r(e+"necessary"),a=r(e+"custom"),c=0;c<n.length;c++)n[c].setAttribute("aria-haspopup","dialog"),ce(n[c],"click",function(e){e.preventDefault(),$.showSettings(0)});for(c=0;c<i.length;c++)ce(i[c],"click",function(e){s(e,"all")});for(c=0;c<a.length;c++)ce(a[c],"click",function(e){s(e)});for(c=0;c<o.length;c++)ce(o[c],"click",function(e){s(e,[])});function r(e){return(t||document).querySelectorAll('[data-cc="'+e+'"]')}function s(e,t){e.preventDefault(),$.accept(t),$.hideSettings(),$.hide()}}function C(e){!0===F.force_consent&&re(fe,"force--consent"),s||(s=ae("div"),t=ae("div"),n=ae("div"),s.id="cm",t.id="c-inr-i",n.id="cm-ov",s.tabIndex=-1,s.setAttribute("role","dialog"),s.setAttribute("aria-modal","true"),s.setAttribute("aria-hidden","false"),s.setAttribute("aria-labelledby","c-ttl"),s.setAttribute("aria-describedby","c-txt"),se.appendChild(s),se.appendChild(n),s.style.visibility=n.style.visibility="hidden",n.style.opacity=0);(n=F.languages[e].consent_modal.title)&&(j||((j=ae("h2")).id="c-ttl",t.appendChild(j)),j.innerHTML=n);var t,n=F.languages[e].consent_modal.description;E&&(n=J?n.replace("{{revision_message}}",""):n.replace("{{revision_message}}",F.languages[e].consent_modal.revision_message||"")),M||((M=ae("div")).id="c-txt",t.appendChild(M)),M.innerHTML=n;var i,n=F.languages[e].consent_modal.primary_btn,o=F.languages[e].consent_modal.secondary_btn,e=(n&&(a||((a=ae("button")).id="c-p-bn",a.className="c-bn",a.appendChild(Se(1)),"accept_all"===n.role&&(i="all"),ce(a,"click",function(){$.hide(),$.accept(i)})),a.firstElementChild.innerHTML=F.languages[e].consent_modal.primary_btn.text),o&&(u||((u=ae("button")).id="c-s-bn",u.className="c-bn c_link",u.appendChild(Se(1)),"accept_necessary"===o.role?ce(u,"click",function(){$.hide(),$.accept([])}):ce(u,"click",function(){$.showSettings(0)})),u.firstElementChild.innerHTML=F.languages[e].consent_modal.secondary_btn.text),F.gui_options);f||((f=ae("div")).id="c-inr",f.appendChild(t)),p||((p=ae("div")).id="c-bns",e&&e.consent_modal&&!0===e.consent_modal.swap_buttons?(o&&p.appendChild(u),n&&p.appendChild(a),p.className="swap"):(n&&p.appendChild(a),o&&p.appendChild(u)),(n||o)&&f.appendChild(p),s.appendChild(f)),g=!0,v(f)}function A(e){B?(Q=ae("div")).id="s-bl":((B=ae("div")).tabIndex=-1,t=ae("div"),n=ae("div"),i=ae("div"),G=ae("div"),le=ae("h2"),o=ae("div"),(K=ae("button")).appendChild(Se(2)),a=ae("div"),V=ae("div"),c=ae("div"),r=!1,ce(B,"mouseup",function(e){!de||r||G.contains(e.target)||$.hideSettings()}),ce(B,"mousedown",function(e){de&&(r=G.contains(e.target))}),B.id="s-cnt",t.id="c-vln",i.id="c-s-in",n.id="cs",le.id="s-ttl",G.id="s-inr",o.id="s-hdr",V.id="s-bl",K.id="s-c-bn",c.id="cs-ov",a.id="s-c-bnc",K.className="
1c-bn",B.setAttribute("role","dialog"),B.setAttribute("aria-modal","true"),B.setAttribute("aria-hidden","true"),B.setAttribute("aria-labelledby","s-ttl"),B.style.visibility=c.style.visibility="hidden",c.style.opacity=0,a.appendChild(K),ce(document,"keydown",function(e){27===e.keyCode&&de&&$.hideSettings()},!0),ce(K,"click",function(){$.hideSettings()}));var t,n,i,o,a,c,r,e=F.languages[e].settings_modal,s=(K.setAttribute("aria-label",e.close_btn_label||"Close"),z=e.blocks,R=e.cookie_table_headers,e.cookie_table_caption),J=z.length;le.innerHTML=e.title;for(var l=0;l<J;++l){var d,u,p,f,h,g=z[l].title,_=z[l].description,m=z[l].toggle,b=z[l].cookie_table,v=!0===F.remove_cookie_tables,y=!!_||!v&&!!b,k=ae("div"),C=ae("div"),A=(_&&((d=ae("div")).className="p",d.insertAdjacentHTML("beforeend",_)),ae("div"));if(A.className="title",k.className="c-bl",C.className="desc",void 0!==m?(O="c-ac-"+l,u=ae(y?"button":"div"),p=ae("label"),N=ae("input"),E=ae("span"),f=ae("span"),h=ae("span"),T=ae("span"),u.className=y?"b-tl exp":"b-tl",p.className="b-tg",N.className="c-tgl",h.className="on-i",T.className="off-i",E.className="c-tg",f.className="t-lb",y&&(u.setAttribute("aria-expanded","false"),u.setAttribute("aria-controls",O)),N.type="checkbox",E.setAttribute("aria-hidden","true"),L=m.value,N.value=L,f.textContent=g,u.insertAdjacentHTML("beforeend",g),A.appendChild(u),E.appendChild(h),E.appendChild(T),te?m.enabled?(N.checked=!0,Q||ne.push(!0),m.enabled&&!Q&&ue.push(L)):Q||ne.push(!1):-1<oe(ee.categories,L)?(N.checked=!0,Q||ne.push(!0)):Q||ne.push(!1),Q||ie.push(L),m.readonly&&(N.disabled=!0,re(E,"c-ro"),!Q)&&pe.push(L),re(C,"b-acc"),re(A,"b-bn"),re(k,"b-ex"),C.id=O,C.setAttribute("aria-hidden","true"),p.appendChild(N),p.appendChild(E),p.appendChild(f),A.appendChild(p),y&&function(e,t,n){ce(u,"click",function(){we(t,"act")?(Ae(t,"act"),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")):(re(t,"act"),n.setAttribute("aria-expanded","true"),e.setAttribute("aria-hidden","false"))},!1)}(C,k,u)):g&&((h=ae("div")).className="b-tl",h.setAttribute("role","heading"),h.setAttribute("aria-level","3"),h.insertAdjacentHTML("beforeend",g),A.appendChild(h)),g&&k.appendChild(A),_&&C.appendChild(d),!v&&void 0!==b){for(var q=document.createDocumentFragment(),w=0;w<R.length;++w){var S=ae("th"),x=R[w];S.setAttribute("scope","col"),x&&(M=x&&Ce(x)[0],S.textContent=R[w][M],q.appendChild(S))}var N,T=ae("tr"),L=(T.appendChild(q),ae("thead")),O=(L.appendChild(T),ae("table"));s&&((N=ae("caption")).innerHTML=s,O.appendChild(N)),O.appendChild(L);for(var I=document.createDocumentFragment(),j=0;j<b.length;j++){for(var M,H,P=ae("tr"),D=0;D<R.length;++D)(x=R[D])&&(M=Ce(x)[0],(H=ae("td")).insertAdjacentHTML("beforeend",b[j][M]
1),H.setAttribute("data-column",x[M]),P.appendChild(H));I.appendChild(P)}var E=ae("tbody");E.appendChild(I),O.appendChild(E),C.appendChild(O)}(m&&g||!m&&(g||_))&&(k.appendChild(C),(Q||V).appendChild(k))}W||((W=ae("div")).id="s-bns"),Y||((Y=ae("button")).id="s-all-bn",Y.className="c-bn",W.appendChild(Y),ce(Y,"click",function(){$.accept("all"),$.hideSettings(),$.hide()})),Y.innerHTML=e.accept_all_btn;var U=e.reject_all_btn;U&&(Z||((Z=ae("button")).id="s-rall-bn",Z.className="c-bn",ce(Z,"click",function(){$.accept([]),$.hideSettings(),$.hide()}),G.className="bns-t",W.appendChild(Z)),Z.innerHTML=U),X||((X=ae("button")).id="s-sv-bn",X.className="c-bn",W.appendChild(X),ce(X,"click",function(){$.accept(),$.hideSettings(),$.hide()})),X.innerHTML=e.save_settings_btn,Q?(G.replaceChild(Q,V),V=Q):(o.appendChild(le),o.appendChild(a),G.appendChild(o),G.appendChild(V),G.appendChild(W),i.appendChild(G),n.appendChild(i),t.appendChild(n),B.appendChild(t),se.appendChild(B),se.appendChild(c))}function w(e){var t,n=z.length,i=-1,o=(q=!1,ye("","all")),a=[y.cookie_domain,"."+y.cookie_domain];"www."===y.cookie_domain.slice(0,4)&&(t=y.cookie_domain.substr(4),a.push(t),a.push("."+t));for(var c=0;c<n;c++){var r=z[c];if(r.hasOwnProperty("toggle")){var s=-1<oe(k,r.toggle.value);if(!ne[++i]&&r.hasOwnProperty("cookie_table")&&(e||s)){var l=r.cookie_table,d=Ce(R[0])[0],u=l.length;"on_disable"===r.toggle.reload&&s&&(q=!0);for(var p=0;p<u;p++){var f=a,h=l[p],g=[],_=h[d],m=h.is_regex||!1,b=h.domain||null,h=h.path||!1;if(b&&(f=[b,"."+b]),m)for(var v=0;v<o.length;v++)o[v].match(_)&&g.push(o[v]);else{b=oe(o,_);-1<b&&g.push(o[b])}0<g.length&&(ke(g,h,f),"on_clear"===r.toggle.reload)&&(q=!0)}}}}}var F,l,d,S,c,x,i,o,R,z,N,T,L,O,n,t,r,se,s,j,M,a,u,p,f,B,G,le,K,V,Q,W,X,Y,Z,H,e,y={mode:"opt-in",current_lang:"en",auto_language:null,autorun:!0,page_scripts:!0,hide_from_bots:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},$={},ee={},h=null,te=!0,g=!1,D=!1,de=!1,E=!1,J=!0,k=[],q=!1,ue=[],I=!1,P=[],U=[],ne=[],ie=[],pe=[],fe=document.documentElement,he=function(e,t){return t.hasOwnProperty(e)?e:0<Ce(t).length?t.hasOwnProperty(y.current_lang)?y.current_lang:Ce(t)[0]:void 0},oe=($.updateLanguage=function(e,t){if("string"==typeof e)return((e=he(e,F.languages))!==y.current_lang||!0===t)&&(y.current_lang=e,g&&C(e),A(e),!0)},function(e,t){return e.indexOf(t)}),ae=function(e){var t=document.createElement(e);return"button"===e&&t.setAttribute("type",e),t},ge=function(){var e=navigator.language||navigator.browserLanguage;return(e=2<e.length?e[0]+e[1]:e).toLowerCase()},_e=($.allowedCategory=function(e){var t=te&&"opt-in"!==y.mode?ue:JSON.parse(ye(y.cookie_name,"one",!0)||"{}").categories||[];return-1<oe(t,e)},$.run=function(e){var t,i,n;function o(e,t,n,i,o,a,c){if(a=a&&a.split(" ")||[],-1<oe(t,o)&&(re(e,o),"bar"!==o||"middle"!==a[0])&&-1<oe(n,a[0]))for(var r=0;r<a.length;r++)re(e,a[r]);-1<oe(i,c)&&re(e,c)}function a(e,t){try{var n=e.querySelectorAll(i.join(':not([tabindex="-1"]), '))}catch(t){return e.querySelectorAll(i.join(", "))}t[0]=n[0],t[1]=n[n.length-1]}document.getElementById("cc_div")||(b(e),I)||(ee=JSON.parse(ye(y.cookie_name,"one",!0)||"{}"),n=void 0!==(S=ee.consent_uuid),l=(l=ee.consent_date)&&new Date(l),d=(d=ee.last_consent_update)&&new Date(d),h=void 0!==ee.data?ee.data:null,E&&ee.revision!==y.revision&&(J=!1),g=te=!(n&&J&&l&&d&&S),(r=ae("div")).id="cc--main",r.style.position="fixed",r.innerHTML='<div id="cc_div" class="cc_div"></div>',se=r.children[0],n=y.current_lang,g&&C(n),A(n),(m||document.body).appendChild(r),i=["[href]","button","input","details",'[tabindex="0"]'],a(G,U),g&&a(s,P),"object"==typeof(n=e.gui_options)&&(t=n.consent_modal,n=n.settings_modal,g&&t&&o(s,["box","bar","cloud"],["top","middle","bottom"],["zoom","slide"],t.layout,t.position,t.transition),n)&&o(B,["bar"],["left","right"],["zoom","slide"],n.layout,n.position,n.transition),v(),y.autorun&&g&&$.show(e.delay||0),setTimeout(function(){re(r,"c--anim")}
1,30),setTimeout(function(){ce(document,"keydown",function(e){var t;"Tab"===e.key&&(D||de)&&c&&(t=Ne(),e.shiftKey?t!==c[0]&&x.contains(t)||(e.preventDefault(),_(c[1])):t!==c[1]&&x.contains(t)||(e.preventDefault(),_(c[0])))})},100),te?"opt-out"===y.mode&&(y.mode,_e()):("boolean"==typeof ee.rfc_cookie&&ee.rfc_cookie===y.use_rfc_cookie||(ee.rfc_cookie=y.use_rfc_cookie,ve(y.cookie_name,JSON.stringify(ee))),O=be(me()),_e(),"function"==typeof N&&N(ee)))},function(){var u,e,p;y.page_scripts&&(u=ee.categories||[],te&&"opt-out"===y.mode&&(u=ue),e=document.querySelectorAll("script["+y.script_selector+"]"),(p=function(e,t){if(t<e.length){var n=e[t],i=n.getAttribute(y.script_selector);if(-1<oe(u,i)){n.type=n.getAttribute("data-type")||"text/javascript",n.removeAttribute(y.script_selector);for(var i=n.getAttribute("data-src"),o=(i&&n.removeAttribute("data-src"),ae("script")),a=(o.textContent=n.innerHTML,o),c=n,r=c.attributes,s=r.length,l=0;l<s;l++){var d=r[l].nodeName;a.setAttribute(d,c[d]||c.getAttribute(d))}if(i?o.src=i:i=n.src,i&&(o.readyState?o.onreadystatechange=function(){"loaded"!==o.readyState&&"complete"!==o.readyState||(o.onreadystatechange=null,p(e,++t))}:o.onload=function(){o.onload=null,p(e,++t)}),n.parentNode.replaceChild(o,n),i)return}p(e,++t)}})(e,0))}),me=($.set=function(e,o){return"data"===e&&function(e){var t=!1;if("update"===o.mode){var n=typeof(h=$.get("data"))==typeof e;if(n&&"object"==typeof h)for(var i in h||(h={}),e)h[i]!==e[i]&&(h[i]=e[i],t=!0);else!n&&h||h===e||(h=e,t=!0)}else h=e,t=!0;return t&&(ee.data=h,ve(y.cookie_name,JSON.stringify(ee))),t}(o.value)},$.get=function(e,t){return JSON.parse(ye(t||y.cookie_name,"one",!0)||"{}")[e]},$.getConfig=function(e){return y[e]||F[e]},function(){return H=ee.categories||[],e=ie.filter(function(e){return-1===oe(H,e)}),{accepted:H,rejected:e}}),be=function(e){var t="custom";return e.accepted.length===ie.length?t="all":e.accepted.length===pe.length&&(t="necessary"),t},ve=($.getUserPreferences=function(){var e=me();return{accept_type:be(e),accepted_categories:e.accepted,rejected_categories:e.rejected}},$.loadScript=function(e,t,n){var i="function"==typeof t;if(document.querySelector('script[src="'+e+'"]'))i&&t();else{var o=ae("script");if(n&&0<n.length)for(var a=0;a<n.length;++a)n[a]&&o.setAttribute(n[a].name,n[a].value);i&&(o.onload=t),o.src=e,document.head.appendChild(o)}},$.updateScripts=function(){_e()},$.show=function(e,t){!0===t&&C(y.current_lang),g&&(n=Ne(),c=P,D=!0,(x=s).removeAttribute("aria-hidden"),setTimeout(function(){re(fe,"show--consent")},0<e?e:t?30:0))},$.hide=function(){g&&(D=!1,_(i),s.setAttribute("aria-hidden","true"),Ae(fe,"show--consent"),_(n),n=null)},$.showSettings=function(e){de=!0,B.removeAttribute("aria-hidden"),D?t=Ne():n=Ne(),x=B,c=U,setTimeout(function(){re(fe,"show--settings")},0<e?e:0)},$.hideSettings=function(){de=!1,xe(),_(o),B.setAttribute("aria-hidden","true"),Ae(fe,"show--settings"),D?(_(t),t=null,x=s,c=P):(_(n),n=null)},$.accept=function(e,t){var n=e||void 0,i=t||[],o=[];if(n)if("object"==typeof n&&"number"==typeof n.length)for(var a=0;a<n.length;a++)-1!==oe(ie,n[a])&&o.push(n[a]);else"string"==typeof n&&("all"===n?o=ie.slice():-1!==oe(ie,n)&&o.push(n));else o=function(){for(var e=document.querySelectorAll(".c-tgl")||[],t=[],n=0;n<e.length;n++)e[n].checked&&t.push(e[n].value);return t}();if(1<=i.length)for(a=0;a<i.length;a++)o=o.filter(function(e){return e!==i[a]});for(a=0;a<ie.length;a++)!0===pe.includes(ie[a])&&-1===oe(o,ie[a])&&o.push(ie[a]);var c=o,r=(k=[],B.querySelectorAll(".c-tgl")||[]);if(0<r.length)for(var s=0;s<r.length;s++)-1!==oe(c,ie[s])?(r[s].checked=!0,ne[s]||(k.push(ie[s]),ne[s]=!0)):(r[s].checked=!1,ne[s]&&(k.push(ie[s]),ne[s]=!1));!te&&y.autoclear_cookies&&0<k.length&&w(),l=l||new Date,S=S||([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(e){try{return(e^(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}catch(e){return""}}),ee={categories:c,level:c,revision:y.revision,data:h,rfc_cookie:y.use_rfc_cookie,consent_date:l.toISOString(),consent_uuid:S},(te||0<k.length)&&(J=!0,d=d?new Date:l,ee.last_consent_update=d.toISOString(),O=be(me()),ve(y.cookie_name,JSON.stringify(ee)),_e()),te&&(y.autoclear_cookies&&w(!0),"function"==typeof L&&L($.getUserPreferences(),ee),"function"==typeof N&&N(ee),te=!1,"opt-in"===y.mode)||("function"==typeof T&&0<k.length&&T(ee,k),q&&location.reload())}
1,$.eraseCookies=function(e,t,n){var i=[],n=n?[n,"."+n]:[y.cookie_domain,"."+y.cookie_domain];if("object"==typeof e&&0<e.length)for(var o=0;o<e.length;o++)this.validCookie(e[o])&&i.push(e[o]);else this.validCookie(e)&&i.push(e);ke(i,t,n)},function(e,t){var n=y.cookie_expiration,i=("number"==typeof y.cookie_necessary_only_expiration&&"necessary"===O&&(n=y.cookie_necessary_only_expiration),t=y.use_rfc_cookie?encodeURIComponent(t):t,new Date),n=(i.setTime(i.getTime()+24*n*60*60*1e3),e+"="+(t||"")+"; expires="+i.toUTCString()+"; Path="+y.cookie_path+";");n+=" SameSite="+y.cookie_same_site+";",-1<location.hostname.indexOf(".")&&y.cookie_domain&&(n+=" Domain="+y.cookie_domain+";"),"https:"===location.protocol&&(n+=" Secure;"),document.cookie=n}),ye=function(e,t,n){if("one"===t){if((o=(o=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))?n?o.pop():e:"")&&e===y.cookie_name){try{o=JSON.parse(o)}catch(e){try{o=JSON.parse(decodeURIComponent(o))}catch(e){o={}}}o=JSON.stringify(o)}}else if("all"===t)for(var i=document.cookie.split(/;\s*/),o=[],a=0;a<i.length;a++)o.push(i[a].split("=")[0]);return o},ke=function(e,t,n){for(var i=t||"/",o=0;o<e.length;o++){for(var a=0;a<n.length;a++)document.cookie=e[o]+"=; path="+i+(0==n[a].indexOf(".")?"; domain="+n[a]:"")+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";e[o]}},ce=($.validCookie=function(e){return""!==ye(e,"one",!0)},$.validConsent=function(){return!te},function(e,t,n,i){e.addEventListener(t,n,!0===i&&{passive:!0})}),Ce=function(e){if("object"==typeof e)return Object.keys(e)},re=function(e,t){e.classList.add(t)},Ae=function(e,t){e.classList.remove(t)},we=function(e,t){return e.classList.contains(t)},Se=function(e){var t=ae("span");return t.tabIndex=-1,1===e?i=t:o=t,t},_=function(e){e&&e instanceof HTMLElement&&e.focus()},xe=function(){for(var e=G.querySelectorAll(".c-tgl"),t=0;t<e.length;t++){var n=e[t].value,i=pe.includes(n);e[t].checked=i||$.allowedCategory(n)}},Ne=function(){return document.activeElement};return $})}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.