47 lines
228 KiB
JavaScript
47 lines
228 KiB
JavaScript
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./compose-lJLfU2UC.js","./fuse-ljJAS_uA.js","./fuse-f4VJQFfi.css","./compose-Ig15wqnf.css"])))=>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}});function Zi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qd(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 hr={},pr={},Mn;function Qi(){return Mn||(Mn=1,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"]])}(pr)),pr}var Nn;function Xi(){return Nn||(Nn=1,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;const t=Qi();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,p,_){const g=r(d);if(Number.isNaN(g)||_!==void 0&&_!==d.length)throw new SyntaxError(t.errorMessages.get(p));return g}function o(d){const p=n(d,t.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(p)}function a(d,p){const _=n(d,t.ErrorType.MalformedUnicode,4);if(p!==void 0){const g=n(p,t.ErrorType.MalformedUnicode,4);return String.fromCharCode(_,g)}return String.fromCharCode(_)}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 p=d.slice(1,-1),_=n(p,t.ErrorType.MalformedUnicode);try{return String.fromCodePoint(_)}catch(g){throw g instanceof RangeError?new SyntaxError(t.errorMessages.get(t.ErrorType.CodePointLimit)):g}}function l(d,p=!1){if(p)throw new SyntaxError(t.errorMessages.get(t.ErrorType.OctalDeprecation));const _=parseInt(d,8);return String.fromCharCode(_)}const u=new Map([["b","\b"],["f","\f"],["n",`
|
|||
|
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function h(d){return u.get(d)||d}const c=/\\(?:(\\)|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,p=!1){return d.replace(c,function(_,g,v,E,P,U,G,H,z){if(g!==void 0)return"\\";if(v!==void 0)return o(v);if(E!==void 0)return s(E);if(P!==void 0)return a(P,U);if(G!==void 0)return a(G);if(H==="0")return"\0";if(H!==void 0)return l(H,!p);if(z!==void 0)return h(z);throw new SyntaxError(t.errorMessages.get(t.ErrorType.EndOfString))})}e.unraw=f,e.default=f}(hr)),hr}var es=Xi();var je={},mt={},Ft={exports:{}},ts=Ft.exports,kn;function rs(){return kn||(kn=1,function(e){(function(t,r){e.exports?e.exports=r():t.moo=r()})(ts,function(){"use strict";var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=typeof new RegExp().sticky=="boolean";function o(m){return m&&r.call(m)==="[object RegExp]"}function a(m){return m&&typeof m=="object"&&!o(m)&&!Array.isArray(m)}function i(m){return m.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(m){var w=new RegExp("|"+m);return w.exec("").length-1}function l(m){return"("+m+")"}function u(m){if(!m.length)return"(?!)";var w=m.map(function(S){return"(?:"+S+")"}).join("|");return"(?:"+w+")"}function h(m){if(typeof m=="string")return"(?:"+i(m)+")";if(o(m)){if(m.ignoreCase)throw new Error("RegExp /i flag not allowed");if(m.global)throw new Error("RegExp /g flag is implied");if(m.sticky)throw new Error("RegExp /y flag is implied");if(m.multiline)throw new Error("RegExp /m flag is implied");return m.source}else throw new Error("Not a pattern: "+m)}function c(m,w){return m.length>w?m:Array(w-m.length+1).join(" ")+m}function f(m,w){for(var S=m.length,C=0;;){var A=m.lastIndexOf(`
|
|||
|
`,S-1);if(A===-1||(C++,S=A,C===w)||S===0)break}var x=C<w?0:S+1;return m.substring(x).split(`
|
|||
|
`)}function d(m){for(var w=Object.getOwnPropertyNames(m),S=[],C=0;C<w.length;C++){var A=w[C],x=m[A],R=[].concat(x);if(A==="include"){for(var I=0;I<R.length;I++)S.push({include:R[I]});continue}var D=[];R.forEach(function(k){a(k)?(D.length&&S.push(_(A,D)),S.push(_(A,k)),D=[]):D.push(k)}),D.length&&S.push(_(A,D))}return S}function p(m){for(var w=[],S=0;S<m.length;S++){var C=m[S];if(C.include){for(var A=[].concat(C.include),x=0;x<A.length;x++)w.push({include:A[x]});continue}if(!C.type)throw new Error("Rule has no type: "+JSON.stringify(C));w.push(_(C.type,C))}return w}function _(m,w){if(a(w)||(w={match:w}),w.include)throw new Error("Matching rules cannot also include states");var S={defaultType:m,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)&&(S[C]=w[C]);if(typeof S.type=="string"&&m!==S.type)throw new Error("Type transform cannot be a string (type '"+S.type+"' for token '"+m+"')");var A=S.match;return S.match=Array.isArray(A)?A:A?[A]:[],S.match.sort(function(x,R){return o(x)&&o(R)?0:o(R)?-1:o(x)?1:R.length-x.length}),S}function g(m){return Array.isArray(m)?p(m):d(m)}var v=_("error",{lineBreaks:!0,shouldThrow:!0});function E(m,w){for(var S=null,C=Object.create(null),A=!0,x=null,R=[],I=[],D=0;D<m.length;D++)m[D].fallback&&(A=!1);for(var D=0;D<m.length;D++){var k=m[D];if(k.include)throw new Error("Inheritance is not allowed in stateless lexers");if(k.error||k.fallback){if(S)throw!k.fallback==!S.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+"')");S=k}var W=k.match.slice();if(A)for(;W.length&&typeof W[0]=="string"&&W[0].length===1;){var X=W.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(W.length!==0){A=!1,R.push(k);for(var le=0;le<W.length;le++){var he=W[le];if(o(he)){if(x===null)x=he.unicode;else if(x!==he.unicode&&k.fallback===!1)throw new Error("If one rule is /u then all must be")}}var _e=u(W.map(h)),ue=new RegExp(_e);if(ue.test(""))throw new Error("RegExp matches empty string: "+ue);var be=s(_e);if(be>0)throw new Error("RegExp has capture groups: "+ue+`
|
|||
|
Use (?: … ) instead`);if(!k.lineBreaks&&ue.test(`
|
|||
|
`))throw new Error("Rule should declare lineBreaks: "+ue);I.push(l(_e))}}var Te=S&&S.fallback,qe=n&&!Te?"ym":"gm",Qe=n||Te?"":"|";x===!0&&(qe+="u");var dr=new RegExp(u(I)+Qe,qe);return{regexp:dr,groups:R,fast:C,error:S||v}}function P(m){var w=E(g(m));return new z({start:w},"start")}function U(m,w,S){var C=m&&(m.push||m.next);if(C&&!S[C])throw new Error("Missing state '"+C+"' (in token '"+m.defaultType+"' of state '"+w+"')");if(m&&m.pop&&+m.pop!=1)throw new Error("pop must be 1 (in token '"+m.defaultType+"' of state '"+w+"')")}function G(m,w){var S=m.$all?g(m.$all):[];delete m.$all;var C=Object.getOwnPropertyNames(m);w||(w=C[0]);for(var A=Object.create(null),x=0;x<C.length;x++){var R=C[x];A[R]=g(m[R]).concat(S)}for(var x=0;x<C.length;x++)for(var R=C[x],I=A[R],D=Object.create(null),k=0;k<I.length;k++){var W=I[k];if(W.include){var X=[k,1];if(W.include!==R&&!D[W.include]){D[W.include]=!0;var le=A[W.include];if(!le)throw new Error("Cannot include nonexistent state '"+W.include+"' (in state '"+R+"')");for(var he=0;he<le.length;he++){var _e=le[he];I.indexOf(_e)===-1&&X.push(_e)}}I.splice.apply(I,X),k--}}for(var ue=Object.create(null),x=0;x<C.length;x++){var R=C[x];ue[R]=E(A[R],!0)}for(var x=0;x<C.length;x++){for(var be=C[x],Te=ue[be],qe=Te.groups,k=0;k<qe.length;k++)U(qe[k],be,ue);for(var Qe=Object.getOwnPropertyNames(Te.fast),k=0;k<Qe.length;k++)U(Te.fast[Qe[k]],be,ue)}return new z(ue,w)}function H(m){for(var w=typeof Map<"u",S=w?new Map:Object.create(null),C=Object.getOwnPropertyNames(m),A=0;A<C.length;A++){var x=C[A],R=m[x],I=Array.isArray(R)?R:[R];I.forEach(function(D){if(typeof D!="string")throw new Error("keyword must be string (in keyword '"+x+"')");w?S.set(D,x):S[D]=x})}return function(D){return w?S.get(D):S[D]}}var z=function(m,w){this.startState=w,this.states=m,this.buffer="",this.stack=[],this.reset()};z.prototype.reset=function(m,w){return this.buffer=m||"",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(m){if(!(!m||this.state===m)){this.state=m;var w=this.states[m];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(m){this.stack.push(this.state),this.setState(m)};var te=n?function(m,w){return m.exec(w)}:function(m,w){var S=m.exec(w);return S[0].length===0?null:S};z.prototype._getGroup=function(m){for(var w=this.groups.length,S=0;S<w;S++)if(m[S+1]!==void 0)return this.groups[S];throw new Error("Cannot find token type for matched text")};function V(){return this.value}if(z.prototype.next=function(){var m=this.index;if(this.queuedGroup){var w=this._token(this.queuedGroup,this.queuedText,m);return this.queuedGroup=null,this.queuedText="",w}var S=this.buffer;if(m!==S.length){var R=this.fast[S.charCodeAt(m)];if(R)return this._token(R,S.charAt(m),m);var C=this.re;C.lastIndex=m;var A=te(C,S),x=this.error;if(A==null)return this._token(x,S.slice(m,S.length),m);var R=this._getGroup(A),I=A[0];return x.fallback&&A.index!==m?(this.queuedGroup=R,this.queuedText=I,this._token(x,S.slice(m,A.index),m)):this._token(R,I,m)}},z.prototype._token=function(m,w,S){var C=0;if(m.lineBreaks){var A=/\n/g,x=1;if(w===`
|
|||
|
`)C=1;else for(;A.exec(w);)C++,x=A.lastIndex}var R={type:typeof m.type=="function"&&m.type(w)||m.defaultType,value:typeof m.value=="function"?m.value(w):w,text:w,toString:V,offset:S,lineBreaks:C,line:this.line,col:this.col},I=w.length;if(this.index+=I,this.line+=C,C!==0?this.col=I-x+1:this.col+=I,m.shouldThrow){var D=new Error(this.formatError(R,"invalid syntax"));throw D}return m.pop?this.popState():m.push?this.pushState(m.push):m.next&&this.setState(m.next),R},typeof Symbol<"u"&&Symbol.iterator){var Z=function(m){this.lexer=m};Z.prototype.next=function(){var m=this.lexer.next();return{value:m,done:!m}},Z.prototype[Symbol.iterator]=function(){return this},z.prototype[Symbol.iterator]=function(){return new Z(this)}}return z.prototype.formatError=function(m,w){if(m==null)var S=this.buffer.slice(this.index),m={text:S,offset:this.index,lineBreaks:S.indexOf(`
|
|||
|
`)===-1?0:1,line:this.line,col:this.col};var C=2,A=Math.max(m.line-C,1),x=m.line+C,R=String(x).length,I=f(this.buffer,this.line-m.line+C+1).slice(0,5),D=[];D.push(w+" at line "+m.line+" col "+m.col+":"),D.push("");for(var k=0;k<I.length;k++){var W=I[k],X=A+k;D.push(c(String(X),R)+" "+W),X===m.line&&D.push(c("",R+m.col+1)+"^")}return D.join(`
|
|||
|
`)},z.prototype.clone=function(){return new z(this.states,this.state)},z.prototype.has=function(m){return!0},{compile:P,states:G,error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:H}})}(Ft)),Ft.exports}var In;function ns(){return In||(In=1,function(e){"use strict";var t=mt&&mt.__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(rs());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)}(mt)),mt}var Dn;function os(){if(Dn)return je;Dn=1,Object.defineProperty(je,"__esModule",{value:!0}),je.parse=je.ParseError=void 0;const e=ns(),t=u=>({offset:u.offset,line:u.line,col:u.col,text:u.text,lineBreaks:u.lineBreaks}),r=u=>u==="plural"||u==="select"||u==="selectordinal";function n(u,h){let c="",f="";for(const p of h){const _=p.ctx.text;switch(f+=_,p.type){case"content":c+=p.value;break;case"argument":case"function":case"octothorpe":c+=_;break;default:throw new i(u,`Unsupported part in strict mode function arg style: ${_}`)}}return[{type:"content",value:c.trim(),ctx:Object.assign({},h[0].ctx,{text:f})}]}const o=["number","date","time","spellout","ordinal","duration"],a=["zero","one","two","few","many","other"];class i extends Error{constructor(h,c){super(e.lexer.formatError(h,c))}}je.ParseError=i;class s{constructor(h,c){var f,d,p,_;this.lexer=e.lexer.reset(h),this.cardinalKeys=(f=c==null?void 0:c.cardinal)!==null&&f!==void 0?f:a,this.ordinalKeys=(d=c==null?void 0:c.ordinal)!==null&&d!==void 0?d:a,this.strict=(p=c==null?void 0:c.strict)!==null&&p!==void 0?p:!1,this.strictPluralKeys=(_=c==null?void 0:c.strictPluralKeys)!==null&&_!==void 0?_:!0}parse(){return this.parseBody(!1,!0)}checkSelectKey(h,c,f){if(f[0]==="="){if(c==="select")throw new i(h,`The case ${f} is not valid with select`)}else if(c!=="select"){const d=c==="plural"?this.cardinalKeys:this.ordinalKeys;if(this.strictPluralKeys&&d.length>0&&!d.includes(f)){const p=`The ${c} case ${f} is not valid in this locale`;throw new i(h,p)}}}parseSelect({value:h},c,f,d){const p={type:d,arg:h,cases:[],ctx:f};d==="plural"||d==="selectordinal"?c=!0:this.strict&&(c=!1);for(const _ of this.lexer)switch(_.type){case"offset":if(d==="select")throw new i(_,"Unexpected plural offset for select");if(p.cases.length>0)throw new i(_,"Plural offset must be set before cases");p.pluralOffset=Number(_.value),f.text+=_.text,f.lineBreaks+=_.lineBreaks;break;case"case":{this.checkSelectKey(_,d,_.value),p.cases.push({key:_.value,tokens:this.parseBody(c),ctx:t(_)});break}case"end":return p;default:throw new i(_,`Unexpected lexer token: ${_.type}`)}throw new i(null,"Unexpected message end")}parseArgToken(h,c){const f=t(h),d=this.lexer.next();if(!d)throw new i(null,"Unexpected message end");if(f.text+=d.text,f.lineBreaks+=d.lineBreaks,this.strict&&(d.type==="func-simple"||d.type==="func-args")&&!o.includes(d.value)){const p=`Invalid strict mode function arg type: ${d.value}`;throw new i(h,p)}switch(d.type){case"end":return{type:"argument",arg:h.value,ctx:f};case"func-simple":{const p=this.lexer.next();if(!p)throw new i(null,"Unexpected message end");
|
|||
|
|
|||
|
> ${l}
|
|||
|
|
|||
|
That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.
|
|||
|
ICU features such as interpolation and plurals will not work properly for that message.
|
|||
|
|
|||
|
Please compile your catalog first.
|
|||
|
`)),Me(l)&&Ko.test(l)?JSON.parse(`"${l}"`):Me(l)?l:ls(l,this._locale,this._locales)(r,n==null?void 0:n.formats)}date(t,r){return Go(this._locales||this._locale,t,r)}number(t,r){return Or(this._locales||this._locale,t,r)}}function _s(e={}){return new ms(e)}const ot=_s();var xt,j,Vo,ys,He,qn,Wo,Lr,Yo,Xr,Mr,Nr,Jo,At={},Zo=[],gs=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,nr=Array.isArray;function Se(e,t){for(var r in t)e[r]=t[r];return e}function en(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function J(e,t,r){var n,o,a,i={};for(a in t)a=="key"?n=t[a]:a=="ref"?o=t[a]:i[a]=t[a];if(arguments.length>2&&(i.children=arguments.length>3?xt.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)i[a]===void 0&&(i[a]=e.defaultProps[a]);return Et(e,i,n,o,null)}function Et(e,t,r,n,o){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Vo,__i:-1,__u:0};return o==null&&j.vnode!=null&&j.vnode(a),a}function Qo(){return{current:null}}function me(e){return e.children}function pe(e,t){this.props=e,this.context=t}function st(e,t){if(t==null)return e.__?st(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?st(e):null}function Xo(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Xo(e)}}function kr(e){(!e.__d&&(e.__d=!0)&&He.push(e)&&!Gt.__r++||qn!==j.debounceRendering)&&((qn=j.debounceRendering)||Wo)(Gt)}function Gt(){var e,t,r,n,o,a,i,s;for(He.sort(Lr);e=He.shift();)e.__d&&(t=He.length,n=void 0,a=(o=(r=e).__v).__e,i=[],s=[],r.__P&&((n=Se({},o)).__v=o.__v+1,j.vnode&&j.vnode(n),tn(r.__P,n,o,r.__n,r.__P.namespaceURI,32&o.__u?[a]:null,i,a??st(o),!!(32&o.__u),s),n.__v=o.__v,n.__.__k[n.__i]=n,ra(i,n,s),n.__e!=a&&Xo(n)),He.length>t&&He.sort(Lr));Gt.__r=0}function ea(e,t,r,n,o,a,i,s,l,u,h){var c,f,d,p,_,g,v=n&&n.__k||Zo,E=t.length;for(l=vs(r,t,v,l,E),c=0;c<E;c++)(d=r.__k[c])!=null&&(f=d.__i===-1?At:v[d.__i]||At,d.__i=c,g=tn(e,d,f,o,a,i,s,l,u,h),p=d.__e,d.ref&&f.ref!=d.ref&&(f.ref&&rn(f.ref,null,d),h.push(d.ref,d.__c||p,d)),_==null&&p!=null&&(_=p),4&d.__u||f.__k===d.__k?l=ta(d,l,e):typeof d.type=="function"&&g!==void 0?l=g:p&&(l=p.nextSibling),d.__u&=-7);return r.__e=_,l}function vs(e,t,r,n,o){var a,i,s,l,u,h=r.length,c=h,f=0;for(e.__k=new Array(o),a=0;a<o;a++)(i=t[a])!=null&&typeof i!="boolean"&&typeof i!="function"?(l=a+f,(i=e.__k[a]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Et(null,i,null,null,null):nr(i)?Et(me,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Et(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,s=null,(u=i.__i=ws(i,r,l,c))!==-1&&(c--,(s=r[u])&&(s.__u|=2)),s==null||s.__v===null?(u==-1&&f--,typeof i.type!="function"&&(i.__u|=4)):u!=l&&(u==l-1?f--:u==l+1?f++:(u>l?f--:f++,i.__u|=4))):e.__k[a]=null;if(c)for(a=0;a<h;a++)(s=r[a])!=null&&!(2&s.__u)&&(s.__e==n&&(n=st(s)),na(s,s));return n}function ta(e,t,r){var n,o;if(typeof e.type=="function"){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=ta(n[o],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=st(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Ae(e,t){return t=t||[],e==null||typeof e=="boolean"||(nr(e)?e.some(function(r){Ae(r,t)}):t.push(e)),t}function ws(e,t,r,n){var o,a,i=e.key,s=e.type,l=t[r];if(l===null||l&&i==l.key&&s===l.type&&!(2&l.__u))return r;if(n>(l!=null&&!(2&l.__u)?1:0))for(o=r-1,a=r+1;o>=0||a<t.length;){if(o>=0){if((l=t[o])&&!(2&l.__u)&&i==l.key&&s===l.type)return o;o--}if(a<t.length){if((l=t[a])&&!(2&l.__u)&&i==l.key&&s===l.type)return a;a++}}return-1}function jn(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||gs.test(t)?r:r+"px"}function Nt(e,t,r,n,o){var a;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||jn(e.style,t,"");
|
|||
|
* @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 $t(){return $t=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},$t.apply(this,arguments)}var Ne;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ne||(Ne={}));const oo="popstate";function Vs(e){e===void 0&&(e={});function t(o,a){let{pathname:i="/",search:s="",hash:l=""}=Je(o.location.hash.substr(1));return Fr("",{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,u=l.indexOf("#");s=u===-1?l:l.slice(0,u)}return s+"#"+(typeof a=="string"?a:hn(a))}function n(o,a){Ws(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return Zs(t,r,n,e)}function ie(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ws(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ys(){return Math.random().toString(36).substr(2,8)}function ao(e){return{usr:e.state,key:e.key}}function Fr(e,t,r,n){return r===void 0&&(r=null),$t({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Je(t):t,{state:r,key:t&&t.key||n||Ys()})}function hn(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 Je(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 Js(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:hn(e);return ie(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}function Zs(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 u(){s=Ne.Pop,l&&l({action:s,location:f.location})}function h(d,p){s=Ne.Push;let _=Fr(f.location,d,p);r&&r(_,d);let g=ao(_),v=f.createHref(_);try{i.pushState(g,"",v)}catch{o.location.assign(v)}a&&l&&l({action:s,location:f.location})}function c(d,p){s=Ne.Replace;let _=Fr(f.location,d,p);r&&r(_,d);let g=ao(_),v=f.createHref(_);i.replaceState(g,"",v),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(oo,u),l=d,()=>{o.removeEventListener(oo,u),l=null}},createHref(d){return t(o,d)},encodeLocation(d){let p=Js(typeof d=="string"?d:hn(d));return{pathname:p.pathname,search:p.search,hash:p.hash}},push:h,replace:c,go(d){return i.go(d)}};return f}var io;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(io||(io={}));function Qs(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Je(t):t,o=Ia(n.pathname||"/",r);if(o==null)return null;let a=Na(e);Xs(a);let i=null;for(let s=0;i==null&&s<a.length;++s)i=ll(a[s],cl(o));return i}function Na(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 u=ze([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 "'+u+'".')),Na(a.children,t,h,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:il(u,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 k
|
|||
|
* 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 El(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const Sl=typeof Object.is=="function"?Object.is:El,{useState:Cl,useEffect:Al,useLayoutEffect:Pl,useDebugValue:Rl}=Ur;function Tl(e,t,r){const n=t(),[{inst:o},a]=Cl({inst:{value:n,getSnapshot:t}});return Pl(()=>{o.value=n,o.getSnapshot=t,gr(o)&&a({inst:o})},[e,n,t]),Al(()=>(gr(o)&&a({inst:o}),e(()=>{gr(o)&&a({inst:o})})),[e]),Rl(n),n}function gr(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!Sl(r,n)}catch{return!0}}function xl(e,t,r){return t()}const Ol=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ll=!Ol,Ml=Ll?xl:Tl,sf="useSyncExternalStore"in Ur?(e=>e.useSyncExternalStore)(Ur):Ml,Ua=De(null),Fa=De(null);const mn=De(null),sr=De(null),ht=De({outlet:null,matches:[]}),qa=De(null);function lr(){return se(sr)!=null}function _n(){return lr()||ie(!1),se(sr).location}function Nl(){lr()||ie(!1);let{basename:e,navigator:t}=se(mn),{matches:r}=se(ht),{pathname:n}=_n(),o=JSON.stringify(pl(r).map(s=>s.pathnameBase)),a=Ue(!1);return Ye(()=>{a.current=!0}),dt(function(s,l){if(l===void 0&&(l={}),!a.current)return;if(typeof s=="number"){t.go(s);return}let u=ml(s,JSON.parse(o),n,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:ze([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,o,n])}function lf(){let{matches:e}=se(ht),t=e[e.length-1];return t?t.params:{}}function kl(e,t){lr()||ie(!1);let{navigator:r}=se(mn),n=se(Fa),{matches:o}=se(ht),a=o[o.length-1],i=a?a.params:{},s=a?a.pathname:"/",l=a?a.pathnameBase:"/",u=a&&a.route,h=_n(),c;if(t){var f;let v=typeof t=="string"?Je(t):t;l==="/"||(f=v.pathname)!=null&&f.startsWith(l)||ie(!1),c=v}else c=h;let d=c.pathname||"/",p=l==="/"?d:d.slice(l.length)||"/",_=Qs(e,{pathname:p}),g=Fl(_&&_.map(v=>Object.assign({},v,{params:Object.assign({},i,v.params),pathname:ze([l,r.encodeLocation?r.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:ze([l,r.encodeLocation?r.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,n||void 0);return t&&g?J(sr.Provider,{value:{location:jr({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Ne.Pop}},g):g}function Il(){let e=Hl(),t=wl(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 J(me,null,J("h2",null,"Unhandled Thrown Error!"),J("h3",{style:{fontStyle:"italic"}},t),r?J("pre",{style:o},r):null,J("p",null,"💿 Hey developer 👋"),J("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",J("code",{style:a},"errorElement")," props on ",J("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?J(ht.Provider,{value:this.props.routeContext},J(qa.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ul(e){let{routeContext:t,match:r,children:n}=e,o=se(Ua);return o&&o.static&&o.staticContext&&r.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),J(ht.Provider,{value:t},n)}function Fl(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 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 Kl(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 df(e){let{basename:t,children:r,window:n}=e,o=Ue();o.current==null&&(o.current=Vs({window:n,v5Compat:!0}));let a=o.current,[i,s]=We({action:a.action,location:a.location});return Re(()=>a.listen(s),[a]),J(Gl,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:a})}var co;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(co||(co={}));var fo;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fo||(fo={}));function ff(e){let t=Ue(Hr(e)),r=_n(),n=we(()=>Kl(r.search,t.current),[r.search]),o=Nl(),a=dt((i,s)=>{const l=Hr(typeof i=="function"?i(n):i);o("?"+l,s)},[o,n]);return[n,a]}const $l=Symbol(),yn=Symbol(),yt="a",ja="f",ho="p",Ba="c",Ha="t",vr="n",wr="g",gn="h",Ct="w",vn="o",wn="k";let Vl=(e,t)=>new Proxy(e,t);const zr=Object.getPrototypeOf,Gr=new WeakMap,za=e=>e&&(Gr.has(e)?Gr.get(e):zr(e)===Object.prototype||zr(e)===Array.prototype),Wt=e=>typeof e=="object"&&e!==null,Wl=e=>Object.values(Object.getOwnPropertyDescriptors(e)).some(t=>!t.configurable&&!t.writable),Yl=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(zr(e),t)},Jl=(e,t)=>{const r={[ja]:t};let n=!1;const o=(s,l)=>{if(!n){let u=r[yt].get(e);if(u||(u={},r[yt].set(e,u)),s===Ct)u[Ct]=!0;else{let h=u[s];h||(h=new Set,u[s]=h),h.add(l)}}},a=()=>{n=!0,r[yt].delete(e)},i={get(s,l){return l===yn?e:(o(wn,l),Ga(Reflect.get(s,l),r[yt],r[Ba],r[Ha]))},has(s,l){return l===$l?(a(),!0):(o(gn,l),Reflect.has(s,l))},getOwnPropertyDescriptor(s,l){return o(vn,l),Reflect.getOwnPropertyDescriptor(s,l)},ownKeys(s){return o(Ct),Reflect.ownKeys(s)}};return t&&(i.set=i.deleteProperty=()=>!1),[i,r]},bn=e=>e[yn]||e,Ga=(e,t,r,n)=>{if(!za(e))return e;let o=n&&n.get(e);if(!o){const l=bn(e);Wl(l)?o=[l,Yl(l)]:o=[l],n==null||n.set(e,o)}const[a,i]=o;let s=r&&r.get(a);return(!s||s[1][ja]!==!!i)&&(s=Jl(a,!!i),s[1][ho]=Vl(i||a,s[0]),r&&r.set(a,s)),s[1][yt]=t,s[1][Ba]=r,s[1][Ha]=n,s[1][ho]},Zl=(e,t)=>{const r=Reflect.ownKeys(e),n=Reflect.ownKeys(t);return r.length!==n.length||r.some((o,a)=>o!==n[a])},Ka=(e,t,r,n,o=Object.is)=>{if(o(e,t))return!1;if(!Wt(e)||!Wt(t))return!0;const a=r.get(bn(e));if(!a)return!0;if(n){const s=n.get(e);if(s&&s[vr]===t)return s[wr];n.set(e,{[vr]:t,[wr]:!1})}let i=null;try{for(const s of a[gn]||[])if(i=Reflect.has(e,s)!==Reflect.has(t,s),i)return i;if(a[Ct]===!0){if(i=Zl(e,t),i)return i}else for(const s of a[vn]||[]){const l=!!Reflect.getOwnPropertyDescriptor(e,s),u=!!Reflect.getOwnPropertyDescriptor(t,s);if(i=l!==u,i)return i}for(const s of a[wn]||[])if(i=Ka(e[s],t[s],r,n,o),i)return i;return i===null&&(i=!0),i}finally{n&&n.set(e,{[vr]:t,[wr]:i})}};const Ql=e=>za(e)&&e[yn]||null,po=(e,t=!0)=>{Gr.set(e,t)},Xl=(e,t,r)=>{const n=[],o=new WeakSet,a=(i,s)=>{var l,u,h;if(o.has(i))return;Wt(i)&&o.add(i);const c=Wt(i)&&t.get(bn(i));if(c){if((l=c[gn])===null||l===void 0||l.forEach(f=>{const d=`:has(${String(f)})`;n.push(s?[...s,d]:[d])}),c[Ct]===!0){const f=":ownKeys";n.push(s?[...s,f]:[f])}else(u=c[vn])===null||u===void 0||u.forEach(f=>{const d=`:hasOwn(${String(f)})`;n.push(s?[...s,d]:[d])});(h=c[wn])===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 Yt={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-2fhxq2KA.js.map
|