1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,426483,651187,t=>{"use strict";var e=t.i(700360);t.i(153106);var r=t.i(135256),n=t.i(623541);let i="recaptcha-script";function o(t,e,r){return new Promise(n=>{let i=setTimeout(()=>n(r),e);t.then(t=>{clearTimeout(i),n(t)},()=>{clearTimeout(i),n(r)})})}let a=null;function s(t,e){return"u"<typeof document?Promise.resolve(!1):window.grecaptcha?Promise.resolve(!0):a||(a=new Promise(r=>{let n=document.getElementById(i),o=()=>{n?.remove(),a=null,r(!1)};if(n){n.addEventListener("load",()=>r(!0),{once:!0}),n.addEventListener("error",o,{once:!0});return}let s=document.createElement("script");n=s,s.id=i,s.src=`https://www.${t}/recaptcha/api.js?render=${encodeURIComponent(e)}`,s.async=!0,s.defer=!0,s.addEventListener("load",()=>r(!0),{once:!0}),s.addEventListener("error",o,{once:!0}),document.head.appendChild(s)}))}async function l(t,e){if(!e)return null;let r=await o(s(t,e),8e3,!1),n=window.grecaptcha;return(r||(a=null),r&&n&&await o(new Promise(t=>n.ready(()=>t(!0))),5e3,!1))?n:null}function u(t,e){return!!t&&"object"==typeof t&&(!!("string"==typeof t.message&&t.message.includes(e))||Array.isArray(t.errors)&&t.errors.some(t=>"string"==typeof t?.message&&t.message.includes(e)))}t.s(["useRecaptcha",0,function(){let{siteKey:t,v2SiteKey:i,domain:a}=(0,r.useRecaptchaConfig)();(0,e.useEffect)(()=>{t&&s(a,t)},[a,t]);let u=(0,e.useCallback)(async e=>{if(!t)return null;try{let r=await l(a,t);if(!r)return null;let n=await o(r.execute(t,{action:e}),5e3,null);return"string"==typeof n&&n.length>0?n:null}catch(t){return(0,n.reportClientError)(t,"manual"),null}},[a,t]);return{configured:t.length>0,challengeAvailable:i.length>0,execute:u}},"waitForGrecaptcha",0,l],426483),t.s(["RECAPTCHA_ACTIONS",0,{login:"login",loginCode:"login_code",forgotPassword:"forgot_password",register:"register",registerResend:"register_resend",verifyCertificate:"verify_certificate",formSubmit:"form_submit"},"RECAPTCHA_CHALLENGE_TEXT",0,"ÐодÑвеÑди, ÑÑо ÑÑ Ð½Ðµ ÑобоÑ, и Ð¼Ñ Ð¿Ñодолжим.","RECAPTCHA_FAILED_TEXT",0,"ÐÑовеÑка безопаÑноÑÑи не пÑойдена. ÐопÑобÑй еÑÑ Ñаз или напиÑи в поддеÑжкÑ.","isRecaptchaChallenge",0,function(t,e){return 403===t&&u(e,"recaptcha_challenge_required")},"isRecaptchaRefusal",0,function(t,e){return 403===t&&u(e,"recaptcha_failed")}],651187)},899480,(t,e,r)=>{var n={675:function(t,e){"use strict";e.byteLength=function(t){var e=l(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,o=l(t),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],u[c++]=e>>16&255,u[c++]=e>>8&255,u[c++]=255&e;return 2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[c++]=255&e),1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e),u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(function(t,e,n){for(var i,o=[],a=e;a<n;a+=3)i=(t[a]<<16&0xff0000)+(t[a+1]<<8&65280)+(255&t[a+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(t,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&o.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),o.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function l(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(t,e,r){"use strict";var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return c(t)}return l(t,e,r)}function l(t,e,r){if("string"==typeof t){var n=t,i=e;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|d(n,i),l=a(o),u=l.write(n,i);return u!==o&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(t))return f(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);
vendor: 17,814 bytes, line 1
1if(S(t,ArrayBuffer)||t&&S(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(S(t,SharedArrayBuffer)||t&&S(t.buffer,SharedArrayBuffer)))return function(t,e,r){var n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),s.prototype),n}(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var c=t.valueOf&&t.valueOf();if(null!=c&&c!==t)return s.from(c,e,r);var p=function(t){if(s.isBuffer(t)){var e=0|h(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?a(0):f(t):"Buffer"===t.type&&Array.isArray(t.data)?f(t.data):void 0}(t);if(p)return p;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function c(t){return u(t),a(t<0?0:0|h(t))}function f(t){for(var e=t.length<0?0:0|h(t.length),r=a(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}e.Buffer=s,e.SlowBuffer=function(t){return+t!=t&&(t=0),s.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),!s.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,r){return l(t,e,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,r){return(u(t),t<=0)?a(t):void 0!==e?"string"==typeof r?a(t).fill(e,r):a(t).fill(e):a(t)},s.allocUnsafe=function(t){return c(t)},s.allocUnsafeSlow=function(t){return c(t)};function h(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function d(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||S(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return A(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return N(t).length;default:if(i)return n?-1:A(t).length;e=(""+e).toLowerCase(),i=!0}}function p(t,e,r){var i,o,a,s=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=B[t[o]];return i}(this,e,r);case"utf8":case"utf-8":return y(this,e,r);case"ascii":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":return i=this,o=e,a=r,0===o&&a===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,e,r);default:if(s)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),s=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,i){var o;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(i)return -1;else r=t.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:x(t,e,r,n,i);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return x(t,[e],r,n,i)}throw TypeError("val must be string, number or Buffer")}function x(t,e,r,n,i){var o,a=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=r;o<s;o++)if(u(t,o)===u(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else -1!==c&&(o-=o-c),c=-1}else for(r+l>s&&(r=s-l),o=r;o>=0;o--){for(var f=!0,h=0;h<l;h++)if(u(t,o+h)!==u(e,h)){f=!1;break}if(f)return o}return -1}s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(S(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),S(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:+(n<r)},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,n=s.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(S(o,Uint8Array)&&(o=s.from(o)),!s.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},s.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?y(this,0,t):p.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(t,e,r,n,i){if(S(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,a=r-e,l=Math.min(o,a),u=this.slice(n,i),c=t.slice(e,r),f=0;f<l;++f)if(u[f]!==c[f]){o=u[f],a=c[f];break}return o<a?-1:+(a<o)},s.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)};function y(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,l,u=t[i],c=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=r)switch(f){case 1:u<128&&(c=u);break;case 2:(192&(o=t[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=t[i+1],a=t[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=f}var h=n,d=h.length;if(d<=4096)return String.fromCharCode.apply(String,h);for(var p="",g=0;g<d;)p+=String.fromCharCode.apply(String,h.slice(g,g+=4096));return p}function b(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function v(t,e,r,n,i,o){if(!s.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function w(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function j(t,e,r,n,o){return e*=1,r>>>=0,o||w(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function E(t,e,r,n,o){return e*=1,r>>>=0,o||w(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}s.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,f,h=this.length-e;if((void 0===r||r>h)&&(r=h),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var d=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s,l=parseInt(e.substr(2*a,2),16);if((s=l)!=s)break;t[r+a]=l}return a}(this,t,e,r);case"utf8":case"utf-8":return i=e,o=r,T(A(t,this.length-i),this,i,o);case"ascii":return a=e,s=r,T(C(t),this,a,s);case"latin1":case"binary":return function(t,e,r,n){return T(C(e),t,r,n)}(this,t,e,r);case"base64":return l=e,u=r,T(N(t),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=e,f=r,T(function(t,e){for(var r,n,i=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,this.length-c),this,c,f);default:if(d)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},s.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},s.prototype.readUInt8=function(t,e){return t>>>=0,e||b(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},s.prototype.readInt8=function(t,e){return(t>>>=0,e||b(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||b(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||b(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||b(t,4,this.length),i.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||b(t,4,this.length),i.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||b(t,8,this.length),i.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||b(t,8,this.length),i.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;v(this,t,e,r,i,0)}var o=1,a=0;for(this[e]=255&t;++a<r&&(o*=256);)this[e+a]=t/o&255;return e+r},s.prototype.writeUIntBE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;v(this,t,e,r,i,0)}var o=r-1,a=1;for(this[e+o]=255&t;--o>=0&&(a*=256);)this[e+o]=t/a&255;return e+r},s.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);v(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);v(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,r){return j(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return j(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return E(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return E(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var o=i-1;o>=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},s.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var i,o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var a=s.isBuffer(t)?t:s.from(t,n),l=a.length;
1if(0===l)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=a[i%l]}return this};var k=/[^+/0-9A-Za-z-_]/g;function A(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function C(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function N(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(k,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function T(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function S(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var B=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},783:function(t,e){e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,u=l>>1,c=-7,f=r?i-1:0,h=r?-1:1,d=t[e+f];for(f+=h,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+t[e+f],f+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+t[e+f],f+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=u}return(d?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,f=c>>1,h=5960464477539062e-23*(23===i),d=n?0:o-1,p=n?1:-1,g=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(s=+!!isNaN(e),a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+f>=1?e+=h/l:e+=h*Math.pow(2,1-f),e*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(e*l-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[r+d]=255&a,d+=p,a/=256,u-=8);t[r+d-p]|=128*g}}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}},a=!0;try{n[t](r,r.exports,o),a=!1}finally{a&&delete i[t]}return r.exports}o.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/buffer/",e.exports=o(72)},474333,454348,t=>{"use strict";var e=t.i(23387),r=t.i(509438);let n={sm:"gap-2 px-4 py-3 text-[14px]",md:"gap-2 px-4 py-4 text-[15px]",lg:"gap-2.5 p-5 text-[14px]"};t.s(["Callout",0,function({icon:t=r.Info,tone:i="info",ink:o="soft",tint:a="soft",align:s="start",size:l="sm",className:u="",children:c}){let f="danger"===i?"bg-danger-tint text-danger-text":`${"wash"===a?"bg-primary-wash":"bg-primary-tint-soft"} ${"strong"===o?"text-ink":"text-ink-2"}`;return(0,e.jsxs)("div",{className:`flex rounded-control leading-[18px] ${n[l]} ${"start"===s?"items-start":"items-center"} ${f} ${u}`,children:[t&&(0,e.jsx)(t,{size:20,strokeWidth:1.5,className:`shrink-0 ${"danger"===i?"text-danger":"text-primary"} ${"start"===s?"-mt-px":""}`}),(0,e.jsx)("span",{className:"min-w-0",children:c})]})}],454348),t.s([],474333)},396902,t=>{"use strict";var e=t.i(23387),r=t.i(700360),n=t.i(506739);let i="min(300px, calc(100vw - 16px))",o=(t,e,r)=>Math.max(e,Math.min(r,t)),a={top:"bottom",bottom:"top",right:"left",left:"right"},s={top:"top-full -mt-px border-x-[6px] border-t-[6px] border-x-transparent border-t-[#1d1d1f]",bottom:"bottom-full -mb-px border-x-[6px] border-b-[6px] border-x-transparent border-b-[#1d1d1f]",right:"right-full -mr-px border-y-[6px] border-r-[6px] border-y-transparent border-r-[#1d1d1f]",left:"left-full -ml-px border-y-[6px] border-l-[6px] border-y-transparent border-l-[#1d1d1f]"};function l({pos:t,placement:u="top",children:c}){var f,h;let d,p,g,m,x,y,b,v,w=(0,r.useRef)(null),[j,E]=(0,r.useState)(null);(0,r.useLayoutEffect)(()=>{let t=w.current;if(!t)return;let e=t.getBoundingClientRect();E(t=>t&&t.w===e.width&&t.h===e.height?t:{w:e.width,h:e.height})},[t.left,t.top,t.right,t.bottom,c]);let k=j&&(f=j.w,h=j.h,d=document.documentElement.clientWidth,p=document.documentElement.clientHeight,y=o((x="top"===(m=!(g={top:t.top-8-h>=8,bottom:t.bottom+8+h<=p-8,left:t.left-8-f>=8,right:t.right+8+f<=d-8})[u]&&g[a[u]]?a[u]:u)||"bottom"===m)?(t.left+t.right)/2-f/2:"right"===m?t.right+8:t.left-8-f,8,Math.max(8,d-8-f)),b=o(x?"top"===m?t.top-8-h:t.bottom+8:(t.top+t.bottom)/2-h/2,8,Math.max(8,p-8-h)),v=x?o((t.left+t.right)/2-y,14,Math.max(14,f-14)):o((t.top+t.bottom)/2-b,14,Math.max(14,h-14)),{side:m,left:y,top:b,arrow:v,vertical:x});return(0,n.createPortal)((0,e.jsx)("div",{ref:w,className:"cabinet-type pointer-events-none fixed z-[140] w-max",style:k?{maxWidth:i,left:k.left,top:k.top}:{maxWidth:i,left:0,top:0,opacity:0}
1,children:(0,e.jsxs)("div",{className:"relative rounded-control bg-[#1d1d1f] px-3.5 py-2 text-center text-[14px] font-medium leading-snug text-white shadow-[0_8px_24px_rgba(0,0,0,0.24)]",children:[c,k&&(0,e.jsx)("span",{className:`absolute h-0 w-0 ${s[k.side]}`,style:k.vertical?{left:k.arrow,transform:"translateX(-50%)"}:{top:k.arrow,transform:"translateY(-50%)"}})]})}),document.body)}function u({content:t,children:n,className:i="",placement:o="top",disabled:a=!1}){let s=(0,r.useRef)(null),[c,f]=(0,r.useState)(null),[h,d]=(0,r.useState)(!1),p=()=>{if(a)return;let t=s.current?.getBoundingClientRect();t&&f({left:t.left,top:t.top,right:t.right,bottom:t.bottom})},g=()=>{f(null),d(!1)};return(0,r.useEffect)(()=>{if(!h)return;let t=t=>{"pointerdown"===t.type&&s.current?.contains(t.target)||(f(null),d(!1))};return document.addEventListener("pointerdown",t,!0),window.addEventListener("scroll",t,!0),()=>{document.removeEventListener("pointerdown",t,!0),window.removeEventListener("scroll",t,!0)}},[h]),(0,e.jsxs)("span",{ref:s,onPointerEnter:t=>{"touch"!==t.pointerType&&p()},onPointerLeave:t=>{"touch"!==t.pointerType&&g()},onPointerUp:t=>{if("touch"===t.pointerType){if(h)return void g();p(),d(!0)}},className:`inline-flex ${i}`,children:[n,c&&!a&&(0,e.jsx)(l,{pos:c,placement:o,children:t})]})}t.s(["HeaderHint",0,function({label:t,hint:r}){return(0,e.jsx)(u,{content:r,placement:"bottom",children:(0,e.jsx)("span",{children:t})})},"Tooltip",0,u,"TruncText",0,function({title:t,children:n,className:i=""}){let o=(0,r.useRef)(null),[a,s]=(0,r.useState)(null);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{ref:o,onMouseEnter:()=>{let t=o.current;if(!t||t.scrollWidth<=t.clientWidth+1)return;let e=t.getBoundingClientRect();s({left:e.left,top:e.top,right:e.right,bottom:e.bottom})},onMouseLeave:()=>s(null),className:`block truncate ${i}`,children:n??t}),a&&(0,e.jsx)(l,{pos:a,children:t})]})}])},539332,t=>{"use strict";t.i(396902),t.s([])},82318,503202,t=>{"use strict";var e=t.i(23387),r=t.i(774563);let n=(0,r.default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);t.s(["Eye",0,n],503202);let i=(0,r.default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);var o=t.i(700360);t.s(["Input",0,function({size:t="md",error:r=!1,className:a="",type:s="text",...l}){let[u,c]=(0,o.useState)(!1),f="password"===s,h=String(l.value??"").trim().length>0?"font-medium":"",d=(0,e.jsx)("input",{...l,type:f&&u?"text":s,className:`w-full rounded-control border bg-surface-1 text-[16px] text-ink transition-colors placeholder:font-normal placeholder:text-ink-3 disabled:opacity-45 ${"sm"===t?"h-9 px-3":"lg"===t?"h-12 px-4":"h-11 px-3.5"} ${r?"border-danger":"border-line-strong focus:border-primary-border"} ${h} ${f?"pr-10":""} ${a}`});return f?(0,e.jsxs)("span",{className:"relative block",children:[d,(0,e.jsx)("button",{type:"button",onClick:()=>c(t=>!t),"aria-label":u?"СкÑÑÑÑ Ð¿Ð°ÑолÑ":"ÐоказаÑÑ Ð¿Ð°ÑолÑ",className:"absolute right-1.5 top-1/2 flex h-8 w-8 -translate-y-1/2 items-center justify-center rounded-badge text-ink-3 transition-colors hover:bg-neutral-tint hover:text-ink",children:u?(0,e.jsx)(i,{size:15,strokeWidth:1.5}):(0,e.jsx)(n,{size:15,strokeWidth:1.5})})]}):d},"Textarea",0,function({error:t=!1,className:r="",...n}){return(0,e.jsx)("textarea",{...n,className:`w-full rounded-control border bg-surface-1 px-3.5 py-2.5 text-[16px] leading-6 text-ink transition-colors placeholder:text-ink-3 disabled:opacity-45 ${t?"border-danger":"border-line-strong focus:border-primary-border"} ${r}`})}],82318)},295324,t=>{"use strict";t.i(82318),t.s([])},864059,t=>{"use strict";let e=(0,t.i(774563).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
1],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);t.s(["X",0,e],864059)},129238,t=>{"use strict";let e=(0,t.i(774563).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);t.s(["ArrowLeft",0,e],129238)},937914,443630,t=>{"use strict";let e=(...t)=>t.filter((t,e,r)=>!!t&&""!==t.trim()&&r.indexOf(t)===e).join(" ").trim();t.s(["mergeClasses",0,e],937914);var r=t.i(700360),n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,r.createContext)({}),o=(0,r.forwardRef)(({color:t,size:o,strokeWidth:a,absoluteStrokeWidth:s,className:l="",children:u,iconNode:c,...f},h)=>{let{size:d=24,strokeWidth:p=2,absoluteStrokeWidth:g=!1,color:m="currentColor",className:x=""}=(0,r.useContext)(i)??{},y=s??g?24*Number(a??p)/Number(o??d):a??p;return(0,r.createElement)("svg",{ref:h,...n,width:o??d??n.width,height:o??d??n.height,stroke:t??m,strokeWidth:y,className:e("lucide",x,l),...!u&&!(t=>{for(let e in t)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0;return!1})(f)&&{"aria-hidden":"true"},...f},[...c.map(([t,e])=>(0,r.createElement)(t,e)),...Array.isArray(u)?u:[u]])});t.s(["default",0,o],443630)},774563,t=>{"use strict";var e=t.i(700360),r=t.i(937914);let n=t=>{let e=t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,r)=>r?r.toUpperCase():e.toLowerCase());return e.charAt(0).toUpperCase()+e.slice(1)};var i=t.i(443630);t.s(["default",0,(t,o)=>{let a=(0,e.forwardRef)(({className:a,...s},l)=>(0,e.createElement)(i.default,{ref:l,iconNode:o,className:(0,r.mergeClasses)(`lucide-${n(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,a),...s}));return a.displayName=n(t),a}],774563)},529296,t=>{"use strict";var e=t.i(23387),r=t.i(841076);let n={primary:"text-[var(--on-primary)] bg-primary [background-image:var(--grad-primary)] hover:bg-primary-hover hover:[background-image:none] active:bg-primary-active active:[background-image:none]",secondary:"border border-line-strong bg-surface-1 text-ink hover:bg-surface-0 active:bg-neutral-tint",ghost:"text-ink-2 hover:bg-neutral-tint hover:text-ink","ghost-ink":"text-ink hover:bg-neutral-tint","ghost-quiet":"text-ink-3 hover:bg-neutral-tint hover:text-ink-2",danger:"border border-[#F3C8C8] bg-danger-tint text-danger-text hover:brightness-[0.98]",linkedin:"bg-[#0a66c2] text-white hover:bg-[#004182] active:bg-[#004182]","danger-solid":"bg-danger text-white hover:brightness-[0.94] active:brightness-[0.90]"},i={xs:"h-[34px] px-3.5 text-[15px] gap-1.5","xs-fine":"h-[34px] px-3.5 text-[14px] gap-1.5",sm:"h-9 px-3.5 text-[15px] gap-1.5","sm-tall":"h-11 px-3.5 text-[15px] gap-1.5","sm-xtall":"h-[50px] px-3.5 text-[15px] gap-2.5",md:"h-11 px-5 text-[16px] gap-2",lg:"h-12 px-6 text-[16px] gap-2","lg-stack":"min-h-[60
1px] px-5 py-2.5 text-[16px] gap-4",icon:"h-11 w-11 p-0"},o=(t,e,r)=>`inline-flex items-center justify-center rounded-control font-medium transition-[color,background-color,border-color,transform] duration-[var(--dur-fast)] active:scale-[0.97] disabled:cursor-not-allowed disabled:opacity-45 disabled:active:scale-100 ${n[t]} ${i[e]} ${r}`,a={"data-btn":""};t.s(["Button",0,function({variant:t="secondary",size:r="md",className:n="",type:i="button",...s}){return(0,e.jsx)("button",{type:i,...a,className:o(t,r,n),...s})},"ButtonFace",0,function({variant:t="secondary",size:r="md",className:n="",children:i}){return(0,e.jsx)("span",{...a,className:o(t,r,n),children:i})},"ButtonLink",0,function({variant:t="secondary",size:n="md",className:i="",href:s,external:l=!1,children:u,...c}){let f=o(t,n,i);return l?(0,e.jsx)("a",{href:s,target:"_blank",rel:"noreferrer noopener",...a,className:f,...c,children:u}):(0,e.jsx)(r.default,{href:s,...a,className:f,...c,children:u})}])},728644,t=>{"use strict";t.i(529296),t.s([])},331251,t=>{"use strict";let e=(0,t.i(774563).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);t.s(["Check",0,e],331251)},327210,t=>{"use strict";var e=t.i(700360);let r=t=>{let e,r=new Set,n=(t,n)=>{let i="function"==typeof t?t(e):t;if(!Object.is(i,e)){let t=e;e=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},e,i),r.forEach(r=>r(e,t))}},i=()=>e,o={setState:n,getState:i,getInitialState:()=>a,subscribe:t=>(r.add(t),()=>r.delete(t))},a=e=t(n,i,o);return o},n=t=>{let n=t?r(t):r,i=t=>(function(t,r=t=>t){let n=e.default.useSyncExternalStore(t.subscribe,e.default.useCallback(()=>r(t.getState()),[t,r]),e.default.useCallback(()=>r(t.getInitialState()),[t,r]));return e.default.useDebugValue(n),n})(n,t);return Object.assign(i,n),i};t.s(["create",0,t=>t?n(t):n],327210)},364203,t=>{"use strict";let e=(0,t.i(327210).create)((t,e)=>({message:null,actions:[],duration:5e3,token:0,show:(r,n)=>t({message:r,actions:n?.actions??[],duration:n?.duration??5e3,token:e().token+1}),hide:()=>t({message:null,actions:[]})}));t.s(["toast",0,function(t,r){e.getState().show(t,r)},"useToast",0,e])},364231,t=>{"use strict";var e=t.i(23387),r=t.i(331251),n=t.i(700360),i=t.i(506739),o=t.i(364203);t.s(["ToastHost",0,function(){let t=(0,o.useToast)(t=>t.message),a=(0,o.useToast)(t=>t.actions),s=(0,o.useToast)(t=>t.duration),l=(0,o.useToast)(t=>t.token),u=(0,o.useToast)(t=>t.hide);return((0,n.useEffect)(()=>{if(!t)return;let e=setTimeout(u,s);return()=>clearTimeout(e)},[t,l,s,u]),t)?(0,i.createPortal)((0,e.jsx)("div",{className:"cabinet-type fixed bottom-6 left-1/2 z-[150] -translate-x-1/2 px-4",children:(0,e.jsxs)("div",{className:"toast-enter flex items-center gap-3 rounded-full bg-[#1d1d1f] py-2 pl-4 pr-2 text-white shadow-[0_12px_32px_rgba(0,0,0,0.3)]",children:[(0,e.jsx)(r.Check,{size:16,className:"shrink-0 text-[#3ddc84]"}),(0,e.jsx)("span",{className:"whitespace-nowrap text-[14px] font-medium",children:t}),a.length>0&&(0,e.jsx)("span",{className:"flex items-center gap-3 border-l border-white/20 pl-3",children:a.map(t=>(0,e.jsx)("button",{type:"button",onClick:()=>{t.onClick(),u()},className:"whitespace-nowrap text-[14px] font-semibold text-[#9db9ff] transition-colors hover:text-white",children:t.label},t.label))}),(0,e.jsx)("button",{type:"button",onClick:u,"aria-label":"ÐакÑÑÑÑ Ñведомление",className:"block h-7 w-7 shrink-0 text-white/70 transition-colors hover:text-white",children:(0,e.jsxs)("svg",{viewBox:"0 0 28 28",width:"28",height:"28",className:"block",children:[(0,e.jsxs)("g",{transform:"rotate(-90 14 14)",children:[(0,e.jsx)("circle",{cx:"14",cy:"14",r:"11",fill:"none",stroke:"rgba(255,255,255,0.18)",strokeWidth:"2"}),(0,e.jsx)("circle",{cx:"14",cy:"14",r:"11",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"toast-ring",style:{animationDuration:`${s}ms`}})]}),(0,e.jsx)("path",{d:"M10.6 10.6 L17.4 17.4 M17.4 10.6 L10.6 17.4",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round"})]})})]})},l),document.body):null}])},509438,t=>{"use strict";let e=(0,t.i(774563).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);t.s(["Info",0,e],509438)},541867,892071,t=>{"use strict";var e=t.i(23387),r=t.i(509438);t.i(539332);var n=t.i(396902);t.s(["FormField",0,function({label:t,hint:i,tip:o,error:a,required:s=!1,htmlFor:l,children:u,className:c=""}){return(0,e.jsxs)("div",{className:`flex flex-col gap-1.5 ${c}`,children:[t&&(0,e.jsxs)("label",{htmlFor:l,className:`text-[14px] text-ink-2 ${o?"flex items-center gap-1.5":""}`,children:[(0,e.jsxs)("span",{children:[t,s&&(0,e.jsx)("span",{className:"text-danger",children:" *"})]}),o&&(0,e.jsx)(n.Tooltip,{content:o,children:(0,e.jsx)(r.Info,{size:15,strokeWidth:1.75,className:"shrink-0 text-ink-3","aria-hidden":"true"})})]}),u,a?(0,e.jsx)("p",{className:"text-[14px] text-danger-text",children:a}):i&&(0,e.jsx)("p",{className:"text-[14px] text-ink-3",children:i})]})}],892071),t.s([],541867)},517890,t=>{"use strict";let e=(0,t.i(327210).create)()(t=>({back:null,setBack:e=>t({back:e})}));t.s(["useAuthTopBar",0,e])},311995,378780,t=>{"use strict";var e=t.i(23387),r=t.i(864059);t.i(728644);var n=t.i(529296);t.s(["AuthClose",0,function({href:t,label:i,className:o=""}){return(0,e.jsx)(n.ButtonLink,{variant:"ghost-quiet",size:"icon",href:t,"aria-label":i,className:o,children:(0,e.jsx)(r.X,{size:18,strokeWidth:1.5})})}],378780),t.s([],311995)},88004,t=>{"use strict";var e=t.i(23387),r=t.i(129238),n=t.i(517890);t.i(728644);var i=t.i(529296);t.i(311995);var o=t.i(378780);t.s(["AuthTopBar",0,function({siteHref:t}){let a=(0,n.useAuthTopBar)(t=>t.back);return(0,e.jsxs)(e.Fragment,{children:[a&&(0,e.jsxs)(i.Button,{variant:"ghost-ink",size:"sm",onClick:a,className:"max-lg:hidden lg:absolute lg:left-5 lg:top-5",children:[(0,e.jsx)(r.ArrowLeft,{size:16}),"Ðазад"]}),(0,e.jsx)(o.AuthClose,{href:t,label:"ÐеÑнÑÑÑÑÑ Ð½Ð° ÑайÑ",className:"max-lg:hidden lg:absolute lg:right-5 lg:top-5"})]})}])},680937,975542,993506,t=>{"use strict";let e=/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;t.s(["isValidEmail",0,function(t){return e.test(t.trim())},"validateFullName",0,function(t){let e=t.trim();return e?e.length>100?"СлиÑком длинно â до 100 Ñимволов":!function(t){let e=t.trim().split(/\s+/).filter(
1Boolean);if(e.length<2)return null;let[r,...n]=e;return{firstName:r,lastName:n.join(" ")}}(e)?"ÐÐ¾Ð±Ð°Ð²Ñ ÑÐ°Ð¼Ð¸Ð»Ð¸Ñ â она нÑжна Ð´Ð»Ñ ÑеÑÑиÑикаÑа":null:"Ðведи Ð¸Ð¼Ñ Ð¸ ÑамилиÑ"}],680937);var r=t.i(23387),n=t.i(841076);t.i(212332),t.i(364231),t.i(311995),t.i(88004),t.s(["AuthCard",0,function({title:t,subtitle:e,subtitleGap:i="tight",align:o="left",above:a,children:s,footer:l,style:u}){return(0,r.jsxs)("div",{className:"w-full max-w-[540px]",style:u,children:[(0,r.jsx)("div",{className:"mb-6 flex flex-col items-center gap-3 text-center max-lg:hidden",children:(0,r.jsx)(n.default,{href:"/",className:"flex items-center",children:(0,r.jsx)("img",{src:"/img/nexfield-wordmark.svg",alt:"Nexfield Academy",className:"h-7 w-auto"})})}),(0,r.jsxs)("div",{className:`rounded-[14px] border border-[#eef1f6] bg-surface-1 p-10 shadow-soft-md max-lg:p-6 ${"center"===o?"text-center":""}`,children:[a,(0,r.jsx)("h1",{className:"text-[26px] font-semibold leading-[33px] max-lg:text-[24px] max-lg:leading-[27px]",children:t}),e&&(0,r.jsx)("p",{className:`${"loose"===i?"mt-3":"mt-1"} text-[16px] text-ink-2 max-lg:text-[15px]`,children:e}),(0,r.jsx)("div",{className:"mt-7 max-lg:mt-6",children:s})]}),l&&(0,r.jsx)("div",{className:"mt-4 text-center text-[15px] text-ink-2",children:l})]})}],975542),t.s([],993506)},583780,t=>{"use strict";var e=t.i(23387),r=t.i(700360),n=t.i(426483),i=t.i(135256),o=t.i(651187),a=t.i(623541);t.s(["RecaptchaChallenge",0,function({onSolved:t,onUnavailable:s}){let{siteKey:l,v2SiteKey:u,domain:c}=(0,i.useRecaptchaConfig)(),f=(0,r.useRef)(null),h=(0,r.useRef)(!1),[d,p]=(0,r.useState)(!1),g=(0,r.useRef)(t),m=(0,r.useRef)(s);return((0,r.useEffect)(()=>{g.current=t,m.current=s},[t,s]),(0,r.useEffect)(()=>{let t=!1;return async function(){if(h.current||!f.current)return;let e=await (0,n.waitForGrecaptcha)(c,l||u);if(!t&&f.current){if(!e||!u){p(!0),m.current?.();return}try{e.render(f.current,{sitekey:u,callback:t=>g.current(t),"expired-callback":()=>{},"error-callback":()=>{p(!0),m.current?.()}}),h.current=!0}catch(t){(0,a.reportClientError)(t,"manual"),p(!0),m.current?.()}}}(),()=>{t=!0}},[c,l,u]),d)?null:(0,e.jsxs)("div",{className:"recaptcha-challenge",children:[(0,e.jsx)("div",{className:"recaptcha-challenge-text",children:o.RECAPTCHA_CHALLENGE_TEXT}),(0,e.jsx)("div",{ref:f})]})}])},922017,t=>{"use strict";let e=(0,t.i(774563).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);t.s(["default",0,e])},883820,t=>{"use strict";var e=t.i(922017);t.s(["CircleAlert",()=>e.default])},792040,265837,t=>{"use strict";var e=t.i(23387);t.s(["Divider",0,function({className:t=""}){return(0,e.jsx)("hr",{className:`border-0 border-t border-line ${t}`})},"DividerNote",0,function({className:t="",children:r}){return(0,e.jsxs)("div",{className:`flex items-center gap-3 text-[13px] text-ink-3 ${t}`,children:[(0,e.jsx)("span",{className:"h-px flex-1 bg-line"}),(0,e.jsx)("span",{className:"text-center",children:r}),(0,e.jsx)("span",{className:"h-px flex-1 bg-line"})]})}],265837),t.s([],792040)},786130,833198,870435,134721,75017,178270,256767,323839,5026,260326,t=>{"use strict";var e=t.i(212332);t.s(["sanitizeRedirect",0,function(t,r="/my-courses",n=e.SITE_BASE_URL){return"string"!=typeof t||t.startsWith("//")?r:t.startsWith("/")?t:!function(t,r=e.SITE_BASE_URL){if(!r)return!1;try{let e=new URL(t);if("http:"!==e.protocol&&"https:"!==e.protocol)return!1;return e.origin===new URL(r).origin}catch{return!1}}(t,n)?r:t}],786130);let r=/^[\w-]{1,100}$/;function n(t){return`/my-courses/${encodeURIComponent(t)}?enroll=1`}t.s(["courseEnrollPath",0,n,"courseEntryTarget",0,function(t,e,i="/my-courses"){let o=function(t){if("string"!=typeof t)return null;let e=t.trim();return r.test(e)?e:null}(e);return o&&t===i?n(o):t}],833198);var i=t.i(23387),o=t.i(883820);function a({className:t="",...e}){return(0,i.jsx)("form",{className:`flex flex-col gap-4 max-lg:gap-3 ${t}`,...e})}function s({children:t}){return(0,i.jsxs)("p",{className:"flex items-center justify-center gap-2 rounded-control bg-danger-tint px-4 py-3 text-[15px] leading-5 text-danger-text",children:[(0,i.jsx)(o.CircleAlert,{size:17,strokeWidth:1.5,className:"shrink-0"}),t]})}t.s(["AuthError",0,s,"AuthForm",0,a],870435),t.s([],134721);var l=t.i(841076);t.i(474333);var u=t.i(454348);t.s(["AuthInvite",0,function({href:t,cta:e,view:r="plain",className:n="",children:o}){let a=(0,i.jsxs)(i.Fragment,{children:[o," ",(0,i.jsx)(l.default,{href:t,className:"ml-px font-medium text-primary-text underline",children:e})]});return"plate"===r?(0,i.jsx)(u.Callout,{icon:null,size:"md",ink:"strong",className:`justify-center text-center ${n}`,children:a}):(0,i.jsx)("p",{className:`text-center text-[15px] leading-5 text-ink ${n}`,children:a})}],75017),t.s([],178270);var c=t.i(700360);t.i(728644);var f=t.i(529296);t.i(993506);var h=t.i(975542);function d({value:t,onChange:e,length:r=6,error:n=!1,disabled:o=!1}){let a=(0,c.useRef)([]);return(0,c.useEffect)(()=>
1{a.current[0]?.focus()},[]),(0,i.jsx)("div",{className:"flex justify-center gap-2.5 max-lg:gap-2",children:Array.from({length:r},(s,l)=>(0,i.jsx)("input",{ref:t=>{a.current[l]=t},inputMode:"numeric",maxLength:1,disabled:o,"aria-label":`ЦиÑÑа ${l+1}`,autoComplete:0===l?"one-time-code":"off",value:t[l]?.trim()??"",onChange:n=>{var i;let o;return i=n.target.value.replace(/\D/g,""),void((o=t.padEnd(r," ").split(""))[l]=i||" ",e(o.join("").trimEnd()),i&&l<r-1&&a.current[l+1]?.focus())},onKeyDown:e=>{"Backspace"===e.key&&!t[l]?.trim()&&l>0&&a.current[l-1]?.focus()},onPaste:t=>{let n=t.clipboardData.getData("text").replace(/\D/g,"").slice(0,r);n&&(t.preventDefault(),e(n),a.current[Math.min(n.length,r-1)]?.focus())},className:`tnum h-14 w-12 max-lg:w-11 rounded-[8px] border bg-surface-1 text-center text-[24px] font-semibold text-ink transition-colors disabled:opacity-45 ${n?"border-danger":"border-line-strong focus:border-primary-border"}`},l))})}let p=t=>String(t).padStart(2,"0");function g({size:t=18,className:e=""}){return(0,i.jsxs)("svg",{width:t,height:t,viewBox:"0 0 48 48",className:`shrink-0 ${e}`,"aria-hidden":"true",children:[(0,i.jsx)("path",{fill:"#4285F4",d:"M45.12 24.5c0-1.56-.14-3.06-.4-4.5H24v8.51h11.84c-.51 2.75-2.06 5.08-4.39 6.64v5.52h7.11c4.16-3.83 6.56-9.47 6.56-16.17Z"}),(0,i.jsx)("path",{fill:"#34A853",d:"M24 46c5.94 0 10.92-1.97 14.56-5.33l-7.11-5.52c-1.97 1.32-4.49 2.1-7.45 2.1-5.73 0-10.58-3.87-12.31-9.07H4.34v5.7A21.99 21.99 0 0 0 24 46Z"}),(0,i.jsx)("path",{fill:"#FBBC05",d:"M11.69 28.18c-.44-1.32-.69-2.73-.69-4.18s.25-2.86.69-4.18v-5.7H4.34A21.99 21.99 0 0 0 2 24c0 3.55.85 6.91 2.34 9.88l7.35-5.7Z"}),(0,i.jsx)("path",{fill:"#EA4335",d:"M24 10.75c3.23 0 6.13 1.11 8.41 3.29l6.31-6.31C34.91 4.18 29.93 2 24 2 15.4 2 7.96 6.93 4.34 14.12l7.35 5.7c1.73-5.2 6.58-9.07 12.31-9.07Z"})]})}function m({size:t=18,className:e=""}){return(0,i.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",className:`shrink-0 ${e}`,"aria-hidden":"true",children:[(0,i.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"#1877F2"}),(0,i.jsx)("path",{fill:"#fff",d:"M14.9 12.9h-2.1V20h-3v-7.1H8.2v-2.6h1.6V8.9c0-2 1.2-3.4 3.5-3.4l2.1.01v2.6h-1.4c-.75 0-1.2.36-1.2 1.1v1.06h2.4l-.3 2.6Z"})]})}t.s(["CODE_LENGTH",0,6,"CodeStep",0,function({email:t,code:e,onChange:r,error:n,onSubmit:o,submit:l="ÐодÑвеÑдиÑÑ",busyLabel:u="ÐÑовеÑÑемâ¦",above:c,children:g,style:m,busy:x=!1,secondsLeft:y,onResend:b,challenge:v}){return(0,i.jsxs)(h.AuthCard,{style:m,above:c,align:"center",subtitleGap:"loose",title:"Ðведи код из пиÑÑма",subtitle:(0,i.jsxs)(i.Fragment,{children:["ÐÑ Ð¾ÑпÑавили код подÑвеÑÐ¶Ð´ÐµÐ½Ð¸Ñ Ð½Ð° поÑÑÑ: ",(0,i.jsx)("span",{className:"font-medium text-ink",children:t})]}),children:[(0,i.jsxs)(a,{onSubmit:o,children:[(0,i.jsx)(d,{value:e,onChange:r,length:6,error:!!n,disabled:x}),n&&(0,i.jsx)(s,{children:n}),v,(0,i.jsx)("p",{className:"text-[13px] text-ink-3",children:y>0?(0,i.jsxs)(i.Fragment,{children:["ÐÑпÑавиÑÑ ÐºÐ¾Ð´ повÑоÑно можно ÑеÑез ",p(Math.floor(y/60)),":",p(y%60)]}):(0,i.jsx)("button",{type:"button",onClick:b,disabled:x,className:"font-medium text-primary-text hover:underline",children:"ÐÑпÑавиÑÑ ÐºÐ¾Ð´ еÑÑ Ñаз"})}),(0,i.jsx)(f.Button,{type:"submit",variant:"primary",className:"mt-2 h-13 w-full",disabled:x,children:x?u:l}),(0,i.jsx)("p",{className:"text-[13px] leading-5 text-ink-3",children:"Ðе забÑÐ´Ñ Ð¿ÑовеÑиÑÑ Ð¿Ð°Ð¿ÐºÐ¸ «Спам» и «ÐÑомоакÑии»."})]}),g]})},"useResendCountdown",0,function(){let[t,e]=(0,c.useState)(0),r=t>0;return(0,c.useEffect)(()=>{if(!r)return;let t=setInterval(()=>e(t=>Math.max(0,t-1)),1e3);return()=>clearInterval(t)},[r]),[t,e]}],256767),t.s([],323839),t.i(792040);var x=t.i(265837);t.s(["SocialAuth",0,function({note:t,label:e=t=>`ÐойÑи ÑеÑез ${t}`,layout:r="stack",order:n="note-first",googleAvailable:o,facebookAvailable:a,next:s,course:l}){if(!o&&!a)return null;let u=`${encodeURIComponent(s)}${l?`&course=${encodeURIComponent(l)}`:""}`,c=(0,i.jsx)(x.DividerNote,{className:"my-5",children:t}),h="row"===r?"h-11 min-w-0 flex-1":"h-11 w-full",d=(0,i.jsxs)("div",{className:`flex gap-2 ${"row"===r?"":"flex-col"}`,"data-testid":"sso-buttons",children:[o&&(0,i.jsxs)(f.ButtonLink,{className:h,href:`/api/auth/google/start?next=${u}`,rel:"nofollow",children:[(0,i.jsx)(g,{size:20}),e("Google")]}),a&&(0,i.jsxs)(f.ButtonLink,{className:h,href:`/api/auth/facebook/start?next=${u}`,rel:"nofollow",children:[(0,i.jsx)(m,{size:20}),e("Facebook")]})]});return"buttons-first"===n?(0,i.jsxs)(i.Fragment,{children:[d,c]}):(0,i.jsxs)(i.Fragment,{children:[c,d]})}],5026),t.s([],260326)},191131,t=>{"use strict";var e=t.i(23387),r=t.i(700360),n=t.i(786130),i=t.i(833198),o=t.i(3898),a=t.i(680937),s=t.i(426483),l=t.i(583780),u=t.i(651187),c=t.i(517890);t.i(993506);var f=t.i(975542);t.i(134721);var h=t.i(870435);t.i(178270);var d=t.i(75017);t.i(323839);var p=t.i(256767);t.i(260326);var g=t.i(5026);t.i(728644);var m=t.i(529296);t.i(792040);var x=t.i(265837);t.i(541867);var y=t.i(892071);t.i(295324);var b=t.i(82318);t.s(["LoginFlow",0,function({redirectTo:t,courseSlug:v,title:w,ssoErrorMessage:j,googleAvailable:E,facebookAvailable:k,style:A}){let[C,N]=(0,r.useState)("email"),[T,S]=(0,r.useState)(""),[B,R]=(0,r.useState)(null),[L,I]=(0,r.useState)(!1),U=(0,s.useRecaptcha)(),[$,M]=(0,r.useState)(null),[_,O]=(0,r.useState)(""),[P,F]=(0,p.useResendCountdown)(),[z,D]=(0,r.useState)(""),[H,W]=(0,r.useState)(!1),[X,V]=(0,r.useState)(""),G=(0,r.useRef)(""),[q,Z]=(0,r.useState)(null),[Y,J]=(0,r.useState)(null),[K,Q]=(0,r.useState)(()=>Date.now()),[tt,te]=(0,r.useTransition)(),tr=(0,c.useAuthTopBar)(t=>t.setBack);function tn(t){R(null),M(null),N(t)}(0,r.useEffect)(()=>(tr("email"===C?null:()=>tn("password"===C?"code":"email")),()=>tr(null)),[C,tr]),(0,r.useEffect)(()=>
1{if(null===Y)return;let t=setInterval(()=>{let t=Date.now();Q(t),t>=Y&&(J(null),R(null))},1e3);return()=>clearInterval(t)},[Y]);let ti=(0,i.courseEntryTarget)((0,n.sanitizeRedirect)(t),v);async function to(t){R(null),I(!0);try{let e=await U.execute(u.RECAPTCHA_ACTIONS.loginCode),r=await fetch("/api/auth/login/start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:T,...e?{recaptchaToken:e}:{},...t?{recaptchaV2Token:t}:{}})}),n=await r.json();if("challenge"===n.recaptcha)return void M("send");n.ok?(F(n.cooldownSec??180),O(""),"code"!==C&&tn("code")):"number"==typeof n.secondsLeft?(F(n.secondsLeft),"code"!==C&&tn("code")):R(n.message??"ЧÑо-Ñо поÑло не Ñак")}catch{R("ЧÑо-Ñо поÑло не Ñак, попÑобÑйÑе ввеÑÑи даннÑе еÑе Ñаз")}finally{I(!1)}}async function ta(t){if(t.preventDefault(),_.trim().length<p.CODE_LENGTH)return void R("Ðведи вÑе ÑеÑÑÑ ÑиÑÑ ÐºÐ¾Ð´Ð°");I(!0);try{let t=await fetch("/api/auth/login/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:T,code:_.trim()})}),e=await t.json();if(!e.ok)return void R(e.message??"ÐевеÑнÑй код. ÐÑовеÑÑ Ð¿Ð¸ÑÑмо и попÑобÑй еÑÑ Ñаз");if(e.twoFactor){let t=new URLSearchParams({twoFactor:"1"});"/my-courses"!==ti&&t.set("redirect",ti),window.location.assign(`/login?${t.toString()}`);return}window.location.assign(ti)}catch{R("ЧÑо-Ñо поÑло не Ñак, попÑобÑйÑе ввеÑÑи даннÑе еÑе Ñаз")}finally{I(!1)}}async function ts(t){try{let e=await fetch("/api/auth/lock-status",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t})}),r=await e.json();if(r?.locked&&r.lockedUntil)return J(new Date(r.lockedUntil).getTime()),Q(Date.now()),!0}catch{}return!1}function tl(t,e){let r=(e??X).trim();te(async()=>{try{let e=await U.execute(u.RECAPTCHA_ACTIONS.login),n=await fetch("/api/users/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:T.trim().toLowerCase(),password:z,...r?{totp:r}:{},...e?{recaptchaToken:e}:{},...t?{recaptchaV2Token:t}:{}})});if(!n.ok){let t=await n.json().catch(()=>null),e=(0,o.parseTwoFactorError)(t);if(e){W(!0),R(null),Z((0,o.twoFactorErrorText)(e)||null),"required"!==e.kind&&(V(""),G.current="");return}if((0,u.isRecaptchaChallenge)(n.status,t))return void M("password");if((0,u.isRecaptchaRefusal)(n.status,t))return void R(u.RECAPTCHA_FAILED_TEXT);await ts(T.trim().toLowerCase())||R("Ðогин и паÑÐ¾Ð»Ñ Ð½Ðµ ÑовпадаÑÑ");return}window.location.assign(ti)}catch{R("ЧÑо-Ñо поÑло не Ñак, попÑобÑйÑе ввеÑÑи даннÑе еÑе Ñаз")}})}let tu=null!==Y&&K<Y;function tc(t,r,n){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.DividerNote,{className:"my-5",children:"или"}),(0,e.jsx)(m.Button,{className:"h-11 w-full",onClick:r,disabled:L||tt,children:t}),n&&(0,e.jsx)("p",{className:"mt-2 text-[12px] leading-4 text-ink-3",children:n})]})}if("code"===C)return(0,e.jsx)(p.CodeStep,{style:A,email:T,code:_,onChange:t=>{O(t),R(null)},error:B,onSubmit:ta,submit:"ÐойÑи",busyLabel:"ÐÑ
одимâ¦",busy:L,secondsLeft:P,onResend:()=>void to(),challenge:"send"===$?(0,e.jsx)(l.RecaptchaChallenge,{onSolved:t=>{M(null),to(t)},onUnavailable:()=>{M(null),R(u.RECAPTCHA_FAILED_TEXT)}}):void 0,children:tc("ÐойÑи Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ Ð¿Ð°ÑолÑ",()=>tn("password"),"ÐоÑÑÑпно, еÑли ÑÑ ÑÑÑановил паÑÐ¾Ð»Ñ Ð² лиÑном кабинеÑе")});if("password"===C){let t,r,n,i,o;return(0,e.jsxs)(f.AuthCard,{style:A,align:"center",subtitleGap:"loose",title:"Ðведи Ñвой паÑолÑ",subtitle:(0,e.jsxs)(e.Fragment,{children:["Ð¢Ñ Ð²Ñ
одиÑÑ Ð² аккаÑнÑ: ",(0,e.jsx)("span",{className:"font-medium text-ink",children:T})]}),children:[(0,e.jsxs)(h.AuthForm,{onSubmit:function(t){(t.preventDefault(),R(null),J(null),z)?tl():R("Ðведи паÑолÑ")},autoComplete:"on",children:[(0,e.jsx)("input",{type:"email",name:"email",autoComplete:"username",value:T,readOnly:!0,hidden:!0}),(0,e.jsx)(b.Input,{type:"password",size:"lg","aria-label":"ÐаÑолÑ",placeholder:"ÐаÑолÑ",autoComplete:"current-password",className:"text-left",value:z,error:!!B||tu,disabled:tt,onChange:t=>{D(t.target.value),R(null)}}),H&&(0,e.jsx)(y.FormField,{label:"Ðод из пÑиложениÑ",htmlFor:"totp",error:q,hint:"Ðведи ÑеÑÑизнаÑнÑй код из пÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ Ð°ÑÑенÑиÑикаÑии. ÐоÑеÑÑл доÑÑÑп â введи лÑбой из кодов воÑÑÑановлениÑ.",className:"text-left",children:(0,e.jsx)(b.Input,{id:"totp",name:"otp",size:"lg",autoComplete:"one-time-code",inputMode:"numeric",autoFocus:!0,className:"text-left",value:X,error:!!q,disabled:tt,onChange:t=>{let e;V(t.target.value),Z(null),e=t.target.value.replace(/[\s-]/g,""),tt||!/^\d{6}$/.test(e)||G.current!==e&&(G.current=e,tl(void 0,e))}})}),tu?(0,e.jsxs)(h.AuthError,{children:["ÐккаÑÐ½Ñ Ð²Ñеменно заблокиÑован. ÐопÑобÑй ÑеÑез ",(r=Math.floor((t=Math.max(0,Math.ceil((Y-K)/1e3)))/3600),n=Math.floor(t%3600/60),i=t%60,o=t=>String(t).padStart(2,"0"),r>0?`${r}:${o(n)}:${o(i)}`:`${n}:${o(i)}`)]}):B&&(0,e.jsx)(h.AuthError,{children:B}),"password"===$&&(0,e.jsx)(l.RecaptchaChallenge,{onSolved:t=>{M(null),tl(t)},onUnavailable:()=>{M(null),R(u.RECAPTCHA_FAILED_TEXT)}}),(0,e.jsx)(m.Button,{type:"submit",variant:"primary",className:"mt-2 h-13 w-full",disabled:tt||tu,children:tt?"ÐÑ
одимâ¦":"ÐойÑи"})]}),tc("ÐойÑи Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ ÐºÐ¾Ð´Ð°",()=>tn("code"))]})}let tf=new URLSearchParams;t&&"/my-courses"!==t&&tf.set("redirect",t),v&&tf.set("course",v);let th=tf.toString(),td=E||k;return(0,e.jsxs)(f.AuthCard,{style:A,title:w,children:[j&&(0,e.jsx)("p",{role:"alert",className:"mb-4 rounded-control bg-danger-tint px-3.5 py-2.5 text-[14px] text-danger-text",children:j}),(0,e.jsx)(g.SocialAuth,{note:"или войди ÑеÑез email",label:t=>`ÐÑ
од ÑеÑез ${t}`,order:"buttons-first",googleAvailable:E,facebookAvailable:k,next:ti,course:v||void 0}),(0,e.jsxs)(h.AuthForm,{onSubmit:function(t){(t.preventDefault(),(0,a.isValidEmail)(T))?to():R("ÐÑовеÑÑ Ð°Ð´ÑÐµÑ Ð¿Ð¾ÑÑÑ")},autoComplete:"on",children:[(0,e.jsx)(y.FormField,{label:td?void 0:"Твой email",htmlFor:"email",error:B,children:(0,e.jsx)(b.Input,{id:"email",type:"email",size:"lg",placeholder:"[email protected]",autoComplete:"username","aria-label":td?"Твой email":void 0,value:T,error:!!B,disabled:L,onChange:t=>{S(t.target.value),R(null)}})}),"send"===$&&(0,e.jsx)(l.RecaptchaChallenge,{onSolved:t=>{M(null),to(t)},onUnavailable:()=>{M(null),R(u.RECAPTCHA_FAILED_TEXT)}}),(0,e.jsx)(m.Button,{type:"submit",variant:"primary",className:"mt-2 h-13 w-full",disabled:L,children:L?"ÐÑпÑавлÑем кодâ¦":"ÐÑодолжиÑÑ"})]}),(0,e.jsx)(d.AuthInvite,{href:`/register${th?`?${th}`:""}`,cta:"ÐаÑегиÑÑÑиÑÑйÑÑ",view:"plate",className:"mt-6",children:"ÐÑÑ Ð½ÐµÑ Ð°ÐºÐºÐ°ÑнÑа?"})]})}])},637648,t=>{"use strict";var e=t.i(23387),r=t.i(700360);t.i(728644);var n=t.i(529296);t.i(541867);var i=t.i(892071);t.i(295324);var o=t.i(82318);t.s(["SsoCodeStep",0,function({redirectTo:t}){let[a,s]=(0,r.useState)(""),[l,u]=(0,r.useState)(null),[c,f]=(0,r.useState)(!1);async function h(e){if(e.preventDefault(),!c){f(!0),u(null);try{let e=await fetch("/api/auth/2fa/sso-complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:a})}),r=await e.json();if(!r.ok){u(r.error??"ÐевеÑнÑй код"),s("");return}window.location.assign(t)}
1catch{u("ЧÑо-Ñо поÑло не Ñак, попÑобÑйÑе еÑÑ Ñаз")}finally{f(!1)}}}return(0,e.jsxs)("form",{onSubmit:h,noValidate:!0,className:"flex flex-col gap-4 max-lg:gap-3",children:[(0,e.jsx)(i.FormField,{label:"Ðод из пÑиложениÑ",htmlFor:"sso-totp",error:l,hint:"ÐккаÑÐ½Ñ Ð·Ð°ÑиÑÑн двÑÑ
ÑакÑоÑной аÑÑенÑиÑикаÑией. Ðведи код из пÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ â или лÑбой из кодов воÑÑÑановлениÑ.",children:(0,e.jsx)(o.Input,{id:"sso-totp",name:"otp",size:"lg",autoComplete:"one-time-code",inputMode:"numeric",autoFocus:!0,value:a,error:!!l,disabled:c,onChange:t=>{s(t.target.value),u(null)}})}),(0,e.jsx)(n.Button,{type:"submit",variant:"primary",className:"mt-2 h-13 w-full",disabled:c||!a.trim(),children:c?"ÐÑовеÑÑемâ¦":"ÐойÑи"})]})}])}]);
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.