1 2"use strict";(()=>{function e(e){for(;"FORM"!==e.tagName;)if(!(e=e.parentElement))return null;return e}function t(e,t){e.addEventListener("focusin",t,{once:!0,passive:!0})}function n(e,t){const n=document.createElement("input");return n.type="hidden",n.style.display="none",n.name=t,e.appendChild(n),n}function i(e,t,n){""===e.style[t]&&(e.style[t]=n)}function r(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}function o(e,t){let n;"function"==typeof window.CustomEvent?n=new CustomEvent(t.name,{bubbles:!0,detail:t}):(n=document.createEvent("CustomEvent"),n.initCustomEvent(t.name,!0,!1,t)),e.dispatchEvent(n)}function s(e){let t,n;const i=new Promise(((e,i)=>{t=e,n=i}));return e&&e(t,n),{promise:i,resolve:t,reject:n}}function a(e,t){return 0===e.lastIndexOf(t,0)}function c(e){let t=[];const n=Object.keys(e),i=encodeURIComponent;for(let r=0;r<n.length;r++)t.push(`${i(n[r])}=${i(e[n[r]])}`);return t.join("&")}function l(e){const t=document.location;if(a(e,"/")||a(e,"."))return t.origin?t.origin:t.protocol+"//"+t.host;const n=e.match(L);if(!n)throw new Error("Invalid URL: "+e);return n[1]}function d(e,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"){let n="";for(let i=0;i<e;i++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}function h(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function g(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const i=h(n);return(e,n)=>i.then((i=>n(i.transaction(t,e).objectStore(t))))}function u(){return O||(O=g("keyval-store","keyval")),O}function m(e){if(!q){let n=0;try{n=parseInt(sessionStorage.getItem(X)||"",10)}catch(t){}isNaN(n)&&(n=0),e&&n++,H=n.toString();try{sessionStorage.setItem(X,H)}catch(t){}}return H}function f(){let e;try{e=sessionStorage.getItem(Y)}catch(t){return K}return e||(e=d(12),sessionStorage.setItem(Y,e)),e}function p(e){return e.toLowerCase().split("-")[0].split("_")[0]}function y(e){return e=p(e),-1!==G.indexOf(e)}function v(e){return e=p(e),(U[e]||U.en).title+" - Widget"}function b(e,t){return e=p(e),(U[e]||U.en)[t]}function w(e){e.textDecoration=e.fontStyle="none",e.fontWeight="500",e.fontFamily='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',e.lineHeight="1",e.letterSpacing="-0.0125rem"}function k(e){let t=e.language;return t&&"html"!==t||(t=function(e){for(;!e.lang||"string"!=typeof e.lang;)if(!(e=e.parentElement))return null;return e.lang}(e.element)||""),t}function _(){const e=window.performance;return e?e.now():0}function E(e,...t){for(let i=0;i<t.length;i++){const r=t[i];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}function R(){const e=[0,0,0,0,0,0,0];return{s:e,add(t){const n=++e[0],i=t-e[1],r=i/n,o=r*r,s=i*r*(n-1);e[1]+=r,e[4]+=s*o*(n*n-3*n+3)+6*o*e[2]-4*r*e[3],e[3]+=s*r*(n-2)-3*r*e[2],e[2]+=s,1==n?e[5]=e[6]=t:(t<e[5]&&(e[5]=t),t>e[6]&&(e[6]=t))}}}function S(){return/Android/i.test(navigator.userAgent)}function A(e,t,n=!1,i){const o=R();let s,a=!1;return r((()=>{(i=i||document.body)[ee](e,(e=>{a&&!n||(s=e.timeStamp,a=!0)})),i[ee](t,(e=>{a&&(o.add(e.timeStamp-s),a=!1)}))})),o.s}function x(e){const t=[];for(let n=0;n<e.length;n++)t.push(0),document[ee](e[n],(()=>t[n]++));return t}function I(){const e=[0,0,0,0,0,0,0,0],t={8:1,46:1,9:2,45:3,17:4,13:5,37:6,38:6,39:6,40:6,33:7,34:7};return document[ee]("keydown",(n=>{const i=n.keyCode;t[i]?e[t[i]]++:i>=112&&i<=123&&e[0]++})),e}function M(e,t,n,i){return te.sqrt(te.pow(e-t,2)+te.pow(n-i,2))}function C(e,t,n){return te.sqrt(te.pow(e,2)+te.pow(t,2)+te.pow(n,2))}function F(e,t){let n=t-e;return n+=n>180?-360:n<-180?360:0,n}function P(e){let t=e;return t?ie[t]&&(t=ie[t]):t=ie.global,l(t)}function D(){const e=document.querySelector('meta[name="frc-disable-eval-patching"]');return!!e&&!!e.content}function T(){const e=document.querySelector('meta[name="frc-api-endpoint"]');if(e)return e.content;const t=document.currentScript;if(t){const e=t.dataset.frcApiEndpoint;if(e)return e}
2const n=document.querySelector(".frc-captcha[data-api-endpoint]");if(n){const e=n.dataset.apiEndpoint;if(e)return e}}function z(){const e=window.Intl;if(!e||!e.DateTimeFormat)return;const t=new e.DateTimeFormat;return t&&t.resolvedOptions?t.resolvedOptions().timeZone:void 0}var O,N,j,L=/^((?:\w+:)?\/\/([^\/]+))/,W=class{constructor(e){this.ready=!1,this.buffer=[],this.id=e.id,this.type=e.type,this.element=e.element,this.onReady=e.onReady,this.origin=l(e.element.src)}send(e){this.ready?this.element.contentWindow.postMessage(e,this.origin):this.buffer.push(e)}setReady(e){this.onReady(),this.ready=e,this.ready&&this.flush()}flush(){for(let e=0;e<this.buffer.length;e++)this.element.contentWindow.postMessage(this.buffer[e],this.origin);this.buffer=[]}},V=class{constructor(){this.origins=new Set,this.targets={},this.answered=new Set,this.onReceiveRootMessage=()=>{},window.addEventListener("message",(e=>{this.onReceive(e)}))}listen(e){let t=this.onReceiveRootMessage;this.onReceiveRootMessage=n=>{t(n),e(n)}}addOrigin(e){this.origins.add(e)}send(e){if(e.from_id){const t=this.targets[e.from_id];if(!t)return void console.error(`[bus] Unexpected message from unknown sender ${e.from_id}`,e);"widget_announce"!==e.type&&"agent_announce"!==e.type||t.setReady(!0)}const t=e.rid;if(t){if(this.answered.has(t+e.to_id))return;this.answered.add(t+e.to_id)}if(""===e.to_id)return void this.onReceiveRootMessage(e);const n=this.targets[e.to_id];n?n.send(e):console.error(`[bus] Unexpected message to unknown target ${e.to_id}`,e)}onReceive(e){if(t=e.origin,n=this.origins,"*"!==t&&!n.has(t))return;var t,n;const i=e.data;i&&i._frc&&this.send(i)}registerTarget(e){this.targets[e.id]=e}registerTargetIFrame(e,t,n,i){const r=s();let o=new Promise((e=>setTimeout((()=>e("timeout")),i)));const a=new W({id:t,element:n,type:e,onReady:()=>r.resolve("registered")});return this.registerTarget(a),Promise.race([r.promise,o])}removeTarget(e){delete this.targets[e]}},X="frc_sc",Y="frc_sid",q=!1,H="0",K="__"+d(10),$=class{constructor(e){this.mem=new Map,this.storePrefix=e}setup(){return new Promise(((e,t)=>{if(void 0!==this._hasSA)return e(this._hasSA);try{indexedDB.open("")}catch(n){return e(this._hasSA=!1)}if(!document.hasStorageAccess)return e(this._hasSA=!0);document.hasStorageAccess().then((t=>(this._hasSA=t,this._hasSA?this.idb=g("friendlycaptcha","frc"):console.debug("FRC has no storage access"),e(this._hasSA)))).catch(t)}))}get(e,t){return this.setup().then((n=>{const i=this.storePrefix+"__"+e;if(t.p)return n?function(e,t=u()){return t("readonly",(t=>h(t.get(e))))}(i,this.idb):this.mem.get(e);try{const e=sessionStorage.getItem(i);return null===e?void 0:e}catch(r){}return this.mem.get(e)}))}set(e,t,n){return this.setup().then((i=>{const r=this.storePrefix+"__"+e;if(n.p){if(i)return function(e,t,n=u()){return n("readwrite",(n=>(n.put(t,e),h(n.transaction))))}(r,t,this.idb);void 0===t?this.mem.delete(e):this.mem.set(e,t)}else try{void 0===t?(this.mem.delete(e),sessionStorage.removeItem(r)):(this.mem.set(e,t),sessionStorage.setItem(r,t))}catch(o){}}))}hasSA(){return this._hasSA}},B="undefined"!=typeof navigator&&void 0!==navigator.userAgentData,U={ar:{title:"Ø§ÙØªØÙÙ Ù
Ù Ù
ÙØ§ÙØØ© Ø§ÙØ±ÙØ¨ÙØªØ§Øª",connecting:"Ø§ÙØªØÙÙ Ù
Ù Ù
ÙØ§ÙØØ© Ø§ÙØ±ÙØ¨ÙØªØ§Øª ÙÙØ¯ Ø§ÙØ§ØªØµØ§Ùâ¦",retrying:"Ø§Ø³ØªØºØ±Ù Ø§ÙØ§ØªØµØ§Ù Ø¨Ø§ÙØªØÙÙ Ù
Ù Ù
ÙØ§ÙØØ© Ø§ÙØ±ÙØ¨ÙØªØ§Øª ÙÙØªÙا Ø·ÙÙÙØ§Ù.\n\nإعادة اÙÙ
ØØ§ÙÙØ©â¦",failed:"ÙØ´Ù Ø§ÙØ§ØªØµØ§Ù Ø¨Ø§ÙØªØÙÙ Ù
Ù Ù
ÙØ§ÙØØ© Ø§ÙØ±ÙØ¨ÙØªØ§Øª."},bg:{title:"ÐÑовеÑка ÑÑеÑÑ ÑобоÑи",connecting:"ÐаÑежда Ñе задаÑаÑаâ¦",retrying:"ÐеÑÑпеÑно ÑвÑÑзване.\n\nÐÐ¿Ð¸Ñ Ð·Ð° повÑоÑно ÑвÑÑзванеâ¦",failed:"ÐеÑÑпеÑно ÑвÑÑзване."},ca:{title:"Verificació anti-robot",connecting:"Carregant el desafiamentâ¦",retrying:"Errada de conexió.\n\nReintentantâ¦",failed:"Errada de conexió."},cs:{title:"OvÄÅenà proti robotům",connecting:"PÅipojovánà kontroly proti robotůmâ¦",retrying:"PÅipojenà kontroly proti robotům trvalo pÅÃliÅ¡ dlouho.\n\nOpakuji pokusâ¦",failed:"Kontrola proti robotům se nepodaÅilo pÅipojit."},da:{title:"Anti-robot-verifikation",connecting:"Anti-robot-kontrol forbinderâ¦",retrying:"Anti-robot-kontrol tog for lang tid at oprette forbindelse.\n\nPrøver igenâ¦",failed:"Anti-robot-kontrol kunne ikke oprette forbindelse."},nl:{title:"Anti-robotcheck",connecting:"Verbinden met Anti-robotcheckâ¦",retrying:"Verbinden met Anti-robotcheck mislukt.\n\nOpnieuw aan het proberenâ¦",failed:"Verbinden met Anti-robotcheck mislukt."},en:{title:"Anti-Robot verification",connecting:"Anti-Robot check connectingâ¦",retrying:"Anti-Robot check took too long to connect.\n\nRetryingâ¦",failed:"Anti-Robot check failed to connect."},fi:{title:"Robottien torjunnan vahvistus",connecting:"Robottien torjunnan tarkistus käynnissäâ¦",retrying:"Robottien torjunnan tarkistus kesti liian kauan.\n\nYritetään uudelleenâ¦",failed:"Robottien torjunnan tarkistus epäonnistui."},fr:{title:"Vérification anti-robot",connecting:"Connexion à la vérification anti-robotâ¦",retrying:"La connexion à la vérification anti-robot a pris trop de temps.\n\nNouvelle tentativeâ¦",failed:"Ãchec de la connexion à la vérification anti-robot."},de:{title:"Anti-Roboter-Verifizierung",connecting:"Verbindung zur Anti-Roboter-Verifizierung wird hergestelltâ¦",retrying:"Verbindung zur Anti-Roboter-Verifizierung hat zu lange gedauert.\n\nErneuter Versuchâ¦",failed:"Verbindung zur Anti-Roboter-Verifizierung ist fehlgeschlagen."},hi:{title:"à¤à¤à¤à¥-रà¥à¤¬à¥à¤ सतà¥à¤¯à¤¾à¤ªà¤¨",connecting:"à¤à¥à¤¨à¥à¤¤à¥ लà¥à¤¡ हॠरहॠहà¥â¦",retrying:"à¤à¤¨à¥à¤à¥à¤¶à¤¨ विफल.\n\nपà¥à¤¨à¤ पà¥à¤°à¤¯à¤¾à¤¸ à¤à¤° रहॠहà¥à¤â¦",failed:"à¤à¤¨à¥à¤à¥à¤¶à¤¨ विफल."},hu:{title:"RobotellenÅrzés",connecting:"RobotellenÅrzés csatlakozásâ¦",retrying:"A robotellenÅrzés túl sokáig tartott a csatlakozáshoz.\n\nÃjrapróbálomâ¦",failed:"A robotellenÅrzés nem tudott csatlakozni."},id:{title:"Verifikasi Anti-Robot",connecting:"Pemeriksaan Anti-Robot sedang terhubungâ¦",retrying:"Pemeriksaan Anti-Robot memakan waktu terlalu lama untuk terhubung.\n\nMencoba lagiâ¦",failed:"Pemeriksaan Anti-Robot gagal terhubung."},ja:{title:"ãããã鲿¢èªè¨¼",connecting:"ãã£ã¬ã³ã¸ãèªã¿è¾¼ãã§ãã¾ãâ¦",retrying:"æ¥ç¶å¤±æ.\n\nå試è¡ä¸â¦",failed:"æ¥ç¶å¤±æ."},it:{title:"Verifica anti-robot",connecting:"Connessione verifica anti-robot in corsoâ¦",retrying:"La connessione alla verifica anti-robot ha richiesto troppo tempo.\n\nRiprovandoâ¦",failed:"Impossibile connettersi alla verifica anti-robot."},nb:{title:"Anti-robot-verifisering",connecting:"Laster inn utfordringâ¦",retrying:"Klarte ikke Ã¥ koble til.\n\nPrøver igjenâ¦",failed:"Klarte ikke Ã¥ koble til."},pl:{title:"Weryfikacja antyrobotowa",connecting:"ÅÄ
czenie siÄ z kontrolÄ
antyrobotowÄ
â¦",retrying:"ÅÄ
czenie siÄ z kontrolÄ
antyrobotowÄ
trwaÅo zbyt dÅugo. \n\nPonowna próbaâ¦",failed:"Nie udaÅo siÄ poÅÄ
czyÄ z kontrolÄ
antyrobotowÄ
."},ro:{title:"Verificare anti-robot",connecting:"Se incarca testulâ¦",retrying:"Conexiunea a esuat.\n\nReincercareâ¦",failed:"Conexiunea a esuat."},pt:{title:"Verificação anti-robô",connecting:"Verificação anti-robô a ligarâ¦",retrying:"A verificação anti-robô demorou demasiado tempo a ligar-se.\n\nA tentar novamenteâ¦",failed:"A verificação anti-robô não conseguiu ligar-se."},ru:{title:"ÐÑовеÑка анÑиÑобоÑа",connecting:"ÐодклÑÑение к пÑовеÑке анÑиÑобоÑаâ¦",retrying:"ÐодклÑÑение к пÑовеÑке анÑиÑобоÑа занÑло ÑлиÑком много вÑемени.\n\nÐовÑоÑÑем попÑÑкÑâ¦",failed:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð´ÐºÐ»ÑÑиÑÑÑÑ Ðº пÑовеÑке анÑиÑобоÑа."},sk:{title:"Overovanie proti robotom",connecting:"Pripojenie kontroly proti robotomâ¦",retrying:"Pripojenie kontroly proti robotom trvalo prÃliÅ¡ dlho.\n\nOpakujem pokusâ¦",failed:"Pripojenie kontroly proti robotom sa nepod
2arilo."},sl:{title:"Preverjanje proti robotom",connecting:"Nalaganje izzivaâ¦",retrying:"Povezava ni uspela.\n\nPonovni poskusâ¦",failed:"Povezava ni uspela."},es:{title:"Verificación antirrobot",connecting:"Conectando verificación antirrobotâ¦",retrying:"La verificación antirrobot tardó demasiado en conectarse.\n\nReintentandoâ¦",failed:"Error al conectar la verificación antirrobot."},sv:{title:"Anti-robotverifiering",connecting:"Anti-robotverifiering ansluterâ¦",retrying:"Anti-robotverifiering tog för lÃ¥ng tid att ansluta.\n\nFörsöker igenâ¦",failed:"Anti-robotverifiering kunde inte ansluta."},th:{title:"à¸à¸²à¸£à¸à¸£à¸§à¸à¸ªà¸à¸à¸à¹à¸à¸à¸à¸±à¸à¸à¸à¸",connecting:"à¸à¸³à¸¥à¸±à¸à¹à¸«à¸¥à¸à¸à¸²à¸£à¸à¹à¸²à¸à¸²à¸¢â¦",retrying:"à¹à¸à¸·à¹à¸à¸¡à¸à¹à¸à¹à¸¡à¹à¸ªà¸³à¹à¸£à¹à¸.\n\nà¸à¸³à¸¥à¸±à¸à¸¥à¸à¸à¹à¸«à¸¡à¹â¦",failed:"à¹à¸à¸·à¹à¸à¸¡à¸à¹à¸à¹à¸¡à¹à¸ªà¸³à¹à¸£à¹à¸."},tr:{title:"Robot önleme doÄrulaması",connecting:"Robot önleme kontrolü baÄlanıyorâ¦",retrying:"Robot önleme kontrolü baÄlanmak için çok uzun sürdü.\n\nYeniden deniyorâ¦",failed:"Robot önleme kontrolü baÄlanamadı."},vi:{title:"Xác minh chá»ng robot",connecting:"Kiá»m tra robot Äang kết ná»iâ¦",retrying:"Kiá»m tra chá»ng robot mất quá nhiá»u thá»i gian Äá» kết ná»i.\n\nÄang thá» lạiâ¦",failed:"Kiá»m tra chá»ng robot không thá» kết ná»i."},zh:{title:"åæºå¨äººéªè¯",connecting:"åæºå¨äººéªè¯æ£å¨è¿æ¥â¦",retrying:"åæºå¨äººéªè¯è¿æ¥èæ¶è¿é¿ã\n\næ£å¨éè¯â¦",failed:"åæºå¨äººéªè¯è¿æ¥å¤±è´¥ã"}},G=["ar","he","fa","ur","ps","sd","yi"],Z="FrcFrameId",J="frc-i-agent",Q=class{constructor(e){this.state="init",this.response=".UNINITIALIZED",this.focusEventPending=!1,this.isDestroyed=!1,this.id=e.id;const t=e.createOpts;if(this.e=t.element,this.ready=e.registered,!this.e)throw new Error("No element provided to mount widget under.");this.e.frcWidget=this,this.formFieldName=void 0===t.formFieldName?"frc-captcha-response":t.formFieldName,this.sitekey=t.sitekey,this._reset=e.callbacks.onReset,this._destroy=e.callbacks.onDestroy,this._trigger=e.callbacks.onTrigger,this.startMode=e.createOpts.startMode||"focus",null!==this.formFieldName&&(this.hiddenFormEl=n(this.e,this.formFieldName)),this.setState({response:".UNCONNECTED",state:"init"}),this.ready.then((()=>{this.handleStartMode()}))}handleStartMode(){if("focus"!==this.startMode||this.focusEventPending||this.isDestroyed)"auto"===this.startMode&&this.trigger("auto");else{const n=e(this.e);n&&(this.focusEventPending=!0,t(n,(e=>{this.trigger("focus",{ev:e}),this.focusEventPending=!1})))}}reset(e={trigger:"root"}){if(this.isDestroyed)throw new Error("Can not reset destroyed widget.");this.setState({response:".RESET",state:"reset",resetTrigger:e.trigger}),this._reset(e),this.handleStartMode()}destroy(){this.isDestroyed=!0,this.hiddenFormEl&&this.hiddenFormEl.remove(),this.hiddenFormEl=void 0,this.setState({response:".DESTROYED",state:"destroyed"}),this._destroy()}trigger(e,t={}){if(this.isDestroyed)throw new Error("Can not start destroyed widget.");const n=function(e,t,n,i){const r=_(),o=n.getBoundingClientRect(),s={v:1,tt:e,pnow:r,sm:t,el:{bcr:[o.left,o.top,o.width,o.height],con:document.body.contains(n)},stack:(new Error).stack||"",we:!!window.event,weit:!!window.event&&!!window.event.isTrusted};return i&&(s.ev={ts:i.timeStamp,rt:!!i.relatedTarget,eot:!!i.explicitOriginalTarget,it:i.isTrusted}),s}(e,this.startMode,this.e,t.ev);this._trigger({trigger:n})}start(){this.trigger("programmatic")}setState(e){const t=this.state!==e.state;this.response=e.response,this.state=e.state,this.hiddenFormEl&&!1!==this.e.isConnected&&(this.hiddenFormEl.value=e.response),t&&this.dispatchWidgetEvent({name:"frc:widget.statechange",error:e.error,mode:e.mode}),"expired"===this.state?this.dispatchWidgetEvent({name:"frc:widget.expire"}):"completed"===this.state?this.dispatchWidgetEvent({name:"frc:widget.complete"}):"error"===this.state?this.dispatchWidgetEvent({name:"frc:widget.error",error:e.error}):"reset"===this.state&&this.dispatchWidgetEvent({name:"frc:widget.reset",trigger:e.resetTrigger})}dispatchWidgetEvent(e){const t={response:this.response,state:this.state,id:this.id};E(t,e),o(this.e,t)}addEventListener(e,t,n){this.e.addEventListener(e,t,n)}removeEventListener(e,t,n){this.e.removeEventListener(e,t,n)}getState(){return this.state}getResponse(){return this.response}getElement(){return this.e}},ee="addEventListener",te=Math,ne=class{constructor(e){this.rn=0,this.i=0,this.smel={n:0,ts:0,d:0};const t="mouse",n=this.smel,i=e=>{n.n||(n.fts=e.timeStamp,n.fxy=[e.clientX,e.clientY,e.screenX,e.screenY]),n.n++,e.type===t+"leave"&&(n.d+=e.timeStamp-n.ts),n.ts=e.timeStamp,n.xy=[e.clientX,e.clientY]},o=document;r((()=>{const e=o.body;e[ee](t+"enter",i),e[ee](t+"leave",i)}
vendor: 6,259 bytes, line 2
2)),this.bh={onoff:{kdu:A("keydown","keyup"),cse:A("compositionstart","compositionend"),mdu:A(t+"down",t+"up"),mle:A(t+"leave",t+"enter"),med:A(t+"enter",t+"down",!0),semd:A("scrollend",t+"down",!0,o),se:A("scroll","scrollend",!1,o),pdc:A("pointerdown","pointercancel",!0),mmc:A(t+"move","click",!0),tse:A("touchstart","touchend"),fikd:A("focusin","keydown",!0)},nev:x([t+"out","pointercancel","focus","focusin","blur","visibilitychange","copy","paste","cut","contextmenu","click","auxclick","wheel","resize"]),nk:I(),mov:this.setupMovementMetrics(),dm:this.setupMotionMetrics(),do:this.setupOrientationMetrics()},this.dep=e.disableEvalPatching||!1,this.takeTraceRecords=function(e){const t=[],n=new Map,i=window,r=function(){try{const e=document.createElement("iframe");e.style.display="none",(document.body||document.head).appendChild(e);const t=e?e.contentWindow:0;return e.remove(),t||i}catch(e){return i}}(),o=Function.prototype.toString,s=function(...e){const t="function"==typeof this&&n.get(this),i=this===s?o:t||this;return o.apply(i,e)};Function.prototype.toString=s;const a="prototype",c=i.EventTarget?i.EventTarget[a].dispatchEvent:{},l=[["Document."+a+".documentElement",i.Document[a],"documentElement"],["Element."+a+".shadowRoot",i.Element[a],"shadowRoot"],["Node."+a+".nodeType",i.Node[a],"nodeType"],["Object.is",i.Object,"is"],["Array."+a+".slice",i.Array[a],"slice"],["Document."+a+".querySelectorAll",i.Document[a],"querySelectorAll"],["Document."+a+".createElement",i.Document[a],"createElement"],["EventTarget."+a+".dispatchEvent",c,"dispatchEvent"]];return e.disableEvalPatching||l.push(["eval",i,"eval"]),l.forEach((function([e,o,s]){const a=Object.getOwnPropertyDescriptor(o,s),c=a&&(a.get||a.set);if(!a)return;if(c){if(!a.get)return}else if("object"!=typeof a.value&&"function"!=typeof a.value)return;let l=0,d=0;const h=function(...n){const o=Date.now();if(o-l>=1e3&&(d=0,l=o),d<50){const n={d:o,pnow:_(),n:e,st:(r.Error||i.Error)("FriendlyCaptcha_DummyTrace").stack||""};t.length>2e4&&t.splice(0,1e3),t.push(n),d++}return(c?a.get:a.value).apply(this,n)};try{const e=c?a.get?a.get():void 0:a.value();e&&(h.length=e.length,h.name=e.name)}catch(g){}try{const e=E({},a);c?e.get=h:e.value=h,Object.defineProperty(o,s,e),n.set(h,c?a.get:a.value)}catch(g){}})),function(){return t.splice(0,t.length)}}(e)}setupMovementMetrics(){let e,t=[];const n=R(),i=R(),o=R(),s={t:n.s,v:o.s,d:i.s,ns:0},a=()=>{const r=t[t.length-1];if(t.length>=200||r&&(r[0]&&this.tm.timeStamp===r[1]||!r[0]&&this.mm.timeStamp===r[1])){if(clearInterval(e),e=void 0,1===t.length)return s.ns++,void(t=[]);const a=t[0];n.add(r[1]-a[1]),i.add(M(r[2],a[2],r[3],a[3]));for(let e=1;e<t.length;e++){const n=t[e],i=t[e-1],r=1e3*M(n[2],i[2],n[3],i[3]),s=n[1]-i[1];o.add(r/s)}return void(t=[])}let a=0;if(r?a=r[0]:this.mm&&this.tm?a=this.mm.timeStamp>this.tm.timeStamp?0:1:this.mm||(a=1),a){const e=this.tm.touches[0];e&&t.push([1,this.tm.timeStamp,e.screenX,e.screenY])}else t.push([0,this.mm.timeStamp,this.mm.screenX,this.mm.screenY])};let c=-1;return r((()=>{const t=document.body;t[ee]("mousemove",(t=>{this.mm=t,void 0===e&&(a(),e=setInterval(a,50))})),t[ee]("touchmove",(t=>{this.tm=t;const n=t.touches[0];if(n){const e=n.radiusX+1.234*n.radiusY;e!==c&&(c=e,this.rn++)}void 0===e&&(a(),e=setInterval(a,50))}))})),s}setupMotionMetrics(){const e=R(),t=R(),n={n:0,ts:0,ac:e.s,rr:t.s,i:0,g:!1};return S()?(window[ee]("devicemotion",(i=>{n.ts=i.timeStamp,n.i=i.interval,n.g=!i.acceleration;const r=i.acceleration||i.accelerationIncludingGravity;r&&e.add(C(r.x,r.y,r.z));const o=i.rotationRate;o&&t.add(C(o.alpha,o.beta,o.gamma))})),n):n}setupOrientationMetrics(){const e=R(),t=R(),n={fts:0,ts:0,gd:e.s,bd:t.s};if(!S())return n;let i;return window[ee]("deviceorientation",(r=>{null!=r.gamma&&null!=r.beta&&null!=r.alpha&&(n.ts=r.timeStamp,n.a=r.alpha,n.b=r.beta,n.g=r.gamma,i?(e.add(F(r.gamma,n.g)),t.add(F(n.b,r.beta))):(n.fts=n.ts,i=!0))})),n}gmm(){const e=this.mm;return e&&{xy:[e.clientX,e.clientY,e.screenX,e.screenY,e.offsetX,e.offsetY,e.pageX,e.pageY,e.movementX,e.movementY],ts:e.timeStamp}}gtm(){const e=this.tm,t=e&&e.touches,n=t&&t[0];return e&&n&&{id:n.identifier,xy:[n.clientX,n.clientY,n.screenX,n.screenY,n.pageX,n.pageY],r:[n.radiusX,n.radiusX,n.rotationAngle,n.force],n:t.length,ts:e.timeStamp,rn:this.rn}}get(e){const t=document.body,n=window,i=n.performance;return{v:1,i:++this.i,hl:history.length,fe:!!window.frameElement,dep:this.dep,wid:e,sc:parseInt(m(!1)),sid:f(),conv:0,t:{pnow:_(),pto:i&&i.timeOrigin||0,ts:Date.now()},dims:{d:[n.innerWidth,n.innerHeight,n.outerWidth,n.outerHeight,n.screenX,n.screenY,n.pageXOffset,n.pageYOffset,t.clientWidth,t.clientHeight],dpr:n.devicePixelRatio},mel:this.smel,mm:this.gmm(),tm:this.gtm(),bh:this.bh,stack:(new Error).stack||"",trc:this.takeTraceRecords()}}},ie={eu:"https://eu.frcapi.com",global:"https://global.frcapi.com"},re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",oe=class{constructor(e){if(this.timeout=null,this.data=null,this.e=e.element,!this.e)throw new Error("No element provided for mounting Risk Intelligence handle.");this.e.frcRiskIntelligence=this,this.formFieldName=void 0===e.formFieldName?"frc-risk-intelligence-token":e.formFieldName,null!==this.formFieldName&&(this.hiddenFormEl=n(this.e,this.formFieldName)),this.startMode=e.startMode||"focus",this.requestRiskIntelligence=e.riskIntelligence,this.handleStartMode()}handleStartMode(){if("none"===this.startMode)console.warn('Risk Intelligence <div> found with data-start="none" (no-op), skipping...',this.e);else if("auto"===this.startMode)this.request();else{const n=e(this.e);n?t(n,(()=>{this.request()})):console.warn('Risk Intelligence <div> with startMode of "focus" found without a parent <form> element, skipping...',this.e)}}request(){this.requestRiskIntelligence().then((e=>{null!==this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((()=>{o(this.e,{name:"frc:riskintelligence.expire"})}),e.expiresAt-Date.now()),this.data={token:e.token,expiresAt:e.expiresAt},this.hiddenFormEl&&(this.hiddenFormEl.value=e.token),o(this.e,{name:"frc:riskintelligence.complete",token:e.token,expiresAt:e.expiresAt})})).catch((e=>{o(this.e,{name:"frc:riskintelligence.error",error:{code:e.code,detail:e.detail}})}
2))}getData(){return this.data}getElement(){return this.e}addEventListener(e,t,n){this.e.addEventListener(e,t,n)}removeEventListener(e,t,n){this.e.removeEventListener(e,t,n)}},se="FrcFrameId",ae=0;window.frcaptcha=new class{constructor(e={}){if(this.agents=new Map,this.agentState=new Map,this.widgets=new Map,this._attached=s(),this.attached=this._attached.promise,this.riskIntelligencePromises=new Map,this.clearRiskIntelligencePromises=new Map,this.riskIntelligenceHandles=[],this.apiEndpoint=e.apiEndpoint,(j=j||new V).listen((e=>this.onReceiveMessage(e))),this.bus=j,++ae>1&&console.warn("Multiple Friendly Captcha SDKs created, this is not recommended. Please use a single SDK instance."),this.signals=function(e){return N||(N=new ne(e))}({disableEvalPatching:e.disableEvalPatching||D()}),e.startAgent){const e=P(this.apiEndpoint||T());this.ensureAgentIFrame(e)}this.setupPeriodicRefresh()}onReceiveMessage(e){if("root_set_response"===e.type){const t=this.widgets.get(e.widget_id);if(!t)return void(1===ae&&console.warn(`Received set response message for widget ${e.widget_id} that doesn't exist`));t.setState(e)}else if(a(e.type,"root_store"))this.handleStoreMessage(e);else if("root_signals_get"===e.type)this.handleSignalsGetMessage(e);else if("widget_language_change"===e.type)this.handleWidgetLanguageChange(e);else if("widget_reset"===e.type){const t=this.widgets.get(e.from_id);if(!t)return void(1===ae&&console.warn(`Received reset message for widget ${e.from_id} that doesn't exist`));t.reset({trigger:"widget"})}else a(e.type,"root_risk_intelligence")&&this.handleRiskIntelligenceMessage(e)}handleRiskIntelligenceMessage(e){if("root_risk_intelligence_generate_reply"===e.type){const t=this.riskIntelligencePromises.get(e.uid);t?(e.data?t.resolve(e.data):e.error?t.reject(e.error):console.warn("Received risk intelligence generate reply message with no data"),this.riskIntelligencePromises.delete(e.uid)):console.warn("Received risk intelligence generate reply message with no promise to resolve")}else if("root_risk_intelligence_clear_reply"===e.type){const t=this.clearRiskIntelligencePromises.get(e.uid);t?e.error?t.reject(e.error):t.resolve():console.warn("Received risk intelligence clear reply message with no promise to resolve"),this.clearRiskIntelligencePromises.delete(e.uid)}}handleWidgetLanguageChange(e){const t=this.widgets.get(e.from_id);if(!t)return void(1===ae&&console.warn(`Received language change message for widget ${e.from_id} that doesn't exist`));const n=t.getElement(),i=n.querySelector("iframe");
2i&&(i.title=v(e.language));const r=n.querySelector(".frc-banner");if(r){const t=r.style;y(e.language)?(t.left="6px",t.right="auto"):(t.left="auto",t.right="6px")}}handleSignalsGetMessage(e){const t=this.signals.get(e.widget_id);this.bus.send({type:"root_signals_get_reply",from_id:"",to_id:e.from_id,_frc:1,rid:e.rid,value:t})}handleStoreMessage(e){const t=e.from_id,n=this.agentState.get(t);n?"root_store_get"===e.type?n.store.get(e.key,{p:e.p}).then((i=>{this.bus.send({type:"root_store_get_reply",from_id:"",to_id:t,_frc:1,rid:e.rid,value:i,sa:n.store.hasSA()})})):"root_store_set"===e.type&&n.store.set(e.key,e.value,{p:e.p}).then((()=>{this.bus.send({type:"root_store_set_reply",from_id:"",to_id:t,_frc:1,rid:e.rid,sa:n.store.hasSA()})})):console.error(`Store not found ${t}`)}ensureAgentIFrame(e){const t=e+"/api/v2/captcha/agent";let n=document.getElementsByClassName(J);for(let a=0;a<n.length;a++){const t=n[a];if(l(t.src)===e&&t.dataset[se])return t.dataset[se]}const i="a_"+d(12),r=function(e,t,n){const i={origin:document.location.origin,sess_id:f(),sess_c:m(!0),comm_id:t,sdk_v:"0.2.0",v:"1",agent_id:t,ts:Date.now().toString()},r=document.createElement("iframe");r.className=J,r.dataset[Z]=t,r.src=n+"?"+c(i),r.frcSDK=e;const o=r.style;return o.width=o.height=o.border=o.visibility="0",o.display="none",r}(this,i,t);this.agents.set(e,r),this.agentState.set(i,{store:new $(e),origin:e}),document.body.appendChild(r);let o=1;const s=()=>{this.bus.registerTargetIFrame("agent",i,r,this.getRetryTimeout(o)).then((t=>{if("timeout"===t){if(o>4)return console.error("[Friendly Captcha] Failed to load agent iframe after 4 retries."),r.remove(),void this.agents.delete(e);console.warn("[Friendly Captcha] Retrying agent iframe load."),r.src+="&retry="+o++,s()}}))};return s(),i}setupPeriodicRefresh(){let e=1;setInterval((()=>{const t="&expire="+e++;this.agents.forEach((e=>{e.src+=t})),this.widgets.forEach((e=>{e.getElement().querySelector("iframe").src+=t}))}),1296e5)}getRetryTimeout(e){return 1e3*Math.pow(e,1.8)+2e3}attach(e){const[t,n]=[document.querySelectorAll(".frc-captcha"),document.querySelectorAll(".frc-risk-intelligence")];for(let o=0;o<n.length;o++){const e=n[o];if(e&&!e.frcRiskIntelligence){const t=e.dataset,n=t.sitekey;if(!n){console.warn("Risk Intelligence <div> found with no sitekey, skipping...",e);continue}this.riskIntelligenceHandles.push(new oe({element:e,formFieldName:t.formFieldName,startMode:t.start,riskIntelligence:()=>this.riskIntelligence({sitekey:n,apiEndpoint:t.apiEndpoint})}))}}void 0===e&&(e=t),Array.isArray(e)||e instanceof NodeList||(e=[e]);const i=[];for(let o=0;o<e.length;o++){const t=e[o];if(t&&!t.frcWidget){const e=t.dataset,n={element:t,sitekey:e.sitekey,formFieldName:e.formFieldName,apiEndpoint:e.apiEndpoint,language:e.lang,theme:e.theme,startMode:e.start};i.push(this.createWidget(n))}}const r=this.getAllWidgets();return this._attached.resolve(r),this.attached=Promise.resolve(r),i}createWidget(e){function t(t){const i=(r=JSON.stringify({sdk_v:"0.2.0",sitekey:e.sitekey||"",retry:A+"",endpoint:n,ua:navigator.userAgent,tz:z()||""}),window.TextEncoder?function(e){const t=e.length;let n="";for(let i=0;i<t;i+=3){const t=e[i+0],r=e[i+1],o=e[i+2];let s="";s+=re.charAt(t>>>2),s+=re.charAt((3&t)<<4|r>>>4),s+=re.charAt((15&r)<<2|o>>>6),s+=re.charAt(63&o),n+=s}return t%3==2?n=n.substring(0,n.length-1)+"=":t%3==1&&(n=n.substring(0,n.length-2)+"=="),n}((new TextEncoder).encode(r)):"");var r;let o=".ERROR.UNREACHABLE";i&&(o+="~"+i),u.setState({state:"error",response:o,error:{code:"network_error",detail:t}})}const n=P(e.apiEndpoint||this.apiEndpoint||T());this.bus.addOrigin(n);const r=this.ensureAgentIFrame(n),o="w_"+d(12),a=e=>{const t={from_id:o,to_id:r,_frc:1};this.bus.send(E(t,e))},h={onDestroy:()=>{a({type:"root_destroy_widget"}),this.bus.removeTarget(o),this.widgets.delete(o),e.element.innerHTML="",e.element.removeAttribute("style")},onReset:()=>{a({type:"root_reset_widget"})},onTrigger:e=>{a({type:"root_trigger_widget",trigger:e.trigger})}},g=s(),u=new Q({id:o,createOpts:e,callbacks:h,registered:g.promise});this.widgets.set(o,u);const p=function(e,t,n,i){const r=document.createElement("iframe"),o=k(i),s={origin:document.location.origin,sess_id:f(),sess_c:m(!0),comm_id:t,sdk_v:"0.2.0",v:"1",agent_id:e,lang:o,sitekey:i.sitekey||"",ts:Date.now().toString()};i.theme&&(s.theme=i.theme),B&&(r.allow="clipboard-write"),r.frameBorder="0",r.src=n+"?"+c(s),r.className="frc-i-widget",r.title=v(o),r.dataset[Z]=t;const a=r.style;return a.border=a.visibility="0",a.position="absolute",a.height=a.width="100%",a.userSelect="none",a["-webkit-tap-highlight-color"]="transparent",a.display="none",i.element.appendChild(r),r}(r,o,n+"/api/v2/captcha/widget",e),_=function(e){const t=document.createElement("div");t.classList.add("frc-widget-placeholder");const n=t.style,i="dark"===e.theme||"auto"===e.theme&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;return n.color=i?"#fff":"#222",n.backgroundColor=i?"#171717":"#fafafa",n.borderRadius="4px",n.border="1px solid",n.borderColor="#ddd",n.padding="8px",n.height=n.width="100%",n.fontSize="14px",n.boxSizing="border-box",w(n),e.element.appendChild(t),t}(e);!function(e){const t=i;t(e,"position","relative"),t(e,"height","70px"),t(e,"padding","0"),t(e,"width","316px"),t(e,"maxWidth","100%"),t(e,"maxHeight","100%"),t(e,"overflow","hidden"),t(e,"borderRadius","4px")}(e.element),function(e){const t=document.createElement("div");t.classList.add("frc-banner");const n=k(e),i="dark"===e.theme||"auto"===e.theme&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;let r="#565656",o="#a2a2a2";i&&(r="#a2a2a2",o="#565656");const s=t.style;s.position="absolute",s.bottom="6px",y(n)?s.left="6px":s.right="6px",s.lineHeight="1";const a=document.createElement("a");a.href="https://friendlycaptcha.com",a.rel="noopener";const c=a.style;w(c),c.color=r,c.fontSize="10px",c.userSelect="none",c.textDecorationLine="underline",c.textDecorationThickness="1px",c.textDecorationColor=o,c.letterSpacing="-0.0125rem",a.target="_blank",a.textContent="Friendly Captcha",a.onmouseenter=()=>c.textDecorationColor=r,a.onmouseleave=()=>c.textDecorationColor=o,t.appendChild(a),e.element.appendChild(t)}(e);let R=k(e);y(R)&&(e.element.dir="rtl");const S=_.style;_.textContent=b(R,"connecting");let A=1;const x=()=>{this.bus.registerTargetIFrame("widget",o,p,this.getRetryTimeout(A)).then((n=>{if("timeout"===n){if(A>4)return console.error("[Friendly Captcha] Failed to load widget iframe after 4 retries."),t("Widget load timeout, stopped retrying"),S.borderColor="#f00",S.fontSize="12px",void function(e,t,n){const i=[((e,t)=>{const n=document.createElement("a");n.href=e,n.target="_blank",n.rel="noopener",n.textContent=t;
2const i=n.style;return w(i),i.textDecoration="underline",i.color="#565656",n.onmouseenter=()=>i.textDecoration="none",n.onmouseleave=()=>i.textDecoration="underline",n})(`${t}/connectionTest`,b(n,"failed"))];e.textContent="",i.forEach((t=>e.appendChild(t)))}(_,l(p.src),R);S.backgroundColor="#fee",S.color="#222",_.textContent=b(R,"retrying")+` (${A})`,console.warn(`[Friendly Captcha] Retrying widget ${o} iframe load.`),t("Widget load timeout, will retry"),p.src+="&retry="+A++,x()}else"registered"===n&&(e.element.removeChild(_),p.style.display="")}))};return x(),g.resolve(),u}riskIntelligence(e){const t=P(e.apiEndpoint||this.apiEndpoint||T());this.bus.addOrigin(t);const n=this.ensureAgentIFrame(t),i=d(8);this.bus.send({type:"root_risk_intelligence_generate",to_id:n,from_id:"",_frc:1,sitekey:e.sitekey,bypassCache:e.bypassCache||!1,uid:i});const r=s();return this.riskIntelligencePromises.set(i,r),r.promise}clearRiskIntelligence(e){const t=P((null==e?void 0:e.apiEndpoint)||this.apiEndpoint||T());this.bus.addOrigin(t);const n=this.ensureAgentIFrame(t),i=d(8);this.bus.send({type:"root_risk_intelligence_clear",to_id:n,from_id:"",_frc:1,sitekey:null==e?void 0:e.sitekey,uid:i});const r=s();return this.clearRiskIntelligencePromises.set(i,r),r.promise}getAllWidgets(){const e=[];return this.widgets.forEach((t=>{e.push(t)})),e}getWidgetById(e){return this.widgets.get(e)}getAllRiskIntelligenceHandles(){const e=[];return this.riskIntelligenceHandles.forEach((t=>{e.push(t)})),e}clear(){this.widgets.forEach((e=>{e.destroy()})),this.agents.forEach((e=>{e.remove()})),this.agents.clear()}},r((function(){window.frcaptcha.attach()}))})(); 3/*! 4 * Copyright (c) Friendly Captcha GmbH 2023. 5 * This Source Code Form is subject to the terms of the Mozilla Public 6 * License, v. 2.0. If a copy of the MPL was not distributed with this 7 * file, You can obtain one at https://mozilla.org/MPL/2.0/. 8 */ 9/*! 10 * Copyright (c) Friendly Captcha GmbH 2026. 11 * This Source Code Form is subject to the terms of the Mozilla Public 12 * License, v. 2.0. If a copy of the MPL was not distributed with this 13 * file, You can obtain one at https://mozilla.org/MPL/2.0/. 14 */ 15function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _slicedToArray(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(r=function(e){if("object"!==_typeof(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===_typeof(r)?r:String(r)),i)}var r}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}!function(){"use strict";function e(){for(;s.length;)s[0](),s.shift()}function t(e){this.a=c,this.b=void 0,this.f=[];var t=this;try{e((function(e){i(t,e)}),(function(e){r(t,e)}))}catch(n){r(t,n)}}function n(e){return new t((function(t){t(e)}))}function i(e,t){if(e.a==c){if(t==e)throw new TypeError;var n=!1;try{var a=t&&t.then;if(null!=t&&"object"==typeof t&&"function"==typeof a)return void a.call(t,(function(t){n||i(e,t),n=!0}),(function(t){n||r(e,t),n=!0}))}catch(s){return void(n||r(e,s))}e.a=0,e.b=t,o(e)}}function r(e,t){if(e.a==c){if(t==e)throw new TypeError;e.a=1,e.b=t,o(e)}}function o(e){!function(e){s.push(e),1==s.length&&a()}((function(){if(e.a!=c)for(;e.f.length;){var t=(r=e.f.shift())[0],n=r[1],i=r[2],r=r[3];try{0==e.a?i("function"==typeof t?t.call(void 0,e.b):e.b):1==e.a&&("function"==typeof n?i(n.call(void 0,e.b)):r(e.b))}catch(o){r(o)}}}))}var a,s=[];a=function(){setTimeout(e)};var c=2;t.prototype.g=function(e){return this.c(void 0,e)},t.prototype.c=function(e,n){var i=this;return new t((function(t,r){i.f.push([e,n,t,r]),o(i)}))},window.Promise||(window.Promise=t,window.Promise.resolve=n,window.Promise.reject=function(e){return new t((function(t,n){n(e)}))},window.Promise.race=function(e){return new t((function(t,i){for(var r=0;r<e.length;r+=1)n(e[r]).c(t,i)}))},window.Promise.all=function(e){return new t((function(t,i){function r(n){return function(i){a[n]=i,(o+=1)==e.length&&t(a)}}var o=0,a=[];0==e.length&&t(a);for(var s=0;s<e.length;s+=1)n(e[s]).c(r(s),i)}))},window.Promise.prototype.then=t.prototype.c,window.Promise.prototype.catch=t.prototype.g)}(),"undefined"!=typeof Map&&Map.prototype.keys&&"undefined"!=typeof Set&&Set.prototype.keys||function(){function e(e,t){if(t==t)return e.indexOf(t);for(n=0,i=e.length;e[n]==e[n]&&++n!==i;);return n}var t,n,i,r,o,a,s={delete:function(n){return!!~(t=e(this.k,n))&&(this.k.splice(t,1),this.v.splice(t,1),--this.size,!0)},get:function(t){return this.v[e(this.k,t)]},set:function(n,i){return~(t=e(this.k,n))||(this.k[t=this.size++]=n),this.v[t]=i,this},has:function(t){return e(this.k,t)>-1},clear:function(){this.k.length=this.v.length=this.size=0}
vendor: 4,991 bytes, line 15
15,forEach:function(e,t){t&&(e=e.bind(t));for(var n=-1,i=this.size;++n!==i;)e(this.v[n],this.k[n],this)},entries:function(){var e=0,t=this;return{next:function(){return e!==t.size?{value:[t.k[e++],t.v[e]],done:!1}:{done:!0}}}},keys:function(){var e=0,t=this;return{next:function(){return e!==t.size?{value:t.k[e++],done:!1}:{done:!0}}}},values:function(){var e=0,t=this;return{next:function(){return e!==t.size?{value:t.v[e++],done:!1}:{done:!0}}}},toString:function(){return"[object Map]"}};WeakMap=Map=function(t){if(r=this.k=[],o=this.v=[],i=0,null!=t){if(a=Object(t),(n=+a.length)!=n)throw new TypeError("("+(t.toString||a.toString)()+") is not iterable");for(;n--;){if(!(a[n]instanceof Object))throw new TypeError("Iterator value "+a[n]+" is not an entry object");~e(r,a[n][0])||(r[i]=a[n][0],o[i++]=a[n][1])}r.reverse(),o.reverse()}this.size=i},Map.prototype=s,WeakSet=Set=function(t){if(r=this.k=this.v=[],i=0,null!=t){if(a=Object(t),(n=+a.length)!=n)throw new TypeError("("+(t.toString||a.toString)()+") is not iterable");for(;n--;)~e(r,a[n])||(r[i++]=a[n]);r.reverse()}this.size=i},Set.prototype={delete:function(n){return!!~(t=e(this.k,n))&&(this.k.splice(t,1),--this.size,!0)},add:function(n){return~(t=e(this.k,n))||(t=this.size++),this.k[t]=n,this},has:s.has,clear:s.clear,forEach:s.forEach,entries:s.entries,keys:s.keys,values:s.keys,toString:function(){return"[object Set]"}}}(),function(){function e(e){for(;"FORM"!==e.tagName;)if(!(e=e.parentElement))return null;return e}function t(e,t){e.addEventListener("focusin",t,{once:!0,passive:!0})}function n(e,t){var n=document.createElement("input");return n.type="hidden",n.style.display="none",n.name=t,e.appendChild(n),n}function i(e,t,n){""===e.style[t]&&(e.style[t]=n)}function r(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}function o(e,t){var n;"function"==typeof window.CustomEvent?n=new CustomEvent(t.name,{bubbles:!0,detail:t}):(n=document.createEvent("CustomEvent")).initCustomEvent(t.name,!0,!1,t),e.dispatchEvent(n)}function a(e){var t,n,i=new Promise((function(e,i){t=e,n=i}));return e&&e(t,n),{promise:i,resolve:t,reject:n}}function s(e,t){return 0===e.lastIndexOf(t,0)}function c(e){for(var t=[],n=Object.keys(e),i=encodeURIComponent,r=0;r<n.length;r++)t.push("".concat(i(n[r]),"=").concat(i(e[n[r]])));return t.join("&")}function l(e){var t=document.location;if(s(e,"/")||s(e,"."))return t.origin?t.origin:t.protocol+"//"+t.host;var n=e.match(D);if(!n)throw new Error("Invalid URL: "+e);return n[1]}function u(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="",i=0;i<e;i++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}function d(e){return new Promise((function(t,n){e.oncomplete=e.onsuccess=function(){return t(e.result)},e.onabort=e.onerror=function(){return n(e.error)}}))}function f(e,t){var n=indexedDB.open(e);n.onupgradeneeded=function(){return n.result.createObjectStore(t)};var i=d(n);return function(e,n){return i.then((function(i){return n(i.transaction(t,e).objectStore(t))}))}}function h(){return j||(j=f("keyval-store","keyval")),j}function g(e){if(!X){var t=0;try{t=parseInt(sessionStorage.getItem(W)||"",10)}catch(n){}isNaN(t)&&(t=0),e&&t++,Y=t.toString();try{sessionStorage.setItem(W,Y)}catch(n){}}return Y}function m(){var e;try{e=sessionStorage.getItem(V)}catch(t){return q}return e||(e=u(12),sessionStorage.setItem(V,e)),e}function v(e){return e.toLowerCase().split("-")[0].split("_")[0]}function p(e){return e=v(e),-1!==B.indexOf(e)}function y(e){return e=v(e),(U[e]||U.en).title+" - Widget"}function k(e,t){return e=v(e),(U[e]||U.en)[t]}function b(e){e.textDecoration=e.fontStyle="none",e.fontWeight="500",e.fontFamily='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',e.lineHeight="1",e.letterSpacing="-0.0125rem"}function w(e){var t=e.language;return t&&"html"!==t||(t=function(e){for(;!e.lang||"string"!=typeof e.lang;)if(!(e=e.parentElement))return null;return e.lang}(e.element)||""),t}function _(){var e=window.performance;return e?e.now():0}function E(e){for(var t=0;t<(arguments.length<=1?0:arguments.length-1);t++){var n=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e}function S(){var e=[0,0,0,0,0,0,0];return{s:e,add:function(t){var n=++e[0],i=t-e[1],r=i/n,o=r*r,a=i*r*(n-1);e[1]+=r,e[4]+=a*o*(n*n-3*n+3)+6*o*e[2]-4*r*e[3],e[3]+=a*r*(n-2)-3*r*e[2],e[2]+=a,1==n?e[5]=e[6]=t:(t<e[5]&&(e[5]=t),t>e[6]&&(e[6]=t))}}}function R(){return/Android/i.test(navigator.userAgent)}function A(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3?arguments[3]:void 0,a=S(),s=!1;return r((function(){(o=o||document.body)[Q](e,(function(e){s&&!i||(n=e.timeStamp,s=!0)})),o[Q](t,(function(e){s&&(a.add(e.timeStamp-n),s=!1)}))})),a.s}function C(e){for(var t=[],n=function(n){t.push(0),document[Q](e[n],(function(){return t[n]++}
15))},i=0;i<e.length;i++)n(i);return t}function x(e,t,n,i){return $.sqrt($.pow(e-t,2)+$.pow(n-i,2))}function M(e,t,n){return $.sqrt($.pow(e,2)+$.pow(t,2)+$.pow(n,2))}function I(e,t){var n=t-e;return n+(n>180?-360:n<-180?360:0)}function P(e){var t=e;return t?te[t]&&(t=te[t]):t=te.global,l(t)}function T(){var e=document.querySelector('meta[name="frc-api-endpoint"]');if(e)return e.content;var t=document.currentScript;if(t){var n=t.dataset.frcApiEndpoint;if(n)return n}var i=document.querySelector(".frc-captcha[data-api-endpoint]");if(i){var r=i.dataset.apiEndpoint;if(r)return r}}function F(){var e=window.Intl;if(e&&e.DateTimeFormat){var t=new e.DateTimeFormat;if(t&&t.resolvedOptions)return t.resolvedOptions().timeZone}}var j,z,O,D=/^((?:\w+:)?\/\/([^\/]+))/,N=function(){function e(t){_classCallCheck(this,e),this.ready=!1,this.buffer=[],this.id=t.id,this.type=t.type,this.element=t.element,this.onReady=t.onReady,this.origin=l(t.element.src)}return _createClass(e,[{key:"send",value:function(e){this.ready?this.element.contentWindow.postMessage(e,this.origin):this.buffer.push(e)}},{key:"setReady",value:function(e){this.onReady(),this.ready=e,this.ready&&this.flush()}},{key:"flush",value:function(){for(var e=0;e<this.buffer.length;e++)this.element.contentWindow.postMessage(this.buffer[e],this.origin);this.buffer=[]}}]),e}(),L=function(){function e(){var t=this;_classCallCheck(this,e),this.origins=new Set,this.targets={},this.answered=new Set,this.onReceiveRootMessage=function(){},window.addEventListener("message",(function(e){t.onReceive(e)}))}return _createClass(e,[{key:"listen",value:function(e){var t=this.onReceiveRootMessage;this.onReceiveRootMessage=function(n){t(n),e(n)}}},{key:"addOrigin",value:function(e){this.origins.add(e)}},{key:"send",value:function(e){if(e.from_id){var t=this.targets[e.from_id];if(!t)return void console.error("[bus] Unexpected message from unknown sender ".concat(e.from_id),e);"widget_announce"!==e.type&&"agent_announce"!==e.type||t.setReady(!0)}var n=e.rid;if(n){if(this.answered.has(n+e.to_id))return;this.answered.add(n+e.to_id)}if(""!==e.to_id){var i=this.targets[e.to_id];i?i.send(e):console.error("[bus] Unexpected message to unknown target ".concat(e.to_id),e)}else this.onReceiveRootMessage(e)}},{key:"onReceive",value:function(e){if(t=e.origin,n=this.origins,"*"===t||n.has(t)){var t,n,i=e.data;i&&i._frc&&this.send(i)}}},{key:"registerTarget",value:function(e){this.targets[e.id]=e}},{key:"registerTargetIFrame",value:function(e,t,n,i){var r=a(),o=new Promise((function(e){return setTimeout((function(){return e("timeout")}),i)})),s=new N({id:t,element:n,type:e,onReady:function(){return r.resolve("registered")}});return this.registerTarget(s),Promise.race([r.promise,o])}},{key:"removeTarget",value:function(e){delete this.targets[e]}}]),e}(),W="frc_sc",V="frc_sid",X=!1,Y="0",q="__"+u(10),H=function(){function e(t){_classCallCheck(this,e),this.mem=new Map,this.storePrefix=t}return _createClass(e,[{key:"setup",value:function(){var e=this;return new Promise((function(t,n){if(void 0!==e._hasSA)return t(e._hasSA);try{indexedDB.open("")}catch(i){return t(e._hasSA=!1)}if(!document.hasStorageAccess)return t(e._hasSA=!0);document.hasStorageAccess().then((function(n){return e._hasSA=n,e._hasSA?e.idb=f("friendlycaptcha","frc"):console.debug("FRC has no storage access"),t(e._hasSA)})).catch(n)}))}},{key:"get",value:function(e,t){var n=this;return this.setup().then((function(i){var r=n.storePrefix+"__"+e;if(t.p)return i?function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:h())("readonly",(function(t){return d(t.get(e))}))}(r,n.idb):n.mem.get(e);try{var o=sessionStorage.getItem(r);return null===o?void 0:o}catch(a){}return n.mem.get(e)}))}},{key:"set",value:function(e,t,n){var i=this;return this.setup().then((function(r){var o=i.storePrefix+"__"+e;if(n.p){if(r)return function(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:h())("readwrite",(function(n){return n.put(t,e),d(n.transaction)}))}(o,t,i.idb);void 0===t?i.mem.delete(e):i.mem.set(e,t)}else try{void 0===t?(i.mem.delete(e),sessionStorage.removeItem(o)):(i.mem.set(e,t),sessionStorage.setItem(o,t))}catch(a){}}))}},{key:"hasSA",value:function(){return this._hasSA}}]),e}(),K="undefined"!=typeof navigator&&void 0!==navigator.userAgentData,U={ar:{title:"Ø§ÙØªØÙÙ Ù
Ù Ù
ÙØ§ÙØØ© Ø§ÙØ±ÙØ¨ÙØªØ§Øª",connecting:"Ø§ÙØªØÙÙ Ù
Ù Ù
ÙØ§ÙØØ© Ø§ÙØ±ÙØ¨ÙØªØ§Øª ÙÙØ¯ Ø§ÙØ§ØªØµØ§Ùâ¦",retrying:"Ø§Ø³ØªØºØ±Ù Ø§ÙØ§ØªØµØ§Ù Ø¨Ø§ÙØªØÙÙ Ù
Ù Ù
ÙØ§ÙØØ© Ø§ÙØ±ÙØ¨ÙØªØ§Øª ÙÙØªÙا Ø·ÙÙÙØ§Ù.\n\nإعادة اÙÙ
ØØ§ÙÙØ©â¦",failed:"ÙØ´Ù Ø§ÙØ§ØªØµØ§Ù Ø¨Ø§ÙØªØÙÙ Ù
Ù Ù
ÙØ§ÙØØ© Ø§ÙØ±ÙØ¨ÙØªØ§Øª."},bg:{title:"ÐÑовеÑка ÑÑеÑÑ ÑобоÑи",connecting:"ÐаÑежда Ñе задаÑаÑаâ¦",retrying:"ÐеÑÑпеÑно ÑвÑÑзване.\n\nÐÐ¿Ð¸Ñ Ð·Ð° повÑоÑно ÑвÑÑзванеâ¦",failed:"ÐеÑÑпеÑно ÑвÑÑзване."},ca:{title:"Verificació anti-robot",connecting:"Carregant el desafiamentâ¦",retrying:"Errada de conexió.\n\nReintentantâ¦",failed:"Errada de conexió."},cs:{title:"OvÄÅenà proti robotům",connecting:"PÅipojovánà kontroly proti robotůmâ¦",retrying:"PÅipojenà kontroly proti robotům trvalo pÅÃliÅ¡ dlouho.\n\nOpakuji pokusâ¦",failed:"Kontrola proti robotům se nepodaÅilo pÅipojit."},da:{title:"Anti-robot-verifikation",connecting:"Anti-robot-kontrol forbinderâ¦",retrying:"Anti-robot-kontrol tog for lang tid at oprette forbindelse.\n\nPrøver igenâ¦",failed:"Anti-robot-kontrol kunne ikke oprette forbindelse."},nl:{title:"Anti-robotcheck",connecting:"Verbinden met Anti-robotcheckâ¦",retrying:"Verbinden met Anti-robotcheck mislukt.\n\nOpnieuw aan het proberenâ¦",failed:"Verbinden met Anti-robotcheck mislukt."},en:{title:"Anti-Robot verification",connecting:"Anti-Robot check connectingâ¦",retrying:"Anti-Robot check took too long to connect.\n\nRetryingâ¦",failed:"Anti-Robot check failed to connect."},fi:{title:"Robottien torjunnan vahvistus",connecting:"Robottien torjunnan tarkistus käynnissäâ¦",retrying:"Robottien torjunnan tarkistus kesti liian kauan.\n\nYritetään uudelleenâ¦",failed:"Robottien torjunnan tarkistus epäonnistui."},fr:{title:"Vérification anti-robot",connecting:"Connexion à la vérification anti-robotâ¦",retrying:"La connexion à la vérification anti-robot a pris trop de temps.\n\nNouvelle tentativeâ¦",failed:"Ãchec de la connexion à la vérification anti-robot."},de:{title:"Anti-Roboter-Verifizierung",connecting:"Verbindung zur Anti-Roboter-Verifizierung wird hergestelltâ¦",retrying:"Verbindung zur Anti-Roboter-Verifizierung hat zu lange gedauert.\n\nErneuter Versuchâ¦",failed:"Verbindung zur Anti-Roboter-Verifizierung ist fehlgeschlagen."},hi:{title:"à¤à¤à¤à¥-रà¥à¤¬à¥à¤ सतà¥à¤¯à¤¾à¤ªà¤¨",connecting:"à¤à¥à¤¨à¥à¤¤à¥ लà¥à¤¡ हॠरहॠहà¥â¦",retrying:"à¤à¤¨à¥à¤à¥à¤¶à¤¨ विफल.\n\nपà¥à¤¨à¤ पà¥à¤°à¤¯à¤¾à¤¸ à¤à¤° रहॠहà¥à¤â¦",failed:"à¤à¤¨à¥à¤à¥à¤¶à¤¨ विफल."},hu:{title:"RobotellenÅrzés",connecting:"RobotellenÅrzés csatlakozásâ¦",retrying:"A robotellenÅrzés túl sokáig tartott a csatlakozáshoz.\n\nÃjrapróbálomâ¦",failed:"A robotellenÅrzés nem tudott csatlakozni."},id:{title:"Verifikasi Anti-Robot",connecting:"Pemeriksaan Anti-Robot sedang terhubungâ¦",retrying:"Pemeriksaan Anti-Robot memakan waktu terlalu lama untuk terhubung.\n\nMencoba lagiâ¦",failed:"Pemeriksaan Anti-Robot gagal terhubung."},ja:{title:"ãããã鲿¢èªè¨¼",connecting:"ãã£ã¬ã³ã¸ãèªã¿è¾¼ãã§ãã¾ãâ¦",retrying:"æ¥ç¶å¤±æ.\n\nå試è¡ä¸â¦",failed:"æ¥ç¶å¤±æ."},it:{title:"Verifica anti-robot",connecting:"Connessione verifica anti-robot in corsoâ¦",retrying:"La connessione alla verifica anti-robot ha richiesto troppo tempo.\n\nRiprovandoâ¦",failed:"Impossibile connettersi alla verifica anti-robot."},nb:{title:"Anti-robot-verifisering",connecting:"Laster inn utfordringâ¦",retrying:"Klarte ikke Ã¥ koble til.\n\nPrøver igjenâ¦",failed:"Klarte ikke Ã¥ koble til."},pl:{title:"Weryfikacja antyrobotowa",connecting:"ÅÄ
czenie siÄ z kontrolÄ
antyrobotowÄ
â¦",retrying:"ÅÄ
czenie siÄ z kontrolÄ
antyrobotowÄ
trwaÅo zbyt dÅugo. \n\nPonowna próbaâ¦",failed:"Nie udaÅo siÄ poÅÄ
czyÄ z kontrolÄ
antyrobotowÄ
."},ro:{title:"Verificare anti-robot",connecting:"Se incarca testulâ¦",retrying:"Conexiunea a esuat.\n\nReincercareâ¦",failed:"Conexiunea a esuat."},pt:{title:"Verificação anti-robô",connecting:"Verificação anti-robô a ligarâ¦",retrying:"A verificação anti-robô demorou demasiado tempo a ligar-se.\n\nA tentar novamenteâ¦",failed:"A verificação anti-robô não conseguiu ligar-se."},ru:{title:"ÐÑовеÑка анÑиÑобоÑа",connecting:"ÐодклÑÑение к пÑовеÑке анÑиÑобоÑаâ¦",retrying:"ÐодклÑÑение к пÑовеÑке анÑиÑобоÑа занÑло ÑлиÑком много вÑемени.\n\nÐовÑоÑÑем попÑÑкÑâ¦",failed:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð´ÐºÐ»ÑÑиÑÑÑÑ Ðº пÑовеÑке анÑиÑобоÑа."},sk:{title:"Overovanie proti robotom",connecting:"Pripojenie kontroly proti robotomâ¦",retrying:"Pripojenie kontroly proti robotom trvalo prÃliÅ¡ dlho.\n\nOpakujem pokusâ¦",failed:"Pripojenie kontroly proti robotom sa nepod
15arilo."},sl:{title:"Preverjanje proti robotom",connecting:"Nalaganje izzivaâ¦",retrying:"Povezava ni uspela.\n\nPonovni poskusâ¦",failed:"Povezava ni uspela."},es:{title:"Verificación antirrobot",connecting:"Conectando verificación antirrobotâ¦",retrying:"La verificación antirrobot tardó demasiado en conectarse.\n\nReintentandoâ¦",failed:"Error al conectar la verificación antirrobot."},sv:{title:"Anti-robotverifiering",connecting:"Anti-robotverifiering ansluterâ¦",retrying:"Anti-robotverifiering tog för lÃ¥ng tid att ansluta.\n\nFörsöker igenâ¦",failed:"Anti-robotverifiering kunde inte ansluta."},th:{title:"à¸à¸²à¸£à¸à¸£à¸§à¸à¸ªà¸à¸à¸à¹à¸à¸à¸à¸±à¸à¸à¸à¸",connecting:"à¸à¸³à¸¥à¸±à¸à¹à¸«à¸¥à¸à¸à¸²à¸£à¸à¹à¸²à¸à¸²à¸¢â¦",retrying:"à¹à¸à¸·à¹à¸à¸¡à¸à¹à¸à¹à¸¡à¹à¸ªà¸³à¹à¸£à¹à¸.\n\nà¸à¸³à¸¥à¸±à¸à¸¥à¸à¸à¹à¸«à¸¡à¹â¦",failed:"à¹à¸à¸·à¹à¸à¸¡à¸à¹à¸à¹à¸¡à¹à¸ªà¸³à¹à¸£à¹à¸."},tr:{title:"Robot önleme doÄrulaması",connecting:"Robot önleme kontrolü baÄlanıyorâ¦",retrying:"Robot önleme kontrolü baÄlanmak için çok uzun sürdü.\n\nYeniden deniyorâ¦",failed:"Robot önleme kontrolü baÄlanamadı."},vi:{title:"Xác minh chá»ng robot",connecting:"Kiá»m tra robot Äang kết ná»iâ¦",retrying:"Kiá»m tra chá»ng robot mất quá nhiá»u thá»i gian Äá» kết ná»i.\n\nÄang thá» lạiâ¦",failed:"Kiá»m tra chá»ng robot không thá» kết ná»i."},zh:{title:"åæºå¨äººéªè¯",connecting:"åæºå¨äººéªè¯æ£å¨è¿æ¥â¦",retrying:"åæºå¨äººéªè¯è¿æ¥èæ¶è¿é¿ã\n\næ£å¨éè¯â¦",failed:"åæºå¨äººéªè¯è¿æ¥å¤±è´¥ã"}},B=["ar","he","fa","ur","ps","sd","yi"],G="FrcFrameId",Z="frc-i-agent",J=function(){function i(e){var t=this;_classCallCheck(this,i),this.state="init",this.response=".UNINITIALIZED",this.focusEventPending=!1,this.isDestroyed=!1,this.id=e.id;var r=e.createOpts;if(this.e=r.element,this.ready=e.registered,!this.e)throw new Error("No element provided to mount widget under.");this.e.frcWidget=this,this.formFieldName=void 0===r.formFieldName?"frc-captcha-response":r.formFieldName,this.sitekey=r.sitekey,this._reset=e.callbacks.onReset,this._destroy=e.callbacks.onDestroy,this._trigger=e.callbacks.onTrigger,this.startMode=e.createOpts.startMode||"focus",null!==this.formFieldName&&(this.hiddenFormEl=n(this.e,this.formFieldName)),this.setState({response:".UNCONNECTED",state:"init"}),this.ready.then((function(){t.handleStartMode()}))}return _createClass(i,[{key:"handleStartMode",value:function(){var n=this;if("focus"!==this.startMode||this.focusEventPending||this.isDestroyed)"auto"===this.startMode&&this.trigger("auto");else{var i=e(this.e);i&&(this.focusEventPending=!0,t(i,(function(e){n.trigger("focus",{ev:e}),n.focusEventPending=!1})))}}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{trigger:"root"};if(this.isDestroyed)throw new Error("Can not reset destroyed widget.");this.setState({response:".RESET",state:"reset",resetTrigger:e.trigger}),this._reset(e),this.handleStartMode()}},{key:"destroy",value:function(){this.isDestroyed=!0,this.hiddenFormEl&&this.hiddenFormEl.remove(),this.hiddenFormEl=void 0,this.setState({response:".DESTROYED",state:"destroyed"}),this._destroy()}},{key:"trigger",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isDestroyed)throw new Error("Can not start destroyed widget.");var n=function(e,t,n,i){var r=_(),o=n.getBoundingClientRect(),a={v:1,tt:e,pnow:r,sm:t,el:{bcr:[o.left,o.top,o.width,o.height],con:document.body.contains(n)},stack:(new Error).stack||"",we:!!window.event,weit:!!window.event&&!!window.event.isTrusted};return i&&(a.ev={ts:i.timeStamp,rt:!!i.relatedTarget,eot:!!i.explicitOriginalTarget,it:i.isTrusted}),a}(e,this.startMode,this.e,t.ev);this._trigger({trigger:n})}},{key:"start",value:function(){this.trigger("programmatic")}},{key:"setState",value:function(e){var t=this.state!==e.state;this.response=e.response,this.state=e.state,this.hiddenFormEl&&!1!==this.e.isConnected&&(this.hiddenFormEl.value=e.response),t&&this.dispatchWidgetEvent({name:"frc:widget.statechange",error:e.error,mode:e.mode}),"expired"===this.state?this.dispatchWidgetEvent({name:"frc:widget.expire"}):"completed"===this.state?this.dispatchWidgetEvent({name:"frc:widget.complete"}):"error"===this.state?this.dispatchWidgetEvent({name:"frc:widget.error",error:e.error}):"reset"===this.state&&this.dispatchWidgetEvent({name:"frc:widget.reset",trigger:e.resetTrigger})}},{key:"dispatchWidgetEvent",value:function(e){var t={response:this.response,state:this.state,id:this.id};E(t,e),o(this.e,t)}},{key:"addEventListener",value:function(e,t,n){this.e.addEventListener(e,t,n)}},{key:"removeEventListener",value:function(e,t,n){this.e.removeEventListener(e,t,n)}},{key:"getState",value:function(){return this.state}},{key:"getResponse",value:function(){return this.response}},{key:"getElement",value:function(){return this.e}}]),i}(),Q="addEventListener",$=Math,ee=function(){function e(t){_classCallCheck(this,e),this.rn=0,this.i=0,this.smel={n:0,ts:0,d:0};var n,i,o="mouse",a=this.smel,s=function(e){a.n||(a.fts=e.timeStamp,a.fxy=[e.clientX,e.clientY,e.screenX,e.screenY]),a.n++,e.type===o+"leave"&&(a.d+=e.timeStamp-a.ts
vendor: 9,589 bytes, line 15
15),a.ts=e.timeStamp,a.xy=[e.clientX,e.clientY]},c=document;r((function(){var e=c.body;e[Q](o+"enter",s),e[Q](o+"leave",s)})),this.bh={onoff:{kdu:A("keydown","keyup"),cse:A("compositionstart","compositionend"),mdu:A(o+"down",o+"up"),mle:A(o+"leave",o+"enter"),med:A(o+"enter",o+"down",!0),semd:A("scrollend",o+"down",!0,c),se:A("scroll","scrollend",!1,c),pdc:A("pointerdown","pointercancel",!0),mmc:A(o+"move","click",!0),tse:A("touchstart","touchend"),fikd:A("focusin","keydown",!0)},nev:C([o+"out","pointercancel","focus","focusin","blur","visibilitychange","copy","paste","cut","contextmenu","click","auxclick","wheel","resize"]),nk:(n=[0,0,0,0,0,0,0,0],i={8:1,46:1,9:2,45:3,17:4,13:5,37:6,38:6,39:6,40:6,33:7,34:7},document[Q]("keydown",(function(e){var t=e.keyCode;i[t]?n[i[t]]++:t>=112&&t<=123&&n[0]++})),n),mov:this.setupMovementMetrics(),dm:this.setupMotionMetrics(),do:this.setupOrientationMetrics()},this.dep=t.disableEvalPatching||!1,this.takeTraceRecords=function(e){var t=[],n=new Map,i=window,r=function(){try{var e=document.createElement("iframe");e.style.display="none",(document.body||document.head).appendChild(e);var t=e?e.contentWindow:0;return e.remove(),t||i}catch(n){return i}}(),o=Function.prototype.toString,a=function(){for(var e="function"==typeof this&&n.get(this),t=this===a?o:e||this,i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return o.apply(t,r)};Function.prototype.toString=a;var s="prototype",c=i.EventTarget?i.EventTarget[s].dispatchEvent:{},l=[["Document."+s+".documentElement",i.Document[s],"documentElement"],["Element."+s+".shadowRoot",i.Element[s],"shadowRoot"],["Node."+s+".nodeType",i.Node[s],"nodeType"],["Object.is",i.Object,"is"],["Array."+s+".slice",i.Array[s],"slice"],["Document."+s+".querySelectorAll",i.Document[s],"querySelectorAll"],["Document."+s+".createElement",i.Document[s],"createElement"],["EventTarget."+s+".dispatchEvent",c,"dispatchEvent"]];return e.disableEvalPatching||l.push(["eval",i,"eval"]),l.forEach((function(e){var o=_slicedToArray(e,3),a=o[0],s=o[1],c=o[2],l=Object.getOwnPropertyDescriptor(s,c),u=l&&(l.get||l.set);if(l){if(u){if(!l.get)return}else if("object"!==_typeof(l.value)&&"function"!=typeof l.value)return;var d=0,f=0,h=function(){var e=Date.now();if(e-d>=1e3&&(f=0,d=e),f<50){var n={d:e,pnow:_(),n:a,st:(r.Error||i.Error)("FriendlyCaptcha_DummyTrace").stack||""};t.length>2e4&&t.splice(0,1e3),t.push(n),f++}for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];return(u?l.get:l.value).apply(this,s)};try{var g=u?l.get?l.get():void 0:l.value();g&&(h.length=g.length,h.name=g.name)}catch(v){}try{var m=E({},l);u?m.get=h:m.value=h,Object.defineProperty(s,c,m),n.set(h,u?l.get:l.value)}catch(v){}}})),function(){return t.splice(0,t.length)}}(t)}return _createClass(e,[{key:"setupMovementMetrics",value:function(){var e=this,t=void 0,n=[],i=S(),o=S(),a=S(),s={t:i.s,v:a.s,d:o.s,ns:0},c=function(){var r=n[n.length-1];if(n.length>=200||r&&(r[0]&&e.tm.timeStamp===r[1]||!r[0]&&e.mm.timeStamp===r[1])){if(clearInterval(t),t=void 0,1===n.length)return s.ns++,void(n=[]);var c=n[0];i.add(r[1]-c[1]),o.add(x(r[2],c[2],r[3],c[3]));for(var l=1;l<n.length;l++){var u=n[l],d=n[l-1],f=1e3*x(u[2],d[2],u[3],d[3]),h=u[1]-d[1];a.add(f/h)}n=[]}else{var g=0;if(r?g=r[0]:e.mm&&e.tm?g=e.mm.timeStamp>e.tm.timeStamp?0:1:e.mm||(g=1),g){var m=e.tm.touches[0];m&&n.push([1,e.tm.timeStamp,m.screenX,m.screenY])}else n.push([0,e.mm.timeStamp,e.mm.screenX,e.mm.screenY])}},l=-1;return r((function(){var n=document.body;n[Q]("mousemove",(function(n){e.mm=n,void 0===t&&(c(),t=setInterval(c,50))})),n[Q]("touchmove",(function(n){e.tm=n;var i=n.touches[0];if(i){var r=i.radiusX+1.234*i.radiusY;r!==l&&(l=r,e.rn++)}void 0===t&&(c(),t=setInterval(c,50))}))})),s}},{key:"setupMotionMetrics",value:function(){var e=S(),t=S(),n={n:0,ts:0,ac:e.s,rr:t.s,i:0,g:!1};return R()?(window[Q]("devicemotion",(function(i){n.ts=i.timeStamp,n.i=i.interval,n.g=!i.acceleration;var r=i.acceleration||i.accelerationIncludingGravity;r&&e.add(M(r.x,r.y,r.z));var o=i.rotationRate;o&&t.add(M(o.alpha,o.beta,o.gamma))})),n):n}},{key:"setupOrientationMetrics",value:function(){var e,t=S(),n=S(),i={fts:0,ts:0,gd:t.s,bd:n.s};return R()?(window[Q]("deviceorientation",(function(r){null!=r.gamma&&null!=r.beta&&null!=r.alpha&&(i.ts=r.timeStamp,i.a=r.alpha,i.b=r.beta,i.g=r.gamma,e?(t.add(I(r.gamma,i.g)),n.add(I(i.b,r.beta))):(i.fts=i.ts,e=!0))})),i):i}},{key:"gmm",value:function(){var e=this.mm;return e&&{xy:[e.clientX,e.clientY,e.screenX,e.screenY,e.offsetX,e.offsetY,e.pageX,e.pageY,e.movementX,e.movementY],ts:e.timeStamp}}},{key:"gtm",value:function(){var e=this.tm,t=e&&e.touches,n=t&&t[0];return e&&n&&{id:n.identifier,xy:[n.clientX,n.clientY,n.screenX,n.screenY,n.pageX,n.pageY],r:[n.radiusX,n.radiusX,n.rotationAngle,n.force],n:t.length,ts:e.timeStamp,rn:this.rn}}},{key:"get",value:function(e){var t=document.body,n=window,i=n.performance;return{v:1,i:++this.i,hl:history.length,fe:!!window.frameElement,dep:this.dep,wid:e,sc:parseInt(g(!1)),sid:m(),conv:0,t:{pnow:_(),pto:i&&i.timeOrigin||0,ts:Date.now()},dims:{d:[n.innerWidth,n.innerHeight,n.outerWidth,n.outerHeight,n.screenX,n.screenY,n.pageXOffset,n.pageYOffset,t.clientWidth,t.clientHeight],dpr:n.devicePixelRatio},mel:this.smel,mm:this.gmm(),tm:this.gtm(),bh:this.bh,stack:(new Error).stack||"",trc:this.takeTraceRecords()}}}]),e}(),te={eu:"https://eu.frcapi.com",global:"https://global.frcapi.com"},ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",ie=function(){function i(e){if(_classCallCheck(this,i),this.timeout=null,this.data=null,this.e=e.element,!this.e)throw new Error("No element provided for mounting Risk Intelligence handle.");this.e.frcRiskIntelligence=this,this.formFieldName=void 0===e.formFieldName?"frc-risk-intelligence-token":e.formFieldName,null!==this.formFieldName&&(this.hiddenFormEl=n(this.e,this.formFieldName)),this.startMode=e.startMode||"focus",this.requestRiskIntelligence=e.riskIntelligence,this.handleStartMode()}return _createClass(i,[{key:"handleStartMode",value:function(){var n=this;if("none"===this.startMode)console.warn('Risk Intelligence <div> found with data-start="none" (no-op), skipping...',this.e);else if("auto"===this.startMode)this.request();else{var i=e(this.e);i?t(i,(function(){n.request()})):console.warn('Risk Intelligence <div> with startMode of "focus" found without a parent <form> element, skipping...',this.e)}}},{key:"request",value:function(){var e=this;this.requestRiskIntelligence().then((function(t){null!==e.timeout&&clearTimeout(e.timeout),e.timeout=setTimeout((function(){o(e.e,{name:"frc:riskintelligence.expire"})}),t.expiresAt-Date.now()),e.data={token:t.token,expiresAt:t.expiresAt},e.hiddenFormEl&&(e.hiddenFormEl.value=t.token),o(e.e,{name:"frc:riskintelligence.complete",token:t.token,expiresAt:t.expiresAt})})).catch((function(t){o(e.e,{name:"frc:riskintelligence.error",error:{code:t.code,detail:t.detail}})}))}},{key:"getData",value:function(){return this.data}},{key:"getElement",value:function(){return this.e}},{key:"addEventListener",value:function(e,t,n){this.e.addEventListener(e,t,n)}},{key:"removeEventListener",value:function(e,t,n){this.e.removeEventListener(e,t,n)}}]),i}(),re="FrcFrameId",oe=0,ae=function(){function e(){var t,n=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,e),this.agents=new Map,this.agentState=new Map,this.widgets=new Map,this._attached=a(),this.attached=this._attached.promise,this.riskIntelligencePromises=new Map,this.clearRiskIntelligencePromises=new Map,this.riskIntelligenceHandles=[],this.apiEndpoint=i.apiEndpoint,(O=O||new L).listen((function(e){return n.onReceiveMessage(e)})),this.bus=O,++oe>1&&console.warn("Multiple Friendly Captcha SDKs created, this is not recommended. Please use a single SDK instance."),this.signals=function(e){return z||(z=new ee(e))}({disableEvalPatching:i.disableEvalPatching||(t=document.querySelector('meta[name="frc-disable-eval-patching"]'),!!t&&!!t.content)}),i.startAgent){var r=P(this.apiEndpoint||T());this.ensureAgentIFrame(r)}this.setupPeriodicRefresh()}return _createClass(e,[{key:"onReceiveMessage",value:function(e){if("root_set_response"===e.type){var t=this.widgets.get(e.widget_id);if(!t)return void(1===oe&&console.warn("Received set response message for widget ".concat(e.widget_id," that doesn't exist")));t.setState(e)}else if(s(e.type,"root_store"))this.handleStoreMessage(e);else if("root_signals_get"===e.type)this.handleSignalsGetMessage(e);else if("widget_language_change"===e.type)this.handleWidgetLanguageChange(e);else if("widget_reset"===e.type){var n=this.widgets.get(e.from_id);if(!n)return void(1===oe&&console.warn("Received reset message for widget ".concat(e.from_id," that doesn't exist")));n.reset({trigger:"widget"})}else s(e.type,"root_risk_intelligence")&&this.handleRiskIntelligenceMessage(e)}},{key:"handleRiskIntelligenceMessage",value:function(e){if("root_risk_intelligence_generate_reply"===e.type){var t=this.riskIntelligencePromises.get(e.uid);t?(e.data?t.resolve(e.data):e.error?t.reject(e.error):console.warn("Received risk intelligence generate reply message with no data"),this.riskIntelligencePromises.delete(e.uid)):console.warn("Received risk intelligence generate reply message with no promise to resolve")}else if("root_risk_intelligence_clear_reply"===e.type){var n=this.clearRiskIntelligencePromises.get(e.uid);n?e.error?n.reject(e.error):n.resolve():console.warn("Received risk intelligence clear reply message with no promise to resolve"),this.clearRiskIntelligencePromises.delete(e.uid)}}}
15,{key:"handleWidgetLanguageChange",value:function(e){var t=this.widgets.get(e.from_id);if(t){var n=t.getElement(),i=n.querySelector("iframe");i&&(i.title=y(e.language));var r=n.querySelector(".frc-banner");if(r){var o=r.style;p(e.language)?(o.left="6px",o.right="auto"):(o.left="auto",o.right="6px")}}else 1===oe&&console.warn("Received language change message for widget ".concat(e.from_id," that doesn't exist"))}},{key:"handleSignalsGetMessage",value:function(e){var t=this.signals.get(e.widget_id);this.bus.send({type:"root_signals_get_reply",from_id:"",to_id:e.from_id,_frc:1,rid:e.rid,value:t})}},{key:"handleStoreMessage",value:function(e){var t=this,n=e.from_id,i=this.agentState.get(n);i?"root_store_get"===e.type?i.store.get(e.key,{p:e.p}).then((function(r){t.bus.send({type:"root_store_get_reply",from_id:"",to_id:n,_frc:1,rid:e.rid,value:r,sa:i.store.hasSA()})})):"root_store_set"===e.type&&i.store.set(e.key,e.value,{p:e.p}).then((function(){t.bus.send({type:"root_store_set_reply",from_id:"",to_id:n,_frc:1,rid:e.rid,sa:i.store.hasSA()})})):console.error("Store not found ".concat(n))}},{key:"ensureAgentIFrame",value:function(e){for(var t=this,n=e+"/api/v2/captcha/agent",i=document.getElementsByClassName(Z),r=0;r<i.length;r++){var o=i[r];if(l(o.src)===e&&o.dataset[re])return o.dataset[re]}var a="a_"+u(12),s=function(e,t,n){var i={origin:document.location.origin,sess_id:m(),sess_c:g(!0),comm_id:t,sdk_v:"0.2.0",v:"1",agent_id:t,ts:Date.now().toString()},r=document.createElement("iframe");r.className=Z,r.dataset[G]=t,r.src=n+"?"+c(i),r.frcSDK=e;var o=r.style;return o.width=o.height=o.border=o.visibility="0",o.display="none",r}(this,a,n);this.agents.set(e,s),this.agentState.set(a,{store:new H(e),origin:e}),document.body.appendChild(s);var d=1;return function n(){t.bus.registerTargetIFrame("agent",a,s,t.getRetryTimeout(d)).then((function(i){if("timeout"===i){if(d>4)return console.error("[Friendly Captcha] Failed to load agent iframe after 4 retries."),s.remove(),void t.agents.delete(e);console.warn("[Friendly Captcha] Retrying agent iframe load."),s.src+="&retry="+d++,n()}}))}(),a}},{key:"setupPeriodicRefresh",value:function(){var e=this,t=1;setInterval((function(){var n="&expire="+t++;e.agents.forEach((function(e){e.src+=n})),e.widgets.forEach((function(e){e.getElement().querySelector("iframe").src+=n}))}),1296e5)}},{key:"getRetryTimeout",value:function(e){return 1e3*Math.pow(e,1.8)+2e3}},{key:"attach",value:function(e){for(var t=this,n=_slicedToArray([document.querySelectorAll(".frc-captcha"),document.querySelectorAll(".frc-risk-intelligence")],2),i=n[0],r=n[1],o=function(){var e=r[a];if(e&&!e.frcRiskIntelligence){var n=e.dataset,i=n.sitekey;if(!i)return console.warn("Risk Intelligence <div> found with no sitekey, skipping...",e),1;t.riskIntelligenceHandles.push(new ie({element:e,formFieldName:n.formFieldName,startMode:n.start,riskIntelligence:function(){return t.riskIntelligence({sitekey:i,apiEndpoint:n.apiEndpoint})}}))}},a=0;a<r.length;a++)o();void 0===e&&(e=i),Array.isArray(e)||e instanceof NodeList||(e=[e]);for(var s=[],c=0;c<e.length;c++){var l=e[c];if(l&&!l.frcWidget){var u=l.dataset,d={element:l,sitekey:u.sitekey,formFieldName:u.formFieldName,apiEndpoint:u.apiEndpoint,language:u.lang,theme:u.theme,startMode:u.start};s.push(this.createWidget(d))}}var f=this.getAllWidgets();return this._attached.resolve(f),this.attached=Promise.resolve(f),s}},{key:"createWidget",value:function(e){function t(t){var n,i=(n=JSON.stringify({sdk_v:"0.2.0",sitekey:e.sitekey||"",retry:M+"",endpoint:r,ua:navigator.userAgent,tz:F()||""}),window.TextEncoder?function(e){for(var t=e.length,n="",i=0;i<t;i+=3){var r=e[i+0],o=e[i+1],a=e[i+2],s="";s+=ne.charAt(r>>>2),s+=ne.charAt((3&r)<<4|o>>>4),s+=ne.charAt((15&o)<<2|a>>>6),n+=s+=ne.charAt(63&a)}return t%3==2?n=n.substring(0,n.length-1)+"=":t%3==1&&(n=n.substring(0,n.length-2)+"=="),n}((new TextEncoder).encode(n)):""),o=".ERROR.UNREACHABLE";i&&(o+="~"+i),v.setState({state:"error",response:o,error:{code:"network_error",detail:t}})}var n=this,r=P(e.apiEndpoint||this.apiEndpoint||T());this.bus.addOrigin(r);var o=this.ensureAgentIFrame(r),s="w_"+u(12),d=function(e){var t={from_id:s,to_id:o,_frc:1};n.bus.send(E(t,e))},f={onDestroy:function(){d({type:"root_destroy_widget"}),n.bus.removeTarget(s),n.widgets.delete(s),e.element.innerHTML="",e.element.removeAttribute("style")},onReset:function(){d({type:"root_reset_widget"})},onTrigger:function(e){d({type:"root_trigger_widget",trigger:e.trigger})}},h=a(),v=new J({id:s,createOpts:e,callbacks:f,registered:h.promise});this.widgets.set(s,v);var _,S,R=function(e,t,n,i){var r=document.createElement("iframe"),o=w(i),a={origin:document.location.origin,sess_id:m(),sess_c:g(!0),comm_id:t,sdk_v:"0.2.0",v:"1",agent_id:e,lang:o,sitekey:i.sitekey||"",ts:Date.now().toString()};i.theme&&(a.theme=i.theme),K&&(r.allow="clipboard-write"),r.frameBorder="0",r.src=n+"?"+c(a),r.className="frc-i-widget",r.title=y(o),r.dataset[G]=t;var s=r.style;return s.border=s.visibility="0",s.position="absolute",s.height=s.width="100%",s.userSelect="none",s["
15-webkit-tap-highlight-color"]="transparent",s.display="none",i.element.appendChild(r),r}(o,s,r+"/api/v2/captcha/widget",e),A=function(e){var t=document.createElement("div");t.classList.add("frc-widget-placeholder");var n=t.style,i="dark"===e.theme||"auto"===e.theme&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;return n.color=i?"#fff":"#222",n.backgroundColor=i?"#171717":"#fafafa",n.borderRadius="4px",n.border="1px solid",n.borderColor="#ddd",n.padding="8px",n.height=n.width="100%",n.fontSize="14px",n.boxSizing="border-box",b(n),e.element.appendChild(t),t}(e);(S=i)(_=e.element,"position","relative"),S(_,"height","70px"),S(_,"padding","0"),S(_,"width","316px"),S(_,"maxWidth","100%"),S(_,"maxHeight","100%"),S(_,"overflow","hidden"),S(_,"borderRadius","4px"),function(e){var t=document.createElement("div");t.classList.add("frc-banner");var n=w(e),i="dark"===e.theme||"auto"===e.theme&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,r="#565656",o="#a2a2a2";i&&(r="#a2a2a2",o="#565656");var a=t.style;a.position="absolute",a.bottom="6px",p(n)?a.left="6px":a.right="6px",a.lineHeight="1";var s=document.createElement("a");s.href="https://friendlycaptcha.com",s.rel="noopener";var c=s.style;b(c),c.color=r,c.fontSize="10px",c.userSelect="none",c.textDecorationLine="underline",c.textDecorationThickness="1px",c.textDecorationColor=o,c.letterSpacing="-0.0125rem",s.target="_blank",s.textContent="Friendly Captcha",s.onmouseenter=function(){return c.textDecorationColor=r},s.onmouseleave=function(){return c.textDecorationColor=o},t.appendChild(s),e.element.appendChild(t)}(e);var C=w(e);p(C)&&(e.element.dir="rtl");var x=A.style;A.textContent=k(C,"connecting");var M=1;return function i(){n.bus.registerTargetIFrame("widget",s,R,n.getRetryTimeout(M)).then((function(n){if("timeout"===n){if(M>4)return console.error("[Friendly Captcha] Failed to load widget iframe after 4 retries."),t("Widget load timeout, stopped retrying"),x.borderColor="#f00",x.fontSize="12px",void function(e,t,n){var i=k(n,"failed"),r=[function(e,t){var n=document.createElement("a");n.href=e,n.target="_blank",n.rel="noopener",n.textContent=t;var i=n.style;return b(i),i.textDecoration="underline",i.color="#565656",n.onmouseenter=function(){return i.textDecoration="none"},n.onmouseleave=function(){return i.textDecoration="underline"},n}("".concat(t,"/connectionTest"),i)];e.textContent="",r.forEach((function(t){return e.appendChild(t)}))}(A,l(R.src),C);x.backgroundColor="#fee",x.color="#222",A.textContent=k(C,"retrying")+" (".concat(M,")"),console.warn("[Friendly Captcha] Retrying widget ".concat(s," iframe load.")),t("Widget load timeout, will retry"),R.src+="&retry="+M++,i()}else"registered"===n&&(e.element.removeChild(A),R.style.display="")}))}(),h.resolve(),v}},{key:"riskIntelligence",value:function(e){var t=P(e.apiEndpoint||this.apiEndpoint||T());this.bus.addOrigin(t);var n=this.ensureAgentIFrame(t),i=u(8);this.bus.send({type:"root_risk_intelligence_generate",to_id:n,from_id:"",_frc:1,sitekey:e.sitekey,bypassCache:e.bypassCache||!1,uid:i});var r=a();return this.riskIntelligencePromises.set(i,r),r.promise}},{key:"clearRiskIntelligence",value:function(e){var t=P((null==e?void 0:e.apiEndpoint)||this.apiEndpoint||T());this.bus.addOrigin(t);var n=this.ensureAgentIFrame(t),i=u(8);this.bus.send({type:"root_risk_intelligence_clear",to_id:n,from_id:"",_frc:1,sitekey:null==e?void 0:e.sitekey,uid:i});var r=a();return this.clearRiskIntelligencePromises.set(i,r),r.promise}},{key:"getAllWidgets",value:function(){var e=[];return this.widgets.forEach((function(t){e.push(t)})),e}},{key:"getWidgetById",value:function(e){return this.widgets.get(e)}},{key:"getAllRiskIntelligenceHandles",value:function(){var e=[];return this.riskIntelligenceHandles.forEach((function(t){e.push(t)})),e}},{key:"clear",value:function(){this.widgets.forEach((function(e){e.destroy()})),this.agents.forEach((function(e){e.remove()})),this.agents.clear()}}]),e}();window.frcaptcha=new ae,r((function(){window.frcaptcha.attach()}))}(); 16/*! 17 * Copyright (c) Friendly Captcha GmbH 2023. 18 * This Source Code Form is subject to the terms of the Mozilla Public 19 * License, v. 2.0. If a copy of the MPL was not distributed with this 20 * file, You can obtain one at https://mozilla.org/MPL/2.0/. 21 */ 22/*! 23 * Copyright (c) Friendly Captcha GmbH 2026. 24 * This Source Code Form is subject to the terms of the Mozilla Public 25 * License, v. 2.0. If a copy of the MPL was not distributed with this 26 * file, You can obtain one at https://mozilla.org/MPL/2.0/. 27 */ 28var $phoneSelect = $("input[name*='phone']"); 29 30if ($phoneSelect.length > 0) { 31 var $phoneSelectLabel = $phoneSelect.closest('.form-group').find('.control-label'), 32 phoneSelectInitialPlaceholder = $phoneSelect.attr('placeholder'); 33 34 $("select[name*='appointmenttype']").on('change', function () { 35 var appointmentType = this.value; 36 37 if (appointmentType === 'online' || appointmentType === 'telefonisch' || appointmentType === 'praesent') { 38 $phoneSelect.attr('required', true); 39 $phoneSelect.attr('placeholder', phoneSelectInitialPlaceholder + ' *'); 40 41 if ($phoneSelectLabel.find('.required').length === 0) { 42 $phoneSelectLabel.append('<span class="required">*</span>'); 43 } 44 } else { 45 $phoneSelect.attr('required', false); 46 $phoneSelect.attr('placeholder', phoneSelectInitialPlaceholder); 47 48 if ($phoneSelectLabel.find('.required').length > 0) { 49 $phoneSelectLabel.find('.required').remove(); 50 } 51 } 52 }); 53} 54 55var $ratenzahlungForm = $('.form-ratenzahlung').find('form'); 56 57if ($ratenzahlungForm.length > 0) { 58 var $toggleInputOption = $ratenzahlungForm.find('.inputs-list .form-check-input'), 59 $toggleInputOptionChecked = $ratenzahlungForm.find('.inputs-list .form-check-input:checked'); 60 61 if ($toggleInputOptionChecked.length > 0) { 62 var checkedValue = $toggleInputOptionChecked.val(); 63 64 if (checkedValue === '1') { 65 toggleFields($ratenzahlungForm, 'existing-customer', 'no-customer'); 66 } else if (checkedValue === '0') { 67 toggleFields($ratenzahlungForm, 'no-customer', 'existing-customer'); 68 } 69 } 70 71 $toggleInputOption.on('change', function (e) { 72 var checkedValue = $(this).val(); 73 74 if (checkedValue === '1') { 75 toggleFields($ratenzahlungForm, 'existing-customer', 'no-customer'); 76 } else if (checkedValue === '0') { 77 toggleFields($ratenzahlungForm, 'no-customer', 'existing-customer'); 78 } 79 }); 80} 81 82var toggleFields = function (form, toggleSelector, toggleHideSelector) { 83 var $toggleElements = $(form).find('[data-selector="' + toggleSelector + '"]'), 84 $toggleHideElements = $(form).find('[data-selector="' + toggleHideSelector + '"]'); 85 86 if ($toggleElements.length > 0) { 87 $toggleElements.each(function () { 88 var $this = $(this), 89 $elements = $this.find('[data-option-required="1"]'); 90 91 $this.removeClass('hide'); 92 93 if ($elements.length > 0) { 94 $elements.each(function () { 95 $(this).prop('required', true); 96 }); 97 } 98 }); 99 100 if ($toggleHideElements.length > 0) { 101 $toggleHideElements.each(function () { 102 var $this = $(this), 103 $elements = $this.find('[data-option-required="1"]'); 104 105 $this.addClass('hide'); 106 107 if ($elements.length > 0) { 108 $elements.each(function () { 109 $(this).prop('required', false); 110 }); 111 } 112 }); 113 } 114 } 115}; 116 117document.addEventListener('DOMContentLoaded', function () { 118 const typeOfAppointment = document.querySelector('[name$="[typeOfAppointment]"]'); 119 const telephone = document.querySelector('[name$="[telephone]"]'); 120 121 if (!typeOfAppointment || !telephone) return; 122 123 const telephoneId = telephone.getAttribute('id'); 124 const label = document.querySelector('label[for="' + telephoneId + '"]'); 125 126 const updateRequirement = () => { 127 const isRequired = typeOfAppointment.value && typeOfAppointment.value !== ''; 128 if (isRequired) { 129 telephone.setAttribute('required', 'required'); 130 if (label && !label.textContent.includes('*')) { 131 label.innerHTML += ' <span class="required">*</span>'; 132 } 133 } else { 134 telephone.removeAttribute('required'); 135 if (label) { 136 label.innerHTML = label.innerHTML.replace(/\s*<span class="required">\*<\/span>/, ''); 137 } 138 } 139 }; 140 141 typeOfAppointment.addEventListener('change', updateRequirement);
142 updateRequirement(); 143}); 144 145/*! modernizr 3.6.0 (Custom Build) | MIT * 146 * https://modernizr.com/download/?-svgclippaths-touchevents-setclasses !*/ 147!function(e,n,t){function o(e,n){return typeof e===n}function s(){var e,n,t,s,a,i,r;for(var l in c)if(c.hasOwnProperty(l)){if(e=[],n=c[l],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(t=0;t<n.options.aliases.length;t++)e.push(n.options.aliases[t].toLowerCase());for(s=o(n.fn,"function")?n.fn():n.fn,a=0;a<e.length;a++)i=e[a],r=i.split("."),1===r.length?Modernizr[r[0]]=s:(!Modernizr[r[0]]||Modernizr[r[0]]instanceof Boolean||(Modernizr[r[0]]=new Boolean(Modernizr[r[0]])),Modernizr[r[0]][r[1]]=s),f.push((s?"":"no-")+r.join("-"))}}function a(e){var n=p.className,t=Modernizr._config.classPrefix||"";if(u&&(n=n.baseVal),Modernizr._config.enableJSClass){var o=new RegExp("(^|\\s)"+t+"no-js(\\s|$)");n=n.replace(o,"$1"+t+"js$2")}Modernizr._config.enableClasses&&(n+=" "+t+e.join(" "+t),u?p.className.baseVal=n:p.className=n)}function i(){return"function"!=typeof n.createElement?n.createElement(arguments[0]):u?n.createElementNS.call(n,"http://www.w3.org/2000/svg",arguments[0]):n.createElement.apply(n,arguments)}function r(){var e=n.body;return e||(e=i(u?"svg":"body"),e.fake=!0),e}function l(e,t,o,s){var a,l,f,c,d="modernizr",u=i("div"),h=r();if(parseInt(o,10))for(;o--;)f=i("div"),f.id=s?s[o]:d+(o+1),u.appendChild(f);return a=i("style"),a.type="text/css",a.id="s"+d,(h.fake?h:u).appendChild(a),h.appendChild(u),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(n.createTextNode(e)),u.id=d,h.fake&&(h.style.background="",h.style.overflow="hidden",c=p.style.overflow,p.style.overflow="hidden",p.appendChild(h)),l=t(u,e),h.fake?(h.parentNode.removeChild(h),p.style.overflow=c,p.offsetHeight):u.parentNode.removeChild(u),!!l}var f=[],c=[],d={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,n){var t=this;setTimeout(function(){n(t[e])},0)},addTest:function(e,n,t){c.push({name:e,fn:n,options:t})},addAsyncTest:function(e){c.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=d,Modernizr=new Modernizr;var p=n.documentElement,u="svg"===p.nodeName.toLowerCase(),h=d._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];d._prefixes=h;var m=d.testStyles=l;Modernizr.addTest("touchevents",function(){var t;if("ontouchstart"in e||e.DocumentTouch&&n instanceof DocumentTouch)t=!0;else{var o=["@media (",h.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");m(o,function(e){t=9===e.offsetTop})}return t});var v={}.toString;Modernizr.addTest("svgclippaths",function(){return!!n.createElementNS&&/SVGClipPath/.test(v.call(n.createElementNS("http://www.w3.org/2000/svg","clipPath")))}),s(),a(f),delete d.addTest,delete d.addAsyncTest;for(var g=0;g<Modernizr._q.length;g++)Modernizr._q[g]();e.Modernizr=Modernizr}(window,document); 148// Generated by CoffeeScript 1.6.2 149/* 150jQuery Waypoints - v2.0.3 151Copyright (c) 2011-2013 Caleb Troughton 152Dual licensed under the MIT license and GPL license. 153https://github.com/imakewebthings/jquery-waypoints/blob/master/licenses.txt 154*/ 155(function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++){if(e in this&&this[e]===t)return e}return-1},e=[].slice;(function(t,e){if(typeof define==="function"&&define.amd){return define("waypoints",["jquery"],function(n){return e(n,t)})}else{return e(t.jQuery,t)}})(this,function(n,r){var i,o,l,s,f,u,a,c,h,d,p,y,v,w,g,m;i=n(r);c=t.call(r,"ontouchstart")>=0;s={horizontal:{},vertical:{}};f=1;a={};u="waypoints-context-id";p="resize.waypoints";y="scroll.waypoints";v=1;w="waypoints-waypoint-ids";g="waypoint";m="waypoints";o=function(){function t(t){var e=this;this.$element=t;this.element=t[0];this.didResize=false;this.didScroll=false;this.id="context"+f++;this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()};this.waypoints={horizontal:{},vertical:{}};t.data(u,this.id);a[this.id]=this;t.bind(y,function(){var t;if(!(e.didScroll||c)){e.didScroll=true;t=function(){e.doScroll();return e.didScroll=false};return r.setTimeout(t,n[m].settings.scrollThrottle)}});t.bind(p,function(){var t;if(!e.didResize){e.didResize=true;t=function(){n[m]("refresh");return e.didResize=false};return r.setTimeout(t,n[m].settings.resizeThrottle)}})}t.prototype.doScroll=function(){var t,e=this;t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};if(c&&(!t.vertical.oldScroll||!t.vertical.newScroll)){n[m]("refresh")}n.each(t,function(t,r){var i,o,l;l=[];o=r.newScroll>r.oldScroll;i=o?r.forward:r.backward;n.each(e.waypoints[t],function(t,e){var n,i;if(r.oldScroll<(n=e.offset)&&n<=r.newScroll){return l.push(e)}else if(r.newScroll<(i=e.offset)&&i<=r.oldScroll){return l.push(e)}});l.sort(function(t,e){return t.offset-e.offset});if(!o){l.reverse()}return n.each(l,function(t,e){if(e.options.continuous||t===l.length-1){return e.trigger([i])}})});return this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}};t.prototype.refresh=function(){var t,e,r,i=this;r=n.isWindow(this.element);e=this.$element.offset();this.doScroll();t={horizontal:{contextOffset:r?0:e.left,contextScroll:r?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:r?0:e.top,contextScroll:r?0:this.oldScroll.y,contextDimension:r?n[m]("viewportHe
155ight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};return n.each(t,function(t,e){return n.each(i.waypoints[t],function(t,r){var i,o,l,s,f;i=r.options.offset;l=r.offset;o=n.isWindow(r.element)?0:r.$element.offset()[e.offsetProp];if(n.isFunction(i)){i=i.apply(r.element)}else if(typeof i==="string"){i=parseFloat(i);if(r.options.offset.indexOf("%")>-1){i=Math.ceil(e.contextDimension*i/100)}}r.offset=o-e.contextOffset+e.contextScroll-i;if(r.options.onlyOnScroll&&l!=null||!r.enabled){return}if(l!==null&&l<(s=e.oldScroll)&&s<=r.offset){return r.trigger([e.backward])}else if(l!==null&&l>(f=e.oldScroll)&&f>=r.offset){return r.trigger([e.forward])}else if(l===null&&e.oldScroll>=r.offset){return r.trigger([e.forward])}})})};t.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)){this.$element.unbind([p,y].join(" "));return delete a[this.id]}};return t}();l=function(){function t(t,e,r){var i,o;r=n.extend({},n.fn[g].defaults,r);if(r.offset==="bottom-in-view"){r.offset=function(){var t;t=n[m]("viewportHeight");if(!n.isWindow(e.element)){t=e.$element.height()}return t-n(this).outerHeight()}}this.$element=t;this.element=t[0];this.axis=r.horizontal?"horizontal":"vertical";this.callback=r.handler;this.context=e;this.enabled=r.enabled;this.id="waypoints"+v++;this.offset=null;this.options=r;e.waypoints[this.axis][this.id]=this;s[this.axis][this.id]=this;i=(o=t.data(w))!=null?o:[];i.push(this.id);t.data(w,i)}t.prototype.trigger=function(t){if(!this.enabled){return}if(this.callback!=null){this.callback.apply(this.element,t)}if(this.options.triggerOnce){return this.destroy()}};t.prototype.disable=function(){return this.enabled=false};t.prototype.enable=function(){this.context.refresh();return this.enabled=true};t.prototype.destroy=function(){delete s[this.axis][this.id];delete this.context.waypoints[this.axis][this.id];return this.context.checkEmpty()};t.getWaypointsByElement=function(t){var e,r;r=n(t).data(w);if(!r){return[]}e=n.extend({},s.horizontal,s.vertical);return n.map(r,function(t){return e[t]})};return t}();d={init:function(t,e){var r;if(e==null){e={}}if((r=e.handler)==null){e.handler=t}this.each(function(){var t,r,i,s;t=n(this);i=(s=e.context)!=null?s:n.fn[g].defaults.context;if(!n.isWindow(i)){i=t.closest(i)}i=n(i);r=a[i.data(u)];if(!r){r=new o(i)}return new l(t,r,e)});n[m]("refresh");return this},disable:function(){return d._invoke(this,"disable")},enable:function(){return d._invoke(this,"enable")},destroy:function(){return d._invoke(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0){return t.push(n[e-1])}})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e<n.length-1){return t.push(n[e+1])}})},_traverse:function(t,e,i){var o,l;if(t==null){t="vertical"}if(e==null){e=r}l=h.aggregate(e);o=[];this.each(function(){var e;e=n.inArray(this,l[t]);return i(o,e,l[t])});return this.pushStack(o)},_invoke:function(t,e){t.each(function(){var t;t=l.getWaypointsByElement(this);return n.each(t,function(t,n){n[e]();return true})});return this}};n.fn[g]=function(){var t,r;r=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(d[r]){return d[r].apply(this,t)}else if(n.isFunction(r)){return d.init.apply(this,arguments)}else if(n.isPlainObject(r)){return d.init.apply(this,[null,r])}else if(!r){return n.error("jQuery Waypoints needs a callback function or handler option.")}else{return n.error("The "+r+" method does not exist in jQuery Waypoints.")}};n.fn[g].defaults={context:r,continuous:true,enabled:true,horizontal:false,offset:0,triggerOnce:false};h={refresh:function(){return n.each(a,function(t,e){return e.refresh()})},viewportHeight:function(){var t;return(t=r.innerHeight)!=null?t:i.height()},aggregate:function(t){var e,r,i;e=s;if(t){e=(i=a[n(t).data(u)])!=null?i.waypoints:void 0}if(!e){return[]}r={horizontal:[],vertical:[]};n.each(r,function(t,i){n.each(e[t],function(t,e){return i.push(e)});i.sort(function(t,e){return t.offset-e.offset});r[t]=n.map(i,function(t){return t.element});return r[t]=n.unique(r[t])});return r},above:function(t){if(t==null){t=r}return h._filter(t,"vertical",function(t,e){return e.offset<=t.oldScroll.y})},below:function(t){if(t==null){t=r}return h._filter(t,"vertical",function(t,e){return e.offset>t.oldScroll.y})},left:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return d[t]=e},_invoke:function(t){var e;e=n.extend({},s.vertical,s.horizontal);
155return n.each(e,function(e,n){n[t]();return true})},_filter:function(t,e,r){var i,o;i=a[n(t).data(u)];if(!i){return[]}o=[];n.each(i.waypoints[e],function(t,e){if(r(i,e)){return o.push(e)}});o.sort(function(t,e){return t.offset-e.offset});return n.map(o,function(t){return t.element})}};n[m]=function(){var t,n;n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(h[n]){return h[n].apply(null,t)}else{return h.aggregate.call(null,n)}};n[m].settings={resizeThrottle:100,scrollThrottle:30};return i.load(function(){return n[m]("refresh")})})}).call(this); 156/*! 157* jquery.counterup.js 1.0 158* 159* Copyright 2013, Benjamin Intal http://gambit.ph @bfintal 160* Released under the GPL v2 License 161* 162* Date: Nov 26, 2013 163*/(function(e){"use strict";e.fn.counterUp=function(t){var n=e.extend({time:400,delay:10},t);return this.each(function(){var t=e(this),r=n,i=function(){var e=[],n=r.time/r.delay,i=t.text(),s=/[0-9]+,[0-9]+/.test(i);i=i.replace(/,/g,"");var o=/^[0-9]+$/.test(i),u=/^[0-9]+\.[0-9]+$/.test(i),a=u?(i.split(".")[1]||[]).length:0;for(var f=n;f>=1;f--){var l=parseInt(i/n*f);u&&(l=parseFloat(i/n*f).toFixed(a));if(s)while(/(\d+)(\d{3})/.test(l.toString()))l=l.toString().replace(/(\d+)(\d{3})/,"$1,$2");e.unshift(l)}t.data("counterup-nums",e);t.text("0");var c=function(){t.text(t.data("counterup-nums").shift());if(t.data("counterup-nums").length)setTimeout(t.data("counterup-func"),r.delay);else{delete t.data("counterup-nums");t.data("counterup-nums",null);t.data("counterup-func",null)}};t.data("counterup-func",c);setTimeout(t.data("counterup-func"),r.delay)};t.waypoint(i,{offset:"100%",triggerOnce:!0})})}})(jQuery); 164/* Bootstrap Toggle: bootstrap-toggle.js v2.2.0 165 * http://www.bootstraptoggle.com 166 * Copyright 2014 Min Hur, The New York Times Company 167 * Licensed under MIT 168 */!function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.toggle"),f="object"==typeof b&&b;e||d.data("bs.toggle",e=new c(this,f)),"string"==typeof b&&e[b]&&e[b]()})}var c=function(b,c){this.$element=a(b),this.options=a.extend({},this.defaults(),c),this.render()};c.VERSION="2.2.0",c.DEFAULTS={on:"On",off:"Off",onstyle:"primary",offstyle:"default",size:"normal",style:"",width:null,height:null},c.prototype.defaults=function(){return{on:this.$element.attr("data-on")||c.DEFAULTS.on,off:this.$element.attr("data-off")||c.DEFAULTS.off,onstyle:this.$element.attr("data-onstyle")||c.DEFAULTS.onstyle,offstyle:this.$element.attr("data-offstyle")||c.DEFAULTS.offstyle,size:this.$element.attr("data-size")||c.DEFAULTS.size,style:this.$element.attr("data-style")||c.DEFAULTS.style,width:this.$element.attr("data-width")||c.DEFAULTS.width,height:this.$element.attr("data-height")||c.DEFAULTS.height}},c.prototype.render=function(){this._onstyle="btn-"+this.options.onstyle,this._offstyle="btn-"+this.options.offstyle;var b="large"===this.options.size?"btn-lg":"small"===this.options.size?"btn-sm":"mini"===this.options.size?"btn-xs":"",c=a('<label class="btn">').html(this.options.on).addClass(this._onstyle+" "+b),d=a('<label class="btn">').html(this.options.off).addClass(this._offstyle+" "+b+" active"),e=a('<span class="toggle-handle btn btn-default">').addClass(b),f=a('<div class="toggle-group">').append(c,d,e),g=a('<div class="toggle btn" data-toggle="toggle">').addClass(this.$element.prop("checked")?this._onstyle:this._offstyle+" off").addClass(b).addClass(this.options.style);this.$element.wrap(g),a.extend(this,{$toggle:this.$element.parent(),$toggleOn:c,$toggleOff:d,$toggleGroup:f}),this.$toggle.append(f);var h=this.options.width||Math.max(c.outerWidth(),d.outerWidth())+e.outerWidth()/2,i=this.options.height||Math.max(c.outerHeight(),d.outerHeight());c.addClass("toggle-on"),d.addClass("toggle-off"),this.$toggle.css({width:h,height:i}),this.options.height&&(c.css("line-height",c.height()+"px"),d.css("line-height",d.height()+"px")),this.update(!0),this.trigger(!0)},c.prototype.toggle=function(){this.$element.prop("checked")?this.off():this.on()},c.prototype.on=function(a){return this.$element.prop("disabled")?!1:(this.$toggle.removeClass(this._offstyle+" off").addClass(this._onstyle),this.$element.prop("checked",!0),void(a||this.trigger()))},c.prototype.off=function(a){return this.$element.prop("disabled")?!1:(this.$toggle.removeClass(this._onstyle).addClass(this._offstyle+" off"),this.$element.prop("checked",!1),void(a||this.trigger()))},c.prototype.enable=function(){this.$toggle.removeAttr("disabled"),this.$element.prop("disabled",!1)},c.prototype.disable=function(){this.$toggle.attr("disabled","disabled"),this.$element.prop("disabled",!0)},c.prototype.update=function(a){this.$element.prop("disabled")?this.disable():this.enable(),this.$element.prop("checked")?this.on(a):this.off(a)},c.prototype.trigger=function(b){this.$element.off("change.bs.toggle"),b||this.$element.change(),this.$element.on("change.bs.toggle",a.proxy(function(){this.update()},this))},c.prototype.destroy=function(){this.$element.off("change.bs.toggle"),this.$toggleGroup.remove(),this.$element.removeData("bs.toggle"),this.$element.unwrap()};var d=a.fn.bootstrapToggle;a.fn.bootstrapToggle=b,a.fn.bootstrapToggle.Constructor=c,a.fn.toggle.noConflict=function(){return a.fn.bootstrapToggle=d,this},a(function(){a("input[type=checkbox][data-toggle^=toggle]").bootstrapToggle()}),a(document).on("click.bs.toggle","div[data-toggle^=toggle]",function(b){var c=a(this).find("input[type=checkbox]");c.bootstrapToggle("toggle"),b.preventDefault()})}(jQuery); 169/* 170 * jQuery throttle / debounce - v1.1 - 3/7/2010 171 * http://benalman.com/projects/jquery-throttle-debounce-plugin/ 172 * 173 * Copyright (c) 2010 "Cowboy" Ben Alman 174 * Dual licensed under the MIT and GPL licenses. 175 * http://benalman.com/about/license/ 176 */ 177(function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this); 178 179$(function() { 180 // Navigation 181 var currentDropdownHeight = 0, 182 firstLevelDropdownHeight = 0; 183 184 $('#nav .navbar-nav .dropdown-toggle').parent().on('show.bs.dropdown', function (e) { 185 $(this).closest('.navbar-collapse').addClass("show-dropdown"); 186 }); 187 188 $('#nav .navbar-nav .dropdown-toggle').parent().on('shown.bs.dropdown', function (e) { 189 currentDropdownHeight = $(this).find('.dropdown-menu').outerHeight() + 32; 190 firstLevelDropdownHeight = currentDropdownHeight; 191 $('.navbar-collapse').css('height', currentDropdownHeight); 192 }); 193 194 $('#nav .navbar-nav .dropdown-toggle').parent().on('hide.bs.dropdown', function (e) { 195 $(this).closest('.navbar-collapse').removeClass("show-dropdown show-dropdown-sub"); 196 $('.navbar-collapse').css('height', ''); 197 }); 198 199 $('#nav .navbar-nav .dropdown-toggle-close').click(function (e) { 200 e.stopPropagation(); 201 e.preventDefault(); 202 var close = $(this).data("close"); 203 204 if(close === 'show-dropdown-sub') { 205 if(firstLevelDropdownHeight) { 206 $('.navbar-collapse').css('height', firstLevelDropdownHeight); 207 } 208 } else { 209 $('.navbar-collapse').css('height', ''); 210 } 211 212 $(this).closest('.navbar-collapse').removeClass(close); 213 $(this).closest('.open').removeClass("open"); 214 }); 215 216 $('#nav .navbar-nav .dropdown-toggle-sub').click(function (e) { 217 e.stopPropagation(); 218 e.preventDefault(); 219 220 currentDropdownHeight = $(this).parent().find('.dropown-submenu').outerHeight() + 32; 221 $('.navbar-collapse').css('height', currentDropdownHeight); 222 223 $(this).parent().addClass("open"); 224 $(this).closest('.navbar-collapse').addClass("show-dropdown-sub"); 225 }); 226 227 $('#nav .navbar-collapse a').click(function (e) { 228 if($(this).attr('href') != '#') { 229 $('#navbar-collapse-1').collapse('hide'); 230 } 231 }); 232 233 $("#nav .navbar-nav .dropdown-menu").click(function(e){ 234 e.stopPropagation(); 235 }) 236 237 // Search form 238 var navItemSearch = '.nav-item-search'; 239 240 $(navItemSearch + ' .dropdown-toggle').click(function(e) { 241 e.preventDefault(); 242 e.stopPropagation(); 243 $(this).closest('.navbar-nav').addClass("position-relative"); 244 $(this).parent().addClass("open"); 245 $(this).parent().find('#s').focus(); 246 }); 247 248 // Close on ESC 249 $(document).keyup(function(e) { 250 if (e.keyCode == 27) { 251 closeSearch(); 252 } 253 }); 254 255 // Close button 256 $(navItemSearch + ' .dropdown-menu-close').click(function(e) { 257 closeSearch(); 258 }); 259 260 function closeSearch() { 261 $(navItemSearch).removeClass('open'); 262 263 setTimeout(function() { 264 $(navItemSearch).closest('.navbar-nav').removeClass("position-relative"); 265 }, 300); 266 } 267 268 269 // Percentage Circle 270 var circle = $('.fact-item-circle'); 271 272 function animateCircle() { 273 var scrollOffset = $(window).scrollTop(), 274 windowHeight = window.innerHeight, 275 togglePosition = scrollOffset + windowHeight; 276 277 $(circle).each( function( index ) { 278 var itemToggle = $(this).offset().top + ($(this).outerHeight() * 0.125); 279 280 if( togglePosition > itemToggle ) { 281 $(this).addClass('animate'); 282 } 283 }); 284 } 285 286 animateCircle(); 287 288 displayContactWidget(); 289 290 function displayContactWidget() { 291 var scrollOffset = $(window).scrollTop(); 292 293 if(scrollOffset >= 100) { 294 $('.contact-widget-mobile').addClass('show'); 295 } else { 296 $('.contact-widget-mobile').removeClass('show'); 297 } 298 } 299 300 $(window).scroll( 301 $.throttle( 250, animateCircle ), 302 $.throttle( 250, displayContactWidget ) 303 ); 304 305 // Contact Widget 306 $('.contact-widget-toggle').click(function(e) { 307 if($(this).attr('href') === '#') { 308 e.preventDefault(); 309 } 310 }); 311 312 // Dropdown 313 $('.navbar-secondary .dropdown-menu').parent().on('show.bs.dropdown', function () { 314 $(this).closest('header').addClass('mute'); 315 }); 316 317 $('.navbar-secondary .dropdown-menu').parent().on('hide.bs.dropdown', function () { 318 $(this).closest('header').removeClass('mute'); 319 }); 320 321 // Lightbox 322 $('.ce-lightbox').magnificPopup({ 323 type: 'image' 324 }); 325 326 // Counter 327 $('.counter').counterUp({ 328 delay: 10, 329 time: 1000 330 }); 331 332 // Back to Top Button 333 var btn = $('#back-to-top'); 334 335 btn.on('click', function(e) { 336 e.preventDefault(); 337 $('html, body').animate({scrollTop:0}, '600'); 338 }); 339 340}); 341 342window.addEventListener('CookiebotOnDialogDisplay', function (e) { 343 $('[data-toggle="toggle"]').bootstrapToggle(); 344}, false); 345 346/** 347 * Close modals and call Cookiebot renew 348 */ 349function closeModalsAndRenew() { 350 $('.modal').modal('hide'); 351 352 Cookiebot.renew(); 353} 354 355/** 356 * Show cookiebot settings overlay 357 */ 358function showCookiebotSettings() { 359 $('#cookiebotSettingsOverlay').modal('show'); 360} 361 362 363/** 364 * Renew and show cookiebot settings overlay 365 */ 366function renewAndShowCookiebotSettingsOverlay() { 367 Cookiebot.renew(); 368 369 window.addEventListener('CookiebotOnDialogDisplay', function (e) { 370 var cookiebanner = document.getElementById("cookiebotOverlay"), 371 cookiebannerSettings = document.getElementById("cookiebotSettingsOverlay"); 372 373 cookiebanner.classList.remove("in"); 374 cookiebanner.style.display = "none"; 375 376 cookiebannerSettings.classList.add("in"); 377 cookiebannerSettings.style.display = "block"; 378 }, false); 379}
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.