challenges.cloudflare.com Open in urlscan Pro
2606:4700::6812:5e29  Public Scan

URL: https://challenges.cloudflare.com/turnstile/v0/b/22755d9a86c9/api.js
Submission Tags: falconsandbox
Submission: On November 20 via api from US — Scanned from US

Form analysis 0 forms found in the DOM

Text Content

"use strict";(function(){function Ht(e,r,n,o,c,l,g){try{var h=e[l](g),u=h.value}catch(f){n(f);return}h.done?r(u):Promise.resolve(u).then(o,c)}function Bt(e){return function(){var r=this,n=arguments;return new Promise(function(o,c){var l=e.apply(r,n);function g(u){Ht(l,o,c,g,h,"next",u)}function h(u){Ht(l,o,c,g,h,"throw",u)}g(void 0)})}}function V(e,r){return r!=null&&typeof Symbol!="undefined"&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](e):V(e,r)}function Me(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Fe(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable}))),o.forEach(function(c){Me(e,c,n[c])})}return e}function Sr(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,o)}return n}function nt(e,r){return r=r!=null?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}),e}function jt(e){if(Array.isArray(e))return e}function qt(e,r){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var o=[],c=!0,l=!1,g,h;try{for(n=n.call(e);!(c=(g=n.next()).done)&&(o.push(g.value),!(r&&o.length===r));c=!0);}catch(u){l=!0,h=u}finally{try{!c&&n.return!=null&&n.return()}finally{if(l)throw h}}return o}}function zt(){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 at(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,o=new Array(r);n<r;n++)o[n]=e[n];return o}function Gt(e,r){if(e){if(typeof e=="string")return at(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return at(e,r)}}function Ae(e,r){return jt(e)||qt(e,r)||Gt(e,r)||zt()}function D(e){"@swc/helpers - typeof";return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Ue(e,r){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},o,c,l,g;return g={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function h(f){return function(E){return u([f,E])}}function u(f){if(o)throw new TypeError("Generator is already executing.");for(;g&&(g=0,f[0]&&(n=0)),n;)try{if(o=1,c&&(l=f[0]&2?c.return:f[0]?c.throw||((l=c.return)&&l.call(c),0):c.next)&&!(l=l.call(c,f[1])).done)return l;switch(c=0,l&&(f=[f[0]&2,l.value]),f[0]){case 0:case 1:l=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,c=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!l||f[1]>l[0]&&f[1]<l[3])){n.label=f[1];break}if(f[0]===6&&n.label<l[1]){n.label=l[1],l=f;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(f);break}l[2]&&n.ops.pop(),n.trys.pop();continue}f=r.call(e,n)}catch(E){f=[6,E],c=0}finally{o=l=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var Xt={code:200500,internalRepr:"iframe_load_err",public:!0,retryable:!1,description:"Turnstile's api.js was loaded, but the iframe under challenges.cloudflare.com could not be loaded. Has the visitor blocked some parts of challenges.cloudflare.com or are they self-hosting api.js?"};var Yt=300020;var De=300030;var Ve=300031;var q;(function(e){e.MANAGED="managed",e.NON_INTERACTIVE="non-interactive",e.INVISIBLE="invisible"})(q||(q={}));var L;(function(e){e.NORMAL="normal",e.COMPACT="compact",e.INVISIBLE="invisible",e.FLEXIBLE="flexible"})(L||(L={}));var Pe;(function(e){e.AUTO="auto",e.LIGHT="light",e.DARK="dark"})(Pe||(Pe={}));var Se;(function(e){e.VERIFYING="verifying",e.VERIFYING_HAVING_TROUBLES="verifying-having-troubles",e.FAILURE_WO_HAVING_TROUBLES="failure-wo-having-troubles",e.FAILURE_HAVING_TROUBLES="failure-having-troubles",e.FAILURE_FEEDBACK="failure-feedback",e.FAILURE_FEEDBACK_CODE="failure-feedback-code",e.EXPIRED_NEVER_REFRESH="expired-never-refresh",e.EXPIRED_MANUAL_REFRESH="expired-manual-refresh",e.TIMEOUT_NEVER_REFRESH="timeout-never-refresh",e.TIMEOUT_MANUAL_REFRESH="timeout-manual-refresh",e.INTERACTIVITY_REQUIRED="interactivity-required",e.OUTDATED_BROWSER="outdated-browser",e.TIME_CHECK_CACHED_WARNING="time-check-cached-warning",e.INVALID_DOMAIN="invalid-domain",e.LONGER_THAN_EXPECTED="longer-than-expected"})(Se||(Se={}));var fe;(function(e){e.NEVER="never",e.AUTO="auto"})(fe||(fe={}));var $;(function(e){e.NEVER="never",e.MANUAL="manual",e.AUTO="auto"})($||($={}));var ie;(function(e){e.NEVER="never",e.MANUAL="manual",e.AUTO="auto"})(ie||(ie={}));var X;(function(e){e.ALWAYS="always",e.EXECUTE="execute",e.INTERACTION_ONLY="interaction-only"})(X||(X={}));var pe;(function(e){e.RENDER="render",e.EXECUTE="execute"})(pe||(pe={}));var oe;(function(e){e.EXECUTE="execute"})(oe||(oe={}));var it;(function(e){e.ALWAYS_FAILS="always-fails",e.SOMETIMES_FAILS="sometimes-fails",e.KEEPS_LOOPING="keeps-looping",e.TOO_SLOW="too-slow",e.OTHER="other"})(it||(it={}));var We;(function(e){e.FAILURE="failure",e.VERIFYING="verifying",e.CUSTOM="custom"})(We||(We={}));function M(e,r){return e.indexOf(r)!==-1}function ot(e){return M(["auto","dark","light"],e)}function ct(e){return M(["auto","never"],e)}function lt(e){return e>0&&e<9e5}function ut(e){return e>0&&e<36e4}var Ir=/^[0-9A-Za-z_-]{3,100}$/;function Kt(e){return Ir.test(e)}var Or=/^[a-z0-9_-]{0,32}$/i;function st(e){return e===void 0?!0:typeof e=="string"&&Or.test(e)}var Cr=/^[a-z0-9_\-=]{0,255}$/i;function dt(e){return e===void 0?!0:typeof e=="string"&&Cr.test(e)}function ft(e){return M([L.NORMAL,L.COMPACT,L.INVISIBLE,L.FLEXIBLE],e)}function pt(e){return M(["auto","manual","never"],e)}function vt(e){return M(["auto","manual","never"],e)}var Nr=/^[a-z]{2,3}([-_][a-z]{2})?$/i;function mt(e){return e==="auto"||Nr.test(e)}function gt(e){return M(["always","execute","interaction-only"],e)}function Qt(e){return M(["true","false"],e)}function yt(e){return M(["render","execute"],e)}var $t=300,Jt=10;function ht(e){var r=new URLSearchParams;if(e.params._debugSitekeyOverrides&&(e.params._debugSitekeyOverrides.offlabel!=="default"&&r.set("offlabel",e.params._debugSitekeyOverrides.offlabel),e.params._debugSitekeyOverrides.clearance_level!=="default"&&r.set("clearance_level",e.params._debugSitekeyOverrides.clearance_level)),r.size!==0)return r.toString()}var He="cf-chl-widget-",P="cloudflare-challenge",Zt=".cf-turnstile",er=".cf-challenge",tr=".g-recaptcha",_t="cf_challenge_response",bt="cf-turnstile-response",Et="g-recaptcha-response",rr=8e3,xt="private-token",nr=3,ar=500,ir=500,Y="0/0";var kr=["bg-bg","da-dk","de-de","el-gr","ja-jp","ms-my","ru-ru","sk-sk","sl-si","sr-ba","tl-ph","uk-ua"],Lr=["ar-eg","es-es","cs-cz","fa-ir","fr-fr","hr-hr","hu-hu","id-id","it-it","lt-lt","nb-no","nl-nl","pl-pl","pt-br","th-th","tr-tr","ro-ro"];function wt(e,r){var n="https://challenges.cloudflare.com";if(r){var o;n=(o=e["base-url"])!==null&&o!==void 0?o:n}return n}function Tt(e,r,n,o,c,l,g){var h=wt(n,c),u=l?"h/".concat(l,"/"):"",f=g?"?".concat(g):"",E=n["feedback-enabled"]===!1?"fbD":"fbE";return"".concat(h,"/cdn-cgi/challenge-platform/").concat(u,"turnstile/if/ov2/av0/rcv").concat(o,"/").concat(e,"/").concat(r,"/").concat(n.theme,"/").concat(E,"/").concat(n.size,"/").concat(n.language,"/").concat(f)}var Rt=function(e){var r,n,o=window.innerWidth<400,c=e.state===Se.FAILURE_FEEDBACK||e.state===Se.FAILURE_HAVING_TROUBLES,l,g=M(kr,(l=(r=e.displayLanguage)===null||r===void 0?void 0:r.toLowerCase())!==null&&l!==void 0?l:"nonexistent"),h,u=M(Lr,(h=(n=e.displayLanguage)===null||n===void 0?void 0:n.toLowerCase())!==null&&h!==void 0?h:"nonexistent");return o?Mr({isModeratelyVerbose:u,isVerboseLanguage:g,isSmallerFeedback:c}):c&&g?"520px":c&&u?"500px":c?"480px":g?"580px":"570px"},Mr=function(e){var r=e.isVerboseLanguage,n=e.isSmallerFeedback,o=e.isModeratelyVerbose;return n&&r?"540px":n&&o?"500px":n?"480px":r?"650px":o?"590px":"570px"};function Be(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function or(e,r){if(!V(e,r))throw new TypeError("Cannot call a class as a function")}function J(e,r){return J=Object.setPrototypeOf||function(o,c){return o.__proto__=c,o},J(e,r)}function cr(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&J(e,r)}function je(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Ie(e,r,n){return je()?Ie=Reflect.construct:Ie=function(c,l,g){var h=[null];h.push.apply(h,l);var u=Function.bind.apply(c,h),f=new u;return g&&J(f,g.prototype),f},Ie.apply(null,arguments)}function ce(e){return ce=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ce(e)}function lr(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function qe(e){var r=typeof Map=="function"?new Map:void 0;return qe=function(o){if(o===null||!lr(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r!="undefined"){if(r.has(o))return r.get(o);r.set(o,c)}function c(){return Ie(o,arguments,ce(this).constructor)}return c.prototype=Object.create(o.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),J(c,o)},qe(e)}function ur(e,r){return r&&(D(r)==="object"||typeof r=="function")?r:Be(e)}function sr(e){var r=je();return function(){var o=ce(e),c;if(r){var l=ce(this).constructor;c=Reflect.construct(o,arguments,l)}else c=o.apply(this,arguments);return ur(this,c)}}var dr=function(e){"use strict";cr(n,e);var r=sr(n);function n(o,c){or(this,n);var l;return l=r.call(this,o),Me(Be(l),"code",void 0),l.name="TurnstileError",l.code=c,l}return n}(qe(Error));function m(e,r){var n="[Cloudflare Turnstile] ".concat(e,".");throw new dr(n,r)}function b(e){console.warn("[Cloudflare Turnstile] ".concat(e))}function ze(e){return e.startsWith(He)?e.substring(He.length):null}function K(e){return"".concat(He).concat(e)}function At(){var e=/\/turnstile\/v0(\/.*)?\/api\.js/,r=document.currentScript;if(V(r,HTMLScriptElement)&&e.test(r.src))return r;for(var n=document.querySelectorAll("script"),o=0,c;c=n[o];o++)if(V(c,HTMLScriptElement)&&e.test(c.src))return c}function fr(){var e=At();e||m("Could not find Turnstile script tag, some features may not be available",43777);var r=e.src,n={loadedAsync:!1,params:new URLSearchParams,src:r};(e.async||e.defer)&&(n.loadedAsync=!0);var o=r.split("?");return o.length>1&&(n.params=new URLSearchParams(o[1])),n}function W(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}var St=function(e,r,n){var o=wt(r.params,!1),c="h/".concat("b","/"),l,g,h="".concat(o,"/cdn-cgi/challenge-platform/").concat(c,"feedback-reports/").concat(ze(e),"/").concat(r.displayLanguage,"/").concat((l=r.params.theme)!==null&&l!==void 0?l:r.theme,"/").concat(n);r.wrapper.parentNode||m("Cannot initialize Widget, Element not found (#".concat(e,")."),3074);var u=document.createElement("div");u.style.position="fixed",u.style.zIndex="2147483646",u.style.width="100vw",u.style.height="100vh",u.style.top="0",u.style.left="0",u.style.transformOrigin="center center",u.style.overflowX="hidden",u.style.overflowY="auto",u.style.background="rgba(0,0,0,0.4)";var f=document.createElement("div");f.style.display="table-cell",f.style.verticalAlign="middle",f.style.width="100vw",f.style.height="100vh";var E=document.createElement("div");E.className="cf-turnstile-feedback",E.id="cf-fr-id",E.style.width="100vw",E.style.maxWidth="450px",E.style.height=Rt(r),E.style.position="relative",E.style.zIndex="2147483647",E.style.backgroundColor="#ffffff",E.style.borderRadius="5px",E.style.left="0px",E.style.top="0px",E.style.overflow="hidden",E.style.margin="0px auto";var O=document.createElement("iframe");O.id=e+"-fr",O.setAttribute("src",h),O.setAttribute("allow","cross-origin-isolated; fullscreen"),O.setAttribute("sandbox","allow-same-origin allow-scripts allow-popups allow-forms"),O.setAttribute("scrolling","no"),O.style.borderWidth="0px",O.style.width="100%",O.style.height="100%",O.style.overflow="hidden";var T=document.createElementNS("http://www.w3.org/2000/svg","svg");T.setAttribute("tabindex","0"),T.setAttribute("role","img"),T.setAttribute("aria-label","Close button icon"),T.style.position="absolute",T.style.width="26px",T.style.height="26px",T.style.zIndex="2147483647",T.style.cursor="pointer",r.displayRTL?T.style.left="6px":T.style.right="2px",T.style.top="5px",T.setAttribute("width","20"),T.setAttribute("height","20"),T.addEventListener("click",function(){var I;(I=u.parentNode)===null||I===void 0||I.removeChild(u)}),T.addEventListener("keydown",function(I){if(I.key==="Enter"||I.key===" "){var _;(_=u.parentNode)===null||_===void 0||_.removeChild(u)}});var N=document.createElementNS("http://www.w3.org/2000/svg","ellipse");N.setAttribute("ry","12"),N.setAttribute("rx","12"),N.setAttribute("cy","12"),N.setAttribute("cx","12"),N.setAttribute("fill","none"),N.setAttribute("stroke-width","0"),T.appendChild(N);var k=document.createElementNS("http://www.w3.org/2000/svg","line");k.setAttribute("stroke-width","1"),k.setAttribute("stroke","#999"),k.setAttribute("fill","none"),k.setAttribute("x1","6"),k.setAttribute("x2","18"),k.setAttribute("y1","18"),k.setAttribute("y2","5"),T.appendChild(k);var R=document.createElementNS("http://www.w3.org/2000/svg","line");R.setAttribute("stroke-width","1"),R.setAttribute("stroke","#999"),R.setAttribute("fill","none"),R.setAttribute("x1","6"),R.setAttribute("x2","18"),R.setAttribute("y1","5"),R.setAttribute("y2","18"),T.appendChild(R),E.appendChild(O),E.appendChild(T),f.appendChild(E),u.appendChild(f),u.addEventListener("click",function(){var I;(I=u.parentNode)===null||I===void 0||I.removeChild(u)}),r.wrapper.parentNode.appendChild(u),window.addEventListener("resize",function(){E.style.height=Rt(r)})},pr=function(e){var r,n,o;(o=document.getElementById(e))===null||o===void 0||(n=o.parentElement)===null||n===void 0||(r=n.parentElement)===null||r===void 0||r.remove()};var It=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3;return e.length>r?e.substring(0,r):e};function vr(e){if(!e)return"-";var r=function(n,o){if(!n||n.tagName==="BODY")return o;for(var c=1,l=n.previousElementSibling;l;)l.tagName===n.tagName&&c++,l=l.previousElementSibling;var g=It(n.tagName.toLowerCase()),h="".concat(g,"[").concat(c,"]");return r(n.parentNode,"/".concat(h).concat(o))};return r(e,"")}function mr(e,r,n){for(var o="",c=0,l=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,{acceptNode:function(O){return c>r||o.length>n?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),g;(g=l.nextNode())!==null&&o.length<n;){if(g.nodeType===Node.ELEMENT_NODE){var h=g;o+="".concat(It(h.tagName.toLowerCase()));for(var u=0;u<h.attributes.length;u++){var f=h.attributes[u];o+="_".concat(It(f.name,2))}o+=">"}else g.nodeType===Node.TEXT_NODE&&(o+="-t");var E=g.parentNode;for(c=0;E!==e&&E!==null;)c++,E=E.parentNode}return o.substring(0,n)}function gr(e){if(typeof e!="string")throw new Error("djb2: expected string, got ".concat(typeof e=="undefined"?"undefined":D(e)));for(var r=5381,n=0;n<e.length;n++){var o=e.charCodeAt(n);r=r*33^o}return r>>>0}function yr(e,r){var n;r.upgradeAttempts++;var o=At();if(!(!o||!o.parentNode)){var c=o==null?void 0:o.nonce;e._pState=r;var l=new URL(o.src),g=document.createElement("script");l.searchParams.set("_upgrade","true"),l.searchParams.set("_cb",String(Date.now())),g.async=!0,c&&(g.nonce=c),g.setAttribute("crossorigin","anonymous"),g.src=l.toString(),o==null||(n=o.parentNode)===null||n===void 0||n.replaceChild(g,o)}}function hr(e,r){var n=e._pState;return n?(r.isReady=n.isReady,r.isRecaptchaCompatibilityMode=n.isRecaptchaCompatibilityMode,r.lastWidgetIdx=n.lastWidgetIdx,r.scriptWasLoadedAsync=n.scriptWasLoadedAsync,r.upgradeAttempts=n.upgradeAttempts,r.upgradeCompletedCount=n.upgradeCompletedCount+1,r.turnstileLoadInitTimeMs=W(),r.watchCatInterval=null,r.watchCatSeq=n.watchCatSeq,r.widgetMap=n.widgetMap,!0):!1}var Fr=900,Ur=3,Dr=50;function Vr(e){e.watchCatSeq++;var r=!0,n=!1,o=void 0;try{for(var c=e.widgetMap[Symbol.iterator](),l;!(r=(l=c.next()).done);r=!0){var g=Ae(l.value,2),h=g[0],u=g[1],f;u.watchcat.seq=e.watchCatSeq,u.watchcat.lastAckedSeq===0&&(u.watchcat.lastAckedSeq=e.watchCatSeq);var E=K(h);if(!E||!u.shadow){u.watchcat.missingWidgetWarning||(b("Cannot find Widget ".concat(E,", consider using turnstile.remove() to clean up a widget.")),u.watchcat.missingWidgetWarning=!0);continue}var O=u.shadow.querySelector("#".concat(E));if(!O){u.watchcat.missingWidgetWarning||(b("Cannot find Widget ".concat(E,", consider using turnstile.remove() to clean up a widget.")),u.watchcat.missingWidgetWarning=!0);continue}if(!(u.isComplete||u.isFailed)){var T=u.watchcat.seq-1-Ur,N=u.watchcat.lastAckedSeq<T,k=u.watchcat.seq-1-Dr,R=u.isOverrunning&&u.watchcat.overrunBeginSeq<k;if((u.isExecuting||!u.isInitialized||u.isInitialized&&!u.isStale&&!u.isExecuted)&&u.watchcat.lastAckedSeq!==0&&N||R){var I;u.watchcat.lastAckedSeq=0,u.watchcat.seq=0,u.isExecuting=!1;var _=function(d,s){console.log("Turnstile Widget seem to have ".concat(d,": "),s)};_(N?"hung":"crashed",h);var a=N?De:Ve,i;if((I=e.msgHandler)===null||I===void 0||I.call(e,{data:{source:P,widgetId:h,code:a,event:"fail",rcV:(i=u.nextRcV)!==null&&i!==void 0?i:Y}}),0)var t;continue}(f=O.contentWindow)===null||f===void 0||f.postMessage({source:P,widgetId:h,seq:e.watchCatSeq,event:"meow"},"*")}}}catch(d){n=!0,o=d}finally{try{!r&&c.return!=null&&c.return()}finally{if(n)throw o}}}function Ot(e){e.watchCatInterval===null&&(e.watchCatInterval=setInterval(function(){Vr(e)},Fr))}function Ct(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;e.watchCatInterval!==null&&(e.widgetMap.size===0||r)&&clearInterval(e.watchCatInterval)}var y={turnstileLoadInitTimeMs:W(),isRecaptchaCompatibilityMode:!1,scriptWasLoadedAsync:!1,scriptUrl:"undefined",isReady:!1,widgetMap:new Map,lastWidgetIdx:0,upgradeAttempts:0,upgradeCompletedCount:0,apiVersion:1,watchCatInterval:null,watchCatSeq:0};function Nt(e){wr(e,"")}function Mt(){var e=[Zt,er];y.isRecaptchaCompatibilityMode&&e.push(tr),document.querySelectorAll(e.join(", ")).forEach(function(r){return Ft.render(r)})}var Ut=[];function _r(){y.isReady=!0;var e=!0,r=!1,n=void 0;try{for(var o=Ut[Symbol.iterator](),c;!(e=(c=o.next()).done);e=!0){var l=c.value;l()}}catch(g){r=!0,n=g}finally{try{!e&&o.return!=null&&o.return()}finally{if(r)throw n}}}function Pr(e){var r=y.widgetMap.get(e);if(!(r===void 0||r.hasResponseParamEl)){r.hasResponseParamEl=!0;var n,o=(n=r.params["response-field"])!==null&&n!==void 0?n:!0;if(o){var c=document.createElement("input");c.type="hidden";var l;c.name=(l=r.params["response-field-name"])!==null&&l!==void 0?l:bt,c.id="".concat(e,"_response"),r.wrapper.appendChild(c);var g;if(typeof r.params["response-field-name"]!="string"&&Tr((g=r.params.sitekey)!==null&&g!==void 0?g:"")){var h=document.createElement("input");h.type="hidden",h.name=_t,h.id="".concat(e,"_legacy_response"),r.wrapper.appendChild(h)}}if(y.isRecaptchaCompatibilityMode){var u=document.createElement("input");u.type="hidden",u.name=Et,u.id="".concat(e,"_g_response"),r.wrapper.appendChild(u)}}}function wr(e,r){Pr(e);var n=document.getElementById("".concat(e,"_response"));n!==null&&V(n,HTMLInputElement)&&(n.value=r);var o=document.getElementById("".concat(e,"_legacy_response"));if(o!==null&&V(o,HTMLInputElement)&&(o.value=r),y.isRecaptchaCompatibilityMode){var c=document.getElementById("".concat(e,"_g_response"));c!==null&&V(c,HTMLInputElement)&&(c.value=r)}}function kt(e,r){var n=r.params,o=n.size,c=o===void 0?"normal":o,l=r.mode;switch(l){case q.NON_INTERACTIVE:case q.MANAGED:switch(c){case L.COMPACT:e.style.width="150px",e.style.height="140px";break;case L.INVISIBLE:m('Invalid value for parameter "size", expected "'.concat(L.COMPACT,'" or "').concat(L.NORMAL,'", got "').concat(c,'"'),2817);case L.NORMAL:e.style.width="300px",e.style.height="65px";break;case L.FLEXIBLE:e.style.width="100%",e.style.maxWidth="100vw",e.style.minWidth="300px",e.style.height="65px";break}break;case q.INVISIBLE:e.style.width="0",e.style.height="0",e.style.position="absolute",e.style.visibility="hidden",e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true");break;default:m('Invalid value for parameter "mode", expected "'.concat(q.NON_INTERACTIVE,'", "').concat(q.MANAGED,'" or "').concat(q.INVISIBLE,'", got "').concat(l,'"'),2818)}}function br(e){e.style.width="0",e.style.height="0"}function Wr(e,r){var n=r.get("turnstile_iframe_alt");n&&(e.title=n)}function Hr(e){return e.origin?e.origin==="https://challenges.cloudflare.com"||e.origin==="https://challenges-staging.cloudflare.com":!0}function Tr(e){return e.startsWith("0x4AAAAAAAAAA")||e.startsWith("0x4AAAAAAAAj")}function Er(){for(var e=window;e&&e.top!==e&&!e.location.href.startsWith("http");)e=e.top;return e==null?void 0:e.location.href}var Ft=function(){var e=function(a,i,t,d){return N.apply(this,arguments)},r=function(a,i,t){if(a.params.retry===fe.AUTO||t){a.isExecuted&&(a.msgQueue.push(oe.EXECUTE),a.isExecuted=!0,a.isExecuting=!0);var d,s=t?0:1e3*2+((d=a.params["retry-interval"])!==null&&d!==void 0?d:0);a.retryTimeout=window.setTimeout(function(){f(i)},s)}},n=function(a,i,t){var d;a.response===void 0&&m("[Internal Error] Widget was completed but no response was given",1362),a.isExecuting=!1,a.isComplete=!0,wr(i,a.response),(d=a.cbSuccess)===null||d===void 0||d.call(a,a.response,t)},o=function(a){if(!a)return[];for(var i=a.attributes,t=i.length,d=new Array(t),s=0;s<t;s++)d[s]=i[s].name;return d},c=function(a,i,t){if(a.rcV=i,0)var d},l=function(){var a="abcdefghijklmnopqrstuvwxyz0123456789",i=a.length,t;do{t="";for(var d=0;d<5;d++)t+=a.charAt(Math.floor(Math.random()*i))}while(y.widgetMap.has(t));return t},g=function(a){var i=!0,t=!1,d=void 0;try{for(var s=y.widgetMap[Symbol.iterator](),v;!(i=(v=s.next()).done);i=!0){var x=Ae(v.value,2),w=x[0],A=x[1];if(A.wrapper.parentElement===a)return w}}catch(S){t=!0,d=S}finally{try{!i&&s.return!=null&&s.return()}finally{if(t)throw d}}return null},h=function(a,i,t){for(;a.msgQueue.length;){var d,s=a.msgQueue.pop();(d=t.contentWindow)===null||d===void 0||d.postMessage({source:P,widgetId:i,event:s},"*")}},u=function(a,i){if(i){var t=["retry-interval","retry","size","theme","tabindex","execution","refresh-expired","refresh-timeout","response-field-name","response-field","language","base-url","appearance","sitekey","feedback-enabled"],d=[],s=!0,v=!1,x=void 0;try{for(var w=t[Symbol.iterator](),A;!(s=(A=w.next()).done);s=!0){var S=A.value;i[S]&&i[S]!==a.params[S]&&d.push(S)}}catch(F){v=!0,x=F}finally{try{!s&&w.return!=null&&w.return()}finally{if(v)throw x}}d.length!==0&&m("The parameters ".concat(t.join(",")," is/are not allowed be changed between the calls of render() and execute() of a widget.\n    Consider rendering a new widget if you want to change the following parameters ").concat(d.join(",")),3618),i.action&&(st(i.action)||m('Invalid input for optional parameter "action", got "'.concat(i.action,'"'),3604),a.action=i.action),i.cData&&(dt(i.cData)||m('Invalid input for optional parameter "cData", got "'.concat(i.cData,'"'),3605),a.cData=i.cData),i["after-interactive-callback"]&&(a.cbAfterInteractive=i["after-interactive-callback"]),i["before-interactive-callback"]&&(a.cbBeforeInteractive=i["before-interactive-callback"]),i.callback&&(a.cbSuccess=i.callback),i["expired-callback"]&&(a.cbExpired=i["expired-callback"]),i["timeout-callback"]&&(a.cbTimeout=i["timeout-callback"]),i["error-callback"]&&(a.cbError=i["error-callback"]),i["unsupported-callback"]&&(a.cbUnsupported=i["unsupported-callback"]),i.chlPageData&&(a.chlPageData=i.chlPageData)}},f=function(a){var i=R(a);i||m("Nothing to reset found for provided container",3329);var t=y.widgetMap.get(i);if(t){var d;t.isResetting=!0,t.response=void 0,t.mode=void 0,t.msgQueue=[],t.isComplete=!1,t.isExecuting=!1,t.isExpired=!1,t.isFailed=!1,t.isInitialized=!1,t.isStale=!1,t.watchcat.lastAckedSeq=0,t.watchcat.seq=0,t.params.execution===pe.RENDER&&(t.msgQueue.push(oe.EXECUTE),t.isExecuted=!0,t.isExecuting=!0);var s=K(i),v=t.shadow.querySelector("#".concat(s));(!s||!v)&&m("Widget ".concat(i," to reset was not found."),3330),t.params.appearance===X.INTERACTION_ONLY&&br(v),t.params.sitekey===null&&m("Unexpected Error: Sitekey is null",3347);var x=v.cloneNode(),w;x.src=Tt(i,t.params.sitekey,t.params,(w=t.rcV)!==null&&w!==void 0?w:Y,!1,"b",ht(t)),(d=v.parentNode)===null||d===void 0||d.replaceChild(x,v),Nt(s),t.retryTimeout&&window.clearTimeout(t.retryTimeout)}else m("Widget ".concat(i," to reset was not found."),3331)},E=function(a){var i,t=R(a);if(!t||!y.widgetMap.has(t)){b("Nothing to remove found for the provided container.");return}var d=K(t),s=["input#".concat(d,"_response"),"input#".concat(d,"_legacy_response"),"input#".concat(d,"_g_response")];document.querySelectorAll(s.join(", ")).forEach(function(w){return w.remove()});var v=y.widgetMap.get(t);v==null||v.shadow.querySelectorAll(s.join(", ")).forEach(function(w){return w.remove()}),v==null||v.wrapper.remove();var x=(i=y.widgetMap.get(t))===null||i===void 0?void 0:i.retryTimeout;x&&window.clearTimeout(x),y.widgetMap.delete(t),Ct(y)},O=function(a,i){var t,d,s=W(),v;if(typeof a=="string")try{var x=document.querySelector(a);x||m('Unable to find a container for "'.concat(a,'"'),3585),v=x}catch(Wt){m('Invalid type for "container", expected "selector" or an implementation of "HTMLElement", got "'.concat(a,'"'),3586)}else V(a,HTMLElement)?v=a:m('Invalid type for parameter "container", expected "string" or an implementation of "HTMLElement"',3587);var w=!0,A=!1,S=void 0;try{for(var F=y.widgetMap.values()[Symbol.iterator](),H;!(w=(H=F.next()).done);w=!0){var Z=H.value;if(v.contains(Z.wrapper)){b("Turnstile has already been rendered in this container. Did you mean to render it multiple times?");break}}}catch(Wt){A=!0,S=Wt}finally{try{!w&&F.return!=null&&F.return()}finally{if(A)throw S}}var U=Br(v);if(U){var p=Object.assign(U,i),ge=p.action,ee=p.cData,Oe=p.chlPageData,B=p.sitekey,te;p.theme=(te=p.theme)!==null&&te!==void 0?te:Pe.AUTO;var le;p.retry=(le=p.retry)!==null&&le!==void 0?le:fe.AUTO;var re;p.execution=(re=p.execution)!==null&&re!==void 0?re:pe.RENDER;var ye;p.appearance=(ye=p.appearance)!==null&&ye!==void 0?ye:X.ALWAYS;var ne;p["retry-interval"]=Number((ne=p["retry-interval"])!==null&&ne!==void 0?ne:rr);var he;p["expiry-interval"]=Number((he=p["expiry-interval"])!==null&&he!==void 0?he:($t-Jt)*1e3);var ue;p.size=(ue=p.size)!==null&&ue!==void 0?ue:L.NORMAL;var _e=p.callback,be=p["expired-callback"],Ce=p["timeout-callback"],Ee=p["after-interactive-callback"],xe=p["before-interactive-callback"],G=p["error-callback"],Qe=p["unsupported-callback"];typeof B!="string"&&m('Invalid or missing type for parameter "sitekey", expected "string", got "'.concat(typeof B=="undefined"?"undefined":D(B),'"'),3588),Kt(B)||m('Invalid input for parameter "sitekey", got "'.concat(B,'"'),3589),ft(p.size)||m('Invalid type for parameter "size", expected normal|compact, got "'.concat(p.size,'" ').concat(D(p.size)),3590),ot(p.theme)||m('Invalid type for parameter "theme", expected dark|light|auto, got "'.concat(p.theme,'" ').concat(D(p.theme)),3591),ct(p.retry)||m('Invalid type for parameter "retry", expected never|auto, got "'.concat(p.retry,'" ').concat(D(p.retry)),3592),p.language||(p.language="auto"),mt(p.language)||(b('Invalid language value: "'.concat(p.language,", expected either: auto, or an ISO 639-1 two-letter language code (e.g. en) or language and country code (e.g. en-US).")),p.language="auto"),gt(p.appearance)||m('Unknown appearance value: "'.concat(p.appearance,", expected either: 'always', 'execute', or 'interaction-only'."),3600),yt(p.execution)||m('Unknown execution value: "'.concat(p.execution,", expected either: 'render' or 'execute'."),3601),lt(p["retry-interval"])||m('Invalid retry-interval value: "'.concat(p["retry-interval"],', expected an integer value > 0 and < 900000"'),3602),ut(p["expiry-interval"])||m('Invalid expiry-interval value: "'.concat(p["expiry-interval"],', expected an integer value > 0 and < 360000"'),3602);var we,Q=(we=p["refresh-expired"])!==null&&we!==void 0?we:$.AUTO;pt(Q)?p["refresh-expired"]=Q:m('Invalid type for parameter "refresh-expired", expected never|manual|auto, got "'.concat(Q,'" ').concat(typeof Q=="undefined"?"undefined":D(Q)),3603);var Te,ae=(Te=p["refresh-timeout"])!==null&&Te!==void 0?Te:ie.AUTO;vt(Q)?p["refresh-timeout"]=ae:m('Invalid type for parameter "refresh-timeout", expected never|manual|auto, got "'.concat(ae,'" ').concat(typeof ae=="undefined"?"undefined":D(ae)),3603);var j=document.createElement("iframe"),se=document.createElement("div"),Dt=se.attachShadow({mode:"closed"});st(ge)||m('Invalid input for optional parameter "action", got "'.concat(ge,'"'),3604),dt(ee)||m('Invalid input for optional parameter "cData", got "'.concat(ee,'"'),3605);var Re=l(),de=K(Re);if(!(!Re||!de)){var Vt=[],$e=p.execution===pe.RENDER;$e&&Vt.push(oe.EXECUTE),y.lastWidgetIdx++;var Rr={};y.widgetMap.set(Re,nt(Fe({idx:y.lastWidgetIdx,action:ge,cData:ee,chlPageData:Oe,cbSuccess:_e,cbError:G,cbExpired:be,cbTimeout:Ce,cbUnsupported:Qe,cbAfterInteractive:Ee,cbBeforeInteractive:xe,params:p,isStale:!1,isComplete:!1,isExpired:!1,isExecuting:$e,isFailed:!1,isResetting:!1,isExecuted:$e,isInitialized:!1,hasResponseParamEl:!1,msgQueue:Vt,rcV:Y,watchcat:{seq:0,lastAckedSeq:0,missingWidgetWarning:!1,overrunBeginSeq:0}},Rr),{widgetRenderStartTimeMs:s,widgetRenderEndTimeMs:0,widgetParamsStartTimeMs:0,widgetInitStartTimeMs:0,shadow:Dt,wrapper:se,isOverrunning:!1})),Ot(y);var Je=y.widgetMap.get(Re);Je||m("Turnstile Initialization Error ",3606),j.style.display="none",j.style.border="none",j.style.overflow="hidden",j.setAttribute("src",Tt(Re,B,p,Y,!1,"b",ht(Je))),j.onerror=function(){if(G){G==null||G(String(Xt.code));return}m("Could not load challenge from challenges.cloudflare.com.",161)};var Pt=["cross-origin-isolated","fullscreen","autoplay"],Ze;M((Ze=(d=document.featurePolicy)===null||d===void 0||(t=d.features)===null||t===void 0?void 0:t.call(d))!==null&&Ze!==void 0?Ze:[],xt)&&Pt.push(xt),j.setAttribute("allow",Pt.join("; ")),j.setAttribute("sandbox","allow-same-origin allow-scripts allow-popups"),j.id=de;var et;j.tabIndex=(et=p.tabindex)!==null&&et!==void 0?et:0,j.title="Widget containing a Cloudflare security challenge",Dt.appendChild(j);var tt,Ar=(tt=p["response-field"])!==null&&tt!==void 0?tt:!0;if(Ar){var Ne=document.createElement("input");Ne.type="hidden";var rt;if(Ne.name=(rt=p["response-field-name"])!==null&&rt!==void 0?rt:bt,Ne.id="".concat(de,"_response"),se.appendChild(Ne),typeof p["response-field-name"]!="string"&&Tr(B)){var ke=document.createElement("input");ke.type="hidden",ke.name=_t,ke.id="".concat(de,"_legacy_response"),se.appendChild(ke)}}if(y.isRecaptchaCompatibilityMode){var Le=document.createElement("input");Le.type="hidden",Le.name=Et,Le.id="".concat(de,"_g_response"),se.appendChild(Le)}return v.appendChild(se),Je.widgetRenderEndTimeMs=W(),de}}},T=function(){var a,i=-1,t=!0,d=!1,s=void 0;try{for(var v=y.widgetMap[Symbol.iterator](),x;!(t=(x=v.next()).done);t=!0){var w=Ae(x.value,2),A=w[0],S=w[1];i<S.idx&&(a=A,i=S.idx)}}catch(F){d=!0,s=F}finally{try{!t&&v.return!=null&&v.return()}finally{if(d)throw s}}return i===-1&&m("Could not find widget",43778),a};function N(){return N=Bt(function(_,a,i,t){var d,s,v,x,w,A,S,F,H,Z;return Ue(this,function(U){switch(U.label){case 0:if(d=_.params.sitekey,s=Er(),!s)return b("Cannot determine Turnstile's embedded location, aborting clearance redemption."),n(_,a,!1),[2];v="h/".concat("b","/"),x=new URL(s),w="https",A="",S="".concat(w,"://").concat(x.host,"/cdn-cgi/challenge-platform/").concat(v,"rc/").concat(t).concat(A),U.label=1;case 1:return U.trys.push([1,6,,7]),[4,fetch(S,{method:"POST",headers:{"Content-Type":"application/json"},redirect:"manual",body:JSON.stringify({sitekey:d,secondaryToken:i})})];case 2:return F=U.sent(),F.status===200?[3,3]:(b("Cannot determine Turnstile's embedded location, aborting clearance redemption, are you running Turnstile on a Cloudflare Zone?"),n(_,a,!1),[3,5]);case 3:return[4,F.json()];case 4:if(H=U.sent(),"status"in H&&H.status==="redeemed")return n(_,a,!0),[2];U.label=5;case 5:return[3,7];case 6:return Z=U.sent(),b("Error contacting Turnstile, aborting clearance remdeption."),n(_,a,!1),[3,7];case 7:return[2]}})}),N.apply(this,arguments)}var k=function(_){var a=_.data;if(a.source===P){if(!Hr(_)){b("Ignored message from wrong origin: ".concat(_.origin,"."));return}if(!(!a.widgetId||!y.widgetMap.has(a.widgetId))){var i=K(a.widgetId),t=y.widgetMap.get(a.widgetId);if(!(!i||!t))switch(a.event){case"init":{var d;t.widgetInitStartTimeMs=W();var s=t.shadow.getElementById(i);s||m("Cannot initialize Widget, Element not found (#".concat(i,")."),3074),t.mode=a.mode,t.nextRcV=a.nextRcV,t.mode===q.INVISIBLE&&t.params["refresh-expired"]===$.MANUAL&&b("refresh-expired=manual is impossible in invisible mode, consider using '".concat($.AUTO,"' or '").concat($.NEVER,".'")),t.mode!==q.MANAGED&&t.params["refresh-timeout"]!==ie.AUTO&&b("setting refresh-timeout has no effect on an invisible/non-interactive widget and will be ignored."),t.params.appearance===X.ALWAYS||t.isExecuting&&t.params.appearance===X.EXECUTE?kt(s,t):br(s),s.style.display="";var v=t.shadow.querySelector("#".concat(i));v||m("Received state for an unknown widget: ".concat(a.widgetId),3078),(d=v.contentWindow)===null||d===void 0||d.postMessage({source:P,widgetId:a.widgetId,event:"init"},"*");break}case"translationInit":{var x=t.shadow.getElementById(i);x||m("Cannot initialize Widget, Element not found (#".concat(i,")."),3074);var w=new Map;t.displayLanguage=a.displayLanguage,Object.keys(a.translationData).forEach(function(ae){w.set(ae,a.translationData[ae])}),Wr(x,w);break}case"languageUnsupported":{b("Language ".concat(t.params.language," is not supported, falling back to: ").concat(a.fallback,".")),t.displayLanguage=a.fallback;break}case"reject":{var A=t.shadow.getElementById(i);if(t.isExecuting=!1,A||m("Cannot initialize Widget, Element not found (#".concat(i,")."),3075),a.reason==="outdated_browser"){var S;(S=t.cbUnsupported)===null||S===void 0||S.call(t)}break}case"food":{t.watchcat&&a.seq>t.watchcat.lastAckedSeq&&(t.watchcat.lastAckedSeq=a.seq);break}case"overrunBegin":{t.isOverrunning=!0,t.watchcat&&(t.watchcat.overrunBeginSeq=t.watchcat.lastAckedSeq);break}case"overrunEnd":{t.isOverrunning=!1;break}case"complete":{c(t,Y,a.widgetId),t.response=a.token,a.sToken?e(t,i,a.sToken,a.chlId):n(t,i,!1);break}case"fail":{a.rcV&&c(t,a.rcV,a.widgetId),a.cfChlOut&&(t.cfChlOut=a.cfChlOut),a.cfChlOutS&&(t.cfChlOutS=a.cfChlOutS),a.code&&(t.errorCode=a.code),t.isExecuting=!1,t.isFailed=!0,t.isInitialized=!0,Nt(i);var F=t.cbError,H=a.code===De||a.code===Ve;if(H){var Z,U=t.shadow.querySelector("#".concat(i));U==null||(Z=U.contentWindow)===null||Z===void 0||Z.postMessage({source:P,widgetId:a.widgetId,event:"forceFail"},"*")}if(F){var p;F(String((p=a.code)!==null&&p!==void 0?p:Yt))?t.params.retry===fe.AUTO&&!t.isResetting&&r(t,i,H):(a.code&&b("Error: ".concat(a.code,".")),r(t,i,H))}else a.code?(r(t,i,H),m("Error: ".concat(a.code),3076)):r(t,i,!1);break}case"feedbackInit":{var ge=t.wrapper.querySelector("#".concat(i,"-fr"));if(ge){b("A feedback report form is already opened for this widget.");return}St(i,t,a.feedbackOrigin);break}case"requestFeedbackData":{var ee,Oe=t.shadow.querySelector("#".concat(i));Oe||m("Received state for an unknown widget: #".concat(i," / ").concat(a.widgetId),3078),(ee=Oe.contentWindow)===null||ee===void 0||ee.postMessage({source:P,widgetId:a.widgetId,event:"requestTurnstileResults"},"*");break}case"turnstileResults":{var B,te,le=(B=t.wrapper.parentNode)===null||B===void 0?void 0:B.querySelector("#".concat(i,"-fr"));le||m("Received state for an unknown widget: ".concat(a.widgetId),3078),(te=le.contentWindow)===null||te===void 0||te.postMessage({source:P,widgetId:a.widgetId,event:"feedbackData",rayId:a.rayId,rcV:a.rcV,cfChlOut:t.cfChlOut,cfChlOutS:t.cfChlOutS,errorCode:t.errorCode,sitekey:a.sitekey,mode:a.mode,issuanceUserAgent:a.issuanceUserAgent},"*");break}case"closeFeedbackReportIframe":{var re,ye=(re=t.wrapper.parentNode)===null||re===void 0?void 0:re.querySelector("#".concat(i,"-fr"));ye||m("Received state for an unknown widget: ".concat(a.widgetId),3078),pr("".concat(i,"-fr"));break}case"tokenExpired":{var ne,he=a.token;t.isExpired=!0,(ne=t.cbExpired)===null||ne===void 0||ne.call(t,he),t.params["refresh-expired"]===$.AUTO&&!t.isResetting&&f(i);break}case"interactiveTimeout":{c(t,Y,a.widgetId),Nt(i);var ue=t.cbTimeout;if(ue?ue():t.params["refresh-timeout"]===ie.NEVER&&!t.isResetting&&b("The widget encountered an interactive timeout and is set to never refresh. Consider defining a timeout handler and resetting the widget upon timeout as solving a widget in a timed-out state is going to fail."),t.params["refresh-timeout"]===ie.AUTO&&!t.isResetting){var _e=t.cbAfterInteractive;_e==null||_e(),f(i)}break}case"refreshRequest":{c(t,Y,a.widgetId),f(i);break}case"reloadRequest":{c(t,a.nextRcV,a.widgetId),f(i);break}case"interactiveBegin":{var be,Ce=t.shadow.getElementById(i);Ce||m("Cannot layout widget, Element not found (#".concat(i,")."),3076),(be=t.cbBeforeInteractive)===null||be===void 0||be.call(t),t.params.appearance===X.INTERACTION_ONLY&&kt(Ce,t);break}case"interactiveEnd":{var Ee;(Ee=t.cbAfterInteractive)===null||Ee===void 0||Ee.call(t);break}case"widgetStale":{t.isStale=!0;break}case"requestExtraParams":{var xe;t.widgetParamsStartTimeMs=W();var G=t.shadow.querySelector("#".concat(i));G||m("Received state for an unknown widget: ".concat(a.widgetId),3078),t.isResetting=!1;var Qe={},we=W(),Q={"w.iW":window.innerWidth,"ht.atrs":o(document.body.parentNode),pi:{xp:vr(t.wrapper).substring(0,ir),pfp:mr(document,nr,ar),sL:document.scripts.length,ssL:document.styleSheets.length,mL:document.getElementsByTagName("meta").length,t:gr(document.title),tL:document.getElementsByTagName("*").length,lH:window.location.href,sR:t.wrapper.shadowRoot===null}},Te=W()-we;(xe=G.contentWindow)===null||xe===void 0||xe.postMessage(Fe({source:P,widgetId:a.widgetId,event:"extraParams",action:t.action,cData:t.cData,chlPageData:t.chlPageData,rcV:t.rcV,ch:"22755d9a86c9",au:y.scriptUrl,url:Er(),retry:t.params.retry,"expiry-interval":t.params["expiry-interval"],"retry-interval":t.params["retry-interval"],"refresh-expired":t.params["refresh-expired"],"refresh-timeout":t.params["refresh-timeout"],language:t.params.language,execution:t.params.execution,appearance:t.params.appearance,wPr:Q,turnstileAgeMs:W()-y.turnstileLoadInitTimeMs,widgetAgeMs:W()-t.widgetRenderStartTimeMs,upgradeAttempts:y.upgradeAttempts,upgradeCompletedCount:y.upgradeCompletedCount,timeRenderMs:t.widgetRenderEndTimeMs-t.widgetRenderStartTimeMs,timeToInitMs:t.widgetInitStartTimeMs-t.widgetRenderEndTimeMs,timeToParamsMs:t.widgetParamsStartTimeMs-t.widgetInitStartTimeMs,tiefTimeMs:Te},Qe),"*"),h(t,a.widgetId,G),t.isInitialized=!0;break}}}}};y.msgHandler=k,window.addEventListener("message",k);function R(_){if(typeof _=="string"){var a=ze(_);if(a&&y.widgetMap.has(a))return a;if(y.widgetMap.has(_))return _;try{var i=document.querySelector(_);return i?R(i):null}catch(t){return null}}return V(_,Element)?g(_):_||y.widgetMap.size===0?null:y.widgetMap.keys().next().value}var I={};return nt(Fe({},I),{ready:function(a){if(y.scriptWasLoadedAsync&&(b("turnstile.ready() would break if called *before* the Turnstile api.js script is loaded by visitors."),m("Remove async/defer from the Turnstile api.js script tag before using turnstile.ready().",3857)),typeof a!="function"&&m('turnstile.ready() expected a "function" argument, got "'.concat(typeof a=="undefined"?"undefined":D(a),'"'),3841),y.isReady){a();return}Ut.push(a)},implicitRender:Mt,execute:function(a,i){var t=R(a);if(!t){i===void 0&&m("Please provide 2 parameters to execute: container and parameters",43521);var d=O(a,i);d||m("Failed to render widget",43522),t=d}var s=y.widgetMap.get(t);if(s){u(s,i);var v=K(t);if(s.isExecuting){b("Call to execute() on a widget that is already executing (".concat(v,"), consider using reset() before execute()."));return}else s.isExecuting=!0;if(s.response){var x;s.isExecuting=!1,b("Call to execute() on a widget that was already executed (".concat(v,"), execute() will return the previous token obtained. Consider using reset() before execute() to obtain a fresh token.")),(x=s.cbSuccess)===null||x===void 0||x.call(s,s.response,!1);return}s.isExpired&&b("Call to execute on a expired-widget (".concat(v,"), consider using reset() before.")),s.isStale&&(f(v),s.isExecuting=!0),s.msgQueue.push(oe.EXECUTE),s.isExecuted=!0;var w=s.shadow.querySelector("#".concat(v));if(w||(s.isExecuting=!1,m("Widget ".concat(v," to execute was not found"),43522)),s.isResetting)return;if(s.isInitialized&&h(s,t,w),s.isInitialized&&s.params.appearance===X.EXECUTE&&kt(w,s),s.isExecuting){var A,S=s.shadow.querySelector("#".concat(v));S||m("Received state for an unknown widget: ".concat(t),3078),(A=S.contentWindow)===null||A===void 0||A.postMessage({source:P,widgetId:t,event:"execute"},"*")}}},render:O,reset:f,remove:E,_private:{showFeedback:function(a){var i=R(a);if(i){var t=K(i);if(t){var d=y.widgetMap.get(i);d&&St(t,d,We.CUSTOM)}}}},getResponse:function(a){var i;if(typeof a=="undefined"){var t=T();if(t){var d,s=y.widgetMap.get(t);return s!=null&&s.isExpired&&b("Call to getResponse on a widget that expired, consider refreshing the widget."),(d=y.widgetMap.get(t))===null||d===void 0?void 0:d.response}else m("Could not find a widget",43794)}var v=R(a);return v||m("Could not find widget for provided container",43778),(i=y.widgetMap.get(v))===null||i===void 0?void 0:i.response},isExpired:function(a){var i;if(typeof a=="undefined"){var t=T();if(t){var d,s;return(s=(d=y.widgetMap.get(t))===null||d===void 0?void 0:d.isExpired)!==null&&s!==void 0?s:!1}else m("Could not find a widget",43794)}var v=R(a);v||m("Could not find widget for provided container",43778);var x;return(x=(i=y.widgetMap.get(v))===null||i===void 0?void 0:i.isExpired)!==null&&x!==void 0?x:!1}})}();function Br(e){var r=e.getAttribute("data-sitekey"),n={sitekey:r},o=e.getAttribute("data-tabindex");o&&(n.tabindex=Number.parseInt(o,10));var c=e.getAttribute("data-theme");c&&(ot(c)?n.theme=c:b('Unknown data-theme value: "'.concat(c,'".')));var l=e.getAttribute("data-size");if(l&&(ft(l)?n.size=l:b('Unknown data-size value: "'.concat(l,'".'))),0)var g;var h=e.getAttribute("data-action");typeof h=="string"&&(n.action=h);var u=e.getAttribute("data-cdata");typeof u=="string"&&(n.cData=u);var f=e.getAttribute("data-retry");f&&(ct(f)?n.retry=f:b('Invalid data-retry value: "'.concat(f,", expected either 'never' or 'auto'\".")));var E=e.getAttribute("data-retry-interval");if(E){var O=Number.parseInt(E,10);lt(O)?n["retry-interval"]=O:b('Invalid data-retry-interval value: "'.concat(E,', expected an integer value > 0 and < 900000".'))}var T=e.getAttribute("data-expiry-interval");if(T){var N=Number.parseInt(T,10);ut(N)?n["expiry-interval"]=N:b('Invalid data-expiry-interval value: "'.concat(N,', expected an integer value > 0 and < 360000".'))}var k=e.getAttribute("data-refresh-expired");k&&(pt(k)?n["refresh-expired"]=k:b('Unknown data-refresh-expired value: "'.concat(k,", expected either: 'never', 'auto' or 'manual'.")));var R=e.getAttribute("data-refresh-timeout");R&&(vt(R)?n["refresh-timeout"]=R:b('Unknown data-refresh-timeout value: "'.concat(R,", expected either: 'never', 'auto' or 'manual'.")));var I=e.getAttribute("data-language");I&&(mt(I)?n.language=I:b('Invalid data-language value: "'.concat(I,", expected either: auto, or an ISO 639-1 two-letter language code (e.g. en) or language and country code (e.g. en-US).")));function _(w){var A=e.getAttribute(w);return A&&window[A]?window[A]:void 0}var a=["error-callback","unsupported-callback","callback","expired-callback","timeout-callback","after-interactive-callback","before-interactive-callback"];a.forEach(function(w){n[w]=_("data-".concat(w))});var i=e.getAttribute("data-feedback-enabled");i?(Qt(i)||b('Invalid data-feedback-enabled value: "'.concat(i,", expected either: 'true' or 'false'. Value is ignored.")),n["feedback-enabled"]=i==="true"):n["feedback-enabled"]=!0;var t,d=(t=e.getAttribute("data-response-field"))!==null&&t!==void 0?t:"true";n["response-field"]=d==="true";var s=e.getAttribute("data-response-field-name");s&&(n["response-field-name"]=s);var v=e.getAttribute("data-execution");v&&(yt(v)?n.execution=v:b('Unknown data-execution value: "'.concat(v,", expected either: 'render' or 'execute'.")));var x=e.getAttribute("data-appearance");return x&&(gt(x)?n.appearance=x:b('Unknown data-appearance value: "'.concat(x,", expected either: 'always', 'execute', or 'interaction-only'."))),n}function jr(){var e=!0;Ct(y,e),y.msgHandler&&window.removeEventListener("message",y.msgHandler),yr(window.turnstile,y)}ve=!1,C=fr(),y.scriptWasLoadedAsync=(Ge=C==null?void 0:C.loadedAsync)!==null&&Ge!==void 0?Ge:!1,y.scriptUrl=(Xe=C==null?void 0:C.src)!==null&&Xe!==void 0?Xe:"undefined",C!=null&&C.params&&(me=C.params.get("compat"),(me==null?void 0:me.toLowerCase())==="recaptcha"?window.grecaptcha?b("grecaptcha is already defined. The compatibility layer will not be enabled."):(b("Compatibility layer enabled."),y.isRecaptchaCompatibilityMode=!0,window.grecaptcha=Ft):me!==null&&b('Unknown value for api.js?compat: "'.concat(me,'", ignoring.')),C.params.forEach(function(e,r){M(["onload","compat","_cb","_upgrade","_reload","render"],r)||b('Unknown parameter passed to api.js: "?'.concat(r,'=...", ignoring.'))}),ve=C.params.get("_upgrade")==="true",z=C.params.get("onload"),z&&!ve&&setTimeout(function(){typeof window[z]=="function"?window[z]():(b("Unable to find onload callback '".concat(z,"' immediately after loading, expected 'function', got '").concat(D(window[z]),"'.")),setTimeout(function(){typeof window[z]=="function"?window[z]():b("Unable to find onload callback '".concat(z,"' after 1 second, expected 'function', got '").concat(D(window[z]),"'."))},1e3))},0)),Lt="turnstile"in window,Lt&&!ve?b("Turnstile already has been loaded. Was Turnstile imported multiple times?"):(Lt&&ve&&(hr(window.turnstile,y),Ot(y),(C==null||(Ye=C.params)===null||Ye===void 0?void 0:Ye.get("render"))!=="explicit"&&setTimeout(Mt,0)),window.turnstile=Ft,ve||((C==null||(Ke=C.params)===null||Ke===void 0?void 0:Ke.get("render"))!=="explicit"&&Ut.push(Mt),document.readyState==="complete"||document.readyState==="interactive"?setTimeout(_r,0):window.addEventListener("DOMContentLoaded",_r))),xr=24*60*60*1e3,window.setTimeout(jr,xr);var ve,C,Ge,Xe,me,z,Lt,Ye,Ke,xr;})();