1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ca776640-2798-5d0d-8401-5aa8495cebd3")}catch(e){}}(); 3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6592],{31984:(e,t,n)=>{n.d(t,{c:()=>i});var r=n(12115);function i(e,t){var n=(0,r.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(value){var r=n.value;r!==value&&(n.value=value,n.callback(value,r))}}}})[0];return n.callback=t,n.facade}},60497:(e,t,n)=>{function r(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{A:()=>q});var s=n(12115),a=Object.defineProperty,o=Object.defineProperties,c=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t)=>{for(var n in t||(t={}))h.call(t,n)&&u(e,n,t[n]);if(l)for(var n of l(t))d.call(t,n)&&u(e,n,t[n]);return e},f=(e,t)=>o(e,c(t)),m=(e,t,n)=>(u(e,"symbol"!=typeof t?t+"":t,n),n),v=(e,t,n)=>new Promise((r,i)=>{var s=e=>{try{o(n.next(e))}catch(e){i(e)}},a=e=>{try{o(n.throw(e))}catch(e){i(e)}},o=e=>e.done?r(e.value):Promise.resolve(e.value).then(s,a);o((n=n.apply(e,t)).next())}),y="hCaptchaOnLoad",g="script-error",b="@hCaptcha/loader";function x(e){let t=e&&e.ownerDocument||document,n=t.defaultView||t.parentWindow||window;return{document:t,window:n}}function w(e){return e||document.head}var O=class e{constructor(e){m(this,"_parent"),m(this,"breadcrumbs",[]),m(this,"context",{}),m(this,"extra",{}),m(this,"tags",{}),m(this,"request"),m(this,"user"),this._parent=e}get parent(){return this._parent}child(){return new e(this)}setRequest(e){return this.request=e,this}removeRequest(){return this.request=void 0,this}addBreadcrumb(e){return typeof e.timestamp>"u"&&(e.timestamp=new Date().toISOString()),this.breadcrumbs.push(e),this}setExtra(e,t){return this.extra[e]=t,this}removeExtra(e){return delete this.extra[e],this}setContext(e,t){return typeof t.type>"u"&&(t.type=e),this.context[e]=t,this}removeContext(e){return delete this.context[e],this}setTags(e){return this.tags=p(p({},this.tags),e),this}setTag(e,t){return this.tags[e]=t,this}removeTag(e){return delete this.tags[e],this}setUser(e){return this.user=e,this}removeUser(){return this.user=void 0,this}toBody(){let e=[],t=this;for(;t;)e.push(t),t=t.parent;return e.reverse().reduce((e,t)=>{var n;return e.breadcrumbs=[...null!=(n=e.breadcrumbs)?n:[],...t.breadcrumbs],e.extra=p(p({},e.extra),t.extra),e.contexts=p(p({},e.contexts),t.context),e.tags=p(p({},e.tags),t.tags),t.user&&(e.user=t.user),t.request&&(e.request=t.request),e},{breadcrumbs:[],extra:{},contexts:{},tags:{},request:void 0,user:void 0})}clear(){this.breadcrumbs=[],this.context={},this.tags={},this.user=void 0}},R=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,C="An unknown error occurred";function E(e){return(e+256).toString(16).substring(1)}var _,S=[[/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,"chrome"],[/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,"winjs"],[/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,"gecko"]],k=(_=class{constructor(e){var t,n,r,i,s;m(this,"apiURL"),m(this,"dsn"),m(this,"environment"),m(this,"release"),m(this,"sampleRate"),m(this,"debug"),m(this,"_scope"),m(this,"shouldBuffer",!1),m(this,"bufferlimit",20),m(this,"buffer",[]),this.environment=e.environment,this.release=e.release,this.sampleRate=null!=(t=e.s
3ampleRate)?t:1,this.debug=null!=(n=e.debug)&&n,this._scope=null!=(r=e.scope)?r:new O,this.apiURL=function(e){let t=R.exec(e),n=t?t.slice(1):[];if(6!==n.length)throw Error("Invalid DSN");let r=n[5].split("/"),i=r.slice(0,-1).join("/");return n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(i?"/"+i:"")+"/api/"+r.pop()+"/envelope/?sentry_version=7&sentry_key="+n[1]+(n[2]?"&sentry_secret="+n[2]:"")}(e.dsn),this.dsn=e.dsn,this.shouldBuffer=null!=(i=e.buffer)&&i,this.bufferlimit=null!=(s=e.bufferLimit)?s:20}static init(e){_._instance||(_._instance=new _(e))}static get instance(){if(!_._instance)throw Error("Sentry has not been initialized");return _._instance}log(...e){this.debug&&console.log(...e)}get scope(){return this._scope}static get scope(){return _.instance.scope}withScope(e){e(this._scope.child())}static withScope(e){_.instance.withScope(e)}captureException(e,t){this.captureEvent({type:"exception",level:"error",error:function(e){if(e instanceof Error)return e;if("string"==typeof e)return Error(e);if("object"==typeof e&&null!==e&&!Array.isArray(e)){let{message:t}=e,n=((e,t)=>{var n={};for(var r in e)h.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&l)for(var r of l(e))0>t.indexOf(r)&&d.call(e,r)&&(n[r]=e[r]);return n})(e,["message"]);return Object.assign(Error("string"==typeof t?t:C),n)}return Object.assign(Error(C),{cause:e})}(e),scope:null!=t?t:this._scope})}static captureException(e,t){_.instance.captureException(e,t)}captureMessage(e,t="info",n){this.captureEvent({type:"message",level:t,message:e,scope:null!=n?n:this._scope})}static captureMessage(e,t="info",n){_.instance.captureMessage(e,t,n)}captureEvent(e){if(Math.random()>=this.sampleRate)return void this.log("Dropped event due to sample rate");if(this.shouldBuffer){if(this.buffer.length>=this.bufferlimit)return;this.buffer.push(e)}else this.sendEvent(e)}sendEvent(e,t=5e3){return v(this,null,function*(){try{this.log("Sending sentry event",e);let n=function(e,t,n){var r,i,s;let a,o=p({event_id:((a=function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random());return e}(Array(16)))[6]=15&a[6]|64,a[8]=63&a[8]|128,E(a[0])+E(a[1])+E(a[2])+E(a[3])+"-"+E(a[4])+E(a[5])+"-"+E(a[6])+E(a[7])+"-"+E(a[8])+E(a[9])+"-"+E(a[10])+E(a[11])+E(a[12])+E(a[13])+E(a[14])+E(a[15])).replaceAll("-",""),platform:"javascript",sdk:{name:"@hcaptcha/sentry",version:"0.0.4"},environment:t,release:n,timestamp:Date.now()/1e3},e.scope.toBody());if("exception"===e.type){let t;o.message=null!=(i=null==(r=e.error)?void 0:r.message)?i:"Unknown error",o.fingerprint=[o.message];let n=[],a=e.error;for(let e=0;e<5&&a&&(n.push((t=function(e){var t,n,r,i;if(!e.stack)return null;let s=[],a=null!=(r=null==(n=(t=e.stack).split)?void 0:n.call(t,` 4`))?r:[];for(let t=0;t<a.length;++t){let n=null,r=null,o=null;for(let[e,n]of S)if(r=e.exec(a[t])){o=n;break}if(!(!r||!o)){if("chrome"===o)n={filename:null!=(i=r[2])&&i.startsWith("address at ")?r[2].substring(11):r[2],function:r[1]||"?",lineno:r[3]?+r[3]:null,colno:r[4]?+r[4]:null};else if("winjs"===o)n={filename:r[2],function:r[1]||"?",lineno:+r[3],colno:r[4]?+r[4]:null};else{if("gecko"!==o)continue;0===t&&!r[5]&&void 0!==e.columnNumber&&s.length>0&&(s[0].column=e.columnNumber+1),n={filename:r[3],function:r[1]||"?",lineno:r[4]?+r[4]:null,colno:r[5]?+r[5]:null}}!n.function&&n.lineno&&(n.function="?"),s.push(n)}}return s.length?s.reverse():null}(s=a),{type:s.name,value:s.message,stacktrace:{frames:null!=t?t:[]}})),!(!a.cause||!(a.cause instanceof Error)));e++)a=a.cause;o.exception={values:n.reverse()}}return"message"===e.type&&(o.message=e.message,o.level=e.level),o}(e,this.environment,this.release),r={event_id:n.event_id,dsn:this.dsn},i=JSON.stringify(r)+` 5`+JSON.stringify({type:"event"})+` 6`+JSON.stringify(n),s=yield function(e,t,n){return v(this,null,function*(){var r,i;try{if("u">typeof fetch&&"u">typeof AbortSignal){let r;if(n){let e=new AbortController;r=e.signal,setTimeout(()=>e.abort(),n)}let i=yield fetch(e,f(p({},t),{signal:r})),s=yield i.text();return{status:i.status,body:s}}return yield new Promise((r,i)=>{var s,a;let o=new XMLHttpRequest;if(o.open(null!=(s=null==t?void 0:t.method)?s:"GET",e),o.onload=()=>r({status:o.status,body:o.responseText}),o.onerror=()=>i(Error("XHR Network Error")),null==t?void 0:t.headers)for(let[e,n]of Object.entries(t.headers))o.setRequestHeader(e,n);if(n){let e=setTimeout(()=>{o.abort(),i(Error("Request timed out"))},n);o.onloadend=()=>{clearTimeout(e)}}o.send(null==(a=null==t?void 0:t.body)?void 0:a.toString())})}catch(e){return{status:0,body:null!=(i=null==(r=null==e?void 0:e.toString)?void 0:r.call(e))?i:"Unknown error"}}})}(this.apiURL,{method:"POST",headers:{"Content-Type":"application/x-sentry-envelope"},body:i},t);this.log("Sentry response",s.status),200!==s.status&&(console.log(s.body),console.error("Failed to send event to Sentry",s))}catch(e){console.error("Failed to send event",e)}})}flush(e=5e3){return v(this,null,function*(){try{this.log("Flushing sentry events",this.buffer.length);let t=this.buffer.splice(0,this.buffer.length).map(t=>this.sendEvent(t,e));yield Promise.all(t),this.log("Flushed all events")}catch(e){console.error("Failed to flush events",e)}})}static flush(e=5e3){return _.instance.flush(e)}static reset(){_._instance=void 0}},m(_,"_instance"),_);function j(e=null){return{addBreadcrumb:t=>{e&&e.addBreadcrumb(t)},captureRequest:t=>
6{e&&e.setRequest(t)},captureException:t=>{e&&k.captureException(t,e)}}}var A=[];function I(e){var t=e&&e.ownerDocument||document,n=t.defaultView||t.parentWindow||window;return{document:t,window:n}}function P(e){return e||document.head}let q=function(e){function t(t){var n;return(n=e.call(this,t)||this)._hcaptcha=void 0,n.renderCaptcha=n.renderCaptcha.bind(r(n)),n.resetCaptcha=n.resetCaptcha.bind(r(n)),n.removeCaptcha=n.removeCaptcha.bind(r(n)),n.isReady=n.isReady.bind(r(n)),n._onReady=null,n.loadCaptcha=n.loadCaptcha.bind(r(n)),n.handleOnLoad=n.handleOnLoad.bind(r(n)),n.handleSubmit=n.handleSubmit.bind(r(n)),n.handleExpire=n.handleExpire.bind(r(n)),n.handleError=n.handleError.bind(r(n)),n.handleOpen=n.handleOpen.bind(r(n)),n.handleClose=n.handleClose.bind(r(n)),n.handleChallengeExpired=n.handleChallengeExpired.bind(r(n)),n.ref=s.createRef(),n.apiScriptRequested=!1,n.sentryHub=null,n.captchaId="",n.state={isApiReady:!1,isRemoved:!1,elementId:t.id},n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this,t=I(P(this.props.scriptLocation));if(this._hcaptcha=t.window.hcaptcha||void 0,void 0!==this._hcaptcha)return void this.setState({isApiReady:!0},function(){e.renderCaptcha()});this.loadCaptcha()},n.componentWillUnmount=function(){var e=this._hcaptcha,t=this.captchaId;this.isReady()&&(e.reset(t),e.remove(t))},n.shouldComponentUpdate=function(e,t){return this.state.isApiReady===t.isApiReady&&this.state.isRemoved===t.isRemoved},n.componentDidUpdate=function(e){var t=this;["sitekey","size","theme","tabindex","languageOverride","endpoint"].every(function(n){return e[n]===t.props[n]})||this.removeCaptcha(function(){t.renderCaptcha()})},n.loadCaptcha=function(){if(!this.apiScriptRequested){var e=this.props,t=e.apihost,n=e.assethost,r=e.endpoint,i=e.host,s=e.imghost,a=e.languageOverride,o=e.reCaptchaCompat,c=e.reportapi,l=e.sentry,h=e.custom,d=e.loadAsync,u=e.scriptLocation,m=e.scriptSource,O=e.secureApi,R=e.cleanup;(function(){return v(this,arguments,function*(e={}){let t=function(e=!0){var t,n,r,i,s,a,o;let c,l,h,d,u;if(!e)return j();k.init({dsn:"https://[email protected]/6",release:"2.0.0",environment:"production"});let m=k.scope;return m.setTag("source",b),m.setTag("url",document.URL),m.setContext("os",{UA:navigator.userAgent}),m.setContext("browser",p({},(-1!==(c=navigator.userAgent).indexOf("Firefox")?(l="Firefox",h=null==(n=c.match(/Firefox\/([\d.]+)/))?void 0:n[1]):-1!==c.indexOf("Edg")?(l="Microsoft Edge",h=null==(r=c.match(/Edg\/([\d.]+)/))?void 0:r[1]):-1!==c.indexOf("Chrome")&&-1!==c.indexOf("Safari")?(l="Chrome",h=null==(i=c.match(/Chrome\/([\d.]+)/))?void 0:i[1]):-1!==c.indexOf("Safari")&&-1===c.indexOf("Chrome")?(l="Safari",h=null==(s=c.match(/Version\/([\d.]+)/))?void 0:s[1]):-1!==c.indexOf("Opera")||-1!==c.indexOf("OPR")?(l="Opera",h=null==(a=c.match(/(Opera|OPR)\/([\d.]+)/))?void 0:a[2]):-1!==c.indexOf("MSIE")||-1!==c.indexOf("Trident")?(l="Internet Explorer",h=null==(o=c.match(/(MSIE |rv:)([\d.]+)/))?void 0:o[2]):(l="Unknown",h="Unknown"),{name:l,version:h}))),m.setContext("device",f(p({},{model:u=-1!==(d=navigator.userAgent).indexOf("Win")?"Windows":-1!==d.indexOf("Mac")?"Mac":-1!==d.indexOf("Linux")?"Linux":-1!==d.indexOf("Android")?"Android":-1!==d.indexOf("like Mac")||-1!==d.indexOf("iPhone")||-1!==d.indexOf("iPad")?"iOS":"Unknown",family:u,device:/Mobile|iPhone|iPod|Android/i.test(d)?"Mobile":/Tablet|iPad/i.test(d)?"Tablet":"Desktop"}),{screen_width_pixels:screen.width,screen_height_pixels:screen.height,language:navigator.language,orientation:(null==(t=screen.orientation)?void 0:t.type)||"Unknown",processor_count:navigator.hardwareConcurrency,platform:navigator.platform})),j(m)}(e.sentry);return yield function e(t,n,r=0){return v(this,null,function*(){let i=r<2?"Retry loading hCaptcha Api":"Exceeded maximum retries";try{return yield function(e={cleanup:!0},t){try{t.addBreadcrumb({category:b,message:"hCaptcha loader params",data:e});let n=w(e.scriptLocation),r=x(n),i=A.find(({scope:e})=>e===r.window);if(i)return t.addBreadcrumb({category:b,message:"hCaptcha already loaded"}),i.promise;let s=new Promise((n,s)=>v(this,null,function*(){try{var a;r.window[y]=()=>{t.addBreadcrumb({category:b,message:"hCaptcha script called onload function"}),n(r.window.hcaptcha)};let s=(a={custom:e.custom,render:e.render,sentry:e.sentry,assethost:e.assethost,imghost:e.imghost,reportapi:e.reportapi,endpoint:e.endpoint,host:e.host,recaptchacompat:e.recaptchacompat,hl:e.hl},Object.entries(a).filter(([,e])=>e||!1===e).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(String(t))}`).join("&"));yield function({scriptLocation:e,query:t,loadAsync:n=!0,crossOrigin:r,apihost:i="https://js.hcaptcha.com",cleanup:s=!0,secureApi:a=!1,scriptSource:o=""}={},c){let l=w(e),h=x(l);return new Promise((e,d)=>{let u=h.document.createElement("script");u.id="hCaptcha-script",o?u.src=`${o}?onload=${y}`:a?u.src=`${i}/1/secure-api.js?onload=${y}`:u.src=`${i}/1/api.js?onload=${y}`,u.crossOrigin=r,u.async=n;let p=(e,t)=>{try{!a&&s&&l.removeChild(u),t(e)}catch(e){d(e)}};u.onload=t=>p(t,e),u.onerror=e=>{c&&c(u.src),p(e,d)},u.src+=""!==t?`&${t}`:"",l.appendChild(u)})}(p({query:s},e),e=>{t.captureRequest({url:e,method:"GET"})}),t.addBreadcrumb({category:b,message:"hCaptcha loaded",data:i})}catch(n){t.addBreadcrumb({category:b,message:"hCaptcha failed to load"});let e=A.findIndex(e=>e.scope===r.window);-1!==e&&A.splice(e,1),s(Error(g))}}));return A.push({promise:s,scope:r.window}),s}catch(e){return t.captureException(e),Promise.reject(Error(g))}}(t,n)}catch(s){return n.addBreadcrumb({category:b,message:i}),r>=2?(n.captureException(s),Promise.reject(s)):e(t,n,r+=1)}})}(e,t)})})({render:"explicit",apihost:t,assethost:n,endpoint:r,hl:a,host:i,imghost:s,recaptchacompat:!1===o?"off":null,reportapi:c,sentry:l,custom:h,loadAsync:d,scriptLocation:u,scriptSource:m,secureApi:O,cleanup:void 0===R||R}).then(this.handleOnLoad,this.handleError).catch(this.handleError),this.apiScriptRequested=!0}},n.renderCaptcha=function(e){var t=this,n=this.props.onReady,r=this.state.isApiReady,i=this.captchaId;
6if(r&&!i){var s=Object.assign({"open-callback":this.handleOpen,"close-callback":this.handleClose,"error-callback":this.handleError,"chalexpired-callback":this.handleChallengeExpired,"expired-callback":this.handleExpire,callback:this.handleSubmit},this.props,{hl:this.props.hl||this.props.languageOverride,languageOverride:void 0}),a=this._hcaptcha.render(this.ref.current,s);this.captchaId=a,this.setState({isRemoved:!1},function(){e&&e(),n&&n(),t._onReady&&t._onReady(a)})}},n.resetCaptcha=function(){var e=this._hcaptcha,t=this.captchaId;this.isReady()&&e.reset(t)},n.removeCaptcha=function(e){var t=this,n=this._hcaptcha,r=this.captchaId;this.isReady()&&this.setState({isRemoved:!0},function(){t.captchaId="",n.remove(r),e&&e()})},n.handleOnLoad=function(){var e=this;this.setState({isApiReady:!0},function(){var t=I(P(e.props.scriptLocation));e._hcaptcha=t.window.hcaptcha,e.renderCaptcha(function(){var t=e.props.onLoad;t&&t()})})},n.handleSubmit=function(e){var t=this.props.onVerify,n=this.state.isRemoved,r=this._hcaptcha,i=this.captchaId;if(void 0!==r&&!n){var s=r.getResponse(i),a=r.getRespKey(i);t&&t(s,a)}},n.handleExpire=function(){var e=this.props.onExpire,t=this._hcaptcha,n=this.captchaId;this.isReady()&&(t.reset(n),e&&e())},n.handleError=function(e){var t=this.props.onError,n=this._hcaptcha,r=this.captchaId;this.isReady()&&n.reset(r),t&&t(e)},n.isReady=function(){var e=this.state,t=e.isApiReady,n=e.isRemoved;return t&&!n},n.handleOpen=function(){this.isReady()&&this.props.onOpen&&this.props.onOpen()},n.handleClose=function(){this.isReady()&&this.props.onClose&&this.props.onClose()},n.handleChallengeExpired=function(){this.isReady()&&this.props.onChalExpired&&this.props.onChalExpired()},n.execute=function(e){var t=this;void 0===e&&(e=null),e="object"==typeof e?e:null;try{var n=this._hcaptcha,r=this.captchaId;if(!this.isReady()){var i,s=new Promise(function(n,r){t._onReady=function(i){try{var s=t._hcaptcha;e&&e.async?s.execute(i,e).then(n).catch(r):n(s.execute(i,e))}catch(e){r(e)}}});return null!=(i=e)&&i.async?s:null}return n.execute(r,e)}catch(t){if(e&&e.async)return Promise.reject(t);return null}},n.close=function(){var e=this._hcaptcha,t=this.captchaId;if(this.isReady())return e.close(t)},n.setData=function(e){var t=this._hcaptcha,n=this.captchaId;this.isReady()&&(e&&"object"!=typeof e&&(e=null),t.setData(n,e))},n.getResponse=function(){return this._hcaptcha.getResponse(this.captchaId)},n.getRespKey=function(){return this._hcaptcha.getRespKey(this.captchaId)},n.render=function(){var e=this.state.elementId;return s.createElement("div",{ref:this.ref,id:e})},t}(s.Component)}}]); 7//# sourceMappingURL=6592-5668bba0ec5def17.js.map 8//# debugId=ca776640-2798-5d0d-8401-5aa8495cebd3
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.