phanpy-cz/assets/useTitle-6AJYXxJy.js

39 lines
219 KiB
JavaScript
Raw Permalink Normal View History

2024-10-08 17:16:36 +00:00
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./compose-hDlR2o-x.js","./fuse-uYeGZ3ik.js"])))=>i.map(i=>d[i]);
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();"AbortSignal"in window&&(AbortSignal.timeout=AbortSignal.timeout||(e=>{const t=new AbortController;return setTimeout(()=>t.abort(),e),t.signal}));"URL"in window&&typeof URL.parse!="function"&&(URL.parse=function(e,t){if(!e)return null;try{return t?new URL(e,t):new URL(e)}catch{return null}});var it=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ed(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Mo={},No={};(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0;var t;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(t=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[t.MalformedUnicode,"malformed Unicode character escape sequence"],[t.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[t.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[t.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[t.EndOfString,"malformed escape sequence at end of string"]])})(No);(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;const t=No;Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return t.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return t.errorMessages}});function r(d){return!d.match(/[^a-f0-9]/i)?parseInt(d,16):NaN}function n(d,m,b){const v=r(d);if(Number.isNaN(v)||b!==void 0&&b!==d.length)throw new SyntaxError(t.errorMessages.get(m));return v}function o(d){const m=n(d,t.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(m)}function a(d,m){const b=n(d,t.ErrorType.MalformedUnicode,4);if(m!==void 0){const v=n(m,t.ErrorType.MalformedUnicode,4);return String.fromCharCode(b,v)}return String.fromCharCode(b)}function i(d){return d.charAt(0)==="{"&&d.charAt(d.length-1)==="}"}function s(d){if(!i(d))throw new SyntaxError(t.errorMessages.get(t.ErrorType.MalformedUnicode));const m=d.slice(1,-1),b=n(m,t.ErrorType.MalformedUnicode);try{return String.fromCodePoint(b)}catch(v){throw v instanceof RangeError?new SyntaxError(t.errorMessages.get(t.ErrorType.CodePointLimit)):v}}function l(d,m=!1){if(m)throw new SyntaxError(t.errorMessages.get(t.ErrorType.OctalDeprecation));const b=parseInt(d,8);return String.fromCharCode(b)}const c=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function h(d){return c.get(d)||d}const u=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function f(d,m=!1){return d.replace(u,function(b,v,w,S,x,H,J,Z,K){if(v!==void 0)return"\\";if(w!==void 0)return o(w);if(S!==void 0)return s(S);if(x!==void 0)return a(x,H);if(J!==void 0)return a(J);if(Z==="0")return"\0";if(Z!==void 0)return l(Z,!m);if(K!==void 0)return h(K);throw new SyntaxError(t.errorMessages.get(t.ErrorType.EndOfString))})}e.unraw=f,e.default=f})(Mo);var bt={},Io={},Kr={exports:{}},Sd=Kr.exports;(function(e){(function(t,r){e.exports?e.exports=r():t.moo=r()})(it,function(){"use strict";var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=typeof new RegExp().sticky=="boolean";function o(p){return p&&r.call(p)==="[object RegExp]"}function a(p){return p&&typeof p=="object"&&!o(p)&&!Array.isArray(p)}function i(p){return p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(p){var g=new RegExp("|"+p);return g.exec("").length-1}function l(p){return"("+p+")"}function c(p){if(!p.length)return"(?!)";var g=p.map(function(E){return"(?:"+E+")"}).join("|");return"(?:"+g+")"}function h(p){if(typeof p=="string")return"(?:"+i(p)+")";if(o(p)){if(p.ignoreCase)throw new Error("RegExp /i flag not allowed");if(p.global)throw new Error("RegExp /g flag is implied");if(p.sticky)throw new Error("RegExp /y flag is implied");if(p.multiline)throw new Error("RegExp /m flag is implied");return p.source}else throw new Error("Not a pattern: "+p)}function u(p,g){return p.length>g?p:Array(g-p.length+1).join(" ")+p}function f(p,g){for(var E=p.length,C=0;;){var A=p.lastIndexOf(`
`,E-1);if(A===-1||(C++,E=A,C===g)||E===0)break}var T=C<g?0:E+1;return p.substring(T).split(`
`)}function d(p){for(var g=Object.getOwnPropertyNames(p),E=[],C=0;C<g.length;C++){var A=g[C],T=p[A],P=[].concat(T);if(A==="include"){for(var D=0;D<P.length;D++)E.push({include:P[D]});continue}var k=[];P.forEach(function(I){a(I)?(k.length&&E.push(b(A,k)),E.push(b(A,I)),k=[]):k.push(I)}),k.length&&E.push(b(A,k))}return E}function m(p){for(var g=[],E=0;E<p.length;E++){var C=p[E];if(C.include){for(var A=[].concat(C.include),T=0;T<A.length;T++)g.push({include:A[T]});continue}if(!C.type)throw new Error("Rule has no type: "+JSON.stringify(C));g.push(b(C.type,C))}return g}function b(p,g){if(a(g)||(g={match:g}),g.include)throw new Error("Matching rules cannot also include states");var E={defaultType:p,lineBreaks:!!g.error||!!g.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var C in g)t.call(g,C)&&(E[C]=g[C]);if(typeof E.type=="string"&&p!==E.type)throw new Error("Type transform cannot be a string (type '"+E.type+"' for token '"+p+"')");var A=E.match;return E.match=Array.isArray(A)?A:A?[A]:[],E.match.sort(function(T,P){return o(T)&&o(P)?0:o(P)?-1:o(T)?1:P.length-T.length}),E}function v(p){return Array.isArray(p)?m(p):d(p)}var w=b("error",{lineBreaks:!0,shouldThrow:!0});function S(p,g){for(var E=null,C=Object.create(null),A=!0,T=null,P=[],D=[],k=0;k<p.length;k++)p[k].fallback&&(A=!1);for(var k=0;k<p.length;k++){var I=p[k];if(I.include)throw new Error("Inheritance is not allowed in stateless lexers");if(I.error||I.fallback){if(E)throw!I.fallback==!E.fallback?new Error("Multiple "+(I.fallback?"fallback":"error")+" rules not allowed (for token '"+I.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+I.defaultType+"')");E=I}var $=I.match.slice();if(A)for(;$.length&&typeof $[0]=="string"&&$[0].length===1;){var Q=$.shift();C[Q.charCodeAt(0)]=I}if(I.pop||I.push||I.next){if(!g)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+I.defaultType+"')");if(I.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+I.defaultType+"')")}if($.length!==0){A=!1,P.push(I);for(var ue=0;ue<$.length;ue++){var he=$[ue];if(o(he)){if(T===null)T=he.unicode;else if(T!==he.unicode&&I.fallback===!1)throw new Error("If one rule is /u then all must be")}}var ye=c($.map(h)),ce=new RegExp(ye);if(ce.test(""))throw new Error("RegExp matches empty string: "+ce);var Ee=s(ye);if(Ee>0)throw new Error("RegExp has capture groups: "+ce+`
Use (?: ) instead`);if(!I.lineBreaks&&ce.test(`
`))throw new Error("Rule should declare lineBreaks: "+ce);D.push(l(ye))}}var Te=E&&E.fallback,ke=n&&!Te?"ym":"gm",Ye=n||Te?"":"|";T===!0&&(ke+="u");var lr=new RegExp(c(D)+Ye,ke);return{regexp:lr,groups:P,fast:C,error:E||w}}function x(p){var g=S(v(p));return new K({start:g},"start")}function H(p,g,E){var C=p&&(p.push||p.next);if(C&&!E[C])throw new Error("Missing state '"+C+"' (in token '"+p.defaultType+"' of state '"+g+"')");if(p&&p.pop&&+p.pop!=1)throw new Error("pop must be 1 (in token '"+p.defaultType+"' of state '"+g+"')")}function J(p,g){var E=p.$all?v(p.$all):[];delete p.$all;var C=Object.getOwnPropertyNames(p);g||(g=C[0]);for(var A=Object.create(null),T=0;T<C.length;T++){var P=C[T];A[P]=v(p[P]).concat(E)}for(var T=0;T<C.length;T++)for(var P=C[T],D=A[P],k=Object.create(null),I=0;I<D.length;I++){var $=D[I];if($.include){var Q=[I,1];if($.include!==P&&!k[$.include]){k[$.include]=!0;var ue=A[$.include];if(!ue)throw new Error("Cannot include nonexistent state '"+$.include+"' (in state '"+P+"')");for(var he=0;he<ue.length;he++){var ye=ue[he];D.indexOf(ye)===-1&&Q.push(ye)}}D.splice.apply(D,Q),I--}}for(var ce=Object.create(null),T=0;T<C.length;T++){var P=C[T];ce[P]=S(A[P],!0)}for(var T=0;T<C.length;T++){for(var Ee=C[T],Te=ce[Ee],ke=Te.groups,I=0;I<ke.length;I++)H(ke[I],Ee,ce);for(var Ye=Object.getOwnPropertyNames(Te.fast),I=0;I<Ye.length;I++)H(Te.fast[Ye[I]],Ee,ce)}return new K(ce,g)}function Z(p){for(var g=typeof Map<"u",E=g?new Map:Object.create(null),C=Object.getOwnPropertyNames(p),A=0;A<C.length;A++){var T=C[A],P=p[T],D=Array.isArray(P)?P:[P];D.forEach(function(k){if(typeof k!="string")throw new Error("keyword must be string (in keyword '"+T+"')");g?E.set(k,T):E[k]=T})}return function(k){return g?E.get(k):E[k]}}var K=function(p,g){this.startState=g,this.states=p,this.buffer="",this.stack=[],this.reset()};K.prototype.reset=function(p,g){return this.buffer=p||"",this.index=0,this.line=g?g.line:1,this.col=g?g.col:1,this.queuedToken=g?g.queuedToken:null,this.queuedText=g?g.queuedText:"",this.queuedThrow=g?g.queuedThrow:null,this.setState(g?g.state:this.startState),this.stack=g&&g.stack?g.stack.slice():[],this},K.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},K.prototype.setState=function(p){if(!(!p||this.state===p)){this.state=p;var g=this.states[p];this.groups=g.groups,this.error=g.error,this.re=g.regexp,this.fast=g.fast}},K.prototype.popState=function(){this.setState(this.stack.pop())},K.prototype.pushState=function(p){this.stack.push(this.state),this.setState(p)};var se=n?function(p,g){return p.exec(g)}:function(p,g){var E=p.exec(g);return E[0].length===0?null:E};K.prototype._getGroup=function(p){for(var g=this.groups.length,E=0;E<g;E++)if(p[E+1]!==void 0)return this.groups[E];throw new Error("Cannot find token type for matched text")};function Y(){return this.value}if(K.prototype.next=function(){var p=this.index;if(this.queuedGroup){var g=this._token(this.queuedGroup,this.queuedText,p);return this.queuedGroup=null,this.queuedText="",g}var E=this.buffer;if(p!==E.length){var P=this.fast[E.charCodeAt(p)];if(P)return this._token(P,E.charAt(p),p);var C=this.re;C.lastIndex=p;var A=se(C,E),T=this.error;if(A==null)return this._token(T,E.slice(p,E.length),p);var P=this._getGroup(A),D=A[0];return T.fallback&&A.index!==p?(this.queuedGroup=P,this.queuedText=D,this._token(T,E.slice(p,A.index),p)):this._token(P,D,p)}},K.prototype._token=function(p,g,E){var C=0;if(p.lineBreaks){var A=/\n/g,T=1;if(g===`
`)C=1;else for(;A.exec(g);)C++,T=A.lastIndex}var P={type:typeof p.type=="function"&&p.type(g)||p.defaultType,value:typeof p.value=="function"?p.value(g):g,text:g,toString:Y,offset:E,lineBreaks:C,line:this.line,col:this.col},D=g.length;if(this.index+=D,this.line+=C,C!==0?this.col=D-T+1:this.col+=D,p.shouldThrow){var k=new Error(this.formatError(P,"invalid syntax"));throw k}return p.pop?this.popState():p.push?this.pushState(p.push):p.next&&this.setState(p.next),P},typeof Symbol<"u"&&Symbol.iterator){var X=function(p){this.lexer=p};X.prototype.next=function(){var p=this.lexer.next();return{value:p,done:!p}},X.prototype[Symbol.iterator]=function(){return this},K.prototype[Symbol.iterator]=function(){return new X(this)}}return K.prototype.formatError=function(p,g){if(p==null)var E=this.buffer.slice(this.index),p={text:E,offset:this.index,lineBreaks:E.indexOf(`
`)===-1?0:1,line:this.line,col:this.col};var C=2,A=Math.max(p.line-C,1),T=p.line+C,P=String(T).length,D=f(this.buffer,this.line-p.line+C+1).slice(0,5),k=[];k.push(g+" at line "+p.line+" col "+p.col+":"),k.push("");for(var I=0;I<D.length;I++){var $=D[I],Q=A+I;k.push(u(String(Q),P)+" "+$),Q===p.line&&k.push(u("",P+p.col+1)+"^")}return k.join(`
`)},K.prototype.clone=function(){return new K(this.states,this.state)},K.prototype.has=function(p){return!0},{compile:x,states:J,error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:Z}})})(Kr);var Ri=Kr.exports;(function(e){"use strict";var t=it&&it.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.lexer=e.states=void 0;const r=t(Ri);e.states={body:{doubleapos:{match:"''",value:()=>"'"},quoted:{lineBreaks:!0,match:/'[{}#](?:[^]*?[^'])?'(?!')/u,value:n=>n.slice(1,-1).replace(/''/g,"'")},argument:{lineBreaks:!0,match:/\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,push:"arg",value:n=>n.substring(1).trim()},octothorpe:"#",end:{match:"}",pop:1},content:{lineBreaks:!0,match:/[^][^{}#']*/u}},arg:{select:{lineBreaks:!0,match:/,\s*(?:plural|select|selectordinal)\s*,\s*/u,next:"select",value:n=>n.split(",")[1].trim()},"func-args":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,next:"body",value:n=>n.split(",")[1].trim()},"func-simple":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,value:n=>n.substring(1).trim()},end:{match:"}",pop:1}},select:{offset:{lineBreaks:!0,match:/\s*offset\s*:\s*\d+\s*/u,value:n=>n.split(":")[1].trim()},case:{lineBreaks:!0,match:/\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,push:"body",value:n=>n.substring(0,n.indexOf("{")).trim()},end:{match:/\s*\}/u,pop:1}}},e.lexer=r.default.states(e.states)})(Io);Object.defineProperty(bt,"__esModule",{value:!0});var Ti=bt.parse=xi=bt.ParseError=void 0;const Do=Io,Lt=e=>({offset:e.offset,line:e.line,col:e.col,text:e.text,lineBreaks:e.lineBreaks}),cr=e=>e==="plural"||e==="select"||e==="selectordinal";function Oi(e,t){let r="",n="";for(const a of t){const i=a.ctx.text;switch(n+=i,a.type){case"content":r+=a.value;break;case"argument":case"function":case"octothorpe":r+=i;break;default:throw new ae(e,`Unsupported part in strict mode function arg style: ${i}`)}}return[{type:"content",value:r.trim(),ctx:Object.assign({},t[0].ctx,{text:n})}]}const Li=["number","date","time","spellout","ordinal","duration"],Pn=["zero","one","two","few","many","other"];class ae extends Error{constructor(t,r){super(Do.lexer.formatError(t,r))}}var xi=bt.ParseError=ae;class Mi{constructor(t,r){var n,o,a,i;this.lexer=Do.lexer.reset(t),this.cardinalKeys=(n=r==null?void 0:r.cardinal)!==null&&n!==void 0?n:Pn,this.ordinalKeys=(o=r==null?void 0:r.ordinal)!==null&&o!==void 0?o:Pn,this.strict=(a=r==null?void 0:r.strict)!==null&&a!==void 0?a:!1,this.strictPluralKeys=(i=r==null?void 0:r.strictPluralKeys)!==null&&i!==void 0?i:!0}parse(){return this.parseBody(!1,!0)}checkSelectKey(t,r,n){if(n[0]==="="){if(r==="select")throw new ae(t,`The case ${n} is not valid with select`)}else if(r!=="select"){const o=r==="plural"?this.cardinalKeys:this.ordinalKeys;if(this.strictPluralKeys&&o.length>0&&!o.includes(n)){const a=`The ${r} case ${n} is not valid in this locale`;throw new ae(t,a)}}}parseSelect({value:t},r,n,o){const a={type:o,arg:t,cases:[],ctx:n};o==="plural"||o==="selectordinal"?r=!0:this.strict&&(r=!1);for(const i of this.lexer)switch(i.type){case"offset":if(o==="select")throw new ae(i,"Unexpected plural offset for select");if(a.cases.length>0)throw new ae(i,"Plural offset must be set before cases");a.pluralOffset=Number(i.value),n.text+=i.text,n.lineBreaks+=i.lineBreaks;break;case"case":{this.checkSelectKey(i,o,i.value),a.cases.push({key:i.value,tokens:this.parseBody(r),ctx:Lt(i)});break}case"end":return a;default:throw new ae(i,`Unexpected lexer token: ${i.type}`)}throw new ae(null,"Unexpected message end")}parseArgToken(t,r){const n=Lt(t),o=this.lexer.next();if(!o)throw new ae(null,"Unexpected message end");if(n.text+=o.text,n.lineBreaks+=o.lineBreaks,this.strict&&(o.type==="func-simple"||o.type==="func-args")&&!Li.includes(o.value)){const a=`Invalid strict mode function arg type: ${o.value}`;throw new ae(t,a)}switch(o.type){case"end":return{type:"argument",arg:t.value,ctx:n};case"func-simple":{const a=this.lexer.next();if(!a)throw new ae(null,"Unexpected message end");if(a.type!=="end")throw new ae(a,`Un
* @remix-run/router v1.2.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function zt(){return zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zt.apply(this,arguments)}var Me;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Me||(Me={}));const Wn="popstate";function Es(e){e===void 0&&(e={});function t(o,a){let{pathname:i="/",search:s="",hash:l=""}=We(o.location.hash.substr(1));return Mr("",{pathname:i,search:s,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(o,a){let i=o.document.querySelector("base"),s="";if(i&&i.getAttribute("href")){let l=o.location.href,c=l.indexOf("#");s=c===-1?l:l.slice(0,c)}return s+"#"+(typeof a=="string"?a:an(a))}function n(o,a){Ss(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return Ps(t,r,n,e)}function ie(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ss(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Cs(){return Math.random().toString(36).substr(2,8)}function Yn(e){return{usr:e.state,key:e.key}}function Mr(e,t,r,n){return r===void 0&&(r=null),zt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?We(t):t,{state:r,key:t&&t.key||n||Cs()})}function an(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function We(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function As(e){let t=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,r=typeof e=="string"?e:an(e);return ie(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}function Ps(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s=Me.Pop,l=null;function c(){s=Me.Pop,l&&l({action:s,location:f.location})}function h(d,m){s=Me.Push;let b=Mr(f.location,d,m);r&&r(b,d);let v=Yn(b),w=f.createHref(b);try{i.pushState(v,"",w)}catch{o.location.assign(w)}a&&l&&l({action:s,location:f.location})}function u(d,m){s=Me.Replace;let b=Mr(f.location,d,m);r&&r(b,d);let v=Yn(b),w=f.createHref(b);i.replaceState(v,"",w),a&&l&&l({action:s,location:f.location})}let f={get action(){return s},get location(){return e(o,i)},listen(d){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Wn,c),l=d,()=>{o.removeEventListener(Wn,c),l=null}},createHref(d){return t(o,d)},encodeLocation(d){let m=As(typeof d=="string"?d:an(d));return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:u,go(d){return i.go(d)}};return f}var Jn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Jn||(Jn={}));function Rs(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?We(t):t,o=Ra(n.pathname||"/",r);if(o==null)return null;let a=Aa(e);Ts(a);let i=null;for(let s=0;i==null&&s<a.length;++s)i=Us(a[s],js(o));return i}function Aa(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(a,i,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};l.relativePath.startsWith("/")&&(ie(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=je([n,l.relativePath]),h=r.concat(l);a.children&&a.children.length>0&&(ie(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Aa(a.children,t,h,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:Ds(c,a.index),routesMeta:h})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let l of P
* React Router v6.6.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Ir(){return Ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ir.apply(this,arguments)}function Zs(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const Qs=typeof Object.is=="function"?Object.is:Zs,{useState:Xs,useEffect:el,useLayoutEffect:tl,useDebugValue:rl}=xr;function nl(e,t,r){const n=t(),[{inst:o},a]=Xs({inst:{value:n,getSnapshot:t}});return tl(()=>{o.value=n,o.getSnapshot=t,pr(o)&&a({inst:o})},[e,n,t]),el(()=>(pr(o)&&a({inst:o}),e(()=>{pr(o)&&a({inst:o})})),[e]),rl(n),n}function pr(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!Qs(r,n)}catch{return!0}}function ol(e,t,r){return t()}const al=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",il=!al,sl=il?ol:nl,Ld="useSyncExternalStore"in xr?(e=>e.useSyncExternalStore)(xr):sl,Oa=Ne(null),La=Ne(null);const ln=Ne(null),ar=Ne(null),dt=Ne({outlet:null,matches:[]}),xa=Ne(null);function ir(){return le(ar)!=null}function un(){return ir()||ie(!1),le(ar).location}function ll(){ir()||ie(!1);let{basename:e,navigator:t}=le(ln),{matches:r}=le(dt),{pathname:n}=un(),o=JSON.stringify(zs(r).map(s=>s.pathnameBase)),a=Ie(!1);return Ve(()=>{a.current=!0}),ut(function(s,l){if(l===void 0&&(l={}),!a.current)return;if(typeof s=="number"){t.go(s);return}let c=$s(s,JSON.parse(o),n,l.relative==="path");e!=="/"&&(c.pathname=c.pathname==="/"?e:je([e,c.pathname])),(l.replace?t.replace:t.push)(c,l.state,l)},[e,t,o,n])}function xd(){let{matches:e}=le(dt),t=e[e.length-1];return t?t.params:{}}function ul(e,t){ir()||ie(!1);let{navigator:r}=le(ln),n=le(La),{matches:o}=le(dt),a=o[o.length-1],i=a?a.params:{},s=a?a.pathname:"/",l=a?a.pathnameBase:"/",c=a&&a.route,h=un(),u;if(t){var f;let w=typeof t=="string"?We(t):t;l==="/"||(f=w.pathname)!=null&&f.startsWith(l)||ie(!1),u=w}else u=h;let d=u.pathname||"/",m=l==="/"?d:d.slice(l.length)||"/",b=Rs(e,{pathname:m}),v=hl(b&&b.map(w=>Object.assign({},w,{params:Object.assign({},i,w.params),pathname:je([l,r.encodeLocation?r.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:je([l,r.encodeLocation?r.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n||void 0);return t&&v?V(ar.Provider,{value:{location:Ir({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Me.Pop}},v):v}function cl(){let e=yl(),t=Ys(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n};return V(me,null,V("h2",null,"Unhandled Thrown Error!"),V("h3",{style:{fontStyle:"italic"}},t),r?V("pre",{style:o},r):null,V("p",null,"💿 Hey developer 👋"),V("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",V("code",{style:a},"errorElement")," props on ",V("code",{style:a},"<Route>")))}class dl extends pe{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location?{error:t.error,location:t.location}:{error:t.error||r.error,location:r.location}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?V(dt.Provider,{value:this.props.routeContext},V(xa.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function fl(e){let{routeContext:t,match:r,children:n}=e,o=le(Oa);return o&&o.static&&o.staticContext&&r.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),V(dt.Provider,{value:t},n)}function hl(e,t,r){if(t===void 0&&(t=[]),e==null)if(r!=null&&r.errors)e=r.matches;else return null;let n=e,o=r==null?void 0:r.errors;if(o!=null){let a=n.findIndex(i=>i.route.id&&(o==null?void 0:o[i.route.id]));a>=0||ie(!1),n=n.slice(0,Math.min(n.length,a+1))}return n.reduceRight((a,i,s)=>{let l=i.rout
* React Router DOM v6.6.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function kr(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(o=>[r,o]):[[r,n]])},[]))}function wl(e,t){let r=kr(e);for(let n of t.keys())r.has(n)||t.getAll(n).forEach(o=>{r.append(n,o)});return r}function Id(e){let{basename:t,children:r,window:n}=e,o=Ie();o.current==null&&(o.current=Es({window:n,v5Compat:!0}));let a=o.current,[i,s]=Ge({action:a.action,location:a.location});return Re(()=>a.listen(s),[a]),V(vl,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:a})}var eo;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(eo||(eo={}));var to;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(to||(to={}));function Dd(e){let t=Ie(kr(e)),r=un(),n=be(()=>wl(r.search,t.current),[r.search]),o=ll(),a=ut((i,s)=>{const l=kr(typeof i=="function"?i(n):i);o("?"+l,s)},[o,n]);return[n,a]}const bl=Symbol(),cn=Symbol(),_t="a",Ma="f",ro="p",Na="c",Ia="t",_r="n",mr="g",dn="h",wt="w",fn="o",hn="k";let El=(e,t)=>new Proxy(e,t);const Ur=Object.getPrototypeOf,Fr=new WeakMap,Da=e=>e&&(Fr.has(e)?Fr.get(e):Ur(e)===Object.prototype||Ur(e)===Array.prototype),Kt=e=>typeof e=="object"&&e!==null,Sl=e=>Object.values(Object.getOwnPropertyDescriptors(e)).some(t=>!t.configurable&&!t.writable),Cl=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(r=>{r.configurable=!0}),Object.create(Ur(e),t)},Al=(e,t)=>{const r={[Ma]:t};let n=!1;const o=(s,l)=>{if(!n){let c=r[_t].get(e);if(c||(c={},r[_t].set(e,c)),s===wt)c[wt]=!0;else{let h=c[s];h||(h=new Set,c[s]=h),h.add(l)}}},a=()=>{n=!0,r[_t].delete(e)},i={get(s,l){return l===cn?e:(o(hn,l),ka(Reflect.get(s,l),r[_t],r[Na],r[Ia]))},has(s,l){return l===bl?(a(),!0):(o(dn,l),Reflect.has(s,l))},getOwnPropertyDescriptor(s,l){return o(fn,l),Reflect.getOwnPropertyDescriptor(s,l)},ownKeys(s){return o(wt),Reflect.ownKeys(s)}};return t&&(i.set=i.deleteProperty=()=>!1),[i,r]},pn=e=>e[cn]||e,ka=(e,t,r,n)=>{if(!Da(e))return e;let o=n&&n.get(e);if(!o){const l=pn(e);Sl(l)?o=[l,Cl(l)]:o=[l],n==null||n.set(e,o)}const[a,i]=o;let s=r&&r.get(a);return(!s||s[1][Ma]!==!!i)&&(s=Al(a,!!i),s[1][ro]=El(i||a,s[0]),r&&r.set(a,s)),s[1][_t]=t,s[1][Na]=r,s[1][Ia]=n,s[1][ro]},Pl=(e,t)=>{const r=Reflect.ownKeys(e),n=Reflect.ownKeys(t);return r.length!==n.length||r.some((o,a)=>o!==n[a])},Ua=(e,t,r,n,o=Object.is)=>{if(o(e,t))return!1;if(!Kt(e)||!Kt(t))return!0;const a=r.get(pn(e));if(!a)return!0;if(n){const s=n.get(e);if(s&&s[_r]===t)return s[mr];n.set(e,{[_r]:t,[mr]:!1})}let i=null;try{for(const s of a[dn]||[])if(i=Reflect.has(e,s)!==Reflect.has(t,s),i)return i;if(a[wt]===!0){if(i=Pl(e,t),i)return i}else for(const s of a[fn]||[]){const l=!!Reflect.getOwnPropertyDescriptor(e,s),c=!!Reflect.getOwnPropertyDescriptor(t,s);if(i=l!==c,i)return i}for(const s of a[hn]||[])if(i=Ua(e[s],t[s],r,n,o),i)return i;return i===null&&(i=!0),i}finally{n&&n.set(e,{[_r]:t,[mr]:i})}};const Rl=e=>Da(e)&&e[cn]||null,no=(e,t=!0)=>{Fr.set(e,t)},Tl=(e,t,r)=>{const n=[],o=new WeakSet,a=(i,s)=>{var l,c,h;if(o.has(i))return;Kt(i)&&o.add(i);const u=Kt(i)&&t.get(pn(i));if(u){if((l=u[dn])===null||l===void 0||l.forEach(f=>{const d=`:has(${String(f)})`;n.push(s?[...s,d]:[d])}),u[wt]===!0){const f=":ownKeys";n.push(s?[...s,f]:[f])}else(c=u[fn])===null||c===void 0||c.forEach(f=>{const d=`:hasOwn(${String(f)})`;n.push(s?[...s,d]:[d])});(h=u[hn])===null||h===void 0||h.forEach(f=>{(!r||"value"in(Object.getOwnPropertyDescriptor(i,f)||{}))&&a(i[f],s?[...s,f]:[f])})}else s&&n.push(s)};return a(e),n};const Gt={BASE_URL:"./",DEV:!1,MODE:"production",PHANPY_CLIENT_NAME:"Phanpy",PHANPY_LINGVA_INSTANCES:"lingva.phanpy.social lingva.lunar.icu lingva.garudalinux.org translate.plausibility.cloud",PHANPY_PRIVACY_POLICY_URL:"https://github.com/cheeaun/phanpy/blob/main/PRIVACY.MD",PHANPY_WEBSITE:"https://phanpy.social",PROD:!0,SSR:!1,VITE_APP_ENV:"production"}
//# sourceMappingURL=useTitle-6AJYXxJy.js.map