/* https://hcaptcha.com/license */ var hcaptcha=function(){"use strict";function e(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}function t(e){return new this((function(t,n){if(!e||"undefined"==typeof e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);var r=i.length;function o(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(t){o(e,t)}),(function(n){i[e]={status:"rejected",reason:n},0==--r&&t(i)}))}i[e]={status:"fulfilled",value:n},0==--r&&t(i)}for(var a=0;a>>0,o=Math.min(0|n,r);if(o<0)o=Math.max(0,r+o);else if(o>=r)return-1;if(void 0===t){for(;o!==r;++o)if(void 0===i[o]&&o in i)return o}else if(t!=t){for(;o!==r;++o)if(i[o]!=i[o])return o}else for(;o!==r;++o)if(i[o]===t)return o;return-1}}(Object)),Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),document.getElementsByClassName||(window.Element.prototype.getElementsByClassName=document.constructor.prototype.getElementsByClassName=function(e){if(document.querySelectorAll)return document.querySelectorAll("."+e);for(var t=document.getElementsByTagName("*"),n=new RegExp("(^|\\s)"+e+"(\\s|$)"),i=[],r=0;rthis.length)&&(t=this.length),this.substring(t-e.length,t)===e});try{if(Object.defineProperty&&Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(Element.prototype,"textContent")&&!Object.getOwnPropertyDescriptor(Element.prototype,"textContent").get){var m=Object.getOwnPropertyDescriptor(Element.prototype,"innerText");Object.defineProperty(Element.prototype,"textContent",{get:function(){return m.get.call(this)},set:function(e){m.set.call(this,e)}})}}catch(nn){}Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind: Item Can Not Be Bound.");var t=Array.prototype.slice.call(arguments,1),n=this,i=function(){},r=function(){return n.apply(this instanceof i?this:e,t.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(i.prototype=this.prototype),r.prototype=new i,r}),"function"!=typeof Object.create&&(Object.create=function(e,t){function n(){}if(n.prototype=e,"object"==typeof t)for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return new n}),Date.now||(Date.now=function(){return(new Date).getTime()}),window.console||(window.console={});for(var g,y,v,w,b,_,x=["error","info","log","show","table","trace","warn"],C=function(e){},k=x.length;--k>-1;)p=x[k],window.console[p]||(window.console[p]=C);if(window.atob)try{window.atob(" ")}catch(rn){window.atob=(g=window.atob,(y=function(e){return g(String(e).replace(/[\t\n\f\r ]+/g,""))}).original=g,y)}else{var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",S=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;window.atob=function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!S.test(e))throw new TypeError("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t,n,i;e+="==".slice(2-(3&e.length));for(var r="",o=0;o>16&255):64===i?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return r}}if(Event.prototype.preventDefault||(Event.prototype.preventDefault=function(){this.returnValue=!1}),Event.prototype.stopPropagation||(Event.prototype.stopPropagation=function(){this.cancelBubble=!0}),window.Prototype&&Array.prototype.toJSON){console.error("[hCaptcha] Custom JSON polyfill detected, please remove to ensure hCaptcha works properly");var O=Array.prototype.toJSON,B=JSON.stringify;JSON.stringify=function(e){try{return delete Array.prototype.toJSON,B(e)}finally{Array.prototype.toJSON=O}}}Object.keys||(Object.keys=(v=Object.prototype.hasOwnProperty,w=!Object.prototype.propertyIsEnumerable.call({toString:null},"toString"),_=(b=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(e){if("function"!=typeof e&&("object"!=typeof e||null===e))throw new TypeError("Object.keys called on non-object");var t,n,i=[];for(t in e)v.call(e,t)&&i.push(t);if(w)for(n=0;n<_;n++)v.call(e,b[n])&&i.push(b[n]);return i}));var I=[{family:"UC Browser",patterns:["(UC? ?Browser|UCWEB|U3)[ /]?(\\d+)\\.(\\d+)\\.(\\d+)"]},{family:"Opera",name_replace:"Opera Mobile",patterns:["(Opera)/.+Opera Mobi.+Version/(\\d+)\\.(\\d+)","(Opera)/(\\d+)\\.(\\d+).+Opera Mobi","Opera Mobi.+(Opera)(?:/|\\s+)(\\d+)\\.(\\d+)","Opera Mobi","(?:Mobile Safari).*(OPR)/(\\d+)\\.(\\d+)\\.(\\d+)"]},{family:"Opera",name_replace:"Opera Mini",patterns:["(Opera Mini)(?:/att|)/?(\\d+|)(?:\\.(\\d+)|)(?:\\.(\\d+)|)","(OPiOS)/(\\d+).(\\d+).(\\d+)"]},{family:"Opera",name_replace:"Opera Neon",patterns:["Chrome/.+( MMS)/(\\d+).(\\d+).(\\d+)"]},{name_replace:"Opera",patterns:["(Opera)/9.80.*Version/(\\d+)\\.(\\d+)(?:\\.(\\d+)|)","(?:Chrome).*(OPR)/(\\d+)\\.(\\d+)\\.(\\d+)"]},{family:"Firefox",name_replace:"Firefox Mobile",patterns:["(Fennec)/(\\d+)\\.(\\d+)\\.?([ab]?\\d+[a-z]*)","(Fennec)/(\\d+)\\.(\\d+)(pre)","(Fennec)/(\\d+)\\.(\\d+)","(?:Mobile|Tablet);.*(Firefox)/(\\d+)\\.(\\d+)","(FxiOS)/(\\d+)\\.(\\d+)(\\.(\\d+)|)(\\.(\\d+)|)"]},{name_replace:"Coc Coc",patterns:["(coc_coc_browser)/(\\d+)\\.(\\d+)(?:\\.(\\d+)|)"]},{family:"QQ",name_replace:"QQ Mini",patterns:["(MQQBrowser/Mini)(?:(\\d+)(?:\\.(\\d+)|)(?:\\.(\\d+)|)|)"]},{family:"QQ",name_replace:"QQ Mobile",patterns:["(MQQBrowser)(?:/(\\d+)(?:\\.(\\d+)|)(?:\\.(\\d+)|)|)"]},{name_replace:"QQ",patterns:["(QQBrowser)(?:/(\\d+)(?:\\.(\\d+)\\.(\\d+)(?:\\.(\\d+)|)|)|)"]},{family:"Edge",name:"Edge Mobile",patterns:["Windows Phone .*(Edge)/(\\d+)\\.(\\d+)","(EdgiOS|EdgA)/(\\d+)\\.(\\d+).(\\d+).(\\d+)"]},{name_replace:"Edge",patterns:["(Edge|Edg)/(\\d+)(?:\\.(\\d+)|)"]},{patterns:["(Puffin)/(\\d+)\\.(\\d+)(?:\\.(\\d+)|)"]},{family:"Chrome",name_replace:"Chrome Mobile",patterns:["Version/.+(Chrome)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)","; wv\\).+(Chrome)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)","(CriOS)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)","(CrMo)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)","(Chrome)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+) Mobile(?:[ /]|$)"," Mobile .*(Chrome)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)"]},{family:"Yandex",name_replace:"Yandex Mobile",patterns:["(YaBrowser)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+).*Mobile"]},{name_replace:"Yandex",patterns:["(YaBrowser)/(\\d+)\\.(\\d+)\\.(\\d+)"]},{patterns:["(Vivaldi)/(\\d+)\\.(\\d+)","(Vivaldi)/(\\d+)\\.(\\d+)\\.(\\d+)"]},{name_replace:"Brave",patterns:["(brave)/(\\d+)\\.(\\d+)\\.(\\d+) Chrome"]},{family:"Chrome",patterns:["(Chromium|Chrome)/(\\d+)\\.(\\d+)(?:\\.(\\d+)|)(?:\\.(\\d+)|)"]},{name_replace:"Internet Explorer Mobile",patterns:["(IEMobile)[ /](\\d+)\\.(\\d+)"]},{family:"Safari",name_replace:"Safari Mobile",patterns:["(iPod|iPhone|iPad).+Version/(d+).(d+)(?:.(d+)|).*[ +]Safari","(iPod|iPod touch|iPhone|iPad);.*CPU.*OS[ +](\\d+)_(\\d+)(?:_(\\d+)|).* AppleNews\\/\\d+\\.\\d+\\.\\d+?","(iPod|iPhone|iPad).+Version/(\\d+)\\.(\\d+)(?:\\.(\\d+)|)","(iPod|iPod touch|iPhone|iPad);.*CPU.*OS[ +](\\d+)_(\\d+)(?:_(\\d+)|).*Mobile.*[ +]Safari","(iPod|iPod touch|iPhone|iPad);.*CPU.*OS[ +](\\d+)_(\\d+)(?:_(\\d+)|).*Mobile","(iPod|iPod touch|iPhone|iPad).* Safari","(iPod|iPod touch|iPhone|iPad)"]},{name_replace:"Safari",patterns:["(Version)/(\\d+)\\.(\\d+)(?:\\.(\\d+)|).*Safari/"]},{name_replace:"Internet Explorer",patterns:["(Trident)/(7|8).(0)"],major_replace:"11"},{name_replace:"Internet Explorer",patterns:["(Trident)/(6)\\.(0)"],major_replace:"10"},{name_replace:"Internet Explorer",patterns:["(Trident)/(5)\\.(0)"],major_replace:"9"},{name_replace:"Internet Explorer",patterns:["(Trident)/(4)\\.(0)"],major_replace:"8"},{family:"Firefox",patterns:["(Firefox)/(\\d+)\\.(\\d+)\\.(\\d+)","(Firefox)/(\\d+)\\.(\\d+)(pre|[ab]\\d+[a-z]*|)"]}],P=[{family:"Windows",name_replace:"Windows Phone",patterns:["(Windows Phone) (?:OS[ /])?(\\d+)\\.(\\d+)","^UCWEB.*; (wds) (\\d+)\\.(d+)(?:\\.(\\d+)|);","^UCWEB.*; (wds) (\\d+)\\.(\\d+)(?:\\.(\\d+)|);"]},{family:"Windows",name_replace:"Windows Mobile",patterns:["(Windows ?Mobile)"]},{name_replace:"Android",patterns:["(Android)[ \\-/](\\d+)(?:\\.(\\d+)|)(?:[.\\-]([a-z0-9]+)|)","(Android) (d+);","^UCWEB.*; (Adr) (\\d+)\\.(\\d+)(?:[.\\-]([a-z0-9]+)|);","^(JUC).*; ?U; ?(?:Android|)(\\d+)\\.(\\d+)(?:[\\.\\-]([a-z0-9]+)|)","(android)\\s(?:mobile\\/)(\\d+)(?:\\.(\\d+)(?:\\.(\\d+)|)|)","(Silk-Accelerated=[a-z]{4,5})","Puffin/[\\d\\.]+AT","Puffin/[\\d\\.]+AP"]},{name_replace:"Chrome OS",patterns:["(x86_64|aarch64)\\ (\\d+)\\.(\\d+)\\.(\\d+).*Chrome.*(?:CitrixChromeApp)$","(CrOS) [a-z0-9_]+ (\\d+)\\.(\\d+)(?:\\.(\\d+)|)"]},{name_replace:"Windows",patterns:["(Windows 10)","(Windows NT 6\\.4)","(Windows NT 10\\.0)"],major_replace:"10"},{name_replace:"Windows",patterns:["(Windows NT 6\\.3; ARM;)","(Windows NT 6.3)"],major_replace:"8",minor_replace:"1"},{name_replace:"Windows",patterns:["(Windows NT 6\\.2)"],major_replace:"8"},{name_replace:"Windows",patterns:["(Windows NT 6\\.1)"],major_replace:"7"},{name_replace:"Windows",patterns:["(Windows NT 6\\.0)"],major_replace:"Vista"},{name_replace:"Windows",patterns:["(Windows (?:NT 5\\.2|NT 5\\.1))"],major_replace:"XP"},{name_replace:"Mac OS X",patterns:["((?:Mac[ +]?|; )OS[ +]X)[\\s+/](?:(\\d+)[_.](\\d+)(?:[_.](\\d+)|)|Mach-O)","\\w+\\s+Mac OS X\\s+\\w+\\s+(\\d+).(\\d+).(\\d+).*","(?:PPC|Intel) (Mac OS X)"]},{name_replace:"Mac OS X",patterns:[" (Dar)(win)/(10).(d+).*((?:i386|x86_64))"],major_replace:"10",minor_replace:"6"},{name_replace:"Mac OS X",patterns:[" (Dar)(win)/(11).(\\d+).*\\((?:i386|x86_64)\\)"],major_replace:"10",minor_replace:"7"},{name_replace:"Mac OS X",patterns:[" (Dar)(win)/(12).(\\d+).*\\((?:i386|x86_64)\\)"],major_replace:"10",minor_replace:"8"},{name_replace:"Mac OS X",patterns:[" (Dar)(win)/(13).(\\d+).*\\((?:i386|x86_64)\\)"],major_replace:"10",minor_replace:"9"},{name_replace:"iOS",patterns:["^UCWEB.*; (iPad|iPh|iPd) OS (\\d+)_(\\d+)(?:_(\\d+)|);","(CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(\\d+)[_\\.](\\d+)(?:[_\\.](\\d+)|)","(iPhone|iPad|iPod); Opera","(iPhone|iPad|iPod).*Mac OS X.*Version/(\\d+)\\.(\\d+)","\\b(iOS[ /]|iOS; |iPhone(?:/| v|[ _]OS[/,]|; | OS : |\\d,\\d/|\\d,\\d; )|iPad/)(\\d{1,2})[_\\.](\\d{1,2})(?:[_\\.](\\d+)|)","\\((iOS);","(iPod|iPhone|iPad)","Puffin/[\\d\\.]+IT","Puffin/[\\d\\.]+IP"]},{family:"Chrome",name_replace:"Chromecast",patterns:["(CrKey -)(?:[ /](\\d+)\\.(\\d+)(?:\\.(\\d+)|)|)","(CrKey[ +]armv7l)(?:[ /](\\d+)\\.(\\d+)(?:\\.(\\d+)|)|)","(CrKey)(?:[/](\\d+)\\.(\\d+)(?:\\.(\\d+)|)|)"]},{name_replace:"Debian",patterns:["([Dd]ebian)"]},{family:"Linux",name_replace:"Linux",patterns:["(Linux Mint)(?:/(\\d+)|)"]},{family:"Linux",patterns:["(Ubuntu|Kubuntu|Arch Linux|CentOS|Slackware|Gentoo|openSUSE|SUSE|Red Hat|Fedora|PCLinuxOS|Mageia|(?:Free|Open|Net|\\b)BSD)","(Mandriva)(?: Linux|)/(?:[\\d.-]+m[a-z]{2}(\\d+).(\\d)|)","(Linux)(?:[ /](\\d+)\\.(\\d+)(?:\\.(\\d+)|)|)","\\(linux-gnu\\)"]},{family:"BlackBerry",name_replace:"BlackBerry OS",patterns:["(BB10);.+Version/(\\d+)\\.(\\d+)\\.(\\d+)","(Black[Bb]erry)[0-9a-z]+/(\\d+)\\.(\\d+)\\.(\\d+)(?:\\.(\\d+)|)","(Black[Bb]erry).+Version/(\\d+)\\.(\\d+)\\.(\\d+)(?:\\.(\\d+)|)","(Black[Bb]erry)"]},{patterns:["(Fedora|Red Hat|PCLinuxOS|Puppy|Ubuntu|Kindle|Bada|Sailfish|Lubuntu|BackTrack|Slackware|(?:Free|Open|Net|\\b)BSD)[/ ](\\d+)\\.(\\d+)(?:\\.(\\d+)|)(?:\\.(\\d+)|)"]}],T=navigator.userAgent,A=function(){return T},j=function(e){return L(e||T,I)},M=function(e){return L(e||T,P)};function $(e,t){try{var n=new RegExp(t).exec(e);return n?{name:n[1]||"Other",major:n[2]||"0",minor:n[3]||"0",patch:n[4]||"0"}:null}catch(rn){return null}}function L(e,t){for(var n=null,i=null,r=-1,o=!1;++r0||navigator.msMaxTouchPoints>0),t=!1,n&&(t=["iOS","Windows Phone","Windows Mobile","Android","BlackBerry OS"].indexOf(n.name)>=0),e&&t),this.dpr=function(){return window.devicePixelRatio||1},this.mobile&&n&&"Windows"===n.family&&i.indexOf("touch")<0&&(this.mobile=!1),this.os="iOS"===n.family?"ios":"Android"===n.family?"android":"Mac OS X"===n.family?"mac":"Windows"===n.family?"windows":"Linux"===n.family?"linux":n.family.toLowerCase(),this.version=function(){if(!n)return"unknown";var e=n.major;return n.minor&&(e+="."+n.minor),n.patch&&(e+="."+n.patch),e}()}},N={host:null,file:null,sitekey:null,a11y_tfe:null,pingdom:"safari"===D.Browser.type&&"windows"!==D.System.os&&"mac"!==D.System.os&&"ios"!==D.System.os&&"android"!==D.System.os,assetDomain:"https://newassets.hcaptcha.com",assetUrl:"https://newassets.hcaptcha.com/captcha/v1/f5a464c/static",width:null,height:null,mobile:null},z={se:null,custom:!1,tplinks:"on",language:null,reportapi:"https://accounts.hcaptcha.com",endpoint:"https://hcaptcha.com",endpointOverride:null,size:"normal",theme:"light",assethost:null,imghost:null,recaptchacompat:"true"},W={getCookie:function(e){var t=document.cookie.replace(/ /g,"").split(";");try{for(var n="",i=t.length;i--&&!n;)t[i].indexOf(e)>=0&&(n=t[i]);return n}catch(rn){return""}},hasCookie:function(e){return!!W.getCookie(e)},supportsAPI:function(){try{return"hasStorageAccess"in document&&"requestStorageAccess"in document}catch(rn){return!1}},hasAccess:function(){return new Promise((function(e){document.hasStorageAccess().then((function(){e(!0)}))["catch"]((function(){e(!1)}))}))},requestAccess:function(){try{return document.requestStorageAccess()}catch(rn){return Promise.resolve()}}};function U(e){this.r=255,this.g=255,this.b=255,this.a=1,this.h=1,this.s=1,this.l=1,this.parseString(e)}function F(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}U.hasAlpha=function(e){return"string"==typeof e&&(-1!==e.indexOf("rgba")||9===e.length&&"#"===e[0])},U.prototype.parseString=function(e){e&&(0===e.indexOf("#")?this.fromHex(e):0===e.indexOf("rgb")&&this.fromRGBA(e))},U.prototype.fromHex=function(e){var t=1;9===e.length&&(t=parseInt(e.substr(7,2),16)/255);var n=(e=e.substr(1,6)).replace(/^([a-f\d])([a-f\d])([a-f\d])?$/i,(function(e,t,n,i){return t+t+n+n+i+i})),i=parseInt(n,16),r=i>>16,o=i>>8&255,a=255&i;this.setRGBA(r,o,a,t)},U.prototype.fromRGBA=function(e){var t=e.indexOf("rgba"),n=e.substr(t).replace(/rgba?\(/,"").replace(/\)/,"").replace(/[\s+]/g,"").split(","),i=Math.floor(parseInt(n[0])),r=Math.floor(parseInt(n[1])),o=Math.floor(parseInt(n[2])),a=parseFloat(n[3]);this.setRGBA(i,r,o,a)},U.prototype.setRGB=function(e,t,n){this.setRGBA(e,t,n,1)},U.prototype.setRGBA=function(e,t,n,i){this.r=e,this.g=t,this.b=n,this.a=isNaN(i)?this.a:i,this.updateHSL()},U.prototype.hsl2rgb=function(e,t,n){if(0===t){var i=Math.round(255*n);return this.setRGB(i,i,i),this}var r=n<=.5?n*(1+t):n+t-n*t,o=2*n-r;return this.r=Math.round(255*F(o,r,e+1/3)),this.g=Math.round(255*F(o,r,e)),this.b=Math.round(255*F(o,r,e-1/3)),this.h=e,this.s=t,this.l=n,this},U.prototype.updateHSL=function(){var e,t=this.r/255,n=this.g/255,i=this.b/255,r=Math.max(t,n,i),o=Math.min(t,n,i),a=null,s=(r+o)/2;if(r===o)a=e=0;else{var c=r-o;switch(e=s>.5?c/(2-r-o):c/(r+o),r){case t:a=(n-i)/c+(n1&&(e/=100),this.hsl2rgb(this.h,this.s,e),this},U.prototype.saturation=function(e){return e>1&&(e/=100),this.hsl2rgb(this.h,e,this.l),this},U.prototype.hue=function(e){return this.hsl2rgb(e/360,this.s,this.l),this};function H(e,t){e.style.width="304px",e.style.height="78px",e.style.backgroundColor="#f9e5e5",e.style.position="relative",e.innerHTML="";var n=document.createElement("div");n.style.width="284px",n.style.position="absolute",n.style.top="12px",n.style.left="10px",n.style.color="#7c0a06",n.style.fontSize="14px",n.style.fontWeight="normal",n.style.lineHeight="18px",n.innerHTML=t||"Please upgrade your browser to complete this captcha.",e.appendChild(n)}var J=!0;function X(e){var t={message:e.name+": "+e.message};e.stack&&(t.stack_trace={trace:e.stack}),q("report error","internal","debug",t),Y("internal error","error",N.file)}function Y(e,t,n,i){if(t=t||"error",J){var r="warn"===t?"warning":t;window.Raven&&Raven.captureMessage(e,{level:r,logger:n,extra:i})}}function G(e,t,n){return(n=n||{}).error=t,Y(t.message||"Missing error message","error",e,n)}function q(e,t,n,i){J&&window.Raven&&Raven.captureBreadcrumb({message:e,category:t,level:n,data:i})}var V=function(e){var t=[];for(var n in e){var i=e[n];i="object"==typeof i?JSON.stringify(i):i,t.push([encodeURIComponent(n),encodeURIComponent(i)].join("="))}return t.join("&")};function Q(e){var t=[].slice.call(arguments,1);"string"==typeof e?window[e]?"function"==typeof window[e]?window[e].apply(null,t):console.log("[hCaptcha] Callback '"+e+"' is not a function."):console.log("[hCaptcha] Callback '"+e+"' is not defined."):"function"==typeof e?e.apply(null,t):console.log("[hcaptcha] Invalid callback '"+e+"'.")}function K(){try{Q.apply(null,arguments)}catch(nn){console.error("[hCaptcha] There was an error in your callback."),console.error(nn)}}var Z={UUID:function(e){return/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i.test(e)||!1},UUIDv4:function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)||!1},URL:function(e){var t=new RegExp("^(http|https)://"),n=new RegExp("^((?!(data|javascript):).)*$");return t.test(e)&&n.test(e)}};function ee(e,t){var n,i="attempts"in(t=t||{})?t.attempts:1,r=t.delay||0,o=t.onFail;return n=function(t,n,a){e().then(t,(function(e){var t=i-- >0;o&&(t=!1!==o(e)&&t),t?setTimeout(a,r):n(e)}))},new Promise((function(e,t){n(e,t,(function i(){n(e,t,i)}))}))}var te={eventName:function(e){var t=e;return"down"===e||"up"===e||"move"===e||"over"===e||"out"===e?t=!D.System.mobile||"down"!==e&&"up"!==e&&"move"!==e?"mouse"+e:"down"===e?"touchstart":"up"===e?"touchend":"touchmove":"enter"===e&&(t="keydown"),t},actionName:function(e){var t=e;return"touchstart"===t||"mousedown"===t?t="down":"touchmove"===t||"mousemove"===t?t="move":"touchend"===t||"mouseup"===t?t="up":"mouseover"===t?t="over":"mouseout"===t&&(t="out"),t},eventCallback:function(e,t,n){var i=te.actionName(e);return function(r){if(r=r||window.event,"down"===i||"move"===i||"up"===i||"over"===i||"out"===i||"click"===i){var o=te.eventCoords(r);if(!o)return;var a=n.getBoundingClientRect();r.windowX=o.x,r.windowY=o.y,r.elementX=r.windowX-(a.x||a.left),r.elementY=r.windowY-(a.y||a.top)}r.keyNum=r.which||r.keyCode||0,"enter"===e&&13!==r.keyNum&&32!==r.keyNum||(r.action=i,r.targetElement=n,t(r))}},eventCoords:function(e){if(!e)return null;var t=e;if(e.touches||e.changedTouches){var n=e.touches&&e.touches.length>=1?e.touches:e.changedTouches;n&&n[0]&&(t=n[0])}return"number"==typeof t.pageX&&"number"==typeof t.pageY?{x:t.pageX,y:t.pageY}:"number"==typeof t.clientX&&"number"==typeof t.clientY?{x:t.clientX,y:t.clientY}:null}},ne=["Webkit","Moz","ms"],ie=document.createElement("div").style,re={};function oe(e){var t=re[e];return t||(e in ie?e:re[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=ne.length;n--;)if((e=ne[n]+t)in ie)return e}(e)||e)}function ae(e,t,n){if(this.dom=null,this._clss=[],this._nodes=[],this._listeners=[],this._frag=null,e&&"object"==typeof e){this.dom=e;var i=[],r=[];"string"==typeof e.className&&(r=e.className.split(" "));for(var o=0;o=0||e.indexOf(".")>=0))&&(e&&(t=e),e="div"),this.dom=document.createElement(e),t&&(t.indexOf("#")>=0?this.dom.id=t.split("#")[1]:(t.indexOf(".")>=0&&(t=t.split(".")[1]),this.addClass.call(this,t)));!0===n&&(this._frag=document.createDocumentFragment(),this._frag.appendChild(this.dom))}ae.prototype.createElement=function(e,t){var n=new ae(e,t,!1);return this.appendElement.call(this,n),this._nodes.push(n),n},ae.prototype.appendElement=function(e){if(e===undefined)return X({name:"DomElement Add Child",message:"Child Element is undefined"});var t;t=e._frag!==undefined&&null!==e._frag?e._frag:e.dom!==undefined?e.dom:e;try{e instanceof ae&&(e._parent=this),this.dom.appendChild(t)}catch(rn){X({name:"DomElement Add Child",message:"Failed to append child."})}return this},ae.prototype.removeElement=function(e){try{var t;if(e._nodes)for(t=e._nodes.length;t--;)e.removeElement(e._nodes[t]);for(t=this._nodes.length;--t>-1;)this._nodes[t]===e&&this._nodes.splice(t,1);this.dom.removeChild(e.dom||e),e.__destroy&&e.__destroy()}catch(rn){X({name:"DomElement Remove Child",message:"Failed to remove child."})}},ae.prototype.addClass=function(e){return!1===this.hasClass.call(this,e)&&(this._clss.push(e),this.dom.className=this._clss.join(" ")),this},ae.prototype.hasClass=function(e){for(var t=-1!==this.dom.className.split(" ").indexOf(e),n=this._clss.length;n--&&!t;)t=this._clss[n]===e;return t},ae.prototype.removeClass=function(e){for(var t=this._clss.length;--t>-1;)this._clss[t]===e&&this._clss.splice(t,1);return this.dom.className=this._clss.join(" "),this},ae.prototype.text=function(e){if(this&&this.dom){if(!e)return this.dom.textContent;for(var t,n,i,r,o=/&(.*?);/g,a=/<[a-z][\s\S]*>/i;null!==(t=o.exec(e));){!1===a.test(t[0])?(i=t[0],r=void 0,(r=document.createElement("div")).innerHTML=i,n=r.textContent,e=e.replace(new RegExp(t[0],"g"),n)):e=e.replace(t[0],"")}return this.dom.textContent=e,this}},ae.prototype.content=ae.prototype.text,ae.prototype.css=function(e){var t,n="ie"===D.Browser.type&&8===D.Browser.version;for(var i in e){t=e[i];try{"opacity"!==i&&"zIndex"!==i&&"fontWeight"!==i&&isFinite(t)&&parseFloat(t)===t&&(t+="px");var r=oe(i);n&&"opacity"===i?this.dom.style.filter="alpha(opacity="+100*t+")":n&&U.hasAlpha(t)?this.dom.style[r]=new U(t).getHex():this.dom.style[r]=t}catch(nn){}}return this},ae.prototype.backgroundImage=function(e,t,n,i){var r=t!==undefined&&n!==undefined,o={"-ms-high-contrast-adjust":"none"};if("object"==typeof t&&(i=t),i===undefined&&(i={}),r){var a=e.width/e.height,s=t,c=s/a;i.cover&&cn&&(s=(c=n)*a),o.width=s,o.height=c,i.center&&(o.marginLeft=-s/2,o.marginTop=-c/2,o.position="absolute",o.left="50%",o.top="50%"),(i.left||i.right)&&(o.left=i.left||0,o.top=i.top||0)}"ie"===D.Browser.type&&8===D.Browser.version?o.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+e.src+"',sizingMethod='scale')":(o.background="url("+e.src+")",o.backgroundPosition="50% 50%",o.backgroundRepeat="no-repeat",o.backgroundSize=r?s+"px "+c+"px":i.cover?"cover":i.contain?"contain":"100%"),this.css.call(this,o)},ae.prototype.setAttribute=function(e,t){var n;if("object"==typeof e)for(var i in e)n=e[i],this.dom.setAttribute(i,n);else this.dom.setAttribute(e,t)},ae.prototype.removeAttribute=function(e,t){var n;if("object"==typeof e)for(var i in e)n=e[i],this.dom.removeAttribute(i,n);else this.dom.removeAttribute(e,t)},ae.prototype.addEventListener=function(e,t,n){var i={event:te.eventName(e),handler:te.eventCallback(e,t,this.dom),callback:t};this._listeners.push(i),this.dom.addEventListener?this.dom.addEventListener(i.event,i.handler,n):this.dom.attachEvent("on"+i.event,i.handler)},ae.prototype.removeEventListener=function(e,t,n){for(var i,r=this._listeners.length;--r>-1;)(i=this._listeners[r]).event===e&&i.callback===t&&(this._listeners.splice(r,1),this.dom.removeEventListener?this.dom.removeEventListener(i.event,i.handler,n):this.dom.detachEvent("on"+i.event,i.handler))},ae.prototype.focus=function(){this.dom.focus()},ae.prototype.blur=function(){this.dom.blur()},ae.prototype.html=function(e){return e&&(this.dom.innerHTML=e),this.dom.innerHTML},ae.prototype.__destroy=function(){for(var e,t=this._listeners.length;--t>-1;)e=this._listeners[t],this._listeners.splice(t,1),this.dom.removeEventListener?this.dom.removeEventListener(e.event,e.handler):this.dom.detachEvent("on"+e.event,e.handler);return this.dom=null,this._clss=[],this._nodes=[],this._listeners=[],this._frag=null,e=null,null};var se="challenge-passed",ce="challenge-escaped",he="challenge-closed",le="challenge-expired",de="invalid-data",ue="bundle-error",pe="network-error",fe="rate-limited",me="challenge-error",ge="incomplete-answer",ye="missing-captcha",ve="missing-sitekey",we="invalid-captcha-id";function be(e){if(null===e)return"";var t=[];return _e(e,t),t.join("&")}function _e(e,t){var n,i;if("object"==typeof e)for(i in e)!0===xe(n=e[i])?_e(n,t):t[t.length]=Ce(i,n);else if(!0===Array.isArray(e))for(var r=0;r=0?e.substring(0,e.indexOf("-")):e},isShortLocale:function(e){return 2===e.length||3===e.length},addTable:function(e,t){if(t||(t=Object.create(null)),Ee[e]){var n=Ee[e];for(var i in t)n[i]=t[i]}else Ee[e]=t;return Ee[e]},getTable:function(e){return Ee[e]},addTables:function(e){for(var t in e)Oe.addTable(t,e[t]);return Ee},getTables:function(){return Ee}},Be={400:"Rate limited or network error. Please retry.",429:"Your computer or network has sent too many requests.",500:"Cannot contact hCaptcha. Check your connection and try again."},Ie=function(e){try{return Oe.translate(Be[e])}catch(rn){return!1}},Pe="undefined"!=typeof XDomainRequest&&!("withCredentials"in XMLHttpRequest.prototype);function Te(e,t,n){n=n||{};var i={url:t,method:e.toUpperCase(),responseType:n.responseType||"string",dataType:n.dataType||null,withCredentials:n.withCredentials||!1,headers:n.headers||null,data:n.data||null,timeout:n.timeout||null};return i.legacy=i.withCredentials&&Pe,i.data&&("json"===i.dataType&&"object"==typeof i.data&&(i.data=JSON.stringify(i.data)),"query"===i.dataType&&(i.data=be(i.data))),n.retry?ee((function(){return Ae(i)}),n.retry):Ae(i)}function Ae(e){var t=e.legacy?new XDomainRequest:new XMLHttpRequest,n="function"==typeof e.url?e.url():e.url;return new Promise((function(i,r){var o,a=function(o){return function(){var a=t.response||t.responseText,s=t.statusText||"",c=t.status,h=t.readyState;if(4===h||e.legacy){if("json"===e.responseType&&a)try{a=JSON.parse(a)}catch(l){}if("error"===o||c>=400&&c<=511)return void r({event:pe,endpoint:n,response:a,state:h,status:c,message:Ie(c||400)||s});i({state:h,status:c,body:a,message:s})}}};if((t.onload=a("complete"),t.onerror=t.ontimeout=a("error"),t.open(e.method,n),e.timeout&&(t.timeout=e.timeout),!e.legacy)&&(t.withCredentials=e.withCredentials,e.headers))for(var s in e.headers)o=e.headers[s],t.setRequestHeader(s,o);setTimeout((function(){t.send(e.data)}),0)}))}var je=function(e,t){if("object"==typeof e&&t===undefined&&(e=(t=e).url),null===e)throw new Error("Url missing");return Te("GET",e,t)},Me=function(e){return e.toLowerCase().match(/\.(?:jpg|gif|png|jpeg|svg)$/g)?"image":e.toLowerCase().match(/\.(?:js)$/g)?"script":"file"},$e=function(e){if(z.assethost&&e.indexOf(N.assetDomain)>=0)return z.assethost+e.replace(N.assetDomain,"");if(z.imghost&&e.indexOf("imgs")>=0){var t=e.indexOf(".ai")>=0?e.indexOf(".ai")+3:e.indexOf(".com")+4;return z.imghost+e.substr(t,e.length)}return e},Le=["svg","gif","png"];function Re(e,t){t=t||{};var n,i=e;if(0===i.indexOf("data:image"))for(var r=!1,o=Le.length,a=-1;a++=0)&&(n=Le[a]);else n=i.substr(i.lastIndexOf(".")+1,i.length);!!(!document.createElementNS||!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect)&&t.fallback&&(t.fallback.indexOf(".")>=0?n=(i=t.fallback).substr(i.lastIndexOf(".")+1,i.length):(i=e.substr(0,e.indexOf(n))+t.fallback,n=t.fallback)),t.prefix&&(i=t.prefix+"/"+i),this.attribs={crossOrigin:t.crossOrigin||null},this.id=i,this.src=$e(i),this.ext=n,this.width=0,this.height=0,this.aspect=0,this.loaded=!1,this.error=!1,this.element=null,this.cb={load:[],error:[]}}function De(e,t,n){for(var i=e[t],r=i.length,o=null;--r>-1;)o=i[r],i.splice(r,1),o(n);"error"===t?e.load=[]:e.error=[]}function Ne(e,t){var n=e;t||(t={}),t.prefix&&(n=t.prefix+"/"+e),this.attribs={defer:t.defer||null,async:t.async||null,crossOrigin:t.crossOrigin||null},this.id=n,this.src=$e(n),this.loaded=!1,this.error=!1,this.element=null,this.cb={load:[],error:[]}}function ze(e,t,n){for(var i=e[t],r=i.length,o=null;--r>-1;)o=i[r],i.splice(r,1),o(n);"error"===t?e.load=[]:e.error=[]}function We(e,t){var n=e;t||(t={}),t.prefix&&(n=t.prefix+"/"+e),this.id=n,this.src=$e(n),this.loaded=!1,this.error=!1,this.cb={load:[],error:[]},this.data=null}function Ue(e,t,n){for(var i=e[t],r=i.length,o=null;--r>-1;)o=i[r],i.splice(r,1),o(n);"error"===t?e.load=[]:e.error=[]}Re.prototype.load=function(){return("svg"===this.ext?this._loadSvg():this._loadImg())["catch"]((function(e){throw Y("Asset failed","error","assets",{error:e}),e}))},Re.prototype._loadSvg=function(){var e,t=this,n=this.src,i=this.id;if(0===n.indexOf("data:image/svg+xml")){var r=n.slice("data:image/svg+xml,".length);e=Promise.resolve(decodeURIComponent(r))}else e=je(n).then((function(e){return e.body}));return e.then((function(e){var n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement,i=parseInt(n.getAttribute("width")),r=parseInt(n.getAttribute("height"));return t._imgLoaded(n,i,r),t}))["catch"]((function(e){t.error=!0;var n=(e&&e.message?e.message:e||"Loading Error")+": "+i;throw De(t.cb,"error",n),n}))},Re.prototype._loadImg=function(){var e=this,t=this.attribs,n=this.src,i=this.id;return new Promise((function(r,o){var a=new Image;t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onerror=function(){e.error=!0,a.onload=a.onerror=null;var t="Loading Error: "+i;De(e.cb,"error",t),o(t)},a.onload=function(){e.loaded||(e._imgLoaded(a,a.width,a.height),a.onload=a.onerror=null,r(e))},a.src=n,a.complete&&a.onload()}))},Re.prototype._imgLoaded=function(e,t,n){this.element=new ae(e),this.width=t,this.height=n,this.aspect=t/n,this.loaded=!0,De(this.cb,"load",this)},Re.prototype.onload=function(e){this.error||(this.loaded?e(this):this.cb.load.push(e))},Re.prototype.onerror=function(e){this.loaded&&!this.error||(this.error?e(this):this.cb.error.push(e))},Ne.prototype.load=function(){var e=this,t=this.attribs,n=this.src,i=this.id;return new Promise((function(r,o){var a=document.createElement("script");e.element=a,a.onerror=function(){e.error=!0,a.onload=a.onreadystatechange=a.onerror=null;var t="Loading Error: "+i;ze(e.cb,"error",t),o(t)},a.onload=a.onreadystatechange=function(){this.loaded||a.readyState&&"loaded"!==a.readyState&&"complete"!==a.readyState||(e.loaded=!0,a.onload=a.onreadystatechange=a.onerror=null,document.body.removeChild(a),ze(e.cb,"load",e),r(e))},a.type="text/javascript",a.src=n,t.crossOrigin&&(a.crossorigin=t.crossOrigin),t.async&&(a.async=!0),t.defer&&(a.defer=!0),document.body.appendChild(a),a.complete&&a.onload()}))},Ne.prototype.onload=function(e){this.error||(this.loaded?e(this):this.cb.load.push(e))},Ne.prototype.onerror=function(e){this.loaded&&!this.error||(this.error?e(this):this.cb.error.push(e))},We.prototype.load=function(){var e=this,t=this.src,n=this.id;return new Promise((function(i,r){var o={};t.indexOf("json")>=0&&(o.responseType="json"),je(t,o).then((function(t){e.loaded=!0,e.data=t.body,Ue(e.cb,"load",e),i(e)}))["catch"]((function(t){e.error=!0;var i=(t&&t.message?t.message:"Loading Error")+": "+n;Ue(e.cb,"error",i),r(i)}))}))},We.prototype.onload=function(e){this.error||(this.loaded?e(this):this.cb.load.push(e))},We.prototype.onerror=function(e){this.loaded&&!this.error||(this.error?e(this):this.cb.error.push(e))};var Fe=[],He={add:function(e,t){var n=Me(e);return He[n]?He[n](e,t):Promise.resolve(null)},batch:function(e,t){for(var n=[],i=-1;++i-1&&!r;)r=(o=Fe[i]).id===e||-1!==o.id.indexOf("/"===e[0]?"":"/"+e);if(!r)return t(null);o.onload(t),o.onerror(n)}))}},Je=[],Xe=!1,Ye=!1;function Ge(){document.addEventListener?(document.addEventListener("DOMContentLoaded",Ve),window.addEventListener("load",Ve)):(document.attachEvent("onreadystatechange",qe),window.attachEvent("onload",Ve)),Xe=!0}function qe(){"interactive"!==document.readyState&&"loaded"!==document.readyState&&"complete"!==document.readyState||Ve()}function Ve(){if(!1===Ye){for(var e=0;e=this._period&&(this._date.push(e),this._data.push(t)),!n){var i=e-this._prevTimestamp;this._meanPeriod=(this._meanPeriod*this._meanCounter+i)/(this._meanCounter+1),this._meanCounter++}this._prevTimestamp=e},Ke.prototype._cleanStaleData=function(){for(var e=Date.now(),t=this._date.length-1;t>=0;t--){if(e-this._date[t]>=this._interval){this._date.splice(0,t+1),this._data.splice(0,t+1);break}}};var Ze={touchstart:"ts",touchend:"te",touchmove:"tm",touchcancel:"tc"},et={mousedown:"md",mouseup:"mu",mousemove:"mm"},tt={keydown:"kd",keyup:"ku"},nt={devicemotion:"dm"},it=function(e,t){var n=et[e],i=null;return function(e){i=function(e){return[e.windowX,e.windowY,Date.now()]}(e),t(n,i)}},rt=function(e,t){var n=Ze[e],i=null;return function(e){i=function(e){var t=[];try{var n,i;if(e.touches&&e.touches.length>=1?n=e.touches:e.changedTouches&&e.changedTouches.length>=1&&(n=e.changedTouches),n){for(var r=0;r-1&&!1===t;)pt[n].id===e.id&&(t=pt[n],pt.splice(n,1));return t},each:function(e){for(var t=-1;++t10&&ft.splice(0,ft.length-10)},getSession:function(){return ft}};function gt(e,t){"object"!=typeof e||t||(t=e,e=null);var n,i,r,o=!0===(t=t||{}).async,a=new Promise((function(e,t){i=e,r=t}));if(a.resolve=i,a.reject=r,n=e?mt.getById(e):mt.getByIndex(0))ct.setData("exec",!0),o&&n.setPromise(a),n.onReady(n.initChallenge,t);else if(e){if(!o)throw new lt(e);a.reject(we)}else{if(!o)throw new dt;a.reject(ye)}if(o)return a}function yt(e){var t="",n=null;n=e?mt.getById(e):mt.getByIndex(0);try{for(var i=mt.getSession(),r=i.length,o=!1;--r>-1&&!o;)(o=i[r][1]===n.id)&&(t=i[r][0])}catch(a){t=""}return t}function vt(e,t){var n=e instanceof HTMLIFrameElement;try{n?e.parentNode&&e.contentWindow.postMessage(JSON.stringify(t),"*"):e.postMessage(JSON.stringify(t),"*")}catch(nn){G("messaging",nn)}}function wt(e,t){this.target=e,this.id=t,this.messages=[],this.incoming=[],this.waiting=[]}function bt(e,t){var n=this,i={},r=new Promise((function(e,t){i.resolve=e,i.reject=t})),o={source:"hcaptcha",label:e,id:n.id,promise:null,lookup:t};return r.then((function(e){o.promise="resolve",null!==e&&(o.contents=e),vt(n.target,o)}))["catch"]((function(e){o.promise="reject",null!==e&&(o.error=e),vt(n.target,o)})),i}wt.prototype.setID=function(e){this.id=e},wt.prototype.contact=function(e,t){if(!this.id)throw new Error("Chat requires unique id to communicate between windows");var n=this,i=Date.now().toString(36),r={source:"hcaptcha",label:e,id:this.id,promise:"create",lookup:i};if(t){if("object"!=typeof t)throw new Error("Message must be an object.");r.contents=t}return new Promise((function(t,o){n.waiting.push({label:e,reject:o,resolve:t,lookup:i}),vt(n.target,r)}))},wt.prototype.listen=function(e,t){if(!this.id)throw new Error("Chat requires unique id to communicate between windows");for(var n=this.messages.length,i=!1;--n>-1&&!1===i;)this.messages[n].label===e&&(i=this.messages[n]);!1===i&&(i={label:e,listeners:[]},this.messages.push(i)),i.listeners.push(t)},wt.prototype.answer=function(e,t){if(!this.id)throw new Error("Chat requires unique id to communicate between windows");for(var n=this.incoming.length,i=!1;--n>-1&&!1===i;)this.incoming[n].label===e&&(i=this.incoming[n]);!1===i&&(i={label:e,listeners:[]},this.incoming.push(i)),i.listeners.push(t)},wt.prototype.send=function(e,t){if(!this.id)throw new Error("Chat requires unique id to communicate between windows");var n={source:"hcaptcha",label:e,id:this.id};if(t){if("object"!=typeof t)throw new Error("Message must be an object.");n.contents=t}vt(this.target,n)},wt.prototype.check=function(e,t){for(var n=[].concat.apply([],[this.messages,this.incoming,this.waiting]),i=[],r=-1;++r-1&&!1===c;)this.waiting[s].label===t.label&&this.waiting[s].lookup===t.lookup&&(c=!0,this.waiting.splice(s,1));continue}for(r=0;r-1&&!1===t;)e.id===_t.chats[n].id&&e.target===_t.chats[n].target&&(t=_t.chats[n],_t.chats.splice(n,1));return t},handle:function(e){var t=e.data;if("string"==typeof t)try{if(!(t.indexOf("hcaptcha")>=0))return;t=JSON.parse(t);for(var n,i=_t.chats,r=-1;++r=0&&Rt.use(n.theme),this._state={escaped:!1,passed:!1,expiredChallenge:!1,expiredResponse:!1},this._origData=null,this._promise=null,this._responseTimer=null,this.challenge=new Dt(t,n),this.checkbox=new Nt(e,t,n),this.initChallenge=this.initChallenge.bind(this),this.closeChallenge=this.closeChallenge.bind(this),this.displayChallenge=this.displayChallenge.bind(this),this.getGetCaptchaManifest=this.getGetCaptchaManifest.bind(this)}function Wt(e){if("en"===e)return Promise.resolve();var t=e+".json";return new Promise((function(n,i){He.retrieve(t).then((function(n){return n||He.file(t,{prefix:"https://newassets.hcaptcha.com/captcha/v1/f5a464c/static/i18n"}).then((function(t){return Oe.addTable(e,t.data),t}))})).then((function(e){n(e.data)}))["catch"]((function(e){i(e)}))}))}Rt.add("contrast",{}),Rt.add("grey-red",{component:{challenge:{main:{border:"#6a6a6a"}}}}),Dt.prototype.setupParentContainer=function(e){var t,n=e["challenge-container"];n&&(t="string"==typeof n?document.getElementById(n):n),t?(this._hasCustomContainer=!0,this._parent=t):(this._hasCustomContainer=!1,this._parent=document.body)},Dt.prototype._hideIframe=function(){var e={};"ie"!==D.Browser.type||"ie"===D.Browser.type&&8!==D.Browser.version?(e.opacity=0,e.visibility="hidden"):e.display="none",this.$iframe.setAttribute("aria-hidden",!0),this.$iframe.css(e)},Dt.prototype._showIframe=function(){var e={};"ie"!==D.Browser.type||"ie"===D.Browser.type&&8!==D.Browser.version?(e.opacity=1,e.visibility="visible"):e.display="block",this.$iframe.removeAttribute("aria-hidden"),this.$iframe.css(e)},Dt.prototype.style=function(){var e=function(e){var t=e.palette,n=e.component;return $t.merge({main:{fill:t.common.white,border:t.grey[400]}},n.challenge)}(Rt.get());if(this._hasCustomContainer)this.$iframe.css({border:0,position:"relative",backgroundColor:e.main.fill});else{var t={backgroundColor:e.main.fill,border:"1px solid "+e.main.border,boxShadow:"rgba(0, 0, 0, 0.1) 0px 0px 4px",borderRadius:4,left:-1e4,top:-1e4,zIndex:-9999999999999,position:"absolute"};"ie"!==D.Browser.type||"ie"===D.Browser.type&&8!==D.Browser.version?(t.transition="opacity 0.15s ease-out",t.opacity=0,t.visibility="hidden"):t.display="none",this.$container.css(t),this.$wrapper.css({position:"relative",zIndex:1}),this.$overlay.css({width:"100%",height:"100%",position:"fixed",pointerEvents:"none",top:0,left:0,zIndex:0,backgroundColor:e.main.fill,opacity:.05}),this.$arrow.css({borderWidth:11,position:"absolute",pointerEvents:"none",marginTop:-11,zIndex:1,right:"100%"}),this.$arrow.fg.css({borderWidth:10,borderStyle:"solid",borderColor:"transparent rgb(255, 255, 255) transparent transparent",position:"relative",top:10,zIndex:1}),this.$arrow.bg.css({borderWidth:11,borderStyle:"solid",borderColor:"transparent "+e.main.border+" transparent transparent",position:"relative",top:-11,zIndex:0}),this.$iframe.css({border:0,zIndex:2e9,position:"relative"})}},Dt.prototype.setup=function(e){return this.chat.send("create-challenge",e)},Dt.prototype.sendTranslation=function(e){var t={locale:e,table:Oe.getTable(e)||{}};this.chat&&this.chat.send("challenge-translate",t)},Dt.prototype.isVisible=function(){return this._visible},Dt.prototype.getDimensions=function(e,t){return this._visible?this.chat.contact("resize-challenge",{width:e,height:t}):Promise.resolve(null)},Dt.prototype.show=function(){if(!0!==this._visible)if(this._visible=!0,this._hasCustomContainer)this._showIframe();else{var e={zIndex:9999999999999,display:"block"};("ie"!==D.Browser.type||"ie"===D.Browser.type&&8!==D.Browser.version)&&(e.opacity=1,e.visibility="visible"),this.$container.css(e),this.$container.removeAttribute("aria-hidden"),this.$overlay.css({pointerEvents:"auto",cursor:"pointer"}),this.$iframe.dom.focus()}},Dt.prototype.close=function(e){if(this._visible=!1,this._hasCustomContainer)return this._hideIframe(),void this.chat.send("close-challenge",{event:e});var t={left:-1e4,top:-1e4,zIndex:-9999999999999};"ie"!==D.Browser.type||"ie"===D.Browser.type&&8!==D.Browser.version?(t.opacity=0,t.visibility="hidden"):t.display="none",this.$container.css(t),this._hasCustomContainer||this.$overlay.css({pointerEvents:"none",cursor:"default"}),this.chat.send("close-challenge",{event:e}),this.$container.setAttribute("aria-hidden",!0)},Dt.prototype.size=function(e,t,n){this.width=e,this.height=t,this.mobile=n,this.$iframe.css({width:e,height:t}),this._hasCustomContainer||(this.$wrapper.css({width:e,height:t}),n?this.$overlay.css({opacity:.5}):this.$overlay.css({opacity:.05}))},Dt.prototype.position=function(e){if(!this._hasCustomContainer&&e){var t=10,n=window.document.documentElement,i=D.Browser.scrollY(),r=D.Browser.width(),o=D.Browser.height(),a=this.mobile||"invisible"===this.config.size||e.offset.left+e.tick.x<=e.tick.width/2,s=Math.round(e.bounding.top)+i!==e.offset.top,c=this.height>n.clientHeight,h=a?(r-this.width)/2:e.bounding.left+e.tick.right+10;(h+this.width+t>r||h<0)&&(h=(r-this.width)/2,a=!0);var l=(n.scrollHeight=i+o&&(d=i+o-(this.height+t)),d=Math.max(Math.min(d,l),10);var u=e.bounding.top+e.tick.y+i-d-10,p=this.height-10-30;return u=Math.max(Math.min(u,p),t),this.$container.css({left:h,top:d}),this.$arrow.fg.css({display:a?"none":"block"}),this.$arrow.bg.css({display:a?"none":"block"}),this.$arrow.css({top:u}),this.top=d,this.$container.dom.getBoundingClientRect(),c}},Dt.prototype.destroy=function(){this._visible&&this.close.call(this),this._hasCustomContainer?this._parent.removeChild(this.$iframe.dom):(this._parent.removeChild(this.$container.dom),this.$container=this.$container.__destroy()),this.$iframe=this.$iframe.__destroy(),_t.removeChat(this.chat),this.chat=this.chat.destroy()},Dt.prototype.setReady=function(e){if(this.ready=e,this.ready)for(var t,n=this.listeners.length;--n>-1;)t=this.listeners[n],this.listeners.splice(n,1),t()},Dt.prototype.onReady=function(e){var t=Array.prototype.slice.call(arguments,1),n=function(){e.apply(null,t)};this.ready?n():this.listeners.push(n)},Dt.prototype.onOverlayClick=function(e){this._hasCustomContainer||this.$overlay.addEventListener("click",e)},Dt.prototype.setConfig=function(e){return this.chat?this.chat.contact("challenge-update",e):Promise.resolve()},Dt.prototype.setData=function(e){this.chat&&this.chat.send("challenge-data",e)},Nt.prototype.setResponse=function(e){this.response=e,this.$iframe.dom.setAttribute("data-hcaptcha-response",e),"off"!==z.recaptchacompat&&(this.$textArea0.dom.value=e),this.$textArea1.dom.value=e},Nt.prototype.style=function(){switch(this.config.size){case"compact":this.$iframe.css({width:164,height:144});break;case"invisible":this.$iframe.css({display:"none"});break;default:this.$iframe.css({width:303,height:78,overflow:"hidden"})}},Nt.prototype.reset=function(){this._ticked=!1,this.chat&&this.chat.send("checkbox-reset")},Nt.prototype.clearLoading=function(){this.chat&&this.chat.send("checkbox-clear")},Nt.prototype.sendTranslation=function(e){var t={locale:e,table:Oe.getTable(e)||{}};this.chat&&this.chat.send("checkbox-translate",t)},Nt.prototype.status=function(e,t){this.chat&&this.chat.send("checkbox-status",{text:e||null,a11yOnly:t||!1})},Nt.prototype.tick=function(){this._ticked=!0,this.chat&&this.chat.send("checkbox-tick")},Nt.prototype.getTickLocation=function(){return this.chat.contact("checkbox-location")},Nt.prototype.getOffset=function(){var e=this.$iframe.dom;e.offsetParent||(e=e.parentElement);for(var t=0,n=0;e;)t+=e.offsetLeft,n+=e.offsetTop,e=e.offsetParent;return{top:n,left:t}},Nt.prototype.getBounding=function(){return this.$iframe.dom.getBoundingClientRect()},Nt.prototype.destroy=function(){this._ticked&&this.reset(),this.$container.removeElement(this.$iframe),this.$container.removeElement(this.$textArea1),"off"!==z.recaptchacompat&&(this.$container.removeElement(this.$textArea0),this.$textArea0=this.$textArea0.__destroy()),this.$textArea1=this.$textArea1.__destroy(),this.$container=this.$container.__destroy(),this.$iframe=this.$iframe.__destroy(),_t.removeChat(this.chat),this.chat=this.chat.destroy()},zt.prototype._resetTimer=function(){null!==this._responseTimer&&(clearTimeout(this._responseTimer),this._responseTimer=null)},zt.prototype.initChallenge=function(e){e||(e={}),this._origData=e;var t=this.getGetCaptchaManifest(),n=e.charity||null,i=e.a11yChallenge||!1,r=e.link||null,o=e.action||"",a=e.rqdata||null,s=D.Browser.width(),c=D.Browser.height();this._active=!0,this._resetTimer(),this._resetState(),this.checkbox.setResponse(""),this.challenge.setup({a11yChallenge:i,manifest:t,width:s,height:c,charity:n,link:r,action:o,rqdata:a,wdata:xt()})},zt.prototype.getGetCaptchaManifest=function(){var e=(this._origData||{}).manifest||null;return e||((e=Object.create(null)).st=Date.now()),e.v=1,e.topLevel=ct.getData(),e.session=mt.getSession(),e.widgetList=mt.getCaptchaIdList(),e.widgetId=this.id,e.href=window.location.href,e.prev=JSON.parse(JSON.stringify(this._state)),e},zt.prototype.displayChallenge=function(e){if(this._active){var t=this;this.visible=!0;var n=this.checkbox,i=this.challenge,r=D.Browser.height();if(!("ie"===D.Browser.type&&8===D.Browser.version)){var o=window.getComputedStyle(document.body).getPropertyValue("overflow-y");this.overflow.override="hidden"===o,this.overflow.override&&(this.overflow.cssUsed=""===document.body.style.overflow&&""===document.body.style.overflowY,this.overflow.cssUsed||(this.overflow.value=""===o?"auto":o),this.overflow.scroll=D.Browser.scrollY(),document.body.style.overflowY="auto")}return new Promise((function(o){n.status(),n.getTickLocation().then((function(a){if(t._active){if(i.size(e.width,e.height,e.mobile),i.show(),n.clearLoading(),n.location.bounding=n.getBounding(),n.location.tick=a,n.location.offset=n.getOffset(),i.position(n.location))(window.document.scrollingElement||document.getElementsByTagName("html")[0]).scrollTop=Math.abs(i.height-r)+i.top;o()}}))})).then((function(){t.onOpen&&K(t.onOpen)}))}},zt.prototype.resize=function(e,t,n){var i=this,r=this.checkbox,o=this.challenge;o.getDimensions(e,t).then((function(e){e&&o.size(e.width,e.height,e.mobile),r.location.bounding=r.getBounding(),r.location.offset=r.getOffset(),D.System.mobile&&!n||o.position(r.location)}))["catch"]((function(e){i.closeChallenge.call(i,{event:me,message:"Captcha resize caused error.",error:e})}))},zt.prototype.position=function(){var e=this.checkbox,t=this.challenge;D.System.mobile||(e.location.bounding=e.getBounding(),t.position(e.location))},zt.prototype.reset=function(){this.checkbox.reset(),this.checkbox.setResponse(""),this._resetTimer(),this._resetState()},zt.prototype._resetState=function(){for(var e in this._state)this._state[e]=!1},zt.prototype.closeChallenge=function(e){this.visible=!1,this._active=!1;var t=this,n=this.checkbox,i=this.challenge;this.overflow.override&&((window.document.scrollingElement||document.getElementsByTagName("html")[0]).scrollTop=this.overflow.scroll,this.overflow.override=!1,this.overflow.scroll=0,document.body.style.overflowY=this.overflow.cssUsed?null:this.overflow.value);var r=e.response||"";switch(n.setResponse(r),i.close(e.event),n.$iframe.dom.focus(),e.event){case ce:this._state.escaped=!0,n.reset(),t.onClose&&K(t.onClose),t._promise&&t._promise.reject(he);break;case le:this._state.expiredChallenge=!0,n.reset(),n.status("hCaptcha window closed due to timeout.",!0),t.onChalExpire&&K(t.onChalExpire),t._promise&&t._promise.reject(le);break;case me:case ue:case pe:var o=e.event;n.reset(),e.event===pe?(n.status(e.message),429===e.status?o=fe:"invalid-data"===e.message&&(o=de)):e.event===ue?o=me:e.event===me&&"Answers are incomplete"===e.message&&(o=ge),this.onError&&K(this.onError,o),t._promise&&t._promise.reject(o);break;case se:this._state.passed=!0,n.tick(),this.onPass&&K(this.onPass,r),t._promise&&t._promise.resolve({response:r,key:yt(this.id)}),"number"==typeof e.expiration&&(t._resetTimer(),t._responseTimer=setTimeout((function(){try{n.reset(),n.setResponse(""),n.status("hCaptcha security token has expired. Please complete the challenge again.",!0)}catch(nn){G("global",nn)}t.onExpire&&K(t.onExpire),t._responseTimer=null,t._state.expiredResponse=!0}),1e3*e.expiration))}t._promise=null},zt.prototype.updateTranslation=function(e){this.checkbox.sendTranslation(e),this.challenge.sendTranslation(e)},zt.prototype.isReady=function(){return this._ready},zt.prototype.setReady=function(e){if(this._ready=e,this._ready)for(var t,n=this._listeners.length;--n>-1;)t=this._listeners[n],this._listeners.splice(n,1),t()},zt.prototype.setPromise=function(e){this._promise=e},zt.prototype.onReady=function(e){var t=Array.prototype.slice.call(arguments,1),n=function(){e.apply(null,t)};this._ready?n():this._listeners.push(n)},zt.prototype.destroy=function(){(this._resetTimer(),this.overflow.override)&&((window.document.scrollingElement||document.getElementsByTagName("html")[0]).scrollTop=this.overflow.scroll,this.overflow.override=!1,this.overflow.scroll=0,document.body.style.overflowY=this.overflow.cssUsed?null:this.overflow.value);this.challenge.destroy(),this.checkbox.destroy(),this.challenge=null,this.checkbox=null},zt.prototype.setSiteConfig=function(e){var t=e&&e.features&&e.features.custom_theme;if(this.config.themeConfig&&t){var n="custom-"+this.id;Rt.add(n,Rt.extend(Rt.active(),this.config.themeConfig)),Rt.use(n),this.challenge.style()}return this.challenge.setConfig({siteConfig:e,wdata:xt()})};var Ut=0,Ft=["hl","custom","tplinks","sitekey","theme","size","tabindex","challenge-container"];var Ht={render:function(e,t){if("string"==typeof e&&(e=document.getElementById(e)),e&&1===e.nodeType)if(function(e){if(!e||!("challenge-container"in e))return!0;var t=e["challenge-container"];return"string"==typeof t&&(t=document.getElementById(t)),!!t&&1===t.nodeType}(t)){if(!1!==_t.isSupported()){for(var n,i,r=e.getElementsByTagName("iframe"),o=-1;++oupgrade your browser or enable it for hCaptcha.com")}else console.log("[hCaptcha] render: invalid challenge container '"+t["challenge-container"]+"'.");else console.log("[hCaptcha] render: invalid container '"+e+"'.");function v(e,t){var n=e.locale;function i(e){if(e)try{e.updateTranslation(n)}catch(nn){G("translation",nn)}}n&&Wt(n).then((function(){t?i(g):mt.each(i)}))["catch"]((function(e){G("api",e,{locale:n})}))}},reset:function(e){var t;if(e){if(!(t=mt.getById(e)))throw new lt(e);t.reset()}else{if(!(t=mt.getByIndex(0)))throw new dt;t.reset()}},remove:function(e){var t=e?mt.getById(e):mt.getByIndex(0);if(!t)throw e?new lt(e):new dt;mt.remove(t),t.destroy(),t=null},execute:gt,getResponse:function(e){var t,n;if((n=e?mt.getById(e):mt.getByIndex(0))&&(t=n.checkbox.response||""),void 0!==t)return t;throw e?new lt(e):new dt},getRespKey:yt,close:function(e){var t=!1;if(!(t=e?mt.getById(e):mt.getByIndex(0)))throw e?new lt(e):new dt;t.closeChallenge({event:ce})},setData:function(e,t){if("object"!=typeof e||t||(t=e,e=null),!t||"object"!=typeof t)throw Error("[hCaptcha] invalid data supplied");var n=!1;if(!(n=e?mt.getById(e):mt.getByIndex(0)))throw e?new lt(e):new dt;var i=n.challenge.setData.bind(n.challenge);n.onReady(i,t)},nodes:mt};N.file="hcaptcha";var Jt=document.currentScript,Xt=!1,Yt=!1,Gt="on",qt=D.Browser.width()/D.Browser.height(),Vt=window.hcaptcha||!1;function Qt(){var e=D.Browser.width(),t=D.Browser.height(),n=D.System.mobile&&qt!==e/t;qt=e/t,en(),Ht.nodes.each((function(i){i.visible&&i.resize(e,t,n)}))}function Kt(e){e.preventDefault&&e.preventDefault(),Zt(),Ht.nodes.each((function(e){e.visible&&e.position()}))}function Zt(){ct.circBuffPush("xy",[D.Browser.scrollX(),D.Browser.scrollY(),document.documentElement.clientWidth/D.Browser.width(),Date.now()])}function en(){ct.circBuffPush("wn",[D.Browser.width(),D.Browser.height(),D.System.dpr(),Date.now()])}!function(e){var t=Array.prototype.slice.call(arguments,1);!0!==Ye&&"interactive"!==document.readyState&&"loaded"!==document.readyState&&"complete"!==document.readyState?(Je.push({fn:e,args:t}),!1===Xe&&Ge()):setTimeout((function(){e(t)}),1)}((function(){Vt||(!function(){var e;e=Jt?[Jt]:document.getElementsByTagName("script");var t=-1,n=!1,i=null,r=null;for(;++t=0?e.split("&"):[e]:[],a=0;a=0){if(t=o[a].split("="),n=decodeURIComponent(t[0]),"false"!==(i=decodeURIComponent(t[1]))&&"true"!==i||(i="true"===i),"theme"===n||"themeConfig"===n)try{i=JSON.parse(i)}catch(rn){}r[n]=i}return r}(i[1]);Xt=o.onload||!1,Yt=o.render||!1,"off"===o.tplinks&&(Gt="off");z.tplinks=Gt,z.language=o.hl||null,o.endpoint&&(z.endpointOverride=o.endpoint);z.reportapi=o.reportapi||z.reportapi,z.imghost=o.imghost||null,z.custom=o.custom||z.custom,z.se=o.se||null,z.assethost=o.assethost||null,z.assethost&&!Z.URL(z.assethost)&&(z.assethost=null,console.error("Invalid assethost uri."));z.recaptchacompat=o.recaptchacompat||z.recaptchacompat,N.host=o.host||window.location.hostname,z.language=z.language||window.navigator.userLanguage||window.navigator.language,Oe.setLocale(z.language),a=o.sentry===undefined||o.sentry,void(J=a),"off"===z.recaptchacompat?console.log("recaptchacompat disabled"):window.grecaptcha=tn;var a}(),function(){var e=Oe.getLocale();if(e.indexOf("en")>=0)return;Wt(e).then((function(){Ht.nodes.each((function(t){if(t)try{t.updateTranslation(e)}catch(nn){G("translation",nn)}}))}))["catch"]((function(t){G("api",t,{locale:e})}))}(),!1===Yt||"onload"===Yt?function(e){for(var t=document.getElementsByClassName("h-captcha"),n=[],i=0;i