PageSourceSearch

https://www.lossburg.de/_nuxt/QwmqEqnX.js

js lossburg.de collected 2026-10-02 16:44:38 UTC 33,218 bytes, 3 lines download raw bytes

1var wt=Object.defineProperty,xt=(t,e,o)=>e in t?wt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,D=(t,e,o)=>xt(t,typeof e!="symbol"?e+"":e,o);const tt="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2NvbnN0IGY9bmV3IFRleHRFbmNvZGVyO2Z1bmN0aW9uIGQoZSl7cmV0dXJuWy4uLm5ldyBVaW50OEFycmF5KGUpXS5tYXAodD0+dC50b1N0cmluZygxNikucGFkU3RhcnQoMiwiMCIpKS5qb2luKCIiKX1hc3luYyBmdW5jdGlvbiBwKGUsdCxvKXtyZXR1cm4gZChhd2FpdCBjcnlwdG8uc3VidGxlLmRpZ2VzdChvLnRvVXBwZXJDYXNlKCksZi5lbmNvZGUoZSt0KSkpfWZ1bmN0aW9uIGcoZSx0LG89IlNIQS0yNTYiLGw9MWU2LGM9MCl7Y29uc3QgYT1uZXcgQWJvcnRDb250cm9sbGVyLGk9RGF0ZS5ub3coKTtyZXR1cm57cHJvbWlzZTooYXN5bmMoKT0+e2ZvcihsZXQgbj1jO248PWw7bis9MSl7aWYoYS5zaWduYWwuYWJvcnRlZClyZXR1cm4gbnVsbDtpZihhd2FpdCBwKHQsbixvKT09PWUpcmV0dXJue251bWJlcjpuLHRvb2s6RGF0ZS5ub3coKS1pfX1yZXR1cm4gbnVsbH0pKCksY29udHJvbGxlcjphfX1sZXQgcjtvbm1lc3NhZ2U9YXN5bmMgZT0+e2NvbnN0e3R5cGU6dCxwYXlsb2FkOm99PWUuZGF0YTtpZih0PT09ImFib3J0IilyPT1udWxsfHxyLmFib3J0KCkscj12b2lkIDA7ZWxzZSBpZih0PT09IndvcmsiKXtjb25zdHthbGc6bCxjaGFsbGVuZ2U6YyxtYXg6YSxzYWx0Omksc3RhcnQ6dX09b3x8e30sbj1nKGMsaSxsLGEsdSk7cj1uLmNvbnRyb2xsZXIsbi5wcm9taXNlLnRoZW4ocz0+e3NlbGYucG9zdE1lc3NhZ2UocyYmey4uLnMsd29ya2VyOiEwfSl9KX19fSkoKTsK",kt=t=>Uint8Array.from(atob(t),e=>e.charCodeAt(0)),He=typeof self<"u"&&self.Blob&&new Blob([kt(tt)],{type:"text/javascript;charset=utf-8"});function Et(t){let e;try{if(e=He&&(self.URL||self.webkitURL).createObjectURL(He),!e)throw"";const o=new Worker(e,{name:t==null?void 0:t.name});return o.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(e)}),o}catch{return new Worker("data:text/javascript;base64,"+tt,{name:t==null?void 0:t.name})}finally{e&&(self.URL||self.webkitURL).revokeObjectURL(e)}}function ie(){}function ot(t){return t()}function Oe(){return Object.create(null)}function ue(t){t.forEach(ot)}function rt(t){return typeof t=="function"}function Lt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function Rt(t){return Object.keys(t).length===0}function x(t,e){t.appendChild(e)}function Ct(t,e,o){const n=zt(t);if(!n.getElementById(e)){const i=I("style");i.id=e,i.textContent=o,It(n,i)}}function zt(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function It(t,e){return x(t.head||t,e),e.sheet}function j(t,e,o){t.insertBefore(e,o||null)}function S(t){t.parentNode&&t.parentNode.removeChild(t)}function I(t){return document.createElement(t)}function Y(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function _t(t){return document.createTextNode(t)}function J(){return _t(" ")}function Le(t,e,o,n){return t.addEventListener(e,o,n),()=>t.removeEventListener(e,o,n)}function l(t,e,o){o==null?t.removeAttribute(e):t.getAttribute(e)!==o&&t.setAttribute(e,o)}function At(t){return Array.from(t.childNodes)}function Be(t,e,o){t.classList.toggle(e,!!o)}function Nt(t,e,{bubbles:o=!1,cancelable:n=!1}={}){return new CustomEvent(t,{detail:e,bubbles:o,cancelable:n})}function Zt(t){const e={};return t.childNodes.forEach(o=>{e[o.slot||"default"]=!0}),e}let de;function ce(t){de=t}function Ie(){if(!de)throw new Error("Function called outside component initialization");return de}function St(t){Ie().$$.on_mount.push(t)}function Mt(t){Ie().$$.on_destroy.push(t)}function jt(){const t=Ie();return(e,o,{cancelable:n=!1}={})=>{const i=t.$$.callbacks[e];if(i){const s=Nt(e,o,{cancelable:n});return i.slice().forEach(u=>{u.call(t,s)}),!s.defaultPrevented}return!0}}const re=[],ye=[];let ne=[];const Pe=[],nt=Promise.resolve();let Ce=!1;function it(){Ce||(Ce=!0,nt.then(b))}function Vt(){return it(),nt}function ze(t){ne.push(t)}const Re=new Set;let oe=0;function b(){if(oe!==0)return;const t=de;do{try{for(;oe<re.length;){const e=re[oe];oe++,ce(e),Ft(e.$$)}}catch(e){throw re.length=0,oe=0,e}for(ce(null),re.length=0,oe=0;ye.length;)ye.pop()();for(let e=0;e<ne.length;e+=1){const o=ne[e];Re.has(o)||(Re.add(o),o())}ne.length=0}while(re.length);for(;Pe.length;)Pe.pop()();Ce=!1,Re.clear(),ce(t)}function Ft(t){if(t.fragment!==null){t.update(),ue(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ze)}}function Tt(t){const e=[],o=[];ne.forEach(n=>t.indexOf(n)===-1?e.push(n):o.push(n)),o.forEach(n=>n()),ne=e}const Gt=new Set;function Ut(t,e){t&&t.i&&(Gt.delete(t),t.i(e))}function Dt(t,e,o){const{fragment:n,after_update:i}=t.$$;n&&n.m(e,o),ze(()=>{const s=t.$$.on_mount.map(ot).filter(rt);t.$$.on_destroy?t.$$.on_destroy.push(...s):ue(s),t.$$.on_mount=[]}
vendor: 4,133 bytes, line 1
1),i.forEach(ze)}function Xt(t,e){const o=t.$$;o.fragment!==null&&(Tt(o.after_update),ue(o.on_destroy),o.fragment&&o.fragment.d(e),o.on_destroy=o.fragment=null,o.ctx=[])}function Ht(t,e){t.$$.dirty[0]===-1&&(re.push(t),it(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Ot(t,e,o,n,i,s,u=null,c=[-1]){const h=de;ce(t);const d=t.$$={fragment:null,ctx:[],props:s,update:ie,not_equal:i,bound:Oe(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(h?h.$$.context:[])),callbacks:Oe(),dirty:c,skip_bound:!1,root:e.target||h.$$.root};u&&u(d.root);let O=!1;if(d.ctx=o?o(t,e.props||{},(m,V,...F)=>{const T=F.length?F[0]:V;return d.ctx&&i(d.ctx[m],d.ctx[m]=T)&&(!d.skip_bound&&d.bound[m]&&d.bound[m](T),O&&Ht(t,m)),V}):[],d.update(),O=!0,ue(d.before_update),d.fragment=n?n(d.ctx):!1,e.target){if(e.hydrate){const m=At(e.target);d.fragment&&d.fragment.l(m),m.forEach(S)}else d.fragment&&d.fragment.c();e.intro&&Ut(t.$$.fragment),Dt(t,e.target,e.anchor),b()}ce(h)}let st;typeof HTMLElement=="function"&&(st=class extends HTMLElement{constructor(t,e,o){super(),D(this,"$$ctor"),D(this,"$$s"),D(this,"$$c"),D(this,"$$cn",!1),D(this,"$$d",{}),D(this,"$$r",!1),D(this,"$$p_d",{}),D(this,"$$l",{}),D(this,"$$l_u",new Map),this.$$ctor=t,this.$$s=e,o&&this.attachShadow({mode:"open"})}addEventListener(t,e,o){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,o)}removeEventListener(t,e,o){if(super.removeEventListener(t,e,o),this.$$c){const n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let s;return{c:function(){s=I("slot"),i!=="default"&&l(s,"name",i)},m:function(u,c){j(u,s,c)},d:function(u){u&&S(s)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},o=Zt(this);for(const i of this.$$s)i in o&&(e[i]=[t(i)]);for(const i of this.attributes){const s=this.$$g_p(i.name);s in this.$$d||(this.$$d[s]=be(s,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$scope:{ctx:[]}}});const n=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const s=be(i,this.$$d[i],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,s)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const i in this.$$l)for(const s of this.$$l[i]){const u=this.$$c.$on(i,s);this.$$l_u.set(s,u)}this.$$l={}}}attributeChangedCallback(t,e,o){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=be(t,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function be(t,e,o,n){var i;const s=(i=o[t])==null?void 0:i.type;if(e=s==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!o[t])return e;if(n==="toAttribute")switch(s){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Bt(t,e,o,n,i,s){let u=class extends st{constructor(){super(t,o,i),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(c=>(e[c].attribute||c).toLowerCase())}};return Object.keys(e).forEach(c=>{Object.defineProperty(u.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(h){var d;h=be(c,h,e),this.$$d[c]=h,(d=this.$$c)==null||d.$set({[c]:h})}})}),n.forEach(c=>{Object.defineProperty(u.prototype,c,{get(){var h;return(h=this.$$c)==null?void 0:h[c]}})}),t.element=u,u}class Pt{constructor(){D(this,"$$"),D(this,"$$set")}
1$destroy(){Xt(this,1),this.$destroy=ie}$on(e,o){if(!rt(o))return ie;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(o),()=>{const i=n.indexOf(o);i!==-1&&n.splice(i,1)}}$set(e){this.$$set&&!Rt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Yt="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Yt);const Wt=new TextEncoder;function Kt(t){return[...new Uint8Array(t)].map(e=>e.toString(16).padStart(2,"0")).join("")}async function Jt(t,e="SHA-256",o=1e5){const n=Date.now().toString(16);t||(t=Math.round(Math.random()*o));const i=await lt(n,t,e);return{algorithm:e,challenge:i,salt:n,signature:""}}async function lt(t,e,o){return Kt(await crypto.subtle.digest(o.toUpperCase(),Wt.encode(t+e)))}function qt(t,e,o="SHA-256",n=1e6,i=0){const s=new AbortController,u=Date.now();return{promise:(async()=>{for(let c=i;c<=n;c+=1){if(s.signal.aborted)return null;if(await lt(e,c,o)===t)return{number:c,took:Date.now()-u}}return null})(),controller:s}}var $=(t=>(t.ERROR="error",t.VERIFIED="verified",t.VERIFYING="verifying",t.UNVERIFIED="unverified",t.EXPIRED="expired",t))($||{});function Qt(t){Ct(t,"svelte-ddsc3z",'.altcha.svelte-ddsc3z.svelte-ddsc3z{background:var(--altcha-color-base, transparent);border:var(--altcha-border-width, 1px) solid var(--altcha-color-border, #a0a0a0);border-radius:var(--altcha-border-radius, 3px);color:var(--altcha-color-text, currentColor);display:flex;flex-direction:column;max-width:var(--altcha-max-width, 260px);position:relative;text-align:left}.altcha.svelte-ddsc3z.svelte-ddsc3z:focus-within{border-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating].svelte-ddsc3z.svelte-ddsc3z{background:var(--altcha-color-base, white);display:none;filter:drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.2));left:-100%;position:fixed;top:-100%;width:var(--altcha-max-width, 260px);z-index:999999}.altcha[data-floating=top].svelte-ddsc3z .altcha-anchor-arrow.svelte-ddsc3z{border-bottom-color:transparent;border-top-color:var(--altcha-color-border, #a0a0a0);bottom:-12px;top:auto}.altcha[data-floating=bottom].svelte-ddsc3z.svelte-ddsc3z:focus-within::after{border-bottom-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating=top].svelte-ddsc3z.svelte-ddsc3z:focus-within::after{border-top-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating].svelte-ddsc3z.svelte-ddsc3z:not([data-state=unverified]){display:block}.altcha-anchor-arrow.svelte-ddsc3z.svelte-ddsc3z{border:6px solid transparent;border-bottom-color:var(--altcha-color-border, #a0a0a0);content:"";height:0;left:12px;position:absolute;top:-12px;width:0}.altcha-main.svelte-ddsc3z.svelte-ddsc3z{align-items:center;display:flex;gap:0.4rem;padding:0.7rem}.altcha-label.svelte-ddsc3z.svelte-ddsc3z{flex-grow:1}.altcha-label.svelte-ddsc3z label.svelte-ddsc3z{cursor:pointer}.altcha-logo.svelte-ddsc3z.svelte-ddsc3z{color:currentColor;opacity:0.3}.altcha-logo.svelte-ddsc3z.svelte-ddsc3z:hover{opacity:1}.altcha-error.svelte-ddsc3z.svelte-ddsc3z{color:var(--altcha-color-error-text, #f23939);display:flex;font-size:0.85rem;gap:0.3rem;padding:0 0.7rem 0.7rem}.altcha-footer.svelte-ddsc3z.svelte-ddsc3z{align-items:center;background-color:var(--altcha-color-footer-bg, transparent);display:flex;font-size:0.75rem;opacity:0.4;padding:0.2rem 0.7rem;text-align:right}.altcha-footer.svelte-ddsc3z.svelte-ddsc3z:hover{opacity:1}.altcha-footer.svelte-ddsc3z>.svelte-ddsc3z:first-child{flex-grow:1}.altcha-footer.svelte-ddsc3z a{color:currentColor}.altcha-checkbox.svelte-ddsc3z.svelte-ddsc3z{display:flex;align-items:center;height:24px;width:24px}.altcha-checkbox.svelte-ddsc3z input.svelte-ddsc3z{width:18px;height:18px;margin:0}.altcha-hidden.svelte-ddsc3z.svelte-ddsc3z{display:none}.altcha-spinner.svelte-ddsc3z.svelte-ddsc3z{animation:svelte-ddsc3z-altcha-spinner 0.75s infinite linear;transform-origin:center}@keyframes svelte-ddsc3z-altcha-spinner{100%{transform:rotate(360deg)}}')}function Ye(t){let e,o,n;return{c(){e=Y("svg"),o=Y("path"),n=Y("path"),l(o,"d","M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z"),l(o,"fill","currentColor"),l(o,"opacity",".25"),l(n,"d","M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z"),l(n,"fill","currentColor"),l(n,"class","altcha-spinner svelte-ddsc3z"),l(e,"width","24"),l(e,"height","24"),l(e,"viewBox","0 0 24 24"),l(e,"xmlns","http://www.w3.org/2000/svg")},m(i,s){j(i,e,s),x(e,o),x(e,n)},d(i){i&&S(e)}}}function eo(t){let e,o=t[11].label+"",n;return{c(){e=I("label"),l(e,"for",n=t[4]+"_checkbox"),l(e,"class","svelte-ddsc3z")},m(i,s){j(i,e,s),e.innerHTML=o},p(i,s){s[0]&2048&&o!==(o=i[11].label+"")&&(e.innerHTML=o),s[0]&16&&n!==(n=i[4]+"_checkbox")&&l(e,"for",n)},d(i){i&&S(e)}}}function to(t){let e,o=t[11].verifying+"";return{c(){e=I("span")},m(n,i){j(n,e,i),e.innerHTML=o},p(n,i){i[0]&2048&&o!==(o=n[11].verifying+"")&&(e.innerHTML=o)},d(n){n&&S(e)}}}function oo(t){let e,o=t[11].verified+"",n,i;return{c(){e=I("span"),n=J(),i=I("input"),l(i,"type","hidden"),l(i,"name",t[4]),i.value=t[5]},m(s,u){j(s,e,u),e.innerHTML=o,j(s,n,u),j(s,i,u)},p(s,u){u[0]&2048&&o!==(o=s[11].verified+"")&&(e.innerHTML=o),u[0]&16&&l(i,"name",s[4]),u[0]&32&&(i.value=s[5])}
1,d(s){s&&(S(e),S(n),S(i))}}}function We(t){let e,o,n,i,s,u,c;return{c(){e=I("div"),o=I("a"),n=Y("svg"),i=Y("path"),s=Y("path"),u=Y("path"),l(i,"d","M2.33955 16.4279C5.88954 20.6586 12.1971 21.2105 16.4279 17.6604C18.4699 15.947 19.6548 13.5911 19.9352 11.1365L17.9886 10.4279C17.8738 12.5624 16.909 14.6459 15.1423 16.1284C11.7577 18.9684 6.71167 18.5269 3.87164 15.1423C1.03163 11.7577 1.4731 6.71166 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577C16.9767 5.86872 17.5322 7.02798 17.804 8.2324L19.9522 9.01429C19.7622 7.07737 19.0059 5.17558 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956C-0.658625 5.88958 -1.21046 12.1971 2.33955 16.4279Z"),l(i,"fill","currentColor"),l(s,"d","M3.57212 2.33956C1.65755 3.94607 0.496389 6.11731 0.12782 8.40523L2.04639 9.13961C2.26047 7.15832 3.21057 5.25375 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577L13.8302 6.78606L19.9633 9.13364C19.7929 7.15555 19.0335 5.20847 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956Z"),l(s,"fill","currentColor"),l(u,"d","M7 10H5C5 12.7614 7.23858 15 10 15C12.7614 15 15 12.7614 15 10H13C13 11.6569 11.6569 13 10 13C8.3431 13 7 11.6569 7 10Z"),l(u,"fill","currentColor"),l(n,"width","22"),l(n,"height","22"),l(n,"viewBox","0 0 20 20"),l(n,"fill","none"),l(n,"xmlns","http://www.w3.org/2000/svg"),l(o,"href",at),l(o,"target","_blank"),l(o,"class","altcha-logo svelte-ddsc3z"),l(o,"aria-label",c=t[11].ariaLinkLabel)},m(h,d){j(h,e,d),x(e,o),x(o,n),x(n,i),x(n,s),x(n,u)},p(h,d){d[0]&2048&&c!==(c=h[11].ariaLinkLabel)&&l(o,"aria-label",c)},d(h){h&&S(e)}}}function Ke(t){let e,o,n,i;function s(h,d){return h[6]===$.EXPIRED?no:ro}let u=s(t),c=u(t);return{c(){e=I("div"),o=Y("svg"),n=Y("path"),i=J(),c.c(),l(n,"stroke-linecap","round"),l(n,"stroke-linejoin","round"),l(n,"d","M6 18L18 6M6 6l12 12"),l(o,"width","14"),l(o,"height","14"),l(o,"xmlns","http://www.w3.org/2000/svg"),l(o,"fill","none"),l(o,"viewBox","0 0 24 24"),l(o,"stroke-width","1.5"),l(o,"stroke","currentColor"),l(e,"class","altcha-error svelte-ddsc3z")},m(h,d){j(h,e,d),x(e,o),x(o,n),x(e,i),c.m(e,null)},p(h,d){u===(u=s(h))&&c?c.p(h,d):(c.d(1),c=u(h),c&&(c.c(),c.m(e,null)))},d(h){h&&S(e),c.d()}}}function ro(t){let e,o=t[11].error+"";return{c(){e=I("div"),l(e,"title",t[10])},m(n,i){j(n,e,i),e.innerHTML=o},p(n,i){i[0]&2048&&o!==(o=n[11].error+"")&&(e.innerHTML=o),i[0]&1024&&l(e,"title",n[10])},d(n){n&&S(e)}}}function no(t){let e,o=t[11].expired+"";return{c(){e=I("div"),l(e,"title",t[10])},m(n,i){j(n,e,i),e.innerHTML=o},p(n,i){i[0]&2048&&o!==(o=n[11].expired+"")&&(e.innerHTML=o),i[0]&1024&&l(e,"title",n[10])},d(n){n&&S(e)}}}function Je(t){let e,o,n=t[11].footer+"";return{c(){e=I("div"),o=I("div"),l(o,"class","svelte-ddsc3z"),l(e,"class","altcha-footer svelte-ddsc3z")},m(i,s){j(i,e,s),x(e,o),o.innerHTML=n},p(i,s){s[0]&2048&&n!==(n=i[11].footer+"")&&(o.innerHTML=n)},d(i){i&&S(e)}}}function qe(t){let e;return{c(){e=I("div"),l(e,"class","altcha-anchor-arrow svelte-ddsc3z")},m(o,n){j(o,e,n),t[37](e)},p:ie,d(o){o&&S(e),t[37](null)}}}function io(t){let e,o,n,i,s,u,c,h,d,O,m,V,F,T,B,p=t[6]===$.VERIFYING&&Ye();function W(f,v){return f[6]===$.VERIFIED?oo:f[6]===$.VERIFYING?to:eo}let P=W(t),Z=P(t),C=(t[3]!==!0||t[12])&&We(t),_=(t[10]||t[6]===$.EXPIRED)&&Ke(t),E=t[11].footer&&(t[2]!==!0||t[12])&&Je(t),z=t[1]&&qe(t);return{c(){e=I("div"),o=I("div"),p&&p.c(),n=J(),i=I("div"),s=I("input"),h=J(),d=I("div"),Z.c(),O=J(),C&&C.c(),m=J(),_&&_.c(),V=J(),E&&E.c(),F=J(),z&&z.c(),l(s,"type","checkbox"),l(s,"id",u=t[4]+"_checkbox"),s.required=c=t[0]!=="onsubmit",l(s,"class","svelte-ddsc3z"),l(i,"class","altcha-checkbox svelte-ddsc3z"),Be(i,"altcha-hidden",t[6]===$.VERIFYING),l(d,"class","altcha-label svelte-ddsc3z"),l(o,"class","altcha-main svelte-ddsc3z"),l(e,"class","altcha svelte-ddsc3z"),l(e,"data-state",t[6]),l(e,"data-floating",t[1])},m(f,v){j(f,e,v),x(e,o),p&&p.m(o,null),x(o,n),x(o,i),x(i,s),s.checked=t[7],x(o,h),x(o,d),Z.m(d,null),x(o,O),C&&C.m(o,null),x(e,m),_&&_.m(e,null),x(e,V),E&&E.m(e,null),x(e,F),z&&z.m(e,null),t[38](e),T||(B=[Le(s,"change",t[36]),Le(s,"change",t[13]),Le(s,"invalid",t[14])],T=!0)},p(f,v){f[6]===$.VERIFYING?p||(p=Ye(),p.c(),p.m(o,n)):p&&(p.d(1),p=null),v[0]&16&&u!==(u=f[4]+"_checkbox")&&l(s,"id",u),v[0]&1&&c!==(c=f[0]!=="onsubmit")&&(s.required=c),v[0]&128&&(s.checked=f[7]),v[0]&64&&Be(i,"altcha-hidden",f[6]===$.VERIFYING),P===(P=W(f))&&Z?Z.p(f,v):(Z.d(1),Z=P(f),Z&&(Z.c(),Z.m(d,null))),f[3]!==!0||f[12]?C?C.p(f,v):(C=We(f),C.c(),C.m(o,null)):C&&(C.d(1),C=null),f[10]||f[6]===$.EXPIRED?_?_.p(f,v):(_=Ke(f),_.c(),_.m(e,V)):_&&(_.d(1),_=null),f[11].footer&&(f[2]!==!0||f[12])?E?E.p(f,v):(E=Je(f),E.c(),E.m(e,F)):E&&(E.d(1),E=null),f[1]?z?z.p(f,v):(z=qe(f),z.c(),z.m(e,null)):z&&(z.d(1),z=null),v[0]&64&&l(e,"data-state",f[6]),v[0]&2&&l(e,"data-floating",f[1])},i:ie,o:ie,d(f){f&&S(e),p&&p.d(),Z.d(),C&&C.d(),_&&_.d(),E&&E.d(),z&&z.d(),t[38](null),T=!1,ue(B)}}}const Qe="Visit Altcha.org",at="https://altcha.org/";function et(t){return JSON.parse(t)}function so(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function lo(t,e,o){var n,i;let s,u,c,h,{auto:d=void 0}=e,{blockspam:O=void 0}=e,{challengeurl:m=void 0}=e,{challengejson:V=void 0}=e,{debug:F=!1}=e,{delay:T=0}=e,{expire:B=void 0}=e,{floating:p=void 0}=e,{floatinganchor:W=void 0}=e,{floatingoffset:P=void 0}=e,{hidefooter:Z=!1}=e,{hidelogo:C=!1}=e,{name:_="altcha"}=e,{maxnumber:E=1e6}=e,{mockerror:z=!1}=e,{refetchonexpire:f=!0}=e,{spamfilter:v=!1}=e,{strings:fe=void 0}=e,{test:G=!1}=e,{verifyurl:q=void 0}=e,{workers:se=Math.min(16,navigator.hardwareConcurrency||8)}=e,{workerurl:he=void 0}=e;const we=jt(),_e=["SHA-256","SHA-384","SHA-512"],Ae=(i=(n=document.documentElement.lang)==null?void 0:n.split("-"))==null?void 0:i[0];let K=!1,L,Q=null,pe=null,y=null,xe=null,ee=null,M=$.UNVERIFIED,X=null;Mt(()=>{y&&(y.removeEventListener("submit",Ze),y.removeEventListener("reset",Se),y.removeEventListener("focusin",Ne),y=null),X&&(clearTimeout(X),X=null),document.removeEventListener("click",Fe),document.removeEventListener("scroll",Te),window.removeEventListener("resize",Ue)}),St(()=>{k("mounted","0.6.7"),k("workers",se),G&&k("using test mode"),B&&$e(B),d!==void 0&&k("auto",d),p!==void 0&&De(p),y=L.closest("form"),y&&(y.addEventListener("submit",Ze,{capture:!0}),y.addEventListener("reset",Se),d==="onfocus"&&y.addEventListener("focusin",Ne)),d==="onload"&&te(),s&&(Z||C)&&k("Attributes hidefooter and hidelogo ignored because usage with free API Keys require attribution.")});function k(...r){(F||r.some(a=>a instanceof Error))&&console[r[0]instanceof Error?"error":"log"]("ALTCHA",...r)}function Ne(r){M===$.UNVERIFIED&&te()}function Ze(r){y&&d==="onsubmit"&&(M===$.UNVERIFIED?(r.preventDefault(),r.stopPropagation(),te().then(()=>{y==null||y.requestSubmit()})):M!==$.VERIFIED&&(r.preventDefault(),r.stopPropagation(),M===$.VERIFYING&&Ge()))}function Se(){ge()}function Me(r,a){return btoa(JSON.stringify({algorithm:r.algorithm,challenge:r.challenge,number:a.number,salt:r.salt,signature:r.signature,test:G?!0:void 0,took:a.took}))}function je(r){if(!r.algorithm)throw new Error("Invalid challenge. Property algorithm is missing.");if(r.signature===void 0)throw new Error("Invalid challenge. Property signature is missing.");if(!_e.includes(r.algorithm.toUpperCase()))throw new Error(`Unknown algorithm value. Allowed values: ${_e.join(", ")}`);
1if(!r.challenge||r.challenge.length<40)throw new Error("Challenge is too short. Min. 40 chars.");if(!r.salt||r.salt.length<10)throw new Error("Salt is too short. Min. 10 chars.")}async function ct(){var r;if(z)throw k("mocking error"),new Error("Mocked error.");if(u)return k("using provided json data"),u;if(G)return k("generating test challenge",{test:G}),Jt(typeof G!="boolean"?+G:void 0);{if(!m)throw new Error("Attribute challengeurl not set.");k("fetching challenge from",m);const a=await fetch(m,{headers:{"x-altcha-spam-filter":v?"1":"0"}});if(a.status!==200)throw new Error(`Server responded with ${a.status}.`);const g=a.headers.get("Expires"),A=a.headers.get("X-Altcha-Config"),N=await a.json(),U=new URLSearchParams((r=N.salt.split("?"))==null?void 0:r[1]),H=U.get("expires")||U.get("expire");if(H){const w=new Date(+H*1e3),R=isNaN(w.getTime())?0:w.getTime()-Date.now();R>0&&$e(R)}if(A)try{const w=JSON.parse(A);w&&typeof w=="object"&&(w.verifyurl&&(w.verifyurl=new URL(w.verifyurl,new URL(m)).toString()),Xe(w))}catch(w){k("unable to configure from X-Altcha-Config",w)}if(!B&&g!=null&&g.length){const w=Date.parse(g);if(w){const R=w-Date.now();R>0&&$e(R)}}return N}}function Ve(){m&&f&&M===$.VERIFIED?te():ge($.EXPIRED,h.expired)}async function dt(r){let a=null;if("Worker"in window){try{a=await ut(r.challenge,r.salt,r.algorithm,r.maxnumber)}catch(g){k(g)}if((a==null?void 0:a.number)!==void 0)return{data:r,solution:a}}return{data:r,solution:await qt(r.challenge,r.salt,r.algorithm,r.maxnumber||E).promise}}async function ut(r,a,g,A=typeof G=="number"?G:E,N=Math.ceil(se)){const U=[];N=Math.min(16,Math.max(1,N));for(let R=0;R<N;R++)U.push(createAltchaWorker(he));const H=Math.ceil(A/N),w=await Promise.all(U.map((R,Ee)=>{const le=Ee*H;return new Promise(me=>{R.addEventListener("message",ve=>{if(ve.data)for(const ae of U)ae!==R&&ae.postMessage({type:"abort"});me(ve.data)}),R.postMessage({payload:{alg:g,challenge:r,max:le+H,salt:a,start:le},type:"work"})})}));for(const R of U)R.terminate();return w.find(R=>!!R)||null}function ft(){[$.UNVERIFIED,$.ERROR,$.EXPIRED].includes(M)?v&&(y==null?void 0:y.reportValidity())===!1?o(7,K=!1):te():o(7,K=!0)}function Fe(r){const a=r.target;p&&a&&!L.contains(a)&&M===$.VERIFIED&&o(8,L.style.display="none",L)}function Te(){p&&ke()}function Ge(){M===$.VERIFYING&&h.waitAlert&&alert(h.waitAlert)}function ht(r){p&&M!==$.UNVERIFIED&&requestAnimationFrame(()=>{ke()})}function Ue(){p&&ke()}function $e(r){k("expire",r),X&&(clearTimeout(X),X=null),r<1?Ve():X=setTimeout(Ve,r)}function De(r){k("floating",r),p!==r&&(o(8,L.style.left="",L),o(8,L.style.top="",L)),o(1,p=r===!0||r===""?"auto":r===!1||r==="false"?void 0:p),p?(d||o(0,d="onsubmit"),document.addEventListener("scroll",Te),document.addEventListener("click",Fe),window.addEventListener("resize",Ue)):d==="onsubmit"&&o(0,d=void 0)}function pt(r){var a;const g=y==null?void 0:y.querySelector(typeof r=="string"?`input[name="${r}"]`:'input[type="email"]:not([data-no-spamfilter])');return((a=g==null?void 0:g.value)==null?void 0:a.slice(g.value.indexOf("@")))||void 0}function $t(r){return[...(y==null?void 0:y.querySelectorAll(r!=null&&r.length?r.map(a=>`input[name="${a}"]`).join(", "):'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])'))||[]].reduce((a,g)=>{const A=g.name,N=g.value;return A&&N&&(a[A]=/\n/.test(N)?N.replace(new RegExp("(?<!\\r)\\n","g"),`\r
2`):N),a},{})}async function gt(r){if(!q)throw new Error("Attribute verifyurl not set.");k("requesting server verification from",q);const a={payload:r};if(v){const{blockedCountries:N,classifier:U,disableRules:H,email:w,expectedLanguages:R,expectedCountries:Ee,fields:le,ipAddress:me,text:ve,timeZone:ae}=mt();a.blockedCountries=N,a.classifier=U,a.disableRules=H,a.email=w===!1?void 0:pt(w),a.expectedCountries=Ee,a.expectedLanguages=R||(Ae?[Ae]:void 0),a.fields=le===!1?void 0:$t(le),a.ipAddress=me===!1?void 0:me||"auto",a.text=ve,a.timeZone=ae===!1?void 0:ae||so()}const g=await fetch(q,{body:JSON.stringify(a),headers:{"content-type":"application/json"},method:"POST"});if(g.status!==200)throw new Error(`Server responded with ${g.status}.`);const A=await g.json();if(A!=null&&A.payload&&o(5,ee=A.payload),we("serververification",A),O&&A.classification==="BAD")throw new Error("SpamFilter returned negative classification.")}function mt(){return v==="ipAddress"?{blockedCountries:void 0,classifier:void 0,disableRules:void 0,email:!1,expectedCountries:void 0,expectedLanguages:void 0,fields:!1,ipAddress:void 0,text:void 0,timeZone:void 0}:typeof v=="object"?v:{blockedCountries:void 0,classifier:void 0,disableRules:void 0,email:void 0,expectedCountries:void 0,expectedLanguages:void 0,fields:void 0,ipAddress:void 0,text:void 0,timeZone:void 0}}function ke(r=20){if(L)if(pe||(pe=(W?document.querySelector(W):y==null?void 0:y.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])'))||y),pe){const a=parseInt(P,10)||12,g=pe.getBoundingClientRect(),A=L.getBoundingClientRect(),N=document.documentElement.clientHeight,U=document.documentElement.clientWidth,H=p==="auto"?g.bottom+A.height+a+r>N:p==="top",w=Math.max(r,Math.min(U-r-A.width,g.left+g.width/2-A.width/2));if(H?o(8,L.style.top=`${g.top-(A.height+a)}px`,L):o(8,L.style.top=`${g.bottom+a}px`,L),o(8,L.style.left=`${w}px`,L),L.setAttribute("data-floating",H?"top":"bottom"),Q){const R=Q.getBoundingClientRect();o(9,Q.style.left=g.left-w+g.width/2-R.width/2+"px",Q)}}else k("unable to find floating anchor element")}function Xe(r){r.auto!==void 0&&(o(0,d=r.auto),d==="onload"&&te()),r.floatinganchor!==void 0&&o(19,W=r.floatinganchor),r.delay!==void 0&&o(17,T=r.delay),r.floatingoffset!==void 0&&o(20,P=r.floatingoffset),r.floating!==void 0&&De(r.floating),r.expire!==void 0&&($e(r.expire),o(18,B=r.expire)),r.challenge&&(je(r.challenge),u=r.challenge),r.challengeurl!==void 0&&o(15,m=r.challengeurl),r.debug!==void 0&&o(16,F=!!r.debug),r.hidefooter!==void 0&&o(2,Z=!!r.hidefooter),r.hidelogo!==void 0&&o(3,C=!!r.hidelogo),r.maxnumber!==void 0&&o(21,E=+r.maxnumber),r.mockerror!==void 0&&o(22,z=!!r.mockerror),r.name!==void 0&&o(4,_=r.name),r.refetchonexpire!==void 0&&o(23,f=!!r.refetchonexpire),r.spamfilter!==void 0&&o(24,v=typeof r.spamfilter=="object"?r.spamfilter:!!r.spamfilter),r.strings&&o(35,
2c=r.strings),r.test!==void 0&&o(25,G=typeof r.test=="number"?r.test:!!r.test),r.verifyurl!==void 0&&o(26,q=r.verifyurl),r.workers!==void 0&&o(27,se=+r.workers),r.workerurl!==void 0&&o(28,he=r.workerurl)}function ge(r=$.UNVERIFIED,a=null){X&&(clearTimeout(X),X=null),o(7,K=!1),o(10,xe=a),o(5,ee=null),o(6,M=r)}async function te(){return ge($.VERIFYING),await new Promise(r=>setTimeout(r,T||0)),ct().then(r=>(je(r),k("challenge",r),dt(r))).then(({data:r,solution:a})=>{if(k("solution",a),(a==null?void 0:a.number)!==void 0){if(q)return gt(Me(r,a));o(5,ee=Me(r,a)),k("payload",ee)}else throw k("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."),new Error("Unexpected result returned.")}).then(()=>{Vt().then(()=>{o(6,M=$.VERIFIED),o(7,K=!0),k("verified"),we("verified",{payload:ee})})}).catch(r=>{k(r),o(6,M=$.ERROR),o(7,K=!1),o(10,xe=r.message)})}function vt(){K=this.checked,o(7,K)}function bt(r){ye[r?"unshift":"push"](()=>{Q=r,o(9,Q)})}function yt(r){ye[r?"unshift":"push"](()=>{L=r,o(8,L)})}return t.$$set=r=>{"auto"in r&&o(0,d=r.auto),"blockspam"in r&&o(29,O=r.blockspam),"challengeurl"in r&&o(15,m=r.challengeurl),"challengejson"in r&&o(30,V=r.challengejson),"debug"in r&&o(16,F=r.debug),"delay"in r&&o(17,T=r.delay),"expire"in r&&o(18,B=r.expire),"floating"in r&&o(1,p=r.floating),"floatinganchor"in r&&o(19,W=r.floatinganchor),"floatingoffset"in r&&o(20,P=r.floatingoffset),"hidefooter"in r&&o(2,Z=r.hidefooter),"hidelogo"in r&&o(3,C=r.hidelogo),"name"in r&&o(4,_=r.name),"maxnumber"in r&&o(21,E=r.maxnumber),"mockerror"in r&&o(22,z=r.mockerror),"refetchonexpire"in r&&o(23,f=r.refetchonexpire),"spamfilter"in r&&o(24,v=r.spamfilter),"strings"in r&&o(31,fe=r.strings),"test"in r&&o(25,G=r.test),"verifyurl"in r&&o(26,q=r.verifyurl),"workers"in r&&o(27,se=r.workers),"workerurl"in r&&o(28,he=r.workerurl)},t.$$.update=()=>{t.$$.dirty[0]&32768&&o(12,s=!!(m!=null&&m.includes(".altcha.org"))&&!!(m!=null&&m.includes("apiKey=ckey_"))),t.$$.dirty[0]&1073741824&&(u=V?et(V):void 0),t.$$.dirty[1]&1&&o(35,c=fe?et(fe):{}),t.$$.dirty[1]&16&&o(11,h={ariaLinkLabel:Qe,error:"Verification failed. Try again later.",expired:"Verification expired. Try again.",footer:`Protected by <a href="${at}" target="_blank" aria-label="${c.ariaLinkLabel||Qe}">ALTCHA</a>`,label:"I'm not a robot",verified:"Verified",verifying:"Verifying...",waitAlert:"Verifying... please wait.",...c}),t.$$.dirty[0]&96&&we("statechange",{payload:ee,state:M}),t.$$.dirty[0]&64&&ht()},[d,p,Z,C,_,ee,M,K,L,Q,xe,h,s,ft,Ge,m,F,T,B,W,P,E,z,f,v,G,q,se,he,O,V,fe,Xe,ge,te,c,vt,bt,yt]}class ao extends Pt{constructor(e){super(),Ot(this,e,lo,io,Lt,{auto:0,blockspam:29,challengeurl:15,challengejson:30,debug:16,delay:17,expire:18,floating:1,floatinganchor:19,floatingoffset:20,hidefooter:2,hidelogo:3,name:4,maxnumber:21,mockerror:22,refetchonexpire:23,spamfilter:24,strings:31,test:25,verifyurl:26,workers:27,workerurl:28,configure:32,reset:33,verify:34},Qt,[-1,-1,-1])}get auto(){return this.$$.ctx[0]}set auto(e){this.$$set({auto:e}),b()}get blockspam(){return this.$$.ctx[29]}set blockspam(e){this.$$set({blockspam:e}),b()}get challengeurl(){return this.$$.ctx[15]}set challengeurl(e){this.$$set({challengeurl:e}),b()}get challengejson(){return this.$$.ctx[30]}set challengejson(e){this.$$set({challengejson:e}),b()}get debug(){return this.$$.ctx[16]}set debug(e){this.$$set({debug:e}),b()}get delay(){return this.$$.ctx[17]}set delay(e){this.$$set({delay:e}),b()}get expire(){return this.$$.ctx[18]}set expire(e){this.$$set({expire:e}),b()}get floating(){return this.$$.ctx[1]}set floating(e){this.$$set({floating:e}),b()}get floatinganchor(){return this.$$.ctx[19]}set floatinganchor(e){this.$$set({floatinganchor:e}),b()}get floatingoffset(){return this.$$.ctx[20]}set floatingoffset(e){this.$$set({floatingoffset:e}),b()}get hidefooter(){return this.$$.ctx[2]}set hidefooter(e){this.$$set({hidefooter:e}),b()}get hidelogo(){return this.$$.ctx[3]}set hidelogo(e){this.$$set({hidelogo:e}),b()}get name(){return this.$$.ctx[4]}set name(e){this.$$set({name:e}),b()}get maxnumber(){return this.$$.ctx[21]}set maxnumber(e){this.$$set({maxnumber:e}),b()}get mockerror(){return this.$$.ctx[22]}set mockerror(e){this.$$set({mockerror:e}),b()}
2get refetchonexpire(){return this.$$.ctx[23]}set refetchonexpire(e){this.$$set({refetchonexpire:e}),b()}get spamfilter(){return this.$$.ctx[24]}set spamfilter(e){this.$$set({spamfilter:e}),b()}get strings(){return this.$$.ctx[31]}set strings(e){this.$$set({strings:e}),b()}get test(){return this.$$.ctx[25]}set test(e){this.$$set({test:e}),b()}get verifyurl(){return this.$$.ctx[26]}set verifyurl(e){this.$$set({verifyurl:e}),b()}get workers(){return this.$$.ctx[27]}set workers(e){this.$$set({workers:e}),b()}get workerurl(){return this.$$.ctx[28]}set workerurl(e){this.$$set({workerurl:e}),b()}get configure(){return this.$$.ctx[32]}get reset(){return this.$$.ctx[33]}get verify(){return this.$$.ctx[34]}}customElements.define("altcha-widget",Bt(ao,{auto:{},blockspam:{},challengeurl:{},challengejson:{},debug:{type:"Boolean"},delay:{},expire:{},floating:{},floatinganchor:{},floatingoffset:{},hidefooter:{type:"Boolean"},hidelogo:{type:"Boolean"},name:{},maxnumber:{},mockerror:{type:"Boolean"},refetchonexpire:{type:"Boolean"},spamfilter:{type:"Boolean"},strings:{},test:{type:"Boolean"},verifyurl:{},workers:{},workerurl:{}},[],["configure","reset","verify"],!1));globalThis.createAltchaWorker=t=>t?new Worker(new URL(t)):new Et;export{ao as Altcha};
3//# sourceMappingURL=QwmqEqnX.js.map

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.