phanpy-cz/assets/useTitle-twbEvXzq.js

39 lines
225 KiB
JavaScript
Raw Normal View History

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./compose-A_lbFat9.js","./fuse-Iwa_1AAn.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 Yi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Dd(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 Do={},Uo={};(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"]])})(Uo);(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;const t=Uo;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,_,v){const y=r(d);if(Number.isNaN(y)||v!==void 0&&v!==d.length)throw new SyntaxError(t.errorMessages.get(_));return y}function o(d){const _=n(d,t.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(_)}function a(d,_){const v=n(d,t.ErrorType.MalformedUnicode,4);if(_!==void 0){const y=n(_,t.ErrorType.MalformedUnicode,4);return String.fromCharCode(v,y)}return String.fromCharCode(v)}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 _=d.slice(1,-1),v=n(_,t.ErrorType.MalformedUnicode);try{return String.fromCodePoint(v)}catch(y){throw y instanceof RangeError?new SyntaxError(t.errorMessages.get(t.ErrorType.CodePointLimit)):y}}function l(d,_=!1){if(_)throw new SyntaxError(t.errorMessages.get(t.ErrorType.OctalDeprecation));const v=parseInt(d,8);return String.fromCharCode(v)}const c=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function f(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 h(d,_=!1){return d.replace(u,function(v,y,g,S,x,F,G,q,z){if(y!==void 0)return"\\";if(g!==void 0)return o(g);if(S!==void 0)return s(S);if(x!==void 0)return a(x,F);if(G!==void 0)return a(G);if(q==="0")return"\0";if(q!==void 0)return l(q,!_);if(z!==void 0)return f(z);throw new SyntaxError(t.errorMessages.get(t.ErrorType.EndOfString))})}e.unraw=h,e.default=h})(Do);var Ct={},Fo={},Zr={exports:{}},Ud=Zr.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 w=new RegExp("|"+p);return w.exec("").length-1}function l(p){return"("+p+")"}function c(p){if(!p.length)return"(?!)";var w=p.map(function(E){return"(?:"+E+")"}).join("|");return"(?:"+w+")"}function f(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,w){return p.length>w?p:Array(w-p.length+1).join(" ")+p}function h(p,w){for(var E=p.length,C=0;;){var A=p.lastIndexOf(`
`,E-1);if(A===-1||(C++,E=A,C===w)||E===0)break}var T=C<w?0:E+1;return p.substring(T).split(`
`)}function d(p){for(var w=Object.getOwnPropertyNames(p),E=[],C=0;C<w.length;C++){var A=w[C],T=p[A],P=[].concat(T);if(A==="include"){for(var I=0;I<P.length;I++)E.push({include:P[I]});continue}var D=[];P.forEach(function(k){a(k)?(D.length&&E.push(v(A,D)),E.push(v(A,k)),D=[]):D.push(k)}),D.length&&E.push(v(A,D))}return E}function _(p){for(var w=[],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++)w.push({include:A[T]});continue}if(!C.type)throw new Error("Rule has no type: "+JSON.stringify(C));w.push(v(C.type,C))}return w}function v(p,w){if(a(w)||(w={match:w}),w.include)throw new Error("Matching rules cannot also include states");var E={defaultType:p,lineBreaks:!!w.error||!!w.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var C in w)t.call(w,C)&&(E[C]=w[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 y(p){return Array.isArray(p)?_(p):d(p)}var g=v("error",{lineBreaks:!0,shouldThrow:!0});function S(p,w){for(var E=null,C=Object.create(null),A=!0,T=null,P=[],I=[],D=0;D<p.length;D++)p[D].fallback&&(A=!1);for(var D=0;D<p.length;D++){var k=p[D];if(k.include)throw new Error("Inheritance is not allowed in stateless lexers");if(k.error||k.fallback){if(E)throw!k.fallback==!E.fallback?new Error("Multiple "+(k.fallback?"fallback":"error")+" rules not allowed (for token '"+k.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+k.defaultType+"')");E=k}var Y=k.match.slice();if(A)for(;Y.length&&typeof Y[0]=="string"&&Y[0].length===1;){var X=Y.shift();C[X.charCodeAt(0)]=k}if(k.pop||k.push||k.next){if(!w)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+k.defaultType+"')");if(k.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+k.defaultType+"')")}if(Y.length!==0){A=!1,P.push(k);for(var ue=0;ue<Y.length;ue++){var pe=Y[ue];if(o(pe)){if(T===null)T=pe.unicode;else if(T!==pe.unicode&&k.fallback===!1)throw new Error("If one rule is /u then all must be")}}var ye=c(Y.map(f)),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(!k.lineBreaks&&ce.test(`
`))throw new Error("Rule should declare lineBreaks: "+ce);I.push(l(ye))}}var Oe=E&&E.fallback,je=n&&!Oe?"ym":"gm",Je=n||Oe?"":"|";T===!0&&(je+="u");var dr=new RegExp(c(I)+Je,je);return{regexp:dr,groups:P,fast:C,error:E||g}}function x(p){var w=S(y(p));return new z({start:w},"start")}function F(p,w,E){var C=p&&(p.push||p.next);if(C&&!E[C])throw new Error("Missing state '"+C+"' (in token '"+p.defaultType+"' of state '"+w+"')");if(p&&p.pop&&+p.pop!=1)throw new Error("pop must be 1 (in token '"+p.defaultType+"' of state '"+w+"')")}function G(p,w){var E=p.$all?y(p.$all):[];delete p.$all;var C=Object.getOwnPropertyNames(p);w||(w=C[0]);for(var A=Object.create(null),T=0;T<C.length;T++){var P=C[T];A[P]=y(p[P]).concat(E)}for(var T=0;T<C.length;T++)for(var P=C[T],I=A[P],D=Object.create(null),k=0;k<I.length;k++){var Y=I[k];if(Y.include){var X=[k,1];if(Y.include!==P&&!D[Y.include]){D[Y.include]=!0;var ue=A[Y.include];if(!ue)throw new Error("Cannot include nonexistent state '"+Y.include+"' (in state '"+P+"')");for(var pe=0;pe<ue.length;pe++){var ye=ue[pe];I.indexOf(ye)===-1&&X.push(ye)}}I.splice.apply(I,X),k--}}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],Oe=ce[Ee],je=Oe.groups,k=0;k<je.length;k++)F(je[k],Ee,ce);for(var Je=Object.getOwnPropertyNames(Oe.fast),k=0;k<Je.length;k++)F(Oe.fast[Je[k]],Ee,ce)}return new z(ce,w)}function q(p){for(var w=typeof Map<"u",E=w?new Map:Object.create(null),C=Object.getOwnPropertyNames(p),A=0;A<C.length;A++){var T=C[A],P=p[T],I=Array.isArray(P)?P:[P];I.forEach(function(D){if(typeof D!="string")throw new Error("keyword must be string (in keyword '"+T+"')");w?E.set(D,T):E[D]=T})}return function(D){return w?E.get(D):E[D]}}var z=function(p,w){this.startState=w,this.states=p,this.buffer="",this.stack=[],this.reset()};z.prototype.reset=function(p,w){return this.buffer=p||"",this.index=0,this.line=w?w.line:1,this.col=w?w.col:1,this.queuedToken=w?w.queuedToken:null,this.queuedText=w?w.queuedText:"",this.queuedThrow=w?w.queuedThrow:null,this.setState(w?w.state:this.startState),this.stack=w&&w.stack?w.stack.slice():[],this},z.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}},z.prototype.setState=function(p){if(!(!p||this.state===p)){this.state=p;var w=this.states[p];this.groups=w.groups,this.error=w.error,this.re=w.regexp,this.fast=w.fast}},z.prototype.popState=function(){this.setState(this.stack.pop())},z.prototype.pushState=function(p){this.stack.push(this.state),this.setState(p)};var te=n?function(p,w){return p.exec(w)}:function(p,w){var E=p.exec(w);return E[0].length===0?null:E};z.prototype._getGroup=function(p){for(var w=this.groups.length,E=0;E<w;E++)if(p[E+1]!==void 0)return this.groups[E];throw new Error("Cannot find token type for matched text")};function W(){return this.value}if(z.prototype.next=function(){var p=this.index;if(this.queuedGroup){var w=this._token(this.queuedGroup,this.queuedText,p);return this.queuedGroup=null,this.queuedText="",w}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=te(C,E),T=this.error;if(A==null)return this._token(T,E.slice(p,E.length),p);var P=this._getGroup(A),I=A[0];return T.fallback&&A.index!==p?(this.queuedGroup=P,this.queuedText=I,this._token(T,E.slice(p,A.index),p)):this._token(P,I,p)}},z.prototype._token=function(p,w,E){var C=0;if(p.lineBreaks){var A=/\n/g,T=1;if(w===`
`)C=1;else for(;A.exec(w);)C++,T=A.lastIndex}var P={type:typeof p.type=="function"&&p.type(w)||p.defaultType,value:typeof p.value=="function"?p.value(w):w,text:w,toString:W,offset:E,lineBreaks:C,line:this.line,col:this.col},I=w.length;if(this.index+=I,this.line+=C,C!==0?this.col=I-T+1:this.col+=I,p.shouldThrow){var D=new Error(this.formatError(P,"invalid syntax"));throw D}return p.pop?this.popState():p.push?this.pushState(p.push):p.next&&this.setState(p.next),P},typeof Symbol<"u"&&Symbol.iterator){var $=function(p){this.lexer=p};$.prototype.next=function(){var p=this.lexer.next();return{value:p,done:!p}},$.prototype[Symbol.iterator]=function(){return this},z.prototype[Symbol.iterator]=function(){return new $(this)}}return z.prototype.formatError=function(p,w){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,I=h(this.buffer,this.line-p.line+C+1).slice(0,5),D=[];D.push(w+" at line "+p.line+" col "+p.col+":"),D.push("");for(var k=0;k<I.length;k++){var Y=I[k],X=A+k;D.push(u(String(X),P)+" "+Y),X===p.line&&D.push(u("",P+p.col+1)+"^")}return D.join(`
`)},z.prototype.clone=function(){return new z(this.states,this.state)},z.prototype.has=function(p){return!0},{compile:x,states:G,error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:q}})})(Zr);var Ji=Zr.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(Ji);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)})(Fo);Object.defineProperty(Ct,"__esModule",{value:!0});var Zi=Ct.parse=es=Ct.ParseError=void 0;const jo=Fo,Nt=e=>({offset:e.offset,line:e.line,col:e.col,text:e.text,lineBreaks:e.lineBreaks}),hr=e=>e==="plural"||e==="select"||e==="selectordinal";function Qi(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 ie(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 Xi=["number","date","time","spellout","ordinal","duration"],Ln=["zero","one","two","few","many","other"];class ie extends Error{constructor(t,r){super(jo.lexer.formatError(t,r))}}var es=Ct.ParseError=ie;class ts{constructor(t,r){var n,o,a,i;this.lexer=jo.lexer.reset(t),this.cardinalKeys=(n=r==null?void 0:r.cardinal)!==null&&n!==void 0?n:Ln,this.ordinalKeys=(o=r==null?void 0:r.ordinal)!==null&&o!==void 0?o:Ln,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 ie(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 ie(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 ie(i,"Unexpected plural offset for select");if(a.cases.length>0)throw new ie(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:Nt(i)});break}case"end":return a;default:throw new ie(i,`Unexpected lexer token: ${i.type}`)}throw new ie(null,"Unexpected message end")}parseArgToken(t,r){const n=Nt(t),o=this.lexer.next();if(!o)throw new ie(null,"Unexpected message end");if(n.text+=o.text,n.lineBreaks+=o.lineBreaks,this.strict&&(o.type==="func-simple"||o.type==="func-args")&&!Xi.includes(o.value)){const a=`Invalid strict mode function arg type: ${o.value}`;throw new ie(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 ie(null,"Unexpected message end");if(a.type!=="end")throw new ie(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 Gt(){return Gt=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},Gt.apply(this,arguments)}var Ne;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ne||(Ne={}));const Xn="popstate";function Gs(e){e===void 0&&(e={});function t(o,a){let{pathname:i="/",search:s="",hash:l=""}=Ye(o.location.hash.substr(1));return Ur("",{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:fn(a))}function n(o,a){Ks(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return Ys(t,r,n,e)}function se(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ks(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Vs(){return Math.random().toString(36).substr(2,8)}function eo(e){return{usr:e.state,key:e.key}}function Ur(e,t,r,n){return r===void 0&&(r=null),Gt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ye(t):t,{state:r,key:t&&t.key||n||Vs()})}function fn(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 Ye(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 Ws(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:fn(e);return se(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}function Ys(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s=Ne.Pop,l=null;function c(){s=Ne.Pop,l&&l({action:s,location:h.location})}function f(d,_){s=Ne.Push;let v=Ur(h.location,d,_);r&&r(v,d);let y=eo(v),g=h.createHref(v);try{i.pushState(y,"",g)}catch{o.location.assign(g)}a&&l&&l({action:s,location:h.location})}function u(d,_){s=Ne.Replace;let v=Ur(h.location,d,_);r&&r(v,d);let y=eo(v),g=h.createHref(v);i.replaceState(y,"",g),a&&l&&l({action:s,location:h.location})}let h={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(Xn,c),l=d,()=>{o.removeEventListener(Xn,c),l=null}},createHref(d){return t(o,d)},encodeLocation(d){let _=Ws(typeof d=="string"?d:fn(d));return{pathname:_.pathname,search:_.search,hash:_.hash}},push:f,replace:u,go(d){return i.go(d)}};return h}var to;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(to||(to={}));function Js(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Ye(t):t,o=La(n.pathname||"/",r);if(o==null)return null;let a=Oa(e);Zs(a);let i=null;for(let s=0;i==null&&s<a.length;++s)i=il(a[s],ll(o));return i}function Oa(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("/")&&(se(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=qe([n,l.relativePath]),f=r.concat(l);a.children&&a.children.length>0&&(se(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Oa(a.children,t,f,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:ol(c,a.index),routesMeta:f})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let l of x
* 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 jr(){return jr=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},jr.apply(this,arguments)}function wl(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const bl=typeof Object.is=="function"?Object.is:wl,{useState:El,useEffect:Sl,useLayoutEffect:Cl,useDebugValue:Al}=Dr;function Pl(e,t,r){const n=t(),[{inst:o},a]=El({inst:{value:n,getSnapshot:t}});return Cl(()=>{o.value=n,o.getSnapshot=t,yr(o)&&a({inst:o})},[e,n,t]),Sl(()=>(yr(o)&&a({inst:o}),e(()=>{yr(o)&&a({inst:o})})),[e]),Al(n),n}function yr(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!bl(r,n)}catch{return!0}}function Rl(e,t,r){return t()}const Tl=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ol=!Tl,xl=Ol?Rl:Pl,$d="useSyncExternalStore"in Dr?(e=>e.useSyncExternalStore)(Dr):xl,Na=De(null),ka=De(null);const pn=De(null),sr=De(null),ht=De({outlet:null,matches:[]}),Ia=De(null);function lr(){return le(sr)!=null}function _n(){return lr()||se(!1),le(sr).location}function Ll(){lr()||se(!1);let{basename:e,navigator:t}=le(pn),{matches:r}=le(ht),{pathname:n}=_n(),o=JSON.stringify(fl(r).map(s=>s.pathnameBase)),a=Ue(!1);return We(()=>{a.current=!0}),dt(function(s,l){if(l===void 0&&(l={}),!a.current)return;if(typeof s=="number"){t.go(s);return}let c=hl(s,JSON.parse(o),n,l.relative==="path");e!=="/"&&(c.pathname=c.pathname==="/"?e:qe([e,c.pathname])),(l.replace?t.replace:t.push)(c,l.state,l)},[e,t,o,n])}function Gd(){let{matches:e}=le(ht),t=e[e.length-1];return t?t.params:{}}function Ml(e,t){lr()||se(!1);let{navigator:r}=le(pn),n=le(ka),{matches:o}=le(ht),a=o[o.length-1],i=a?a.params:{},s=a?a.pathname:"/",l=a?a.pathnameBase:"/",c=a&&a.route,f=_n(),u;if(t){var h;let g=typeof t=="string"?Ye(t):t;l==="/"||(h=g.pathname)!=null&&h.startsWith(l)||se(!1),u=g}else u=f;let d=u.pathname||"/",_=l==="/"?d:d.slice(l.length)||"/",v=Js(e,{pathname:_}),y=Dl(v&&v.map(g=>Object.assign({},g,{params:Object.assign({},i,g.params),pathname:qe([l,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:qe([l,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n||void 0);return t&&y?Z(sr.Provider,{value:{location:jr({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Ne.Pop}},y):y}function Nl(){let e=Bl(),t=gl(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 Z(me,null,Z("h2",null,"Unhandled Thrown Error!"),Z("h3",{style:{fontStyle:"italic"}},t),r?Z("pre",{style:o},r):null,Z("p",null,"💿 Hey developer 👋"),Z("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",Z("code",{style:a},"errorElement")," props on ",Z("code",{style:a},"<Route>")))}class kl extends _e{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?Z(ht.Provider,{value:this.props.routeContext},Z(Ia.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Il(e){let{routeContext:t,match:r,children:n}=e,o=le(Na);return o&&o.static&&o.staticContext&&r.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),Z(ht.Provider,{value:t},n)}function Dl(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||se(!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 Hr(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 zl(e,t){let r=Hr(e);for(let n of t.keys())r.has(n)||t.getAll(n).forEach(o=>{r.append(n,o)});return r}function Wd(e){let{basename:t,children:r,window:n}=e,o=Ue();o.current==null&&(o.current=Gs({window:n,v5Compat:!0}));let a=o.current,[i,s]=Ve({action:a.action,location:a.location});return Te(()=>a.listen(s),[a]),Z(ql,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:a})}var ao;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(ao||(ao={}));var io;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(io||(io={}));function Yd(e){let t=Ue(Hr(e)),r=_n(),n=be(()=>zl(r.search,t.current),[r.search]),o=Ll(),a=dt((i,s)=>{const l=Hr(typeof i=="function"?i(n):i);o("?"+l,s)},[o,n]);return[n,a]}const $l=Symbol(),mn=Symbol(),yt="a",Da="f",so="p",Ua="c",Fa="t",gr="n",vr="g",yn="h",St="w",gn="o",vn="k";let Gl=(e,t)=>new Proxy(e,t);const qr=Object.getPrototypeOf,zr=new WeakMap,ja=e=>e&&(zr.has(e)?zr.get(e):qr(e)===Object.prototype||qr(e)===Array.prototype),Vt=e=>typeof e=="object"&&e!==null,Kl=e=>Object.values(Object.getOwnPropertyDescriptors(e)).some(t=>!t.configurable&&!t.writable),Vl=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(qr(e),t)},Wl=(e,t)=>{const r={[Da]:t};let n=!1;const o=(s,l)=>{if(!n){let c=r[yt].get(e);if(c||(c={},r[yt].set(e,c)),s===St)c[St]=!0;else{let f=c[s];f||(f=new Set,c[s]=f),f.add(l)}}},a=()=>{n=!0,r[yt].delete(e)},i={get(s,l){return l===mn?e:(o(vn,l),Ba(Reflect.get(s,l),r[yt],r[Ua],r[Fa]))},has(s,l){return l===$l?(a(),!0):(o(yn,l),Reflect.has(s,l))},getOwnPropertyDescriptor(s,l){return o(gn,l),Reflect.getOwnPropertyDescriptor(s,l)},ownKeys(s){return o(St),Reflect.ownKeys(s)}};return t&&(i.set=i.deleteProperty=()=>!1),[i,r]},wn=e=>e[mn]||e,Ba=(e,t,r,n)=>{if(!ja(e))return e;let o=n&&n.get(e);if(!o){const l=wn(e);Kl(l)?o=[l,Vl(l)]:o=[l],n==null||n.set(e,o)}const[a,i]=o;let s=r&&r.get(a);return(!s||s[1][Da]!==!!i)&&(s=Wl(a,!!i),s[1][so]=Gl(i||a,s[0]),r&&r.set(a,s)),s[1][yt]=t,s[1][Ua]=r,s[1][Fa]=n,s[1][so]},Yl=(e,t)=>{const r=Reflect.ownKeys(e),n=Reflect.ownKeys(t);return r.length!==n.length||r.some((o,a)=>o!==n[a])},Ha=(e,t,r,n,o=Object.is)=>{if(o(e,t))return!1;if(!Vt(e)||!Vt(t))return!0;const a=r.get(wn(e));if(!a)return!0;if(n){const s=n.get(e);if(s&&s[gr]===t)return s[vr];n.set(e,{[gr]:t,[vr]:!1})}let i=null;try{for(const s of a[yn]||[])if(i=Reflect.has(e,s)!==Reflect.has(t,s),i)return i;if(a[St]===!0){if(i=Yl(e,t),i)return i}else for(const s of a[gn]||[]){const l=!!Reflect.getOwnPropertyDescriptor(e,s),c=!!Reflect.getOwnPropertyDescriptor(t,s);if(i=l!==c,i)return i}for(const s of a[vn]||[])if(i=Ha(e[s],t[s],r,n,o),i)return i;return i===null&&(i=!0),i}finally{n&&n.set(e,{[gr]:t,[vr]:i})}};const Jl=e=>ja(e)&&e[mn]||null,lo=(e,t=!0)=>{zr.set(e,t)},Zl=(e,t,r)=>{const n=[],o=new WeakSet,a=(i,s)=>{var l,c,f;if(o.has(i))return;Vt(i)&&o.add(i);const u=Vt(i)&&t.get(wn(i));if(u){if((l=u[yn])===null||l===void 0||l.forEach(h=>{const d=`:has(${String(h)})`;n.push(s?[...s,d]:[d])}),u[St]===!0){const h=":ownKeys";n.push(s?[...s,h]:[h])}else(c=u[gn])===null||c===void 0||c.forEach(h=>{const d=`:hasOwn(${String(h)})`;n.push(s?[...s,d]:[d])});(f=u[vn])===null||f===void 0||f.forEach(h=>{(!r||"value"in(Object.getOwnPropertyDescriptor(i,h)||{}))&&a(i[h],s?[...s,h]:[h])})}else s&&n.push(s)};return a(e),n};const Wt={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-twbEvXzq.js.map