const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/browser-ponyfill-BSKeT1B_.js","assets/chunk-LFPYN7LY-BBzdRvLF.js"])))=>i.map(i=>d[i]); import{j as C}from"./jsx-runtime-C35QZyMw.js";import{i as N}from"./i18next-DuByLZTE.js";import{r as g,A as be,B as Oe,E as Pe,C as we,W as y,i as Re,D as se,G as De,H as je,I as Le,J as Te,K as Ie,P as Ae,Q as Se,T as ke,U as xe,V as Ve,X as Ce,Y as He,Z as Me}from"./chunk-LFPYN7LY-BBzdRvLF.js";import{a as qe,r as $e}from"./index-DkQvyDfJ.js";import{s as Ue,b as Fe,I as ze}from"./context-CP2rsCe9.js";const Xe="modulepreload",Be=function(t){return"/"+t},W={},i=function(e,r,o){let n=Promise.resolve();if(r&&r.length>0){let s=function(f){return Promise.all(f.map(l=>Promise.resolve(l).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),c=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));n=s(r.map(f=>{if(f=Be(f),f in W)return;W[f]=!0;const l=f.endsWith(".css"),p=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="proxy.php?url=https%3A%2F%2Fleanpub.com%2F%24%7Bf%7D"]${p}`))return;const d=document.createElement("link");if(d.rel=l?"stylesheet":Xe,l||(d.as="script"),d.crossOrigin="",d.href=f,c&&d.setAttribute("nonce",c),document.head.appendChild(d),l)return new Promise((h,m)=>{d.addEventListener("load",h),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${f}`)))})}))}function a(s){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=s,window.dispatchEvent(u),!u.defaultPrevented)throw s}return n.then(s=>{for(const u of s||[])u.status==="rejected"&&a(u.reason);return e().catch(a)})},{slice:Ne,forEach:We}=[];function Ke(t){return We.call(Ne.call(arguments,1),e=>{if(e)for(const r in e)t[r]===void 0&&(t[r]=e[r])}),t}function Qe(t){return typeof t!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(r=>r.test(t))}const K=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Ge=function(t,e){const o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},n=encodeURIComponent(e);let a=`${t}=${n}`;if(o.maxAge>0){const s=o.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");a+=`; Max-Age=${Math.floor(s)}`}if(o.domain){if(!K.test(o.domain))throw new TypeError("option domain is invalid");a+=`; Domain=${o.domain}`}if(o.path){if(!K.test(o.path))throw new TypeError("option path is invalid");a+=`; Path=${o.path}`}if(o.expires){if(typeof o.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+=`; Expires=${o.expires.toUTCString()}`}if(o.httpOnly&&(a+="; HttpOnly"),o.secure&&(a+="; Secure"),o.sameSite)switch(typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o.partitioned&&(a+="; Partitioned"),a},Q={create(t,e,r,o){let n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(n.expires=new Date,n.expires.setTime(n.expires.getTime()+r*60*1e3)),o&&(n.domain=o),document.cookie=Ge(t,e,n)},read(t){const e=`${t}=`,r=document.cookie.split(";");for(let o=0;o-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));const s=n.substring(1).split("&");for(let u=0;u0&&s[u].substring(0,c)===e&&(r=s[u].substring(c+1))}}return r}},Ze={name:"hash",lookup(t){var n;let{lookupHash:e,lookupFromHashIndex:r}=t,o;if(typeof window<"u"){const{hash:a}=window.location;if(a&&a.length>2){const s=a.substring(1);if(e){const u=s.split("&");for(let c=0;c0&&u[c].substring(0,f)===e&&(o=u[c].substring(f+1))}}if(o)return o;if(!o&&r>-1){const u=a.match(/\/([a-zA-Z-]*)/g);return Array.isArray(u)?(n=u[typeof r=="number"?r:0])==null?void 0:n.replace("/",""):void 0}}}return o}};let D=null;const G=()=>{if(D!==null)return D;try{if(D=typeof window<"u"&&window.localStorage!==null,!D)return!1;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{D=!1}return D};var et={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&G())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:r}=e;r&&G()&&window.localStorage.setItem(r,t)}};let j=null;const J=()=>{if(j!==null)return j;try{if(j=typeof window<"u"&&window.sessionStorage!==null,!j)return!1;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{j=!1}return j};var tt={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&J())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:r}=e;r&&J()&&window.sessionStorage.setItem(r,t)}},ot={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:r,userLanguage:o,language:n}=navigator;if(r)for(let a=0;a0?e:void 0}},rt={name:"htmlTag",lookup(t){let{htmlTag:e}=t,r;const o=e||(typeof document<"u"?document.documentElement:null);return o&&typeof o.getAttribute=="function"&&(r=o.getAttribute("lang")),r}},nt={name:"path",lookup(t){var n;let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(r)?(n=r[typeof e=="number"?e:0])==null?void 0:n.replace("/",""):void 0}},it={name:"subdomain",lookup(t){var n,a;let{lookupFromSubdomainIndex:e}=t;const r=typeof e=="number"?e+1:1,o=typeof window<"u"&&((a=(n=window.location)==null?void 0:n.hostname)==null?void 0:a.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(o)return o[r]}};let ue=!1;try{document.cookie,ue=!0}catch{}const le=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];ue||le.splice(1,1);const at=()=>({order:le,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t});class ce{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,r)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=Ke(r,this.options||{},at()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=n=>n.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(Je),this.addDetector(Ye),this.addDetector(et),this.addDetector(tt),this.addDetector(ot),this.addDetector(rt),this.addDetector(nt),this.addDetector(it),this.addDetector(Ze)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,r=[];return e.forEach(o=>{if(this.detectors[o]){let n=this.detectors[o].lookup(this.options);n&&typeof n=="string"&&(n=[n]),n&&(r=r.concat(n))}}),r=r.filter(o=>o!=null&&!Qe(o)).map(o=>this.options.convertDetectedLanguage(o)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}cacheUserLanguage(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||r.forEach(o=>{this.detectors[o]&&this.detectors[o].cacheUserLanguage(e,this.options)}))}}ce.type="languageDetector";function st(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function A(t){"@babel/helpers - typeof";return A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(t)}function ut(t,e){if(A(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e);if(A(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function lt(t){var e=ut(t,"string");return A(e)=="symbol"?e:e+""}function ct(t,e){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};st(this,t),this.backends=[],this.type="backend",this.allOptions=o,this.init(e,r)}return dt(t,[{key:"init",value:function(r){var o=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=r,this.options=mt(n,this.options||{},ht()),this.allOptions=a,this.options.backends&&this.options.backends.forEach(function(s,u){o.backends[u]=o.backends[u]||pt(s),o.backends[u].init(r,o.options.backendOptions&&o.options.backendOptions[u]||{},a)}),this.services&&this.options.reloadInterval&&setInterval(function(){return o.reload()},this.options.reloadInterval)}},{key:"read",value:function(r,o,n){var a=this,s=this.backends.length,u=function f(l){if(l>=s)return n(new Error("non of the backend loaded data",!0));var p=l===s-1,d=a.options.handleEmptyResourcesAsFailed&&!p?0:-1,h=a.backends[l];h.read?Y(h,r,o,function(m,E,b){if(!m&&E&&Object.keys(E).length>d){if(n(null,E,l),c(l-1,E),h.save&&a.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(a.options.cacheHitMode)>-1){if(b&&a.options.refreshExpirationTime&&b+a.options.refreshExpirationTime>Date.now())return;var v=a.backends[l+1];v&&v.read&&Y(v,r,o,function(O,w){O||w&&(Object.keys(w).length<=d||(c(l,w),a.options.cacheHitMode==="refreshAndUpdateStore"&&a.services&&a.services.resourceStore&&a.services.resourceStore.addResourceBundle(r,o,w)))})}}else f(l+1)}):f(l+1)},c=function f(l,p){if(!(l<0)){var d=a.backends[l];d.save&&d.save(r,o,p),f(l-1,p)}};u(0)}},{key:"create",value:function(r,o,n,a){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(c){if(c.create){var f=c.create.bind(c);if(f.length<6){try{var l;f.length===5?l=f(r,o,n,a,u):l=f(r,o,n,a),l&&typeof l.then=="function"?l.then(function(p){return s(null,p)}).catch(s):s(null,l)}catch(p){s(p)}return}f(r,o,n,a,s,u)}})}},{key:"reload",value:function(){var r=this,o=this.services,n=o.backendConnector,a=o.languageUtils,s=o.logger,u=n.language;if(!(u&&u.toLowerCase()==="cimode")){var c=[],f=function(p){var d=a.toResolveHierarchy(p);d.forEach(function(h){c.indexOf(h)<0&&c.push(h)})};f(u),this.allOptions.preload&&this.allOptions.preload.forEach(function(l){return f(l)}),c.forEach(function(l){r.allOptions.ns.forEach(function(p){n.read(l,p,"read",null,null,function(d,h){d&&s.warn("loading namespace ".concat(p," for language ").concat(l," failed"),d),!d&&h&&s.log("loaded namespace ".concat(p," for language ").concat(l),h),n.loaded("".concat(l,"|").concat(p),d,h)})})})}}}]),t}();fe.type="backend";function q(t){"@babel/helpers - typeof";return q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(t)}function _e(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":q(XMLHttpRequest))==="object"}function vt(t){return!!t&&typeof t.then=="function"}function Et(t){return vt(t)?t:Promise.resolve(t)}function Z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function ee(t){for(var e=1;eimport("./browser-ponyfill-BSKeT1B_.js").then(t=>t.b),__vite__mapDeps([0,1])).then(function(t){P=t.default}).catch(function(){})}catch{}var $=function(e,r){if(r&&R(r)==="object"){var o="";for(var n in r)o+="&"+encodeURIComponent(n)+"="+encodeURIComponent(r[n]);if(!o)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+o.slice(1)}return e},te=function(e,r,o,n){var a=function(c){if(!c.ok)return o(c.statusText||"Error",{status:c.status});c.text().then(function(f){o(null,{status:c.status,data:f})}).catch(o)};if(n){var s=n(e,r);if(s instanceof Promise){s.then(a).catch(o);return}}typeof fetch=="function"?fetch(e,r).then(a).catch(o):P(e,r).then(a).catch(o)},oe=!1,Ot=function(e,r,o,n){e.queryStringParams&&(r=$(r,e.queryStringParams));var a=ee({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(a["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),o&&(a["Content-Type"]="application/json");var s=typeof e.requestOptions=="function"?e.requestOptions(o):e.requestOptions,u=ee({method:o?"POST":"GET",body:o?e.stringify(o):void 0,headers:a},oe?{}:s),c=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{te(r,u,n,c)}catch(f){if(!s||Object.keys(s).length===0||!f.message||f.message.indexOf("not implemented")<0)return n(f);try{Object.keys(s).forEach(function(l){delete u[l]}),te(r,u,n,c),oe=!0}catch(l){n(l)}}},Pt=function(e,r,o,n){o&&R(o)==="object"&&(o=$("",o).slice(1)),e.queryStringParams&&(r=$(r,e.queryStringParams));try{var a=S?new S:new V("MSXML2.XMLHTTP.3.0");a.open(o?"POST":"GET",r,1),e.crossDomain||a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.withCredentials=!!e.withCredentials,o&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.overrideMimeType&&a.overrideMimeType("application/json");var s=e.customHeaders;if(s=typeof s=="function"?s():s,s)for(var u in s)a.setRequestHeader(u,s[u]);a.onreadystatechange=function(){a.readyState>3&&n(a.status>=400?a.statusText:null,{status:a.status,data:a.responseText})},a.send(o)}catch(c){console&&console.log(c)}},wt=function(e,r,o,n){if(typeof o=="function"&&(n=o,o=void 0),n=n||function(){},P&&r.indexOf("file:")!==0)return Ot(e,r,o,n);if(_e()||typeof ActiveXObject=="function")return Pt(e,r,o,n);n(new Error("No fetch and no xhr implementation found!"))};function L(t){"@babel/helpers - typeof";return L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L(t)}function re(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function H(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Rt(this,t),this.services=e,this.options=r,this.allOptions=o,this.type="backend",this.init(e,r,o)}return jt(t,[{key:"init",value:function(r){var o=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=r,this.options=H(H(H({},Tt()),this.options||{}),n),this.allOptions=a,this.services&&this.options.reloadInterval){var s=setInterval(function(){return o.reload()},this.options.reloadInterval);L(s)==="object"&&typeof s.unref=="function"&&s.unref()}}},{key:"readMulti",value:function(r,o,n){this._readAny(r,r,o,o,n)}},{key:"read",value:function(r,o,n){this._readAny([r],r,[o],o,n)}},{key:"_readAny",value:function(r,o,n,a,s){var u=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(r,n)),c=Et(c),c.then(function(f){if(!f)return s(null,{});var l=u.services.interpolator.interpolate(f,{lng:r.join("+"),ns:n.join("+")});u.loadUrl(l,s,o,a)})}},{key:"loadUrl",value:function(r,o,n,a){var s=this,u=typeof n=="string"?[n]:n,c=typeof a=="string"?[a]:a,f=this.options.parseLoadPayload(u,c);this.options.request(this.options,r,f,function(l,p){if(p&&(p.status>=500&&p.status<600||!p.status))return o("failed loading "+r+"; status code: "+p.status,!0);if(p&&p.status>=400&&p.status<500)return o("failed loading "+r+"; status code: "+p.status,!1);if(!p&&l&&l.message){var d=l.message.toLowerCase(),h=["failed","fetch","network","load"].find(function(b){return d.indexOf(b)>-1});if(h)return o("failed loading "+r+": "+l.message,!0)}if(l)return o(l,!1);var m,E;try{typeof p.data=="string"?m=s.options.parse(p.data,n,a):m=p.data}catch{E="failed parsing "+r+" to json"}if(E)return o(E,!1);o(null,m)})}},{key:"create",value:function(r,o,n,a,s){var u=this;if(this.options.addPath){typeof r=="string"&&(r=[r]);var c=this.options.parsePayload(o,n,a),f=0,l=[],p=[];r.forEach(function(d){var h=u.options.addPath;typeof u.options.addPath=="function"&&(h=u.options.addPath(d,o));var m=u.services.interpolator.interpolate(h,{lng:d,ns:o});u.options.request(u.options,m,c,function(E,b){f+=1,l.push(E),p.push(b),f===r.length&&typeof s=="function"&&s(l,p)})})}}},{key:"reload",value:function(){var r=this,o=this.services,n=o.backendConnector,a=o.languageUtils,s=o.logger,u=n.language;if(!(u&&u.toLowerCase()==="cimode")){var c=[],f=function(p){var d=a.toResolveHierarchy(p);d.forEach(function(h){c.indexOf(h)<0&&c.push(h)})};f(u),this.allOptions.preload&&this.allOptions.preload.forEach(function(l){return f(l)}),c.forEach(function(l){r.allOptions.ns.forEach(function(p){n.read(l,p,"read",null,null,function(d,h){d&&s.warn("loading namespace ".concat(p," for language ").concat(l," failed"),d),!d&&h&&s.log("loaded namespace ".concat(p," for language ").concat(l),h),n.loaded("".concat(l,"|").concat(p),d,h)})})})}}}])}();he.type="backend";var x={},ne;function It(){if(ne)return x;ne=1;var t=qe();return x.createRoot=t.createRoot,x.hydrateRoot=t.hydrateRoot,x}var At=It();const St={type:"3rdParty",init(t){Ue(t.options.react),Fe(t)}};function kt({i18n:t,defaultNS:e,children:r}){const o=g.useMemo(()=>({i18n:t,defaultNS:e}),[t,e]);return g.createElement(ze.Provider,{value:o},r)}var T={},ie;function xt(){if(ie)return T;ie=1,Object.defineProperty(T,"__esModule",{value:!0}),T.parse=s,T.serialize=f;const t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,e=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,n=Object.prototype.toString,a=(()=>{const d=function(){};return d.prototype=Object.create(null),d})();function s(d,h){const m=new a,E=d.length;if(E<2)return m;const b=(h==null?void 0:h.decode)||l;let v=0;do{const O=d.indexOf("=",v);if(O===-1)break;const w=d.indexOf(";",v),k=w===-1?E:w;if(O>k){v=d.lastIndexOf(";",O-1)+1;continue}const z=u(d,v,O),Ee=c(d,O,z),X=d.slice(z,Ee);if(m[X]===void 0){let B=u(d,O+1,k),ge=c(d,k,B);const ye=b(d.slice(B,ge));m[X]=ye}v=k+1}while(vm;){const E=d.charCodeAt(--h);if(E!==32&&E!==9)return h+1}return m}function f(d,h,m){const E=(m==null?void 0:m.encode)||encodeURIComponent;if(!t.test(d))throw new TypeError(`argument name is invalid: ${d}`);const b=E(h);if(!e.test(b))throw new TypeError(`argument val is invalid: ${h}`);let v=d+"="+b;if(!m)return v;if(m.maxAge!==void 0){if(!Number.isInteger(m.maxAge))throw new TypeError(`option maxAge is invalid: ${m.maxAge}`);v+="; Max-Age="+m.maxAge}if(m.domain){if(!r.test(m.domain))throw new TypeError(`option domain is invalid: ${m.domain}`);v+="; Domain="+m.domain}if(m.path){if(!o.test(m.path))throw new TypeError(`option path is invalid: ${m.path}`);v+="; Path="+m.path}if(m.expires){if(!p(m.expires)||!Number.isFinite(m.expires.valueOf()))throw new TypeError(`option expires is invalid: ${m.expires}`);v+="; Expires="+m.expires.toUTCString()}if(m.httpOnly&&(v+="; HttpOnly"),m.secure&&(v+="; Secure"),m.partitioned&&(v+="; Partitioned"),m.priority)switch(typeof m.priority=="string"?m.priority.toLowerCase():void 0){case"low":v+="; Priority=Low";break;case"medium":v+="; Priority=Medium";break;case"high":v+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${m.priority}`)}if(m.sameSite)switch(typeof m.sameSite=="string"?m.sameSite.toLowerCase():m.sameSite){case!0:case"strict":v+="; SameSite=Strict";break;case"lax":v+="; SameSite=Lax";break;case"none":v+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${m.sameSite}`)}return v}function l(d){if(d.indexOf("%")===-1)return d;try{return decodeURIComponent(d)}catch{return d}}function p(d){return n.call(d)==="[object Date]"}return T}xt();[...we];new TextEncoder;(class extends y.Component{constructor(t){super(t),this.state={error:null,location:t.location}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location?{error:null,location:t.location}:{error:e.error,location:e.location}}render(){return this.state.error?y.createElement(Vt,{error:this.state.error,renderAppShell:!0}):this.props.children}});function ae({renderAppShell:t,title:e,children:r}){return t?y.createElement("html",{lang:"en"},y.createElement("head",null,y.createElement("meta",{charSet:"utf-8"}),y.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),y.createElement("title",null,e)),y.createElement("body",null,y.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r))):r}function Vt({error:t,renderAppShell:e}){console.error(t);let r=y.createElement("script",{dangerouslySetInnerHTML:{__html:` console.log( "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information." ); `}});if(Re(t))return y.createElement(ae,{renderAppShell:e,title:"Unhandled Thrown Response!"},y.createElement("h1",{style:{fontSize:"24px"}},t.status," ",t.statusText),r);let o;if(t instanceof Error)o=t;else{let n=t==null?"Unknown Error":typeof t=="object"&&"toString"in t?t.toString():JSON.stringify(t);o=new Error(n)}return y.createElement(ae,{renderAppShell:e,title:"Application Error!"},y.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),y.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},o.stack),r)}function Ct(t){if(!t)return null;let e=Object.entries(t),r={};for(let[o,n]of e)if(n&&n.__type==="RouteErrorResponse")r[o]=new Pe(n.status,n.statusText,n.data,n.internal===!0);else if(n&&n.__type==="Error"){if(n.__subType){let a=window[n.__subType];if(typeof a=="function")try{let s=new a(n.message);s.stack=n.stack,r[o]=s}catch{}}if(r[o]==null){let a=new Error(n.message);a.stack=n.stack,r[o]=a}}else r[o]=n;return r}function Ht({state:t,routes:e,getRouteInfo:r,location:o,basename:n,isSpaMode:a}){let s={...t,loaderData:{...t.loaderData}},u=be(e,o,n);if(u)for(let c of u){let f=c.route.id,l=r(f);Oe(f,l.clientLoader,l.hasLoader,a)&&(l.hasHydrateFallback||!l.hasLoader)?delete s.loaderData[f]:l.hasLoader||(s.loaderData[f]=null)}return s}function Mt(t){return g.createElement(Te,{flushSync:$e.flushSync,...t})}var _=null,I=null;function qt(){if(!_&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules){if(window.__reactRouterManifest.sri===!0){const t=document.querySelector("script[rr-importmap]");if(t!=null&&t.textContent)try{window.__reactRouterManifest.sri=JSON.parse(t.textContent).integrity}catch(e){console.error("Failed to parse import map",e)}}_={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}function $t({getContext:t,unstable_instrumentations:e}){var s,u;if(qt(),!_)throw new Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to ``");let r=_;if(!_.stateDecodingPromise){let c=_.context.stream;se(c,"No stream found for single fetch decoding"),_.context.stream=void 0,_.stateDecodingPromise=Ie(c,window).then(f=>{_.context.state=f.value,r.stateDecodingPromise.value=!0}).catch(f=>{r.stateDecodingPromise.error=f})}if(_.stateDecodingPromise.error)throw _.stateDecodingPromise.error;if(!_.stateDecodingPromise.value)throw _.stateDecodingPromise;let o=Ae(_.manifest.routes,_.routeModules,_.context.state,_.context.ssr,_.context.isSpaMode),n;if(_.context.isSpaMode){let{loaderData:c}=_.context.state;(s=_.manifest.routes.root)!=null&&s.hasLoader&&c&&"root"in c&&(n={loaderData:{root:c.root}})}else n=Ht({state:_.context.state,routes:o,getRouteInfo:c=>{var f,l,p;return{clientLoader:(f=_.routeModules[c])==null?void 0:f.clientLoader,hasLoader:((l=_.manifest.routes[c])==null?void 0:l.hasLoader)===!0,hasHydrateFallback:((p=_.routeModules[c])==null?void 0:p.HydrateFallback)!=null}},location:window.location,basename:(u=window.__reactRouterContext)==null?void 0:u.basename,isSpaMode:_.context.isSpaMode}),n&&n.errors&&(n.errors=Ct(n.errors));window.history.state&&window.history.state.masked&&window.history.replaceState({...window.history.state,masked:void 0},"");let a=Se({routes:o,history:Ve(),basename:_.context.basename,getContext:t,hydrationData:n,hydrationRouteProperties:Me,unstable_instrumentations:e,mapRouteProperties:He,future:{middleware:_.context.future.v8_middleware},dataStrategy:xe(()=>a,_.manifest,_.routeModules,_.context.ssr,_.context.basename,_.context.future.unstable_trailingSlashAwareDataRequests),patchRoutesOnNavigation:ke(()=>a,_.manifest,_.routeModules,_.context.ssr,_.context.routeDiscovery,_.context.isSpaMode,_.context.basename)});return _.router=a,a.state.initialized&&(_.routerInitialized=!0,a.initialize()),a.createRoutesForHMR=Ce,window.__reactRouterDataRouter=a,a}function Ut(t){I||(I=$t({getContext:t.getContext,unstable_instrumentations:t.unstable_instrumentations}));let[e,r]=g.useState(void 0);g.useEffect(()=>{},[]),g.useEffect(()=>{},[e]);let[o,n]=g.useState(I.state.location);return g.useLayoutEffect(()=>{_&&_.router&&!_.routerInitialized&&(_.routerInitialized=!0,_.router.initialize())},[]),g.useLayoutEffect(()=>{if(_&&_.router)return _.router.subscribe(a=>{a.location!==o&&n(a.location)})},[o]),se(_,"ssrInfo unavailable for HydratedRouter"),De(I,_.manifest,_.routeModules,_.context.ssr,_.context.routeDiscovery,_.context.isSpaMode),g.createElement(g.Fragment,null,g.createElement(je.Provider,{value:{manifest:_.manifest,routeModules:_.routeModules,future:_.context.future,criticalCss:e,ssr:_.context.ssr,isSpaMode:_.context.isSpaMode,routeDiscovery:_.context.routeDiscovery}},g.createElement(Le,{location:o},g.createElement(Mt,{router:I,unstable_useTransitions:t.unstable_useTransitions,onError:t.onError}))),g.createElement(g.Fragment,null))}function Ft(){return[...Object.values(window.__reactRouterRouteModules).flatMap(e=>typeof(e==null?void 0:e.handle)!="object"?[]:e.handle?"i18n"in e.handle?typeof e.handle.i18n=="string"?[e.handle.i18n]:Array.isArray(e.handle.i18n)&&e.handle.i18n.every(r=>typeof r=="string")?e.handle.i18n:[]:[]:[])]}const zt=["af","am","ar","bs","cs","da","de","el","en","es","fa","fi","fr","he","hi","hr","hu","id","it","ja","ko","nb","nl","nn","pa","pl","pt-BR","pt-PT","ro","ru","sl","sr-Cyrl","sr-Latn","sv","ta","th","tr","ug","uk","vi","zh-Hans","zh-Hant"],U="en",F="common",ve={useSuspense:!1,transKeepBasicHtmlNodesFor:["br","strong","b","i","em","p"]},Xt={pluralSeparator:".",interpolation:{prefix:"%{",suffix:"}",escapeValue:!1},fallbackLng:U,defaultNS:F,react:ve};var Bt=function(e){return{type:"backend",init:function(o,n,a){},read:function(o,n,a){if(typeof e=="function"){if(e.length<3){try{var s=e(o,n);s&&typeof s.then=="function"?s.then(function(u){return a(null,u&&u.default||u)}).catch(a):a(null,s)}catch(u){a(u)}return}e(o,n,a);return}a(null,e&&e[o]&&e[o][n])}}};const M=Object.assign({"./locales/author/af.json":()=>i(()=>import("./af-BWJJtl8w.js"),[]),"./locales/author/am.json":()=>i(()=>import("./am-CVKXlwbW.js"),[]),"./locales/author/ar.json":()=>i(()=>import("./ar-D2Nw5Mc9.js"),[]),"./locales/author/bs.json":()=>i(()=>import("./bs-jN4xcvFd.js"),[]),"./locales/author/cs.json":()=>i(()=>import("./cs-Bl5yS7It.js"),[]),"./locales/author/da.json":()=>i(()=>import("./da-NxeU-E-a.js"),[]),"./locales/author/de.json":()=>i(()=>import("./de-Wx7kOQZ7.js"),[]),"./locales/author/el.json":()=>i(()=>import("./el-SvhD3fRQ.js"),[]),"./locales/author/en.json":()=>i(()=>import("./en-Dedl5whf.js"),[]),"./locales/author/es.json":()=>i(()=>import("./es-1hzBjZjD.js"),[]),"./locales/author/fa.json":()=>i(()=>import("./fa-BToAY9Vi.js"),[]),"./locales/author/fi.json":()=>i(()=>import("./fi-Dbo3FUBU.js"),[]),"./locales/author/fr.json":()=>i(()=>import("./fr-iFfdtdp0.js"),[]),"./locales/author/he.json":()=>i(()=>import("./he-Bef9VE2s.js"),[]),"./locales/author/hi.json":()=>i(()=>import("./hi-BD2p8MSs.js"),[]),"./locales/author/hr.json":()=>i(()=>import("./hr-CtkVgeJA.js"),[]),"./locales/author/hu.json":()=>i(()=>import("./hu-CukDXfF7.js"),[]),"./locales/author/id.json":()=>i(()=>import("./id-Cykq1q_0.js"),[]),"./locales/author/it.json":()=>i(()=>import("./it-DPFmu8KF.js"),[]),"./locales/author/ja.json":()=>i(()=>import("./ja-DxvsYJaj.js"),[]),"./locales/author/ko.json":()=>i(()=>import("./ko-DDvEhzKF.js"),[]),"./locales/author/nb.json":()=>i(()=>import("./nb-G-9tgvRx.js"),[]),"./locales/author/nl.json":()=>i(()=>import("./nl-SmVdS61H.js"),[]),"./locales/author/nn.json":()=>i(()=>import("./nn-BVL5Kb_x.js"),[]),"./locales/author/pa.json":()=>i(()=>import("./pa-CBh_hGpc.js"),[]),"./locales/author/pl.json":()=>i(()=>import("./pl-C0EGZJ0t.js"),[]),"./locales/author/pt-BR.json":()=>i(()=>import("./pt-BR-CYuw7CwP.js"),[]),"./locales/author/pt-PT.json":()=>i(()=>import("./pt-PT-pXFlFOse.js"),[]),"./locales/author/ro.json":()=>i(()=>import("./ro-1bm6uert.js"),[]),"./locales/author/ru.json":()=>i(()=>import("./ru-CVeUQxVl.js"),[]),"./locales/author/sl.json":()=>i(()=>import("./sl-BhOCFEEv.js"),[]),"./locales/author/sr-Cyrl.json":()=>i(()=>import("./sr-Cyrl-DYX4CAiF.js"),[]),"./locales/author/sr-Latn.json":()=>i(()=>import("./sr-Latn-BnzoGYLH.js"),[]),"./locales/author/sv.json":()=>i(()=>import("./sv-DLWnOhzq.js"),[]),"./locales/author/ta.json":()=>i(()=>import("./ta-CfyhZpU9.js"),[]),"./locales/author/th.json":()=>i(()=>import("./th-x6Mm3mgo.js"),[]),"./locales/author/tr.json":()=>i(()=>import("./tr-BBuFuQ9X.js"),[]),"./locales/author/ug.json":()=>i(()=>import("./ug-KK7iYg4m.js"),[]),"./locales/author/uk.json":()=>i(()=>import("./uk-jtr3bYI_.js"),[]),"./locales/author/vi.json":()=>i(()=>import("./vi-vWnwbZbd.js"),[]),"./locales/author/zh-Hans.json":()=>i(()=>import("./zh-Hans-BXg6TTf5.js"),[]),"./locales/author/zh-Hant.json":()=>i(()=>import("./zh-Hant-D1yGPHfc.js"),[]),"./locales/book/af.json":()=>i(()=>import("./af-Dd39yRHR.js"),[]),"./locales/book/am.json":()=>i(()=>import("./am-sSzSeHU_.js"),[]),"./locales/book/ar.json":()=>i(()=>import("./ar-DUqVib4E.js"),[]),"./locales/book/bs.json":()=>i(()=>import("./bs-B0V5y3Ti.js"),[]),"./locales/book/cs.json":()=>i(()=>import("./cs-2MfXAmjQ.js"),[]),"./locales/book/da.json":()=>i(()=>import("./da-SUUYcmGZ.js"),[]),"./locales/book/de.json":()=>i(()=>import("./de-B4HeY1Q3.js"),[]),"./locales/book/el.json":()=>i(()=>import("./el-DEYW4TJI.js"),[]),"./locales/book/en.json":()=>i(()=>import("./en-CyUtPUn4.js"),[]),"./locales/book/es.json":()=>i(()=>import("./es-DCNGdLpY.js"),[]),"./locales/book/fa.json":()=>i(()=>import("./fa-CN6Wnhjw.js"),[]),"./locales/book/fi.json":()=>i(()=>import("./fi-f4aRMeKY.js"),[]),"./locales/book/fr.json":()=>i(()=>import("./fr-ZxMEisNJ.js"),[]),"./locales/book/he.json":()=>i(()=>import("./he-CI3zPZwV.js"),[]),"./locales/book/hi.json":()=>i(()=>import("./hi-CGHkqF9I.js"),[]),"./locales/book/hr.json":()=>i(()=>import("./hr-XjZ1uJkp.js"),[]),"./locales/book/hu.json":()=>i(()=>import("./hu-ar3OhAeY.js"),[]),"./locales/book/id.json":()=>i(()=>import("./id-Cq-bGizT.js"),[]),"./locales/book/it.json":()=>i(()=>import("./it-DhZcdHcl.js"),[]),"./locales/book/ja.json":()=>i(()=>import("./ja-CXBvPnQ4.js"),[]),"./locales/book/ko.json":()=>i(()=>import("./ko-CSenE4BB.js"),[]),"./locales/book/nb.json":()=>i(()=>import("./nb-BraFz1jp.js"),[]),"./locales/book/nl.json":()=>i(()=>import("./nl-DSk5TGEG.js"),[]),"./locales/book/nn.json":()=>i(()=>import("./nn-UzU7xu5X.js"),[]),"./locales/book/pa.json":()=>i(()=>import("./pa-k0qfZk-9.js"),[]),"./locales/book/pl.json":()=>i(()=>import("./pl-1cacEmVC.js"),[]),"./locales/book/pt-BR.json":()=>i(()=>import("./pt-BR-BRghLj7h.js"),[]),"./locales/book/pt-PT.json":()=>i(()=>import("./pt-PT-_lO1TokX.js"),[]),"./locales/book/ro.json":()=>i(()=>import("./ro-BUIKGfEB.js"),[]),"./locales/book/ru.json":()=>i(()=>import("./ru-BIMVZRXj.js"),[]),"./locales/book/sl.json":()=>i(()=>import("./sl-BOIpjLQW.js"),[]),"./locales/book/sr-Cyrl.json":()=>i(()=>import("./sr-Cyrl-yL-R2oxw.js"),[]),"./locales/book/sr-Latn.json":()=>i(()=>import("./sr-Latn-B0XLSzjq.js"),[]),"./locales/book/sv.json":()=>i(()=>import("./sv-DG3AWwhW.js"),[]),"./locales/book/ta.json":()=>i(()=>import("./ta-DmcYjuDE.js"),[]),"./locales/book/th.json":()=>i(()=>import("./th-EHE60Jmi.js"),[]),"./locales/book/tr.json":()=>i(()=>import("./tr-CDfXl9n2.js"),[]),"./locales/book/ug.json":()=>i(()=>import("./ug-g1qKOCtK.js"),[]),"./locales/book/uk.json":()=>i(()=>import("./uk-BXnugXSE.js"),[]),"./locales/book/vi.json":()=>i(()=>import("./vi-D3jEHwC4.js"),[]),"./locales/book/zh-Hans.json":()=>i(()=>import("./zh-Hans-UDIQTiTC.js"),[]),"./locales/book/zh-Hant.json":()=>i(()=>import("./zh-Hant-ChHQ1NcX.js"),[]),"./locales/common/af.json":()=>i(()=>import("./af-B2MBahKV.js"),[]),"./locales/common/am.json":()=>i(()=>import("./am-DhWgnKpc.js"),[]),"./locales/common/ar.json":()=>i(()=>import("./ar-DrIQnbrN.js"),[]),"./locales/common/bs.json":()=>i(()=>import("./bs-Cbv_pJdn.js"),[]),"./locales/common/cs.json":()=>i(()=>import("./cs-DrUYubcJ.js"),[]),"./locales/common/da.json":()=>i(()=>import("./da-BjWB4DEZ.js"),[]),"./locales/common/de.json":()=>i(()=>import("./de-Baz3o09c.js"),[]),"./locales/common/el.json":()=>i(()=>import("./el-sk3LuP-U.js"),[]),"./locales/common/en.json":()=>i(()=>import("./en-Br5lNmta.js"),[]),"./locales/common/es.json":()=>i(()=>import("./es-1NQvNi2Z.js"),[]),"./locales/common/fa.json":()=>i(()=>import("./fa-ljvDYkhV.js"),[]),"./locales/common/fi.json":()=>i(()=>import("./fi-C_nHnXpX.js"),[]),"./locales/common/fr.json":()=>i(()=>import("./fr-Ddezqfy-.js"),[]),"./locales/common/he.json":()=>i(()=>import("./he-BSMq6t4y.js"),[]),"./locales/common/hi.json":()=>i(()=>import("./hi-BILSiIwg.js"),[]),"./locales/common/hr.json":()=>i(()=>import("./hr-Zrx7F0KZ.js"),[]),"./locales/common/hu.json":()=>i(()=>import("./hu-Cv8CCBVu.js"),[]),"./locales/common/id.json":()=>i(()=>import("./id-DhN1adJI.js"),[]),"./locales/common/it.json":()=>i(()=>import("./it-Bir6FVmi.js"),[]),"./locales/common/ja.json":()=>i(()=>import("./ja-LCl5bKgN.js"),[]),"./locales/common/ko.json":()=>i(()=>import("./ko-jZd_xn80.js"),[]),"./locales/common/nb.json":()=>i(()=>import("./nb-BOsAmmsp.js"),[]),"./locales/common/nl.json":()=>i(()=>import("./nl-BlxS49lp.js"),[]),"./locales/common/nn.json":()=>i(()=>import("./nn-cqdbkrje.js"),[]),"./locales/common/pa.json":()=>i(()=>import("./pa-Bx7abfzk.js"),[]),"./locales/common/pl.json":()=>i(()=>import("./pl-Cy5AHuAP.js"),[]),"./locales/common/pt-BR.json":()=>i(()=>import("./pt-BR-DsSqqwS0.js"),[]),"./locales/common/pt-PT.json":()=>i(()=>import("./pt-PT-C0nxte0-.js"),[]),"./locales/common/ro.json":()=>i(()=>import("./ro-CnmuKEoO.js"),[]),"./locales/common/ru.json":()=>i(()=>import("./ru-Ck71XCzI.js"),[]),"./locales/common/sl.json":()=>i(()=>import("./sl-h8cAYBPH.js"),[]),"./locales/common/sr-Cyrl.json":()=>i(()=>import("./sr-Cyrl-B1Hagstx.js"),[]),"./locales/common/sr-Latn.json":()=>i(()=>import("./sr-Latn-C1tCx0Pn.js"),[]),"./locales/common/sv.json":()=>i(()=>import("./sv-BzsEi1CZ.js"),[]),"./locales/common/ta.json":()=>i(()=>import("./ta-BBiIjyUC.js"),[]),"./locales/common/th.json":()=>i(()=>import("./th-7odAM4f2.js"),[]),"./locales/common/tr.json":()=>i(()=>import("./tr-CRjH5b9a.js"),[]),"./locales/common/ug.json":()=>i(()=>import("./ug-DLFAfsfU.js"),[]),"./locales/common/uk.json":()=>i(()=>import("./uk-zoEgxB2-.js"),[]),"./locales/common/vi.json":()=>i(()=>import("./vi-KYKabhOO.js"),[]),"./locales/common/zh-Hans.json":()=>i(()=>import("./zh-Hans-CGYG1_GT.js"),[]),"./locales/common/zh-Hant.json":()=>i(()=>import("./zh-Hant-CU99okdU.js"),[])});async function Nt(){await N.use(St).use(ce).use(fe).init({...Xt,supportedLngs:zt,defaultNS:F,fallbackLng:U,react:ve,ns:Ft(),backend:{backends:[Bt(async(t,e)=>{const r=`./locales/${e}/${t}.json`;return r in M?M[`./locales/${e}/${t}.json`]():(console.warn("Could not find locale",{language:t,namespace:e,key:r}),M[`./locales/${F}/${U}.json`]())}),he],backendsOptions:[{},{loadPath:"/locales/%{ns}/%{lng}.json"}]},detection:{order:["htmlTag"],caches:[]}}),g.startTransition(()=>{At.hydrateRoot(document,C.jsx(kt,{i18n:N,children:C.jsx(g.StrictMode,{children:C.jsx(Ut,{})})}))})}Nt();