/*
@licstart  The following is the entire license notice for the
JavaScript code in this page.

Copyright (c) 2025 Xe Iaso <xe.iaso@techaro.lol>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Includes code from https://www.npmjs.com/package/preact which is used under
the terms of the MIT license.

Includes code from https://github.com/aws/aws-sdk-js-crypto-helpers which is
used under the terms of the Apache 2 license.

@licend  The above is the entire license notice
for the JavaScript code in this page.
*/
(()=>{var $,y,he,Ve,T,se,de,ye,me,ee,J,X,Ye,H={},ve=[],ze=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,q=Array.isArray;function S(e,t){for(var r in t)e[r]=t[r];return e}function te(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function A(e,t,r){var n,i,o,u={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:u[o]=t[o];if(arguments.length>2&&(u.children=arguments.length>3?$.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)u[o]===void 0&&(u[o]=e.defaultProps[o]);return F(e,u,n,i,null)}function F(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++he,__i:-1,__u:0};return i==null&&y.vnode!=null&&y.vnode(o),o}function j(e){return e.children}function W(e,t){this.props=e,this.context=t}function C(e,t){if(t==null)return e.__?C(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?C(e):null}function be(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return be(e)}}function ce(e){(!e.__d&&(e.__d=!0)&&T.push(e)&&!G.__r++||se!=y.debounceRendering)&&((se=y.debounceRendering)||de)(G)}function G(){for(var e,t,r,n,i,o,u,a=1;T.length;)T.length>a&&T.sort(ye),e=T.shift(),a=T.length,e.__d&&(r=void 0,n=void 0,i=(n=(t=e).__v).__e,o=[],u=[],t.__P&&((r=S({},n)).__v=n.__v+1,y.vnode&&y.vnode(r),re(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i??C(n),!!(32&n.__u),u),r.__v=n.__v,r.__.__k[r.__i]=r,we(o,r,u),n.__e=n.__=null,r.__e!=i&&be(r)));G.__r=0}function ge(e,t,r,n,i,o,u,a,s,f,l){var _,p,c,v,w,b,h,d=n&&n.__k||ve,P=t.length;for(s=Ze(r,t,d,s,P),_=0;_<P;_++)(c=r.__k[_])!=null&&(p=c.__i==-1?H:d[c.__i]||H,c.__i=_,b=re(e,c,p,i,o,u,a,s,f,l),v=c.__e,c.ref&&p.ref!=c.ref&&(p.ref&&ne(p.ref,null,c),l.push(c.ref,c.__c||v,c)),w==null&&v!=null&&(w=v),(h=!!(4&c.__u))||p.__k===c.__k?s=xe(c,s,e,h):typeof c.type=="function"&&b!==void 0?s=b:v&&(s=v.nextSibling),c.__u&=-7);return r.__e=w,s}function Ze(e,t,r,n,i){var o,u,a,s,f,l=r.length,_=l,p=0;for(e.__k=new Array(i),o=0;o<i;o++)(u=t[o])!=null&&typeof u!="boolean"&&typeof u!="function"?(typeof u=="string"||typeof u=="number"||typeof u=="bigint"||u.constructor==String?u=e.__k[o]=F(null,u,null,null,null):q(u)?u=e.__k[o]=F(j,{children:u},null,null,null):u.constructor===void 0&&u.__b>0?u=e.__k[o]=F(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):e.__k[o]=u,s=o+p,u.__=e,u.__b=e.__b+1,a=null,(f=u.__i=Je(u,r,s,_))!=-1&&(_--,(a=r[f])&&(a.__u|=2)),a==null||a.__v==null?(f==-1&&(i>l?p--:i<l&&p++),typeof u.type!="function"&&(u.__u|=4)):f!=s&&(f==s-1?p--:f==s+1?p++:(f>s?p--:p++,u.__u|=4))):e.__k[o]=null;if(_)for(o=0;o<l;o++)(a=r[o])!=null&&(2&a.__u)==0&&(a.__e==n&&(n=C(a)),Se(a,a));return n}function xe(e,t,r,n){var i,o;if(typeof e.type=="function"){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,t=xe(i[o],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=C(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Je(e,t,r,n){var i,o,u,a=e.key,s=e.type,f=t[r],l=f!=null&&(2&f.__u)==0;if(f===null&&a==null||l&&a==f.key&&s==f.type)return r;if(n>(l?1:0)){for(i=r-1,o=r+1;i>=0||o<t.length;)if((f=t[u=i>=0?i--:o++])!=null&&(2&f.__u)==0&&a==f.key&&s==f.type)return u}return-1}function le(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||ze.test(t)?r:r+"px"}function M(e,t,r,n,i){var o,u;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||le(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||le(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(me,"$1")),u=t.toLowerCase(),t=u in e||t=="onFocusOut"||t=="onFocusIn"?u.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.u=n.u:(r.u=ee,e.addEventListener(t,o?X:J,o)):e.removeEventListener(t,o?X:J,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function pe(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=ee++;else if(t.t<r.u)return;return r(y.event?y.event(t):t)}}}function re(e,t,r,n,i,o,u,a,s,f){var l,_,p,c,v,w,b,h,d,P,O,B,L,ae,R,k,Z,E=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(s=!!(32&r.__u),o=[a=t.__e=r.__e]),(l=y.__b)&&l(t);e:if(typeof E=="function")try{if(h=t.props,d="prototype"in E&&E.prototype.render,P=(l=E.contextType)&&n[l.__c],O=l?P?P.props.value:l.__:n,r.__c?b=(_=t.__c=r.__c).__=_.__E:(d?t.__c=_=new E(h,O):(t.__c=_=new W(h,O),_.constructor=E,_.render=Qe),P&&P.sub(_),_.state||(_.state={}),_.__n=n,p=_.__d=!0,_.__h=[],_._sb=[]),d&&_.__s==null&&(_.__s=_.state),d&&E.getDerivedStateFromProps!=null&&(_.__s==_.state&&(_.__s=S({},_.__s)),S(_.__s,E.getDerivedStateFromProps(h,_.__s))),c=_.props,v=_.state,_.__v=t,p)d&&E.getDerivedStateFromProps==null&&_.componentWillMount!=null&&_.componentWillMount(),d&&_.componentDidMount!=null&&_.__h.push(_.componentDidMount);else{if(d&&E.getDerivedStateFromProps==null&&h!==c&&_.componentWillReceiveProps!=null&&_.componentWillReceiveProps(h,O),t.__v==r.__v||!_.__e&&_.shouldComponentUpdate!=null&&_.shouldComponentUpdate(h,_.__s,O)===!1){for(t.__v!=r.__v&&(_.props=h,_.state=_.__s,_.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(U){U&&(U.__=t)}),B=0;B<_._sb.length;B++)_.__h.push(_._sb[B]);_._sb=[],_.__h.length&&u.push(_);break e}_.componentWillUpdate!=null&&_.componentWillUpdate(h,_.__s,O),d&&_.componentDidUpdate!=null&&_.__h.push(function(){_.componentDidUpdate(c,v,w)})}if(_.context=O,_.props=h,_.__P=e,_.__e=!1,L=y.__r,ae=0,d){for(_.state=_.__s,_.__d=!1,L&&L(t),l=_.render(_.props,_.state,_.context),R=0;R<_._sb.length;R++)_.__h.push(_._sb[R]);_._sb=[]}else do _.__d=!1,L&&L(t),l=_.render(_.props,_.state,_.context),_.state=_.__s;while(_.__d&&++ae<25);_.state=_.__s,_.getChildContext!=null&&(n=S(S({},n),_.getChildContext())),d&&!p&&_.getSnapshotBeforeUpdate!=null&&(w=_.getSnapshotBeforeUpdate(c,v)),k=l,l!=null&&l.type===j&&l.key==null&&(k=Ee(l.props.children)),a=ge(e,q(k)?k:[k],t,r,n,i,o,u,a,s,f),_.base=t.__e,t.__u&=-161,_.__h.length&&u.push(_),b&&(_.__E=_.__=null)}catch(U){if(t.__v=null,s||o!=null)if(U.then){for(t.__u|=s?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else{for(Z=o.length;Z--;)te(o[Z]);Q(t)}else t.__e=r.__e,t.__k=r.__k,U.then||Q(t);y.__e(U,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):a=t.__e=Xe(r.__e,t,r,n,i,o,u,s,f);return(l=y.diffed)&&l(t),128&t.__u?void 0:a}function Q(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(Q)}function we(e,t,r){for(var n=0;n<r.length;n++)ne(r[n],r[++n],r[++n]);y.__c&&y.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){y.__e(o,i.__v)}})}function Ee(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:q(e)?e.map(Ee):S({},e)}function Xe(e,t,r,n,i,o,u,a,s){var f,l,_,p,c,v,w,b=r.props||H,h=t.props,d=t.type;if(d=="svg"?i="http://www.w3.org/2000/svg":d=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(f=0;f<o.length;f++)if((c=o[f])&&"setAttribute"in c==!!d&&(d?c.localName==d:c.nodeType==3)){e=c,o[f]=null;break}}if(e==null){if(d==null)return document.createTextNode(h);e=document.createElementNS(i,d,h.is&&h),a&&(y.__m&&y.__m(t,o),a=!1),o=null}if(d==null)b===h||a&&e.data==h||(e.data=h);else{if(o=o&&$.call(e.childNodes),!a&&o!=null)for(b={},f=0;f<e.attributes.length;f++)b[(c=e.attributes[f]).name]=c.value;for(f in b)if(c=b[f],f!="children"){if(f=="dangerouslySetInnerHTML")_=c;else if(!(f in h)){if(f=="value"&&"defaultValue"in h||f=="checked"&&"defaultChecked"in h)continue;M(e,f,null,c,i)}}for(f in h)c=h[f],f=="children"?p=c:f=="dangerouslySetInnerHTML"?l=c:f=="value"?v=c:f=="checked"?w=c:a&&typeof c!="function"||b[f]===c||M(e,f,c,b[f],i);if(l)a||_&&(l.__html==_.__html||l.__html==e.innerHTML)||(e.innerHTML=l.__html),t.__k=[];else if(_&&(e.innerHTML=""),ge(t.type=="template"?e.content:e,q(p)?p:[p],t,r,n,d=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,u,o?o[0]:r.__k&&C(r,0),a,s),o!=null)for(f=o.length;f--;)te(o[f]);a||(f="value",d=="progress"&&v==null?e.removeAttribute("value"):v!=null&&(v!==e[f]||d=="progress"&&!v||d=="option"&&v!=b[f])&&M(e,f,v,b[f],i),f="checked",w!=null&&w!=e[f]&&M(e,f,w,b[f],i))}return e}function ne(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){y.__e(i,r)}}function Se(e,t,r){var n,i;if(y.unmount&&y.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||ne(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){y.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Se(n[i],t,r||typeof e.type!="function");r||te(e.__e),e.__c=e.__=e.__e=void 0}function Qe(e,t,r){return this.constructor(e,r)}function Pe(e,t,r){var n,i,o,u;t==document&&(t=document.documentElement),y.__&&y.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],u=[],re(t,e=(!n&&r||t).__k=A(j,null,[e]),i||H,H,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?$.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,u),we(o,e,u)}$=ve.slice,y={__e:function(e,t,r,n){for(var i,o,u;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),u=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),u=i.__d),u)return i.__E=i}catch(a){e=a}throw e}},he=0,Ve=function(e){return e!=null&&e.constructor===void 0},W.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=S({},this.state),typeof e=="function"&&(e=e(S({},r),this.props)),e&&S(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),ce(this))},W.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ce(this))},W.prototype.render=j,T=[],de=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ye=function(e,t){return e.__v.__b-t.__v.__b},G.__r=0,me=/(PointerCapture)$|Capture$/i,ee=0,J=pe(!1),X=pe(!0),Ye=0;var V,m,oe,Ae,ie=0,He=[],g=y,Oe=g.__b,Te=g.__r,je=g.diffed,Ue=g.__c,Ce=g.unmount,Le=g.__;function De(e,t){g.__h&&g.__h(m,e,ie||t),ie=0;var r=m.__H||(m.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function D(e){return ie=1,et(Ne,e)}function et(e,t,r){var n=De(V++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Ne(void 0,t),function(a){var s=n.__N?n.__N[0]:n.__[0],f=n.t(s,a);s!==f&&(n.__N=[f,n.__[1]],n.__c.setState({}))}],n.__c=m,!m.__f)){var i=function(a,s,f){if(!n.__c.__H)return!0;var l=n.__c.__H.__.filter(function(p){return!!p.__c});if(l.every(function(p){return!p.__N}))return!o||o.call(this,a,s,f);var _=n.__c.props!==a;return l.forEach(function(p){if(p.__N){var c=p.__[0];p.__=p.__N,p.__N=void 0,c!==p.__[0]&&(_=!0)}}),o&&o.call(this,a,s,f)||_};m.__f=!0;var o=m.shouldComponentUpdate,u=m.componentWillUpdate;m.componentWillUpdate=function(a,s,f){if(this.__e){var l=o;o=void 0,i(a,s,f),o=l}u&&u.call(this,a,s,f)},m.shouldComponentUpdate=i}return n.__N||n.__}function N(e,t){var r=De(V++,3);!g.__s&&nt(r.__H,t)&&(r.__=e,r.u=t,m.__H.__h.push(r))}function tt(){for(var e;e=He.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(K),e.__H.__h.forEach(_e),e.__H.__h=[]}catch(t){e.__H.__h=[],g.__e(t,e.__v)}}g.__b=function(e){m=null,Oe&&Oe(e)},g.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Le&&Le(e,t)},g.__r=function(e){Te&&Te(e),V=0;var t=(m=e.__c).__H;t&&(oe===m?(t.__h=[],m.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(K),t.__h.forEach(_e),t.__h=[],V=0)),oe=m},g.diffed=function(e){je&&je(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(He.push(t)!==1&&Ae===g.requestAnimationFrame||((Ae=g.requestAnimationFrame)||rt)(tt)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),oe=m=null},g.__c=function(e,t){t.some(function(r){try{r.__h.forEach(K),r.__h=r.__h.filter(function(n){return!n.__||_e(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],g.__e(n,r.__v)}}),Ue&&Ue(e,t)},g.unmount=function(e){Ce&&Ce(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{K(n)}catch(i){t=i}}),r.__H=void 0,t&&g.__e(t,r.__v))};var ke=typeof requestAnimationFrame=="function";function rt(e){var t,r=function(){clearTimeout(n),ke&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);ke&&(t=requestAnimationFrame(r))}function K(e){var t=m,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),m=t}function _e(e){var t=m;e.__c=e.__(),m=t}function nt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ne(e,t){return typeof t=="function"?t(e):t}var Ie=e=>{for(;e.lastChild;)e.removeChild(e.lastChild)},Y=e=>document.getElementById(e);var Be=(e="",t={})=>{let r=new URL(e,window.location.href);return Object.entries(t).forEach(n=>{let[i,o]=n;r.searchParams.set(i,o)}),r.toString()};var Re=e=>JSON.parse(Y(e).textContent);function Me(e,t,r,n){function i(o){return o instanceof r?o:new r(function(u){u(o)})}return new(r||(r=Promise))(function(o,u){function a(l){try{f(n.next(l))}catch(_){u(_)}}function s(l){try{f(n.throw(l))}catch(_){u(_)}}function f(l){l.done?o(l.value):i(l.value).then(a,s)}f((n=n.apply(e,t||[])).next())})}function Fe(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,u=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return u.next=a(0),u.throw=a(1),u.return=a(2),typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(f){return function(l){return s([f,l])}}function s(f){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,f[0]&&(r=0)),r;)try{if(n=1,i&&(o=f[0]&2?i.return:f[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,f[1])).done)return o;switch(i=0,o&&(f=[f[0]&2,o.value]),f[0]){case 0:case 1:o=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!o||f[1]>o[0]&&f[1]<o[3])){r.label=f[1];break}if(f[0]===6&&r.label<o[1]){r.label=o[1],o=f;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(f);break}o[2]&&r.ops.pop(),r.trys.pop();continue}f=t.call(e,r)}catch(l){f=[6,l],i=0}finally{n=o=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var x=64,We=32,Ge=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),$e=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],qe=Math.pow(2,53)-1;var I=(function(){function e(){this.state=Int32Array.from($e),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var r=0,n=t.byteLength;if(this.bytesHashed+=n,this.bytesHashed*8>qe)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=t[r++],n--,this.bufferLength===x&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(r.setUint8(this.bufferLength++,128),n%x>=x-8){for(var i=this.bufferLength;i<x;i++)r.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(var i=this.bufferLength;i<x-8;i++)r.setUint8(i,0);r.setUint32(x-8,Math.floor(t/4294967296),!0),r.setUint32(x-4,t),this.hashBuffer(),this.finished=!0}for(var o=new Uint8Array(We),i=0;i<8;i++)o[i*4]=this.state[i]>>>24&255,o[i*4+1]=this.state[i]>>>16&255,o[i*4+2]=this.state[i]>>>8&255,o[i*4+3]=this.state[i]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var t=this,r=t.buffer,n=t.state,i=n[0],o=n[1],u=n[2],a=n[3],s=n[4],f=n[5],l=n[6],_=n[7],p=0;p<x;p++){if(p<16)this.temp[p]=(r[p*4]&255)<<24|(r[p*4+1]&255)<<16|(r[p*4+2]&255)<<8|r[p*4+3]&255;else{var c=this.temp[p-2],v=(c>>>17|c<<15)^(c>>>19|c<<13)^c>>>10;c=this.temp[p-15];var w=(c>>>7|c<<25)^(c>>>18|c<<14)^c>>>3;this.temp[p]=(v+this.temp[p-7]|0)+(w+this.temp[p-16]|0)}var b=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&f^~s&l)|0)+(_+(Ge[p]+this.temp[p]|0)|0)|0,h=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&o^i&u^o&u)|0;_=l,l=f,f=s,s=a+b|0,a=u,u=o,o=i,i=b+h|0}n[0]+=i,n[1]+=o,n[2]+=u,n[3]+=a,n[4]+=s,n[5]+=f,n[6]+=l,n[7]+=_},e})();var fe=e=>new TextEncoder().encode(e);var ot=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:fe;function z(e){return e instanceof Uint8Array?e:typeof e=="string"?ot(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function ue(e){return typeof e=="string"?e.length===0:e.byteLength===0}var Ke=(function(){function e(t){this.secret=t,this.hash=new I,this.reset()}return e.prototype.update=function(t){if(!(ue(t)||this.error))try{this.hash.update(z(t))}catch(r){this.error=r}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return Me(this,void 0,void 0,function(){return Fe(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new I,this.secret){this.outer=new I;var t=it(this.secret),r=new Uint8Array(x);r.set(t);for(var n=0;n<x;n++)t[n]^=54,r[n]^=92;this.hash.update(t),this.outer.update(r);for(var n=0;n<t.byteLength;n++)t[n]=0}},e})();function it(e){var t=z(e);if(t.byteLength>x){var r=new I;r.update(t),t=r.digest()}var n=new Uint8Array(x);return n.set(t),n}function _t(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var ft=()=>{let[e,t]=D(),[r,n]=D(null),[i,o]=D(!1),[u,a]=D(null);return N(()=>{t(Re("preact_info"))}),N(()=>{if(e===void 0)return;n(e?.pensive_url);let s=new Ke("");s.update(e.challenge),a(_t(s.digestSync()))},[e]),N(()=>{if(e===void 0)return;let s=setTimeout(()=>{o(!0)},e?.difficulty*125);return()=>clearTimeout(s)},[u]),N(()=>{e!==void 0&&u!==null&&(window.location.href=Be(e.redir,{result:u}))},[i]),A(j,null,r!==null&&A("img",{src:r,style:{width:"100%",maxWidth:"256px"}}),e!==void 0&&A(j,null,A("p",{id:"status"},e.loading_message),A("p",null,e.connection_security_message)))};Ie(Y("app"));Pe(A(ft,null),Y("app"));})();
