(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{48620:(e,t)=>{},30297:e=>{function t(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}e.exports=function(e,r){r=r||{};var n,i,s=typeof e;if("string"===s&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return 864e5*r;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===s&&isFinite(e))return r.long?(n=Math.abs(e))>=864e5?t(e,n,864e5,"day"):n>=36e5?t(e,n,36e5,"hour"):n>=6e4?t(e,n,6e4,"minute"):n>=1e3?t(e,n,1e3,"second"):e+" ms":(i=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":i>=36e5?Math.round(e/36e5)+"h":i>=6e4?Math.round(e/6e4)+"m":i>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},36544:(e,t,r)=>{var n=r(34155);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e},t.useColors=function(){return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(70210)(t);let{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},70210:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,s;let o=null;function a(...e){if(!a.enabled)return;let n=Number(new Date),i=n-(r||n);a.diff=i,a.prev=r,a.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";s++;let i=t.formatters[n];if("function"==typeof i){let t=e[s];r=i.call(a,t),e.splice(s,1),s--}return r}),t.formatArgs.call(a,e),(a.log||t.log).apply(a,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,r){let n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names.map(i),...t.skips.map(i).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];let n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r<i;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(RegExp("^"+e.substr(1)+"$")):t.names.push(RegExp("^"+e+"$")))},t.enabled=function(e){let r,n;if("*"===e[e.length-1])return!0;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(30297),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},44695:(e,t,r)=>{var n=r(34155);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e},t.useColors=function(){return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(27272)(t);let{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},27272:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,s;let o=null;function a(...e){if(!a.enabled)return;let n=Number(new Date),i=n-(r||n);a.diff=i,a.prev=r,a.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";s++;let i=t.formatters[n];if("function"==typeof i){let t=e[s];r=i.call(a,t),e.splice(s,1),s--}return r}),t.formatArgs.call(a,e),(a.log||t.log).apply(a,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,r){let n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names.map(i),...t.skips.map(i).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];let n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r<i;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(RegExp("^"+e.substr(1)+"$")):t.names.push(RegExp("^"+e+"$")))},t.enabled=function(e){let r,n;if("*"===e[e.length-1])return!0;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(14856),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},14856:e=>{function t(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}e.exports=function(e,r){r=r||{};var n,i,s=typeof e;if("string"===s&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return 864e5*r;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===s&&isFinite(e))return r.long?(n=Math.abs(e))>=864e5?t(e,n,864e5,"day"):n>=36e5?t(e,n,36e5,"hour"):n>=6e4?t(e,n,6e4,"minute"):n>=1e3?t(e,n,1e3,"second"):e+" ms":(i=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":i>=36e5?Math.round(e/36e5)+"h":i>=6e4?Math.round(e/6e4)+"m":i>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},85845:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=[],t=0,r=[];return{next:function(n){if(r.length){if(t++)e.push(n);else do r.forEach(function(e){e(n)}),n=e.shift();while(--t)}},subscribe:function(e){return r=r.concat(e),{unsubscribe:function(){r=r.filter(function(t){return t!==e})}}}}}},54098:(e,t,r)=>{var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r&&r,n={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(n.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function o(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function a(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.map={},e instanceof u?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function c(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function d(e){var t=new FileReader,r=h(t);return t.readAsArrayBuffer(e),r}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(n.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(n.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;n.arrayBuffer&&n.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=c(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(d)}),this.text=function(){var e,t,r,n=c(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=h(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},n.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}u.prototype.append=function(e,t){e=o(e),t=a(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},u.prototype.delete=function(e){delete this.map[o(e)]},u.prototype.get=function(e){return e=o(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(o(e))},u.prototype.set=function(e,t){this.map[o(e)]=a(t)},u.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},u.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),l(e)},u.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),l(e)},u.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),l(e)},n.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function m(e,t){if(!(this instanceof m))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,i=(t=t||{}).body;if(e instanceof m){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new u(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),g.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var s=/([?&])_=[^&]*/;s.test(this.url)?this.url=this.url.replace(s,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function b(e,t){if(!(this instanceof b))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},p.call(m.prototype),p.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];b.redirect=function(e,t){if(-1===v.indexOf(t))throw RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function w(e,i){return new Promise(function(s,o){var l=new m(e,i);if(l.signal&&l.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function h(){c.abort()}c.onload=function(){var e,t,r={status:c.status,statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new u,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}}),t)};r.url="responseURL"in c?c.responseURL:r.headers.get("X-Request-URL");var n="response"in c?c.response:c.responseText;setTimeout(function(){s(new b(n,r))},0)},c.onerror=function(){setTimeout(function(){o(TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){o(TypeError("Network request failed"))},0)},c.onabort=function(){setTimeout(function(){o(new t.DOMException("Aborted","AbortError"))},0)},c.open(l.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(n.blob?c.responseType="blob":n.arrayBuffer&&l.headers.get("Content-Type")&&-1!==l.headers.get("Content-Type").indexOf("application/octet-stream")&&(c.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof u?l.headers.forEach(function(e,t){c.setRequestHeader(t,e)}):Object.getOwnPropertyNames(i.headers).forEach(function(e){c.setRequestHeader(e,a(i.headers[e]))}),l.signal&&(l.signal.addEventListener("abort",h),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",h)}),c.send(void 0===l._bodyInit?null:l._bodyInit)})}w.polyfill=!0,r.fetch||(r.fetch=w,r.Headers=u,r.Request=m,r.Response=b),t.Headers=u,t.Request=m,t.Response=b,t.fetch=w}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var s=n.fetch?n:i;(t=s.fetch).default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t},8679:(e,t,r)=>{"use strict";var n=r(59864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?o:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=f(r);i&&i!==p&&e(t,i,n)}var o=c(r);h&&(o=o.concat(h(r)));for(var a=l(t),g=l(r),m=0;m<o.length;++m){var y=o[m];if(!s[y]&&!(n&&n[y])&&!(g&&g[y])&&!(a&&a[y])){var b=d(r,y);try{u(t,y,b)}catch(e){}}}}return t}},62705:(e,t,r)=>{var n=r(55639).Symbol;e.exports=n},29932:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},44239:(e,t,r)=>{var n=r(62705),i=r(89607),s=r(2333),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):s(e)}},80531:(e,t,r)=>{var n=r(62705),i=r(29932),s=r(1469),o=r(33448),a=1/0,l=n?n.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return i(t,e)+"";if(o(t))return u?u.call(t):"";var r=t+"";return"0"==r&&1/t==-a?"-0":r}},31957:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},89607:(e,t,r)=>{var n=r(62705),i=Object.prototype,s=i.hasOwnProperty,o=i.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=s.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var i=o.call(e);return n&&(t?e[a]=r:delete e[a]),i}},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:(e,t,r)=>{var n=r(31957),i="object"==typeof self&&self&&self.Object===Object&&self,s=n||i||Function("return this")();e.exports=s},1469:e=>{var t=Array.isArray;e.exports=t},37005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},33448:(e,t,r)=>{var n=r(44239),i=r(37005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},7334:(e,t,r)=>{var n=r(79833);e.exports=function(e){return n(e).toLowerCase()}},79833:(e,t,r)=>{var n=r(80531);e.exports=function(e){return null==e?"":n(e)}},44343:(e,t,r)=>{e.exports=r(37171)},6840:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(1862)}])},37171:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useRouter",{enumerable:!0,get:function(){return s}});let n=r(67294),i=r(81928);function s(){return(0,n.useContext)(i.RouterContext)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},32602:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return a},noSSR:function(){return o}});let n=r(10260);r(85893),r(67294);let i=n._(r(35491));function s(e){return{default:(null==e?void 0:e.default)||e}}function o(e,t){return delete t.webpack,delete t.modules,e(t)}function a(e,t){let r=i.default,n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e});let a=(n={...n,...t}).loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:()=>null!=a?a().then(s):Promise.resolve(s(()=>null))}):(delete n.webpack,delete n.modules,o(r,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1159:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=r(10260)._(r(67294)).default.createContext(null)},35491:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let n=r(10260)._(r(67294)),i=r(1159),s=[],o=[],a=!1;function l(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),s=null;function l(){if(!s){let t=new u(e,r);s={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return s.promise()}if(!a){let e=r.webpack?r.webpack():r.modules;e&&o.push(t=>{for(let r of e)if(t.includes(r))return l()})}function c(e,t){!function(){l();let e=n.default.useContext(i.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let o=n.default.useSyncExternalStore(s.subscribe,s.getCurrentValue,s.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:s.retry}),[]),n.default.useMemo(()=>{var t;return o.loading||o.error?n.default.createElement(r.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:s.retry}):o.loaded?n.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return c.preload=()=>l(),c.displayName="LoadableComponent",n.default.forwardRef(c)}(l,e)}function h(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return h(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{h(s).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(a=!0,t());h(o,e).then(r,r)})),window.__NEXT_PRELOADREADY=c.preloadReady;let d=c},7443:(e,t,r)=>{"use strict";var n=r(34155);r(91479);var i=r(67294),s=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(i),o=void 0!==n&&n.env&&!0,a=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,i=t.optimizeForSpeed,s=void 0===i?o:i;u(a(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",u("boolean"==typeof s,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=s,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l=document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},t.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},t.insertRule=function(e,t){if(u(a(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return o||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},t.replaceRule=function(e,t){if(this._optimizeForSpeed){var r=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){o||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];u(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},t.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];u(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},t.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},t.cssRules=function(){var e=this;return this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},t.makeStyleTag=function(e,t,r){t&&u(a(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return r?i.insertBefore(n,r):i.appendChild(n),n},function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,[{key:"length",get:function(){return this._rulesCount}}]),e}();function u(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},h={};function d(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return h[n]||(h[n]="jsx-"+c(e+"-"+r)),h[n]}function f(e,t){var r=e+t;return h[r]||(h[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),h[r]}var p=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,i=t.optimizeForSpeed,s=void 0!==i&&i;this._sheet=n||new l({name:"styled-jsx",optimizeForSpeed:s}),this._sheet.inject(),n&&"boolean"==typeof s&&(this._sheet.setOptimizeForSpeed(s),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var s=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=s,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return s.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var i=d(n,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return f(i,e)}):[f(i,t)]}}return{styleId:d(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),g=i.createContext(null);g.displayName="StyleSheetContext";var m=s.default.useInsertionEffect||s.default.useLayoutEffect,y=new p;function b(e){var t=y||i.useContext(g);return t&&m(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}b.dynamic=function(e){return e.map(function(e){return d(e[0],e[1])}).join(" ")},t.style=b},40645:(e,t,r)=>{"use strict";e.exports=r(7443).style},81221:(e,t,r)=>{"use strict";r.d(t,{FG:()=>y,H6:()=>d,Rp:()=>f,X:()=>b,_g:()=>u,a2:()=>l,ak:()=>v,db:()=>p,ny:()=>g,o3:()=>m,pY:()=>c,tL:()=>h});var n,i=r(7334),s=r.n(i),o=r(67993),a=r(34155);let l={de:{iso_name:"German",endonym:"Deutsch",short:"de"},en:{iso_name:"English",endonym:"English",short:"en"},uk:{iso_name:"Ukrainian",endonym:"Українська",short:"uk"},ru:{iso_name:"Russian",endonym:"Русский",short:"ru"},pl:{iso_name:"Polish",endonym:"Polski",short:"pl"},tr:{iso_name:"Turkish",endonym:"T\xfcrk\xe7e",short:"tr"},ar:{iso_name:"Arabic",endonym:"عربى",short:"ar"}},u=(null===(n=l[s()(a.env.LANGUAGE)])||void 0===n?void 0:n.short)||"de",c=[{title:"Achtsamkeit & Stress",href:"achtsamkeit-und-stress",cardBackground:"bg-mood-lightBlue",color:"text-ci-black border-ci-black",background:"bg-mood-pink",vector:"#0931B9",text:"„Puh, nur noch ein paar Tage und dann ist der Stress vorbei“ - sagst du dir diesen Satz auch schon Wochen, Monate, wenn nicht sogar Jahre? Hier lernst du, wann Stress ins Negative umschl\xe4gt und wie du achtsamer mit dir selbst umgehst"},{title:"Identit\xe4t",href:"identit\xe4t",cardBackground:"bg-mood-green",color:"text-white border-white",background:"bg-mood-lightBlue",vector:"#ED4238",text:"Wer bin ich eigentlich? Die eigene Identit\xe4t kann ganz sch\xf6n herausfordernd sein - vor allem in jungen Jahren. Hier findest du motivierende und aufschlussreiche Texte, die dir dabei helfen k\xf6nnen, dich besser zu verstehen."},{title:"\xc4ngste",href:"aengste",cardBackground:"bg-mood-pink",color:"text-ci-black border-ci-black",background:"bg-mood-lightBlue",vector:"#FE902F",text:"Nerv\xf6ses Kribbeln, Herzrasen, zitternde H\xe4nde? Angst haben ist ganz normal - aber bis wohin? Wenn du das Gef\xfchl hast, \xe4ngstliche Gef\xfchle schr\xe4nken dich in deinem allt\xe4glichen Leben ein, schau hier vorbei und erfahre mehr …"},{title:"Mobbing & Hass im Netz",href:"mobbing-und-hass-im-netz",cardBackground:"bg-mood-lightGreen",color:"text-ci-black border-ci-black",background:"bg-mood-pink",vector:"#FFE612",text:"Wenn „war doch nur ein Witz“ eben doch mehr wehtut: Hass und Mobbing im Netz sind keine Seltenheit mehr. Wenn du dich schlecht f\xfchlst wegen Mitsch\xfcler:innen oder anonymen Menschen im Internet und du dich fragst, was du dagegen tun kannst, bist du hier genau richtig."},{title:"Meine Rechte",href:"meine-rechte",cardBackground:"bg-mood-purple bg-opacity-60",color:"text-white border-white",background:"bg-mood-pink",vector:"#5D2FD5",text:"Was darf ich eigentlich? Wo f\xfchle ich mich zu Recht unfair behandelt und was kann ich eigentlich dagegen tun? Hier wird aus einem „Mir h\xf6rt eh keiner zu“ ein „Doch, wir h\xf6ren dir zu“ - denn hier kl\xe4ren wir dich \xfcber deine Rechte auf."},{title:"Depressionen",href:"depressionen",cardBackground:"bg-mood-red",color:"text-white border-white",background:"bg-mood-lightGreen",vector:"#5D2FD5",text:"Mal an die frische Luft gehen und andere Tipps, die dir rein gar nichts bringen? Dann schau mal hier rein - eine Depression ist n\xe4mlich was ganz anderes, als einfach „nur traurig“ zu sein ..."},{title:"S\xfcchte",href:"suechte",cardBackground:"bg-mood-yellow",color:"text-ci-black border-ci-black",background:"bg-mood-pink",vector:"#FFE612",text:"Mal an der Zigarette ziehen hat sich zu mehr entwickelt? Und ohne dein Computerspiel f\xfchlst du dich in der echten Welt gar nicht mehr so richtig gut? Ab wann wird Spa\xdf und „nur mal so“ zu einer Sucht? Alles rund um S\xfcchte lesen"},{title:"von krisenchat",href:"von-krisenchat",cardBackground:"bg-mood-orange",color:"text-white border-white",background:"bg-mood-pink",vector:"#FFE612",text:"Ob spannende Studienergebnisse oder pers\xf6nliche Vorstellungen von krisenchat Teammitgliedern und Supporter:innen - hier findest du Infos, direkt von krisenchat."},{title:"Familie & Beziehung",href:"familie-und-beziehung",cardBackground:"bg-mood-purple",color:"text-white border-white",background:"bg-mood-lightBlue",vector:"#ED4238",text:"Beziehungen sind toll, aber auch Arbeit - klar. Aber wann entwickeln sich toxische Beziehungsdynamiken? Ist so viel Streit normal? Oder wieso f\xfchle ich mich mit dieser einen Freundin immer so wertlos? Alle Themen rund um zwischenmenschliche Beziehungen findest du hier"},{title:"Gewalt",href:"gewalt",cardBackground:"bg-ci-black bg-opacity-60",color:"text-white border-white",background:"bg-mood-lightGreen",vector:"#0931B9",text:"Musstest du Gewalt erleben - egal, in welchem Kontext? Dann bist du hier richtig. Ob k\xf6rperliche oder emotionale Gewalt, wir behandeln alle Themen hier und geben dir Infos an die Hand, was du tun kannst, wenn du betroffen bist"}],h=[{href:o.MR.UEBER_UNS,text:"constants:UeberUnsPageButtons.aboutUs"},{href:o.MR.PROJEKTE,text:"constants:UeberUnsPageButtons.projects"},{href:o.MR.FAQ,text:"constants:UeberUnsPageButtons.faq"},{href:o.MR.UNTERSTUETZER,text:"constants:UeberUnsPageButtons.partner"},{href:o.MR.MEDIEN,text:"constants:UeberUnsPageButtons.media"},{href:o.MR.TRANSPARENZ,text:"constants:UeberUnsPageButtons.transparency"},{href:o.MR.KINDERSCHUTZKONZEPT,text:"constants:UeberUnsPageButtons.childProtectionConcept"},{href:o.MR.SUIZIDPRAEVENTION,text:"constants:UeberUnsPageButtons.suicidePrevention"},{href:o.MR.KINDESWOHL,text:"constants:UeberUnsPageButtons.childWelfare"},{href:o.MR.SEXUALISIERTE_GEWALT,text:"constants:UeberUnsPageButtons.sexualizedViolence"},{href:o.MR.FEEDBACK,text:"constants:UeberUnsPageButtons.feedback"}],d=[{href:o.xw.MITMACHEN,text:"constants:MitmachenPageButtons.voluntarily"},{href:o.xw.SUPPORTER,text:"constants:MitmachenPageButtons.support"},{href:o.xw.PARTNER,text:"constants:MitmachenPageButtons.partner"},{href:"https://krisenchat.jobs.personio.de/",extern:!0,text:"constants:MitmachenPageButtons.jobs"}];o.FP.OASE,o.FP.RAUM_DER_RUHE,o.FP.EINMAL_DURCHATMEN;let f={florian:{name:"Florian",age:"30",job:"Familien- und Konfliktberater",motivation:"krisenchat bietet mir die Chance mein fachliches und pers\xf6nliches Know-How sinnstiftend einzubringen. Ich bin dankbar diesen Kindern-und Jugendlichen meine Unterst\xfctzung anbieten zu d\xfcrfen",image:"florian.jpg"},ishita:{name:"Ishita",age:"27",job:"Psychologie (B.Sc.)",motivation:"Ich finde die niedrigschwellige Online-Krisenberatung extrem sinnvoll und h\xe4tte mir das f\xfcr viele andere Menschen auch schon gew\xfcnscht",image:"ishita.jpg"},marie:{name:"Marie-Ann",age:"45",job:"Systemische Familienberaterin",motivation:"Das Gef\xfchl der „Schwarmintelligenz“ und die M\xf6glichkeit zum \xdcber-die-Schulter ist toll.  Anders als in der Praxis, kann ich dennoch einen jungen Menschen erreichen, durch die Nacht bringen, ein Hoffnungsschimmer sein.",image:"marie-ann.png"},marco:{name:"Marco",age:"30",job:"Psychologiestudent (B.Sc.)",motivation:"Ich m\xf6chte, dass sie sich ernst genommen und geh\xf6rt f\xfchlen, ich glaube das fehlt ihnen oft in der 'echten Welt.'",image:"marco.jpg"},astrid:{name:"Astrid",age:"55",job:"Gesundheitspsychologin (M.Sc.)",motivation:"Ich arbeite gern mit Kindern und Jugendlichen zusammen und m\xf6chte sie in Notlagen unterst\xfctzen und dazu beitragen dass sie H\xfcrden \xfcberwinden k\xf6nnen.",image:"astrid.jpg"},annalena:{name:"Annalena",age:"23",job:"Psychologiestudentin (M.Sc.)",motivation:"Mich motiviert, dass man Kindern und Jugendlichen in schwierigen Situationen schnell und unkompliziert Unterst\xfctzung anbieten kann.",image:"annalena.jpg"},christiane:{name:"Christiane",age:"33",job:"Sozialp\xe4dagogin",motivation:"Mich motiviert die M\xf6glichkeit Kinder/Jugendlichen aus der Ferne dann ein offenes Ohr schenken zu k\xf6nnen, wenn sie es am dringendsten brauchen!",image:"christiane.jpg"},wolfgang:{name:"Wolfgang",age:"73",job:"Kinder- und Jugendpsychotherapeut",motivation:"Als mir klar wurde, wie einfach und spontan Kinder und junge Menschen im direkten Kontakt mit Berater:innen ihre Sorgen offen ansprechen k\xf6nnen, wollte ich meine Erfahrungen vieler Jahre therapeutischer Arbeit nutzen und zur Verf\xfcgung stellen: auch in einem Chat eine hilfreiche Beziehung anbieten und wirksam sein zu k\xf6nnen.",image:"wolfgang.jpg"},tatjana:{name:"Tatjana",age:"29",job:"Psychologin, systemische Beraterin",motivation:"Es freut mich, dass hier bei Krisenchat die Hilfe so schnell und flexibel stattfindet und dadurch die Jugendlichen ein Hilfsangebot mit einer positiven Erfahrung verbinden k\xf6nnen.",image:"tatjana.png"},gottfried:{name:"Gottfried",age:"76",job:"Psychologischer Psychotherapeut",motivation:"Mich motiviert die M\xf6glichkeit zur niederschwelligen Hilfe",image:"gottfried.jpg"}},p=["annalena","marco","tatjana","florian","marie","ishita","gottfried","astrid","christiane","wolfgang"],g={address1:"krisenchat gGmbH",streetAndNumber:"Torstr. 75",zipAndCity:"10119 Berlin",country:"DE",emailDatenschutz:"datenschutz@krisenchat.de"},m={iban:"DE26100101234734356579",bicSwift:"QNTODEB2XXX",bankName:'Olinda SAS ("Qonto") Berlin'},y="krisenchat-cookie-consent",b="consent-given",v="consent-not-given"},67993:(e,t,r)=>{"use strict";var n,i,s;r.d(t,{FP:()=>s,MR:()=>n,xw:()=>i}),function(e){e.UEBER_UNS="/ueber-uns",e.FAQ="/ueber-uns/faq",e.PARTNER="/ueber-uns/partner",e.MEDIEN="/ueber-uns/medien",e.UNTERSTUETZER="/ueber-uns/partner",e.TRANSPARENZ="/ueber-uns/transparenz",e.PROJEKTE="/ueber-uns/projekte",e.KINDERSCHUTZKONZEPT="/ueber-uns/kinderschutzkonzept",e.SUIZIDPRAEVENTION="/ueber-uns/suizidpraevention",e.KINDESWOHL="/ueber-uns/kindeswohl",e.SEXUALISIERTE_GEWALT="/ueber-uns/sexualisierte-gewalt",e.FEEDBACK="/ueber-uns/feedback"}(n||(n={})),function(e){e.MITMACHEN="/mitmachen",e.SUPPORTER="/mitmachen/supporter",e.JOBS="/mitmachen/jobs",e.PARTNER="/mitmachen/partner"}(i||(i={})),function(e){e.OASE="/oase",e.RAUM_DER_RUHE="/oase/raumDerRuhe",e.EINMAL_DURCHATMEN="/oase/einmalDurchatmen"}(s||(s={}))},1862:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>t_});var n,i,s,o={};r.r(o),r.d(o,{blockTrackingForMe:()=>tx,enableTrackingForMe:()=>tO,isTrackingEnabled:()=>tE,load:()=>tv,setSite:()=>tk,trackEvent:()=>tS,trackGoal:()=>tC,trackPageview:()=>tw});var a=r(85893),l=r(40645),u=r.n(l),c=r(29684),h=r(22750),d=r(9008),f=r.n(d),p=r(11163),g=r(67294);let m=(0,g.createContext)(null),y={didCatch:!1,error:null};class b extends g.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=y}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(null!==e){for(var t,r,n=arguments.length,i=Array(n),s=0;s<n;s++)i[s]=arguments[s];null===(t=(r=this.props).onReset)||void 0===t||t.call(r,{args:i,reason:"imperative-api"}),this.setState(y)}}componentDidCatch(e,t){var r,n;null===(r=(n=this.props).onError)||void 0===r||r.call(n,e,t)}componentDidUpdate(e,t){let{didCatch:r}=this.state,{resetKeys:n}=this.props;if(r&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,r)=>!Object.is(e,t[r]))}(e.resetKeys,n)){var i,s;null===(i=(s=this.props).onReset)||void 0===i||i.call(s,{next:n,prev:e.resetKeys,reason:"keys"}),this.setState(y)}}render(){let{children:e,fallbackRender:t,FallbackComponent:r,fallback:n}=this.props,{didCatch:i,error:s}=this.state,o=e;if(i){let e={error:s,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)o=t(e);else if(r)o=(0,g.createElement)(r,e);else if(void 0!==n)o=n;else throw s}return(0,g.createElement)(m.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},o)}}var v=r(85845),w=r(11608),C=r(28784),S=r(36544);let x=()=>{if(!globalThis.__BLITZ_SESSION_COOKIE_PREFIX)throw Error("Internal Blitz Error: globalThis.__BLITZ_SESSION_COOKIE_PREFIX is not set");return globalThis.__BLITZ_SESSION_COOKIE_PREFIX},O=()=>`${x()}_sAntiCsrfToken`,E=()=>`${x()}_sPublicDataToken`,k=()=>`${x()}_sAntiCsrfToken`,P=()=>`${x()}_sPublicDataToken`;function R(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}let j=/https?|ftp|gopher|file/;function _(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",s=e.hash||"",o=e.query||"",a=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?a=t+e.host:r&&(a=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(a+=":"+e.port)),o&&"object"==typeof o&&(o=String(function(e){let t=new URLSearchParams;return Object.entries(e).forEach(([e,r])=>{Array.isArray(r)?r.forEach(r=>t.append(e,R(r))):t.set(e,R(r))}),t}(o)));let l=e.search||o&&`?${o}`||"";return n&&":"!==n.substr(-1)&&(n+=":"),e.slashes||(!n||j.test(n))&&!1!==a?(a="//"+(a||""),i&&"/"!==i[0]&&(i="/"+i)):a||(a=""),s&&"#"!==s[0]&&(s="#"+s),l&&"?"!==l[0]&&(l="?"+l),i=i.replace(/[?#]/g,encodeURIComponent),l=l.replace("#","%23"),`${n}${a}${i}${l}${s}`}var F=Object.defineProperty,A=Object.defineProperties,T=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,D=(e,t,r)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M=(e,t)=>{for(var r in t||(t={}))I.call(t,r)&&D(e,r,t[r]);if(N)for(var r of N(t))L.call(t,r)&&D(e,r,t[r]);return e},$=(e,t)=>A(e,T(t)),U=(e,t,r)=>new Promise((n,i)=>{var s=e=>{try{a(r.next(e))}catch(e){i(e)}},o=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(s,o);a((r=r.apply(e,t)).next())});let B=v.default,z=S("blitz:auth-client"),q=e=>{(0,w.b)(e,"[parsePublicDataToken] Failed: token is empty");let t=decodeURIComponent(escape(window.atob(e)));try{return{publicData:JSON.parse(t)}}catch(e){throw Error(`[parsePublicDataToken] Failed to parse publicDataStr: ${t}`)}},H={userId:null,role:null};class K{constructor(){this.eventKey="_blitz-publicDataUpdated",this.observable=B(),"undefined"!=typeof window&&(this.updateState(void 0,{suppressEvent:!0}),window.addEventListener("storage",e=>{e.key===this.eventKey&&this.updateState(void 0,{suppressEvent:!0})}))}updateState(e,t){if(!(null==t?void 0:t.suppressEvent))try{localStorage.setItem(this.eventKey,Date.now().toString())}catch(e){console.error("LocalStorage is not available",e)}this.observable.next(null!=e?e:this.getData())}clear(){(0,w.k)(E());try{localStorage.removeItem(P())}catch(e){console.error("LocalStorage is not available",e)}this.updateState(H)}getData(){let e=this.getToken();if(!e)return H;let{publicData:t}=q(e);return t}getToken(){try{let e=(0,w.r)(E());if(e)return localStorage.setItem(P(),e),e;return localStorage.getItem(P())}catch(e){console.error("LocalStorage is not available",e);return}}}let V=()=>(window.__publicDataStore||(window.__publicDataStore=new K),window.__publicDataStore),Q=()=>{let e=(0,w.r)(O());e&&localStorage.setItem(k(),e)},G=()=>(0,w.r)(O())||localStorage.getItem(k()),J=(e={})=>{var t;let r;let n=null!=(t=null==e?void 0:e.suspense)?t:!!globalThis.__BLITZ_SUSPENSE_ENABLED;if(e.initialPublicData)r=$(M({},e.initialPublicData),{isLoading:!1});else if(n){if(w.c){let e=Error();throw e.name="Rendering Suspense fallback...",e.digest="DYNAMIC_SERVER_USAGE",e.message="DYNAMIC_SERVER_USAGE",delete e.stack,e}r=$(M({},V().getData()),{isLoading:!1})}else r=$(M({},H),{isLoading:!0});let[i,s]=g.useState(r);return g.useEffect(()=>(s($(M({},V().getData()),{isLoading:!1})),V().observable.subscribe(e=>s($(M({},e),{isLoading:!1}))).unsubscribe),[]),i},Z=(e,t)=>{let[r,n]=g.useState(!1);if(g.useEffect(()=>{n(!0)},[]),w.a&&e&&!V().getData().userId&&r){let e=new C.A;throw e.stack=null,e}if(w.a&&e&&t&&V().getData().userId&&r){let e=new C.A;if(e.stack=null,!W(t,V().getData().role))throw e}},W=(e,t)=>{if(e&&t){if(Array.isArray(e)){if(e.includes(t))return!0}else if(t===e)return!0}return!1},X=()=>{Z(!0)},Y=(e={})=>(X(),J(e)),ee=e=>{let[t,r]=g.useState(!1);if(g.useEffect(()=>{r(!0)},[]),w.a&&V().getData().userId&&t){let t=new C.R(e);throw t.stack=null,t}};function et(e){let t=t=>{J({suspense:!1});let[r,n]=g.useState(!1);g.useEffect(()=>{n(!0)},[]);let{authenticate:i,redirectAuthenticatedTo:s}=function(e,t){var r,n,i;if(!e)return{};let s=null==e?void 0:e.authenticate,o=null==e?void 0:e.redirectAuthenticatedTo;if(void 0===s&&void 0===o){let a="getLayout"in e&&(null==(r=e.getLayout)?void 0:r.call(e,g.createElement(e,M({},t))));if(a){let e=a;for(;;){let t=a.type;if(void 0!==t.authenticate||void 0!==t.redirectAuthenticatedTo){s=t.authenticate,o=t.redirectAuthenticatedTo;break}if(null==(n=e.props)?void 0:n.children)e=null==(i=e.props)?void 0:i.children;else break}}}return{authenticate:s,redirectAuthenticatedTo:o}}(e,t);if(Z(!!i&&("object"==typeof i&&void 0===i.redirectTo||!0===i),i&&"object"==typeof i?i.role:void 0),"undefined"!=typeof window){let e=V().getData();if(e.userId){if(z("[BlitzAuthInnerRoot] logged in"),"function"==typeof s&&(s=s({session:e})),s){let e="string"==typeof s?s:_(s);if(r){z("[BlitzAuthInnerRoot] redirecting to",e);let t=new C.R(e);throw t.stack=null,t}}if(i&&"object"==typeof i&&i.redirectTo&&i.role&&!W(i.role,e.role)){let{redirectTo:e}=i;"string"!=typeof e&&(e=_(e));let t=new URL(e,window.location.href);t.searchParams.append("next",window.location.pathname),z("[BlitzAuthInnerRoot] redirecting to",t.toString());let r=new C.R(t.toString());throw r.stack=null,r}}else if(z("[BlitzAuthInnerRoot] logged out"),i&&"object"==typeof i&&i.redirectTo){let{redirectTo:e}=i;"string"!=typeof e&&(e=_(e));let t=new URL(e,window.location.href);if(t.searchParams.append("next",window.location.pathname),r){z("[BlitzAuthInnerRoot] redirecting to",t.toString());let e=new C.R(t.toString());throw e.stack=null,e}}}return g.createElement(e,M({},t))};for(let[r,n]of Object.entries(e))t[r]=n;return t}let er=(0,C.c)(e=>(globalThis.__BLITZ_SESSION_COOKIE_PREFIX=e.cookiePrefix||"blitz",{withProvider:et,events:{onRpcError:e=>U(void 0,null,function*(){"AuthenticationError"===e.name&&V().getData().userId&&V().clear()})},middleware:{beforeHttpRequest(e){let t={"Content-Type":"application/json"},r=G();return r?(z("Adding antiCSRFToken cookie header",r),t["anti-csrf"]=r):z("No antiCSRFToken cookie found"),e.headers=M(M({},e.headers),t),e},beforeHttpResponse(e){if(e.headers){if(Q(),e.headers.get("public-data-token")&&(V().updateState(),z("Public data updated")),e.headers.get("session-created")){let e=new Event("blitz:session-created");document.dispatchEvent(e)}if(e.headers.get("csrf-error")){let e=new C.C;throw e.stack=null,e}}return e}},exports:()=>({useSession:J,useAuthorize:X,useAuthorizeIf:Z,useRedirectAuthenticated:ee,useAuthenticatedSession:Y,getAntiCSRFToken:G})}));var en=r(59162);let{withBlitz:ei}=(0,c.s)({plugins:[er({cookiePrefix:"blitz"}),(0,en.wT)({})]}),es=e=>"string"==typeof e,eo=()=>{let e,t;let r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r},ea=e=>null==e?"":""+e,el=(e,t,r)=>{e.forEach(e=>{t[e]&&(r[e]=t[e])})},eu=/###/g,ec=e=>e&&e.indexOf("###")>-1?e.replace(eu,"."):e,eh=e=>!e||es(e),ed=(e,t,r)=>{let n=es(t)?t.split("."):t,i=0;for(;i<n.length-1;){if(eh(e))return{};let t=ec(n[i]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return eh(e)?{}:{obj:e,k:ec(n[i])}},ef=(e,t,r)=>{let{obj:n,k:i}=ed(e,t,Object);if(void 0!==n||1===t.length){n[i]=r;return}let s=t[t.length-1],o=t.slice(0,t.length-1),a=ed(e,o,Object);for(;void 0===a.obj&&o.length;)s=`${o[o.length-1]}.${s}`,(a=ed(e,o=o.slice(0,o.length-1),Object))&&a.obj&&void 0!==a.obj[`${a.k}.${s}`]&&(a.obj=void 0);a.obj[`${a.k}.${s}`]=r},ep=(e,t,r,n)=>{let{obj:i,k:s}=ed(e,t,Object);i[s]=i[s]||[],i[s].push(r)},eg=(e,t)=>{let{obj:r,k:n}=ed(e,t);if(r)return r[n]},em=(e,t,r)=>{let n=eg(e,r);return void 0!==n?n:eg(t,r)},ey=(e,t,r)=>{for(let n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?es(e[n])||e[n]instanceof String||es(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):ey(e[n],t[n],r):e[n]=t[n]);return e},eb=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var ev={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};let ew=e=>es(e)?e.replace(/[&<>"'\/]/g,e=>ev[e]):e;class eC{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}let eS=[" ",",","?","!",";"],ex=new eC(20),eO=(e,t,r)=>{t=t||"",r=r||"";let n=eS.filter(e=>0>t.indexOf(e)&&0>r.indexOf(e));if(0===n.length)return!0;let i=ex.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`),s=!i.test(e);if(!s){let t=e.indexOf(r);t>0&&!i.test(e.substring(0,t))&&(s=!0)}return s},eE=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let n=t.split(r),i=e;for(let e=0;e<n.length;){let t;if(!i||"object"!=typeof i)return;let s="";for(let o=e;o<n.length;++o)if(o!==e&&(s+=r),s+=n[o],void 0!==(t=i[s])){if(["string","number","boolean"].indexOf(typeof t)>-1&&o<n.length-1)continue;e+=o-e+1;break}i=t}return i},ek=e=>e&&e.replace("_","-"),eP={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class eR{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||eP,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:(es(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new eR(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new eR(this.logger,e)}}var ej=new eR;class e_{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,n]=e;for(let e=0;e<n;e++)t(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[n,i]=t;for(let t=0;t<i;t++)n.apply(n,[e,...r])})}}class eF extends e_{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r){let n,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?n=e.split("."):(n=[e,t],r&&(Array.isArray(r)?n.push(...r):es(r)&&s?n.push(...r.split(s)):n.push(r)));let a=eg(this.data,n);return(!a&&!t&&!r&&e.indexOf(".")>-1&&(e=n[0],t=n[1],r=n.slice(2).join(".")),!a&&o&&es(r))?eE(this.data&&this.data[e]&&this.data[e][t],r,s):a}addResource(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},s=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=[e,t];r&&(o=o.concat(s?r.split(s):r)),e.indexOf(".")>-1&&(o=e.split("."),n=t,t=o[1]),this.addNamespaces(t),ef(this.data,o,n),i.silent||this.emit("added",e,t,r,n)}addResources(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let n in r)(es(r[n])||Array.isArray(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,i){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),n=r,r=t,t=o[1]),this.addNamespaces(t);let a=eg(this.data,o)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?ey(a,r,i):a={...a,...r},ef(this.data,o,a),s.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var eA={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,r,n,i))}),t}};let eT={};class eN extends e_{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),el(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=ej.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let r=this.resolve(e,t);return r&&void 0!==r.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],s=r&&e.indexOf(r)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!eO(e,r,n);if(s&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i};let s=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(s[0])>-1)&&(i=s.shift()),e=s.join(n)}return es(i)&&(i=[i]),{key:e,namespaces:i}}translate(e,t,r){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:s,namespaces:o}=this.extractFromKey(e[e.length-1],t),a=o[o.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){let e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${a}${e}${s}`,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:`${a}${e}${s}`}return n?{res:s,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:s}let c=this.resolve(e,t),h=c&&c.res,d=c&&c.usedKey||s,f=c&&c.exactUsedKey||s,p=Object.prototype.toString.apply(h),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!es(h)&&"boolean"!=typeof h&&"number"!=typeof h;if(m&&h&&y&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(p)&&!(es(g)&&Array.isArray(h))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,h,{...t,ns:o}):`key '${s} (${this.language})' returned an object instead of string.`;return n?(c.res=e,c.usedParams=this.getUsedParamsDetails(t),c):e}if(i){let e=Array.isArray(h),r=e?[]:{},n=e?f:d;for(let e in h)if(Object.prototype.hasOwnProperty.call(h,e)){let s=`${n}${i}${e}`;r[e]=this.translate(s,{...t,joinArrays:!1,ns:o}),r[e]===s&&(r[e]=h[e])}h=r}}else if(m&&es(g)&&Array.isArray(h))(h=h.join(g))&&(h=this.extendTranslation(h,e,t,r));else{let n=!1,o=!1,u=void 0!==t.count&&!es(t.count),d=eN.hasDefaultValue(t),f=u?this.pluralResolver.getSuffix(l,t.count,t):"",p=t.ordinal&&u?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=u&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${f}`]||t[`defaultValue${p}`]||t.defaultValue;!this.isValidLookup(h)&&d&&(n=!0,h=m),this.isValidLookup(h)||(o=!0,h=s);let y=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:h,b=d&&m!==h&&this.options.updateMissing;if(o||n||b){if(this.logger.log(b?"updateKey":"missingKey",l,a,s,b?m:h),i){let e=this.resolve(s,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let t=0;t<r.length;t++)e.push(r[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);let n=(e,r,n)=>{let i=d&&n!==h?n:y;this.options.missingKeyHandler?this.options.missingKeyHandler(e,a,r,i,b,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,a,r,i,b,t),this.emit("missingKey",e,a,r,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{let r=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&0>r.indexOf(`${this.options.pluralSeparator}zero`)&&r.push(`${this.options.pluralSeparator}zero`),r.forEach(r=>{n([e],s+r,t[`defaultValue${r}`]||m)})}):n(e,s,m))}h=this.extendTranslation(h,e,t,c,r),o&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${a}:${s}`),(o||n)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${s}`:s,n?h:void 0):this.options.parseMissingKeyHandler(h))}return n?(c.res=h,c.usedParams=this.getUsedParamsDetails(t),c):h}extendTranslation(e,t,r,n,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){let o;r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});let a=es(e)&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let l=r.replace&&!es(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,r.lng||this.language||n.usedLng,r),a){let t=e.match(this.interpolator.nestingRegexp);o<(t&&t.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=this.language||n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];return i&&i[0]===n[0]&&!r.context?(s.logger.warn(`It seems you are nesting recursively key: ${n[0]} in key: ${t[0]}`),null):s.translate(...n,t)},r)),r.interpolation&&this.interpolator.reset()}let o=r.postProcess||this.options.postProcess,a=es(o)?[o]:o;return null!=e&&a&&a.length&&!1!==r.applyPostProcessor&&(e=eA.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let t,r,n,i,s,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return es(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let a=this.extractFromKey(e,o),l=a.key;r=l;let u=a.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let c=void 0!==o.count&&!es(o.count),h=c&&!o.ordinal&&0===o.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==o.context&&(es(o.context)||"number"==typeof o.context)&&""!==o.context,f=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);u.forEach(e=>{this.isValidLookup(t)||(s=e,!eT[`${f[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(eT[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(r=>{let s;if(this.isValidLookup(t))return;i=r;let a=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,r,e,o);else{let e;c&&(e=this.pluralResolver.getSuffix(r,o.count,o));let t=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(a.push(l+e),o.ordinal&&0===e.indexOf(n)&&a.push(l+e.replace(n,this.options.pluralSeparator)),h&&a.push(l+t)),d){let r=`${l}${this.options.contextSeparator}${o.context}`;a.push(r),c&&(a.push(r+e),o.ordinal&&0===e.indexOf(n)&&a.push(r+e.replace(n,this.options.pluralSeparator)),h&&a.push(r+t))}}for(;s=a.pop();)this.isValidLookup(t)||(n=s,t=this.getResource(r,e,s,o))}))})}),{res:t,usedKey:r,exactUsedKey:n,usedLng:i,usedNS:s}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&!es(e.replace),r=t?e.replace:e;if(t&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!t)for(let e of(r={...r},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete r[e];return r}static hasDefaultValue(e){let t="defaultValue";for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}let eI=e=>e.charAt(0).toUpperCase()+e.slice(1);class eL{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ej.create("languageUtils")}getScriptPartFromCode(e){if(!(e=ek(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=ek(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(es(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}let t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(e=>e.toLowerCase()):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=eI(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=eI(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=eI(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let r=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(0>e.indexOf("-")&&0>r.indexOf("-"))&&(e.indexOf("-")>0&&0>r.indexOf("-")&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),es(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){let r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],i=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return es(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):es(e)&&i(this.formatLanguageCode(e)),r.forEach(e=>{0>n.indexOf(e)&&i(this.formatLanguageCode(e))}),n}}let eD=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],eM={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)},e$=["v1","v2","v3"],eU=["v4"],eB={zero:0,one:1,two:2,few:3,many:4,other:5},ez=()=>{let e={};return eD.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:eM[t.fc]}})}),e};class eq{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=ej.create("pluralResolver"),(!this.options.compatibilityJSON||eU.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=ez(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{let r=ek("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:n});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let s=new Intl.PluralRules(r,{type:n});return this.pluralRulesCache[i]=s,s}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((e,t)=>eB[e]-eB[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):r.numbers.map(r=>this.getSuffix(e,r,t)):[]}getSuffix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),n=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===n?n="plural":1===n&&(n=""));let i=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!e$.includes(this.options.compatibilityJSON)}}let eH=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4)||void 0===arguments[4]||arguments[4],s=em(e,t,r);return!s&&i&&es(r)&&void 0===(s=eE(e,r,n))&&(s=eE(t,r,n)),s},eK=e=>e.replace(/\$/g,"$$$$");class eV{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ej.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:i,prefixEscaped:s,suffix:o,suffixEscaped:a,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:h,nestingPrefixEscaped:d,nestingSuffix:f,nestingSuffixEscaped:p,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:y}=e.interpolation;this.escape=void 0!==t?t:ew,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=i?eb(i):s||"{{",this.suffix=o?eb(o):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=h?eb(h):d||eb("$t("),this.nestingSuffix=f?eb(f):p||eb(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==y&&y,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,r,n){let i,s,o;let a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(0>e.indexOf(this.formatSeparator)){let i=eH(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,r,{...n,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),s=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(eH(t,a,s,this.options.keySeparator,this.options.ignoreJSONStructure),o,r,{...n,...t,interpolationkey:s})};this.resetRegExp();let u=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,c=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>eK(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?eK(this.escape(e)):eK(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let r=i[1].trim();if(void 0===(s=l(r))){if("function"==typeof u){let t=u(e,i,n);s=es(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))s="";else if(c){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),s=""}else es(s)||this.useRawValueToEscape||(s=ea(s));let a=t.safeValue(s);if(e=e.replace(i[0],a),c?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++o>=this.maxReplaces)break}}),e}nest(e,t){let r,n,i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(e,t)=>{let r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;let n=e.split(RegExp(`${r}[ ]*{`)),s=`{${n[1]}`;e=n[0];let o=(s=this.interpolate(s,i)).match(/'/g),a=s.match(/"/g);(o&&o.length%2==0&&!a||a.length%2!=0)&&(s=s.replace(/'/g,'"'));try{i=JSON.parse(s),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${s}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let a=[];(i=(i={...s}).replace&&!es(i.replace)?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;let l=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),a=e,l=!0}if((n=t(o.call(this,r[1].trim(),i),i))&&r[0]===e&&!es(n))return n;es(n)||(n=ea(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),n=""),l&&(n=a.reduce((e,t)=>this.format(e,t,s.lng,{...s,interpolationkey:r[1].trim()}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}let eQ=e=>{let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let n=e.split("(");t=n[0].toLowerCase().trim();let i=n[1].substring(0,n[1].length-1);"currency"===t&&0>i.indexOf(":")?r.currency||(r.currency=i.trim()):"relativetime"===t&&0>i.indexOf(":")?r.range||(r.range=i.trim()):i.split(";").forEach(e=>{if(e){let[t,...n]=e.split(":"),i=n.join(":").trim().replace(/^'+|'+$/g,""),s=t.trim();r[s]||(r[s]=i),"false"===i&&(r[s]=!1),"true"===i&&(r[s]=!0),isNaN(i)||(r[s]=parseInt(i,10))}})}return{formatName:t,formatOptions:r}},eG=e=>{let t={};return(r,n,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s={...s,[i.interpolationkey]:void 0});let o=n+JSON.stringify(s),a=t[o];return a||(a=e(ek(n),i),t[o]=a),a(r)}};class eJ{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ej.create("formatter"),this.options=e,this.formats={number:eG((e,t)=>r=>new Intl.NumberFormat(e,{...t}).format(r)),currency:eG((e,t)=>r=>new Intl.NumberFormat(e,{...t,style:"currency"}).format(r)),datetime:eG((e,t)=>r=>new Intl.DateTimeFormat(e,{...t}).format(r)),relativetime:eG((e,t)=>r=>new Intl.RelativeTimeFormat(e,{...t}).format(r,t.range||"day")),list:eG((e,t)=>r=>new Intl.ListFormat(e,{...t}).format(r))},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=eG(t)}format(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&0>i[0].indexOf(")")&&i.find(e=>e.indexOf(")")>-1)){let e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:s}=eQ(t);if(this.formats[i]){let t=e;try{let o=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},a=o.locale||o.lng||n.locale||n.lng||r;t=this.formats[i](e,a,{...s,...n,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}let eZ=(e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)};class eW extends e_{constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=ej.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,n.backend,n)}queueLoad(e,t,r,n){let i={},s={},o={},a={};return e.forEach(e=>{let n=!0;t.forEach(t=>{let o=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===s[o]&&(s[o]=!0):(this.state[o]=1,n=!1,void 0===s[o]&&(s[o]=!0),void 0===i[o]&&(i[o]=!0),void 0===a[t]&&(a[t]=!0)))}),n||(o[e]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(a)}}loaded(e,t,r){let n=e.split("|"),i=n[0],s=n[1];t&&this.emit("failedLoading",i,s,t),!t&&r&&this.store.addResourceBundle(i,s,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);let o={};this.queue.forEach(r=>{ep(r.loaded,[i],s),eZ(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{o[e]||(o[e]={});let t=r.loaded[e];t.length&&t.forEach(t=>{void 0===o[e][t]&&(o[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:i,callback:s});return}this.readingCalls++;let o=(o,a)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&a&&n<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,r,n+1,2*i,s)},i);return}s(o,a)},a=this.backend[r].bind(this.backend);if(2===a.length){try{let r=a(e,t);r&&"function"==typeof r.then?r.then(e=>o(null,e)).catch(o):o(null,r)}catch(e){o(e)}return}return a(e,t,o)}prepareLoading(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();es(e)&&(e=this.languageUtils.toResolveHierarchy(e)),es(t)&&(t=[t]);let i=this.queueLoad(e,t,r,n);if(!i.toLoad.length)return i.pending.length||n(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),n=r[0],i=r[1];this.read(n,i,"read",void 0,void 0,(r,s)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${n} failed`,r),!r&&s&&this.logger.log(`${t}loaded namespace ${i} for language ${n}`,s),this.loaded(e,r,s)})}saveMissing(e,t,r,n,i){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=r&&""!==r){if(this.backend&&this.backend.create){let a={...s,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;(i=5===l.length?l(e,t,r,n,a):l(e,t,r,n))&&"function"==typeof i.then?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else l(e,t,r,n,o,a)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}let eX=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),es(e[1])&&(t.defaultValue=e[1]),es(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),eY=e=>(es(e.ns)&&(e.ns=[e.ns]),es(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),es(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),e0=()=>{},e1=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})};class e3 extends e_{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=eY(e),this.services={},this.logger=ej,this.modules={external:[]},e1(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(es(t.ns)?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let n=eX();this.options={...n,...this.options,...eY(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);let i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?ej.init(i(this.modules.logger),this.options):ej.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=eJ);let r=new eL(this.options);this.store=new eF(this.options.resources,this.options);let s=this.services;s.logger=ej,s.resourceStore=this.store,s.languageUtils=r,s.pluralResolver=new eq(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(s.formatter=i(t),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new eV(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new eW(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.emit(t,...n)}),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new eN(this.services,this.options),this.translator.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.emit(t,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,r||(r=e0),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let s=eo(),o=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(t),r(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?o():setTimeout(o,0),s}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e0,r=t,n=es(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};n?t(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){let n=eo();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=e0),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&eA.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var r=this;this.isLanguageChangingTo=e;let n=eo();this.emit("languageChanging",e);let i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},s=(e,s)=>{s?(i(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,n.resolve(function(){return r.t(...arguments)}),t&&t(e,function(){return r.t(...arguments)})},o=t=>{e||t||!this.services.languageDetector||(t=[]);let r=es(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);r&&(this.language||i(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,e=>{s(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),n}getFixedT(e,t,r){var n=this;let i=function(e,t){let s,o;if("object"!=typeof t){for(var a=arguments.length,l=Array(a>2?a-2:0),u=2;u<a;u++)l[u-2]=arguments[u];s=n.options.overloadTranslationOptionHandler([e,t].concat(l))}else s={...t};s.lng=s.lng||i.lng,s.lngs=s.lngs||i.lngs,s.ns=s.ns||i.ns,""!==s.keyPrefix&&(s.keyPrefix=s.keyPrefix||r||i.keyPrefix);let c=n.options.keySeparator||".";return o=s.keyPrefix&&Array.isArray(e)?e.map(e=>`${s.keyPrefix}${c}${e}`):s.keyPrefix?`${s.keyPrefix}${c}${e}`:e,n.t(o,s)};return es(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let s=(e,t)=>{let r=this.services.backendConnector.state[`${e}|${t}`];return -1===r||0===r||2===r};if(t.precheck){let e=t.precheck(this,s);if(void 0!==e)return e}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,e)&&(!n||s(i,e)))}loadNamespaces(e,t){let r=eo();return this.options.ns?(es(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=eo();es(e)&&(e=[e]);let n=this.options.preload||[],i=e.filter(e=>0>n.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=n.concat(i),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new eL(eX())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new e3(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e0,r=e.forkResourceStore;r&&delete e.forkResourceStore;let n={...this.options,...e,isClone:!0},i=new e3(n);return(void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new eF(this.store.data,n),i.services.resourceStore=i.store),i.translator=new eN(i.services,n),i.translator.on("*",function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];i.emit(e,...r)}),i.init(n,t),i.translator.options=n,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let e2=e3.createInstance();function e6(e){return(e6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e2.createInstance=e3.createInstance,e2.createInstance,e2.dir,e2.init,e2.loadResources,e2.reloadResources,e2.use,e2.changeLanguage,e2.getFixedT,e2.t,e2.exists,e2.setDefaultNamespace,e2.hasLoadedNamespace,e2.loadNamespaces,e2.loadLanguages;var e8=[];function e9(){return"function"==typeof XMLHttpRequest||("undefined"==typeof XMLHttpRequest?"undefined":e6(XMLHttpRequest))==="object"}e8.forEach,e8.slice;var e4=r(83154),e5=r.t(e4,2);function e7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?e7(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=function(e){var t=function(e,t){if("object"!=tt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=tt(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tt(t)?t:t+""}(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e7(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function tt(e){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"function"==typeof fetch&&(n="undefined"!=typeof global&&global.fetch?global.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),e9()&&("undefined"!=typeof global&&global.XMLHttpRequest?i=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(i=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?s=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(s=window.ActiveXObject)),n||!e5||i||s||(n=e4||e5),"function"!=typeof n&&(n=void 0);var tr=function(e,t){if(t&&"object"===tt(t)){var r="";for(var n in t)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(t[n]);if(!r)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+r.slice(1)}return e},tn=function(e,t,r,i){var s=function(e){if(!e.ok)return r(e.statusText||"Error",{status:e.status});e.text().then(function(t){r(null,{status:e.status,data:t})}).catch(r)};if(i){var o=i(e,t);if(o instanceof Promise){o.then(s).catch(r);return}}"function"==typeof fetch?fetch(e,t).then(s).catch(r):n(e,t).then(s).catch(r)},ti=!1,ts=function(e,t,r,n){e.queryStringParams&&(t=tr(t,e.queryStringParams));var i=te({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);"undefined"==typeof window&&"undefined"!=typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(i["Content-Type"]="application/json");var s="function"==typeof e.requestOptions?e.requestOptions(r):e.requestOptions,o=te({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:i},ti?{}:s),a="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{tn(t,o,n,a)}catch(e){if(!s||0===Object.keys(s).length||!e.message||0>e.message.indexOf("not implemented"))return n(e);try{Object.keys(s).forEach(function(e){delete o[e]}),tn(t,o,n,a),ti=!0}catch(e){n(e)}}},to=function(e,t,r,n){r&&"object"===tt(r)&&(r=tr("",r).slice(1)),e.queryStringParams&&(t=tr(t,e.queryStringParams));try{(o=i?new i:new s("MSXML2.XMLHTTP.3.0")).open(r?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var o,a=e.customHeaders;if(a="function"==typeof a?a():a)for(var l in a)o.setRequestHeader(l,a[l]);o.onreadystatechange=function(){o.readyState>3&&n(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(e){console&&console.log(e)}};let ta=function(e,t,r,i){return("function"==typeof r&&(i=r,r=void 0),i=i||function(){},n&&0!==t.indexOf("file:"))?ts(e,t,r,i):e9()||"function"==typeof ActiveXObject?to(e,t,r,i):void i(Error("No fetch and no xhr implementation found!"))};function tl(e){return(tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tu(Object(r),!0).forEach(function(t){th(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tu(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function th(e,t,r){return(t=td(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function td(e){var t=function(e,t){if("object"!=tl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=tl(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tl(t)?t:t+""}var tf=function(){var e,t;return e=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,e),this.services=t,this.options=r,this.allOptions=n,this.type="backend",this.init(t,r,n)},t=[{key:"init",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.services=e,this.options=tc(tc(tc({},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,r){return th({},t,r||"")},parseLoadPayload:function(e,t){},request:ta,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.options||{}),r),this.allOptions=n,this.services&&this.options.reloadInterval){var i=setInterval(function(){return t.reload()},this.options.reloadInterval);"object"===tl(i)&&"function"==typeof i.unref&&i.unref()}}},{key:"readMulti",value:function(e,t,r){this._readAny(e,e,t,t,r)}},{key:"read",value:function(e,t,r){this._readAny([e],e,[t],t,r)}},{key:"_readAny",value:function(e,t,r,n,i){var s,o,a=this,l=this.options.loadPath;"function"==typeof this.options.loadPath&&(l=this.options.loadPath(e,r)),(l=(o=s=l)&&"function"==typeof o.then?s:Promise.resolve(s)).then(function(s){if(!s)return i(null,{});var o=a.services.interpolator.interpolate(s,{lng:e.join("+"),ns:r.join("+")});a.loadUrl(o,i,t,n)})}},{key:"loadUrl",value:function(e,t,r,n){var i=this,s=this.options.parseLoadPayload("string"==typeof r?[r]:r,"string"==typeof n?[n]:n);this.options.request(this.options,e,s,function(s,o){if(o&&(o.status>=500&&o.status<600||!o.status))return t("failed loading "+e+"; status code: "+o.status,!0);if(o&&o.status>=400&&o.status<500)return t("failed loading "+e+"; status code: "+o.status,!1);if(!o&&s&&s.message){var a,l,u=s.message.toLowerCase();if(["failed","fetch","network","load"].find(function(e){return u.indexOf(e)>-1}))return t("failed loading "+e+": "+s.message,!0)}if(s)return t(s,!1);try{a="string"==typeof o.data?i.options.parse(o.data,r,n):o.data}catch(t){l="failed parsing "+e+" to json"}if(l)return t(l,!1);t(null,a)})}},{key:"create",value:function(e,t,r,n,i){var s=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var o=this.options.parsePayload(t,r,n),a=0,l=[],u=[];e.forEach(function(r){var n=s.options.addPath;"function"==typeof s.options.addPath&&(n=s.options.addPath(r,t));var c=s.services.interpolator.interpolate(n,{lng:r,ns:t});s.options.request(s.options,c,o,function(t,r){a+=1,l.push(t),u.push(r),a===e.length&&"function"==typeof i&&i(l,u)})})}}},{key:"reload",value:function(){var e=this,t=this.services,r=t.backendConnector,n=t.languageUtils,i=t.logger,s=r.language;if(!s||"cimode"!==s.toLowerCase()){var o=[],a=function(e){n.toResolveHierarchy(e).forEach(function(e){0>o.indexOf(e)&&o.push(e)})};a(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(e){return a(e)}),o.forEach(function(t){e.allOptions.ns.forEach(function(e){r.read(t,e,"read",null,null,function(n,s){n&&i.warn("loading namespace ".concat(e," for language ").concat(t," failed"),n),!n&&s&&i.log("loaded namespace ".concat(e," for language ").concat(t),s),r.loaded("".concat(t,"|").concat(e),n,s)})})})}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,td(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}();tf.type="backend";var tp=r(67421),tg=r(81221);e2.use(tp.Db).use(tf).init({fallbackLng:tg._g,partialBundledLanguages:!0,lng:tg._g,ns:["constants"],debug:!1,saveMissing:!1}).catch(e=>console.error("Error initializing i18n: ".concat(e)));var tm=e=>{window.__fathomClientQueue=window.__fathomClientQueue||[],window.__fathomClientQueue.push(e)},ty=()=>{window.__fathomIsLoading=!1,window.__fathomClientQueue=window.__fathomClientQueue||[],window.__fathomClientQueue.forEach(e=>{switch(e.type){case"trackPageview":tw(e.opts);return;case"trackGoal":tC(e.code,e.cents);return;case"trackEvent":tS(e.eventName,e.opts);return;case"enableTrackingForMe":tO();return;case"blockTrackingForMe":tx();return;case"setSite":tk(e.id);return}}),window.__fathomClientQueue=[]},tb=e=>{let t=/(https?)(?=:|\/|$)/;e.forEach(e=>{null!==t.exec(e)&&console.warn(`The include domain ${e} might fail to work as intended as it begins with a transfer protocol (http://, https://). Consider removing the protocol portion of the string.`)})},tv=(e,t)=>{if(window.__fathomIsLoading||window.fathom)return;window.__fathomIsLoading=!0;let r=document.createElement("script"),n=document.getElementsByTagName("script")[0]||document.querySelector("body");r.id="fathom-script",r.async=!0,r.setAttribute("data-site",e),r.src=t&&t.url?t.url:"https://cdn.usefathom.com/script.js",t&&(void 0!==t.auto&&r.setAttribute("data-auto",`${t.auto}`),void 0!==t.honorDNT&&r.setAttribute("data-honor-dnt",`${t.honorDNT}`),void 0!==t.canonical&&r.setAttribute("data-canonical",`${t.canonical}`),t.includedDomains&&(tb(t.includedDomains),r.setAttribute("data-included-domains",t.includedDomains.join(","))),t.excludedDomains&&(tb(t.excludedDomains),r.setAttribute("data-excluded-domains",t.excludedDomains.join(","))),t.spa&&r.setAttribute("data-spa",t.spa)),r.onload=ty,n.parentNode.insertBefore(r,n)},tw=e=>{window.fathom?e?window.fathom.trackPageview(e):window.fathom.trackPageview():tm({type:"trackPageview",opts:e})},tC=(e,t)=>{window.fathom?window.fathom.trackGoal(e,t):tm({type:"trackGoal",code:e,cents:t})},tS=(e,t)=>{window.fathom?window.fathom.trackEvent(e,t):tm({type:"trackEvent",eventName:e,opts:t})},tx=()=>{window.fathom?window.fathom.blockTrackingForMe():tm({type:"blockTrackingForMe"})},tO=()=>{window.fathom?window.fathom.enableTrackingForMe():tm({type:"enableTrackingForMe"})},tE=()=>{let e=localStorage.getItem("blockFathomTracking");return null===e||"true"!==e},tk=e=>{window.fathom?window.fathom.setSite(e):tm({type:"setSite",id:e})};let tP=()=>{let e=(0,p.useRouter)();return(0,g.useEffect)(()=>{function t(){tw()}return tv("PDIJVIET",{includedDomains:["krisenchat.de","www.krisenchat.de","krisenchat.at","www.krisenchat.at","krisen.chat","www.krisen.chat","krisenchat.ch","www.krisenchat.ch"],url:"https://planet-glowing.krisenchat.de/script.js"}),e.events.on("routeChangeComplete",t),()=>{e.events.off("routeChangeComplete",t)}},[e.events]),o};function tR(e){let{error:t}=e;return(0,a.jsx)(c.b,{statusCode:t.statusCode||400,title:t.message||t.name})}r(43067);let tj=()=>(0,a.jsx)("div",{className:"v-screen flex h-screen items-center justify-center",children:(0,a.jsx)("div",{className:"spinner-rings"})}),t_=ei(function(e){let{Component:t,pageProps:r}=e;tP();let n=(0,p.useRouter)();n.locale&&e2.language!==n.locale&&e2.changeLanguage(n.locale).catch(e=>console.log("Error changing language to ".concat(n.locale,": ").concat(e)));let i=t.getLayout||(e=>e),[s,o]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{o(!0)},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(f(),{children:[(0,a.jsx)("link",{rel:"preload",href:"/fonts/Inter-Roman-Latin.woff2",as:"font",crossOrigin:"",className:"jsx-1548c0da2b3e0888"}),(0,a.jsx)("meta",{charSet:"UTF-8",className:"jsx-1548c0da2b3e0888"}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0",className:"jsx-1548c0da2b3e0888"}),(0,a.jsx)("meta",{httpEquiv:"x-ua-compatible",content:"ie=edge",className:"jsx-1548c0da2b3e0888"}),(0,a.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png",className:"jsx-1548c0da2b3e0888"}),(0,a.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png",className:"jsx-1548c0da2b3e0888"}),(0,a.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png",className:"jsx-1548c0da2b3e0888"}),(0,a.jsx)("link",{rel:"manifest",href:"/site.webmanifest",className:"jsx-1548c0da2b3e0888"}),(0,a.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#000",className:"jsx-1548c0da2b3e0888"}),(0,a.jsx)("meta",{name:"msapplication-TileColor",content:"#ffffff",className:"jsx-1548c0da2b3e0888"}),(0,a.jsx)("meta",{name:"theme-color",content:"#ffffff",className:"jsx-1548c0da2b3e0888"}),(0,a.jsx)("link",{rel:"shortcut icon",type:"image/x-icon",href:"/favicon.ico",className:"jsx-1548c0da2b3e0888"}),(0,a.jsx)("link",{rel:"icon",type:"image/x-icon",href:"/favicon.ico",className:"jsx-1548c0da2b3e0888"}),(0,a.jsx)("title",{className:"jsx-1548c0da2b3e0888",children:"krisenchat | 24/7 Krisenberatung per Chat"})]}),(0,a.jsx)(u(),{id:"1548c0da2b3e0888",children:'@font-face{font-family:Inter;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/fonts/Inter-Roman-Latin.woff2)format("woff2")}body{font-family:"Inter",sans-serif;font-display:auto;font-style:normal}'}),(0,a.jsx)(b,{FallbackComponent:tR,onReset:(0,h._C)().reset,children:s?(0,a.jsx)(g.Suspense,{children:i((0,a.jsx)(t,{...r,className:"jsx-1548c0da2b3e0888 "+(r&&null!=r.className&&r.className||"")}))}):(0,a.jsx)(tj,{})})]})})},91479:()=>{},43067:()=>{},5152:(e,t,r)=>{e.exports=r(32602)},9008:(e,t,r)=>{e.exports=r(23867)},11163:(e,t,r)=>{e.exports=r(43079)},69921:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case h:case s:case a:case o:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case g:case l:return e;default:return t}}case i:return t}}}function S(e){return C(e)===h}t.AsyncMode=c,t.ConcurrentMode=h,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=d,t.Fragment=s,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=a,t.StrictMode=o,t.Suspense=f,t.isAsyncMode=function(e){return S(e)||C(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return C(e)===u},t.isContextProvider=function(e){return C(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return C(e)===d},t.isFragment=function(e){return C(e)===s},t.isLazy=function(e){return C(e)===m},t.isMemo=function(e){return C(e)===g},t.isPortal=function(e){return C(e)===i},t.isProfiler=function(e){return C(e)===a},t.isStrictMode=function(e){return C(e)===o},t.isSuspense=function(e){return C(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===h||e===a||e===o||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===v||e.$$typeof===w||e.$$typeof===y)},t.typeOf=C},59864:(e,t,r)=>{"use strict";e.exports=r(69921)},84419:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>X,vB:()=>ee,qC:()=>Y,Pz:()=>et});var n=function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)},e.prototype.getByKey=function(e){return this.keyToValue.get(e)},e.prototype.getByValue=function(e){return this.valueToKey.get(e)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e}(),i=function(){function e(e){this.generateIdentifier=e,this.kv=new n}return e.prototype.register=function(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(e){return this.kv.getByValue(e)},e.prototype.getValue=function(e){return this.kv.getByKey(e)},e}(),s=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return s(t,e),t.prototype.register=function(t,r){"object"==typeof r?(r.allowProps&&this.classToAllowedProps.set(t,r.allowProps),e.prototype.register.call(this,t,r.identifier)):e.prototype.register.call(this,t,r)},t.prototype.getAllowedProps=function(e){return this.classToAllowedProps.get(e)},t}(i),a=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o};function l(e,t){Object.entries(e).forEach(function(e){var r=a(e,2),n=r[0];return t(r[1],n)})}function u(e,t){return -1!==e.indexOf(t)}function c(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n))return n}}var h=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return function(e,t){var r=function(e){if("values"in Object)return Object.values(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}(e);if("find"in r)return r.find(t);for(var n=0;n<r.length;n++){var i=r[n];if(t(i))return i}}(this.transfomers,function(t){return t.isApplicable(e)})},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),d=function(e){return void 0===e},f=function(e){return"object"==typeof e&&null!==e&&e!==Object.prototype&&(null===Object.getPrototypeOf(e)||e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)},p=function(e){return f(e)&&0===Object.keys(e).length},g=function(e){return Array.isArray(e)},m=function(e){return e instanceof Map},y=function(e){return e instanceof Set},b=function(e){return"Symbol"===Object.prototype.toString.call(e).slice(8,-1)},v=function(e){return"number"==typeof e&&isNaN(e)},w=function(e){return"boolean"==typeof e||null===e||d(e)||"number"==typeof e&&!isNaN(e)||"string"==typeof e||b(e)},C=function(e){return e.replace(/\./g,"\\.")},S=function(e){return e.map(String).map(C).join(".")},x=function(e){for(var t=[],r="",n=0;n<e.length;n++){var i=e.charAt(n);if("\\"===i&&"."===e.charAt(n+1)){r+=".",n++;continue}if("."===i){t.push(r),r="";continue}r+=i}var s=r;return t.push(s),t},O=function(){return(O=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},E=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},k=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};function P(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}var R=[P(d,"undefined",function(){return null},function(){}),P(function(e){return"bigint"==typeof e},"bigint",function(e){return e.toString()},function(e){return"undefined"!=typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),P(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),P(function(e){return e instanceof Error},"Error",function(e,t){var r={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(t){r[t]=e[t]}),r},function(e,t){var r=Error(e.message);return r.name=e.name,r.stack=e.stack,t.allowedErrorProps.forEach(function(t){r[t]=e[t]}),r}),P(function(e){return e instanceof RegExp},"regexp",function(e){return""+e},function(e){return new RegExp(e.slice(1,e.lastIndexOf("/")),e.slice(e.lastIndexOf("/")+1))}),P(y,"set",function(e){return k([],E(e.values()))},function(e){return new Set(e)}),P(m,"map",function(e){return k([],E(e.entries()))},function(e){return new Map(e)}),P(function(e){var t;return v(e)||(t=e)===1/0||t===-1/0},"number",function(e){return v(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),P(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),P(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function j(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}var _=j(function(e,t){return!!b(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,r){var n=r.symbolRegistry.getValue(t[1]);if(!n)throw Error("Trying to deserialize unknown symbol");return n}),F=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),A=j(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return k([],E(e))},function(e,t){var r=F[t[1]];if(!r)throw Error("Trying to deserialize unknown typed array");return new r(e)});function T(e,t){return null!=e&&!!e.constructor&&!!t.classRegistry.getIdentifier(e.constructor)}var N=j(T,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var r=t.classRegistry.getAllowedProps(e.constructor);if(!r)return O({},e);var n={};return r.forEach(function(t){n[t]=e[t]}),n},function(e,t,r){var n=r.classRegistry.getValue(t[1]);if(!n)throw Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(n.prototype),e)}),I=j(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]},function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)},function(e,t,r){var n=r.customTransformerRegistry.findByName(t[1]);if(!n)throw Error("Trying to deserialize unknown custom value");return n.deserialize(e)}),L=[N,_,I,A],D=function(e,t){var r=c(L,function(r){return r.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation(e,t)};var n=c(R,function(r){return r.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation}},M={};R.forEach(function(e){M[e.annotation]=e});var $=function(e,t,r){if(g(t))switch(t[0]){case"symbol":return _.untransform(e,t,r);case"class":return N.untransform(e,t,r);case"custom":return I.untransform(e,t,r);case"typed-array":return A.untransform(e,t,r);default:throw Error("Unknown transformation: "+t)}else{var n=M[t];if(!n)throw Error("Unknown transformation: "+t);return n.untransform(e,r)}},U=function(e,t){for(var r=e.keys();t>0;)r.next(),t--;return r.next().value};function B(e){if(u(e,"__proto__"))throw Error("__proto__ is not allowed as a property");if(u(e,"prototype"))throw Error("prototype is not allowed as a property");if(u(e,"constructor"))throw Error("constructor is not allowed as a property")}var z=function(e,t,r){if(B(t),0===t.length)return r(e);for(var n=e,i=0;i<t.length-1;i++){var s=t[i];if(g(n))n=n[+s];else if(f(n))n=n[s];else if(y(n)){var o=+s;n=U(n,o)}else if(m(n)){if(i===t.length-2)break;var o=+s,a=0==+t[++i]?"key":"value",l=U(n,o);switch(a){case"key":n=l;break;case"value":n=n.get(l)}}}var u=t[t.length-1];if((g(n)||f(n))&&(n[u]=r(n[u])),y(n)){var c=U(n,+u),h=r(c);c!==h&&(n.delete(c),n.add(h))}if(m(n)){var o=+t[t.length-2],d=U(n,o),a=0==+u?"key":"value";switch(a){case"key":var p=r(d);n.set(p,n.get(d)),p!==d&&n.delete(d);break;case"value":n.set(d,r(n.get(d)))}}return e},q=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},H=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},K=function(e,t,r,n,i){if(void 0===n&&(n=[]),void 0===i&&(i=[]),w(e)||(s=n,(o=t.get(e))?o.push(s):t.set(e,[s])),!(f(e)||g(e)||m(e)||y(e)||T(e,r))){var s,o,a,c=D(e,r);return c?{transformedValue:c.value,annotations:[c.type]}:{transformedValue:e}}if(u(i,e))return{transformedValue:null};var h=D(e,r),d=null!==(a=null==h?void 0:h.value)&&void 0!==a?a:e;w(e)||(i=H(H([],q(i)),[e]));var b=g(d)?[]:{},v={};return(l(d,function(e,s){var o=K(e,t,r,H(H([],q(n)),[s]),i);b[s]=o.transformedValue,g(o.annotations)?v[s]=o.annotations:f(o.annotations)&&l(o.annotations,function(e,t){v[C(s)+"."+t]=e})}),p(v))?{transformedValue:b,annotations:h?[h.type]:void 0}:{transformedValue:b,annotations:h?[h.type,v]:v}};function V(e){return Object.prototype.toString.call(e).slice(8,-1)}function Q(e){return"Array"===V(e)}var G=function(){return(G=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},J=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},Z=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},W=function(){function e(){this.classRegistry=new o,this.symbolRegistry=new i(function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""}),this.customTransformerRegistry=new h,this.allowedErrorProps=[]}return e.prototype.serialize=function(e){var t,r,n=new Map,i=K(e,n,this),s={json:i.transformedValue};i.annotations&&(s.meta=G(G({},s.meta),{values:i.annotations}));var o=(t={},r=void 0,(n.forEach(function(e){if(!(e.length<=1)){var n=q(e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length})),i=n[0],s=n.slice(1);0===i.length?r=s.map(S):t[S(i)]=s.map(S)}}),r)?p(t)?[r]:[r,t]:p(t)?void 0:t);return o&&(s.meta=G(G({},s.meta),{referentialEqualities:o})),s},e.prototype.deserialize=function(e){var t,r,n,i=e.json,s=e.meta,o=function e(t,r={}){return Q(t)?t.map(t=>e(t,r)):!function(e){if("Object"!==V(e))return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(t)?t:[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)].reduce((n,i)=>{if(Q(r.props)&&!r.props.includes(i))return n;let s=e(t[i],r);return function(e,t,r,n,i){let s=({}).propertyIsEnumerable.call(n,t)?"enumerable":"nonenumerable";"enumerable"===s&&(e[t]=r),i&&"nonenumerable"===s&&Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0})}(n,i,s,t,r.nonenumerable),n},{})}(i);return(null==s?void 0:s.values)&&(t=o,r=s.values,n=this,function e(t,r,n){if(void 0===n&&(n=[]),t){if(!g(t)){l(t,function(t,i){return e(t,r,H(H([],q(n)),q(x(i))))});return}var i=q(t,2),s=i[0],o=i[1];o&&l(o,function(t,i){e(t,r,H(H([],q(n)),q(x(i))))}),r(s,n)}}(r,function(e,r){t=z(t,r,function(t){return $(t,e,n)})}),o=t),(null==s?void 0:s.referentialEqualities)&&(o=function(e,t){function r(t,r){var n,i,s=(n=e,B(i=x(r)),i.forEach(function(e){n=n[e]}),n);t.map(x).forEach(function(t){e=z(e,t,function(){return s})})}if(g(t)){var n=q(t,2),i=n[0],s=n[1];i.forEach(function(t){e=z(e,x(t),function(){return e})}),s&&l(s,r)}else l(t,r);return e}(o,s.referentialEqualities)),o},e.prototype.stringify=function(e){return JSON.stringify(this.serialize(e))},e.prototype.parse=function(e){return this.deserialize(JSON.parse(e))},e.prototype.registerClass=function(e,t){this.classRegistry.register(e,t)},e.prototype.registerSymbol=function(e,t){this.symbolRegistry.register(e,t)},e.prototype.registerCustom=function(e,t){this.customTransformerRegistry.register(G({name:t},e))},e.prototype.allowErrorProps=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];(e=this.allowedErrorProps).push.apply(e,Z([],J(t)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e}();let X=W;var Y=W.serialize,ee=W.deserialize,et=W.stringify;W.parse},53250:(e,t,r)=>{"use strict";var n=r(67294),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=n.useState,o=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=s({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return a(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),o(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},61688:(e,t,r)=>{"use strict";e.exports=r(53250)},71739:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},61823:()=>{},80656:()=>{},83154:(e,t,r)=>{var n;if("function"==typeof fetch&&(n=void 0!==r.g&&r.g.fetch?r.g.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),"undefined"==typeof window){var i=n||r(54098);i.default&&(i=i.default),t.default=i,e.exports=t.default}},29684:(e,t,r)=>{"use strict";r.d(t,{b:()=>T,s:()=>V});var n,i=r(28784),s=r(67294),o=r(8679),a=r(84419),l=r(22750);let u=({client:e=globalThis.queryClient,contextSharing:t=!1,dehydratedState:r,hydrateOptions:n,children:i})=>e?s.createElement(l.aH,{client:e||globalThis.queryClient,contextSharing:t},s.createElement(l.pO,{state:r,options:n},i)):i;var c=r(5152);r(48620),r(44343);var h=r(44695),d=Object.defineProperty,f=(Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols),p=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,m=(e,t,r)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,y=(e,t)=>{for(var r in t||(t={}))p.call(t,r)&&m(e,r,t[r]);if(f)for(var r of f(t))g.call(t,r)&&m(e,r,t[r]);return e},b=(e,t)=>{var r={};for(var n in e)p.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&f)for(var n of f(e))0>t.indexOf(n)&&g.call(e,n)&&(r[n]=e[n]);return r};let v=s.createContext(null);var w=Object.defineProperty,C=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,O=(e,t,r)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,E=(e,t)=>{for(var r in t||(t={}))S.call(t,r)&&O(e,r,t[r]);if(C)for(var r of C(t))x.call(t,r)&&O(e,r,t[r]);return e},k=(e,t,r)=>new Promise((n,i)=>{var s=e=>{try{a(r.next(e))}catch(e){i(e)}},o=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(s,o);a((r=r.apply(e,t)).next())});let P=h("blitz:errorboundary"),R=(e=[],t=[])=>e.length!==t.length||e.some((e,r)=>!Object.is(e,t[r])),j={error:null};(class extends s.Component{constructor(){super(...arguments),this.state=j,this.updatedWithError=!1,this.resetErrorBoundary=(...e)=>{var t,r;null==(r=(t=this.props).onReset)||r.call(t,...e),this.reset()},this.handleRouteChange=()=>{var e,t;P("Resetting error boundary on route change"),null==(t=(e=this.props).onReset)||t.call(e),this.reset()}}static getDerivedStateFromError(e){return{error:e}}reset(){this.updatedWithError=!1,this.setState(j)}componentDidCatch(e,t){return k(this,null,function*(){var r,n;if(e instanceof i.R){P("Redirecting from ErrorBoundary to",e.url),yield this.props.router.push(e.url);return}null==(n=(r=this.props).onError)||n.call(r,e,t)})}componentDidMount(){var e,t;let{error:r}=this.state;null!==r&&(this.updatedWithError=!0),null==(t=null==(e=this.props.router)?void 0:e.events)||t.on("routeChangeComplete",this.handleRouteChange)}componentWillUnmount(){var e,t;null==(t=null==(e=this.props.router)?void 0:e.events)||t.off("routeChangeComplete",this.handleRouteChange)}componentDidUpdate(e){var t,r;let{error:n}=this.state,{resetKeys:i}=this.props;if(null!==n&&!this.updatedWithError){this.updatedWithError=!0;return}null!==n&&R(e.resetKeys,i)&&(null==(r=(t=this.props).onResetKeysChange)||r.call(t,e.resetKeys,i),this.reset())}render(){let{error:e}=this.state,{fallbackRender:t,FallbackComponent:r,fallback:n}=this.props;if(null!==e){let o={error:e,resetErrorBoundary:this.resetErrorBoundary};if(e instanceof i.R)return null;if(s.isValidElement(n))return n;if("function"==typeof t)return t(o);if(r)return s.createElement(r,E({},o));throw Error("<ErrorBoundary> requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children}}).contextType=v;let _=c(()=>Promise.resolve().then(r.t.bind(r,9008,19)).then(e=>e.default),{ssr:!1,loading:()=>null}),F={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function A({res:e,err:t}){return{statusCode:e&&e.statusCode?e.statusCode:t?t.statusCode:404}}class T extends s.Component{render(){let{statusCode:e}=this.props,t=this.props.title||F[e]||"An unexpected error has occurred";return s.createElement("div",{style:N.error},s.createElement(_,null,s.createElement("title",null,e?`${e}: ${t}`:"Application error: a client-side exception has occurred")),s.createElement("div",null,s.createElement("style",{dangerouslySetInnerHTML:{__html:"body { margin: 0 }"}}),e?s.createElement("h1",{style:N.h1},e):null,s.createElement("div",{style:N.desc},s.createElement("h2",{style:N.h2},this.props.title||e?t:s.createElement(s.Fragment,null,"Application error: a client-side exception has occurred (see the browser console for more information)"),"."))))}}T.displayName="ErrorPage",T.getInitialProps=A,T.origGetInitialProps=A;let N={error:{color:"#000",background:"#fff",fontFamily:'-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block",textAlign:"left",lineHeight:"49px",height:"49px",verticalAlign:"middle"},h1:{display:"inline-block",borderRight:"1px solid rgba(0, 0, 0,.3)",margin:0,marginRight:"20px",padding:"10px 23px 10px 0",fontSize:"24px",fontWeight:500,verticalAlign:"top"},h2:{fontSize:"14px",fontWeight:"normal",lineHeight:"inherit",margin:0,padding:0}};var I=Object.defineProperty,L=Object.defineProperties,D=Object.getOwnPropertyDescriptors,M=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,B=(e,t,r)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z=(e,t)=>{for(var r in t||(t={}))$.call(t,r)&&B(e,r,t[r]);if(M)for(var r of M(t))U.call(t,r)&&B(e,r,t[r]);return e},q=(e,t)=>L(e,D(t));let H=c(()=>Promise.resolve().then(r.t.bind(r,9008,19)).then(e=>e.default),{ssr:!1,loading:()=>null}),K=e=>function(t){let r=r=>{var n;let i=s.useMemo(()=>e(r.Component),[r.Component]);s.useEffect(()=>{setTimeout(()=>{document.documentElement.classList.add("blitz-first-render-complete")})},[]);let o=s.createElement(s.Fragment,null,r.Component.suppressFirstRenderFlicker&&s.createElement(J,null),s.createElement(t,q(z({},r),{Component:i})));return s.createElement(u,{dehydratedState:null==(n=r.pageProps)?void 0:n.dehydratedState},o)};return Object.assign(r,t),function(e){function t(t){return s.createElement(e,y({},function(e){let{_superjson:t}=e,r=b(e,["_superjson"]);return a.ZP.deserialize({json:r,meta:t})}(t)))}return o(t,e),t}(r)},V=({plugins:e})=>{let{exports:t,withPlugins:r}=(0,i.d)({plugins:e});return z({withBlitz:K(r)},t)},Q=`
  body::before {
    content: "";
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 99999;
    background-color: white;
  }

  .blitz-first-render-complete body::before {
    display: none;
  }
`,G=`
  body::before {
    content: none
  }
`,J=()=>s.createElement(H,null,s.createElement("style",{dangerouslySetInnerHTML:{__html:Q}}),s.createElement("noscript",null,s.createElement("style",{dangerouslySetInnerHTML:{__html:G}})))},29947:(e,t,r)=>{"use strict";r.r(t),r.d(t,{emptyQueryFn:()=>w,getInfiniteQueryKey:()=>P,getQueryCacheFunctions:()=>v,getQueryClient:()=>b,getQueryData:()=>_,getQueryKey:()=>k,getQueryKeyFromUrlAndParams:()=>E,initializeQueryClient:()=>y,invalidateQuery:()=>R,requestIdleCallback:()=>m,sanitizeMutation:()=>O,sanitizeQuery:()=>x,setQueryData:()=>j,validateQueryFn:()=>C});var n=r(93645),i=r(84419),s=r(11608),o=r(34155),a=Object.defineProperty,l=Object.defineProperties,u=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,f=(e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p=(e,t)=>{for(var r in t||(t={}))h.call(t,r)&&f(e,r,t[r]);if(c)for(var r of c(t))d.call(t,r)&&f(e,r,t[r]);return e},g=(e,t)=>l(e,u(t));let m="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},y=()=>{let e=!0;return o.env.CLI_COMMAND_CONSOLE||o.env.CLI_COMMAND_DB||(e=!!globalThis.__BLITZ_SUSPENSE_ENABLED),new n.S({defaultOptions:{queries:g(p({},s.c&&{cacheTime:0}),{suspense:e,retry:(e,t)=>"Network request failed"===t.message&&e<=3})}})},b=()=>globalThis.queryClient,v=(e,t)=>({setQueryData:(r,n={refetch:!0})=>j(e,t,r,n)}),w=(()=>{let e=()=>new Promise(()=>{});return e._isRpcClient=!0,e})(),C=e=>{if(s.a&&!e._isRpcClient&&(0,s.i)())throw Error('Either the file path to your resolver is incorrect (must be in a "queries" or "mutations" folder that isn\'t nested inside "pages" or "api") or you are trying to use Blitz\'s useQuery to fetch from third-party APIs (to do that, import useQuery directly from "@tanstack/react-query").')},S=e=>t=>{if(s.c)return t;if(C(t),t._resolverType!==e&&(0,s.i)())throw Error(`"${"mutation"===e?"useMutation":"useQuery"}" was expected to be called with a ${e} but was called with a "${t._resolverType}"`);return t},x=S("query"),O=S("mutation"),E=(e,...t)=>{let r=[e];if(1===t.length){let e=t[0];r.push((0,i.qC)("function"==typeof e?e():e))}return r};function k(e,...t){if(void 0===e)throw Error("getQueryKey is missing the first argument - it must be a resolver function");return E(x(e)._routePath,...t)}function P(e,t){if(void 0===e)throw Error("getInfiniteQueryKey is missing the first argument - it must be a resolver function");return[...E(x(e)._routePath,t),"infinite"]}let R=(e,...t)=>{let r=void 0===e?void 0:k(e,...t);return b().invalidateQueries(r)};function j(e,t,r,n={refetch:!0}){if(void 0===e)throw Error("setQueryData is missing the first argument - it must be a resolver function");let i=k(e,t);return new Promise(o=>{let a;b().setQueryData(i,r),n.refetch&&(a=R(e,t)),s.a?m(()=>{o(a)}):o(a)})}function _(e,t){if(void 0===e)throw Error("getQueryData is missing the first argument - it must be a resolver function");let r=k(e,t);return b().getQueryData(r)}},22750:(e,t,r)=>{"use strict";r.d(t,{_C:()=>o,aH:()=>i,pO:()=>s});var n=r(59162);r(98337),r(89470),r(84419),r(67294),r(44343);let{QueryClientProvider:i,Hydrate:s,useQueryErrorResetBoundary:o}=n.reactQueryClientReExports},59162:(e,t,r)=>{"use strict";r.d(t,{wT:()=>B,reactQueryClientReExports:()=>j,Db:()=>_});var n=r(93645),i=r(28784),s=r(67294);let o=s.createContext(void 0),a=s.createContext(!1);function l(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=o),window.ReactQueryClientContext):o)}let u=({context:e}={})=>{let t=s.useContext(l(e,s.useContext(a)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},c=({client:e,children:t,context:r,contextSharing:n=!1})=>{s.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let i=l(r,n);return s.createElement(a.Provider,{value:!r&&n},s.createElement(i.Provider,{value:e},t))},h=s.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),d=r(61688).useSyncExternalStore;var f=r(32161),p=r(89886),g=r(30081),m=r(33989);class y extends m.l{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.client.defaultMutationOptions(e),(0,f.VS)(t,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this})}onUnsubscribe(){if(!this.listeners.length){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:(0,p.R)(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){g.V.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var t,r,n,i,s,o,a,l;e.onSuccess?(null==(t=(r=this.mutateOptions).onSuccess)||t.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(n=(i=this.mutateOptions).onSettled)||n.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&&(null==(s=(o=this.mutateOptions).onError)||s.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(a=(l=this.mutateOptions).onSettled)||a.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}e.listeners&&this.listeners.forEach(e=>{e(this.currentResult)})})}}function b(){}var v=r(29947);r(44343),r(84419);var w=r(34155);let C=({children:e})=>{let[t]=s.useState(globalThis.queryClient);return s.createElement(c,{client:t},e)};var S=Object.defineProperty,x=(Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols),O=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,k=(e,t,r)=>t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))O.call(t,r)&&k(e,r,t[r]);if(x)for(var r of x(t))E.call(t,r)&&k(e,r,t[r]);return e},R=(e,t)=>{var r={};for(var n in e)O.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&x)for(var n of x(e))0>t.indexOf(n)&&E.call(e,n)&&(r[n]=e[n]);return r};let j={useQueryErrorResetBoundary:()=>s.useContext(h),QueryClientProvider:c,Hydrate:({children:e,options:t,state:r})=>(!function(e,t={}){let r=u({context:t.context}),n=s.useRef(t);n.current=t,s.useMemo(()=>{e&&function(e,t,r){if("object"!=typeof t||null===t)return;let n=e.getMutationCache(),i=e.getQueryCache(),s=t.mutations||[],o=t.queries||[];s.forEach(t=>{var i;n.build(e,{...null==r?void 0:null==(i=r.defaultOptions)?void 0:i.mutations,mutationKey:t.mutationKey},t.state)}),o.forEach(t=>{var n;let s=i.get(t.queryHash);if(s){s.state.dataUpdatedAt<t.state.dataUpdatedAt&&s.setState(t.state);return}i.build(e,{...null==r?void 0:null==(n=r.defaultOptions)?void 0:n.queries,queryKey:t.queryKey,queryHash:t.queryHash},t.state)})}(r,e,n.current)},[r,e])}(r,t),e)};function _(e,t){let r=(0,v.sanitizeMutation)(e),n=function(e,t,r){var n,i;let o=(0,f.lV)(e,t,void 0),a=u({context:o.context}),[l]=s.useState(()=>new y(a,o));s.useEffect(()=>{l.setOptions(o)},[l,o]);let c=d(s.useCallback(e=>l.subscribe(g.V.batchCalls(e)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),h=s.useCallback((e,t)=>{l.mutate(e,t).catch(b)},[l]);if(c.error&&(n=l.options.useErrorBoundary,i=[c.error],"function"==typeof n?n(...i):!!n))throw c.error;return{...c,mutate:h,mutateAsync:c.mutate}}(e=>r(e,{fromQueryHook:!0}),P({throwOnError:!0},t)),{mutate:i,mutateAsync:o}=n;return[o,R(n,["mutate","mutateAsync"])]}var F=Object.defineProperty,A=Object.defineProperties,T=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,D=(e,t,r)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M=(e,t)=>{for(var r in t||(t={}))I.call(t,r)&&D(e,r,t[r]);if(N)for(var r of N(t))L.call(t,r)&&D(e,r,t[r]);return e},$=(e,t)=>A(e,T(t)),U=(e,t,r)=>new Promise((n,i)=>{var s=e=>{try{a(r.next(e))}catch(e){i(e)}},o=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(s,o);a((r=r.apply(e,t)).next())});let B=(0,i.c)(e=>{let t=(()=>{var t,r;let{reactQueryOptions:i}=e||{},s=null==(r=null==(t=null==i?void 0:i.queries)?void 0:t.suspense)||r;return w.env.CLI_COMMAND_CONSOLE||w.env.CLI_COMMAND_DB||(globalThis.__BLITZ_SUSPENSE_ENABLED=s),new n.S({defaultOptions:$(M({},i),{queries:$(M($(M({},"undefined"==typeof window&&{cacheTime:0}),{retry:(e,t)=>"Network request failed"===t.message&&e<=3}),null==i?void 0:i.queries),{suspense:s})})})})();return globalThis.queryClient=t,{events:{onSessionCreated:()=>U(void 0,null,function*(){!function(){setTimeout(()=>U(this,null,function*(){(yield r.e(474).then(r.t.bind(r,49474,19))).default("blitz:rpc")("Invalidating react-query cache..."),yield t.cancelQueries(),yield t.resetQueries(),t.getMutationCache().clear()}),100)}()})},middleware:{},exports:()=>({queryClient:t,BlitzProvider:C})}})},15761:(e,t,r)=>{"use strict";r.d(t,{j:()=>o});var n=r(33989),i=r(32161);class s extends n.l{constructor(){super(),this.setup=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused=e,e&&this.onFocus()}onFocus(){this.listeners.forEach(e=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}let o=new s},30819:(e,t,r)=>{"use strict";r.d(t,{_:()=>n});let n=console},89886:(e,t,r)=>{"use strict";r.d(t,{R:()=>l,m:()=>a});var n=r(30819),i=r(30081),s=r(89643),o=r(72379);class a extends s.F{constructor(e){super(),this.options={...e.defaultOptions,...e.options},this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||n._,this.observers=[],this.state=e.state||l(),this.updateCacheTime(this.options.cacheTime),this.scheduleGc()}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()}async execute(){var e,t,r,n,i,s,a,l,u,c,h,d,f,p,g,m;let y="loading"===this.state.status;try{if(!y){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(a=(l=this.mutationCache.config).onMutate)?void 0:a.call(l,this.state.variables,this));let e=await (null==(u=(c=this.options).onMutate)?void 0:u.call(c,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}let h=await (()=>{var e;return this.retryer=(0,o.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,h,this.state.variables,this.state.context,this)),await (null==(r=(n=this.options).onSuccess)?void 0:r.call(n,h,this.state.variables,this.state.context)),await (null==(i=(s=this.options).onSettled)?void 0:i.call(s,h,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:h}),h}catch(e){try{throw await (null==(h=(d=this.mutationCache.config).onError)?void 0:h.call(d,e,this.state.variables,this.state.context,this)),await (null==(f=(p=this.options).onError)?void 0:f.call(p,e,this.state.variables,this.state.context)),await (null==(g=(m=this.options).onSettled)?void 0:g.call(m,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,o.Kw)(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),i.V.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function l(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}},30081:(e,t,r)=>{"use strict";r.d(t,{V:()=>i});var n=r(32161);let i=function(){let e=[],t=0,r=e=>{e()},i=e=>{e()},s=i=>{t?e.push(i):(0,n.A4)(()=>{r(i)})},o=()=>{let t=e;e=[],t.length&&(0,n.A4)(()=>{i(()=>{t.forEach(e=>{r(e)})})})};return{batch:e=>{let r;t++;try{r=e()}finally{--t||o()}return r},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{i=e}}}()},96474:(e,t,r)=>{"use strict";r.d(t,{N:()=>o});var n=r(33989),i=r(32161);class s extends n.l{constructor(){super(),this.setup=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("online",t,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online=e,e&&this.onOnline()}onOnline(){this.listeners.forEach(e=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}let o=new s},93645:(e,t,r)=>{"use strict";r.d(t,{S:()=>m});var n=r(32161),i=r(30819),s=r(30081),o=r(72379),a=r(89643);class l extends a.F{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||i._,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){let r=(0,n.oE)(this.state.data,e,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),r}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;let r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(n.ZT).catch(n.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,n.Kp)(this.state.dataUpdatedAt,e)}onFocus(){var e;let t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;let t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var r,i,s,a;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(s=this.retryer)||s.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}Array.isArray(this.options.queryKey);let l=(0,n.G9)(),u={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(l)return this.abortSignalConsumed=!0,l.signal}})};c(u);let h={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(u)):Promise.reject("Missing queryFn")};c(h),null==(r=this.options.behavior)||r.onFetch(h),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(i=h.fetchOptions)?void 0:i.meta))&&this.dispatch({type:"fetch",meta:null==(a=h.fetchOptions)?void 0:a.meta});let d=e=>{if((0,o.DV)(e)&&e.silent||this.dispatch({type:"error",error:e}),!(0,o.DV)(e)){var t,r;null==(t=(r=this.cache.config).onError)||t.call(r,e,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,o.Mz)({fn:h.fetchFn,abort:null==l?void 0:l.abort.bind(l),onSuccess:e=>{var t,r;if(void 0===e){d(Error("undefined"));return}this.setData(e),null==(t=(r=this.cache.config).onSuccess)||t.call(r,e,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var r,n;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(r=e.meta)?r:null,fetchStatus:(0,o.Kw)(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(n=e.dataUpdatedAt)?n:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=e.error;if((0,o.DV)(i)&&i.revert&&this.revertState)return{...this.revertState};return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),s.V.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}var u=r(33989);class c extends u.l{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,r){var i;let s=t.queryKey,o=null!=(i=t.queryHash)?i:(0,n.Rm)(s,t),a=this.get(o);return a||(a=new l({cache:this,logger:e.getLogger(),queryKey:s,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){let t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){s.V.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){let[r]=(0,n.I6)(e,t);return void 0===r.exact&&(r.exact=!0),this.queries.find(e=>(0,n._x)(r,e))}findAll(e,t){let[r]=(0,n.I6)(e,t);return Object.keys(r).length>0?this.queries.filter(e=>(0,n._x)(r,e)):this.queries}notify(e){s.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){s.V.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){s.V.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}var h=r(89886);class d extends u.l{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,r){let n=new h.m({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(n),n}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){s.V.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>(0,n.X7)(e,t))}findAll(e){return this.mutations.filter(t=>(0,n.X7)(e,t))}notify(e){s.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.mutations.filter(e=>e.state.isPaused);return s.V.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(n.ZT)),Promise.resolve()))}}var f=r(15761),p=r(96474);function g(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class m{constructor(e={}){this.queryCache=e.queryCache||new c,this.mutationCache=e.mutationCache||new d,this.logger=e.logger||i._,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=f.j.subscribe(()=>{f.j.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=p.N.subscribe(()=>{p.N.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){let[r]=(0,n.I6)(e,t);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data}ensureQueryData(e,t,r){let i=(0,n._v)(e,t,r),s=this.getQueryData(i.queryKey);return s?Promise.resolve(s):this.fetchQuery(i)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let i=this.queryCache.find(e),s=null==i?void 0:i.state.data,o=(0,n.SE)(t,s);if(void 0===o)return;let a=(0,n._v)(e),l=this.defaultQueryOptions(a);return this.queryCache.build(this,l).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return s.V.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state}removeQueries(e,t){let[r]=(0,n.I6)(e,t),i=this.queryCache;s.V.batch(()=>{i.findAll(r).forEach(e=>{i.remove(e)})})}resetQueries(e,t,r){let[i,o]=(0,n.I6)(e,t,r),a=this.queryCache,l={type:"active",...i};return s.V.batch(()=>(a.findAll(i).forEach(e=>{e.reset()}),this.refetchQueries(l,o)))}cancelQueries(e,t,r){let[i,o={}]=(0,n.I6)(e,t,r);return void 0===o.revert&&(o.revert=!0),Promise.all(s.V.batch(()=>this.queryCache.findAll(i).map(e=>e.cancel(o)))).then(n.ZT).catch(n.ZT)}invalidateQueries(e,t,r){let[i,o]=(0,n.I6)(e,t,r);return s.V.batch(()=>{var e,t;if(this.queryCache.findAll(i).forEach(e=>{e.invalidate()}),"none"===i.refetchType)return Promise.resolve();let r={...i,type:null!=(e=null!=(t=i.refetchType)?t:i.type)?e:"active"};return this.refetchQueries(r,o)})}refetchQueries(e,t,r){let[i,o]=(0,n.I6)(e,t,r),a=Promise.all(s.V.batch(()=>this.queryCache.findAll(i).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...o,cancelRefetch:null==(t=null==o?void 0:o.cancelRefetch)||t,meta:{refetchPage:i.refetchPage}})}))).then(n.ZT);return null!=o&&o.throwOnError||(a=a.catch(n.ZT)),a}fetchQuery(e,t,r){let i=(0,n._v)(e,t,r),s=this.defaultQueryOptions(i);void 0===s.retry&&(s.retry=!1);let o=this.queryCache.build(this,s);return o.isStaleByTime(s.staleTime)?o.fetch(s):Promise.resolve(o.state.data)}prefetchQuery(e,t,r){return this.fetchQuery(e,t,r).then(n.ZT).catch(n.ZT)}fetchInfiniteQuery(e,t,r){let i=(0,n._v)(e,t,r);return i.behavior={onFetch:e=>{e.fetchFn=()=>{var t,r,n,i,s,o,a;let l;let u=null==(t=e.fetchOptions)?void 0:null==(r=t.meta)?void 0:r.refetchPage,c=null==(n=e.fetchOptions)?void 0:null==(i=n.meta)?void 0:i.fetchMore,h=null==c?void 0:c.pageParam,d=(null==c?void 0:c.direction)==="forward",f=(null==c?void 0:c.direction)==="backward",p=(null==(s=e.state.data)?void 0:s.pages)||[],m=(null==(o=e.state.data)?void 0:o.pageParams)||[],y=m,b=!1,v=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t,r;return null!=(t=e.signal)&&t.aborted?b=!0:null==(r=e.signal)||r.addEventListener("abort",()=>{b=!0}),e.signal}})},w=e.options.queryFn||(()=>Promise.reject("Missing queryFn")),C=(e,t,r,n)=>(y=n?[t,...y]:[...y,t],n?[r,...e]:[...e,r]),S=(t,r,n,i)=>{if(b)return Promise.reject("Cancelled");if(void 0===n&&!r&&t.length)return Promise.resolve(t);let s={queryKey:e.queryKey,pageParam:n,meta:e.options.meta};return v(s),Promise.resolve(w(s)).then(e=>C(t,n,e,i))};if(p.length){if(d){let t=void 0!==h,r=t?h:g(e.options,p);l=S(p,t,r)}else if(f){let t=void 0!==h,r=t?h:null==(a=e.options).getPreviousPageParam?void 0:a.getPreviousPageParam(p[0],p);l=S(p,t,r,!0)}else{y=[];let t=void 0===e.options.getNextPageParam;l=!u||!p[0]||u(p[0],0,p)?S([],t,m[0]):Promise.resolve(C([],m[0],p[0]));for(let r=1;r<p.length;r++)l=l.then(n=>{if(!u||!p[r]||u(p[r],r,p)){let i=t?m[r]:g(e.options,n);return S(n,t,i)}return Promise.resolve(C(n,m[r],p[r]))})}}else l=S([]);return l.then(e=>({pages:e,pageParams:y}))}}},this.fetchQuery(i)}prefetchInfiniteQuery(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(n.ZT).catch(n.ZT)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){let r=this.queryDefaults.find(t=>(0,n.yF)(e)===(0,n.yF)(t.queryKey));r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;let t=this.queryDefaults.find(t=>(0,n.to)(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){let r=this.mutationDefaults.find(t=>(0,n.yF)(e)===(0,n.yF)(t.mutationKey));r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;let t=this.mutationDefaults.find(t=>(0,n.to)(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;let t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=(0,n.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}},89643:(e,t,r)=>{"use strict";r.d(t,{F:()=>i});var n=r(32161);class i{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:n.sk?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},72379:(e,t,r)=>{"use strict";r.d(t,{DV:()=>u,Kw:()=>a,Mz:()=>c});var n=r(15761),i=r(96474),s=r(32161);function o(e){return Math.min(1e3*2**e,3e4)}function a(e){return(null!=e?e:"online")!=="online"||i.N.isOnline()}class l{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function u(e){return e instanceof l}function c(e){let t,r,u,c=!1,h=0,d=!1,f=new Promise((e,t)=>{r=e,u=t}),p=()=>!n.j.isFocused()||"always"!==e.networkMode&&!i.N.isOnline(),g=n=>{d||(d=!0,null==e.onSuccess||e.onSuccess(n),null==t||t(),r(n))},m=r=>{d||(d=!0,null==e.onError||e.onError(r),null==t||t(),u(r))},y=()=>new Promise(r=>{t=e=>{if(d||!p())return r(e)},null==e.onPause||e.onPause()}).then(()=>{t=void 0,d||null==e.onContinue||e.onContinue()}),b=()=>{let t;if(!d){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(g).catch(t=>{var r,n;if(d)return;let i=null!=(r=e.retry)?r:3,a=null!=(n=e.retryDelay)?n:o,l="function"==typeof a?a(h,t):a,u=!0===i||"number"==typeof i&&h<i||"function"==typeof i&&i(h,t);if(c||!u){m(t);return}h++,null==e.onFail||e.onFail(h,t),(0,s.Gh)(l).then(()=>{if(p())return y()}).then(()=>{c?m(t):b()})})}};return a(e.networkMode)?b():y().then(b),{promise:f,cancel:t=>{d||(m(new l(t)),null==e.abort||e.abort())},continue:()=>{null==t||t()},cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1}}}},33989:(e,t,r)=>{"use strict";r.d(t,{l:()=>n});class n{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.push(e),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(t=>t!==e),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}},32161:(e,t,r)=>{"use strict";r.d(t,{A4:()=>x,G9:()=>O,Gh:()=>S,I6:()=>c,Kp:()=>a,PN:()=>o,Rm:()=>f,SE:()=>s,VS:()=>y,X7:()=>d,ZT:()=>i,_v:()=>l,_x:()=>h,lV:()=>u,oE:()=>E,sk:()=>n,to:()=>g,yF:()=>p});let n="undefined"==typeof window||"Deno"in window;function i(){}function s(e,t){return"function"==typeof e?e(t):e}function o(e){return"number"==typeof e&&e>=0&&e!==1/0}function a(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,r){return C(e)?"function"==typeof t?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function u(e,t,r){return C(e)?"function"==typeof t?{...r,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}function c(e,t,r){return C(e)?[{...t,queryKey:e},r]:[e||{},t]}function h(e,t){let{type:r="all",exact:n,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(C(o)){if(n){if(t.queryHash!==f(o,t.options))return!1}else{if(!m(t.queryKey,o))return!1}}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&(void 0===i||i===t.state.fetchStatus)&&(!s||!!s(t))}function d(e,t){let{exact:r,fetching:n,predicate:i,mutationKey:s}=e;if(C(s)){if(!t.options.mutationKey)return!1;if(r){if(p(t.options.mutationKey)!==p(s))return!1}else{if(!m(t.options.mutationKey,s))return!1}}return("boolean"!=typeof n||"loading"===t.state.status===n)&&(!i||!!i(t))}function f(e,t){return((null==t?void 0:t.queryKeyHashFn)||p)(e)}function p(e){return JSON.stringify(e,(e,t)=>v(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function g(e,t){return m(e,t)}function m(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!m(e[r],t[r]))}function y(e,t){if(e&&!t||t&&!e)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function b(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function v(e){if(!w(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(w(r)&&r.hasOwnProperty("isPrototypeOf"))}function w(e){return"[object Object]"===Object.prototype.toString.call(e)}function C(e){return Array.isArray(e)}function S(e){return new Promise(t=>{setTimeout(t,e)})}function x(e){S(0).then(e)}function O(){if("function"==typeof AbortController)return new AbortController}function E(e,t,r){return null!=r.isDataEqual&&r.isDataEqual(e,t)?e:"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r){if(t===r)return t;let n=b(t)&&b(r);if(n||v(t)&&v(r)){let i=n?t.length:Object.keys(t).length,s=n?r:Object.keys(r),o=s.length,a=n?[]:{},l=0;for(let i=0;i<o;i++){let o=n?i:s[i];a[o]=e(t[o],r[o]),a[o]===t[o]&&l++}return i===o&&l===i?t:a}return r}(e,t):t}},28784:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,C:()=>l,R:()=>d,c:()=>k,d:()=>E});var n=r(84419),i=r(11608);r(61823),r(80656),r(34155);let s="default"in n.ZP?n.ZP.default:n.ZP,o=["name","message","code","statusCode","meta","url"];(0,i.i)()&&s.allowErrorProps(...o);class a extends Error{constructor(e="You must be logged in to access this"){super(e),this.name="AuthenticationError",this.statusCode=401}get _clearStack(){return!0}}class l extends Error{constructor(){super(...arguments),this.name="CSRFTokenMismatchError",this.statusCode=401}get _clearStack(){return!0}}class u extends Error{constructor(e,t){super(e),this.name="OAuthError",this.statusCode=500,this.redirect=t}get _clearStack(){return!0}}class c extends Error{constructor(e="You are not authorized to access this"){super(e),this.name="AuthorizationError",this.statusCode=403}get _clearStack(){return!0}}class h extends Error{constructor(e="This could not be found"){super(e),this.name="NotFoundError",this.statusCode=404}get _clearStack(){return!0}}class d extends Error{constructor(e){super("object"==typeof e?e.href:e),this.name="RedirectError",this.statusCode=302,this.url=e}get _clearStack(){return!0}}class f extends Error{constructor(e="The pagination arguments are invalid"){super(e),this.name="PaginationArgumentError",this.statusCode=422}}let p=!1;(0,i.i)()&&(s.registerClass(a,{identifier:"BlitzAuthenticationError",allowProps:o}),s.registerClass(l,{identifier:"BlitzCSRFTokenMismatchError",allowProps:o}),s.registerClass(c,{identifier:"BlitzAuthorizationError",allowProps:o}),s.registerClass(h,{identifier:"BlitzNotFoundError",allowProps:o}),s.registerClass(d,{identifier:"BlitzRedirectError",allowProps:o}),s.registerClass(f,{identifier:"BlitzPaginationArgumentError",allowProps:o}),s.registerClass(u,{identifier:"OAuthError",allowProps:o}));var g=Object.defineProperty,m=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,v=(e,t,r)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w=(e,t)=>{for(var r in t||(t={}))y.call(t,r)&&v(e,r,t[r]);if(m)for(var r of m(t))b.call(t,r)&&v(e,r,t[r]);return e},C=(e,t,r)=>new Promise((n,i)=>{var s=e=>{try{a(r.next(e))}catch(e){i(e)}},o=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(s,o);a((r=r.apply(e,t)).next())});function S([...e]){return t=>e.map(e=>e(t))}function x(...e){return t=>e.reduce((e,t)=>t(e),t)}let O=(...e)=>t=>e.reduceRight((e,t)=>t(e),t);function E({plugins:e}){let{middleware:t,events:r,exports:n,providers:s}=e.reduce((e,t)=>({middleware:{beforeHttpRequest:t.middleware.beforeHttpRequest?x(e.middleware.beforeHttpRequest,t.middleware.beforeHttpRequest):e.middleware.beforeHttpRequest,beforeHttpResponse:t.middleware.beforeHttpResponse?x(e.middleware.beforeHttpResponse,t.middleware.beforeHttpResponse):e.middleware.beforeHttpResponse},events:{onRpcError:t.events.onRpcError?S([...Array.isArray(e.events.onRpcError)?e.events.onRpcError:[e.events.onRpcError],t.events.onRpcError]):e.events.onRpcError,onSessionCreated:t.events.onSessionCreated?S([...Array.isArray(e.events.onSessionCreated)?e.events.onSessionCreated:[e.events.onSessionCreated],t.events.onSessionCreated]):e.events.onSessionCreated},exports:w(w({},t.exports()),e.exports),providers:t.withProvider?e.providers.concat(t.withProvider):e.providers}),{middleware:{beforeHttpRequest:x(),beforeHttpResponse:x()},events:{onRpcError:S([]),onSessionCreated:S([])},exports:{},providers:[]});if(globalThis.__BLITZ_MIDDLEWARE_HOOKS=t,i.a){globalThis.__BLITZ_CLEAN_UP_LISTENERS&&globalThis.__BLITZ_CLEAN_UP_LISTENERS();let e=()=>C(this,null,function*(){yield Promise.all(r.onSessionCreated())}),t=e=>C(this,null,function*(){yield Promise.all(r.onRpcError(e.detail))});document.addEventListener("blitz:session-created",e),document.addEventListener("blitz:rpc-error",t),globalThis.__BLITZ_CLEAN_UP_LISTENERS=()=>{document.removeEventListener("blitz:session-created",e),document.removeEventListener("blitz:rpc-error",t)}}return{exports:n,middleware:t,events:r,withPlugins:O(...s)}}function k(e){return e}},11608:(e,t,r)=>{"use strict";r.d(t,{a:()=>o,b:()=>i,c:()=>s,i:()=>c,k:()=>u,r:()=>a});var n=r(34155);function i(e,t){if(!e)throw Error(t)}let s="undefined"==typeof window,o="undefined"!=typeof window;function a(e){let t;if("undefined"==typeof document)return null;let r=document.cookie,n=r.search(RegExp("\\b"+e+"=")),i=r.indexOf(";",n);return~n?"{"===(t=decodeURIComponent(r.substring(n,~i?i:void 0).split("=")[1]||"")).charAt(0)?JSON.parse(t):t:null}let l=(e,t,r)=>{let n=`${e}=${t};path=/;expires=${r}`;document.cookie=n},u=e=>l(e,"","Thu, 01 Jan 1970 00:00:01 GMT");function c(){return!!n.env.VITE_BLITZ_TEST_ENVIRONMENT||void 0===n.env.JEST_WORKER_ID&&void 0===n.env.VITEST_WORKER_ID}},67421:(e,t,r)=>{"use strict";let n;r.d(t,{cC:()=>U,Db:()=>D,$G:()=>H});var i=r(67294),s=r(71739),o=r.n(s),a=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function l(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(o()[r[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("-->");return{type:"comment",comment:-1!==n?e.slice(4,n):""}}for(var i=new RegExp(a),s=null;null!==(s=i.exec(e));)if(s[0].trim()){if(s[1]){var l=s[1].trim(),u=[l,""];l.indexOf("=")>-1&&(u=l.split("=")),t.attrs[u[0]]=u[1],i.lastIndex--}else s[2]&&(t.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1))}return t}var u=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,c=/^\s*$/,h=Object.create(null);let d={parse:function(e,t){t||(t={}),t.components||(t.components=h);var r,n=[],i=[],s=-1,o=!1;if(0!==e.indexOf("<")){var a=e.indexOf("<");n.push({type:"text",content:-1===a?e:e.substring(0,a)})}return e.replace(u,function(a,u){if(o){if(a!=="</"+r.name+">")return;o=!1}var h,d="/"!==a.charAt(1),f=a.startsWith("<!--"),p=u+a.length,g=e.charAt(p);if(f){var m=l(a);return s<0?n.push(m):(h=i[s]).children.push(m),n}if(d&&(s++,"tag"===(r=l(a)).type&&t.components[r.name]&&(r.type="component",o=!0),r.voidElement||o||!g||"<"===g||r.children.push({type:"text",content:e.slice(p,e.indexOf("<",p))}),0===s&&n.push(r),(h=i[s-1])&&h.children.push(r),i[s]=r),(!d||r.voidElement)&&(s>-1&&(r.voidElement||r.name===a.slice(2,-1))&&(r=-1==--s?n:i[s]),!o&&"<"!==g&&g)){h=-1===s?n:i[s].children;var y=e.indexOf("<",p),b=e.slice(p,-1===y?void 0:y);c.test(b)&&(b=" "),(y>-1&&s+h.length>=0||" "!==b)&&h.push({type:"text",content:b})}}),n}},f=(...e)=>{console?.warn&&(w(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},p={},g=(...e)=>{w(e[0])&&p[e[0]]||(w(e[0])&&(p[e[0]]=new Date),f(...e))},m=(e,t)=>()=>{if(e.isInitialized)t();else{let r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},y=(e,t,r)=>{e.loadNamespaces(t,m(e,r))},b=(e,t,r,n)=>{w(r)&&(r=[r]),r.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,m(e,n))},v=(e,t,r={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n?.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):(g("i18n.languages were undefined or empty",t.languages),!0),w=e=>"string"==typeof e,C=e=>"object"==typeof e&&null!==e,S=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,x={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},O=e=>x[e],E={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(S,O)},k=(e={})=>{E={...E,...e}},P=()=>E,R=e=>{n=e},j=()=>n,_=(e,t)=>{if(!e)return!1;let r=e.props?.children??e.children;return t?r.length>0:!!r},F=e=>{if(!e)return[];let t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?T(t):t},A=e=>Array.isArray(e)&&e.every(i.isValidElement),T=e=>Array.isArray(e)?e:[e],N=(e,t)=>{let r={...t};return r.props=Object.assign(e.props,t.props),r},I=(e,t)=>{if(!e)return"";let r="",n=T(e),s=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return n.forEach((e,n)=>{if(w(e))r+=`${e}`;else if((0,i.isValidElement)(e)){let{props:i,type:o}=e,a=Object.keys(i).length,l=s.indexOf(o)>-1,u=i.children;if(u||!l||a){if(!u&&(!l||a)||i.i18nIsDynamicList)r+=`<${n}></${n}>`;else if(l&&1===a&&w(u))r+=`<${o}>${u}</${o}>`;else{let e=I(u,t);r+=`<${n}>${e}</${n}>`}}else r+=`<${o}/>`}else if(null===e)f("Trans: the passed in value is invalid - seems you passed in a null child.");else if(C(e)){let{format:t,...n}=e,i=Object.keys(n);if(1===i.length){let e=t?`${i[0]}, ${t}`:i[0];r+=`{{${e}}}`}else f("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else f("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)}),r},L=(e,t,r,n,s,o)=>{if(""===t)return[];let a=n.transKeepBasicHtmlNodesFor||[],l=t&&new RegExp(a.map(e=>`<${e}`).join("|")).test(t);if(!e&&!l&&!o)return[t];let u={},c=e=>{T(e).forEach(e=>{w(e)||(_(e)?c(F(e)):C(e)&&!(0,i.isValidElement)(e)&&Object.assign(u,e))})};c(e);let h=d.parse(`<0>${t}</0>`),f={...u,...s},p=(e,t,r)=>{let n=F(e),i=m(n,t.children,r);return A(n)&&0===i.length||e.props?.i18nIsDynamicList?n:i},g=(e,t,r,n,s)=>{e.dummy?(e.children=t,r.push((0,i.cloneElement)(e,{key:n},s?void 0:t))):r.push(...i.Children.map([e],e=>{let r={...e.props};return delete r.i18nIsDynamicList,(0,i.createElement)(e.type,{...r,key:n,ref:e.ref},s?null:t)}))},m=(t,s,u)=>{let c=T(t);return T(s).reduce((t,s,h)=>{let d=s.children?.[0]?.content&&r.services.interpolator.interpolate(s.children[0].content,f,r.language);if("tag"===s.type){let o=c[parseInt(s.name,10)];1!==u.length||o||(o=u[0][s.name]),o||(o={});let y=0!==Object.keys(s.attrs).length?N({props:s.attrs},o):o,b=(0,i.isValidElement)(y),v=b&&_(s,!0)&&!s.voidElement,S=l&&C(y)&&y.dummy&&!b,x=C(e)&&Object.hasOwnProperty.call(e,s.name);if(w(y)){let e=r.services.interpolator.interpolate(y,f,r.language);t.push(e)}else if(_(y)||v){let e=p(y,s,u);g(y,e,t,h)}else if(S)g(y,m(c,s.children,u),t,h);else if(Number.isNaN(parseFloat(s.name))){if(x){let e=p(y,s,u);g(y,e,t,h,s.voidElement)}else if(n.transSupportBasicHtmlNodes&&a.indexOf(s.name)>-1){if(s.voidElement)t.push((0,i.createElement)(s.name,{key:`${s.name}-${h}`}));else{let e=m(c,s.children,u);t.push((0,i.createElement)(s.name,{key:`${s.name}-${h}`},e))}}else if(s.voidElement)t.push(`<${s.name} />`);else{let e=m(c,s.children,u);t.push(`<${s.name}>${e}</${s.name}>`)}}else if(C(y)&&!b){let e=s.children[0]?d:null;e&&t.push(e)}else g(y,d,t,h,1!==s.children.length||!d)}else if("text"===s.type){let e=n.transWrapTextNodes,a=o?n.unescape(r.services.interpolator.interpolate(s.content,f,r.language)):r.services.interpolator.interpolate(s.content,f,r.language);e?t.push((0,i.createElement)(e,{key:`${s.name}-${h}`},a)):t.push(a)}return t},[])};return F(m([{dummy:!0,children:e||[]}],h,T(e||[]))[0])},D={type:"3rdParty",init(e){k(e.options.react),R(e)}},M=(0,i.createContext)();class ${constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function U({children:e,count:t,parent:r,i18nKey:n,context:s,tOptions:o={},values:a,defaults:l,components:u,ns:c,i18n:h,t:d,shouldUnescape:f,...p}){let{i18n:m,defaultNS:y}=(0,i.useContext)(M)||{},b=h||m||j(),v=d||b?.t.bind(b);return function({children:e,count:t,parent:r,i18nKey:n,context:s,tOptions:o={},values:a,defaults:l,components:u,ns:c,i18n:h,t:d,shouldUnescape:f,...p}){let m=h||j();if(!m)return g("You will need to pass in an i18next instance by using i18nextReactModule"),e;let y=d||m.t.bind(m)||(e=>e),b={...P(),...m.options?.react},v=c||y.ns||m.options?.defaultNS;v=w(v)?[v]:v||["translation"];let C=I(e,b),S=l||C||b.transEmptyNodeValue||n,{hashTransKey:x}=b,O=n||(x?x(C||S):C||S);m.options?.interpolation?.defaultVariables&&(a=a&&Object.keys(a).length>0?{...a,...m.options.interpolation.defaultVariables}:{...m.options.interpolation.defaultVariables});let E=!a&&(void 0===t||m.options?.interpolation?.alwaysFormat)&&e?{interpolation:{...o.interpolation,prefix:"#$?",suffix:"?$#"}}:o.interpolation,k={...o,context:s||o.context,count:t,...a,...E,defaultValue:S,ns:v},R=O?y(O,k):S;u&&Object.keys(u).forEach(e=>{u[e].key||(u[e]=(0,i.cloneElement)(u[e],{key:e}));let t=u[e];"function"==typeof t.type||!t.props||!t.props.children||0>R.indexOf(`${e}/>`)&&0>R.indexOf(`${e} />`)||(u[e]=(0,i.createElement)(function(){return(0,i.createElement)(i.Fragment,null,t)}))});let _=L(u||e,R,m,b,k,f),F=r??b.defaultTransParent;return F?(0,i.createElement)(F,p,_):_}({children:e,count:t,parent:r,i18nKey:n,context:s,tOptions:o,values:a,defaults:l,components:u,ns:c||v?.ns||y||b?.options?.defaultNS,i18n:b,t:d,shouldUnescape:f,...p})}let B=(e,t)=>{let r=(0,i.useRef)();return(0,i.useEffect)(()=>{r.current=t?r.current:e},[e,t]),r.current},z=(e,t,r,n)=>e.getFixedT(t,r,n),q=(e,t,r,n)=>(0,i.useCallback)(z(e,t,r,n),[e,t,r,n]),H=(e,t={})=>{let{i18n:r}=t,{i18n:n,defaultNS:s}=(0,i.useContext)(M)||{},o=r||n||j();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new $),!o){g("You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>w(t)?t:C(t)&&w(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}o.options.react?.wait&&g("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let a={...P(),...o.options.react,...t},{useSuspense:l,keyPrefix:u}=a,c=e||s||o.options?.defaultNS;c=w(c)?[c]:c||["translation"],o.reportNamespaces.addUsedNamespaces?.(c);let h=(o.isInitialized||o.initializedStoreOnce)&&c.every(e=>v(e,o,a)),d=q(o,t.lng||null,"fallback"===a.nsMode?c:c[0],u),f=()=>d,p=()=>z(o,t.lng||null,"fallback"===a.nsMode?c:c[0],u),[m,S]=(0,i.useState)(f),x=c.join();t.lng&&(x=`${t.lng}${x}`);let O=B(x),E=(0,i.useRef)(!0);(0,i.useEffect)(()=>{let{bindI18n:e,bindI18nStore:r}=a;E.current=!0,h||l||(t.lng?b(o,t.lng,c,()=>{E.current&&S(p)}):y(o,c,()=>{E.current&&S(p)})),h&&O&&O!==x&&E.current&&S(p);let n=()=>{E.current&&S(p)};return e&&o?.on(e,n),r&&o?.store.on(r,n),()=>{E.current=!1,o&&e?.split(" ").forEach(e=>o.off(e,n)),r&&o&&r.split(" ").forEach(e=>o.store.off(e,n))}},[o,x]),(0,i.useEffect)(()=>{E.current&&h&&S(f)},[o,u,h]);let k=[m,o,h];if(k.t=m,k.i18n=o,k.ready=h,h||!h&&!l)return k;throw new Promise(e=>{t.lng?b(o,t.lng,c,()=>e()):y(o,c,()=>e())})}}},e=>{var t=t=>e(e.s=t);e.O(0,[774,179],()=>(t(6840),t(43079))),_N_E=e.O()}]);