PageSourceSearch

https://pandeiro.com/theme/e59f7d6b44990fe1b8ac2227e27ba5a6/js/val…/valkarch-form-bot-blocker.js?1790883569

js pandeiro.com collected 2026-10-02 12:05:44 UTC 30,827 bytes, 8 lines download raw bytes

1(()=>{"use strict";var t={156(t){var e=function(t){var e;return!!t&&"object"==typeof t&&"[object RegExp]"!==(e=Object.prototype.toString.call(t))&&"[object Date]"!==e&&t.$$typeof!==i},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(t,e){return!1!==e.clone&&e.isMergeableObject(t)?a(Array.isArray(t)?[]:{},t,e):t}function n(t,e,i){return t.concat(e).map(function(t){return s(t,i)})}function o(t){return Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[])}function r(t,e){try{return e in t}catch(t){return!1}}function a(t,i,h){(h=h||{}).arrayMerge=h.arrayMerge||n,h.isMergeableObject=h.isMergeableObject||e,h.cloneUnlessOtherwiseSpecified=s;var l,c,u=Array.isArray(i);return u!==Array.isArray(t)?s(i,h):u?h.arrayMerge(t,i,h):(c={},(l=h).isMergeableObject(t)&&o(t).forEach(function(e){c[e]=s(t[e],l)}),o(i).forEach(function(e){(!r(t,e)||Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))&&(r(t,e)&&l.isMergeableObject(i[e])?c[e]=(function(t,e){if(!e.customMerge)return a;var i=e.customMerge(t);return"function"==typeof i?i:a})(e,l)(t[e],i[e],l):c[e]=s(i[e],l))}),c)}a.all=function(t,e){if(!Array.isArray(t))throw Error("first argument should be an array");return t.reduce(function(t,i){return a(t,i,e)},{})},t.exports=a}},e={};function i(s){var n=e[s];if(void 0!==n)return n.exports;var o=e[s]={exports:{}};return t[s](o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var s=i(156),n=i.n(s);class o{static ucFirst(t){return t.charAt(0).toUpperCase()+t.slice(1)}static lcFirst(t){return t.charAt(0).toLowerCase()+t.slice(1)}static toDashCase(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(t,e){let i=o.toUpperCamelCase(t,e);return o.lcFirst(i)}static toUpperCamelCase(t,e){return e?t.split(e).map(t=>o.ucFirst(t.toLowerCase())).join(""):o.ucFirst(t.toLowerCase())}static parsePrimitive(t){try{return/^\d+(.|,)\d+$/.test(t)&&(t=t.replace(",",".")),JSON.parse(t)}catch(e){return t.toString()}}}
1class r{constructor(t=document){this._el=t,t.$emitter=this,this._listeners=[]}publish(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=new CustomEvent(t,{detail:e,cancelable:i});return this.el.dispatchEvent(s),s}subscribe(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this,n=t.split("."),o=i.scope?e.bind(i.scope):e;if(i.once&&!0===i.once){let e=o;o=function(i){s.unsubscribe(t),e(i)}}return this.el.addEventListener(n[0],o),this.listeners.push({splitEventName:n,opts:i,cb:o}),!0}unsubscribe(t){arguments.length>1&&"function"==typeof arguments[1]&&console.warn(`[NativeEventEmitter] Unsubscribing by passing the subscriber function as a second argument is not supported. By default, all listeners for the event will be removed. Use a suffix (separated by a dot) on the event name when subscribing/unsubscribing to identify/target your specific listener only, e.g. "${t}.MyCustomPlugin"`);let e=t.split(".");return this.listeners=this.listeners.reduce((t,i)=>([...i.splitEventName].sort().toString()===e.sort().toString()?this.el.removeEventListener(i.splitEventName[0],i.cb):t.push(i),t),[]),!0}reset(){return this.listeners.forEach(t=>{this.el.removeEventListener(t.splitEventName[0],t.cb)}),this.listeners=[],!0}get el(){return this._el}set el(t){this._el=t}get listeners(){return this._listeners}set listeners(t){this._listeners=t}}class a{constructor(t,e={},i=!1){if(!(t instanceof Node)){console.warn(`There is no valid element given while trying to create a plugin instance for "${i}".`);return}this.el=t,this.$emitter=new r(this.el),this._pluginName=this._getPluginName(i),this.options=this._mergeOptions(e),this._initialized=!1,this._registerInstance(),this._init()}init(){console.warn(`The "init" method for the plugin "${this._pluginName}" is not defined. The plugin will not be initialized.`)}update(){}destroy(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(t){let e=[this.constructor.options,this.options,t];return e.push(this._getConfigFromDataAttribute()),e.push(this._getOptionsFromDataAttribute()),n().all(e.filter(t=>t instanceof Object&&!(t instanceof Array)).map(t=>t||{}))}_getConfigFromDataAttribute(){let t={};if("function"!=typeof this.el.getAttribute)return t;let e=o.toDashCase(this._pluginName),i=this.el.getAttribute(`data-${e}-config`);return i?window.PluginConfigManager.get(this._pluginName,i):t}_getOptionsFromDataAttribute(){let t={};if("function"!=typeof this.el.getAttribute)return t;let e=o.toDashCase(this._pluginName),i=this.el.getAttribute(`data-${e}-options`);if(i)try{return JSON.parse(i)}catch(t){console.error(`The data attribute "data-${e}-options" could not be parsed to json: ${t.message}`)}return t}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(t){return t||(t=this.constructor.name),t}}class h{static isNode(t){return"object"==typeof t&&null!==t&&(t===document||t===window||t instanceof Node)}static hasAttribute(t,e){if(!h.isNode(t))throw Error("The element must be a valid HTML Node!");return"function"==typeof t.hasAttribute&&t.hasAttribute(e)}static getAttribute(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!1===h.hasAttribute(t,e))throw Error(`The required property "${e}" does not exist!`);if("function"!=typeof t.getAttribute){if(i)throw Error("This node doesn't support the getAttribute function!");return}return t.getAttribute(e)}static getDataAttribute(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s=e.replace(/^data(|-)/,""),n=o.toLowerCamelCase(s,"-");if(!h.isNode(t)){if(i)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===t.dataset){if(i)throw Error("This node doesn't support the dataset attribute!");return}let r=t.dataset[n];if(void 0===r){if(i)throw Error(`The required data attribute "${e}" does not exist on ${t}!`);return r}return o.parsePrimitive(r)}static querySelector(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!h.isNode(t))throw Error("The parent node is not a valid HTML Node!");let s=t.querySelector(e)||!1;if(i&&!1===s)throw Error(`The required element "${e}" does not exist in parent node!`);return s}static querySelectorAll(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!h.isNode(t))throw Error("The parent node is not a valid HTML Node!");let s=t.querySelectorAll(e);if(0===s.length&&(s=!1),i&&!1===s)throw Error(`At least one item of "${e}" must exist in parent node!`);return s}static getFocusableElements(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body,e=`
2            input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),
3            select:not([tabindex^="-"]):not([disabled]),
4            textarea:not([tabindex^="-"]):not([disabled]),
5            button:not([tabindex^="-"]):not([disabled]),
6            a[href]:not([tabindex^="-"]):not([disabled]),
7            [tabindex]:not([tabindex^="-"]):not([disabled])
8        `;return t.querySelectorAll(e)}static getFirstFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(t)[0]}static getLastFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=this.getFocusableElements(t);return e[e.length-1]}}class l{constructor(){this._request=null,this._errorHandlingInternal=!1}get(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",s=this._createPreparedRequest("GET",t,i);return this._sendRequest(s,null,e)}post(t,e,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";s=this._getContentType(e,s);let n=this._createPreparedRequest("POST",t,s);return this._sendRequest(n,e,i)}delete(t,e,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";s=this._getContentType(e,s);let n=this._createPreparedRequest("DELETE",t,s);return this._sendRequest(n,e,i)}patch(t,e,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";s=this._getContentType(e,s);let n=this._createPreparedRequest("PATCH",t,s);return this._sendRequest(n,e,i)}abort(){if(this._request)return this._request.abort()}setErrorHandlingInternal(t){this._errorHandlingInternal=t}_registerOnLoaded(t,e){e&&(!0===this._errorHandlingInternal?(t.addEventListener("load",()=>{e(t.responseText,t)}),t.addEventListener("abort",()=>{console.warn(`the request to ${t.responseURL} was aborted`)}),t.addEventListener("error",()=>{console.warn(`the request to ${t.responseURL} failed with status ${t.status}`)}),t.addEventListener("timeout",()=>{console.warn(`the request to ${t.responseURL} timed out`)})):t.addEventListener("loadend",()=>{e(t.responseText,t)}))}_sendRequest(t,e,i){return this._registerOnLoaded(t,i),t.send(e),t}_getContentType(t,e){return t instanceof FormData&&(e=!1),e}_createPreparedRequest(t,e,i){return this._request=new XMLHttpRequest,this._request.open(t,e),this._request.setRequestHeader("X-Requested-With","XMLHttpRequest"),i&&this._request.setRequestHeader("Content-type",i),this._request}}class c{constructor(t,e,i){this.domLoadedTime=this.getNow(),this.MIN_LOGS=2,this.MAX_LOGS=50,this.FAIR_LOGS=6,this.WINDOW_SIZE=6,this.form=t,this.loggedIn=i,this.threshold=e,this.setDefaultValues(),this.boundOnInput=this.onInput.bind(this),this.boundOnClick=this.onClick.bind(this),this.boundOnWheel=this.onWheel.bind(this),this.boundOnScroll=this.onScroll.bind(this),this.boundOnKeyDown=this.onKeyDown.bind(this),this.boundOnFocusin=this.onFocusin.bind(this),this.boundOnFocusout=this.onFocusout.bind(this),this.boundOnMousemove=this.onMousemove.bind(this),this.boundOnTouchmove=this.onTouchmove.bind(this),this.boundOnPointermove=this.onPointermove.bind(this),this.addEventListeners(),this.setRealTypingFields()}setDefaultValues(){this.wheels=0,this.scrolls=0,this.inputs=[],this.clicks=[],this.focuses=[],this.keyDowns=[],this.focusInvisibles=[],this.focusInOutDelays=[],this.mousemoves=0,this.touchmoves=0,this.pointermoves=0,this.tabs=0,this.backspaces=0,this.notTrusteds=0,this.focusinTime=null,this.formSendDelay=0,this.realTypingFields=0,this.isMobile=!1,this.formSendEndTime=0,this.isSubmitVisible=!0,this.windowScreenWidth=null,this.windowScreenHeight=null,this.windowInnerWidth=null,this.windowInnerHeight=null,this.isSubmitVisibleLog=""}setRealTypingFields(){this.form.querySelectorAll("input, textarea").forEach(t=>{this.isRealTypingField(t)&&this.isVisibleField(t)&&this.realTypingFields++})}addEventListeners(){document.addEventListener("input",this.boundOnInput),document.addEventListener("click",this.boundOnClick),document.addEventListener("wheel",this.boundOnWheel,{passive:!0}),document.addEventListener("scroll",this.boundOnScroll,{passive:!0}),document.addEventListener("keydown",this.boundOnKeyDown),document.addEventListener("mousemove",this.boundOnMousemove),document.addEventListener("touchmove",this.boundOnTouchmove),document.addEventListener("pointermove",this.boundOnPointermove),this.form.querySelectorAll("input, textarea, select").forEach(t=>{t.addEventListener("focusin",this.boundOnFocusin),t.addEventListener("focusout",this.boundOnFocusout)})}removeEventListeners(){this.removeInputEventListener(),this.removeClickEventListener(),this.removeWheelEventListener(),this.removeScrollEventListener(),this.removeFocusEventListeners(),this.removeKeyDownEventListener(),this.removeMousemoveEventListener(),this.removeTouchmoveEventListener(),this.removePointermoveEventListener()}removeInputEventListener(){document.removeEventListener("input",this.boundOnInput)}removeClickEventListener(){document.removeEventListener("click",this.boundOnClick)}removeWheelEventListener(){document.removeEventListener("wheel",this.boundOnWheel)}removeScrollEventListener(){document.removeEventListener("scroll",this.boundOnScroll)}removeKeyDownEventListener(){document.removeEventListener("keydown",this.boundOnKeyDown)}removeFocusEventListeners(){this.form.querySelectorAll("input, textarea, select").forEach(t=>{t.removeEventListener("focusin",this.boundOnFocusin),t.removeEventListener("focusout",this.boundOnFocusout)})}removeMousemoveEventListener(){document.removeEventListener("mousemove",this.boundOnMousemove)}removeTouchmoveEventListener(){document.removeEventListener("touchmove",this.boundOnTouchmove)}removePointermoveEventListener(){document.removeEventListener("pointermove",this.boundOnPointermove)}onClick(t){this.clicks.push(this.getNow()),this.logUntrusted(t.isTrusted),this.clicks.length>this.MAX_LOGS&&this.removeClickEventListener()}onInput(){this.inputs.push(this.getNow()),this.inputs.length>this.MAX_LOGS&&this.removeInputEventListener()}onWheel(){this.wheels++,this.wheels>this.MAX_LOGS&&this.removeWheelEventListener()}onScroll(){this.scrolls++,this.scrolls>this.MAX_LOGS&&this.removeScrollEventListener()}onKeyDown(t){this.keyDowns.push(this.getNow()),this.logKeys(t.key),this.logUntrusted(t.isTrusted),this.keyDowns.length>this.MAX_LOGS&&this.removeKeyDownEventListener()}onFocusin(t){let e=this.getNow();this.focusinTime=e,this.focuses.push(e),t&&t.target&&1===t.target.nodeType&&(this.isRealTypingField(t.target)||this.isHiddenField(t.target))&&!this.isVisibleField(t.target)&&this.focusInvisibles.push(t.target.name)}
8onFocusout(){this.focusinTime&&(this.focusInOutDelays.push(this.getNow()-this.focusinTime),this.focusinTime=null),this.focusInOutDelays.length>this.MAX_LOGS&&this.removeFocusEventListeners()}onMousemove(){this.mousemoves++,this.mousemoves>this.MAX_LOGS&&this.removeMousemoveEventListener()}onTouchmove(){this.touchmoves++,this.touchmoves>this.MAX_LOGS&&this.removeTouchmoveEventListener()}onPointermove(){this.pointermoves++,this.pointermoves>this.MAX_LOGS&&this.removePointermoveEventListener()}logKeys(t){"Tab"===t?this.tabs++:"Backspace"===t&&this.backspaces++}logUntrusted(t){!t&&this.notTrusteds++}getClicksData(){let t=null;if(this.clicks.length>this.MIN_LOGS){let e=this.clicks.slice(1).map((t,e)=>t-this.clicks[e]),i=e.length>=this.WINDOW_SIZE?this.WINDOW_SIZE:e.length,s=this.calculateBurstsForClicks(e,i),n=null!=s.sd?this.getStandardDeviationForClicksScore(s.sd):null,o=null!=s.cv?this.getCoefficientOfVariationForClicksScore(s.cv):null,r=null!=s.sdMean?this.getMeanScore(s.sdMean):null,a=null!=s.cvMean?this.getMeanScore(s.cvMean):null,h=this.safeMin([n,r]),l=this.safeMax([o,a]);t={score:this.safeMin([h,l]),fair:this.getFairScore(this.clicks.length),sd:s.sd,sdScore:n,sdMean:s.sdMean,sdMeanScore:r,sdWindowIntervals:s.sdWindowIntervals,cv:s.cv,cvScore:o,cvMean:s.cvMean,cvMeanScore:a,cvWindowIntervals:s.cvWindowIntervals,intervals:e}}return{type:"clicks",data:t}}getInputsData(){let t=null;if(this.inputs.length>this.MIN_LOGS){let e=this.inputs.slice(1).map((t,e)=>t-this.inputs[e]),i=e.reduce((t,e)=>t+e,0)/e.length,s=this.calculateStandardDeviation(e,i),n=this.calculateCoefficientOfVariation(e,i),o=this.getStandardDeviationForTypingActivityScore(s),r=this.getCoefficientOfVariationForTypingActivityScore(n);t={score:Math.min(o,r),fair:this.getFairScore(this.inputs.length),sd:s,sdScore:o,cv:n,cvScore:r,intervals:e}}return{type:"inputs",data:t}}getInputsPerSecondData(){let t=null;if(this.inputs.length>this.MIN_LOGS){let e=this.getEventsPerSecond(this.inputs);t={score:this.getTypingActivityPerSecondScore(e),fair:this.getFairScore(this.inputs.length),cps:e}}return{type:"inputsPerSecond",data:t}}getKeyDownsData(){let t=null;if(this.keyDowns.length>this.MIN_LOGS){let e=this.keyDowns.slice(1).map((t,e)=>t-this.keyDowns[e]),i=e.reduce((t,e)=>t+e,0)/e.length,s=this.calculateStandardDeviation(e,i),n=this.calculateCoefficientOfVariation(e,i),o=this.getStandardDeviationForTypingActivityScore(s),r=this.getCoefficientOfVariationForTypingActivityScore(n);t={score:Math.min(o,r),fair:this.getFairScore(this.keyDowns.length),sd:s,sdScore:o,cv:n,cvScore:r,intervals:e}}return{type:"keyDowns",data:t}}getKeyDownsPerSecondData(){let t=null;if(this.keyDowns.length>this.MIN_LOGS){let e=this.getEventsPerSecond(this.keyDowns);t={score:this.getTypingActivityPerSecondScore(e),fair:this.getFairScore(this.keyDowns.length),cps:e}}return{type:"keyDownsPerSecond",data:t}}getFocusInOutDelaysData(){let t=null;if(this.focusInOutDelays.length>this.MIN_LOGS){let e=this.getMedian(this.focusInOutDelays);t={score:null===e?1:this.getFocusInOutDelayScore(e),fair:this.getFairScore(this.focusInOutDelays.length),median:e}}return{type:"focusInOutDelays",data:t}}getDelayFormSendData(t){return this.formSendDelay=t-this.domLoadedTime,{type:"delayFromSend",data:{score:this.getDelayFormSendScore(this.formSendDelay),fair:1,startTime:this.domLoadedTime,formSendEndTime:t,delay:this.formSendDelay}}}calculateBurstsForClicks(t,e){let i={sd:null,cv:null,sdMean:null,cvMean:null,sdWindow:null,cvWindow:null};for(let s=0;s<=t.length-e;s++){let n=t.slice(s,s+e),o=n.reduce((t,e)=>t+e,0)/n.length,r=this.calculateStandardDeviation(n,o),a=this.calculateCoefficientOfVariation(n,o);(null===i.sd||r<i.sd)&&(i.sd=r,i.sdMean=o,i.sdWindowIntervals=n),(null===i.cv||a<i.cv)&&(i.cv=a,i.cvMean=o,i.cvWindowIntervals=n)}return i}calculateStandardDeviation(t,e){return Math.sqrt(t.reduce((t,i)=>t+Math.pow(i-e,2),0)/t.length)}calculateCoefficientOfVariation(t,e){return this.calculateStandardDeviation(t,e)/Math.max(e,1e-4)}getMedian(t){if(!t||0===t.length)return null;let e=[...t].sort((t,e)=>t-e),i=Math.floor(e.length/2);return e.length%2==0?(e[i-1]+e[i])/2:e[i]}isRealTypingField(t){return"textarea"===t.tagName.toLowerCase()||["text","email","password","search","tel","url"].includes(t.type&&t.type.toLowerCase())}isHiddenField(t){return"hidden"===t.type}isVisibleField(t){if("hidden"===t.type)return!1;let e=getComputedStyle(t);return"none"!==e.display&&"visible"===e.visibility&&0!==parseFloat(e.opacity)&&(null!==t.offsetParent||"fixed"===e.position)}getFairScore(t){return 0===this.FAIR_LOGS?0:Math.min(Math.round(t/this.FAIR_LOGS*10)/10,1)}safeMin(t){let e=t.filter(t=>null!=t);return e.length?Math.min(...e):null}safeMax(t){let e=t.filter(t=>null!=t);return e.length?Math.max(...e):null}getNow(){return window.performance&&performance.now?performance.now():Date.now()}getStandardDeviationForClicksScore(t){let e=1;
8return t<.5?e=0:t<1?e=.1:t<2?e=.2:t<3?e=.3:t<4?e=.4:t<6?e=.5:t<8?e=.6:t<15?e=.7:t<40?e=.8:t<60&&(e=.9),e}getCoefficientOfVariationForClicksScore(t){let e=1;return t<.005?e=0:t<.01?e=.1:t<.02?e=.2:t<.03?e=.3:t<.04?e=.4:t<.05?e=.5:t<.1?e=.6:t<.15?e=.7:t<.2?e=.8:t<.25&&(e=.9),e}getMeanScore(t){let e=1;return t<1?e=0:t<5?e=.1:t<10?e=.2:t<15?e=.3:t<20?e=.4:t<30?e=.5:t<40?e=.6:t<55?e=.7:t<75?e=.8:t<100&&(e=.9),e}getStandardDeviationForTypingActivityScore(t){let e=1;return t<5?e=0:t<10?e=.1:t<15?e=.2:t<20?e=.3:t<25?e=.4:t<30?e=.5:t<35?e=.6:t<40?e=.7:t<45?e=.8:t<50&&(e=.9),this.backspaces>0&&(e*=1+Math.min(.2,.08*Math.log2(this.backspaces+1))),Math.min(1,e)}getCoefficientOfVariationForTypingActivityScore(t){let e=1;return t<.05?e=0:t<.1?e=.1:t<.15?e=.2:t<.2?e=.3:t<.25?e=.4:t<.3?e=.5:t<.35?e=.6:t<.4?e=.7:t<.45?e=.8:t<.5&&(e=.9),e}getTypingActivityPerSecondScore(t){let e=1;return t>50?e=0:t>45?e=.1:t>40?e=.2:t>35?e=.3:t>30?e=.4:t>25?e=.5:t>20?e=.6:t>15?e=.7:t>10?e=.8:t>5&&(e=.9),e}getFocusInOutDelayScore(t){let e=1;return t<25?e=0:t<40?e=.1:t<55?e=.2:t<70?e=.3:t<85?e=.4:t<100?e=.5:t<125?e=.6:t<150?e=.7:t<200?e=.8:t<300&&(e=.9),e}getDelayFormSendScore(t){let e=1;return t<220?e=0:t<280?e=.1:t<340?e=.2:t<400?e=.3:t<460?e=.4:t<580?e=.5:t<720?e=.6:t<860?e=.7:t<1e3?e=.8:t<1300&&(e=.9),e}getNotTrustedForClicksAndKeyDownsScore(){let t=this.clicks.length+this.keyDowns.length;if(0===t)return null;let e=this.notTrusteds/t,i=0;return e<.1?i=1:e<.2?i=.9:e<.3?i=.8:e<.4?i=.7:e<.5?i=.6:e<.6?i=.5:e<.7?i=.4:e<.8?i=.3:e<.9?i=.2:e<1&&(i=.1),i}getNoFocusInteractionImpact(t){let e=0;return null===this.focusinTime&&0===this.focusInOutDelays.length&&(this.inputs.length>0&&this.realTypingFields>0?t?0===this.keyDowns.length&&(e=.05):e=0===this.keyDowns.length&&0===this.clicks.length?.3:0===this.keyDowns.length?.2:.05:e=.05),e}getScrollImpact(t){let e=0,i=t?this.touchmoves+this.pointermoves:this.scrolls+this.wheels;return this.isSubmitVisible?0===i?e=t?.1:.05:i<2&&(e=.05):0===i?e=t?.3:.2:i<2&&(e=t?.2:.1),e}subtractTabImpact(t){if(this.tabs>0){let e=Math.min(.7,1-Math.pow(.75,this.tabs));t*=1-e}return t}getNotFairData(t){let e=0,i={};for(let s=0;s<t.length;s++){let n=t[s];if(n.data&&null!=n.data.score&&!(n.data.fair>=1)&&n.data.score<=this.threshold){let t=Math.max(0,Math.min(.2,.2*n.data.fair));e+=t,i[n.type]="score: "+n.data.score+", fair: "+n.data.fair+", subtractScore: "+t}}return i.score=e,i}getInteractionPatternsData(t){let e=1;this.loggedIn&&(e+=.2);let i=e,s=e-=t.score,n=this.mousemoves+this.touchmoves+this.pointermoves;0===n?e-=this.subtractTabImpact(.3):n<5?e-=this.subtractTabImpact(.15):n<15&&(e-=this.subtractTabImpact(.05));let o=e,r=e-=this.getScrollImpact(this.isMobile),a=e-=this.getNoFocusInteractionImpact(this.isMobile);1===this.focusInvisibles.length?e-=.3:this.focusInvisibles.length>1&&(e-=.4);let h=e;0===this.clicks.length&&(e-=.1);let l=e,c=this.keyDowns.length+this.inputs.length;0===c?e-=.2:c<5&&(e-=.1);let u=e;0===this.keyDowns.length+this.inputs.length+this.clicks.length&&(e-=.15);let d=e;0===this.keyDowns.length+this.inputs.length+this.clicks.length+this.focuses.length&&(e-=.15);let g=e;if(this.notTrusteds>0){let t=this.getNotTrustedForClicksAndKeyDownsScore();null!==t&&(e-=(1-t)/2)}let p=e;return{type:"interactions",data:{fair:1,score:e=Math.max(0,Math.min(1,e)),notFairLog:t,interactionsLog:{loggedInScore:i,notFairScore:s,moveScore:o,scrollScore:r,focusScore:a,focusInvisiblesScore:h,clickScore:l,keyScore:u,keyAndClickScore:d,keyAndClickAndFocusScore:g,notTrustedScore:p}}}}getEventsPerSecond(t){if(t.length<2)return 0;let e=t[t.length-1]-t[0];return e<=0?0:(t.length-1)/(e/1e3)}setFormSendEndTime(){this.formSendEndTime=Math.trunc(this.getNow())}setWindowSizes(){this.windowScreenWidth=window.screen.width,this.windowScreenHeight=window.screen.height,this.windowInnerWidth=window.innerWidth,this.windowInnerHeight=window.innerHeight}setIsMobileDevice(){this.isMobile=/Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent)}setIsSubmitVisible(t){let e=this.form.querySelector('button[type="submit"]');e||(this.isSubmitVisible=!0);let i=e.getBoundingClientRect();this.isSubmitVisible=i.bottom>0&&i.top<t,this.isSubmitVisibleLog=this.isSubmitVisible+" ("+i.bottom+" > 0 && "+i.top+" < "+t+")"}sortAll(){this.clicks.sort((t,e)=>t-e),this.inputs.sort((t,e)=>t-e),this.focuses.sort((t,e)=>t-e),this.keyDowns.sort((t,e)=>t-e)}prepareData(){this.setFormSendEndTime(),this.setWindowSizes(),this.setIsMobileDevice(),this.setIsSubmitVisible(this.windowInnerHeight)}destroy(){this.removeEventListeners()}getGeneralData(){return{clicks:this.clicks,inputs:this.inputs,keyDowns:this.keyDowns,focuses:this.focuses,focusInvisibles:this.focusInvisibles,focusInOutDelays:this.focusInOutDelays,MIN_LOGS:this.MIN_LOGS,MAX_LOGS:this.MAX_LOGS,FAIR_LOGS:this.FAIR_LOGS,WINDOW_SIZE:this.WINDOW_SIZE,form:this.form.action,device:navigator.userAgent,threshold:this.threshold,loggedIn:this.loggedIn,isMobile:this.isMobile,realTypingFields:this.realTypingFields,wheels:this.wheels,scrolls:this.scrolls,isSubmitVisible:this.isSubmitVisible,isSubmitVisibleLog:this.isSubmitVisibleLog,clicks_Len:this.clicks.length,inputs_Len:this.inputs.length,keyD
8owns_Len:this.keyDowns.length,focuses_Len:this.focuses.length,focusInvisibles_Len:this.focusInvisibles.length,focusInOutDelays_Len:this.focusInOutDelays.length,mousemoves:this.mousemoves,touchmoves:this.touchmoves,pointermoves:this.pointermoves,tabs:this.tabs,backspaces:this.backspaces,notTrusteds:this.notTrusteds,domLoadedTime:this.domLoadedTime,formSendEndTime:this.formSendEndTime,formSendDelay:this.formSendDelay,windowScreenWidth:this.windowScreenWidth,windowScreenHeight:this.windowScreenHeight,windowInnerWidth:this.windowInnerWidth,windowInnerHeight:this.windowInnerHeight}}detectScript(t){let e=!1,i=[],s=[],n=[];for(let o=0;o<t.length;o++){let r=t[o];if(!r.data||null==r.data.score||null==r.data.fair){i.push(r.type+"Score: null");continue}if(r.data.fair<1){s.push(r.type+"Score: "+r.data.score);continue}r.data.score<=this.threshold&&(e=!0),n.push(r.type+"Score: "+r.data.score)}return{detected:e,detectedScoreLog:n.join(", "),notFairScoreLog:s.join(", "),noDataScoreLog:i.join(", ")}}getAnalyses(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=null;this.sortAll(),this.prepareData();let i=this.getClicksData(),s=this.getInputsData(),n=this.getKeyDownsData(),o=this.getDelayFormSendData(this.formSendEndTime),r=this.getInputsPerSecondData(),a=this.getFocusInOutDelaysData(),h=this.getKeyDownsPerSecondData(),l=this.getNotFairData([i,s,n,o,r,a,h]),c=this.getInteractionPatternsData(l),u=this.detectScript([i,s,n,o,r,a,h,c]);return t&&(e={clicksLog:i,inputsLog:s,keyDownsLog:n,inputsPerSecondLog:r,keyDownsPerSecondLog:h,focusInOutDelaysLog:a,delayFormSendLog:o,generalLog:this.getGeneralData(),interactionPatternsLog:c,detectedLog:u}),this.destroy(),{logs:e,detected:u.detected}}}class u extends a{static #t=this.options={subLen:16,dhc:".fbb-d-h",bac:".fbb-b-a",oCurActPat:"",oHidActPat:"",oLogBehPat:"",oStatusPat:"",oDynHonVal:null,oDynHonNam:null,oCusLogVal:!1,oBehAnaPro:!1,oBehAnaThr:0,requestNumber:1,cwc:".fbb-captcha-wrapper",basicCaptcha:"shopware_basic_captcha_confirm",googleCaptchaV2:"_grecaptcha_v2",basicCaptchaRefresh:".basic-captcha-content-code .btn.basic-captcha-content-refresh-icon",captchaInputTypes:["shopware_basic_captcha_confirm","_grecaptcha_v2","_grecaptcha_v3"],captchaInputNames:["shopware_basic_captcha_check","shopware_basic_captcha_confirm","_grecaptcha_v2","_grecaptcha_v3"]};init(){this.setForm(),this.form&&(this.options.oBehAnaPro&&this.analyzeBehavior(),this.client=new l,this.getStatus(),this.savBehLog=!1,this.forActPro=!1,this.dynHonPro=!1,this.behAnaPro=!1,this.reloadCaptcha=!1,this.formSubmitted=!1,this.fetchingInProcess=!1,this.formPluginInstances=window.PluginManager.getPluginInstancesFromElement(this.form),this.registerEvents())}analyzeBehavior(){this.fbbDetector=new c(this.form,this.options.oBehAnaThr,this.options.oCusLogVal)}setForm(){this.el&&"FORM"===this.el.nodeName&&(this.form=this.el),this.form=this.el.closest("form")}registerEvents(){this.formPluginInstances?this.formPluginInstances.forEach(t=>{t.$emitter.subscribe("beforeSubmit",this.onFormSubmitCallback.bind(this))}):this.form.addEventListener("submit",this.onFormSubmitCallback.bind(this))}onFormSubmitCallback(t){if(!this.fetchingInProcess){if(this.formSubmitted=!0,this.fetchingInProcess=!0,this.forActPro&&this.changeForAct(this.options.oHidActPat),this.dynHonPro&&this.changeDynHon(this.options.dht,this.options.dhh),this.options.oBehAnaPro){let t=this.fbbDetector.getAnalyses(this.savBehLog);this.savBehLog&&t.logs&&this.sendLog(t.logs),this.behAnaPro&&(t.detected&&(this.options.bat=this.revStr(this.options.bat)),this.behAnaVal=this.options.bah+this.options.bat),this.changeBehAna(this.behAnaVal)}this.getStatus()}}sendLog(t){this.client.post(`${this.options.oLogBehPat}`,JSON.stringify({value:btoa(JSON.stringify(t))}),t=>{},"application/json")}getStatus(){this.client.get(`${this.options.oStatusPat}/${this.options.requestNumber++}`,this.handleStatus.bind(this))}async handleStatus(t){let e=JSON.parse(t);!this.isCaptchaActive&&this.formSubmitted&&e.isCaptchaActive&&(this.reloadCaptcha=!0),this.isCaptchaActive=e.isCaptchaActive,this.forActPro=void 0!==e.forActPro&&e.forActPro,this.dynHonPro=void 0!==e.dynHonPro&&e.dynHonPro,this.behAnaPro=void 0!==e.behAnaPro&&e.behAnaPro,this.savBehLog=void 0!==e.savBehLog&&e.savBehLog,this.handleDynHon(),this.handleBehAna(),this.handleCaptcha(),this.fetchingInProcess=!1}handleDynHon(){if(this.dynHonPro.length>1){let t=this.getOrdered(this.dynHonPro);this.options.dht=t.substring(this.options.subLen,t.length-this.options.subLen),this.options.dhh=t.substring(0,this.options.subLen)+t.substring(t.length-this.options.subLen)}}handleBehAna(){if(this.behAnaPro.length>1){let t=this.getOrdered(this.behAnaPro);this.options.bat=t.substring(this.options.subLen,t.length-this.options.subLen),this.options.bah=t.substring(0,this.options.subLen)+t.substring(t.length-this.options.subLen)}}getOrdered(t){let e=[];for(let i=0;i<t.length;i++){let s=t.charAt(i);i%2!=0?e[i-1]=s:e[i+1]=s}return e.join("")}revStr(t){return t.split("").reverse().join("")}changeForAct(t){this.form.setAttribute("action",t)}changeDynHon(t,e){let i=h.querySelector(this.form,this.options.dhc);i&&(i.value=t,i.setAttribute("name",e))}changeBehAna(t){let e=h.querySelector(this.form,this.options.bac);e&&(e.value=t)}handleCaptcha(){let t=h.querySelectorAll(this.form,this.options.cwc,!1);t&&t.forEach(t=>{let e=h.querySelectorAll(t,"input",!1);if(e){if(!1===this.isCaptchaActive){"none"!==t.style.display&&(t.style.display="none");let i=this.changeRequiredCaptchaAttribute(e,!1);i===this.options.basicCaptcha&&this.reloadCaptcha&&this.refreshBasicCaptcha(t),i===this.options.basicCaptcha&&this.formSubmitted&&this.sendFormWithBasicCaptcha(),i===this.options.googleCaptchaV2&&this.formSubmitted&&this.sendFormWithGoogleCaptcha()}(!0===this.isCaptchaActive||void 0===this.isCaptchaActive)&&("block"!==t.style.display&&(t.style.display="block"),this.changeRequiredCaptchaAttribute(e,!0))}})}changeRequiredCaptchaAttribute(t,e){let i="";return t.forEach(t=>{let s=t.getAttribute("name");if(this.options.captchaInputNames.includes(s)){if(this.options.captchaInputTypes.includes(s)&&(i=s),!e){let e=t.getAttribute("data-validation");if(e&&e.includes("required")){let i=e?e.split(","):[];i=i.filter(t=>"required"!==t),t.setAttribute("data-validation",i.join(","))}}t.required!=e&&(t.required=e)}}),i}refreshBasicCaptcha(t){let e=h.querySelector(t,this.options.basicCaptchaRefresh);e&&(e.click(),this.reloadCaptcha=!1)}sendFormWithBasicCaptcha(){this.form.checkValidity()&&!this.isCmsForm()&&this.form.submit()}isCmsForm(){return this.formPluginInstances.has("FormCmsHandler")}sendFormWithGoogleCaptcha(){this.form.checkValidity()&&!this.isAjaxSubmitFound()&&this.form.submit()}isAjaxSubmitFound(){let t=!1;
8return this.formPluginInstances.forEach(e=>{"function"==typeof e.sendAjaxFormSubmit&&!1!==e.options.useAjax&&(t=!0)}),t}}window.PluginManager.register("FBBProtector",u,"[data-f-b-b-protector]")})();

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.