@musistudio/claude-code-router 1.0.28 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/README_zh.md +12 -0
- package/config.example.json +2 -1
- package/dist/cli.js +14606 -4722
- package/dist/index.html +223 -0
- package/package.json +5 -3
- package/scripts/build.js +35 -0
- package/ui/PROJECT.md +23 -0
- package/ui/README.md +69 -0
- package/ui/components.json +21 -0
- package/ui/config.example.json +177 -0
- package/ui/dist/index.html +223 -0
- package/ui/dist/vite.svg +1 -0
- package/ui/eslint.config.js +23 -0
- package/ui/index.html +13 -0
- package/ui/package-lock.json +5033 -0
- package/ui/package.json +53 -0
- package/ui/pnpm-lock.yaml +3459 -0
- package/ui/public/vite.svg +1 -0
- package/ui/tsconfig.app.json +26 -0
- package/ui/tsconfig.json +26 -0
- package/ui/tsconfig.tsbuildinfo +1 -0
- package/ui/vite.config.ts +16 -0
package/dist/index.html
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="./vite.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>CCR UI</title>
|
|
8
|
+
<script type="module" crossorigin>function NS(n,a){for(var l=0;l<a.length;l++){const i=a[l];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in n)){const u=Object.getOwnPropertyDescriptor(i,s);u&&Object.defineProperty(n,s,u.get?u:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function l(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(s){if(s.ep)return;s.ep=!0;const u=l(s);fetch(s.href,u)}})();function My(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Bf={exports:{}},Gi={};/**
|
|
9
|
+
* @license React
|
|
10
|
+
* react-jsx-runtime.production.js
|
|
11
|
+
*
|
|
12
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the MIT license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/var Qg;function TS(){if(Qg)return Gi;Qg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function l(i,s,u){var f=null;if(u!==void 0&&(f=""+u),s.key!==void 0&&(f=""+s.key),"key"in s){u={};for(var h in s)h!=="key"&&(u[h]=s[h])}else u=s;return s=u.ref,{$$typeof:n,type:i,key:f,ref:s!==void 0?s:null,props:u}}return Gi.Fragment=a,Gi.jsx=l,Gi.jsxs=l,Gi}var Zg;function MS(){return Zg||(Zg=1,Bf.exports=TS()),Bf.exports}var x=MS();const Me=n=>typeof n=="string",Ki=()=>{let n,a;const l=new Promise((i,s)=>{n=i,a=s});return l.resolve=n,l.reject=a,l},Jg=n=>n==null?"":""+n,jS=(n,a,l)=>{n.forEach(i=>{a[i]&&(l[i]=a[i])})},DS=/###/g,Wg=n=>n&&n.indexOf("###")>-1?n.replace(DS,"."):n,Ig=n=>!n||Me(n),to=(n,a,l)=>{const i=Me(a)?a.split("."):a;let s=0;for(;s<i.length-1;){if(Ig(n))return{};const u=Wg(i[s]);!n[u]&&l&&(n[u]=new l),Object.prototype.hasOwnProperty.call(n,u)?n=n[u]:n={},++s}return Ig(n)?{}:{obj:n,k:Wg(i[s])}},ev=(n,a,l)=>{const{obj:i,k:s}=to(n,a,Object);if(i!==void 0||a.length===1){i[s]=l;return}let u=a[a.length-1],f=a.slice(0,a.length-1),h=to(n,f,Object);for(;h.obj===void 0&&f.length;)u=`${f[f.length-1]}.${u}`,f=f.slice(0,f.length-1),h=to(n,f,Object),h?.obj&&typeof h.obj[`${h.k}.${u}`]<"u"&&(h.obj=void 0);h.obj[`${h.k}.${u}`]=l},_S=(n,a,l,i)=>{const{obj:s,k:u}=to(n,a,Object);s[u]=s[u]||[],s[u].push(l)},au=(n,a)=>{const{obj:l,k:i}=to(n,a);if(l&&Object.prototype.hasOwnProperty.call(l,i))return l[i]},LS=(n,a,l)=>{const i=au(n,l);return i!==void 0?i:au(a,l)},jy=(n,a,l)=>{for(const i in a)i!=="__proto__"&&i!=="constructor"&&(i in n?Me(n[i])||n[i]instanceof String||Me(a[i])||a[i]instanceof String?l&&(n[i]=a[i]):jy(n[i],a[i],l):n[i]=a[i]);return n},vl=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var zS={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const kS=n=>Me(n)?n.replace(/[&<>"'\/]/g,a=>zS[a]):n;class US{constructor(a){this.capacity=a,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(a){const l=this.regExpMap.get(a);if(l!==void 0)return l;const i=new RegExp(a);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(a,i),this.regExpQueue.push(a),i}}const PS=[" ",",","?","!",";"],HS=new US(20),BS=(n,a,l)=>{a=a||"",l=l||"";const i=PS.filter(f=>a.indexOf(f)<0&&l.indexOf(f)<0);if(i.length===0)return!0;const s=HS.getRegExp(`(${i.map(f=>f==="?"?"\\?":f).join("|")})`);let u=!s.test(n);if(!u){const f=n.indexOf(l);f>0&&!s.test(n.substring(0,f))&&(u=!0)}return u},pd=(n,a,l=".")=>{if(!n)return;if(n[a])return Object.prototype.hasOwnProperty.call(n,a)?n[a]:void 0;const i=a.split(l);let s=n;for(let u=0;u<i.length;){if(!s||typeof s!="object")return;let f,h="";for(let p=u;p<i.length;++p)if(p!==u&&(h+=l),h+=i[p],f=s[h],f!==void 0){if(["string","number","boolean"].indexOf(typeof f)>-1&&p<i.length-1)continue;u+=p-u+1;break}s=f}return s},ao=n=>n?.replace("_","-"),$S={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,a){console?.[n]?.apply?.(console,a)}};class ru{constructor(a,l={}){this.init(a,l)}init(a,l={}){this.prefix=l.prefix||"i18next:",this.logger=a||$S,this.options=l,this.debug=l.debug}log(...a){return this.forward(a,"log","",!0)}warn(...a){return this.forward(a,"warn","",!0)}error(...a){return this.forward(a,"error","")}deprecate(...a){return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}forward(a,l,i,s){return s&&!this.debug?null:(Me(a[0])&&(a[0]=`${i}${this.prefix} ${a[0]}`),this.logger[l](a))}create(a){return new ru(this.logger,{prefix:`${this.prefix}:${a}:`,...this.options})}clone(a){return a=a||this.options,a.prefix=a.prefix||this.prefix,new ru(this.logger,a)}}var Hn=new ru;class mu{constructor(){this.observers={}}on(a,l){return a.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const s=this.observers[i].get(l)||0;this.observers[i].set(l,s+1)}),this}off(a,l){if(this.observers[a]){if(!l){delete this.observers[a];return}this.observers[a].delete(l)}}emit(a,...l){this.observers[a]&&Array.from(this.observers[a].entries()).forEach(([s,u])=>{for(let f=0;f<u;f++)s(...l)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([s,u])=>{for(let f=0;f<u;f++)s.apply(s,[a,...l])})}}class tv extends mu{constructor(a,l={ns:["translation"],defaultNS:"translation"}){super(),this.data=a||{},this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(a){this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}removeNamespaces(a){const l=this.options.ns.indexOf(a);l>-1&&this.options.ns.splice(l,1)}getResource(a,l,i,s={}){const u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,f=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;a.indexOf(".")>-1?h=a.split("."):(h=[a,l],i&&(Array.isArray(i)?h.push(...i):Me(i)&&u?h.push(...i.split(u)):h.push(i)));const p=au(this.data,h);return!p&&!l&&!i&&a.indexOf(".")>-1&&(a=h[0],l=h[1],i=h.slice(2).join(".")),p||!f||!Me(i)?p:pd(this.data?.[a]?.[l],i,u)}addResource(a,l,i,s,u={silent:!1}){const f=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator;let h=[a,l];i&&(h=h.concat(f?i.split(f):i)),a.indexOf(".")>-1&&(h=a.split("."),s=l,l=h[1]),this.addNamespaces(l),ev(this.data,h,s),u.silent||this.emit("added",a,l,i,s)}addResources(a,l,i,s={silent:!1}){for(const u in i)(Me(i[u])||Array.isArray(i[u]))&&this.addResource(a,l,u,i[u],{silent:!0});s.silent||this.emit("added",a,l,i)}addResourceBundle(a,l,i,s,u,f={silent:!1,skipCopy:!1}){let h=[a,l];a.indexOf(".")>-1&&(h=a.split("."),s=i,i=l,l=h[1]),this.addNamespaces(l);let p=au(this.data,h)||{};f.skipCopy||(i=JSON.parse(JSON.stringify(i))),s?jy(p,i,u):p={...p,...i},ev(this.data,h,p),f.silent||this.emit("added",a,l,i)}removeResourceBundle(a,l){this.hasResourceBundle(a,l)&&delete this.data[a][l],this.removeNamespaces(l),this.emit("removed",a,l)}hasResourceBundle(a,l){return this.getResource(a,l)!==void 0}getResourceBundle(a,l){return l||(l=this.options.defaultNS),this.getResource(a,l)}getDataByLanguage(a){return this.data[a]}hasLanguageSomeTranslations(a){const l=this.getDataByLanguage(a);return!!(l&&Object.keys(l)||[]).find(s=>l[s]&&Object.keys(l[s]).length>0)}toJSON(){return this.data}}var Dy={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,a,l,i,s){return n.forEach(u=>{a=this.processors[u]?.process(a,l,i,s)??a}),a}};const nv={},av=n=>!Me(n)&&typeof n!="boolean"&&typeof n!="number";class lu extends mu{constructor(a,l={}){super(),jS(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,this),this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Hn.create("translator")}changeLanguage(a){a&&(this.language=a)}exists(a,l={interpolation:{}}){const i={...l};return a==null?!1:this.resolve(a,i)?.res!==void 0}extractFromKey(a,l){let i=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const s=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let u=l.ns||this.options.defaultNS||[];const f=i&&a.indexOf(i)>-1,h=!this.options.userDefinedKeySeparator&&!l.keySeparator&&!this.options.userDefinedNsSeparator&&!l.nsSeparator&&!BS(a,i,s);if(f&&!h){const p=a.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:a,namespaces:Me(u)?[u]:u};const m=a.split(i);(i!==s||i===s&&this.options.ns.indexOf(m[0])>-1)&&(u=m.shift()),a=m.join(s)}return{key:a,namespaces:Me(u)?[u]:u}}translate(a,l,i){let s=typeof l=="object"?{...l}:l;if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(s={...s}),s||(s={}),a==null)return"";Array.isArray(a)||(a=[String(a)]);const u=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,f=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:h,namespaces:p}=this.extractFromKey(a[a.length-1],s),m=p[p.length-1];let g=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;g===void 0&&(g=":");const b=s.lng||this.language,S=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(b?.toLowerCase()==="cimode")return S?u?{res:`${m}${g}${h}`,usedKey:h,exactUsedKey:h,usedLng:b,usedNS:m,usedParams:this.getUsedParamsDetails(s)}:`${m}${g}${h}`:u?{res:h,usedKey:h,exactUsedKey:h,usedLng:b,usedNS:m,usedParams:this.getUsedParamsDetails(s)}:h;const E=this.resolve(a,s);let A=E?.res;const O=E?.usedKey||h,_=E?.exactUsedKey||h,N=["[object Number]","[object Function]","[object RegExp]"],P=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,H=!this.i18nFormat||this.i18nFormat.handleAsObject,K=s.count!==void 0&&!Me(s.count),V=lu.hasDefaultValue(s),T=K?this.pluralResolver.getSuffix(b,s.count,s):"",F=s.ordinal&&K?this.pluralResolver.getSuffix(b,s.count,{ordinal:!1}):"",W=K&&!s.ordinal&&s.count===0,re=W&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${T}`]||s[`defaultValue${F}`]||s.defaultValue;let oe=A;H&&!A&&V&&(oe=re);const Re=av(oe),xe=Object.prototype.toString.apply(oe);if(H&&oe&&Re&&N.indexOf(xe)<0&&!(Me(P)&&Array.isArray(oe))){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const fe=this.options.returnedObjectHandler?this.options.returnedObjectHandler(O,oe,{...s,ns:p}):`key '${h} (${this.language})' returned an object instead of string.`;return u?(E.res=fe,E.usedParams=this.getUsedParamsDetails(s),E):fe}if(f){const fe=Array.isArray(oe),ue=fe?[]:{},le=fe?_:O;for(const R in oe)if(Object.prototype.hasOwnProperty.call(oe,R)){const z=`${le}${f}${R}`;V&&!A?ue[R]=this.translate(z,{...s,defaultValue:av(re)?re[R]:void 0,joinArrays:!1,ns:p}):ue[R]=this.translate(z,{...s,joinArrays:!1,ns:p}),ue[R]===z&&(ue[R]=oe[R])}A=ue}}else if(H&&Me(P)&&Array.isArray(A))A=A.join(P),A&&(A=this.extendTranslation(A,a,s,i));else{let fe=!1,ue=!1;!this.isValidLookup(A)&&V&&(fe=!0,A=re),this.isValidLookup(A)||(ue=!0,A=h);const R=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ue?void 0:A,z=V&&re!==A&&this.options.updateMissing;if(ue||fe||z){if(this.logger.log(z?"updateKey":"missingKey",b,m,h,z?re:A),f){const U=this.resolve(h,{...s,keySeparator:!1});U&&U.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let D=[];const Z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Z&&Z[0])for(let U=0;U<Z.length;U++)D.push(Z[U]);else this.options.saveMissingTo==="all"?D=this.languageUtils.toResolveHierarchy(s.lng||this.language):D.push(s.lng||this.language);const C=(U,j,$)=>{const I=V&&$!==A?$:R;this.options.missingKeyHandler?this.options.missingKeyHandler(U,m,j,I,z,s):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(U,m,j,I,z,s),this.emit("missingKey",U,m,j,A)};this.options.saveMissing&&(this.options.saveMissingPlurals&&K?D.forEach(U=>{const j=this.pluralResolver.getSuffixes(U,s);W&&s[`defaultValue${this.options.pluralSeparator}zero`]&&j.indexOf(`${this.options.pluralSeparator}zero`)<0&&j.push(`${this.options.pluralSeparator}zero`),j.forEach($=>{C([U],h+$,s[`defaultValue${$}`]||re)})}):C(D,h,re))}A=this.extendTranslation(A,a,s,E,i),ue&&A===h&&this.options.appendNamespaceToMissingKey&&(A=`${m}${g}${h}`),(ue||fe)&&this.options.parseMissingKeyHandler&&(A=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${g}${h}`:h,fe?A:void 0,s))}return u?(E.res=A,E.usedParams=this.getUsedParamsDetails(s),E):A}extendTranslation(a,l,i,s,u){if(this.i18nFormat?.parse)a=this.i18nFormat.parse(a,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const p=Me(a)&&(i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(p){const b=a.match(this.interpolator.nestingRegexp);m=b&&b.length}let g=i.replace&&!Me(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(g={...this.options.interpolation.defaultVariables,...g}),a=this.interpolator.interpolate(a,g,i.lng||this.language||s.usedLng,i),p){const b=a.match(this.interpolator.nestingRegexp),S=b&&b.length;m<S&&(i.nest=!1)}!i.lng&&s&&s.res&&(i.lng=this.language||s.usedLng),i.nest!==!1&&(a=this.interpolator.nest(a,(...b)=>u?.[0]===b[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${l[0]}`),null):this.translate(...b,l),i)),i.interpolation&&this.interpolator.reset()}const f=i.postProcess||this.options.postProcess,h=Me(f)?[f]:f;return a!=null&&h?.length&&i.applyPostProcessor!==!1&&(a=Dy.handle(h,a,l,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),a}resolve(a,l={}){let i,s,u,f,h;return Me(a)&&(a=[a]),a.forEach(p=>{if(this.isValidLookup(i))return;const m=this.extractFromKey(p,l),g=m.key;s=g;let b=m.namespaces;this.options.fallbackNS&&(b=b.concat(this.options.fallbackNS));const S=l.count!==void 0&&!Me(l.count),E=S&&!l.ordinal&&l.count===0,A=l.context!==void 0&&(Me(l.context)||typeof l.context=="number")&&l.context!=="",O=l.lngs?l.lngs:this.languageUtils.toResolveHierarchy(l.lng||this.language,l.fallbackLng);b.forEach(_=>{this.isValidLookup(i)||(h=_,!nv[`${O[0]}-${_}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(h)&&(nv[`${O[0]}-${_}`]=!0,this.logger.warn(`key "${s}" for languages "${O.join(", ")}" won't get resolved as namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(N=>{if(this.isValidLookup(i))return;f=N;const P=[g];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(P,g,N,_,l);else{let K;S&&(K=this.pluralResolver.getSuffix(N,l.count,l));const V=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(S&&(P.push(g+K),l.ordinal&&K.indexOf(T)===0&&P.push(g+K.replace(T,this.options.pluralSeparator)),E&&P.push(g+V)),A){const F=`${g}${this.options.contextSeparator}${l.context}`;P.push(F),S&&(P.push(F+K),l.ordinal&&K.indexOf(T)===0&&P.push(F+K.replace(T,this.options.pluralSeparator)),E&&P.push(F+V))}}let H;for(;H=P.pop();)this.isValidLookup(i)||(u=H,i=this.getResource(N,_,H,l))}))})}),{res:i,usedKey:s,exactUsedKey:u,usedLng:f,usedNS:h}}isValidLookup(a){return a!==void 0&&!(!this.options.returnNull&&a===null)&&!(!this.options.returnEmptyString&&a==="")}getResource(a,l,i,s={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(a,l,i,s):this.resourceStore.getResource(a,l,i,s)}getUsedParamsDetails(a={}){const l=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=a.replace&&!Me(a.replace);let s=i?a.replace:a;if(i&&typeof a.count<"u"&&(s.count=a.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!i){s={...s};for(const u of l)delete s[u]}return s}static hasDefaultValue(a){const l="defaultValue";for(const i in a)if(Object.prototype.hasOwnProperty.call(a,i)&&l===i.substring(0,l.length)&&a[i]!==void 0)return!0;return!1}}class rv{constructor(a){this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Hn.create("languageUtils")}getScriptPartFromCode(a){if(a=ao(a),!a||a.indexOf("-")<0)return null;const l=a.split("-");return l.length===2||(l.pop(),l[l.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(l.join("-"))}getLanguagePartFromCode(a){if(a=ao(a),!a||a.indexOf("-")<0)return a;const l=a.split("-");return this.formatLanguageCode(l[0])}formatLanguageCode(a){if(Me(a)&&a.indexOf("-")>-1){let l;try{l=Intl.getCanonicalLocales(a)[0]}catch{}return l&&this.options.lowerCaseLng&&(l=l.toLowerCase()),l||(this.options.lowerCaseLng?a.toLowerCase():a)}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a}isSupportedCode(a){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(a=this.getLanguagePartFromCode(a)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(a)>-1}getBestMatchFromCodes(a){if(!a)return null;let l;return a.forEach(i=>{if(l)return;const s=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(s))&&(l=s)}),!l&&this.options.supportedLngs&&a.forEach(i=>{if(l)return;const s=this.getScriptPartFromCode(i);if(this.isSupportedCode(s))return l=s;const u=this.getLanguagePartFromCode(i);if(this.isSupportedCode(u))return l=u;l=this.options.supportedLngs.find(f=>{if(f===u)return f;if(!(f.indexOf("-")<0&&u.indexOf("-")<0)&&(f.indexOf("-")>0&&u.indexOf("-")<0&&f.substring(0,f.indexOf("-"))===u||f.indexOf(u)===0&&u.length>1))return f})}),l||(l=this.getFallbackCodes(this.options.fallbackLng)[0]),l}getFallbackCodes(a,l){if(!a)return[];if(typeof a=="function"&&(a=a(l)),Me(a)&&(a=[a]),Array.isArray(a))return a;if(!l)return a.default||[];let i=a[l];return i||(i=a[this.getScriptPartFromCode(l)]),i||(i=a[this.formatLanguageCode(l)]),i||(i=a[this.getLanguagePartFromCode(l)]),i||(i=a.default),i||[]}toResolveHierarchy(a,l){const i=this.getFallbackCodes((l===!1?[]:l)||this.options.fallbackLng||[],a),s=[],u=f=>{f&&(this.isSupportedCode(f)?s.push(f):this.logger.warn(`rejecting language code not found in supportedLngs: ${f}`))};return Me(a)&&(a.indexOf("-")>-1||a.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&u(this.formatLanguageCode(a)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&u(this.getScriptPartFromCode(a)),this.options.load!=="currentOnly"&&u(this.getLanguagePartFromCode(a))):Me(a)&&u(this.formatLanguageCode(a)),i.forEach(f=>{s.indexOf(f)<0&&u(this.formatLanguageCode(f))}),s}}const lv={zero:0,one:1,two:2,few:3,many:4,other:5},iv={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class VS{constructor(a,l={}){this.languageUtils=a,this.options=l,this.logger=Hn.create("pluralResolver"),this.pluralRulesCache={}}addRule(a,l){this.rules[a]=l}clearCache(){this.pluralRulesCache={}}getRule(a,l={}){const i=ao(a==="dev"?"en":a),s=l.ordinal?"ordinal":"cardinal",u=JSON.stringify({cleanedCode:i,type:s});if(u in this.pluralRulesCache)return this.pluralRulesCache[u];let f;try{f=new Intl.PluralRules(i,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),iv;if(!a.match(/-|_/))return iv;const p=this.languageUtils.getLanguagePartFromCode(a);f=this.getRule(p,l)}return this.pluralRulesCache[u]=f,f}needsPlural(a,l={}){let i=this.getRule(a,l);return i||(i=this.getRule("dev",l)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(a,l,i={}){return this.getSuffixes(a,i).map(s=>`${l}${s}`)}getSuffixes(a,l={}){let i=this.getRule(a,l);return i||(i=this.getRule("dev",l)),i?i.resolvedOptions().pluralCategories.sort((s,u)=>lv[s]-lv[u]).map(s=>`${this.options.prepend}${l.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(a,l,i={}){const s=this.getRule(a,i);return s?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s.select(l)}`:(this.logger.warn(`no plural rule found for: ${a}`),this.getSuffix("dev",l,i))}}const ov=(n,a,l,i=".",s=!0)=>{let u=LS(n,a,l);return!u&&s&&Me(l)&&(u=pd(n,l,i),u===void 0&&(u=pd(a,l,i))),u},$f=n=>n.replace(/\$/g,"$$$$");class qS{constructor(a={}){this.logger=Hn.create("interpolator"),this.options=a,this.format=a?.interpolation?.format||(l=>l),this.init(a)}init(a={}){a.interpolation||(a.interpolation={escapeValue:!0});const{escape:l,escapeValue:i,useRawValueToEscape:s,prefix:u,prefixEscaped:f,suffix:h,suffixEscaped:p,formatSeparator:m,unescapeSuffix:g,unescapePrefix:b,nestingPrefix:S,nestingPrefixEscaped:E,nestingSuffix:A,nestingSuffixEscaped:O,nestingOptionsSeparator:_,maxReplaces:N,alwaysFormat:P}=a.interpolation;this.escape=l!==void 0?l:kS,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=u?vl(u):f||"{{",this.suffix=h?vl(h):p||"}}",this.formatSeparator=m||",",this.unescapePrefix=g?"":b||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=S?vl(S):E||vl("$t("),this.nestingSuffix=A?vl(A):O||vl(")"),this.nestingOptionsSeparator=_||",",this.maxReplaces=N||1e3,this.alwaysFormat=P!==void 0?P:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const a=(l,i)=>l?.source===i?(l.lastIndex=0,l):new RegExp(i,"g");this.regexp=a(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=a(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=a(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(a,l,i,s){let u,f,h;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=E=>{if(E.indexOf(this.formatSeparator)<0){const N=ov(l,p,E,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(N,void 0,i,{...s,...l,interpolationkey:E}):N}const A=E.split(this.formatSeparator),O=A.shift().trim(),_=A.join(this.formatSeparator).trim();return this.format(ov(l,p,O,this.options.keySeparator,this.options.ignoreJSONStructure),_,i,{...s,...l,interpolationkey:O})};this.resetRegExp();const g=s?.missingInterpolationHandler||this.options.missingInterpolationHandler,b=s?.interpolation?.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:E=>$f(E)},{regex:this.regexp,safeValue:E=>this.escapeValue?$f(this.escape(E)):$f(E)}].forEach(E=>{for(h=0;u=E.regex.exec(a);){const A=u[1].trim();if(f=m(A),f===void 0)if(typeof g=="function"){const _=g(a,u,s);f=Me(_)?_:""}else if(s&&Object.prototype.hasOwnProperty.call(s,A))f="";else if(b){f=u[0];continue}else this.logger.warn(`missed to pass in variable ${A} for interpolating ${a}`),f="";else!Me(f)&&!this.useRawValueToEscape&&(f=Jg(f));const O=E.safeValue(f);if(a=a.replace(u[0],O),b?(E.regex.lastIndex+=f.length,E.regex.lastIndex-=u[0].length):E.regex.lastIndex=0,h++,h>=this.maxReplaces)break}}),a}nest(a,l,i={}){let s,u,f;const h=(p,m)=>{const g=this.nestingOptionsSeparator;if(p.indexOf(g)<0)return p;const b=p.split(new RegExp(`${g}[ ]*{`));let S=`{${b[1]}`;p=b[0],S=this.interpolate(S,f);const E=S.match(/'/g),A=S.match(/"/g);((E?.length??0)%2===0&&!A||A.length%2!==0)&&(S=S.replace(/'/g,'"'));try{f=JSON.parse(S),m&&(f={...m,...f})}catch(O){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,O),`${p}${g}${S}`}return f.defaultValue&&f.defaultValue.indexOf(this.prefix)>-1&&delete f.defaultValue,p};for(;s=this.nestingRegexp.exec(a);){let p=[];f={...i},f=f.replace&&!Me(f.replace)?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;const m=/{.*}/.test(s[1])?s[1].lastIndexOf("}")+1:s[1].indexOf(this.formatSeparator);if(m!==-1&&(p=s[1].slice(m).split(this.formatSeparator).map(g=>g.trim()).filter(Boolean),s[1]=s[1].slice(0,m)),u=l(h.call(this,s[1].trim(),f),f),u&&s[0]===a&&!Me(u))return u;Me(u)||(u=Jg(u)),u||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${a}`),u=""),p.length&&(u=p.reduce((g,b)=>this.format(g,b,i.lng,{...i,interpolationkey:s[1].trim()}),u.trim())),a=a.replace(s[0],u),this.regexp.lastIndex=0}return a}}const YS=n=>{let a=n.toLowerCase().trim();const l={};if(n.indexOf("(")>-1){const i=n.split("(");a=i[0].toLowerCase().trim();const s=i[1].substring(0,i[1].length-1);a==="currency"&&s.indexOf(":")<0?l.currency||(l.currency=s.trim()):a==="relativetime"&&s.indexOf(":")<0?l.range||(l.range=s.trim()):s.split(";").forEach(f=>{if(f){const[h,...p]=f.split(":"),m=p.join(":").trim().replace(/^'+|'+$/g,""),g=h.trim();l[g]||(l[g]=m),m==="false"&&(l[g]=!1),m==="true"&&(l[g]=!0),isNaN(m)||(l[g]=parseInt(m,10))}})}return{formatName:a,formatOptions:l}},sv=n=>{const a={};return(l,i,s)=>{let u=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(u={...u,[s.interpolationkey]:void 0});const f=i+JSON.stringify(u);let h=a[f];return h||(h=n(ao(i),s),a[f]=h),h(l)}},GS=n=>(a,l,i)=>n(ao(l),i)(a);class KS{constructor(a={}){this.logger=Hn.create("formatter"),this.options=a,this.init(a)}init(a,l={interpolation:{}}){this.formatSeparator=l.interpolation.formatSeparator||",";const i=l.cacheInBuiltFormats?sv:GS;this.formats={number:i((s,u)=>{const f=new Intl.NumberFormat(s,{...u});return h=>f.format(h)}),currency:i((s,u)=>{const f=new Intl.NumberFormat(s,{...u,style:"currency"});return h=>f.format(h)}),datetime:i((s,u)=>{const f=new Intl.DateTimeFormat(s,{...u});return h=>f.format(h)}),relativetime:i((s,u)=>{const f=new Intl.RelativeTimeFormat(s,{...u});return h=>f.format(h,u.range||"day")}),list:i((s,u)=>{const f=new Intl.ListFormat(s,{...u});return h=>f.format(h)})}}add(a,l){this.formats[a.toLowerCase().trim()]=l}addCached(a,l){this.formats[a.toLowerCase().trim()]=sv(l)}format(a,l,i,s={}){const u=l.split(this.formatSeparator);if(u.length>1&&u[0].indexOf("(")>1&&u[0].indexOf(")")<0&&u.find(h=>h.indexOf(")")>-1)){const h=u.findIndex(p=>p.indexOf(")")>-1);u[0]=[u[0],...u.splice(1,h)].join(this.formatSeparator)}return u.reduce((h,p)=>{const{formatName:m,formatOptions:g}=YS(p);if(this.formats[m]){let b=h;try{const S=s?.formatParams?.[s.interpolationkey]||{},E=S.locale||S.lng||s.locale||s.lng||i;b=this.formats[m](h,E,{...g,...s,...S})}catch(S){this.logger.warn(S)}return b}else this.logger.warn(`there was no format function for ${m}`);return h},a)}}const FS=(n,a)=>{n.pending[a]!==void 0&&(delete n.pending[a],n.pendingCount--)};class XS extends mu{constructor(a,l,i,s={}){super(),this.backend=a,this.store=l,this.services=i,this.languageUtils=i.languageUtils,this.options=s,this.logger=Hn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(i,s.backend,s)}queueLoad(a,l,i,s){const u={},f={},h={},p={};return a.forEach(m=>{let g=!0;l.forEach(b=>{const S=`${m}|${b}`;!i.reload&&this.store.hasResourceBundle(m,b)?this.state[S]=2:this.state[S]<0||(this.state[S]===1?f[S]===void 0&&(f[S]=!0):(this.state[S]=1,g=!1,f[S]===void 0&&(f[S]=!0),u[S]===void 0&&(u[S]=!0),p[b]===void 0&&(p[b]=!0)))}),g||(h[m]=!0)}),(Object.keys(u).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(u),pending:Object.keys(f),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(p)}}loaded(a,l,i){const s=a.split("|"),u=s[0],f=s[1];l&&this.emit("failedLoading",u,f,l),!l&&i&&this.store.addResourceBundle(u,f,i,void 0,void 0,{skipCopy:!0}),this.state[a]=l?-1:2,l&&i&&(this.state[a]=0);const h={};this.queue.forEach(p=>{_S(p.loaded,[u],f),FS(p,a),l&&p.errors.push(l),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(m=>{h[m]||(h[m]={});const g=p.loaded[m];g.length&&g.forEach(b=>{h[m][b]===void 0&&(h[m][b]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(p=>!p.done)}read(a,l,i,s=0,u=this.retryTimeout,f){if(!a.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:a,ns:l,fcName:i,tried:s,wait:u,callback:f});return}this.readingCalls++;const h=(m,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const b=this.waitingReads.shift();this.read(b.lng,b.ns,b.fcName,b.tried,b.wait,b.callback)}if(m&&g&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,a,l,i,s+1,u*2,f)},u);return}f(m,g)},p=this.backend[i].bind(this.backend);if(p.length===2){try{const m=p(a,l);m&&typeof m.then=="function"?m.then(g=>h(null,g)).catch(h):h(null,m)}catch(m){h(m)}return}return p(a,l,h)}prepareLoading(a,l,i={},s){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();Me(a)&&(a=this.languageUtils.toResolveHierarchy(a)),Me(l)&&(l=[l]);const u=this.queueLoad(a,l,i,s);if(!u.toLoad.length)return u.pending.length||s(),null;u.toLoad.forEach(f=>{this.loadOne(f)})}load(a,l,i){this.prepareLoading(a,l,{},i)}reload(a,l,i){this.prepareLoading(a,l,{reload:!0},i)}loadOne(a,l=""){const i=a.split("|"),s=i[0],u=i[1];this.read(s,u,"read",void 0,void 0,(f,h)=>{f&&this.logger.warn(`${l}loading namespace ${u} for language ${s} failed`,f),!f&&h&&this.logger.log(`${l}loaded namespace ${u} for language ${s}`,h),this.loaded(a,f,h)})}saveMissing(a,l,i,s,u,f={},h=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(l)){this.logger.warn(`did not save key "${i}" as the namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend?.create){const p={...f,isUpdate:u},m=this.backend.create.bind(this.backend);if(m.length<6)try{let g;m.length===5?g=m(a,l,i,s,p):g=m(a,l,i,s),g&&typeof g.then=="function"?g.then(b=>h(null,b)).catch(h):h(null,g)}catch(g){h(g)}else m(a,l,i,s,h,p)}!a||!a[0]||this.store.addResource(a[0],l,i,s)}}}const uv=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:n=>{let a={};if(typeof n[1]=="object"&&(a=n[1]),Me(n[1])&&(a.defaultValue=n[1]),Me(n[2])&&(a.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const l=n[3]||n[2];Object.keys(l).forEach(i=>{a[i]=l[i]})}return a},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),cv=n=>(Me(n.ns)&&(n.ns=[n.ns]),Me(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),Me(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),n.supportedLngs?.indexOf?.("cimode")<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),typeof n.initImmediate=="boolean"&&(n.initAsync=n.initImmediate),n),Us=()=>{},QS=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(l=>{typeof n[l]=="function"&&(n[l]=n[l].bind(n))})};class ro extends mu{constructor(a={},l){if(super(),this.options=cv(a),this.services={},this.logger=Hn,this.modules={external:[]},QS(this),l&&!this.isInitialized&&!a.isClone){if(!this.options.initAsync)return this.init(a,l),this;setTimeout(()=>{this.init(a,l)},0)}}init(a={},l){this.isInitializing=!0,typeof a=="function"&&(l=a,a={}),a.defaultNS==null&&a.ns&&(Me(a.ns)?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));const i=uv();this.options={...i,...this.options,...cv(a)},this.options.interpolation={...i.interpolation,...this.options.interpolation},a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);const s=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Hn.init(s(this.modules.logger),this.options):Hn.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=KS;const g=new rv(this.options);this.store=new tv(this.options.resources,this.options);const b=this.services;b.logger=Hn,b.resourceStore=this.store,b.languageUtils=g,b.pluralResolver=new VS(g,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.warn("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),m&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(b.formatter=s(m),b.formatter.init&&b.formatter.init(b,this.options),this.options.interpolation.format=b.formatter.format.bind(b.formatter)),b.interpolator=new qS(this.options),b.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},b.backendConnector=new XS(s(this.modules.backend),b.resourceStore,b,this.options),b.backendConnector.on("*",(E,...A)=>{this.emit(E,...A)}),this.modules.languageDetector&&(b.languageDetector=s(this.modules.languageDetector),b.languageDetector.init&&b.languageDetector.init(b,this.options.detection,this.options)),this.modules.i18nFormat&&(b.i18nFormat=s(this.modules.i18nFormat),b.i18nFormat.init&&b.i18nFormat.init(this)),this.translator=new lu(this.services,this.options),this.translator.on("*",(E,...A)=>{this.emit(E,...A)}),this.modules.external.forEach(E=>{E.init&&E.init(this)})}if(this.format=this.options.interpolation.format,l||(l=Us),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=(...g)=>this.store[m](...g)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...g)=>(this.store[m](...g),this)});const h=Ki(),p=()=>{const m=(g,b)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(b),l(g,b)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?p():setTimeout(p,0),h}loadResources(a,l=Us){let i=l;const s=Me(a)?a:this.language;if(typeof a=="function"&&(i=a),!this.options.resources||this.options.partialBundledLanguages){if(s?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const u=[],f=h=>{if(!h||h==="cimode")return;this.services.languageUtils.toResolveHierarchy(h).forEach(m=>{m!=="cimode"&&u.indexOf(m)<0&&u.push(m)})};s?f(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(p=>f(p)),this.options.preload?.forEach?.(h=>f(h)),this.services.backendConnector.load(u,this.options.ns,h=>{!h&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(h)})}else i(null)}reloadResources(a,l,i){const s=Ki();return typeof a=="function"&&(i=a,a=void 0),typeof l=="function"&&(i=l,l=void 0),a||(a=this.languages),l||(l=this.options.ns),i||(i=Us),this.services.backendConnector.reload(a,l,u=>{s.resolve(),i(u)}),s}use(a){if(!a)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&Dy.addPostProcessor(a),a.type==="formatter"&&(this.modules.formatter=a),a.type==="3rdParty"&&this.modules.external.push(a),this}setResolvedLanguage(a){if(!(!a||!this.languages)&&!(["cimode","dev"].indexOf(a)>-1)){for(let l=0;l<this.languages.length;l++){const i=this.languages[l];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(a)<0&&this.store.hasLanguageSomeTranslations(a)&&(this.resolvedLanguage=a,this.languages.unshift(a))}}changeLanguage(a,l){this.isLanguageChangingTo=a;const i=Ki();this.emit("languageChanging",a);const s=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},u=(h,p)=>{p?this.isLanguageChangingTo===a&&(s(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,i.resolve((...m)=>this.t(...m)),l&&l(h,(...m)=>this.t(...m))},f=h=>{!a&&!h&&this.services.languageDetector&&(h=[]);const p=Me(h)?h:h&&h[0],m=this.store.hasLanguageSomeTranslations(p)?p:this.services.languageUtils.getBestMatchFromCodes(Me(h)?[h]:h);m&&(this.language||s(m),this.translator.language||this.translator.changeLanguage(m),this.services.languageDetector?.cacheUserLanguage?.(m)),this.loadResources(m,g=>{u(g,m)})};return!a&&this.services.languageDetector&&!this.services.languageDetector.async?f(this.services.languageDetector.detect()):!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(f):this.services.languageDetector.detect(f):f(a),i}getFixedT(a,l,i){const s=(u,f,...h)=>{let p;typeof f!="object"?p=this.options.overloadTranslationOptionHandler([u,f].concat(h)):p={...f},p.lng=p.lng||s.lng,p.lngs=p.lngs||s.lngs,p.ns=p.ns||s.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||i||s.keyPrefix);const m=this.options.keySeparator||".";let g;return p.keyPrefix&&Array.isArray(u)?g=u.map(b=>`${p.keyPrefix}${m}${b}`):g=p.keyPrefix?`${p.keyPrefix}${m}${u}`:u,this.t(g,p)};return Me(a)?s.lng=a:s.lngs=a,s.ns=l,s.keyPrefix=i,s}t(...a){return this.translator?.translate(...a)}exists(...a){return this.translator?.exists(...a)}setDefaultNamespace(a){this.options.defaultNS=a}hasLoadedNamespace(a,l={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=l.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const f=(h,p)=>{const m=this.services.backendConnector.state[`${h}|${p}`];return m===-1||m===0||m===2};if(l.precheck){const h=l.precheck(this,f);if(h!==void 0)return h}return!!(this.hasResourceBundle(i,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(i,a)&&(!s||f(u,a)))}loadNamespaces(a,l){const i=Ki();return this.options.ns?(Me(a)&&(a=[a]),a.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{i.resolve(),l&&l(s)}),i):(l&&l(),Promise.resolve())}loadLanguages(a,l){const i=Ki();Me(a)&&(a=[a]);const s=this.options.preload||[],u=a.filter(f=>s.indexOf(f)<0&&this.services.languageUtils.isSupportedCode(f));return u.length?(this.options.preload=s.concat(u),this.loadResources(f=>{i.resolve(),l&&l(f)}),i):(l&&l(),Promise.resolve())}dir(a){if(a||(a=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!a)return"rtl";try{const s=new Intl.Locale(a);if(s&&s.getTextInfo){const u=s.getTextInfo();if(u&&u.direction)return u.direction}}catch{}const l=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services?.languageUtils||new rv(uv());return a.toLowerCase().indexOf("-latn")>1?"ltr":l.indexOf(i.getLanguagePartFromCode(a))>-1||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(a={},l){return new ro(a,l)}cloneInstance(a={},l=Us){const i=a.forkResourceStore;i&&delete a.forkResourceStore;const s={...this.options,...a,isClone:!0},u=new ro(s);if((a.debug!==void 0||a.prefix!==void 0)&&(u.logger=u.logger.clone(a)),["store","services","language"].forEach(h=>{u[h]=this[h]}),u.services={...this.services},u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},i){const h=Object.keys(this.store.data).reduce((p,m)=>(p[m]={...this.store.data[m]},p[m]=Object.keys(p[m]).reduce((g,b)=>(g[b]={...p[m][b]},g),p[m]),p),{});u.store=new tv(h,s),u.services.resourceStore=u.store}return u.translator=new lu(u.services,s),u.translator.on("*",(h,...p)=>{u.emit(h,...p)}),u.init(s,l),u.translator.options=s,u.translator.backendConnector.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const _t=ro.createInstance();_t.createInstance=ro.createInstance;_t.createInstance;_t.dir;_t.init;_t.loadResources;_t.reloadResources;_t.use;_t.changeLanguage;_t.getFixedT;_t.t;_t.exists;_t.setDefaultNamespace;_t.hasLoadedNamespace;_t.loadNamespaces;_t.loadLanguages;var Vf={exports:{}},De={};/**
|
|
17
|
+
* @license React
|
|
18
|
+
* react.production.js
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the MIT license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*/var fv;function ZS(){if(fv)return De;fv=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.iterator;function S(C){return C===null||typeof C!="object"?null:(C=b&&C[b]||C["@@iterator"],typeof C=="function"?C:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,O={};function _(C,U,j){this.props=C,this.context=U,this.refs=O,this.updater=j||E}_.prototype.isReactComponent={},_.prototype.setState=function(C,U){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,U,"setState")},_.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function N(){}N.prototype=_.prototype;function P(C,U,j){this.props=C,this.context=U,this.refs=O,this.updater=j||E}var H=P.prototype=new N;H.constructor=P,A(H,_.prototype),H.isPureReactComponent=!0;var K=Array.isArray,V={H:null,A:null,T:null,S:null,V:null},T=Object.prototype.hasOwnProperty;function F(C,U,j,$,I,ie){return j=ie.ref,{$$typeof:n,type:C,key:U,ref:j!==void 0?j:null,props:ie}}function W(C,U){return F(C.type,U,void 0,void 0,void 0,C.props)}function re(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function oe(C){var U={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(j){return U[j]})}var Re=/\/+/g;function xe(C,U){return typeof C=="object"&&C!==null&&C.key!=null?oe(""+C.key):U.toString(36)}function fe(){}function ue(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(fe,fe):(C.status="pending",C.then(function(U){C.status==="pending"&&(C.status="fulfilled",C.value=U)},function(U){C.status==="pending"&&(C.status="rejected",C.reason=U)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function le(C,U,j,$,I){var ie=typeof C;(ie==="undefined"||ie==="boolean")&&(C=null);var ce=!1;if(C===null)ce=!0;else switch(ie){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(C.$$typeof){case n:case a:ce=!0;break;case g:return ce=C._init,le(ce(C._payload),U,j,$,I)}}if(ce)return I=I(C),ce=$===""?"."+xe(C,0):$,K(I)?(j="",ce!=null&&(j=ce.replace(Re,"$&/")+"/"),le(I,U,j,"",function(qe){return qe})):I!=null&&(re(I)&&(I=W(I,j+(I.key==null||C&&C.key===I.key?"":(""+I.key).replace(Re,"$&/")+"/")+ce)),U.push(I)),1;ce=0;var de=$===""?".":$+":";if(K(C))for(var Te=0;Te<C.length;Te++)$=C[Te],ie=de+xe($,Te),ce+=le($,U,j,ie,I);else if(Te=S(C),typeof Te=="function")for(C=Te.call(C),Te=0;!($=C.next()).done;)$=$.value,ie=de+xe($,Te++),ce+=le($,U,j,ie,I);else if(ie==="object"){if(typeof C.then=="function")return le(ue(C),U,j,$,I);throw U=String(C),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ce}function R(C,U,j){if(C==null)return C;var $=[],I=0;return le(C,$,"","",function(ie){return U.call(j,ie,I++)}),$}function z(C){if(C._status===-1){var U=C._result;U=U(),U.then(function(j){(C._status===0||C._status===-1)&&(C._status=1,C._result=j)},function(j){(C._status===0||C._status===-1)&&(C._status=2,C._result=j)}),C._status===-1&&(C._status=0,C._result=U)}if(C._status===1)return C._result.default;throw C._result}var D=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)};function Z(){}return De.Children={map:R,forEach:function(C,U,j){R(C,function(){U.apply(this,arguments)},j)},count:function(C){var U=0;return R(C,function(){U++}),U},toArray:function(C){return R(C,function(U){return U})||[]},only:function(C){if(!re(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},De.Component=_,De.Fragment=l,De.Profiler=s,De.PureComponent=P,De.StrictMode=i,De.Suspense=p,De.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,De.__COMPILER_RUNTIME={__proto__:null,c:function(C){return V.H.useMemoCache(C)}},De.cache=function(C){return function(){return C.apply(null,arguments)}},De.cloneElement=function(C,U,j){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var $=A({},C.props),I=C.key,ie=void 0;if(U!=null)for(ce in U.ref!==void 0&&(ie=void 0),U.key!==void 0&&(I=""+U.key),U)!T.call(U,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&U.ref===void 0||($[ce]=U[ce]);var ce=arguments.length-2;if(ce===1)$.children=j;else if(1<ce){for(var de=Array(ce),Te=0;Te<ce;Te++)de[Te]=arguments[Te+2];$.children=de}return F(C.type,I,void 0,void 0,ie,$)},De.createContext=function(C){return C={$$typeof:f,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:u,_context:C},C},De.createElement=function(C,U,j){var $,I={},ie=null;if(U!=null)for($ in U.key!==void 0&&(ie=""+U.key),U)T.call(U,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(I[$]=U[$]);var ce=arguments.length-2;if(ce===1)I.children=j;else if(1<ce){for(var de=Array(ce),Te=0;Te<ce;Te++)de[Te]=arguments[Te+2];I.children=de}if(C&&C.defaultProps)for($ in ce=C.defaultProps,ce)I[$]===void 0&&(I[$]=ce[$]);return F(C,ie,void 0,void 0,null,I)},De.createRef=function(){return{current:null}},De.forwardRef=function(C){return{$$typeof:h,render:C}},De.isValidElement=re,De.lazy=function(C){return{$$typeof:g,_payload:{_status:-1,_result:C},_init:z}},De.memo=function(C,U){return{$$typeof:m,type:C,compare:U===void 0?null:U}},De.startTransition=function(C){var U=V.T,j={};V.T=j;try{var $=C(),I=V.S;I!==null&&I(j,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(Z,D)}catch(ie){D(ie)}finally{V.T=U}},De.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},De.use=function(C){return V.H.use(C)},De.useActionState=function(C,U,j){return V.H.useActionState(C,U,j)},De.useCallback=function(C,U){return V.H.useCallback(C,U)},De.useContext=function(C){return V.H.useContext(C)},De.useDebugValue=function(){},De.useDeferredValue=function(C,U){return V.H.useDeferredValue(C,U)},De.useEffect=function(C,U,j){var $=V.H;if(typeof j=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return $.useEffect(C,U)},De.useId=function(){return V.H.useId()},De.useImperativeHandle=function(C,U,j){return V.H.useImperativeHandle(C,U,j)},De.useInsertionEffect=function(C,U){return V.H.useInsertionEffect(C,U)},De.useLayoutEffect=function(C,U){return V.H.useLayoutEffect(C,U)},De.useMemo=function(C,U){return V.H.useMemo(C,U)},De.useOptimistic=function(C,U){return V.H.useOptimistic(C,U)},De.useReducer=function(C,U,j){return V.H.useReducer(C,U,j)},De.useRef=function(C){return V.H.useRef(C)},De.useState=function(C){return V.H.useState(C)},De.useSyncExternalStore=function(C,U,j){return V.H.useSyncExternalStore(C,U,j)},De.useTransition=function(){return V.H.useTransition()},De.version="19.1.0",De}var dv;function kd(){return dv||(dv=1,Vf.exports=ZS()),Vf.exports}var v=kd();const Or=My(v),_y=NS({__proto__:null,default:Or},[v]),JS=(n,a,l,i)=>{const s=[l,{code:a,...i||{}}];if(n?.services?.logger?.forward)return n.services.logger.forward(s,"warn","react-i18next::",!0);Ar(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),n?.services?.logger?.warn?n.services.logger.warn(...s):console?.warn&&console.warn(...s)},hv={},gd=(n,a,l,i)=>{Ar(l)&&hv[l]||(Ar(l)&&(hv[l]=new Date),JS(n,a,l,i))},Ly=(n,a)=>()=>{if(n.isInitialized)a();else{const l=()=>{setTimeout(()=>{n.off("initialized",l)},0),a()};n.on("initialized",l)}},vd=(n,a,l)=>{n.loadNamespaces(a,Ly(n,l))},mv=(n,a,l,i)=>{if(Ar(l)&&(l=[l]),n.options.preload&&n.options.preload.indexOf(a)>-1)return vd(n,l,i);l.forEach(s=>{n.options.ns.indexOf(s)<0&&n.options.ns.push(s)}),n.loadLanguages(a,Ly(n,i))},WS=(n,a,l={})=>!a.languages||!a.languages.length?(gd(a,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:a.languages}),!0):a.hasLoadedNamespace(n,{lng:l.lng,precheck:(i,s)=>{if(l.bindI18n&&l.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!s(i.isLanguageChangingTo,n))return!1}}),Ar=n=>typeof n=="string",IS=n=>typeof n=="object"&&n!==null,ew=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,tw={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},nw=n=>tw[n],aw=n=>n.replace(ew,nw);let yd={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:aw};const rw=(n={})=>{yd={...yd,...n}},lw=()=>yd;let zy;const iw=n=>{zy=n},ow=()=>zy,sw={type:"3rdParty",init(n){rw(n.options.react),iw(n)}},uw=v.createContext();class cw{constructor(){this.usedNamespaces={}}addUsedNamespaces(a){a.forEach(l=>{this.usedNamespaces[l]||(this.usedNamespaces[l]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const fw=(n,a)=>{const l=v.useRef();return v.useEffect(()=>{l.current=n},[n,a]),l.current},ky=(n,a,l,i)=>n.getFixedT(a,l,i),dw=(n,a,l,i)=>v.useCallback(ky(n,a,l,i),[n,a,l,i]),Dr=(n,a={})=>{const{i18n:l}=a,{i18n:i,defaultNS:s}=v.useContext(uw)||{},u=l||i||ow();if(u&&!u.reportNamespaces&&(u.reportNamespaces=new cw),!u){gd(u,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const K=(T,F)=>Ar(F)?F:IS(F)&&Ar(F.defaultValue)?F.defaultValue:Array.isArray(T)?T[T.length-1]:T,V=[K,{},!1];return V.t=K,V.i18n={},V.ready=!1,V}u.options.react?.wait&&gd(u,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const f={...lw(),...u.options.react,...a},{useSuspense:h,keyPrefix:p}=f;let m=s||u.options?.defaultNS;m=Ar(m)?[m]:m||["translation"],u.reportNamespaces.addUsedNamespaces?.(m);const g=(u.isInitialized||u.initializedStoreOnce)&&m.every(K=>WS(K,u,f)),b=dw(u,a.lng||null,f.nsMode==="fallback"?m:m[0],p),S=()=>b,E=()=>ky(u,a.lng||null,f.nsMode==="fallback"?m:m[0],p),[A,O]=v.useState(S);let _=m.join();a.lng&&(_=`${a.lng}${_}`);const N=fw(_),P=v.useRef(!0);v.useEffect(()=>{const{bindI18n:K,bindI18nStore:V}=f;P.current=!0,!g&&!h&&(a.lng?mv(u,a.lng,m,()=>{P.current&&O(E)}):vd(u,m,()=>{P.current&&O(E)})),g&&N&&N!==_&&P.current&&O(E);const T=()=>{P.current&&O(E)};return K&&u?.on(K,T),V&&u?.store.on(V,T),()=>{P.current=!1,u&&K&&K?.split(" ").forEach(F=>u.off(F,T)),V&&u&&V.split(" ").forEach(F=>u.store.off(F,T))}},[u,_]),v.useEffect(()=>{P.current&&g&&O(S)},[u,p,g]);const H=[A,u,g];if(H.t=A,H.i18n=u,H.ready=g,g||!g&&!h)return H;throw new Promise(K=>{a.lng?mv(u,a.lng,m,()=>K()):vd(u,m,()=>K())})},{slice:hw,forEach:mw}=[];function pw(n){return mw.call(hw.call(arguments,1),a=>{if(a)for(const l in a)n[l]===void 0&&(n[l]=a[l])}),n}function gw(n){return typeof n!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(l=>l.test(n))}const pv=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,vw=function(n,a){const i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},s=encodeURIComponent(a);let u=`${n}=${s}`;if(i.maxAge>0){const f=i.maxAge-0;if(Number.isNaN(f))throw new Error("maxAge should be a Number");u+=`; Max-Age=${Math.floor(f)}`}if(i.domain){if(!pv.test(i.domain))throw new TypeError("option domain is invalid");u+=`; Domain=${i.domain}`}if(i.path){if(!pv.test(i.path))throw new TypeError("option path is invalid");u+=`; Path=${i.path}`}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");u+=`; Expires=${i.expires.toUTCString()}`}if(i.httpOnly&&(u+="; HttpOnly"),i.secure&&(u+="; Secure"),i.sameSite)switch(typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i.partitioned&&(u+="; Partitioned"),u},gv={create(n,a,l,i){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};l&&(s.expires=new Date,s.expires.setTime(s.expires.getTime()+l*60*1e3)),i&&(s.domain=i),document.cookie=vw(n,a,s)},read(n){const a=`${n}=`,l=document.cookie.split(";");for(let i=0;i<l.length;i++){let s=l[i];for(;s.charAt(0)===" ";)s=s.substring(1,s.length);if(s.indexOf(a)===0)return s.substring(a.length,s.length)}return null},remove(n,a){this.create(n,"",-1,a)}};var yw={name:"cookie",lookup(n){let{lookupCookie:a}=n;if(a&&typeof document<"u")return gv.read(a)||void 0},cacheUserLanguage(n,a){let{lookupCookie:l,cookieMinutes:i,cookieDomain:s,cookieOptions:u}=a;l&&typeof document<"u"&&gv.create(l,n,i,s,u)}},bw={name:"querystring",lookup(n){let{lookupQuerystring:a}=n,l;if(typeof window<"u"){let{search:i}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const u=i.substring(1).split("&");for(let f=0;f<u.length;f++){const h=u[f].indexOf("=");h>0&&u[f].substring(0,h)===a&&(l=u[f].substring(h+1))}}return l}},xw={name:"hash",lookup(n){let{lookupHash:a,lookupFromHashIndex:l}=n,i;if(typeof window<"u"){const{hash:s}=window.location;if(s&&s.length>2){const u=s.substring(1);if(a){const f=u.split("&");for(let h=0;h<f.length;h++){const p=f[h].indexOf("=");p>0&&f[h].substring(0,p)===a&&(i=f[h].substring(p+1))}}if(i)return i;if(!i&&l>-1){const f=s.match(/\/([a-zA-Z-]*)/g);return Array.isArray(f)?f[typeof l=="number"?l:0]?.replace("/",""):void 0}}}return i}};let yl=null;const vv=()=>{if(yl!==null)return yl;try{if(yl=typeof window<"u"&&window.localStorage!==null,!yl)return!1;const n="i18next.translate.boo";window.localStorage.setItem(n,"foo"),window.localStorage.removeItem(n)}catch{yl=!1}return yl};var Sw={name:"localStorage",lookup(n){let{lookupLocalStorage:a}=n;if(a&&vv())return window.localStorage.getItem(a)||void 0},cacheUserLanguage(n,a){let{lookupLocalStorage:l}=a;l&&vv()&&window.localStorage.setItem(l,n)}};let bl=null;const yv=()=>{if(bl!==null)return bl;try{if(bl=typeof window<"u"&&window.sessionStorage!==null,!bl)return!1;const n="i18next.translate.boo";window.sessionStorage.setItem(n,"foo"),window.sessionStorage.removeItem(n)}catch{bl=!1}return bl};var ww={name:"sessionStorage",lookup(n){let{lookupSessionStorage:a}=n;if(a&&yv())return window.sessionStorage.getItem(a)||void 0},cacheUserLanguage(n,a){let{lookupSessionStorage:l}=a;l&&yv()&&window.sessionStorage.setItem(l,n)}},Ew={name:"navigator",lookup(n){const a=[];if(typeof navigator<"u"){const{languages:l,userLanguage:i,language:s}=navigator;if(l)for(let u=0;u<l.length;u++)a.push(l[u]);i&&a.push(i),s&&a.push(s)}return a.length>0?a:void 0}},Rw={name:"htmlTag",lookup(n){let{htmlTag:a}=n,l;const i=a||(typeof document<"u"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(l=i.getAttribute("lang")),l}},Cw={name:"path",lookup(n){let{lookupFromPathIndex:a}=n;if(typeof window>"u")return;const l=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(l)?l[typeof a=="number"?a:0]?.replace("/",""):void 0}},Ow={name:"subdomain",lookup(n){let{lookupFromSubdomainIndex:a}=n;const l=typeof a=="number"?a+1:1,i=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[l]}};let Uy=!1;try{document.cookie,Uy=!0}catch{}const Py=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Uy||Py.splice(1,1);const Aw=()=>({order:Py,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:n=>n});class Hy{constructor(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(a,l)}init(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=a,this.options=pw(l,this.options||{},Aw()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=s=>s.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(yw),this.addDetector(bw),this.addDetector(Sw),this.addDetector(ww),this.addDetector(Ew),this.addDetector(Rw),this.addDetector(Cw),this.addDetector(Ow),this.addDetector(xw)}addDetector(a){return this.detectors[a.name]=a,this}detect(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,l=[];return a.forEach(i=>{if(this.detectors[i]){let s=this.detectors[i].lookup(this.options);s&&typeof s=="string"&&(s=[s]),s&&(l=l.concat(s))}}),l=l.filter(i=>i!=null&&!gw(i)).map(i=>this.options.convertDetectedLanguage(i)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?l:l.length>0?l[0]:null}cacheUserLanguage(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;l&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(a)>-1||l.forEach(i=>{this.detectors[i]&&this.detectors[i].cacheUserLanguage(a,this.options)}))}}Hy.type="languageDetector";const Nw={title:"Claude Code Router",save:"Save",save_and_restart:"Save and Restart",cancel:"Cancel",edit:"Edit",remove:"Remove",delete:"Delete",settings:"Settings",selectFile:"Select File",config_saved_success:"Config saved successfully",config_saved_failed:"Failed to save config",config_saved_restart_success:"Config saved and service restarted successfully",config_saved_restart_failed:"Failed to save config and restart service"},Tw={title:"Sign in to your account",description:"Enter your API key to access the configuration panel",apiKey:"API Key",apiKeyPlaceholder:"Enter your API key",signIn:"Sign In",invalidApiKey:"Invalid API key",configError:"Configuration not loaded",validating:"Validating API key..."},Mw={title:"General Settings",log:"Enable Logging",claude_path:"Claude Path",host:"Host",port:"Port",apikey:"API Key"},jw={title:"Custom Transformers",path:"Path",project:"Project",remove:"Remove",add:"Add Custom Transformer",edit:"Edit Custom Transformer",delete:"Delete Custom Transformer",delete_transformer_confirm:"Are you sure you want to delete this custom transformer?",parameters:"Parameters"},Dw={title:"Providers",name:"Name",api_base_url:"API Base URL",api_key:"API Key",models:"Models",models_placeholder:"Enter model name and press Enter to add",add_model:"Add Model",select_models:"Select Models",remove:"Remove",add:"Add Provider",edit:"Edit Provider",delete:"Delete",cancel:"Cancel",delete_provider_confirm:"Are you sure you want to delete this provider?",test_connectivity:"Test Connectivity",testing:"Testing...",connection_successful:"Connection successful!",connection_failed:"Connection failed!",missing_credentials:"Missing API base URL or API key",fetch_available_models:"Fetch available models",fetching_models:"Fetching models...",fetch_models_failed:"Failed to fetch models",transformers:"Transformers",select_transformer:"Select Transformer",no_transformers:"No transformers available",provider_transformer:"Provider Transformer",model_transformers:"Model Transformers",transformer_parameters:"Transformer Parameters",add_parameter:"Add Parameter",parameter_name:"Parameter Name",parameter_value:"Parameter Value",selected_transformers:"Selected Transformers"},_w={title:"Router",default:"Default",background:"Background",think:"Think",longContext:"Long Context",webSearch:"Web Search",selectModel:"Select a model...",searchModel:"Search model...",noModelFound:"No model found."},Lw={title:"JSON Editor",save:"Save",saving:"Saving...",cancel:"Cancel",save_failed:"Failed to save config",save_and_restart:"Save & Restart"},zw={app:Nw,login:Tw,toplevel:Mw,transformers:jw,providers:Dw,router:_w,json_editor:Lw},kw={title:"Claude Code Router",save:"保存",save_and_restart:"保存并重启",cancel:"取消",edit:"编辑",remove:"移除",delete:"删除",settings:"设置",selectFile:"选择文件",config_saved_success:"配置保存成功",config_saved_failed:"配置保存失败",config_saved_restart_success:"配置保存并服务重启成功",config_saved_restart_failed:"配置保存并服务重启失败"},Uw={title:"登录到您的账户",description:"请输入您的API密钥以访问配置面板",apiKey:"API密钥",apiKeyPlaceholder:"请输入您的API密钥",signIn:"登录",invalidApiKey:"API密钥无效",configError:"配置未加载",validating:"正在验证API密钥..."},Pw={title:"通用设置",log:"启用日志",claude_path:"Claude 路径",host:"主机",port:"端口",apikey:"API 密钥"},Hw={title:"自定义转换器",path:"路径",project:"项目",remove:"移除",add:"添加自定义转换器",edit:"编辑自定义转换器",delete:"删除自定义转换器",delete_transformer_confirm:"您确定要删除此自定义转换器吗?",parameters:"参数"},Bw={title:"供应商",name:"名称",api_base_url:"API 基础地址",api_key:"API 密钥",models:"模型",models_placeholder:"输入模型名称并按回车键添加",add_model:"添加模型",select_models:"选择模型",remove:"移除",add:"添加供应商",edit:"编辑供应商",delete:"删除",cancel:"取消",delete_provider_confirm:"您确定要删除此供应商吗?",test_connectivity:"测试连通性",testing:"测试中...",connection_successful:"连接成功!",connection_failed:"连接失败!",missing_credentials:"缺少 API 基础地址或 API 密钥",fetch_available_models:"获取可用模型",fetching_models:"获取模型中...",fetch_models_failed:"获取模型失败",transformers:"转换器",select_transformer:"选择转换器",no_transformers:"无可用转换器",provider_transformer:"供应商转换器",model_transformers:"模型转换器",transformer_parameters:"转换器参数",add_parameter:"添加参数",parameter_name:"参数名称",parameter_value:"参数值",selected_transformers:"已选转换器"},$w={title:"路由",default:"默认",background:"后台",think:"思考",longContext:"长上下文",webSearch:"网络搜索",selectModel:"选择一个模型...",searchModel:"搜索模型...",noModelFound:"未找到模型."},Vw={title:"JSON 编辑器",save:"保存",saving:"保存中...",cancel:"取消",save_failed:"配置保存失败",save_and_restart:"保存并重启"},qw={app:kw,login:Uw,toplevel:Pw,transformers:Hw,providers:Bw,router:$w,json_editor:Vw},Yw={en:{translation:zw},zh:{translation:qw}};_t.use(Hy).use(sw).init({resources:Yw,fallbackLng:"en",interpolation:{escapeValue:!1}});var qf={exports:{}},Fi={},Yf={exports:{}},Gf={};/**
|
|
25
|
+
* @license React
|
|
26
|
+
* scheduler.production.js
|
|
27
|
+
*
|
|
28
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
29
|
+
*
|
|
30
|
+
* This source code is licensed under the MIT license found in the
|
|
31
|
+
* LICENSE file in the root directory of this source tree.
|
|
32
|
+
*/var bv;function Gw(){return bv||(bv=1,function(n){function a(R,z){var D=R.length;R.push(z);e:for(;0<D;){var Z=D-1>>>1,C=R[Z];if(0<s(C,z))R[Z]=z,R[D]=C,D=Z;else break e}}function l(R){return R.length===0?null:R[0]}function i(R){if(R.length===0)return null;var z=R[0],D=R.pop();if(D!==z){R[0]=D;e:for(var Z=0,C=R.length,U=C>>>1;Z<U;){var j=2*(Z+1)-1,$=R[j],I=j+1,ie=R[I];if(0>s($,D))I<C&&0>s(ie,$)?(R[Z]=ie,R[I]=D,Z=I):(R[Z]=$,R[j]=D,Z=j);else if(I<C&&0>s(ie,D))R[Z]=ie,R[I]=D,Z=I;else break e}}return z}function s(R,z){var D=R.sortIndex-z.sortIndex;return D!==0?D:R.id-z.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var f=Date,h=f.now();n.unstable_now=function(){return f.now()-h}}var p=[],m=[],g=1,b=null,S=3,E=!1,A=!1,O=!1,_=!1,N=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function K(R){for(var z=l(m);z!==null;){if(z.callback===null)i(m);else if(z.startTime<=R)i(m),z.sortIndex=z.expirationTime,a(p,z);else break;z=l(m)}}function V(R){if(O=!1,K(R),!A)if(l(p)!==null)A=!0,T||(T=!0,xe());else{var z=l(m);z!==null&&le(V,z.startTime-R)}}var T=!1,F=-1,W=5,re=-1;function oe(){return _?!0:!(n.unstable_now()-re<W)}function Re(){if(_=!1,T){var R=n.unstable_now();re=R;var z=!0;try{e:{A=!1,O&&(O=!1,P(F),F=-1),E=!0;var D=S;try{t:{for(K(R),b=l(p);b!==null&&!(b.expirationTime>R&&oe());){var Z=b.callback;if(typeof Z=="function"){b.callback=null,S=b.priorityLevel;var C=Z(b.expirationTime<=R);if(R=n.unstable_now(),typeof C=="function"){b.callback=C,K(R),z=!0;break t}b===l(p)&&i(p),K(R)}else i(p);b=l(p)}if(b!==null)z=!0;else{var U=l(m);U!==null&&le(V,U.startTime-R),z=!1}}break e}finally{b=null,S=D,E=!1}z=void 0}}finally{z?xe():T=!1}}}var xe;if(typeof H=="function")xe=function(){H(Re)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,ue=fe.port2;fe.port1.onmessage=Re,xe=function(){ue.postMessage(null)}}else xe=function(){N(Re,0)};function le(R,z){F=N(function(){R(n.unstable_now())},z)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(R){R.callback=null},n.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<R?Math.floor(1e3/R):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(R){switch(S){case 1:case 2:case 3:var z=3;break;default:z=S}var D=S;S=z;try{return R()}finally{S=D}},n.unstable_requestPaint=function(){_=!0},n.unstable_runWithPriority=function(R,z){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var D=S;S=R;try{return z()}finally{S=D}},n.unstable_scheduleCallback=function(R,z,D){var Z=n.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?Z+D:Z):D=Z,R){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=D+C,R={id:g++,callback:z,priorityLevel:R,startTime:D,expirationTime:C,sortIndex:-1},D>Z?(R.sortIndex=D,a(m,R),l(p)===null&&R===l(m)&&(O?(P(F),F=-1):O=!0,le(V,D-Z))):(R.sortIndex=C,a(p,R),A||E||(A=!0,T||(T=!0,xe()))),R},n.unstable_shouldYield=oe,n.unstable_wrapCallback=function(R){var z=S;return function(){var D=S;S=z;try{return R.apply(this,arguments)}finally{S=D}}}}(Gf)),Gf}var xv;function Kw(){return xv||(xv=1,Yf.exports=Gw()),Yf.exports}var Kf={exports:{}},Dt={};/**
|
|
33
|
+
* @license React
|
|
34
|
+
* react-dom.production.js
|
|
35
|
+
*
|
|
36
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the MIT license found in the
|
|
39
|
+
* LICENSE file in the root directory of this source tree.
|
|
40
|
+
*/var Sv;function Fw(){if(Sv)return Dt;Sv=1;var n=kd();function a(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var i={d:{f:l,r:function(){throw Error(a(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(p,m,g){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:p,containerInfo:m,implementation:g}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Dt.createPortal=function(p,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return u(p,m,null,g)},Dt.flushSync=function(p){var m=f.T,g=i.p;try{if(f.T=null,i.p=2,p)return p()}finally{f.T=m,i.p=g,i.d.f()}},Dt.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,i.d.C(p,m))},Dt.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},Dt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var g=m.as,b=h(g,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,E=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?i.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:E}):g==="script"&&i.d.X(p,{crossOrigin:b,integrity:S,fetchPriority:E,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Dt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=h(m.as,m.crossOrigin);i.d.M(p,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&i.d.M(p)},Dt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,b=h(g,m.crossOrigin);i.d.L(p,g,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Dt.preloadModule=function(p,m){if(typeof p=="string")if(m){var g=h(m.as,m.crossOrigin);i.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else i.d.m(p)},Dt.requestFormReset=function(p){i.d.r(p)},Dt.unstable_batchedUpdates=function(p,m){return p(m)},Dt.useFormState=function(p,m,g){return f.H.useFormState(p,m,g)},Dt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Dt.version="19.1.0",Dt}var wv;function By(){if(wv)return Kf.exports;wv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Kf.exports=Fw(),Kf.exports}/**
|
|
41
|
+
* @license React
|
|
42
|
+
* react-dom-client.production.js
|
|
43
|
+
*
|
|
44
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the MIT license found in the
|
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
|
48
|
+
*/var Ev;function Xw(){if(Ev)return Fi;Ev=1;var n=Kw(),a=kd(),l=By();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(u(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=u(e),t===null)throw Error(i(188));return t!==e?null:e}for(var r=e,o=t;;){var c=r.return;if(c===null)break;var d=c.alternate;if(d===null){if(o=c.return,o!==null){r=o;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===r)return h(c),e;if(d===o)return h(c),t;d=d.sibling}throw Error(i(188))}if(r.return!==o.return)r=c,o=d;else{for(var y=!1,w=c.child;w;){if(w===r){y=!0,r=c,o=d;break}if(w===o){y=!0,o=c,r=d;break}w=w.sibling}if(!y){for(w=d.child;w;){if(w===r){y=!0,r=d,o=c;break}if(w===o){y=!0,o=d,r=c;break}w=w.sibling}if(!y)throw Error(i(189))}}if(r.alternate!==o)throw Error(i(190))}if(r.tag!==3)throw Error(i(188));return r.stateNode.current===r?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),P=Symbol.for("react.consumer"),H=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),re=Symbol.for("react.activity"),oe=Symbol.for("react.memo_cache_sentinel"),Re=Symbol.iterator;function xe(e){return e===null||typeof e!="object"?null:(e=Re&&e[Re]||e["@@iterator"],typeof e=="function"?e:null)}var fe=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===fe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case _:return"Profiler";case O:return"StrictMode";case V:return"Suspense";case T:return"SuspenseList";case re:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case H:return(e.displayName||"Context")+".Provider";case P:return(e._context.displayName||"Context")+".Consumer";case K:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:ue(e.type)||"Memo";case W:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}var le=Array.isArray,R=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},Z=[],C=-1;function U(e){return{current:e}}function j(e){0>C||(e.current=Z[C],Z[C]=null,C--)}function $(e,t){C++,Z[C]=e.current,e.current=t}var I=U(null),ie=U(null),ce=U(null),de=U(null);function Te(e,t){switch($(ce,t),$(ie,e),$(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Eg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Eg(t),e=Rg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}j(I),$(I,e)}function qe(){j(I),j(ie),j(ce)}function Ye(e){e.memoizedState!==null&&$(de,e);var t=I.current,r=Rg(t,e.type);t!==r&&($(ie,e),$(I,r))}function Ot(e){ie.current===e&&(j(I),j(ie)),de.current===e&&(j(de),Bi._currentValue=D)}var Yt=Object.prototype.hasOwnProperty,Tn=n.unstable_scheduleCallback,xn=n.unstable_cancelCallback,Du=n.unstable_shouldYield,_u=n.unstable_requestPaint,Gt=n.unstable_now,Lu=n.unstable_getCurrentPriorityLevel,xo=n.unstable_ImmediatePriority,So=n.unstable_UserBlockingPriority,Lr=n.unstable_NormalPriority,Fn=n.unstable_LowPriority,ga=n.unstable_IdlePriority,wo=n.log,Zl=n.unstable_setDisableYieldValue,Ut=null,lt=null;function Sn(e){if(typeof wo=="function"&&Zl(e),lt&&typeof lt.setStrictMode=="function")try{lt.setStrictMode(Ut,e)}catch{}}var At=Math.clz32?Math.clz32:Eo,zu=Math.log,Mn=Math.LN2;function Eo(e){return e>>>=0,e===0?32:31-(zu(e)/Mn|0)|0}var Ia=256,er=4194304;function Xn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function tr(e,t,r){var o=e.pendingLanes;if(o===0)return 0;var c=0,d=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var w=o&134217727;return w!==0?(o=w&~d,o!==0?c=Xn(o):(y&=w,y!==0?c=Xn(y):r||(r=w&~e,r!==0&&(c=Xn(r))))):(w=o&~d,w!==0?c=Xn(w):y!==0?c=Xn(y):r||(r=o&~e,r!==0&&(c=Xn(r)))),c===0?0:t!==0&&t!==c&&(t&d)===0&&(d=c&-c,r=t&-t,d>=r||d===32&&(r&4194048)!==0)?t:c}function jn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ro(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zr(){var e=Ia;return Ia<<=1,(Ia&4194048)===0&&(Ia=256),e}function Co(){var e=er;return er<<=1,(er&62914560)===0&&(er=4194304),e}function kr(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function nr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Oo(e,t,r,o,c,d){var y=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var w=e.entanglements,M=e.expirationTimes,G=e.hiddenUpdates;for(r=y&~r;0<r;){var ee=31-At(r),ne=1<<ee;w[ee]=0,M[ee]=-1;var X=G[ee];if(X!==null)for(G[ee]=null,ee=0;ee<X.length;ee++){var Q=X[ee];Q!==null&&(Q.lane&=-536870913)}r&=~ne}o!==0&&ar(e,o,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(y&~t))}function ar(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-At(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|r&4194090}function rr(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-At(r),c=1<<o;c&t|e[o]&t&&(e[o]|=t),r&=~c}}function Jl(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Wl(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function L(){var e=z.p;return e!==0?e:(e=window.event,e===void 0?32:qg(e.type))}function q(e,t){var r=z.p;try{return z.p=e,t()}finally{z.p=r}}var J=Math.random().toString(36).slice(2),ae="__reactFiber$"+J,se="__reactProps$"+J,ge="__reactContainer$"+J,be="__reactEvents$"+J,ve="__reactListeners$"+J,Ee="__reactHandles$"+J,Ce="__reactResources$"+J,ye="__reactMarker$"+J;function Se(e){delete e[ae],delete e[se],delete e[be],delete e[ve],delete e[Ee]}function _e(e){var t=e[ae];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ge]||r[ae]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Ng(e);e!==null;){if(r=e[ae])return r;e=Ng(e)}return t}e=r,r=e.parentNode}return null}function Fe(e){if(e=e[ae]||e[ge]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function st(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function ut(e){var t=e[Ce];return t||(t=e[Ce]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function je(e){e[ye]=!0}var Ze=new Set,Dn={};function Kt(e,t){Lt(e,t),Lt(e+"Capture",t)}function Lt(e,t){for(Dn[e]=t,e=0;e<t.length;e++)Ze.add(t[e])}var on=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ur={},va={};function Qn(e){return Yt.call(va,e)?!0:Yt.call(Ur,e)?!1:on.test(e)?va[e]=!0:(Ur[e]=!0,!1)}function Zn(e,t,r){if(Qn(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function Jn(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function ke(e,t,r,o){if(o===null)e.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+o)}}var gt,lr;function sn(e){if(gt===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);gt=t&&t[1]||"",lr=-1<r.stack.indexOf(`
|
|
49
|
+
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
50
|
+
`+gt+e+lr}var it=!1;function ya(e,t){if(!e||it)return"";it=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(Q){var X=Q}Reflect.construct(e,[],ne)}else{try{ne.call()}catch(Q){X=Q}e.call(ne.prototype)}}else{try{throw Error()}catch(Q){X=Q}(ne=e())&&typeof ne.catch=="function"&&ne.catch(function(){})}}catch(Q){if(Q&&X&&typeof Q.stack=="string")return[Q.stack,X.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=o.DetermineComponentFrameRoot(),y=d[0],w=d[1];if(y&&w){var M=y.split(`
|
|
51
|
+
`),G=w.split(`
|
|
52
|
+
`);for(c=o=0;o<M.length&&!M[o].includes("DetermineComponentFrameRoot");)o++;for(;c<G.length&&!G[c].includes("DetermineComponentFrameRoot");)c++;if(o===M.length||c===G.length)for(o=M.length-1,c=G.length-1;1<=o&&0<=c&&M[o]!==G[c];)c--;for(;1<=o&&0<=c;o--,c--)if(M[o]!==G[c]){if(o!==1||c!==1)do if(o--,c--,0>c||M[o]!==G[c]){var ee=`
|
|
53
|
+
`+M[o].replace(" at new "," at ");return e.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",e.displayName)),ee}while(1<=o&&0<=c);break}}}finally{it=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?sn(r):""}function Ao(e){switch(e.tag){case 26:case 27:case 5:return sn(e.type);case 16:return sn("Lazy");case 13:return sn("Suspense");case 19:return sn("SuspenseList");case 0:case 15:return ya(e.type,!1);case 11:return ya(e.type.render,!1);case 1:return ya(e.type,!0);case 31:return sn("Activity");default:return""}}function No(e){try{var t="";do t+=Ao(e),e=e.return;while(e);return t}catch(r){return`
|
|
54
|
+
Error generating stack: `+r.message+`
|
|
55
|
+
`+r.stack}}function un(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ex(e){var t=yh(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var c=r.get,d=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(y){o=""+y,d.call(this,y)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(y){o=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function To(e){e._valueTracker||(e._valueTracker=Ex(e))}function bh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=yh(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function Mo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Rx=/[\n"\\]/g;function cn(e){return e.replace(Rx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ku(e,t,r,o,c,d,y,w){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+un(t)):e.value!==""+un(t)&&(e.value=""+un(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?Uu(e,y,un(t)):r!=null?Uu(e,y,un(r)):o!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+un(w):e.removeAttribute("name")}function xh(e,t,r,o,c,d,y,w){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||r!=null){if(!(d!=="submit"&&d!=="reset"||t!=null))return;r=r!=null?""+un(r):"",t=t!=null?""+un(t):r,w||t===e.value||(e.value=t),e.defaultValue=t}o=o??c,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=w?e.checked:!!o,e.defaultChecked=!!o,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y)}function Uu(e,t,r){t==="number"&&Mo(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Pr(e,t,r,o){if(e=e.options,t){t={};for(var c=0;c<r.length;c++)t["$"+r[c]]=!0;for(r=0;r<e.length;r++)c=t.hasOwnProperty("$"+e[r].value),e[r].selected!==c&&(e[r].selected=c),c&&o&&(e[r].defaultSelected=!0)}else{for(r=""+un(r),t=null,c=0;c<e.length;c++){if(e[c].value===r){e[c].selected=!0,o&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Sh(e,t,r){if(t!=null&&(t=""+un(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+un(r):""}function wh(e,t,r,o){if(t==null){if(o!=null){if(r!=null)throw Error(i(92));if(le(o)){if(1<o.length)throw Error(i(93));o=o[0]}r=o}r==null&&(r=""),t=r}r=un(t),e.defaultValue=r,o=e.textContent,o===r&&o!==""&&o!==null&&(e.value=o)}function Hr(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Cx=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Eh(e,t,r){var o=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,r):typeof r!="number"||r===0||Cx.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function Rh(e,t,r){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,r!=null){for(var o in r)!r.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var c in t)o=t[c],t.hasOwnProperty(c)&&r[c]!==o&&Eh(e,c,o)}else for(var d in t)t.hasOwnProperty(d)&&Eh(e,d,t[d])}function Pu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ox=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ax=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function jo(e){return Ax.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Hu=null;function Bu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Br=null,$r=null;function Ch(e){var t=Fe(e);if(t&&(e=t.stateNode)){var r=e[se]||null;e:switch(e=t.stateNode,t.type){case"input":if(ku(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+cn(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var c=o[se]||null;if(!c)throw Error(i(90));ku(o,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<r.length;t++)o=r[t],o.form===e.form&&bh(o)}break e;case"textarea":Sh(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&Pr(e,!!r.multiple,t,!1)}}}var $u=!1;function Oh(e,t,r){if($u)return e(t,r);$u=!0;try{var o=e(t);return o}finally{if($u=!1,(Br!==null||$r!==null)&&(gs(),Br&&(t=Br,e=$r,$r=Br=null,Ch(t),e)))for(t=0;t<e.length;t++)Ch(e[t])}}function Il(e,t){var r=e.stateNode;if(r===null)return null;var o=r[se]||null;if(o===null)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(i(231,t,typeof r));return r}var Wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vu=!1;if(Wn)try{var ei={};Object.defineProperty(ei,"passive",{get:function(){Vu=!0}}),window.addEventListener("test",ei,ei),window.removeEventListener("test",ei,ei)}catch{Vu=!1}var ba=null,qu=null,Do=null;function Ah(){if(Do)return Do;var e,t=qu,r=t.length,o,c="value"in ba?ba.value:ba.textContent,d=c.length;for(e=0;e<r&&t[e]===c[e];e++);var y=r-e;for(o=1;o<=y&&t[r-o]===c[d-o];o++);return Do=c.slice(e,1<o?1-o:void 0)}function _o(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Lo(){return!0}function Nh(){return!1}function Pt(e){function t(r,o,c,d,y){this._reactName=r,this._targetInst=c,this.type=o,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(r=e[w],this[w]=r?r(d):d[w]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Lo:Nh,this.isPropagationStopped=Nh,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Lo)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Lo)},persist:function(){},isPersistent:Lo}),t}var ir={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zo=Pt(ir),ti=g({},ir,{view:0,detail:0}),Nx=Pt(ti),Yu,Gu,ni,ko=g({},ti,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ni&&(ni&&e.type==="mousemove"?(Yu=e.screenX-ni.screenX,Gu=e.screenY-ni.screenY):Gu=Yu=0,ni=e),Yu)},movementY:function(e){return"movementY"in e?e.movementY:Gu}}),Th=Pt(ko),Tx=g({},ko,{dataTransfer:0}),Mx=Pt(Tx),jx=g({},ti,{relatedTarget:0}),Ku=Pt(jx),Dx=g({},ir,{animationName:0,elapsedTime:0,pseudoElement:0}),_x=Pt(Dx),Lx=g({},ir,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zx=Pt(Lx),kx=g({},ir,{data:0}),Mh=Pt(kx),Ux={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Px={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Hx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Hx[e])?!!t[e]:!1}function Fu(){return Bx}var $x=g({},ti,{key:function(e){if(e.key){var t=Ux[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_o(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Px[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fu,charCode:function(e){return e.type==="keypress"?_o(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_o(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Vx=Pt($x),qx=g({},ko,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jh=Pt(qx),Yx=g({},ti,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fu}),Gx=Pt(Yx),Kx=g({},ir,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fx=Pt(Kx),Xx=g({},ko,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Qx=Pt(Xx),Zx=g({},ir,{newState:0,oldState:0}),Jx=Pt(Zx),Wx=[9,13,27,32],Xu=Wn&&"CompositionEvent"in window,ai=null;Wn&&"documentMode"in document&&(ai=document.documentMode);var Ix=Wn&&"TextEvent"in window&&!ai,Dh=Wn&&(!Xu||ai&&8<ai&&11>=ai),_h=" ",Lh=!1;function zh(e,t){switch(e){case"keyup":return Wx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vr=!1;function e1(e,t){switch(e){case"compositionend":return kh(t);case"keypress":return t.which!==32?null:(Lh=!0,_h);case"textInput":return e=t.data,e===_h&&Lh?null:e;default:return null}}function t1(e,t){if(Vr)return e==="compositionend"||!Xu&&zh(e,t)?(e=Ah(),Do=qu=ba=null,Vr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dh&&t.locale!=="ko"?null:t.data;default:return null}}var n1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Uh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!n1[e.type]:t==="textarea"}function Ph(e,t,r,o){Br?$r?$r.push(o):$r=[o]:Br=o,t=ws(t,"onChange"),0<t.length&&(r=new zo("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var ri=null,li=null;function a1(e){yg(e,0)}function Uo(e){var t=st(e);if(bh(t))return e}function Hh(e,t){if(e==="change")return t}var Bh=!1;if(Wn){var Qu;if(Wn){var Zu="oninput"in document;if(!Zu){var $h=document.createElement("div");$h.setAttribute("oninput","return;"),Zu=typeof $h.oninput=="function"}Qu=Zu}else Qu=!1;Bh=Qu&&(!document.documentMode||9<document.documentMode)}function Vh(){ri&&(ri.detachEvent("onpropertychange",qh),li=ri=null)}function qh(e){if(e.propertyName==="value"&&Uo(li)){var t=[];Ph(t,li,e,Bu(e)),Oh(a1,t)}}function r1(e,t,r){e==="focusin"?(Vh(),ri=t,li=r,ri.attachEvent("onpropertychange",qh)):e==="focusout"&&Vh()}function l1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Uo(li)}function i1(e,t){if(e==="click")return Uo(t)}function o1(e,t){if(e==="input"||e==="change")return Uo(t)}function s1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ft=typeof Object.is=="function"?Object.is:s1;function ii(e,t){if(Ft(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var c=r[o];if(!Yt.call(t,c)||!Ft(e[c],t[c]))return!1}return!0}function Yh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gh(e,t){var r=Yh(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Yh(r)}}function Kh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Mo(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Mo(e.document)}return t}function Ju(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var u1=Wn&&"documentMode"in document&&11>=document.documentMode,qr=null,Wu=null,oi=null,Iu=!1;function Xh(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Iu||qr==null||qr!==Mo(o)||(o=qr,"selectionStart"in o&&Ju(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),oi&&ii(oi,o)||(oi=o,o=ws(Wu,"onSelect"),0<o.length&&(t=new zo("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=qr)))}function or(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Yr={animationend:or("Animation","AnimationEnd"),animationiteration:or("Animation","AnimationIteration"),animationstart:or("Animation","AnimationStart"),transitionrun:or("Transition","TransitionRun"),transitionstart:or("Transition","TransitionStart"),transitioncancel:or("Transition","TransitionCancel"),transitionend:or("Transition","TransitionEnd")},ec={},Qh={};Wn&&(Qh=document.createElement("div").style,"AnimationEvent"in window||(delete Yr.animationend.animation,delete Yr.animationiteration.animation,delete Yr.animationstart.animation),"TransitionEvent"in window||delete Yr.transitionend.transition);function sr(e){if(ec[e])return ec[e];if(!Yr[e])return e;var t=Yr[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Qh)return ec[e]=t[r];return e}var Zh=sr("animationend"),Jh=sr("animationiteration"),Wh=sr("animationstart"),c1=sr("transitionrun"),f1=sr("transitionstart"),d1=sr("transitioncancel"),Ih=sr("transitionend"),em=new Map,tc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");tc.push("scrollEnd");function wn(e,t){em.set(e,t),Kt(t,[e])}var tm=new WeakMap;function fn(e,t){if(typeof e=="object"&&e!==null){var r=tm.get(e);return r!==void 0?r:(t={value:e,source:t,stack:No(t)},tm.set(e,t),t)}return{value:e,source:t,stack:No(t)}}var dn=[],Gr=0,nc=0;function Po(){for(var e=Gr,t=nc=Gr=0;t<e;){var r=dn[t];dn[t++]=null;var o=dn[t];dn[t++]=null;var c=dn[t];dn[t++]=null;var d=dn[t];if(dn[t++]=null,o!==null&&c!==null){var y=o.pending;y===null?c.next=c:(c.next=y.next,y.next=c),o.pending=c}d!==0&&nm(r,c,d)}}function Ho(e,t,r,o){dn[Gr++]=e,dn[Gr++]=t,dn[Gr++]=r,dn[Gr++]=o,nc|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function ac(e,t,r,o){return Ho(e,t,r,o),Bo(e)}function Kr(e,t){return Ho(e,null,null,t),Bo(e)}function nm(e,t,r){e.lanes|=r;var o=e.alternate;o!==null&&(o.lanes|=r);for(var c=!1,d=e.return;d!==null;)d.childLanes|=r,o=d.alternate,o!==null&&(o.childLanes|=r),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(c=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,c&&t!==null&&(c=31-At(r),e=d.hiddenUpdates,o=e[c],o===null?e[c]=[t]:o.push(t),t.lane=r|536870912),d):null}function Bo(e){if(50<Di)throw Di=0,cf=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Fr={};function h1(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xt(e,t,r,o){return new h1(e,t,r,o)}function rc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function In(e,t){var r=e.alternate;return r===null?(r=Xt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function am(e,t){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function $o(e,t,r,o,c,d){var y=0;if(o=e,typeof e=="function")rc(e)&&(y=1);else if(typeof e=="string")y=pS(e,r,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case re:return e=Xt(31,r,t,c),e.elementType=re,e.lanes=d,e;case A:return ur(r.children,c,d,t);case O:y=8,c|=24;break;case _:return e=Xt(12,r,t,c|2),e.elementType=_,e.lanes=d,e;case V:return e=Xt(13,r,t,c),e.elementType=V,e.lanes=d,e;case T:return e=Xt(19,r,t,c),e.elementType=T,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N:case H:y=10;break e;case P:y=9;break e;case K:y=11;break e;case F:y=14;break e;case W:y=16,o=null;break e}y=29,r=Error(i(130,e===null?"null":typeof e,"")),o=null}return t=Xt(y,r,t,c),t.elementType=e,t.type=o,t.lanes=d,t}function ur(e,t,r,o){return e=Xt(7,e,o,t),e.lanes=r,e}function lc(e,t,r){return e=Xt(6,e,null,t),e.lanes=r,e}function ic(e,t,r){return t=Xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Xr=[],Qr=0,Vo=null,qo=0,hn=[],mn=0,cr=null,ea=1,ta="";function fr(e,t){Xr[Qr++]=qo,Xr[Qr++]=Vo,Vo=e,qo=t}function rm(e,t,r){hn[mn++]=ea,hn[mn++]=ta,hn[mn++]=cr,cr=e;var o=ea;e=ta;var c=32-At(o)-1;o&=~(1<<c),r+=1;var d=32-At(t)+c;if(30<d){var y=c-c%5;d=(o&(1<<y)-1).toString(32),o>>=y,c-=y,ea=1<<32-At(t)+c|r<<c|o,ta=d+e}else ea=1<<d|r<<c|o,ta=e}function oc(e){e.return!==null&&(fr(e,1),rm(e,1,0))}function sc(e){for(;e===Vo;)Vo=Xr[--Qr],Xr[Qr]=null,qo=Xr[--Qr],Xr[Qr]=null;for(;e===cr;)cr=hn[--mn],hn[mn]=null,ta=hn[--mn],hn[mn]=null,ea=hn[--mn],hn[mn]=null}var zt=null,ct=null,Ke=!1,dr=null,_n=!1,uc=Error(i(519));function hr(e){var t=Error(i(418,""));throw ci(fn(t,e)),uc}function lm(e){var t=e.stateNode,r=e.type,o=e.memoizedProps;switch(t[ae]=e,t[se]=o,r){case"dialog":Be("cancel",t),Be("close",t);break;case"iframe":case"object":case"embed":Be("load",t);break;case"video":case"audio":for(r=0;r<Li.length;r++)Be(Li[r],t);break;case"source":Be("error",t);break;case"img":case"image":case"link":Be("error",t),Be("load",t);break;case"details":Be("toggle",t);break;case"input":Be("invalid",t),xh(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),To(t);break;case"select":Be("invalid",t);break;case"textarea":Be("invalid",t),wh(t,o.value,o.defaultValue,o.children),To(t)}r=o.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||o.suppressHydrationWarning===!0||wg(t.textContent,r)?(o.popover!=null&&(Be("beforetoggle",t),Be("toggle",t)),o.onScroll!=null&&Be("scroll",t),o.onScrollEnd!=null&&Be("scrollend",t),o.onClick!=null&&(t.onclick=Es),t=!0):t=!1,t||hr(e)}function im(e){for(zt=e.return;zt;)switch(zt.tag){case 5:case 13:_n=!1;return;case 27:case 3:_n=!0;return;default:zt=zt.return}}function si(e){if(e!==zt)return!1;if(!Ke)return im(e),Ke=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||Of(e.type,e.memoizedProps)),r=!r),r&&ct&&hr(e),im(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(r=e.data,r==="/$"){if(t===0){ct=Rn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++;e=e.nextSibling}ct=null}}else t===27?(t=ct,za(e.type)?(e=Mf,Mf=null,ct=e):ct=t):ct=zt?Rn(e.stateNode.nextSibling):null;return!0}function ui(){ct=zt=null,Ke=!1}function om(){var e=dr;return e!==null&&($t===null?$t=e:$t.push.apply($t,e),dr=null),e}function ci(e){dr===null?dr=[e]:dr.push(e)}var cc=U(null),mr=null,na=null;function xa(e,t,r){$(cc,t._currentValue),t._currentValue=r}function aa(e){e._currentValue=cc.current,j(cc)}function fc(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function dc(e,t,r,o){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var d=c.dependencies;if(d!==null){var y=c.child;d=d.firstContext;e:for(;d!==null;){var w=d;d=c;for(var M=0;M<t.length;M++)if(w.context===t[M]){d.lanes|=r,w=d.alternate,w!==null&&(w.lanes|=r),fc(d.return,r,e),o||(y=null);break e}d=w.next}}else if(c.tag===18){if(y=c.return,y===null)throw Error(i(341));y.lanes|=r,d=y.alternate,d!==null&&(d.lanes|=r),fc(y,r,e),y=null}else y=c.child;if(y!==null)y.return=c;else for(y=c;y!==null;){if(y===e){y=null;break}if(c=y.sibling,c!==null){c.return=y.return,y=c;break}y=y.return}c=y}}function fi(e,t,r,o){e=null;for(var c=t,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var y=c.alternate;if(y===null)throw Error(i(387));if(y=y.memoizedProps,y!==null){var w=c.type;Ft(c.pendingProps.value,y.value)||(e!==null?e.push(w):e=[w])}}else if(c===de.current){if(y=c.alternate,y===null)throw Error(i(387));y.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Bi):e=[Bi])}c=c.return}e!==null&&dc(t,e,r,o),t.flags|=262144}function Yo(e){for(e=e.firstContext;e!==null;){if(!Ft(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function pr(e){mr=e,na=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function jt(e){return sm(mr,e)}function Go(e,t){return mr===null&&pr(e),sm(e,t)}function sm(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},na===null){if(e===null)throw Error(i(308));na=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else na=na.next=t;return r}var m1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},p1=n.unstable_scheduleCallback,g1=n.unstable_NormalPriority,bt={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hc(){return{controller:new m1,data:new Map,refCount:0}}function di(e){e.refCount--,e.refCount===0&&p1(g1,function(){e.controller.abort()})}var hi=null,mc=0,Zr=0,Jr=null;function v1(e,t){if(hi===null){var r=hi=[];mc=0,Zr=vf(),Jr={status:"pending",value:void 0,then:function(o){r.push(o)}}}return mc++,t.then(um,um),t}function um(){if(--mc===0&&hi!==null){Jr!==null&&(Jr.status="fulfilled");var e=hi;hi=null,Zr=0,Jr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function y1(e,t){var r=[],o={status:"pending",value:null,reason:null,then:function(c){r.push(c)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var c=0;c<r.length;c++)(0,r[c])(t)},function(c){for(o.status="rejected",o.reason=c,c=0;c<r.length;c++)(0,r[c])(void 0)}),o}var cm=R.S;R.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&v1(e,t),cm!==null&&cm(e,t)};var gr=U(null);function pc(){var e=gr.current;return e!==null?e:tt.pooledCache}function Ko(e,t){t===null?$(gr,gr.current):$(gr,t.pool)}function fm(){var e=pc();return e===null?null:{parent:bt._currentValue,pool:e}}var mi=Error(i(460)),dm=Error(i(474)),Fo=Error(i(542)),gc={then:function(){}};function hm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Xo(){}function mm(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(Xo,Xo),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gm(e),e;default:if(typeof t.status=="string")t.then(Xo,Xo);else{if(e=tt,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=o}},function(o){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gm(e),e}throw pi=t,mi}}var pi=null;function pm(){if(pi===null)throw Error(i(459));var e=pi;return pi=null,e}function gm(e){if(e===mi||e===Fo)throw Error(i(483))}var Sa=!1;function vc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function wa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ea(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Xe&2)!==0){var c=o.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),o.pending=t,t=Bo(e),nm(e,null,r),t}return Ho(e,o,t,r),Bo(e)}function gi(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,rr(e,r)}}function bc(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var c=null,d=null;if(r=r.firstBaseUpdate,r!==null){do{var y={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};d===null?c=d=y:d=d.next=y,r=r.next}while(r!==null);d===null?c=d=t:d=d.next=t}else c=d=t;r={baseState:o.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:o.shared,callbacks:o.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var xc=!1;function vi(){if(xc){var e=Jr;if(e!==null)throw e}}function yi(e,t,r,o){xc=!1;var c=e.updateQueue;Sa=!1;var d=c.firstBaseUpdate,y=c.lastBaseUpdate,w=c.shared.pending;if(w!==null){c.shared.pending=null;var M=w,G=M.next;M.next=null,y===null?d=G:y.next=G,y=M;var ee=e.alternate;ee!==null&&(ee=ee.updateQueue,w=ee.lastBaseUpdate,w!==y&&(w===null?ee.firstBaseUpdate=G:w.next=G,ee.lastBaseUpdate=M))}if(d!==null){var ne=c.baseState;y=0,ee=G=M=null,w=d;do{var X=w.lane&-536870913,Q=X!==w.lane;if(Q?(Ve&X)===X:(o&X)===X){X!==0&&X===Zr&&(xc=!0),ee!==null&&(ee=ee.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var Ne=e,Oe=w;X=t;var Ie=r;switch(Oe.tag){case 1:if(Ne=Oe.payload,typeof Ne=="function"){ne=Ne.call(Ie,ne,X);break e}ne=Ne;break e;case 3:Ne.flags=Ne.flags&-65537|128;case 0:if(Ne=Oe.payload,X=typeof Ne=="function"?Ne.call(Ie,ne,X):Ne,X==null)break e;ne=g({},ne,X);break e;case 2:Sa=!0}}X=w.callback,X!==null&&(e.flags|=64,Q&&(e.flags|=8192),Q=c.callbacks,Q===null?c.callbacks=[X]:Q.push(X))}else Q={lane:X,tag:w.tag,payload:w.payload,callback:w.callback,next:null},ee===null?(G=ee=Q,M=ne):ee=ee.next=Q,y|=X;if(w=w.next,w===null){if(w=c.shared.pending,w===null)break;Q=w,w=Q.next,Q.next=null,c.lastBaseUpdate=Q,c.shared.pending=null}}while(!0);ee===null&&(M=ne),c.baseState=M,c.firstBaseUpdate=G,c.lastBaseUpdate=ee,d===null&&(c.shared.lanes=0),ja|=y,e.lanes=y,e.memoizedState=ne}}function vm(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function ym(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)vm(r[e],t)}var Wr=U(null),Qo=U(0);function bm(e,t){e=ca,$(Qo,e),$(Wr,t),ca=e|t.baseLanes}function Sc(){$(Qo,ca),$(Wr,Wr.current)}function wc(){ca=Qo.current,j(Wr),j(Qo)}var Ra=0,Le=null,Je=null,vt=null,Zo=!1,Ir=!1,vr=!1,Jo=0,bi=0,el=null,b1=0;function mt(){throw Error(i(321))}function Ec(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Ft(e[r],t[r]))return!1;return!0}function Rc(e,t,r,o,c,d){return Ra=d,Le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?np:ap,vr=!1,d=r(o,c),vr=!1,Ir&&(d=Sm(t,r,o,c)),xm(e),d}function xm(e){R.H=as;var t=Je!==null&&Je.next!==null;if(Ra=0,vt=Je=Le=null,Zo=!1,bi=0,el=null,t)throw Error(i(300));e===null||wt||(e=e.dependencies,e!==null&&Yo(e)&&(wt=!0))}function Sm(e,t,r,o){Le=e;var c=0;do{if(Ir&&(el=null),bi=0,Ir=!1,25<=c)throw Error(i(301));if(c+=1,vt=Je=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}R.H=O1,d=t(r,o)}while(Ir);return d}function x1(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?xi(t):t,e=e.useState()[0],(Je!==null?Je.memoizedState:null)!==e&&(Le.flags|=1024),t}function Cc(){var e=Jo!==0;return Jo=0,e}function Oc(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function Ac(e){if(Zo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Zo=!1}Ra=0,vt=Je=Le=null,Ir=!1,bi=Jo=0,el=null}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?Le.memoizedState=vt=e:vt=vt.next=e,vt}function yt(){if(Je===null){var e=Le.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var t=vt===null?Le.memoizedState:vt.next;if(t!==null)vt=t,Je=e;else{if(e===null)throw Le.alternate===null?Error(i(467)):Error(i(310));Je=e,e={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},vt===null?Le.memoizedState=vt=e:vt=vt.next=e}return vt}function Nc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xi(e){var t=bi;return bi+=1,el===null&&(el=[]),e=mm(el,e,t),t=Le,(vt===null?t.memoizedState:vt.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?np:ap),e}function Wo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return xi(e);if(e.$$typeof===H)return jt(e)}throw Error(i(438,String(e)))}function Tc(e){var t=null,r=Le.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var o=Le.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=Nc(),Le.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),o=0;o<e;o++)r[o]=oe;return t.index++,r}function ra(e,t){return typeof t=="function"?t(e):t}function Io(e){var t=yt();return Mc(t,Je,e)}function Mc(e,t,r){var o=e.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=r;var c=e.baseQueue,d=o.pending;if(d!==null){if(c!==null){var y=c.next;c.next=d.next,d.next=y}t.baseQueue=c=d,o.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{t=c.next;var w=y=null,M=null,G=t,ee=!1;do{var ne=G.lane&-536870913;if(ne!==G.lane?(Ve&ne)===ne:(Ra&ne)===ne){var X=G.revertLane;if(X===0)M!==null&&(M=M.next={lane:0,revertLane:0,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),ne===Zr&&(ee=!0);else if((Ra&X)===X){G=G.next,X===Zr&&(ee=!0);continue}else ne={lane:0,revertLane:G.revertLane,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},M===null?(w=M=ne,y=d):M=M.next=ne,Le.lanes|=X,ja|=X;ne=G.action,vr&&r(d,ne),d=G.hasEagerState?G.eagerState:r(d,ne)}else X={lane:ne,revertLane:G.revertLane,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},M===null?(w=M=X,y=d):M=M.next=X,Le.lanes|=ne,ja|=ne;G=G.next}while(G!==null&&G!==t);if(M===null?y=d:M.next=w,!Ft(d,e.memoizedState)&&(wt=!0,ee&&(r=Jr,r!==null)))throw r;e.memoizedState=d,e.baseState=y,e.baseQueue=M,o.lastRenderedState=d}return c===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function jc(e){var t=yt(),r=t.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=e;var o=r.dispatch,c=r.pending,d=t.memoizedState;if(c!==null){r.pending=null;var y=c=c.next;do d=e(d,y.action),y=y.next;while(y!==c);Ft(d,t.memoizedState)||(wt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),r.lastRenderedState=d}return[d,o]}function wm(e,t,r){var o=Le,c=yt(),d=Ke;if(d){if(r===void 0)throw Error(i(407));r=r()}else r=t();var y=!Ft((Je||c).memoizedState,r);y&&(c.memoizedState=r,wt=!0),c=c.queue;var w=Cm.bind(null,o,c,e);if(Si(2048,8,w,[e]),c.getSnapshot!==t||y||vt!==null&&vt.memoizedState.tag&1){if(o.flags|=2048,tl(9,es(),Rm.bind(null,o,c,r,t),null),tt===null)throw Error(i(349));d||(Ra&124)!==0||Em(o,t,r)}return r}function Em(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Le.updateQueue,t===null?(t=Nc(),Le.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Rm(e,t,r,o){t.value=r,t.getSnapshot=o,Om(t)&&Am(e)}function Cm(e,t,r){return r(function(){Om(t)&&Am(e)})}function Om(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Ft(e,r)}catch{return!0}}function Am(e){var t=Kr(e,2);t!==null&&It(t,e,2)}function Dc(e){var t=Ht();if(typeof e=="function"){var r=e;if(e=r(),vr){Sn(!0);try{r()}finally{Sn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:e},t}function Nm(e,t,r,o){return e.baseState=r,Mc(e,Je,typeof o=="function"?o:ra)}function S1(e,t,r,o,c){if(ns(e))throw Error(i(485));if(e=t.action,e!==null){var d={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){d.listeners.push(y)}};R.T!==null?r(!0):d.isTransition=!1,o(d),r=t.pending,r===null?(d.next=t.pending=d,Tm(t,d)):(d.next=r.next,t.pending=r.next=d)}}function Tm(e,t){var r=t.action,o=t.payload,c=e.state;if(t.isTransition){var d=R.T,y={};R.T=y;try{var w=r(c,o),M=R.S;M!==null&&M(y,w),Mm(e,t,w)}catch(G){_c(e,t,G)}finally{R.T=d}}else try{d=r(c,o),Mm(e,t,d)}catch(G){_c(e,t,G)}}function Mm(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(o){jm(e,t,o)},function(o){return _c(e,t,o)}):jm(e,t,r)}function jm(e,t,r){t.status="fulfilled",t.value=r,Dm(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,Tm(e,r)))}function _c(e,t,r){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=r,Dm(t),t=t.next;while(t!==o)}e.action=null}function Dm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function _m(e,t){return t}function Lm(e,t){if(Ke){var r=tt.formState;if(r!==null){e:{var o=Le;if(Ke){if(ct){t:{for(var c=ct,d=_n;c.nodeType!==8;){if(!d){c=null;break t}if(c=Rn(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){ct=Rn(c.nextSibling),o=c.data==="F!";break e}}hr(o)}o=!1}o&&(t=r[0])}}return r=Ht(),r.memoizedState=r.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_m,lastRenderedState:t},r.queue=o,r=Im.bind(null,Le,o),o.dispatch=r,o=Dc(!1),d=Pc.bind(null,Le,!1,o.queue),o=Ht(),c={state:t,dispatch:null,action:e,pending:null},o.queue=c,r=S1.bind(null,Le,c,d,r),c.dispatch=r,o.memoizedState=e,[t,r,!1]}function zm(e){var t=yt();return km(t,Je,e)}function km(e,t,r){if(t=Mc(e,t,_m)[0],e=Io(ra)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=xi(t)}catch(y){throw y===mi?Fo:y}else o=t;t=yt();var c=t.queue,d=c.dispatch;return r!==t.memoizedState&&(Le.flags|=2048,tl(9,es(),w1.bind(null,c,r),null)),[o,d,e]}function w1(e,t){e.action=t}function Um(e){var t=yt(),r=Je;if(r!==null)return km(t,r,e);yt(),t=t.memoizedState,r=yt();var o=r.queue.dispatch;return r.memoizedState=e,[t,o,!1]}function tl(e,t,r,o){return e={tag:e,create:r,deps:o,inst:t,next:null},t=Le.updateQueue,t===null&&(t=Nc(),Le.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e),e}function es(){return{destroy:void 0,resource:void 0}}function Pm(){return yt().memoizedState}function ts(e,t,r,o){var c=Ht();o=o===void 0?null:o,Le.flags|=e,c.memoizedState=tl(1|t,es(),r,o)}function Si(e,t,r,o){var c=yt();o=o===void 0?null:o;var d=c.memoizedState.inst;Je!==null&&o!==null&&Ec(o,Je.memoizedState.deps)?c.memoizedState=tl(t,d,r,o):(Le.flags|=e,c.memoizedState=tl(1|t,d,r,o))}function Hm(e,t){ts(8390656,8,e,t)}function Bm(e,t){Si(2048,8,e,t)}function $m(e,t){return Si(4,2,e,t)}function Vm(e,t){return Si(4,4,e,t)}function qm(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ym(e,t,r){r=r!=null?r.concat([e]):null,Si(4,4,qm.bind(null,t,e),r)}function Lc(){}function Gm(e,t){var r=yt();t=t===void 0?null:t;var o=r.memoizedState;return t!==null&&Ec(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function Km(e,t){var r=yt();t=t===void 0?null:t;var o=r.memoizedState;if(t!==null&&Ec(t,o[1]))return o[0];if(o=e(),vr){Sn(!0);try{e()}finally{Sn(!1)}}return r.memoizedState=[o,t],o}function zc(e,t,r){return r===void 0||(Ra&1073741824)!==0?e.memoizedState=t:(e.memoizedState=r,e=Qp(),Le.lanes|=e,ja|=e,r)}function Fm(e,t,r,o){return Ft(r,t)?r:Wr.current!==null?(e=zc(e,r,o),Ft(e,t)||(wt=!0),e):(Ra&42)===0?(wt=!0,e.memoizedState=r):(e=Qp(),Le.lanes|=e,ja|=e,t)}function Xm(e,t,r,o,c){var d=z.p;z.p=d!==0&&8>d?d:8;var y=R.T,w={};R.T=w,Pc(e,!1,t,r);try{var M=c(),G=R.S;if(G!==null&&G(w,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var ee=y1(M,o);wi(e,t,ee,Wt(e))}else wi(e,t,o,Wt(e))}catch(ne){wi(e,t,{then:function(){},status:"rejected",reason:ne},Wt())}finally{z.p=d,R.T=y}}function E1(){}function kc(e,t,r,o){if(e.tag!==5)throw Error(i(476));var c=Qm(e).queue;Xm(e,c,t,D,r===null?E1:function(){return Zm(e),r(o)})}function Qm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:D,baseState:D,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:D},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Zm(e){var t=Qm(e).next.queue;wi(e,t,{},Wt())}function Uc(){return jt(Bi)}function Jm(){return yt().memoizedState}function Wm(){return yt().memoizedState}function R1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=Wt();e=wa(r);var o=Ea(t,e,r);o!==null&&(It(o,t,r),gi(o,t,r)),t={cache:hc()},e.payload=t;return}t=t.return}}function C1(e,t,r){var o=Wt();r={lane:o,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null},ns(e)?ep(t,r):(r=ac(e,t,r,o),r!==null&&(It(r,e,o),tp(r,t,o)))}function Im(e,t,r){var o=Wt();wi(e,t,r,o)}function wi(e,t,r,o){var c={lane:o,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(ns(e))ep(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var y=t.lastRenderedState,w=d(y,r);if(c.hasEagerState=!0,c.eagerState=w,Ft(w,y))return Ho(e,t,c,0),tt===null&&Po(),!1}catch{}finally{}if(r=ac(e,t,c,o),r!==null)return It(r,e,o),tp(r,t,o),!0}return!1}function Pc(e,t,r,o){if(o={lane:2,revertLane:vf(),action:o,hasEagerState:!1,eagerState:null,next:null},ns(e)){if(t)throw Error(i(479))}else t=ac(e,r,o,2),t!==null&&It(t,e,2)}function ns(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function ep(e,t){Ir=Zo=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function tp(e,t,r){if((r&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,rr(e,r)}}var as={readContext:jt,use:Wo,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useLayoutEffect:mt,useInsertionEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useSyncExternalStore:mt,useId:mt,useHostTransitionStatus:mt,useFormState:mt,useActionState:mt,useOptimistic:mt,useMemoCache:mt,useCacheRefresh:mt},np={readContext:jt,use:Wo,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:jt,useEffect:Hm,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,ts(4194308,4,qm.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var r=Ht();t=t===void 0?null:t;var o=e();if(vr){Sn(!0);try{e()}finally{Sn(!1)}}return r.memoizedState=[o,t],o},useReducer:function(e,t,r){var o=Ht();if(r!==void 0){var c=r(t);if(vr){Sn(!0);try{r(t)}finally{Sn(!1)}}}else c=t;return o.memoizedState=o.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},o.queue=e,e=e.dispatch=C1.bind(null,Le,e),[o.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:function(e){e=Dc(e);var t=e.queue,r=Im.bind(null,Le,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:Lc,useDeferredValue:function(e,t){var r=Ht();return zc(r,e,t)},useTransition:function(){var e=Dc(!1);return e=Xm.bind(null,Le,e.queue,!0,!1),Ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var o=Le,c=Ht();if(Ke){if(r===void 0)throw Error(i(407));r=r()}else{if(r=t(),tt===null)throw Error(i(349));(Ve&124)!==0||Em(o,t,r)}c.memoizedState=r;var d={value:r,getSnapshot:t};return c.queue=d,Hm(Cm.bind(null,o,d,e),[e]),o.flags|=2048,tl(9,es(),Rm.bind(null,o,d,r,t),null),r},useId:function(){var e=Ht(),t=tt.identifierPrefix;if(Ke){var r=ta,o=ea;r=(o&~(1<<32-At(o)-1)).toString(32)+r,t="«"+t+"R"+r,r=Jo++,0<r&&(t+="H"+r.toString(32)),t+="»"}else r=b1++,t="«"+t+"r"+r.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Uc,useFormState:Lm,useActionState:Lm,useOptimistic:function(e){var t=Ht();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=Pc.bind(null,Le,!0,r),r.dispatch=t,[e,t]},useMemoCache:Tc,useCacheRefresh:function(){return Ht().memoizedState=R1.bind(null,Le)}},ap={readContext:jt,use:Wo,useCallback:Gm,useContext:jt,useEffect:Bm,useImperativeHandle:Ym,useInsertionEffect:$m,useLayoutEffect:Vm,useMemo:Km,useReducer:Io,useRef:Pm,useState:function(){return Io(ra)},useDebugValue:Lc,useDeferredValue:function(e,t){var r=yt();return Fm(r,Je.memoizedState,e,t)},useTransition:function(){var e=Io(ra)[0],t=yt().memoizedState;return[typeof e=="boolean"?e:xi(e),t]},useSyncExternalStore:wm,useId:Jm,useHostTransitionStatus:Uc,useFormState:zm,useActionState:zm,useOptimistic:function(e,t){var r=yt();return Nm(r,Je,e,t)},useMemoCache:Tc,useCacheRefresh:Wm},O1={readContext:jt,use:Wo,useCallback:Gm,useContext:jt,useEffect:Bm,useImperativeHandle:Ym,useInsertionEffect:$m,useLayoutEffect:Vm,useMemo:Km,useReducer:jc,useRef:Pm,useState:function(){return jc(ra)},useDebugValue:Lc,useDeferredValue:function(e,t){var r=yt();return Je===null?zc(r,e,t):Fm(r,Je.memoizedState,e,t)},useTransition:function(){var e=jc(ra)[0],t=yt().memoizedState;return[typeof e=="boolean"?e:xi(e),t]},useSyncExternalStore:wm,useId:Jm,useHostTransitionStatus:Uc,useFormState:Um,useActionState:Um,useOptimistic:function(e,t){var r=yt();return Je!==null?Nm(r,Je,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Tc,useCacheRefresh:Wm},nl=null,Ei=0;function rs(e){var t=Ei;return Ei+=1,nl===null&&(nl=[]),mm(nl,e,t)}function Ri(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ls(e,t){throw t.$$typeof===b?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function rp(e){var t=e._init;return t(e._payload)}function lp(e){function t(B,k){if(e){var Y=B.deletions;Y===null?(B.deletions=[k],B.flags|=16):Y.push(k)}}function r(B,k){if(!e)return null;for(;k!==null;)t(B,k),k=k.sibling;return null}function o(B){for(var k=new Map;B!==null;)B.key!==null?k.set(B.key,B):k.set(B.index,B),B=B.sibling;return k}function c(B,k){return B=In(B,k),B.index=0,B.sibling=null,B}function d(B,k,Y){return B.index=Y,e?(Y=B.alternate,Y!==null?(Y=Y.index,Y<k?(B.flags|=67108866,k):Y):(B.flags|=67108866,k)):(B.flags|=1048576,k)}function y(B){return e&&B.alternate===null&&(B.flags|=67108866),B}function w(B,k,Y,te){return k===null||k.tag!==6?(k=lc(Y,B.mode,te),k.return=B,k):(k=c(k,Y),k.return=B,k)}function M(B,k,Y,te){var he=Y.type;return he===A?ee(B,k,Y.props.children,te,Y.key):k!==null&&(k.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===W&&rp(he)===k.type)?(k=c(k,Y.props),Ri(k,Y),k.return=B,k):(k=$o(Y.type,Y.key,Y.props,null,B.mode,te),Ri(k,Y),k.return=B,k)}function G(B,k,Y,te){return k===null||k.tag!==4||k.stateNode.containerInfo!==Y.containerInfo||k.stateNode.implementation!==Y.implementation?(k=ic(Y,B.mode,te),k.return=B,k):(k=c(k,Y.children||[]),k.return=B,k)}function ee(B,k,Y,te,he){return k===null||k.tag!==7?(k=ur(Y,B.mode,te,he),k.return=B,k):(k=c(k,Y),k.return=B,k)}function ne(B,k,Y){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=lc(""+k,B.mode,Y),k.return=B,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case S:return Y=$o(k.type,k.key,k.props,null,B.mode,Y),Ri(Y,k),Y.return=B,Y;case E:return k=ic(k,B.mode,Y),k.return=B,k;case W:var te=k._init;return k=te(k._payload),ne(B,k,Y)}if(le(k)||xe(k))return k=ur(k,B.mode,Y,null),k.return=B,k;if(typeof k.then=="function")return ne(B,rs(k),Y);if(k.$$typeof===H)return ne(B,Go(B,k),Y);ls(B,k)}return null}function X(B,k,Y,te){var he=k!==null?k.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return he!==null?null:w(B,k,""+Y,te);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case S:return Y.key===he?M(B,k,Y,te):null;case E:return Y.key===he?G(B,k,Y,te):null;case W:return he=Y._init,Y=he(Y._payload),X(B,k,Y,te)}if(le(Y)||xe(Y))return he!==null?null:ee(B,k,Y,te,null);if(typeof Y.then=="function")return X(B,k,rs(Y),te);if(Y.$$typeof===H)return X(B,k,Go(B,Y),te);ls(B,Y)}return null}function Q(B,k,Y,te,he){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return B=B.get(Y)||null,w(k,B,""+te,he);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case S:return B=B.get(te.key===null?Y:te.key)||null,M(k,B,te,he);case E:return B=B.get(te.key===null?Y:te.key)||null,G(k,B,te,he);case W:var Ue=te._init;return te=Ue(te._payload),Q(B,k,Y,te,he)}if(le(te)||xe(te))return B=B.get(Y)||null,ee(k,B,te,he,null);if(typeof te.then=="function")return Q(B,k,Y,rs(te),he);if(te.$$typeof===H)return Q(B,k,Y,Go(k,te),he);ls(k,te)}return null}function Ne(B,k,Y,te){for(var he=null,Ue=null,we=k,Ae=k=0,Rt=null;we!==null&&Ae<Y.length;Ae++){we.index>Ae?(Rt=we,we=null):Rt=we.sibling;var Ge=X(B,we,Y[Ae],te);if(Ge===null){we===null&&(we=Rt);break}e&&we&&Ge.alternate===null&&t(B,we),k=d(Ge,k,Ae),Ue===null?he=Ge:Ue.sibling=Ge,Ue=Ge,we=Rt}if(Ae===Y.length)return r(B,we),Ke&&fr(B,Ae),he;if(we===null){for(;Ae<Y.length;Ae++)we=ne(B,Y[Ae],te),we!==null&&(k=d(we,k,Ae),Ue===null?he=we:Ue.sibling=we,Ue=we);return Ke&&fr(B,Ae),he}for(we=o(we);Ae<Y.length;Ae++)Rt=Q(we,B,Ae,Y[Ae],te),Rt!==null&&(e&&Rt.alternate!==null&&we.delete(Rt.key===null?Ae:Rt.key),k=d(Rt,k,Ae),Ue===null?he=Rt:Ue.sibling=Rt,Ue=Rt);return e&&we.forEach(function(Ba){return t(B,Ba)}),Ke&&fr(B,Ae),he}function Oe(B,k,Y,te){if(Y==null)throw Error(i(151));for(var he=null,Ue=null,we=k,Ae=k=0,Rt=null,Ge=Y.next();we!==null&&!Ge.done;Ae++,Ge=Y.next()){we.index>Ae?(Rt=we,we=null):Rt=we.sibling;var Ba=X(B,we,Ge.value,te);if(Ba===null){we===null&&(we=Rt);break}e&&we&&Ba.alternate===null&&t(B,we),k=d(Ba,k,Ae),Ue===null?he=Ba:Ue.sibling=Ba,Ue=Ba,we=Rt}if(Ge.done)return r(B,we),Ke&&fr(B,Ae),he;if(we===null){for(;!Ge.done;Ae++,Ge=Y.next())Ge=ne(B,Ge.value,te),Ge!==null&&(k=d(Ge,k,Ae),Ue===null?he=Ge:Ue.sibling=Ge,Ue=Ge);return Ke&&fr(B,Ae),he}for(we=o(we);!Ge.done;Ae++,Ge=Y.next())Ge=Q(we,B,Ae,Ge.value,te),Ge!==null&&(e&&Ge.alternate!==null&&we.delete(Ge.key===null?Ae:Ge.key),k=d(Ge,k,Ae),Ue===null?he=Ge:Ue.sibling=Ge,Ue=Ge);return e&&we.forEach(function(AS){return t(B,AS)}),Ke&&fr(B,Ae),he}function Ie(B,k,Y,te){if(typeof Y=="object"&&Y!==null&&Y.type===A&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case S:e:{for(var he=Y.key;k!==null;){if(k.key===he){if(he=Y.type,he===A){if(k.tag===7){r(B,k.sibling),te=c(k,Y.props.children),te.return=B,B=te;break e}}else if(k.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===W&&rp(he)===k.type){r(B,k.sibling),te=c(k,Y.props),Ri(te,Y),te.return=B,B=te;break e}r(B,k);break}else t(B,k);k=k.sibling}Y.type===A?(te=ur(Y.props.children,B.mode,te,Y.key),te.return=B,B=te):(te=$o(Y.type,Y.key,Y.props,null,B.mode,te),Ri(te,Y),te.return=B,B=te)}return y(B);case E:e:{for(he=Y.key;k!==null;){if(k.key===he)if(k.tag===4&&k.stateNode.containerInfo===Y.containerInfo&&k.stateNode.implementation===Y.implementation){r(B,k.sibling),te=c(k,Y.children||[]),te.return=B,B=te;break e}else{r(B,k);break}else t(B,k);k=k.sibling}te=ic(Y,B.mode,te),te.return=B,B=te}return y(B);case W:return he=Y._init,Y=he(Y._payload),Ie(B,k,Y,te)}if(le(Y))return Ne(B,k,Y,te);if(xe(Y)){if(he=xe(Y),typeof he!="function")throw Error(i(150));return Y=he.call(Y),Oe(B,k,Y,te)}if(typeof Y.then=="function")return Ie(B,k,rs(Y),te);if(Y.$$typeof===H)return Ie(B,k,Go(B,Y),te);ls(B,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,k!==null&&k.tag===6?(r(B,k.sibling),te=c(k,Y),te.return=B,B=te):(r(B,k),te=lc(Y,B.mode,te),te.return=B,B=te),y(B)):r(B,k)}return function(B,k,Y,te){try{Ei=0;var he=Ie(B,k,Y,te);return nl=null,he}catch(we){if(we===mi||we===Fo)throw we;var Ue=Xt(29,we,null,B.mode);return Ue.lanes=te,Ue.return=B,Ue}finally{}}}var al=lp(!0),ip=lp(!1),pn=U(null),Ln=null;function Ca(e){var t=e.alternate;$(xt,xt.current&1),$(pn,e),Ln===null&&(t===null||Wr.current!==null||t.memoizedState!==null)&&(Ln=e)}function op(e){if(e.tag===22){if($(xt,xt.current),$(pn,e),Ln===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Ln=e)}}else Oa()}function Oa(){$(xt,xt.current),$(pn,pn.current)}function la(e){j(pn),Ln===e&&(Ln=null),j(xt)}var xt=U(0);function is(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||Tf(r)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Hc(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:g({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Bc={enqueueSetState:function(e,t,r){e=e._reactInternals;var o=Wt(),c=wa(o);c.payload=t,r!=null&&(c.callback=r),t=Ea(e,c,o),t!==null&&(It(t,e,o),gi(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=Wt(),c=wa(o);c.tag=1,c.payload=t,r!=null&&(c.callback=r),t=Ea(e,c,o),t!==null&&(It(t,e,o),gi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Wt(),o=wa(r);o.tag=2,t!=null&&(o.callback=t),t=Ea(e,o,r),t!==null&&(It(t,e,r),gi(t,e,r))}};function sp(e,t,r,o,c,d,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,d,y):t.prototype&&t.prototype.isPureReactComponent?!ii(r,o)||!ii(c,d):!0}function up(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&Bc.enqueueReplaceState(t,t.state,null)}function yr(e,t){var r=t;if("ref"in t){r={};for(var o in t)o!=="ref"&&(r[o]=t[o])}if(e=e.defaultProps){r===t&&(r=g({},r));for(var c in e)r[c]===void 0&&(r[c]=e[c])}return r}var os=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function cp(e){os(e)}function fp(e){console.error(e)}function dp(e){os(e)}function ss(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function hp(e,t,r){try{var o=e.onCaughtError;o(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function $c(e,t,r){return r=wa(r),r.tag=3,r.payload={element:null},r.callback=function(){ss(e,t)},r}function mp(e){return e=wa(e),e.tag=3,e}function pp(e,t,r,o){var c=r.type.getDerivedStateFromError;if(typeof c=="function"){var d=o.value;e.payload=function(){return c(d)},e.callback=function(){hp(t,r,o)}}var y=r.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){hp(t,r,o),typeof c!="function"&&(Da===null?Da=new Set([this]):Da.add(this));var w=o.stack;this.componentDidCatch(o.value,{componentStack:w!==null?w:""})})}function A1(e,t,r,o,c){if(r.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=r.alternate,t!==null&&fi(t,r,c,!0),r=pn.current,r!==null){switch(r.tag){case 13:return Ln===null?df():r.alternate===null&&ft===0&&(ft=3),r.flags&=-257,r.flags|=65536,r.lanes=c,o===gc?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([o]):t.add(o),mf(e,o,c)),!1;case 22:return r.flags|=65536,o===gc?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([o]):r.add(o)),mf(e,o,c)),!1}throw Error(i(435,r.tag))}return mf(e,o,c),df(),!1}if(Ke)return t=pn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,o!==uc&&(e=Error(i(422),{cause:o}),ci(fn(e,r)))):(o!==uc&&(t=Error(i(423),{cause:o}),ci(fn(t,r))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,o=fn(o,r),c=$c(e.stateNode,o,c),bc(e,c),ft!==4&&(ft=2)),!1;var d=Error(i(520),{cause:o});if(d=fn(d,r),ji===null?ji=[d]:ji.push(d),ft!==4&&(ft=2),t===null)return!0;o=fn(o,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=c&-c,r.lanes|=e,e=$c(r.stateNode,o,e),bc(r,e),!1;case 1:if(t=r.type,d=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Da===null||!Da.has(d))))return r.flags|=65536,c&=-c,r.lanes|=c,c=mp(c),pp(c,e,r,o),bc(r,c),!1}r=r.return}while(r!==null);return!1}var gp=Error(i(461)),wt=!1;function Nt(e,t,r,o){t.child=e===null?ip(t,null,r,o):al(t,e.child,r,o)}function vp(e,t,r,o,c){r=r.render;var d=t.ref;if("ref"in o){var y={};for(var w in o)w!=="ref"&&(y[w]=o[w])}else y=o;return pr(t),o=Rc(e,t,r,y,d,c),w=Cc(),e!==null&&!wt?(Oc(e,t,c),ia(e,t,c)):(Ke&&w&&oc(t),t.flags|=1,Nt(e,t,o,c),t.child)}function yp(e,t,r,o,c){if(e===null){var d=r.type;return typeof d=="function"&&!rc(d)&&d.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=d,bp(e,t,d,o,c)):(e=$o(r.type,null,o,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!Qc(e,c)){var y=d.memoizedProps;if(r=r.compare,r=r!==null?r:ii,r(y,o)&&e.ref===t.ref)return ia(e,t,c)}return t.flags|=1,e=In(d,o),e.ref=t.ref,e.return=t,t.child=e}function bp(e,t,r,o,c){if(e!==null){var d=e.memoizedProps;if(ii(d,o)&&e.ref===t.ref)if(wt=!1,t.pendingProps=o=d,Qc(e,c))(e.flags&131072)!==0&&(wt=!0);else return t.lanes=e.lanes,ia(e,t,c)}return Vc(e,t,r,o,c)}function xp(e,t,r){var o=t.pendingProps,c=o.children,d=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if((t.flags&128)!==0){if(o=d!==null?d.baseLanes|r:r,e!==null){for(c=t.child=e.child,d=0;c!==null;)d=d|c.lanes|c.childLanes,c=c.sibling;t.childLanes=d&~o}else t.childLanes=0,t.child=null;return Sp(e,t,o,r)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ko(t,d!==null?d.cachePool:null),d!==null?bm(t,d):Sc(),op(t);else return t.lanes=t.childLanes=536870912,Sp(e,t,d!==null?d.baseLanes|r:r,r)}else d!==null?(Ko(t,d.cachePool),bm(t,d),Oa(),t.memoizedState=null):(e!==null&&Ko(t,null),Sc(),Oa());return Nt(e,t,c,r),t.child}function Sp(e,t,r,o){var c=pc();return c=c===null?null:{parent:bt._currentValue,pool:c},t.memoizedState={baseLanes:r,cachePool:c},e!==null&&Ko(t,null),Sc(),op(t),e!==null&&fi(e,t,o,!0),null}function us(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(i(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function Vc(e,t,r,o,c){return pr(t),r=Rc(e,t,r,o,void 0,c),o=Cc(),e!==null&&!wt?(Oc(e,t,c),ia(e,t,c)):(Ke&&o&&oc(t),t.flags|=1,Nt(e,t,r,c),t.child)}function wp(e,t,r,o,c,d){return pr(t),t.updateQueue=null,r=Sm(t,o,r,c),xm(e),o=Cc(),e!==null&&!wt?(Oc(e,t,d),ia(e,t,d)):(Ke&&o&&oc(t),t.flags|=1,Nt(e,t,r,d),t.child)}function Ep(e,t,r,o,c){if(pr(t),t.stateNode===null){var d=Fr,y=r.contextType;typeof y=="object"&&y!==null&&(d=jt(y)),d=new r(o,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Bc,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=o,d.state=t.memoizedState,d.refs={},vc(t),y=r.contextType,d.context=typeof y=="object"&&y!==null?jt(y):Fr,d.state=t.memoizedState,y=r.getDerivedStateFromProps,typeof y=="function"&&(Hc(t,r,y,o),d.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&Bc.enqueueReplaceState(d,d.state,null),yi(t,o,d,c),vi(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){d=t.stateNode;var w=t.memoizedProps,M=yr(r,w);d.props=M;var G=d.context,ee=r.contextType;y=Fr,typeof ee=="object"&&ee!==null&&(y=jt(ee));var ne=r.getDerivedStateFromProps;ee=typeof ne=="function"||typeof d.getSnapshotBeforeUpdate=="function",w=t.pendingProps!==w,ee||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(w||G!==y)&&up(t,d,o,y),Sa=!1;var X=t.memoizedState;d.state=X,yi(t,o,d,c),vi(),G=t.memoizedState,w||X!==G||Sa?(typeof ne=="function"&&(Hc(t,r,ne,o),G=t.memoizedState),(M=Sa||sp(t,r,M,o,X,G,y))?(ee||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=G),d.props=o,d.state=G,d.context=y,o=M):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{d=t.stateNode,yc(e,t),y=t.memoizedProps,ee=yr(r,y),d.props=ee,ne=t.pendingProps,X=d.context,G=r.contextType,M=Fr,typeof G=="object"&&G!==null&&(M=jt(G)),w=r.getDerivedStateFromProps,(G=typeof w=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==ne||X!==M)&&up(t,d,o,M),Sa=!1,X=t.memoizedState,d.state=X,yi(t,o,d,c),vi();var Q=t.memoizedState;y!==ne||X!==Q||Sa||e!==null&&e.dependencies!==null&&Yo(e.dependencies)?(typeof w=="function"&&(Hc(t,r,w,o),Q=t.memoizedState),(ee=Sa||sp(t,r,ee,o,X,Q,M)||e!==null&&e.dependencies!==null&&Yo(e.dependencies))?(G||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,Q,M),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,Q,M)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&X===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&X===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=Q),d.props=o,d.state=Q,d.context=M,o=ee):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&X===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&X===e.memoizedState||(t.flags|=1024),o=!1)}return d=o,us(e,t),o=(t.flags&128)!==0,d||o?(d=t.stateNode,r=o&&typeof r.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&o?(t.child=al(t,e.child,null,c),t.child=al(t,null,r,c)):Nt(e,t,r,c),t.memoizedState=d.state,e=t.child):e=ia(e,t,c),e}function Rp(e,t,r,o){return ui(),t.flags|=256,Nt(e,t,r,o),t.child}var qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yc(e){return{baseLanes:e,cachePool:fm()}}function Gc(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=gn),e}function Cp(e,t,r){var o=t.pendingProps,c=!1,d=(t.flags&128)!==0,y;if((y=d)||(y=e!==null&&e.memoizedState===null?!1:(xt.current&2)!==0),y&&(c=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ke){if(c?Ca(t):Oa(),Ke){var w=ct,M;if(M=w){e:{for(M=w,w=_n;M.nodeType!==8;){if(!w){w=null;break e}if(M=Rn(M.nextSibling),M===null){w=null;break e}}w=M}w!==null?(t.memoizedState={dehydrated:w,treeContext:cr!==null?{id:ea,overflow:ta}:null,retryLane:536870912,hydrationErrors:null},M=Xt(18,null,null,0),M.stateNode=w,M.return=t,t.child=M,zt=t,ct=null,M=!0):M=!1}M||hr(t)}if(w=t.memoizedState,w!==null&&(w=w.dehydrated,w!==null))return Tf(w)?t.lanes=32:t.lanes=536870912,null;la(t)}return w=o.children,o=o.fallback,c?(Oa(),c=t.mode,w=cs({mode:"hidden",children:w},c),o=ur(o,c,r,null),w.return=t,o.return=t,w.sibling=o,t.child=w,c=t.child,c.memoizedState=Yc(r),c.childLanes=Gc(e,y,r),t.memoizedState=qc,o):(Ca(t),Kc(t,w))}if(M=e.memoizedState,M!==null&&(w=M.dehydrated,w!==null)){if(d)t.flags&256?(Ca(t),t.flags&=-257,t=Fc(e,t,r)):t.memoizedState!==null?(Oa(),t.child=e.child,t.flags|=128,t=null):(Oa(),c=o.fallback,w=t.mode,o=cs({mode:"visible",children:o.children},w),c=ur(c,w,r,null),c.flags|=2,o.return=t,c.return=t,o.sibling=c,t.child=o,al(t,e.child,null,r),o=t.child,o.memoizedState=Yc(r),o.childLanes=Gc(e,y,r),t.memoizedState=qc,t=c);else if(Ca(t),Tf(w)){if(y=w.nextSibling&&w.nextSibling.dataset,y)var G=y.dgst;y=G,o=Error(i(419)),o.stack="",o.digest=y,ci({value:o,source:null,stack:null}),t=Fc(e,t,r)}else if(wt||fi(e,t,r,!1),y=(r&e.childLanes)!==0,wt||y){if(y=tt,y!==null&&(o=r&-r,o=(o&42)!==0?1:Jl(o),o=(o&(y.suspendedLanes|r))!==0?0:o,o!==0&&o!==M.retryLane))throw M.retryLane=o,Kr(e,o),It(y,e,o),gp;w.data==="$?"||df(),t=Fc(e,t,r)}else w.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=M.treeContext,ct=Rn(w.nextSibling),zt=t,Ke=!0,dr=null,_n=!1,e!==null&&(hn[mn++]=ea,hn[mn++]=ta,hn[mn++]=cr,ea=e.id,ta=e.overflow,cr=t),t=Kc(t,o.children),t.flags|=4096);return t}return c?(Oa(),c=o.fallback,w=t.mode,M=e.child,G=M.sibling,o=In(M,{mode:"hidden",children:o.children}),o.subtreeFlags=M.subtreeFlags&65011712,G!==null?c=In(G,c):(c=ur(c,w,r,null),c.flags|=2),c.return=t,o.return=t,o.sibling=c,t.child=o,o=c,c=t.child,w=e.child.memoizedState,w===null?w=Yc(r):(M=w.cachePool,M!==null?(G=bt._currentValue,M=M.parent!==G?{parent:G,pool:G}:M):M=fm(),w={baseLanes:w.baseLanes|r,cachePool:M}),c.memoizedState=w,c.childLanes=Gc(e,y,r),t.memoizedState=qc,o):(Ca(t),r=e.child,e=r.sibling,r=In(r,{mode:"visible",children:o.children}),r.return=t,r.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=r,t.memoizedState=null,r)}function Kc(e,t){return t=cs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function cs(e,t){return e=Xt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Fc(e,t,r){return al(t,e.child,null,r),e=Kc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Op(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),fc(e.return,t,r)}function Xc(e,t,r,o,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=o,d.tail=r,d.tailMode=c)}function Ap(e,t,r){var o=t.pendingProps,c=o.revealOrder,d=o.tail;if(Nt(e,t,o.children,r),o=xt.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Op(e,r,t);else if(e.tag===19)Op(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch($(xt,o),c){case"forwards":for(r=t.child,c=null;r!==null;)e=r.alternate,e!==null&&is(e)===null&&(c=r),r=r.sibling;r=c,r===null?(c=t.child,t.child=null):(c=r.sibling,r.sibling=null),Xc(t,!1,c,r,d);break;case"backwards":for(r=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&is(e)===null){t.child=c;break}e=c.sibling,c.sibling=r,r=c,c=e}Xc(t,!0,r,null,d);break;case"together":Xc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ia(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),ja|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(fi(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,r=In(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=In(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Qc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Yo(e)))}function N1(e,t,r){switch(t.tag){case 3:Te(t,t.stateNode.containerInfo),xa(t,bt,e.memoizedState.cache),ui();break;case 27:case 5:Ye(t);break;case 4:Te(t,t.stateNode.containerInfo);break;case 10:xa(t,t.type,t.memoizedProps.value);break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(Ca(t),t.flags|=128,null):(r&t.child.childLanes)!==0?Cp(e,t,r):(Ca(t),e=ia(e,t,r),e!==null?e.sibling:null);Ca(t);break;case 19:var c=(e.flags&128)!==0;if(o=(r&t.childLanes)!==0,o||(fi(e,t,r,!1),o=(r&t.childLanes)!==0),c){if(o)return Ap(e,t,r);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),$(xt,xt.current),o)break;return null;case 22:case 23:return t.lanes=0,xp(e,t,r);case 24:xa(t,bt,e.memoizedState.cache)}return ia(e,t,r)}function Np(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)wt=!0;else{if(!Qc(e,r)&&(t.flags&128)===0)return wt=!1,N1(e,t,r);wt=(e.flags&131072)!==0}else wt=!1,Ke&&(t.flags&1048576)!==0&&rm(t,qo,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var o=t.elementType,c=o._init;if(o=c(o._payload),t.type=o,typeof o=="function")rc(o)?(e=yr(o,e),t.tag=1,t=Ep(null,t,o,e,r)):(t.tag=0,t=Vc(null,t,o,e,r));else{if(o!=null){if(c=o.$$typeof,c===K){t.tag=11,t=vp(null,t,o,e,r);break e}else if(c===F){t.tag=14,t=yp(null,t,o,e,r);break e}}throw t=ue(o)||o,Error(i(306,t,""))}}return t;case 0:return Vc(e,t,t.type,t.pendingProps,r);case 1:return o=t.type,c=yr(o,t.pendingProps),Ep(e,t,o,c,r);case 3:e:{if(Te(t,t.stateNode.containerInfo),e===null)throw Error(i(387));o=t.pendingProps;var d=t.memoizedState;c=d.element,yc(e,t),yi(t,o,null,r);var y=t.memoizedState;if(o=y.cache,xa(t,bt,o),o!==d.cache&&dc(t,[bt],r,!0),vi(),o=y.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=Rp(e,t,o,r);break e}else if(o!==c){c=fn(Error(i(424)),t),ci(c),t=Rp(e,t,o,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ct=Rn(e.firstChild),zt=t,Ke=!0,dr=null,_n=!0,r=ip(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(ui(),o===c){t=ia(e,t,r);break e}Nt(e,t,o,r)}t=t.child}return t;case 26:return us(e,t),e===null?(r=Dg(t.type,null,t.pendingProps,null))?t.memoizedState=r:Ke||(r=t.type,e=t.pendingProps,o=Rs(ce.current).createElement(r),o[ae]=t,o[se]=e,Mt(o,r,e),je(o),t.stateNode=o):t.memoizedState=Dg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ye(t),e===null&&Ke&&(o=t.stateNode=Tg(t.type,t.pendingProps,ce.current),zt=t,_n=!0,c=ct,za(t.type)?(Mf=c,ct=Rn(o.firstChild)):ct=c),Nt(e,t,t.pendingProps.children,r),us(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ke&&((c=o=ct)&&(o=nS(o,t.type,t.pendingProps,_n),o!==null?(t.stateNode=o,zt=t,ct=Rn(o.firstChild),_n=!1,c=!0):c=!1),c||hr(t)),Ye(t),c=t.type,d=t.pendingProps,y=e!==null?e.memoizedProps:null,o=d.children,Of(c,d)?o=null:y!==null&&Of(c,y)&&(t.flags|=32),t.memoizedState!==null&&(c=Rc(e,t,x1,null,null,r),Bi._currentValue=c),us(e,t),Nt(e,t,o,r),t.child;case 6:return e===null&&Ke&&((e=r=ct)&&(r=aS(r,t.pendingProps,_n),r!==null?(t.stateNode=r,zt=t,ct=null,e=!0):e=!1),e||hr(t)),null;case 13:return Cp(e,t,r);case 4:return Te(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=al(t,null,o,r):Nt(e,t,o,r),t.child;case 11:return vp(e,t,t.type,t.pendingProps,r);case 7:return Nt(e,t,t.pendingProps,r),t.child;case 8:return Nt(e,t,t.pendingProps.children,r),t.child;case 12:return Nt(e,t,t.pendingProps.children,r),t.child;case 10:return o=t.pendingProps,xa(t,t.type,o.value),Nt(e,t,o.children,r),t.child;case 9:return c=t.type._context,o=t.pendingProps.children,pr(t),c=jt(c),o=o(c),t.flags|=1,Nt(e,t,o,r),t.child;case 14:return yp(e,t,t.type,t.pendingProps,r);case 15:return bp(e,t,t.type,t.pendingProps,r);case 19:return Ap(e,t,r);case 31:return o=t.pendingProps,r=t.mode,o={mode:o.mode,children:o.children},e===null?(r=cs(o,r),r.ref=t.ref,t.child=r,r.return=t,t=r):(r=In(e.child,o),r.ref=t.ref,t.child=r,r.return=t,t=r),t;case 22:return xp(e,t,r);case 24:return pr(t),o=jt(bt),e===null?(c=pc(),c===null&&(c=tt,d=hc(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=r),c=d),t.memoizedState={parent:o,cache:c},vc(t),xa(t,bt,c)):((e.lanes&r)!==0&&(yc(e,t),yi(t,null,null,r),vi()),c=e.memoizedState,d=t.memoizedState,c.parent!==o?(c={parent:o,cache:o},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),xa(t,bt,o)):(o=d.cache,xa(t,bt,o),o!==c.cache&&dc(t,[bt],r,!0))),Nt(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function oa(e){e.flags|=4}function Tp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ug(t)){if(t=pn.current,t!==null&&((Ve&4194048)===Ve?Ln!==null:(Ve&62914560)!==Ve&&(Ve&536870912)===0||t!==Ln))throw pi=gc,dm;e.flags|=8192}}function fs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Co():536870912,e.lanes|=t,ol|=t)}function Ci(e,t){if(!Ke)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ot(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var c=e.child;c!==null;)r|=c.lanes|c.childLanes,o|=c.subtreeFlags&65011712,o|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)r|=c.lanes|c.childLanes,o|=c.subtreeFlags,o|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function T1(e,t,r){var o=t.pendingProps;switch(sc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(t),null;case 1:return ot(t),null;case 3:return r=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),aa(bt),qe(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(si(t)?oa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,om())),ot(t),null;case 26:return r=t.memoizedState,e===null?(oa(t),r!==null?(ot(t),Tp(t,r)):(ot(t),t.flags&=-16777217)):r?r!==e.memoizedState?(oa(t),ot(t),Tp(t,r)):(ot(t),t.flags&=-16777217):(e.memoizedProps!==o&&oa(t),ot(t),t.flags&=-16777217),null;case 27:Ot(t),r=ce.current;var c=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==o&&oa(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return ot(t),null}e=I.current,si(t)?lm(t):(e=Tg(c,o,r),t.stateNode=e,oa(t))}return ot(t),null;case 5:if(Ot(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&oa(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return ot(t),null}if(e=I.current,si(t))lm(t);else{switch(c=Rs(ce.current),e){case 1:e=c.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:e=c.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":e=c.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":e=c.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof o.is=="string"?c.createElement("select",{is:o.is}):c.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e=typeof o.is=="string"?c.createElement(r,{is:o.is}):c.createElement(r)}}e[ae]=t,e[se]=o;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)e.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=e;e:switch(Mt(e,r,o),r){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&oa(t)}}return ot(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&oa(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(i(166));if(e=ce.current,si(t)){if(e=t.stateNode,r=t.memoizedProps,o=null,c=zt,c!==null)switch(c.tag){case 27:case 5:o=c.memoizedProps}e[ae]=t,e=!!(e.nodeValue===r||o!==null&&o.suppressHydrationWarning===!0||wg(e.nodeValue,r)),e||hr(t)}else e=Rs(e).createTextNode(o),e[ae]=t,t.stateNode=e}return ot(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=si(t),o!==null&&o.dehydrated!==null){if(e===null){if(!c)throw Error(i(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(i(317));c[ae]=t}else ui(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ot(t),c=!1}else c=om(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(la(t),t):(la(t),null)}if(la(t),(t.flags&128)!==0)return t.lanes=r,t;if(r=o!==null,e=e!==null&&e.memoizedState!==null,r){o=t.child,c=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(c=o.alternate.memoizedState.cachePool.pool);var d=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==c&&(o.flags|=2048)}return r!==e&&r&&(t.child.flags|=8192),fs(t,t.updateQueue),ot(t),null;case 4:return qe(),e===null&&Sf(t.stateNode.containerInfo),ot(t),null;case 10:return aa(t.type),ot(t),null;case 19:if(j(xt),c=t.memoizedState,c===null)return ot(t),null;if(o=(t.flags&128)!==0,d=c.rendering,d===null)if(o)Ci(c,!1);else{if(ft!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=is(e),d!==null){for(t.flags|=128,Ci(c,!1),e=d.updateQueue,t.updateQueue=e,fs(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)am(r,e),r=r.sibling;return $(xt,xt.current&1|2),t.child}e=e.sibling}c.tail!==null&&Gt()>ms&&(t.flags|=128,o=!0,Ci(c,!1),t.lanes=4194304)}else{if(!o)if(e=is(d),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,fs(t,e),Ci(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!Ke)return ot(t),null}else 2*Gt()-c.renderingStartTime>ms&&r!==536870912&&(t.flags|=128,o=!0,Ci(c,!1),t.lanes=4194304);c.isBackwards?(d.sibling=t.child,t.child=d):(e=c.last,e!==null?e.sibling=d:t.child=d,c.last=d)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Gt(),t.sibling=null,e=xt.current,$(xt,o?e&1|2:e&1),t):(ot(t),null);case 22:case 23:return la(t),wc(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(r&536870912)!==0&&(t.flags&128)===0&&(ot(t),t.subtreeFlags&6&&(t.flags|=8192)):ot(t),r=t.updateQueue,r!==null&&fs(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==r&&(t.flags|=2048),e!==null&&j(gr),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),aa(bt),ot(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function M1(e,t){switch(sc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return aa(bt),qe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ot(t),null;case 13:if(la(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ui()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(xt),null;case 4:return qe(),null;case 10:return aa(t.type),null;case 22:case 23:return la(t),wc(),e!==null&&j(gr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return aa(bt),null;case 25:return null;default:return null}}function Mp(e,t){switch(sc(t),t.tag){case 3:aa(bt),qe();break;case 26:case 27:case 5:Ot(t);break;case 4:qe();break;case 13:la(t);break;case 19:j(xt);break;case 10:aa(t.type);break;case 22:case 23:la(t),wc(),e!==null&&j(gr);break;case 24:aa(bt)}}function Oi(e,t){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var c=o.next;r=c;do{if((r.tag&e)===e){o=void 0;var d=r.create,y=r.inst;o=d(),y.destroy=o}r=r.next}while(r!==c)}}catch(w){et(t,t.return,w)}}function Aa(e,t,r){try{var o=t.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var d=c.next;o=d;do{if((o.tag&e)===e){var y=o.inst,w=y.destroy;if(w!==void 0){y.destroy=void 0,c=t;var M=r,G=w;try{G()}catch(ee){et(c,M,ee)}}}o=o.next}while(o!==d)}}catch(ee){et(t,t.return,ee)}}function jp(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{ym(t,r)}catch(o){et(e,e.return,o)}}}function Dp(e,t,r){r.props=yr(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(o){et(e,t,o)}}function Ai(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof r=="function"?e.refCleanup=r(o):r.current=o}}catch(c){et(e,t,c)}}function zn(e,t){var r=e.ref,o=e.refCleanup;if(r!==null)if(typeof o=="function")try{o()}catch(c){et(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(c){et(e,t,c)}else r.current=null}function _p(e){var t=e.type,r=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&o.focus();break e;case"img":r.src?o.src=r.src:r.srcSet&&(o.srcset=r.srcSet)}}catch(c){et(e,e.return,c)}}function Zc(e,t,r){try{var o=e.stateNode;J1(o,e.type,r,t),o[se]=t}catch(c){et(e,e.return,c)}}function Lp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&za(e.type)||e.tag===4}function Jc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&za(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wc(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Es));else if(o!==4&&(o===27&&za(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(Wc(e,t,r),e=e.sibling;e!==null;)Wc(e,t,r),e=e.sibling}function ds(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(o===27&&za(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(ds(e,t,r),e=e.sibling;e!==null;)ds(e,t,r),e=e.sibling}function zp(e){var t=e.stateNode,r=e.memoizedProps;try{for(var o=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Mt(t,o,r),t[ae]=e,t[se]=r}catch(d){et(e,e.return,d)}}var sa=!1,pt=!1,Ic=!1,kp=typeof WeakSet=="function"?WeakSet:Set,Et=null;function j1(e,t){if(e=e.containerInfo,Rf=Ms,e=Fh(e),Ju(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var c=o.anchorOffset,d=o.focusNode;o=o.focusOffset;try{r.nodeType,d.nodeType}catch{r=null;break e}var y=0,w=-1,M=-1,G=0,ee=0,ne=e,X=null;t:for(;;){for(var Q;ne!==r||c!==0&&ne.nodeType!==3||(w=y+c),ne!==d||o!==0&&ne.nodeType!==3||(M=y+o),ne.nodeType===3&&(y+=ne.nodeValue.length),(Q=ne.firstChild)!==null;)X=ne,ne=Q;for(;;){if(ne===e)break t;if(X===r&&++G===c&&(w=y),X===d&&++ee===o&&(M=y),(Q=ne.nextSibling)!==null)break;ne=X,X=ne.parentNode}ne=Q}r=w===-1||M===-1?null:{start:w,end:M}}else r=null}r=r||{start:0,end:0}}else r=null;for(Cf={focusedElem:e,selectionRange:r},Ms=!1,Et=t;Et!==null;)if(t=Et,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Et=e;else for(;Et!==null;){switch(t=Et,d=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,r=t,c=d.memoizedProps,d=d.memoizedState,o=r.stateNode;try{var Ne=yr(r.type,c,r.elementType===r.type);e=o.getSnapshotBeforeUpdate(Ne,d),o.__reactInternalSnapshotBeforeUpdate=e}catch(Oe){et(r,r.return,Oe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)Nf(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Nf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,Et=e;break}Et=t.return}}function Up(e,t,r){var o=r.flags;switch(r.tag){case 0:case 11:case 15:Na(e,r),o&4&&Oi(5,r);break;case 1:if(Na(e,r),o&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(y){et(r,r.return,y)}else{var c=yr(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){et(r,r.return,y)}}o&64&&jp(r),o&512&&Ai(r,r.return);break;case 3:if(Na(e,r),o&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{ym(e,t)}catch(y){et(r,r.return,y)}}break;case 27:t===null&&o&4&&zp(r);case 26:case 5:Na(e,r),t===null&&o&4&&_p(r),o&512&&Ai(r,r.return);break;case 12:Na(e,r);break;case 13:Na(e,r),o&4&&Bp(e,r),o&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=B1.bind(null,r),rS(e,r))));break;case 22:if(o=r.memoizedState!==null||sa,!o){t=t!==null&&t.memoizedState!==null||pt,c=sa;var d=pt;sa=o,(pt=t)&&!d?Ta(e,r,(r.subtreeFlags&8772)!==0):Na(e,r),sa=c,pt=d}break;case 30:break;default:Na(e,r)}}function Pp(e){var t=e.alternate;t!==null&&(e.alternate=null,Pp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Se(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var rt=null,Bt=!1;function ua(e,t,r){for(r=r.child;r!==null;)Hp(e,t,r),r=r.sibling}function Hp(e,t,r){if(lt&&typeof lt.onCommitFiberUnmount=="function")try{lt.onCommitFiberUnmount(Ut,r)}catch{}switch(r.tag){case 26:pt||zn(r,t),ua(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:pt||zn(r,t);var o=rt,c=Bt;za(r.type)&&(rt=r.stateNode,Bt=!1),ua(e,t,r),ki(r.stateNode),rt=o,Bt=c;break;case 5:pt||zn(r,t);case 6:if(o=rt,c=Bt,rt=null,ua(e,t,r),rt=o,Bt=c,rt!==null)if(Bt)try{(rt.nodeType===9?rt.body:rt.nodeName==="HTML"?rt.ownerDocument.body:rt).removeChild(r.stateNode)}catch(d){et(r,t,d)}else try{rt.removeChild(r.stateNode)}catch(d){et(r,t,d)}break;case 18:rt!==null&&(Bt?(e=rt,Ag(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),Yi(e)):Ag(rt,r.stateNode));break;case 4:o=rt,c=Bt,rt=r.stateNode.containerInfo,Bt=!0,ua(e,t,r),rt=o,Bt=c;break;case 0:case 11:case 14:case 15:pt||Aa(2,r,t),pt||Aa(4,r,t),ua(e,t,r);break;case 1:pt||(zn(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"&&Dp(r,t,o)),ua(e,t,r);break;case 21:ua(e,t,r);break;case 22:pt=(o=pt)||r.memoizedState!==null,ua(e,t,r),pt=o;break;default:ua(e,t,r)}}function Bp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Yi(e)}catch(r){et(t,t.return,r)}}function D1(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new kp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new kp),t;default:throw Error(i(435,e.tag))}}function ef(e,t){var r=D1(e);t.forEach(function(o){var c=$1.bind(null,e,o);r.has(o)||(r.add(o),o.then(c,c))})}function Qt(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var c=r[o],d=e,y=t,w=y;e:for(;w!==null;){switch(w.tag){case 27:if(za(w.type)){rt=w.stateNode,Bt=!1;break e}break;case 5:rt=w.stateNode,Bt=!1;break e;case 3:case 4:rt=w.stateNode.containerInfo,Bt=!0;break e}w=w.return}if(rt===null)throw Error(i(160));Hp(d,y,c),rt=null,Bt=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)$p(t,e),t=t.sibling}var En=null;function $p(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Qt(t,e),Zt(e),o&4&&(Aa(3,e,e.return),Oi(3,e),Aa(5,e,e.return));break;case 1:Qt(t,e),Zt(e),o&512&&(pt||r===null||zn(r,r.return)),o&64&&sa&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?o:r.concat(o))));break;case 26:var c=En;if(Qt(t,e),Zt(e),o&512&&(pt||r===null||zn(r,r.return)),o&4){var d=r!==null?r.memoizedState:null;if(o=e.memoizedState,r===null)if(o===null)if(e.stateNode===null){e:{o=e.type,r=e.memoizedProps,c=c.ownerDocument||c;t:switch(o){case"title":d=c.getElementsByTagName("title")[0],(!d||d[ye]||d[ae]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(o),c.head.insertBefore(d,c.querySelector("head > title"))),Mt(d,o,r),d[ae]=e,je(d),o=d;break e;case"link":var y=zg("link","href",c).get(o+(r.href||""));if(y){for(var w=0;w<y.length;w++)if(d=y[w],d.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&d.getAttribute("rel")===(r.rel==null?null:r.rel)&&d.getAttribute("title")===(r.title==null?null:r.title)&&d.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){y.splice(w,1);break t}}d=c.createElement(o),Mt(d,o,r),c.head.appendChild(d);break;case"meta":if(y=zg("meta","content",c).get(o+(r.content||""))){for(w=0;w<y.length;w++)if(d=y[w],d.getAttribute("content")===(r.content==null?null:""+r.content)&&d.getAttribute("name")===(r.name==null?null:r.name)&&d.getAttribute("property")===(r.property==null?null:r.property)&&d.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&d.getAttribute("charset")===(r.charSet==null?null:r.charSet)){y.splice(w,1);break t}}d=c.createElement(o),Mt(d,o,r),c.head.appendChild(d);break;default:throw Error(i(468,o))}d[ae]=e,je(d),o=d}e.stateNode=o}else kg(c,e.type,e.stateNode);else e.stateNode=Lg(c,o,e.memoizedProps);else d!==o?(d===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):d.count--,o===null?kg(c,e.type,e.stateNode):Lg(c,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Zc(e,e.memoizedProps,r.memoizedProps)}break;case 27:Qt(t,e),Zt(e),o&512&&(pt||r===null||zn(r,r.return)),r!==null&&o&4&&Zc(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Qt(t,e),Zt(e),o&512&&(pt||r===null||zn(r,r.return)),e.flags&32){c=e.stateNode;try{Hr(c,"")}catch(Q){et(e,e.return,Q)}}o&4&&e.stateNode!=null&&(c=e.memoizedProps,Zc(e,c,r!==null?r.memoizedProps:c)),o&1024&&(Ic=!0);break;case 6:if(Qt(t,e),Zt(e),o&4){if(e.stateNode===null)throw Error(i(162));o=e.memoizedProps,r=e.stateNode;try{r.nodeValue=o}catch(Q){et(e,e.return,Q)}}break;case 3:if(As=null,c=En,En=Cs(t.containerInfo),Qt(t,e),En=c,Zt(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{Yi(t.containerInfo)}catch(Q){et(e,e.return,Q)}Ic&&(Ic=!1,Vp(e));break;case 4:o=En,En=Cs(e.stateNode.containerInfo),Qt(t,e),Zt(e),En=o;break;case 12:Qt(t,e),Zt(e);break;case 13:Qt(t,e),Zt(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(of=Gt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,ef(e,o)));break;case 22:c=e.memoizedState!==null;var M=r!==null&&r.memoizedState!==null,G=sa,ee=pt;if(sa=G||c,pt=ee||M,Qt(t,e),pt=ee,sa=G,Zt(e),o&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(r===null||M||sa||pt||br(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){M=r=t;try{if(d=M.stateNode,c)y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{w=M.stateNode;var ne=M.memoizedProps.style,X=ne!=null&&ne.hasOwnProperty("display")?ne.display:null;w.style.display=X==null||typeof X=="boolean"?"":(""+X).trim()}}catch(Q){et(M,M.return,Q)}}}else if(t.tag===6){if(r===null){M=t;try{M.stateNode.nodeValue=c?"":M.memoizedProps}catch(Q){et(M,M.return,Q)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(r=o.retryQueue,r!==null&&(o.retryQueue=null,ef(e,r))));break;case 19:Qt(t,e),Zt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,ef(e,o)));break;case 30:break;case 21:break;default:Qt(t,e),Zt(e)}}function Zt(e){var t=e.flags;if(t&2){try{for(var r,o=e.return;o!==null;){if(Lp(o)){r=o;break}o=o.return}if(r==null)throw Error(i(160));switch(r.tag){case 27:var c=r.stateNode,d=Jc(e);ds(e,d,c);break;case 5:var y=r.stateNode;r.flags&32&&(Hr(y,""),r.flags&=-33);var w=Jc(e);ds(e,w,y);break;case 3:case 4:var M=r.stateNode.containerInfo,G=Jc(e);Wc(e,G,M);break;default:throw Error(i(161))}}catch(ee){et(e,e.return,ee)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Vp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Na(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Up(e,t.alternate,t),t=t.sibling}function br(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Aa(4,t,t.return),br(t);break;case 1:zn(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&Dp(t,t.return,r),br(t);break;case 27:ki(t.stateNode);case 26:case 5:zn(t,t.return),br(t);break;case 22:t.memoizedState===null&&br(t);break;case 30:br(t);break;default:br(t)}e=e.sibling}}function Ta(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,c=e,d=t,y=d.flags;switch(d.tag){case 0:case 11:case 15:Ta(c,d,r),Oi(4,d);break;case 1:if(Ta(c,d,r),o=d,c=o.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(G){et(o,o.return,G)}if(o=d,c=o.updateQueue,c!==null){var w=o.stateNode;try{var M=c.shared.hiddenCallbacks;if(M!==null)for(c.shared.hiddenCallbacks=null,c=0;c<M.length;c++)vm(M[c],w)}catch(G){et(o,o.return,G)}}r&&y&64&&jp(d),Ai(d,d.return);break;case 27:zp(d);case 26:case 5:Ta(c,d,r),r&&o===null&&y&4&&_p(d),Ai(d,d.return);break;case 12:Ta(c,d,r);break;case 13:Ta(c,d,r),r&&y&4&&Bp(c,d);break;case 22:d.memoizedState===null&&Ta(c,d,r),Ai(d,d.return);break;case 30:break;default:Ta(c,d,r)}t=t.sibling}}function tf(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&di(r))}function nf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&di(e))}function kn(e,t,r,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)qp(e,t,r,o),t=t.sibling}function qp(e,t,r,o){var c=t.flags;switch(t.tag){case 0:case 11:case 15:kn(e,t,r,o),c&2048&&Oi(9,t);break;case 1:kn(e,t,r,o);break;case 3:kn(e,t,r,o),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&di(e)));break;case 12:if(c&2048){kn(e,t,r,o),e=t.stateNode;try{var d=t.memoizedProps,y=d.id,w=d.onPostCommit;typeof w=="function"&&w(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){et(t,t.return,M)}}else kn(e,t,r,o);break;case 13:kn(e,t,r,o);break;case 23:break;case 22:d=t.stateNode,y=t.alternate,t.memoizedState!==null?d._visibility&2?kn(e,t,r,o):Ni(e,t):d._visibility&2?kn(e,t,r,o):(d._visibility|=2,rl(e,t,r,o,(t.subtreeFlags&10256)!==0)),c&2048&&tf(y,t);break;case 24:kn(e,t,r,o),c&2048&&nf(t.alternate,t);break;default:kn(e,t,r,o)}}function rl(e,t,r,o,c){for(c=c&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var d=e,y=t,w=r,M=o,G=y.flags;switch(y.tag){case 0:case 11:case 15:rl(d,y,w,M,c),Oi(8,y);break;case 23:break;case 22:var ee=y.stateNode;y.memoizedState!==null?ee._visibility&2?rl(d,y,w,M,c):Ni(d,y):(ee._visibility|=2,rl(d,y,w,M,c)),c&&G&2048&&tf(y.alternate,y);break;case 24:rl(d,y,w,M,c),c&&G&2048&&nf(y.alternate,y);break;default:rl(d,y,w,M,c)}t=t.sibling}}function Ni(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,o=t,c=o.flags;switch(o.tag){case 22:Ni(r,o),c&2048&&tf(o.alternate,o);break;case 24:Ni(r,o),c&2048&&nf(o.alternate,o);break;default:Ni(r,o)}t=t.sibling}}var Ti=8192;function ll(e){if(e.subtreeFlags&Ti)for(e=e.child;e!==null;)Yp(e),e=e.sibling}function Yp(e){switch(e.tag){case 26:ll(e),e.flags&Ti&&e.memoizedState!==null&&vS(En,e.memoizedState,e.memoizedProps);break;case 5:ll(e);break;case 3:case 4:var t=En;En=Cs(e.stateNode.containerInfo),ll(e),En=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Ti,Ti=16777216,ll(e),Ti=t):ll(e));break;default:ll(e)}}function Gp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Mi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var o=t[r];Et=o,Fp(o,e)}Gp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Kp(e),e=e.sibling}function Kp(e){switch(e.tag){case 0:case 11:case 15:Mi(e),e.flags&2048&&Aa(9,e,e.return);break;case 3:Mi(e);break;case 12:Mi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,hs(e)):Mi(e);break;default:Mi(e)}}function hs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var o=t[r];Et=o,Fp(o,e)}Gp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Aa(8,t,t.return),hs(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,hs(t));break;default:hs(t)}e=e.sibling}}function Fp(e,t){for(;Et!==null;){var r=Et;switch(r.tag){case 0:case 11:case 15:Aa(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var o=r.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:di(r.memoizedState.cache)}if(o=r.child,o!==null)o.return=r,Et=o;else e:for(r=e;Et!==null;){o=Et;var c=o.sibling,d=o.return;if(Pp(o),o===r){Et=null;break e}if(c!==null){c.return=d,Et=c;break e}Et=d}}}var _1={getCacheForType:function(e){var t=jt(bt),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r}},L1=typeof WeakMap=="function"?WeakMap:Map,Xe=0,tt=null,He=null,Ve=0,Qe=0,Jt=null,Ma=!1,il=!1,af=!1,ca=0,ft=0,ja=0,xr=0,rf=0,gn=0,ol=0,ji=null,$t=null,lf=!1,of=0,ms=1/0,ps=null,Da=null,Tt=0,_a=null,sl=null,ul=0,sf=0,uf=null,Xp=null,Di=0,cf=null;function Wt(){if((Xe&2)!==0&&Ve!==0)return Ve&-Ve;if(R.T!==null){var e=Zr;return e!==0?e:vf()}return L()}function Qp(){gn===0&&(gn=(Ve&536870912)===0||Ke?zr():536870912);var e=pn.current;return e!==null&&(e.flags|=32),gn}function It(e,t,r){(e===tt&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)&&(cl(e,0),La(e,Ve,gn,!1)),nr(e,r),((Xe&2)===0||e!==tt)&&(e===tt&&((Xe&2)===0&&(xr|=r),ft===4&&La(e,Ve,gn,!1)),Un(e))}function Zp(e,t,r){if((Xe&6)!==0)throw Error(i(327));var o=!r&&(t&124)===0&&(t&e.expiredLanes)===0||jn(e,t),c=o?U1(e,t):hf(e,t,!0),d=o;do{if(c===0){il&&!o&&La(e,t,0,!1);break}else{if(r=e.current.alternate,d&&!z1(r)){c=hf(e,t,!1),d=!1;continue}if(c===2){if(d=t,e.errorRecoveryDisabledLanes&d)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var w=e;c=ji;var M=w.current.memoizedState.isDehydrated;if(M&&(cl(w,y).flags|=256),y=hf(w,y,!1),y!==2){if(af&&!M){w.errorRecoveryDisabledLanes|=d,xr|=d,c=4;break e}d=$t,$t=c,d!==null&&($t===null?$t=d:$t.push.apply($t,d))}c=y}if(d=!1,c!==2)continue}}if(c===1){cl(e,0),La(e,t,0,!0);break}e:{switch(o=e,d=c,d){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:La(o,t,gn,!Ma);break e;case 2:$t=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(c=of+300-Gt(),10<c)){if(La(o,t,gn,!Ma),tr(o,0,!0)!==0)break e;o.timeoutHandle=Cg(Jp.bind(null,o,r,$t,ps,lf,t,gn,xr,ol,Ma,d,2,-0,0),c);break e}Jp(o,r,$t,ps,lf,t,gn,xr,ol,Ma,d,0,-0,0)}}break}while(!0);Un(e)}function Jp(e,t,r,o,c,d,y,w,M,G,ee,ne,X,Q){if(e.timeoutHandle=-1,ne=t.subtreeFlags,(ne&8192||(ne&16785408)===16785408)&&(Hi={stylesheets:null,count:0,unsuspend:gS},Yp(t),ne=yS(),ne!==null)){e.cancelPendingCommit=ne(rg.bind(null,e,t,d,r,o,c,y,w,M,ee,1,X,Q)),La(e,d,y,!G);return}rg(e,t,d,r,o,c,y,w,M)}function z1(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var o=0;o<r.length;o++){var c=r[o],d=c.getSnapshot;c=c.value;try{if(!Ft(d(),c))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function La(e,t,r,o){t&=~rf,t&=~xr,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var c=t;0<c;){var d=31-At(c),y=1<<d;o[d]=-1,c&=~y}r!==0&&ar(e,r,t)}function gs(){return(Xe&6)===0?(_i(0),!1):!0}function ff(){if(He!==null){if(Qe===0)var e=He.return;else e=He,na=mr=null,Ac(e),nl=null,Ei=0,e=He;for(;e!==null;)Mp(e.alternate,e),e=e.return;He=null}}function cl(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,I1(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),ff(),tt=e,He=r=In(e.current,null),Ve=t,Qe=0,Jt=null,Ma=!1,il=jn(e,t),af=!1,ol=gn=rf=xr=ja=ft=0,$t=ji=null,lf=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var c=31-At(o),d=1<<c;t|=e[c],o&=~d}return ca=t,Po(),r}function Wp(e,t){Le=null,R.H=as,t===mi||t===Fo?(t=pm(),Qe=3):t===dm?(t=pm(),Qe=4):Qe=t===gp?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Jt=t,He===null&&(ft=1,ss(e,fn(t,e.current)))}function Ip(){var e=R.H;return R.H=as,e===null?as:e}function eg(){var e=R.A;return R.A=_1,e}function df(){ft=4,Ma||(Ve&4194048)!==Ve&&pn.current!==null||(il=!0),(ja&134217727)===0&&(xr&134217727)===0||tt===null||La(tt,Ve,gn,!1)}function hf(e,t,r){var o=Xe;Xe|=2;var c=Ip(),d=eg();(tt!==e||Ve!==t)&&(ps=null,cl(e,t)),t=!1;var y=ft;e:do try{if(Qe!==0&&He!==null){var w=He,M=Jt;switch(Qe){case 8:ff(),y=6;break e;case 3:case 2:case 9:case 6:pn.current===null&&(t=!0);var G=Qe;if(Qe=0,Jt=null,fl(e,w,M,G),r&&il){y=0;break e}break;default:G=Qe,Qe=0,Jt=null,fl(e,w,M,G)}}k1(),y=ft;break}catch(ee){Wp(e,ee)}while(!0);return t&&e.shellSuspendCounter++,na=mr=null,Xe=o,R.H=c,R.A=d,He===null&&(tt=null,Ve=0,Po()),y}function k1(){for(;He!==null;)tg(He)}function U1(e,t){var r=Xe;Xe|=2;var o=Ip(),c=eg();tt!==e||Ve!==t?(ps=null,ms=Gt()+500,cl(e,t)):il=jn(e,t);e:do try{if(Qe!==0&&He!==null){t=He;var d=Jt;t:switch(Qe){case 1:Qe=0,Jt=null,fl(e,t,d,1);break;case 2:case 9:if(hm(d)){Qe=0,Jt=null,ng(t);break}t=function(){Qe!==2&&Qe!==9||tt!==e||(Qe=7),Un(e)},d.then(t,t);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:hm(d)?(Qe=0,Jt=null,ng(t)):(Qe=0,Jt=null,fl(e,t,d,7));break;case 5:var y=null;switch(He.tag){case 26:y=He.memoizedState;case 5:case 27:var w=He;if(!y||Ug(y)){Qe=0,Jt=null;var M=w.sibling;if(M!==null)He=M;else{var G=w.return;G!==null?(He=G,vs(G)):He=null}break t}}Qe=0,Jt=null,fl(e,t,d,5);break;case 6:Qe=0,Jt=null,fl(e,t,d,6);break;case 8:ff(),ft=6;break e;default:throw Error(i(462))}}P1();break}catch(ee){Wp(e,ee)}while(!0);return na=mr=null,R.H=o,R.A=c,Xe=r,He!==null?0:(tt=null,Ve=0,Po(),ft)}function P1(){for(;He!==null&&!Du();)tg(He)}function tg(e){var t=Np(e.alternate,e,ca);e.memoizedProps=e.pendingProps,t===null?vs(e):He=t}function ng(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=wp(r,t,t.pendingProps,t.type,void 0,Ve);break;case 11:t=wp(r,t,t.pendingProps,t.type.render,t.ref,Ve);break;case 5:Ac(t);default:Mp(r,t),t=He=am(t,ca),t=Np(r,t,ca)}e.memoizedProps=e.pendingProps,t===null?vs(e):He=t}function fl(e,t,r,o){na=mr=null,Ac(t),nl=null,Ei=0;var c=t.return;try{if(A1(e,c,t,r,Ve)){ft=1,ss(e,fn(r,e.current)),He=null;return}}catch(d){if(c!==null)throw He=c,d;ft=1,ss(e,fn(r,e.current)),He=null;return}t.flags&32768?(Ke||o===1?e=!0:il||(Ve&536870912)!==0?e=!1:(Ma=e=!0,(o===2||o===9||o===3||o===6)&&(o=pn.current,o!==null&&o.tag===13&&(o.flags|=16384))),ag(t,e)):vs(t)}function vs(e){var t=e;do{if((t.flags&32768)!==0){ag(t,Ma);return}e=t.return;var r=T1(t.alternate,t,ca);if(r!==null){He=r;return}if(t=t.sibling,t!==null){He=t;return}He=t=e}while(t!==null);ft===0&&(ft=5)}function ag(e,t){do{var r=M1(e.alternate,e);if(r!==null){r.flags&=32767,He=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){He=e;return}He=e=r}while(e!==null);ft=6,He=null}function rg(e,t,r,o,c,d,y,w,M){e.cancelPendingCommit=null;do ys();while(Tt!==0);if((Xe&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(d=t.lanes|t.childLanes,d|=nc,Oo(e,r,d,y,w,M),e===tt&&(He=tt=null,Ve=0),sl=t,_a=e,ul=r,sf=d,uf=c,Xp=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,V1(Lr,function(){return ug(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=R.T,R.T=null,c=z.p,z.p=2,y=Xe,Xe|=4;try{j1(e,t,r)}finally{Xe=y,z.p=c,R.T=o}}Tt=1,lg(),ig(),og()}}function lg(){if(Tt===1){Tt=0;var e=_a,t=sl,r=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||r){r=R.T,R.T=null;var o=z.p;z.p=2;var c=Xe;Xe|=4;try{$p(t,e);var d=Cf,y=Fh(e.containerInfo),w=d.focusedElem,M=d.selectionRange;if(y!==w&&w&&w.ownerDocument&&Kh(w.ownerDocument.documentElement,w)){if(M!==null&&Ju(w)){var G=M.start,ee=M.end;if(ee===void 0&&(ee=G),"selectionStart"in w)w.selectionStart=G,w.selectionEnd=Math.min(ee,w.value.length);else{var ne=w.ownerDocument||document,X=ne&&ne.defaultView||window;if(X.getSelection){var Q=X.getSelection(),Ne=w.textContent.length,Oe=Math.min(M.start,Ne),Ie=M.end===void 0?Oe:Math.min(M.end,Ne);!Q.extend&&Oe>Ie&&(y=Ie,Ie=Oe,Oe=y);var B=Gh(w,Oe),k=Gh(w,Ie);if(B&&k&&(Q.rangeCount!==1||Q.anchorNode!==B.node||Q.anchorOffset!==B.offset||Q.focusNode!==k.node||Q.focusOffset!==k.offset)){var Y=ne.createRange();Y.setStart(B.node,B.offset),Q.removeAllRanges(),Oe>Ie?(Q.addRange(Y),Q.extend(k.node,k.offset)):(Y.setEnd(k.node,k.offset),Q.addRange(Y))}}}}for(ne=[],Q=w;Q=Q.parentNode;)Q.nodeType===1&&ne.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<ne.length;w++){var te=ne[w];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}Ms=!!Rf,Cf=Rf=null}finally{Xe=c,z.p=o,R.T=r}}e.current=t,Tt=2}}function ig(){if(Tt===2){Tt=0;var e=_a,t=sl,r=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||r){r=R.T,R.T=null;var o=z.p;z.p=2;var c=Xe;Xe|=4;try{Up(e,t.alternate,t)}finally{Xe=c,z.p=o,R.T=r}}Tt=3}}function og(){if(Tt===4||Tt===3){Tt=0,_u();var e=_a,t=sl,r=ul,o=Xp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Tt=5:(Tt=0,sl=_a=null,sg(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Da=null),Wl(r),t=t.stateNode,lt&&typeof lt.onCommitFiberRoot=="function")try{lt.onCommitFiberRoot(Ut,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=R.T,c=z.p,z.p=2,R.T=null;try{for(var d=e.onRecoverableError,y=0;y<o.length;y++){var w=o[y];d(w.value,{componentStack:w.stack})}}finally{R.T=t,z.p=c}}(ul&3)!==0&&ys(),Un(e),c=e.pendingLanes,(r&4194090)!==0&&(c&42)!==0?e===cf?Di++:(Di=0,cf=e):Di=0,_i(0)}}function sg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,di(t)))}function ys(e){return lg(),ig(),og(),ug()}function ug(){if(Tt!==5)return!1;var e=_a,t=sf;sf=0;var r=Wl(ul),o=R.T,c=z.p;try{z.p=32>r?32:r,R.T=null,r=uf,uf=null;var d=_a,y=ul;if(Tt=0,sl=_a=null,ul=0,(Xe&6)!==0)throw Error(i(331));var w=Xe;if(Xe|=4,Kp(d.current),qp(d,d.current,y,r),Xe=w,_i(0,!1),lt&&typeof lt.onPostCommitFiberRoot=="function")try{lt.onPostCommitFiberRoot(Ut,d)}catch{}return!0}finally{z.p=c,R.T=o,sg(e,t)}}function cg(e,t,r){t=fn(r,t),t=$c(e.stateNode,t,2),e=Ea(e,t,2),e!==null&&(nr(e,2),Un(e))}function et(e,t,r){if(e.tag===3)cg(e,e,r);else for(;t!==null;){if(t.tag===3){cg(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Da===null||!Da.has(o))){e=fn(r,e),r=mp(2),o=Ea(t,r,2),o!==null&&(pp(r,o,t,e),nr(o,2),Un(o));break}}t=t.return}}function mf(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new L1;var c=new Set;o.set(t,c)}else c=o.get(t),c===void 0&&(c=new Set,o.set(t,c));c.has(r)||(af=!0,c.add(r),e=H1.bind(null,e,t,r),t.then(e,e))}function H1(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,tt===e&&(Ve&r)===r&&(ft===4||ft===3&&(Ve&62914560)===Ve&&300>Gt()-of?(Xe&2)===0&&cl(e,0):rf|=r,ol===Ve&&(ol=0)),Un(e)}function fg(e,t){t===0&&(t=Co()),e=Kr(e,t),e!==null&&(nr(e,t),Un(e))}function B1(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),fg(e,r)}function $1(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,c=e.memoizedState;c!==null&&(r=c.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(t),fg(e,r)}function V1(e,t){return Tn(e,t)}var bs=null,dl=null,pf=!1,xs=!1,gf=!1,Sr=0;function Un(e){e!==dl&&e.next===null&&(dl===null?bs=dl=e:dl=dl.next=e),xs=!0,pf||(pf=!0,Y1())}function _i(e,t){if(!gf&&xs){gf=!0;do for(var r=!1,o=bs;o!==null;){if(e!==0){var c=o.pendingLanes;if(c===0)var d=0;else{var y=o.suspendedLanes,w=o.pingedLanes;d=(1<<31-At(42|e)+1)-1,d&=c&~(y&~w),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(r=!0,pg(o,d))}else d=Ve,d=tr(o,o===tt?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(d&3)===0||jn(o,d)||(r=!0,pg(o,d));o=o.next}while(r);gf=!1}}function q1(){dg()}function dg(){xs=pf=!1;var e=0;Sr!==0&&(W1()&&(e=Sr),Sr=0);for(var t=Gt(),r=null,o=bs;o!==null;){var c=o.next,d=hg(o,t);d===0?(o.next=null,r===null?bs=c:r.next=c,c===null&&(dl=r)):(r=o,(e!==0||(d&3)!==0)&&(xs=!0)),o=c}_i(e)}function hg(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var y=31-At(d),w=1<<y,M=c[y];M===-1?((w&r)===0||(w&o)!==0)&&(c[y]=Ro(w,t)):M<=t&&(e.expiredLanes|=w),d&=~w}if(t=tt,r=Ve,r=tr(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,r===0||e===t&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&xn(o),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||jn(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(o!==null&&xn(o),Wl(r)){case 2:case 8:r=So;break;case 32:r=Lr;break;case 268435456:r=ga;break;default:r=Lr}return o=mg.bind(null,e),r=Tn(r,o),e.callbackPriority=t,e.callbackNode=r,t}return o!==null&&o!==null&&xn(o),e.callbackPriority=2,e.callbackNode=null,2}function mg(e,t){if(Tt!==0&&Tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(ys()&&e.callbackNode!==r)return null;var o=Ve;return o=tr(e,e===tt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(Zp(e,o,t),hg(e,Gt()),e.callbackNode!=null&&e.callbackNode===r?mg.bind(null,e):null)}function pg(e,t){if(ys())return null;Zp(e,t,!0)}function Y1(){eS(function(){(Xe&6)!==0?Tn(xo,q1):dg()})}function vf(){return Sr===0&&(Sr=zr()),Sr}function gg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:jo(""+e)}function vg(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function G1(e,t,r,o,c){if(t==="submit"&&r&&r.stateNode===c){var d=gg((c[se]||null).action),y=o.submitter;y&&(t=(t=y[se]||null)?gg(t.formAction):y.getAttribute("formAction"),t!==null&&(d=t,y=null));var w=new zo("action","action",null,o,c);e.push({event:w,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Sr!==0){var M=y?vg(c,y):new FormData(c);kc(r,{pending:!0,data:M,method:c.method,action:d},null,M)}}else typeof d=="function"&&(w.preventDefault(),M=y?vg(c,y):new FormData(c),kc(r,{pending:!0,data:M,method:c.method,action:d},d,M))},currentTarget:c}]})}}for(var yf=0;yf<tc.length;yf++){var bf=tc[yf],K1=bf.toLowerCase(),F1=bf[0].toUpperCase()+bf.slice(1);wn(K1,"on"+F1)}wn(Zh,"onAnimationEnd"),wn(Jh,"onAnimationIteration"),wn(Wh,"onAnimationStart"),wn("dblclick","onDoubleClick"),wn("focusin","onFocus"),wn("focusout","onBlur"),wn(c1,"onTransitionRun"),wn(f1,"onTransitionStart"),wn(d1,"onTransitionCancel"),wn(Ih,"onTransitionEnd"),Lt("onMouseEnter",["mouseout","mouseover"]),Lt("onMouseLeave",["mouseout","mouseover"]),Lt("onPointerEnter",["pointerout","pointerover"]),Lt("onPointerLeave",["pointerout","pointerover"]),Kt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Li="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),X1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Li));function yg(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],c=o.event;o=o.listeners;e:{var d=void 0;if(t)for(var y=o.length-1;0<=y;y--){var w=o[y],M=w.instance,G=w.currentTarget;if(w=w.listener,M!==d&&c.isPropagationStopped())break e;d=w,c.currentTarget=G;try{d(c)}catch(ee){os(ee)}c.currentTarget=null,d=M}else for(y=0;y<o.length;y++){if(w=o[y],M=w.instance,G=w.currentTarget,w=w.listener,M!==d&&c.isPropagationStopped())break e;d=w,c.currentTarget=G;try{d(c)}catch(ee){os(ee)}c.currentTarget=null,d=M}}}}function Be(e,t){var r=t[be];r===void 0&&(r=t[be]=new Set);var o=e+"__bubble";r.has(o)||(bg(t,e,2,!1),r.add(o))}function xf(e,t,r){var o=0;t&&(o|=4),bg(r,e,o,t)}var Ss="_reactListening"+Math.random().toString(36).slice(2);function Sf(e){if(!e[Ss]){e[Ss]=!0,Ze.forEach(function(r){r!=="selectionchange"&&(X1.has(r)||xf(r,!1,e),xf(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ss]||(t[Ss]=!0,xf("selectionchange",!1,t))}}function bg(e,t,r,o){switch(qg(t)){case 2:var c=SS;break;case 8:c=wS;break;default:c=zf}r=c.bind(null,t,r,e),c=void 0,!Vu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),o?c!==void 0?e.addEventListener(t,r,{capture:!0,passive:c}):e.addEventListener(t,r,!0):c!==void 0?e.addEventListener(t,r,{passive:c}):e.addEventListener(t,r,!1)}function wf(e,t,r,o,c){var d=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var y=o.tag;if(y===3||y===4){var w=o.stateNode.containerInfo;if(w===c)break;if(y===4)for(y=o.return;y!==null;){var M=y.tag;if((M===3||M===4)&&y.stateNode.containerInfo===c)return;y=y.return}for(;w!==null;){if(y=_e(w),y===null)return;if(M=y.tag,M===5||M===6||M===26||M===27){o=d=y;continue e}w=w.parentNode}}o=o.return}Oh(function(){var G=d,ee=Bu(r),ne=[];e:{var X=em.get(e);if(X!==void 0){var Q=zo,Ne=e;switch(e){case"keypress":if(_o(r)===0)break e;case"keydown":case"keyup":Q=Vx;break;case"focusin":Ne="focus",Q=Ku;break;case"focusout":Ne="blur",Q=Ku;break;case"beforeblur":case"afterblur":Q=Ku;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=Th;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=Mx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=Gx;break;case Zh:case Jh:case Wh:Q=_x;break;case Ih:Q=Fx;break;case"scroll":case"scrollend":Q=Nx;break;case"wheel":Q=Qx;break;case"copy":case"cut":case"paste":Q=zx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=jh;break;case"toggle":case"beforetoggle":Q=Jx}var Oe=(t&4)!==0,Ie=!Oe&&(e==="scroll"||e==="scrollend"),B=Oe?X!==null?X+"Capture":null:X;Oe=[];for(var k=G,Y;k!==null;){var te=k;if(Y=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||Y===null||B===null||(te=Il(k,B),te!=null&&Oe.push(zi(k,te,Y))),Ie)break;k=k.return}0<Oe.length&&(X=new Q(X,Ne,null,r,ee),ne.push({event:X,listeners:Oe}))}}if((t&7)===0){e:{if(X=e==="mouseover"||e==="pointerover",Q=e==="mouseout"||e==="pointerout",X&&r!==Hu&&(Ne=r.relatedTarget||r.fromElement)&&(_e(Ne)||Ne[ge]))break e;if((Q||X)&&(X=ee.window===ee?ee:(X=ee.ownerDocument)?X.defaultView||X.parentWindow:window,Q?(Ne=r.relatedTarget||r.toElement,Q=G,Ne=Ne?_e(Ne):null,Ne!==null&&(Ie=u(Ne),Oe=Ne.tag,Ne!==Ie||Oe!==5&&Oe!==27&&Oe!==6)&&(Ne=null)):(Q=null,Ne=G),Q!==Ne)){if(Oe=Th,te="onMouseLeave",B="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(Oe=jh,te="onPointerLeave",B="onPointerEnter",k="pointer"),Ie=Q==null?X:st(Q),Y=Ne==null?X:st(Ne),X=new Oe(te,k+"leave",Q,r,ee),X.target=Ie,X.relatedTarget=Y,te=null,_e(ee)===G&&(Oe=new Oe(B,k+"enter",Ne,r,ee),Oe.target=Y,Oe.relatedTarget=Ie,te=Oe),Ie=te,Q&&Ne)t:{for(Oe=Q,B=Ne,k=0,Y=Oe;Y;Y=hl(Y))k++;for(Y=0,te=B;te;te=hl(te))Y++;for(;0<k-Y;)Oe=hl(Oe),k--;for(;0<Y-k;)B=hl(B),Y--;for(;k--;){if(Oe===B||B!==null&&Oe===B.alternate)break t;Oe=hl(Oe),B=hl(B)}Oe=null}else Oe=null;Q!==null&&xg(ne,X,Q,Oe,!1),Ne!==null&&Ie!==null&&xg(ne,Ie,Ne,Oe,!0)}}e:{if(X=G?st(G):window,Q=X.nodeName&&X.nodeName.toLowerCase(),Q==="select"||Q==="input"&&X.type==="file")var he=Hh;else if(Uh(X))if(Bh)he=o1;else{he=l1;var Ue=r1}else Q=X.nodeName,!Q||Q.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?G&&Pu(G.elementType)&&(he=Hh):he=i1;if(he&&(he=he(e,G))){Ph(ne,he,r,ee);break e}Ue&&Ue(e,X,G),e==="focusout"&&G&&X.type==="number"&&G.memoizedProps.value!=null&&Uu(X,"number",X.value)}switch(Ue=G?st(G):window,e){case"focusin":(Uh(Ue)||Ue.contentEditable==="true")&&(qr=Ue,Wu=G,oi=null);break;case"focusout":oi=Wu=qr=null;break;case"mousedown":Iu=!0;break;case"contextmenu":case"mouseup":case"dragend":Iu=!1,Xh(ne,r,ee);break;case"selectionchange":if(u1)break;case"keydown":case"keyup":Xh(ne,r,ee)}var we;if(Xu)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else Vr?zh(e,r)&&(Ae="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Ae="onCompositionStart");Ae&&(Dh&&r.locale!=="ko"&&(Vr||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&Vr&&(we=Ah()):(ba=ee,qu="value"in ba?ba.value:ba.textContent,Vr=!0)),Ue=ws(G,Ae),0<Ue.length&&(Ae=new Mh(Ae,e,null,r,ee),ne.push({event:Ae,listeners:Ue}),we?Ae.data=we:(we=kh(r),we!==null&&(Ae.data=we)))),(we=Ix?e1(e,r):t1(e,r))&&(Ae=ws(G,"onBeforeInput"),0<Ae.length&&(Ue=new Mh("onBeforeInput","beforeinput",null,r,ee),ne.push({event:Ue,listeners:Ae}),Ue.data=we)),G1(ne,e,G,r,ee)}yg(ne,t)})}function zi(e,t,r){return{instance:e,listener:t,currentTarget:r}}function ws(e,t){for(var r=t+"Capture",o=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=Il(e,r),c!=null&&o.unshift(zi(e,c,d)),c=Il(e,t),c!=null&&o.push(zi(e,c,d))),e.tag===3)return o;e=e.return}return[]}function hl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function xg(e,t,r,o,c){for(var d=t._reactName,y=[];r!==null&&r!==o;){var w=r,M=w.alternate,G=w.stateNode;if(w=w.tag,M!==null&&M===o)break;w!==5&&w!==26&&w!==27||G===null||(M=G,c?(G=Il(r,d),G!=null&&y.unshift(zi(r,G,M))):c||(G=Il(r,d),G!=null&&y.push(zi(r,G,M)))),r=r.return}y.length!==0&&e.push({event:t,listeners:y})}var Q1=/\r\n?/g,Z1=/\u0000|\uFFFD/g;function Sg(e){return(typeof e=="string"?e:""+e).replace(Q1,`
|
|
56
|
+
`).replace(Z1,"")}function wg(e,t){return t=Sg(t),Sg(e)===t}function Es(){}function We(e,t,r,o,c,d){switch(r){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||Hr(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&Hr(e,""+o);break;case"className":Jn(e,"class",o);break;case"tabIndex":Jn(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Jn(e,r,o);break;case"style":Rh(e,o,d);break;case"data":if(t!=="object"){Jn(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=jo(""+o),e.setAttribute(r,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(r==="formAction"?(t!=="input"&&We(e,t,"name",c.name,c,null),We(e,t,"formEncType",c.formEncType,c,null),We(e,t,"formMethod",c.formMethod,c,null),We(e,t,"formTarget",c.formTarget,c,null)):(We(e,t,"encType",c.encType,c,null),We(e,t,"method",c.method,c,null),We(e,t,"target",c.target,c,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=jo(""+o),e.setAttribute(r,o);break;case"onClick":o!=null&&(e.onclick=Es);break;case"onScroll":o!=null&&Be("scroll",e);break;case"onScrollEnd":o!=null&&Be("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(r=o.__html,r!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=r}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}r=jo(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""+o):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":o===!0?e.setAttribute(r,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,o):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(r,o):e.removeAttribute(r);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(r):e.setAttribute(r,o);break;case"popover":Be("beforetoggle",e),Be("toggle",e),Zn(e,"popover",o);break;case"xlinkActuate":ke(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ke(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ke(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ke(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ke(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ke(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ke(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ke(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ke(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Zn(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=Ox.get(r)||r,Zn(e,r,o))}}function Ef(e,t,r,o,c,d){switch(r){case"style":Rh(e,o,d);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(r=o.__html,r!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=r}}break;case"children":typeof o=="string"?Hr(e,o):(typeof o=="number"||typeof o=="bigint")&&Hr(e,""+o);break;case"onScroll":o!=null&&Be("scroll",e);break;case"onScrollEnd":o!=null&&Be("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Es);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Dn.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(c=r.endsWith("Capture"),t=r.slice(2,c?r.length-7:void 0),d=e[se]||null,d=d!=null?d[r]:null,typeof d=="function"&&e.removeEventListener(t,d,c),typeof o=="function")){typeof d!="function"&&d!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,o,c);break e}r in e?e[r]=o:o===!0?e.setAttribute(r,""):Zn(e,r,o)}}}function Mt(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Be("error",e),Be("load",e);var o=!1,c=!1,d;for(d in r)if(r.hasOwnProperty(d)){var y=r[d];if(y!=null)switch(d){case"src":o=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:We(e,t,d,y,r,null)}}c&&We(e,t,"srcSet",r.srcSet,r,null),o&&We(e,t,"src",r.src,r,null);return;case"input":Be("invalid",e);var w=d=y=c=null,M=null,G=null;for(o in r)if(r.hasOwnProperty(o)){var ee=r[o];if(ee!=null)switch(o){case"name":c=ee;break;case"type":y=ee;break;case"checked":M=ee;break;case"defaultChecked":G=ee;break;case"value":d=ee;break;case"defaultValue":w=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(i(137,t));break;default:We(e,t,o,ee,r,null)}}xh(e,d,w,M,G,y,c,!1),To(e);return;case"select":Be("invalid",e),o=y=d=null;for(c in r)if(r.hasOwnProperty(c)&&(w=r[c],w!=null))switch(c){case"value":d=w;break;case"defaultValue":y=w;break;case"multiple":o=w;default:We(e,t,c,w,r,null)}t=d,r=y,e.multiple=!!o,t!=null?Pr(e,!!o,t,!1):r!=null&&Pr(e,!!o,r,!0);return;case"textarea":Be("invalid",e),d=c=o=null;for(y in r)if(r.hasOwnProperty(y)&&(w=r[y],w!=null))switch(y){case"value":o=w;break;case"defaultValue":c=w;break;case"children":d=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(i(91));break;default:We(e,t,y,w,r,null)}wh(e,o,c,d),To(e);return;case"option":for(M in r)if(r.hasOwnProperty(M)&&(o=r[M],o!=null))switch(M){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:We(e,t,M,o,r,null)}return;case"dialog":Be("beforetoggle",e),Be("toggle",e),Be("cancel",e),Be("close",e);break;case"iframe":case"object":Be("load",e);break;case"video":case"audio":for(o=0;o<Li.length;o++)Be(Li[o],e);break;case"image":Be("error",e),Be("load",e);break;case"details":Be("toggle",e);break;case"embed":case"source":case"link":Be("error",e),Be("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(G in r)if(r.hasOwnProperty(G)&&(o=r[G],o!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:We(e,t,G,o,r,null)}return;default:if(Pu(t)){for(ee in r)r.hasOwnProperty(ee)&&(o=r[ee],o!==void 0&&Ef(e,t,ee,o,r,void 0));return}}for(w in r)r.hasOwnProperty(w)&&(o=r[w],o!=null&&We(e,t,w,o,r,null))}function J1(e,t,r,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,y=null,w=null,M=null,G=null,ee=null;for(Q in r){var ne=r[Q];if(r.hasOwnProperty(Q)&&ne!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":M=ne;default:o.hasOwnProperty(Q)||We(e,t,Q,null,o,ne)}}for(var X in o){var Q=o[X];if(ne=r[X],o.hasOwnProperty(X)&&(Q!=null||ne!=null))switch(X){case"type":d=Q;break;case"name":c=Q;break;case"checked":G=Q;break;case"defaultChecked":ee=Q;break;case"value":y=Q;break;case"defaultValue":w=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,t));break;default:Q!==ne&&We(e,t,X,Q,o,ne)}}ku(e,y,w,M,G,ee,d,c);return;case"select":Q=y=w=X=null;for(d in r)if(M=r[d],r.hasOwnProperty(d)&&M!=null)switch(d){case"value":break;case"multiple":Q=M;default:o.hasOwnProperty(d)||We(e,t,d,null,o,M)}for(c in o)if(d=o[c],M=r[c],o.hasOwnProperty(c)&&(d!=null||M!=null))switch(c){case"value":X=d;break;case"defaultValue":w=d;break;case"multiple":y=d;default:d!==M&&We(e,t,c,d,o,M)}t=w,r=y,o=Q,X!=null?Pr(e,!!r,X,!1):!!o!=!!r&&(t!=null?Pr(e,!!r,t,!0):Pr(e,!!r,r?[]:"",!1));return;case"textarea":Q=X=null;for(w in r)if(c=r[w],r.hasOwnProperty(w)&&c!=null&&!o.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:We(e,t,w,null,o,c)}for(y in o)if(c=o[y],d=r[y],o.hasOwnProperty(y)&&(c!=null||d!=null))switch(y){case"value":X=c;break;case"defaultValue":Q=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(i(91));break;default:c!==d&&We(e,t,y,c,o,d)}Sh(e,X,Q);return;case"option":for(var Ne in r)if(X=r[Ne],r.hasOwnProperty(Ne)&&X!=null&&!o.hasOwnProperty(Ne))switch(Ne){case"selected":e.selected=!1;break;default:We(e,t,Ne,null,o,X)}for(M in o)if(X=o[M],Q=r[M],o.hasOwnProperty(M)&&X!==Q&&(X!=null||Q!=null))switch(M){case"selected":e.selected=X&&typeof X!="function"&&typeof X!="symbol";break;default:We(e,t,M,X,o,Q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Oe in r)X=r[Oe],r.hasOwnProperty(Oe)&&X!=null&&!o.hasOwnProperty(Oe)&&We(e,t,Oe,null,o,X);for(G in o)if(X=o[G],Q=r[G],o.hasOwnProperty(G)&&X!==Q&&(X!=null||Q!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(i(137,t));break;default:We(e,t,G,X,o,Q)}return;default:if(Pu(t)){for(var Ie in r)X=r[Ie],r.hasOwnProperty(Ie)&&X!==void 0&&!o.hasOwnProperty(Ie)&&Ef(e,t,Ie,void 0,o,X);for(ee in o)X=o[ee],Q=r[ee],!o.hasOwnProperty(ee)||X===Q||X===void 0&&Q===void 0||Ef(e,t,ee,X,o,Q);return}}for(var B in r)X=r[B],r.hasOwnProperty(B)&&X!=null&&!o.hasOwnProperty(B)&&We(e,t,B,null,o,X);for(ne in o)X=o[ne],Q=r[ne],!o.hasOwnProperty(ne)||X===Q||X==null&&Q==null||We(e,t,ne,X,o,Q)}var Rf=null,Cf=null;function Rs(e){return e.nodeType===9?e:e.ownerDocument}function Eg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Rg(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Of(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Af=null;function W1(){var e=window.event;return e&&e.type==="popstate"?e===Af?!1:(Af=e,!0):(Af=null,!1)}var Cg=typeof setTimeout=="function"?setTimeout:void 0,I1=typeof clearTimeout=="function"?clearTimeout:void 0,Og=typeof Promise=="function"?Promise:void 0,eS=typeof queueMicrotask=="function"?queueMicrotask:typeof Og<"u"?function(e){return Og.resolve(null).then(e).catch(tS)}:Cg;function tS(e){setTimeout(function(){throw e})}function za(e){return e==="head"}function Ag(e,t){var r=t,o=0,c=0;do{var d=r.nextSibling;if(e.removeChild(r),d&&d.nodeType===8)if(r=d.data,r==="/$"){if(0<o&&8>o){r=o;var y=e.ownerDocument;if(r&1&&ki(y.documentElement),r&2&&ki(y.body),r&4)for(r=y.head,ki(r),y=r.firstChild;y;){var w=y.nextSibling,M=y.nodeName;y[ye]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&y.rel.toLowerCase()==="stylesheet"||r.removeChild(y),y=w}}if(c===0){e.removeChild(d),Yi(t);return}c--}else r==="$"||r==="$?"||r==="$!"?c++:o=r.charCodeAt(0)-48;else o=0;r=d}while(r);Yi(t)}function Nf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Nf(r),Se(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function nS(e,t,r,o){for(;e.nodeType===1;){var c=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[ye])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=Rn(e.nextSibling),e===null)break}return null}function aS(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Rn(e.nextSibling),e===null))return null;return e}function Tf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function rS(e,t){var r=e.ownerDocument;if(e.data!=="$?"||r.readyState==="complete")t();else{var o=function(){t(),r.removeEventListener("DOMContentLoaded",o)};r.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Rn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Mf=null;function Ng(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}function Tg(e,t,r){switch(t=Rs(r),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function ki(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Se(e)}var vn=new Map,Mg=new Set;function Cs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var fa=z.d;z.d={f:lS,r:iS,D:oS,C:sS,L:uS,m:cS,X:dS,S:fS,M:hS};function lS(){var e=fa.f(),t=gs();return e||t}function iS(e){var t=Fe(e);t!==null&&t.tag===5&&t.type==="form"?Zm(t):fa.r(e)}var ml=typeof document>"u"?null:document;function jg(e,t,r){var o=ml;if(o&&typeof t=="string"&&t){var c=cn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof r=="string"&&(c+='[crossorigin="'+r+'"]'),Mg.has(c)||(Mg.add(c),e={rel:e,crossOrigin:r,href:t},o.querySelector(c)===null&&(t=o.createElement("link"),Mt(t,"link",e),je(t),o.head.appendChild(t)))}}function oS(e){fa.D(e),jg("dns-prefetch",e,null)}function sS(e,t){fa.C(e,t),jg("preconnect",e,t)}function uS(e,t,r){fa.L(e,t,r);var o=ml;if(o&&e&&t){var c='link[rel="preload"][as="'+cn(t)+'"]';t==="image"&&r&&r.imageSrcSet?(c+='[imagesrcset="'+cn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(c+='[imagesizes="'+cn(r.imageSizes)+'"]')):c+='[href="'+cn(e)+'"]';var d=c;switch(t){case"style":d=pl(e);break;case"script":d=gl(e)}vn.has(d)||(e=g({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),vn.set(d,e),o.querySelector(c)!==null||t==="style"&&o.querySelector(Ui(d))||t==="script"&&o.querySelector(Pi(d))||(t=o.createElement("link"),Mt(t,"link",e),je(t),o.head.appendChild(t)))}}function cS(e,t){fa.m(e,t);var r=ml;if(r&&e){var o=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+cn(o)+'"][href="'+cn(e)+'"]',d=c;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=gl(e)}if(!vn.has(d)&&(e=g({rel:"modulepreload",href:e},t),vn.set(d,e),r.querySelector(c)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Pi(d)))return}o=r.createElement("link"),Mt(o,"link",e),je(o),r.head.appendChild(o)}}}function fS(e,t,r){fa.S(e,t,r);var o=ml;if(o&&e){var c=ut(o).hoistableStyles,d=pl(e);t=t||"default";var y=c.get(d);if(!y){var w={loading:0,preload:null};if(y=o.querySelector(Ui(d)))w.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},r),(r=vn.get(d))&&jf(e,r);var M=y=o.createElement("link");je(M),Mt(M,"link",e),M._p=new Promise(function(G,ee){M.onload=G,M.onerror=ee}),M.addEventListener("load",function(){w.loading|=1}),M.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Os(y,t,o)}y={type:"stylesheet",instance:y,count:1,state:w},c.set(d,y)}}}function dS(e,t){fa.X(e,t);var r=ml;if(r&&e){var o=ut(r).hoistableScripts,c=gl(e),d=o.get(c);d||(d=r.querySelector(Pi(c)),d||(e=g({src:e,async:!0},t),(t=vn.get(c))&&Df(e,t),d=r.createElement("script"),je(d),Mt(d,"link",e),r.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(c,d))}}function hS(e,t){fa.M(e,t);var r=ml;if(r&&e){var o=ut(r).hoistableScripts,c=gl(e),d=o.get(c);d||(d=r.querySelector(Pi(c)),d||(e=g({src:e,async:!0,type:"module"},t),(t=vn.get(c))&&Df(e,t),d=r.createElement("script"),je(d),Mt(d,"link",e),r.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(c,d))}}function Dg(e,t,r,o){var c=(c=ce.current)?Cs(c):null;if(!c)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=pl(r.href),r=ut(c).hoistableStyles,o=r.get(t),o||(o={type:"style",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=pl(r.href);var d=ut(c).hoistableStyles,y=d.get(e);if(y||(c=c.ownerDocument||c,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,y),(d=c.querySelector(Ui(e)))&&!d._p&&(y.instance=d,y.state.loading=5),vn.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},vn.set(e,r),d||mS(c,e,r,y.state))),t&&o===null)throw Error(i(528,""));return y}if(t&&o!==null)throw Error(i(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=gl(r),r=ut(c).hoistableScripts,o=r.get(t),o||(o={type:"script",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function pl(e){return'href="'+cn(e)+'"'}function Ui(e){return'link[rel="stylesheet"]['+e+"]"}function _g(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function mS(e,t,r,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),Mt(t,"link",r),je(t),e.head.appendChild(t))}function gl(e){return'[src="'+cn(e)+'"]'}function Pi(e){return"script[async]"+e}function Lg(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+cn(r.href)+'"]');if(o)return t.instance=o,je(o),o;var c=g({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),je(o),Mt(o,"style",c),Os(o,r.precedence,e),t.instance=o;case"stylesheet":c=pl(r.href);var d=e.querySelector(Ui(c));if(d)return t.state.loading|=4,t.instance=d,je(d),d;o=_g(r),(c=vn.get(c))&&jf(o,c),d=(e.ownerDocument||e).createElement("link"),je(d);var y=d;return y._p=new Promise(function(w,M){y.onload=w,y.onerror=M}),Mt(d,"link",o),t.state.loading|=4,Os(d,r.precedence,e),t.instance=d;case"script":return d=gl(r.src),(c=e.querySelector(Pi(d)))?(t.instance=c,je(c),c):(o=r,(c=vn.get(d))&&(o=g({},r),Df(o,c)),e=e.ownerDocument||e,c=e.createElement("script"),je(c),Mt(c,"link",o),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,Os(o,r.precedence,e));return t.instance}function Os(e,t,r){for(var o=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=o.length?o[o.length-1]:null,d=c,y=0;y<o.length;y++){var w=o[y];if(w.dataset.precedence===t)d=w;else if(d!==c)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function jf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Df(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var As=null;function zg(e,t,r){if(As===null){var o=new Map,c=As=new Map;c.set(r,o)}else c=As,o=c.get(r),o||(o=new Map,c.set(r,o));if(o.has(e))return o;for(o.set(e,null),r=r.getElementsByTagName(e),c=0;c<r.length;c++){var d=r[c];if(!(d[ye]||d[ae]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var y=d.getAttribute(t)||"";y=e+y;var w=o.get(y);w?w.push(d):o.set(y,[d])}}return o}function kg(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function pS(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ug(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Hi=null;function gS(){}function vS(e,t,r){if(Hi===null)throw Error(i(475));var o=Hi;if(t.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var c=pl(r.href),d=e.querySelector(Ui(c));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(o.count++,o=Ns.bind(o),e.then(o,o)),t.state.loading|=4,t.instance=d,je(d);return}d=e.ownerDocument||e,r=_g(r),(c=vn.get(c))&&jf(r,c),d=d.createElement("link"),je(d);var y=d;y._p=new Promise(function(w,M){y.onload=w,y.onerror=M}),Mt(d,"link",r),t.instance=d}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(o.count++,t=Ns.bind(o),e.addEventListener("load",t),e.addEventListener("error",t))}}function yS(){if(Hi===null)throw Error(i(475));var e=Hi;return e.stylesheets&&e.count===0&&_f(e,e.stylesheets),0<e.count?function(t){var r=setTimeout(function(){if(e.stylesheets&&_f(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(r)}}:null}function Ns(){if(this.count--,this.count===0){if(this.stylesheets)_f(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ts=null;function _f(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ts=new Map,t.forEach(bS,e),Ts=null,Ns.call(e))}function bS(e,t){if(!(t.state.loading&4)){var r=Ts.get(e);if(r)var o=r.get(null);else{r=new Map,Ts.set(e,r);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var y=c[d];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(r.set(y.dataset.precedence,y),o=y)}o&&r.set(null,o)}c=t.instance,y=c.getAttribute("data-precedence"),d=r.get(y)||o,d===o&&r.set(null,c),r.set(y,c),this.count++,o=Ns.bind(this),c.addEventListener("load",o),c.addEventListener("error",o),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Bi={$$typeof:H,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function xS(e,t,r,o,c,d,y,w){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=kr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kr(0),this.hiddenUpdates=kr(null),this.identifierPrefix=o,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function Pg(e,t,r,o,c,d,y,w,M,G,ee,ne){return e=new xS(e,t,r,y,w,M,G,ne),t=1,d===!0&&(t|=24),d=Xt(3,null,null,t),e.current=d,d.stateNode=e,t=hc(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:o,isDehydrated:r,cache:t},vc(d),e}function Hg(e){return e?(e=Fr,e):Fr}function Bg(e,t,r,o,c,d){c=Hg(c),o.context===null?o.context=c:o.pendingContext=c,o=wa(t),o.payload={element:r},d=d===void 0?null:d,d!==null&&(o.callback=d),r=Ea(e,o,t),r!==null&&(It(r,e,t),gi(r,e,t))}function $g(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Lf(e,t){$g(e,t),(e=e.alternate)&&$g(e,t)}function Vg(e){if(e.tag===13){var t=Kr(e,67108864);t!==null&&It(t,e,67108864),Lf(e,67108864)}}var Ms=!0;function SS(e,t,r,o){var c=R.T;R.T=null;var d=z.p;try{z.p=2,zf(e,t,r,o)}finally{z.p=d,R.T=c}}function wS(e,t,r,o){var c=R.T;R.T=null;var d=z.p;try{z.p=8,zf(e,t,r,o)}finally{z.p=d,R.T=c}}function zf(e,t,r,o){if(Ms){var c=kf(o);if(c===null)wf(e,t,o,js,r),Yg(e,o);else if(RS(c,e,t,r,o))o.stopPropagation();else if(Yg(e,o),t&4&&-1<ES.indexOf(e)){for(;c!==null;){var d=Fe(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var y=Xn(d.pendingLanes);if(y!==0){var w=d;for(w.pendingLanes|=2,w.entangledLanes|=2;y;){var M=1<<31-At(y);w.entanglements[1]|=M,y&=~M}Un(d),(Xe&6)===0&&(ms=Gt()+500,_i(0))}}break;case 13:w=Kr(d,2),w!==null&&It(w,d,2),gs(),Lf(d,2)}if(d=kf(o),d===null&&wf(e,t,o,js,r),d===c)break;c=d}c!==null&&o.stopPropagation()}else wf(e,t,o,null,r)}}function kf(e){return e=Bu(e),Uf(e)}var js=null;function Uf(e){if(js=null,e=_e(e),e!==null){var t=u(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=f(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return js=e,null}function qg(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Lu()){case xo:return 2;case So:return 8;case Lr:case Fn:return 32;case ga:return 268435456;default:return 32}default:return 32}}var Pf=!1,ka=null,Ua=null,Pa=null,$i=new Map,Vi=new Map,Ha=[],ES="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Yg(e,t){switch(e){case"focusin":case"focusout":ka=null;break;case"dragenter":case"dragleave":Ua=null;break;case"mouseover":case"mouseout":Pa=null;break;case"pointerover":case"pointerout":$i.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vi.delete(t.pointerId)}}function qi(e,t,r,o,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:d,targetContainers:[c]},t!==null&&(t=Fe(t),t!==null&&Vg(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function RS(e,t,r,o,c){switch(t){case"focusin":return ka=qi(ka,e,t,r,o,c),!0;case"dragenter":return Ua=qi(Ua,e,t,r,o,c),!0;case"mouseover":return Pa=qi(Pa,e,t,r,o,c),!0;case"pointerover":var d=c.pointerId;return $i.set(d,qi($i.get(d)||null,e,t,r,o,c)),!0;case"gotpointercapture":return d=c.pointerId,Vi.set(d,qi(Vi.get(d)||null,e,t,r,o,c)),!0}return!1}function Gg(e){var t=_e(e.target);if(t!==null){var r=u(t);if(r!==null){if(t=r.tag,t===13){if(t=f(r),t!==null){e.blockedOn=t,q(e.priority,function(){if(r.tag===13){var o=Wt();o=Jl(o);var c=Kr(r,o);c!==null&&It(c,r,o),Lf(r,o)}});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ds(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=kf(e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);Hu=o,r.target.dispatchEvent(o),Hu=null}else return t=Fe(r),t!==null&&Vg(t),e.blockedOn=r,!1;t.shift()}return!0}function Kg(e,t,r){Ds(e)&&r.delete(t)}function CS(){Pf=!1,ka!==null&&Ds(ka)&&(ka=null),Ua!==null&&Ds(Ua)&&(Ua=null),Pa!==null&&Ds(Pa)&&(Pa=null),$i.forEach(Kg),Vi.forEach(Kg)}function _s(e,t){e.blockedOn===t&&(e.blockedOn=null,Pf||(Pf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,CS)))}var Ls=null;function Fg(e){Ls!==e&&(Ls=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ls===e&&(Ls=null);for(var t=0;t<e.length;t+=3){var r=e[t],o=e[t+1],c=e[t+2];if(typeof o!="function"){if(Uf(o||r)===null)continue;break}var d=Fe(r);d!==null&&(e.splice(t,3),t-=3,kc(d,{pending:!0,data:c,method:r.method,action:o},o,c))}}))}function Yi(e){function t(M){return _s(M,e)}ka!==null&&_s(ka,e),Ua!==null&&_s(Ua,e),Pa!==null&&_s(Pa,e),$i.forEach(t),Vi.forEach(t);for(var r=0;r<Ha.length;r++){var o=Ha[r];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Ha.length&&(r=Ha[0],r.blockedOn===null);)Gg(r),r.blockedOn===null&&Ha.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(o=0;o<r.length;o+=3){var c=r[o],d=r[o+1],y=c[se]||null;if(typeof d=="function")y||Fg(r);else if(y){var w=null;if(d&&d.hasAttribute("formAction")){if(c=d,y=d[se]||null)w=y.formAction;else if(Uf(c)!==null)continue}else w=y.action;typeof w=="function"?r[o+1]=w:(r.splice(o,3),o-=3),Fg(r)}}}function Hf(e){this._internalRoot=e}zs.prototype.render=Hf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var r=t.current,o=Wt();Bg(r,o,e,t,null,null)},zs.prototype.unmount=Hf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bg(e.current,2,null,e,null,null),gs(),t[ge]=null}};function zs(e){this._internalRoot=e}zs.prototype.unstable_scheduleHydration=function(e){if(e){var t=L();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ha.length&&t!==0&&t<Ha[r].priority;r++);Ha.splice(r,0,e),r===0&&Gg(e)}};var Xg=a.version;if(Xg!=="19.1.0")throw Error(i(527,Xg,"19.1.0"));z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=p(t),e=e!==null?m(e):null,e=e===null?null:e.stateNode,e};var OS={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ks=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ks.isDisabled&&ks.supportsFiber)try{Ut=ks.inject(OS),lt=ks}catch{}}return Fi.createRoot=function(e,t){if(!s(e))throw Error(i(299));var r=!1,o="",c=cp,d=fp,y=dp,w=null;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(w=t.unstable_transitionCallbacks)),t=Pg(e,1,!1,null,null,r,o,c,d,y,w,null),e[ge]=t.current,Sf(e),new Hf(t)},Fi.hydrateRoot=function(e,t,r){if(!s(e))throw Error(i(299));var o=!1,c="",d=cp,y=fp,w=dp,M=null,G=null;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(c=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(y=r.onCaughtError),r.onRecoverableError!==void 0&&(w=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(M=r.unstable_transitionCallbacks),r.formState!==void 0&&(G=r.formState)),t=Pg(e,1,!0,t,r??null,o,c,d,y,w,M,G),t.context=Hg(null),r=t.current,o=Wt(),o=Jl(o),c=wa(o),c.callback=null,Ea(r,c,o),r=o,t.current.lanes=r,nr(t,r),Un(t),e[ge]=t.current,Sf(e),new zs(t)},Fi.version="19.1.0",Fi}var Rv;function Qw(){if(Rv)return qf.exports;Rv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),qf.exports=Xw(),qf.exports}var Zw=Qw();/**
|
|
57
|
+
* react-router v7.7.0
|
|
58
|
+
*
|
|
59
|
+
* Copyright (c) Remix Software Inc.
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the MIT license found in the
|
|
62
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
63
|
+
*
|
|
64
|
+
* @license MIT
|
|
65
|
+
*/var $y=n=>{throw TypeError(n)},Jw=(n,a,l)=>a.has(n)||$y("Cannot "+l),Ff=(n,a,l)=>(Jw(n,a,"read from private field"),l?l.call(n):a.get(n)),Ww=(n,a,l)=>a.has(n)?$y("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,l);function Iw(n={}){let{initialEntries:a=["/"],initialIndex:l,v5Compat:i=!1}=n,s;s=a.map((E,A)=>g(E,typeof E=="string"?null:E.state,A===0?"default":void 0));let u=p(l??s.length-1),f="POP",h=null;function p(E){return Math.min(Math.max(E,0),s.length-1)}function m(){return s[u]}function g(E,A=null,O){let _=bd(s?m().pathname:"/",E,A,O);return ht(_.pathname.charAt(0)==="/",`relative pathnames are not supported in memory history: ${JSON.stringify(E)}`),_}function b(E){return typeof E=="string"?E:Ka(E)}return{get index(){return u},get action(){return f},get location(){return m()},createHref:b,createURL(E){return new URL(b(E),"http://localhost")},encodeLocation(E){let A=typeof E=="string"?pa(E):E;return{pathname:A.pathname||"",search:A.search||"",hash:A.hash||""}},push(E,A){f="PUSH";let O=g(E,A);u+=1,s.splice(u,s.length,O),i&&h&&h({action:f,location:O,delta:1})},replace(E,A){f="REPLACE";let O=g(E,A);s[u]=O,i&&h&&h({action:f,location:O,delta:0})},go(E){f="POP";let A=p(u+E),O=s[A];u=A,h&&h({action:f,location:O,delta:E})},listen(E){return h=E,()=>{h=null}}}}function Pe(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function ht(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function eE(){return Math.random().toString(36).substring(2,10)}function bd(n,a,l=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?pa(a):a,state:l,key:a&&a.key||i||eE()}}function Ka({pathname:n="/",search:a="",hash:l=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),l&&l!=="#"&&(n+=l.charAt(0)==="#"?l:"#"+l),n}function pa(n){let a={};if(n){let l=n.indexOf("#");l>=0&&(a.hash=n.substring(l),n=n.substring(0,l));let i=n.indexOf("?");i>=0&&(a.search=n.substring(i),n=n.substring(0,i)),n&&(a.pathname=n)}return a}function tE(n,a=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),Pe(l,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:Ka(n);return i=i.replace(/ $/,"%20"),!a&&i.startsWith("//")&&(i=l+i),new URL(i,l)}var Ii,Cv=class{constructor(n){if(Ww(this,Ii,new Map),n)for(let[a,l]of n)this.set(a,l)}get(n){if(Ff(this,Ii).has(n))return Ff(this,Ii).get(n);if(n.defaultValue!==void 0)return n.defaultValue;throw new Error("No value found for context")}set(n,a){Ff(this,Ii).set(n,a)}};Ii=new WeakMap;var nE=new Set(["lazy","caseSensitive","path","id","index","children"]);function aE(n){return nE.has(n)}var rE=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function lE(n){return rE.has(n)}function iE(n){return n.index===!0}function lo(n,a,l=[],i={},s=!1){return n.map((u,f)=>{let h=[...l,String(f)],p=typeof u.id=="string"?u.id:h.join("-");if(Pe(u.index!==!0||!u.children,"Cannot specify children on an index route"),Pe(s||!i[p],`Found a route id collision on id "${p}". Route id's must be globally unique within Data Router usages`),iE(u)){let m={...u,...a(u),id:p};return i[p]=m,m}else{let m={...u,...a(u),id:p,children:void 0};return i[p]=m,u.children&&(m.children=lo(u.children,a,h,i,s)),m}})}function Ya(n,a,l="/"){return Zs(n,a,l,!1)}function Zs(n,a,l,i){let s=typeof a=="string"?pa(a):a,u=bn(s.pathname||"/",l);if(u==null)return null;let f=Vy(n);sE(f);let h=null;for(let p=0;h==null&&p<f.length;++p){let m=bE(u);h=vE(f[p],m,i)}return h}function oE(n,a){let{route:l,pathname:i,params:s}=n;return{id:l.id,pathname:i,params:s,data:a[l.id],handle:l.handle}}function Vy(n,a=[],l=[],i=""){let s=(u,f,h)=>{let p={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};p.relativePath.startsWith("/")&&(Pe(p.relativePath.startsWith(i),`Absolute route path "${p.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(i.length));let m=$n([i,p.relativePath]),g=l.concat(p);u.children&&u.children.length>0&&(Pe(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),Vy(u.children,a,g,m)),!(u.path==null&&!u.index)&&a.push({path:m,score:pE(m,u.index),routesMeta:g})};return n.forEach((u,f)=>{if(u.path===""||!u.path?.includes("?"))s(u,f);else for(let h of qy(u.path))s(u,f,h)}),a}function qy(n){let a=n.split("/");if(a.length===0)return[];let[l,...i]=a,s=l.endsWith("?"),u=l.replace(/\?$/,"");if(i.length===0)return s?[u,""]:[u];let f=qy(i.join("/")),h=[];return h.push(...f.map(p=>p===""?u:[u,p].join("/"))),s&&h.push(...f),h.map(p=>n.startsWith("/")&&p===""?"/":p)}function sE(n){n.sort((a,l)=>a.score!==l.score?l.score-a.score:gE(a.routesMeta.map(i=>i.childrenIndex),l.routesMeta.map(i=>i.childrenIndex)))}var uE=/^:[\w-]+$/,cE=3,fE=2,dE=1,hE=10,mE=-2,Ov=n=>n==="*";function pE(n,a){let l=n.split("/"),i=l.length;return l.some(Ov)&&(i+=mE),a&&(i+=fE),l.filter(s=>!Ov(s)).reduce((s,u)=>s+(uE.test(u)?cE:u===""?dE:hE),i)}function gE(n,a){return n.length===a.length&&n.slice(0,-1).every((i,s)=>i===a[s])?n[n.length-1]-a[a.length-1]:0}function vE(n,a,l=!1){let{routesMeta:i}=n,s={},u="/",f=[];for(let h=0;h<i.length;++h){let p=i[h],m=h===i.length-1,g=u==="/"?a:a.slice(u.length)||"/",b=iu({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},g),S=p.route;if(!b&&m&&l&&!i[i.length-1].route.index&&(b=iu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},g)),!b)return null;Object.assign(s,b.params),f.push({params:s,pathname:$n([u,b.pathname]),pathnameBase:EE($n([u,b.pathnameBase])),route:S}),b.pathnameBase!=="/"&&(u=$n([u,b.pathnameBase]))}return f}function iu(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[l,i]=yE(n.path,n.caseSensitive,n.end),s=a.match(l);if(!s)return null;let u=s[0],f=u.replace(/(.)\/+$/,"$1"),h=s.slice(1);return{params:i.reduce((m,{paramName:g,isOptional:b},S)=>{if(g==="*"){let A=h[S]||"";f=u.slice(0,u.length-A.length).replace(/(.)\/+$/,"$1")}const E=h[S];return b&&!E?m[g]=void 0:m[g]=(E||"").replace(/%2F/g,"/"),m},{}),pathname:u,pathnameBase:f,pattern:n}}function yE(n,a=!1,l=!0){ht(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let i=[],s="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,h,p)=>(i.push({paramName:h,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(i.push({paramName:"*"}),s+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?s+="\\/*$":n!==""&&n!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,a?void 0:"i"),i]}function bE(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return ht(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function bn(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let l=a.endsWith("/")?a.length-1:a.length,i=n.charAt(l);return i&&i!=="/"?null:n.slice(l)||"/"}function xE({basename:n,pathname:a}){return a==="/"?n:$n([n,a])}function SE(n,a="/"){let{pathname:l,search:i="",hash:s=""}=typeof n=="string"?pa(n):n;return{pathname:l?l.startsWith("/")?l:wE(l,a):a,search:RE(i),hash:CE(s)}}function wE(n,a){let l=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(s=>{s===".."?l.length>1&&l.pop():s!=="."&&l.push(s)}),l.length>1?l.join("/"):"/"}function Xf(n,a,l,i){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Yy(n){return n.filter((a,l)=>l===0||a.route.path&&a.route.path.length>0)}function pu(n){let a=Yy(n);return a.map((l,i)=>i===a.length-1?l.pathname:l.pathnameBase)}function gu(n,a,l,i=!1){let s;typeof n=="string"?s=pa(n):(s={...n},Pe(!s.pathname||!s.pathname.includes("?"),Xf("?","pathname","search",s)),Pe(!s.pathname||!s.pathname.includes("#"),Xf("#","pathname","hash",s)),Pe(!s.search||!s.search.includes("#"),Xf("#","search","hash",s)));let u=n===""||s.pathname==="",f=u?"/":s.pathname,h;if(f==null)h=l;else{let b=a.length-1;if(!i&&f.startsWith("..")){let S=f.split("/");for(;S[0]==="..";)S.shift(),b-=1;s.pathname=S.join("/")}h=b>=0?a[b]:"/"}let p=SE(s,h),m=f&&f!=="/"&&f.endsWith("/"),g=(u||f===".")&&l.endsWith("/");return!p.pathname.endsWith("/")&&(m||g)&&(p.pathname+="/"),p}var $n=n=>n.join("/").replace(/\/\/+/g,"/"),EE=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),RE=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,CE=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,xd=class{constructor(n,a,l,i=!1){this.status=n,this.statusText=a||"",this.internal=i,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function io(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var Gy=["POST","PUT","PATCH","DELETE"],OE=new Set(Gy),AE=["GET",...Gy],NE=new Set(AE),TE=new Set([301,302,303,307,308]),ME=new Set([307,308]),Qf={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},jE={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Xi={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},DE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ud=n=>DE.test(n),_E=n=>({hasErrorBoundary:!!n.hasErrorBoundary}),Ky="remix-router-transitions",Fy=Symbol("ResetLoaderData");function LE(n){const a=n.window?n.window:typeof window<"u"?window:void 0,l=typeof a<"u"&&typeof a.document<"u"&&typeof a.document.createElement<"u";Pe(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let i=n.hydrationRouteProperties||[],s=n.mapRouteProperties||_E,u={},f=lo(n.routes,s,void 0,u),h,p=n.basename||"/",m=n.dataStrategy||HE,g={unstable_middleware:!1,...n.future},b=null,S=new Set,E=null,A=null,O=null,_=n.hydrationData!=null,N=Ya(f,n.history.location,p),P=!1,H=null,K;if(N==null&&!n.patchRoutesOnNavigation){let L=yn(404,{pathname:n.history.location.pathname}),{matches:q,route:J}=Pv(f);K=!0,N=q,H={[J.id]:L}}else if(N&&!n.hydrationData&&ar(N,f,n.history.location.pathname).active&&(N=null),N)if(N.some(L=>L.route.lazy))K=!1;else if(!N.some(L=>L.route.loader))K=!0;else{let L=n.hydrationData?n.hydrationData.loaderData:null,q=n.hydrationData?n.hydrationData.errors:null;if(q){let J=N.findIndex(ae=>q[ae.route.id]!==void 0);K=N.slice(0,J+1).every(ae=>!wd(ae.route,L,q))}else K=N.every(J=>!wd(J.route,L,q))}else{K=!1,N=[];let L=ar(null,f,n.history.location.pathname);L.active&&L.matches&&(P=!0,N=L.matches)}let V,T={historyAction:n.history.action,location:n.history.location,matches:N,initialized:K,navigation:Qf,restoreScrollPosition:n.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:n.hydrationData&&n.hydrationData.loaderData||{},actionData:n.hydrationData&&n.hydrationData.actionData||null,errors:n.hydrationData&&n.hydrationData.errors||H,fetchers:new Map,blockers:new Map},F="POP",W=!1,re,oe=!1,Re=new Map,xe=null,fe=!1,ue=!1,le=new Set,R=new Map,z=0,D=-1,Z=new Map,C=new Set,U=new Map,j=new Map,$=new Set,I=new Map,ie,ce=null;function de(){if(b=n.history.listen(({action:L,location:q,delta:J})=>{if(ie){ie(),ie=void 0;return}ht(I.size===0||J!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ae=Ro({currentLocation:T.location,nextLocation:q,historyAction:L});if(ae&&J!=null){let se=new Promise(ge=>{ie=ge});n.history.go(J*-1),jn(ae,{state:"blocked",location:q,proceed(){jn(ae,{state:"proceeding",proceed:void 0,reset:void 0,location:q}),se.then(()=>n.history.go(J))},reset(){let ge=new Map(T.blockers);ge.set(ae,Xi),Ye({blockers:ge})}});return}return xn(L,q)}),l){ZE(a,Re);let L=()=>JE(a,Re);a.addEventListener("pagehide",L),xe=()=>a.removeEventListener("pagehide",L)}return T.initialized||xn("POP",T.location,{initialHydration:!0}),V}function Te(){b&&b(),xe&&xe(),S.clear(),re&&re.abort(),T.fetchers.forEach((L,q)=>At(q)),T.blockers.forEach((L,q)=>tr(q))}function qe(L){return S.add(L),()=>S.delete(L)}function Ye(L,q={}){L.matches&&(L.matches=L.matches.map(se=>{let ge=u[se.route.id],be=se.route;return be.element!==ge.element||be.errorElement!==ge.errorElement||be.hydrateFallbackElement!==ge.hydrateFallbackElement?{...se,route:ge}:se})),T={...T,...L};let J=[],ae=[];T.fetchers.forEach((se,ge)=>{se.state==="idle"&&($.has(ge)?J.push(ge):ae.push(ge))}),$.forEach(se=>{!T.fetchers.has(se)&&!R.has(se)&&J.push(se)}),[...S].forEach(se=>se(T,{deletedFetchers:J,viewTransitionOpts:q.viewTransitionOpts,flushSync:q.flushSync===!0})),J.forEach(se=>At(se)),ae.forEach(se=>T.fetchers.delete(se))}function Ot(L,q,{flushSync:J}={}){let ae=T.actionData!=null&&T.navigation.formMethod!=null&&Vt(T.navigation.formMethod)&&T.navigation.state==="loading"&&L.state?._isRedirect!==!0,se;q.actionData?Object.keys(q.actionData).length>0?se=q.actionData:se=null:ae?se=T.actionData:se=null;let ge=q.loaderData?kv(T.loaderData,q.loaderData,q.matches||[],q.errors):T.loaderData,be=T.blockers;be.size>0&&(be=new Map(be),be.forEach((ye,Se)=>be.set(Se,Xi)));let ve=fe?!1:Oo(L,q.matches||T.matches),Ee=W===!0||T.navigation.formMethod!=null&&Vt(T.navigation.formMethod)&&L.state?._isRedirect!==!0;h&&(f=h,h=void 0),fe||F==="POP"||(F==="PUSH"?n.history.push(L,L.state):F==="REPLACE"&&n.history.replace(L,L.state));let Ce;if(F==="POP"){let ye=Re.get(T.location.pathname);ye&&ye.has(L.pathname)?Ce={currentLocation:T.location,nextLocation:L}:Re.has(L.pathname)&&(Ce={currentLocation:L,nextLocation:T.location})}else if(oe){let ye=Re.get(T.location.pathname);ye?ye.add(L.pathname):(ye=new Set([L.pathname]),Re.set(T.location.pathname,ye)),Ce={currentLocation:T.location,nextLocation:L}}Ye({...q,actionData:se,loaderData:ge,historyAction:F,location:L,initialized:!0,navigation:Qf,revalidation:"idle",restoreScrollPosition:ve,preventScrollReset:Ee,blockers:be},{viewTransitionOpts:Ce,flushSync:J===!0}),F="POP",W=!1,oe=!1,fe=!1,ue=!1,ce?.resolve(),ce=null}async function Yt(L,q){if(typeof L=="number"){n.history.go(L);return}let J=Sd(T.location,T.matches,p,L,q?.fromRouteId,q?.relative),{path:ae,submission:se,error:ge}=Av(!1,J,q),be=T.location,ve=bd(T.location,ae,q&&q.state);ve={...ve,...n.history.encodeLocation(ve)};let Ee=q&&q.replace!=null?q.replace:void 0,Ce="PUSH";Ee===!0?Ce="REPLACE":Ee===!1||se!=null&&Vt(se.formMethod)&&se.formAction===T.location.pathname+T.location.search&&(Ce="REPLACE");let ye=q&&"preventScrollReset"in q?q.preventScrollReset===!0:void 0,Se=(q&&q.flushSync)===!0,_e=Ro({currentLocation:be,nextLocation:ve,historyAction:Ce});if(_e){jn(_e,{state:"blocked",location:ve,proceed(){jn(_e,{state:"proceeding",proceed:void 0,reset:void 0,location:ve}),Yt(L,q)},reset(){let Fe=new Map(T.blockers);Fe.set(_e,Xi),Ye({blockers:Fe})}});return}await xn(Ce,ve,{submission:se,pendingError:ge,preventScrollReset:ye,replace:q&&q.replace,enableViewTransition:q&&q.viewTransition,flushSync:Se})}function Tn(){ce||(ce=WE()),Zl(),Ye({revalidation:"loading"});let L=ce.promise;return T.navigation.state==="submitting"?L:T.navigation.state==="idle"?(xn(T.historyAction,T.location,{startUninterruptedRevalidation:!0}),L):(xn(F||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation,enableViewTransition:oe===!0}),L)}async function xn(L,q,J){re&&re.abort(),re=null,F=L,fe=(J&&J.startUninterruptedRevalidation)===!0,nr(T.location,T.matches),W=(J&&J.preventScrollReset)===!0,oe=(J&&J.enableViewTransition)===!0;let ae=h||f,se=J&&J.overrideNavigation,ge=J?.initialHydration&&T.matches&&T.matches.length>0&&!P?T.matches:Ya(ae,q,p),be=(J&&J.flushSync)===!0;if(ge&&T.initialized&&!ue&&GE(T.location,q)&&!(J&&J.submission&&Vt(J.submission.formMethod))){Ot(q,{matches:ge},{flushSync:be});return}let ve=ar(ge,ae,q.pathname);if(ve.active&&ve.matches&&(ge=ve.matches),!ge){let{error:ut,notFoundMatches:je,route:Ze}=zr(q.pathname);Ot(q,{matches:je,loaderData:{},errors:{[Ze.id]:ut}},{flushSync:be});return}re=new AbortController;let Ee=Rl(n.history,q,re.signal,J&&J.submission),Ce=new Cv(n.unstable_getContext?await n.unstable_getContext():void 0),ye;if(J&&J.pendingError)ye=[Er(ge).route.id,{type:"error",error:J.pendingError}];else if(J&&J.submission&&Vt(J.submission.formMethod)){let ut=await Du(Ee,q,J.submission,ge,Ce,ve.active,J&&J.initialHydration===!0,{replace:J.replace,flushSync:be});if(ut.shortCircuited)return;if(ut.pendingActionResult){let[je,Ze]=ut.pendingActionResult;if(en(Ze)&&io(Ze.error)&&Ze.error.status===404){re=null,Ot(q,{matches:ut.matches,loaderData:{},errors:{[je]:Ze.error}});return}}ge=ut.matches||ge,ye=ut.pendingActionResult,se=Zf(q,J.submission),be=!1,ve.active=!1,Ee=Rl(n.history,Ee.url,Ee.signal)}let{shortCircuited:Se,matches:_e,loaderData:Fe,errors:st}=await _u(Ee,q,ge,Ce,ve.active,se,J&&J.submission,J&&J.fetcherSubmission,J&&J.replace,J&&J.initialHydration===!0,be,ye);Se||(re=null,Ot(q,{matches:_e||ge,...Uv(ye),loaderData:Fe,errors:st}))}async function Du(L,q,J,ae,se,ge,be,ve={}){Zl();let Ee=XE(q,J);if(Ye({navigation:Ee},{flushSync:ve.flushSync===!0}),ge){let Se=await rr(ae,q.pathname,L.signal);if(Se.type==="aborted")return{shortCircuited:!0};if(Se.type==="error"){let _e=Er(Se.partialMatches).route.id;return{matches:Se.partialMatches,pendingActionResult:[_e,{type:"error",error:Se.error}]}}else if(Se.matches)ae=Se.matches;else{let{notFoundMatches:_e,error:Fe,route:st}=zr(q.pathname);return{matches:_e,pendingActionResult:[st.id,{type:"error",error:Fe}]}}}let Ce,ye=Js(ae,q);if(!ye.route.action&&!ye.route.lazy)Ce={type:"error",error:yn(405,{method:L.method,pathname:q.pathname,routeId:ye.route.id})};else{let Se=Nl(s,u,L,ae,ye,be?[]:i,se),_e=await ga(L,Se,se,null);if(Ce=_e[ye.route.id],!Ce){for(let Fe of ae)if(_e[Fe.route.id]){Ce=_e[Fe.route.id];break}}if(L.signal.aborted)return{shortCircuited:!0}}if(Cr(Ce)){let Se;return ve&&ve.replace!=null?Se=ve.replace:Se=_v(Ce.response.headers.get("Location"),new URL(L.url),p)===T.location.pathname+T.location.search,await Fn(L,Ce,!0,{submission:J,replace:Se}),{shortCircuited:!0}}if(en(Ce)){let Se=Er(ae,ye.route.id);return(ve&&ve.replace)!==!0&&(F="PUSH"),{matches:ae,pendingActionResult:[Se.route.id,Ce,ye.route.id]}}return{matches:ae,pendingActionResult:[ye.route.id,Ce]}}async function _u(L,q,J,ae,se,ge,be,ve,Ee,Ce,ye,Se){let _e=ge||Zf(q,be),Fe=be||ve||Bv(_e),st=!fe&&!Ce;if(se){if(st){let gt=Gt(Se);Ye({navigation:_e,...gt!==void 0?{actionData:gt}:{}},{flushSync:ye})}let ke=await rr(J,q.pathname,L.signal);if(ke.type==="aborted")return{shortCircuited:!0};if(ke.type==="error"){let gt=Er(ke.partialMatches).route.id;return{matches:ke.partialMatches,loaderData:{},errors:{[gt]:ke.error}}}else if(ke.matches)J=ke.matches;else{let{error:gt,notFoundMatches:lr,route:sn}=zr(q.pathname);return{matches:lr,loaderData:{},errors:{[sn.id]:gt}}}}let ut=h||f,{dsMatches:je,revalidatingFetchers:Ze}=Nv(L,ae,s,u,n.history,T,J,Fe,q,Ce?[]:i,Ce===!0,ue,le,$,U,C,ut,p,n.patchRoutesOnNavigation!=null,Se);if(D=++z,!n.dataStrategy&&!je.some(ke=>ke.shouldLoad)&&Ze.length===0){let ke=Ia();return Ot(q,{matches:J,loaderData:{},errors:Se&&en(Se[1])?{[Se[0]]:Se[1].error}:null,...Uv(Se),...ke?{fetchers:new Map(T.fetchers)}:{}},{flushSync:ye}),{shortCircuited:!0}}if(st){let ke={};if(!se){ke.navigation=_e;let gt=Gt(Se);gt!==void 0&&(ke.actionData=gt)}Ze.length>0&&(ke.fetchers=Lu(Ze)),Ye(ke,{flushSync:ye})}Ze.forEach(ke=>{Mn(ke.key),ke.controller&&R.set(ke.key,ke.controller)});let Dn=()=>Ze.forEach(ke=>Mn(ke.key));re&&re.signal.addEventListener("abort",Dn);let{loaderResults:Kt,fetcherResults:Lt}=await wo(je,Ze,L,ae);if(L.signal.aborted)return{shortCircuited:!0};re&&re.signal.removeEventListener("abort",Dn),Ze.forEach(ke=>R.delete(ke.key));let on=Ps(Kt);if(on)return await Fn(L,on.result,!0,{replace:Ee}),{shortCircuited:!0};if(on=Ps(Lt),on)return C.add(on.key),await Fn(L,on.result,!0,{replace:Ee}),{shortCircuited:!0};let{loaderData:Ur,errors:va}=zv(T,J,Kt,Se,Ze,Lt);Ce&&T.errors&&(va={...T.errors,...va});let Qn=Ia(),Zn=er(D),Jn=Qn||Zn||Ze.length>0;return{matches:J,loaderData:Ur,errors:va,...Jn?{fetchers:new Map(T.fetchers)}:{}}}function Gt(L){if(L&&!en(L[1]))return{[L[0]]:L[1].data};if(T.actionData)return Object.keys(T.actionData).length===0?null:T.actionData}function Lu(L){return L.forEach(q=>{let J=T.fetchers.get(q.key),ae=Qi(void 0,J?J.data:void 0);T.fetchers.set(q.key,ae)}),new Map(T.fetchers)}async function xo(L,q,J,ae){Mn(L);let se=(ae&&ae.flushSync)===!0,ge=h||f,be=Sd(T.location,T.matches,p,J,q,ae?.relative),ve=Ya(ge,be,p),Ee=ar(ve,ge,be);if(Ee.active&&Ee.matches&&(ve=Ee.matches),!ve){lt(L,q,yn(404,{pathname:be}),{flushSync:se});return}let{path:Ce,submission:ye,error:Se}=Av(!0,be,ae);if(Se){lt(L,q,Se,{flushSync:se});return}let _e=new Cv(n.unstable_getContext?await n.unstable_getContext():void 0),Fe=(ae&&ae.preventScrollReset)===!0;if(ye&&Vt(ye.formMethod)){await So(L,q,Ce,ve,_e,Ee.active,se,Fe,ye);return}U.set(L,{routeId:q,path:Ce}),await Lr(L,q,Ce,ve,_e,Ee.active,se,Fe,ye)}async function So(L,q,J,ae,se,ge,be,ve,Ee){Zl(),U.delete(L);let Ce=T.fetchers.get(L);Ut(L,QE(Ee,Ce),{flushSync:be});let ye=new AbortController,Se=Rl(n.history,J,ye.signal,Ee);if(ge){let it=await rr(ae,new URL(Se.url).pathname,Se.signal,L);if(it.type==="aborted")return;if(it.type==="error"){lt(L,q,it.error,{flushSync:be});return}else if(it.matches)ae=it.matches;else{lt(L,q,yn(404,{pathname:J}),{flushSync:be});return}}let _e=Js(ae,J);if(!_e.route.action&&!_e.route.lazy){let it=yn(405,{method:Ee.formMethod,pathname:J,routeId:q});lt(L,q,it,{flushSync:be});return}R.set(L,ye);let Fe=z,st=Nl(s,u,Se,ae,_e,i,se),je=(await ga(Se,st,se,L))[_e.route.id];if(Se.signal.aborted){R.get(L)===ye&&R.delete(L);return}if($.has(L)){if(Cr(je)||en(je)){Ut(L,Va(void 0));return}}else{if(Cr(je))if(R.delete(L),D>Fe){Ut(L,Va(void 0));return}else return C.add(L),Ut(L,Qi(Ee)),Fn(Se,je,!1,{fetcherSubmission:Ee,preventScrollReset:ve});if(en(je)){lt(L,q,je.error);return}}let Ze=T.navigation.location||T.location,Dn=Rl(n.history,Ze,ye.signal),Kt=h||f,Lt=T.navigation.state!=="idle"?Ya(Kt,T.navigation.location,p):T.matches;Pe(Lt,"Didn't find any matches after fetcher action");let on=++z;Z.set(L,on);let Ur=Qi(Ee,je.data);T.fetchers.set(L,Ur);let{dsMatches:va,revalidatingFetchers:Qn}=Nv(Dn,se,s,u,n.history,T,Lt,Ee,Ze,i,!1,ue,le,$,U,C,Kt,p,n.patchRoutesOnNavigation!=null,[_e.route.id,je]);Qn.filter(it=>it.key!==L).forEach(it=>{let ya=it.key,Ao=T.fetchers.get(ya),No=Qi(void 0,Ao?Ao.data:void 0);T.fetchers.set(ya,No),Mn(ya),it.controller&&R.set(ya,it.controller)}),Ye({fetchers:new Map(T.fetchers)});let Zn=()=>Qn.forEach(it=>Mn(it.key));ye.signal.addEventListener("abort",Zn);let{loaderResults:Jn,fetcherResults:ke}=await wo(va,Qn,Dn,se);if(ye.signal.aborted)return;if(ye.signal.removeEventListener("abort",Zn),Z.delete(L),R.delete(L),Qn.forEach(it=>R.delete(it.key)),T.fetchers.has(L)){let it=Va(je.data);T.fetchers.set(L,it)}let gt=Ps(Jn);if(gt)return Fn(Dn,gt.result,!1,{preventScrollReset:ve});if(gt=Ps(ke),gt)return C.add(gt.key),Fn(Dn,gt.result,!1,{preventScrollReset:ve});let{loaderData:lr,errors:sn}=zv(T,Lt,Jn,void 0,Qn,ke);er(on),T.navigation.state==="loading"&&on>D?(Pe(F,"Expected pending action"),re&&re.abort(),Ot(T.navigation.location,{matches:Lt,loaderData:lr,errors:sn,fetchers:new Map(T.fetchers)})):(Ye({errors:sn,loaderData:kv(T.loaderData,lr,Lt,sn),fetchers:new Map(T.fetchers)}),ue=!1)}async function Lr(L,q,J,ae,se,ge,be,ve,Ee){let Ce=T.fetchers.get(L);Ut(L,Qi(Ee,Ce?Ce.data:void 0),{flushSync:be});let ye=new AbortController,Se=Rl(n.history,J,ye.signal);if(ge){let Ze=await rr(ae,new URL(Se.url).pathname,Se.signal,L);if(Ze.type==="aborted")return;if(Ze.type==="error"){lt(L,q,Ze.error,{flushSync:be});return}else if(Ze.matches)ae=Ze.matches;else{lt(L,q,yn(404,{pathname:J}),{flushSync:be});return}}let _e=Js(ae,J);R.set(L,ye);let Fe=z,st=Nl(s,u,Se,ae,_e,i,se),je=(await ga(Se,st,se,L))[_e.route.id];if(R.get(L)===ye&&R.delete(L),!Se.signal.aborted){if($.has(L)){Ut(L,Va(void 0));return}if(Cr(je))if(D>Fe){Ut(L,Va(void 0));return}else{C.add(L),await Fn(Se,je,!1,{preventScrollReset:ve});return}if(en(je)){lt(L,q,je.error);return}Ut(L,Va(je.data))}}async function Fn(L,q,J,{submission:ae,fetcherSubmission:se,preventScrollReset:ge,replace:be}={}){q.response.headers.has("X-Remix-Revalidate")&&(ue=!0);let ve=q.response.headers.get("Location");Pe(ve,"Expected a Location header on the redirect Response"),ve=_v(ve,new URL(L.url),p);let Ee=bd(T.location,ve,{_isRedirect:!0});if(l){let st=!1;if(q.response.headers.has("X-Remix-Reload-Document"))st=!0;else if(Ud(ve)){const ut=tE(ve,!0);st=ut.origin!==a.location.origin||bn(ut.pathname,p)==null}if(st){be?a.location.replace(ve):a.location.assign(ve);return}}re=null;let Ce=be===!0||q.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:ye,formAction:Se,formEncType:_e}=T.navigation;!ae&&!se&&ye&&Se&&_e&&(ae=Bv(T.navigation));let Fe=ae||se;if(ME.has(q.response.status)&&Fe&&Vt(Fe.formMethod))await xn(Ce,Ee,{submission:{...Fe,formAction:ve},preventScrollReset:ge||W,enableViewTransition:J?oe:void 0});else{let st=Zf(Ee,ae);await xn(Ce,Ee,{overrideNavigation:st,fetcherSubmission:se,preventScrollReset:ge||W,enableViewTransition:J?oe:void 0})}}async function ga(L,q,J,ae){let se,ge={};try{se=await BE(m,L,q,ae,J,!1)}catch(be){return q.filter(ve=>ve.shouldLoad).forEach(ve=>{ge[ve.route.id]={type:"error",error:be}}),ge}if(L.signal.aborted)return ge;for(let[be,ve]of Object.entries(se))if(KE(ve)){let Ee=ve.result;ge[be]={type:"redirect",response:qE(Ee,L,be,q,p)}}else ge[be]=await VE(ve);return ge}async function wo(L,q,J,ae){let se=ga(J,L,ae,null),ge=Promise.all(q.map(async Ee=>{if(Ee.matches&&Ee.match&&Ee.request&&Ee.controller){let ye=(await ga(Ee.request,Ee.matches,ae,Ee.key))[Ee.match.route.id];return{[Ee.key]:ye}}else return Promise.resolve({[Ee.key]:{type:"error",error:yn(404,{pathname:Ee.path})}})})),be=await se,ve=(await ge).reduce((Ee,Ce)=>Object.assign(Ee,Ce),{});return{loaderResults:be,fetcherResults:ve}}function Zl(){ue=!0,U.forEach((L,q)=>{R.has(q)&&le.add(q),Mn(q)})}function Ut(L,q,J={}){T.fetchers.set(L,q),Ye({fetchers:new Map(T.fetchers)},{flushSync:(J&&J.flushSync)===!0})}function lt(L,q,J,ae={}){let se=Er(T.matches,q);At(L),Ye({errors:{[se.route.id]:J},fetchers:new Map(T.fetchers)},{flushSync:(ae&&ae.flushSync)===!0})}function Sn(L){return j.set(L,(j.get(L)||0)+1),$.has(L)&&$.delete(L),T.fetchers.get(L)||jE}function At(L){let q=T.fetchers.get(L);R.has(L)&&!(q&&q.state==="loading"&&Z.has(L))&&Mn(L),U.delete(L),Z.delete(L),C.delete(L),$.delete(L),le.delete(L),T.fetchers.delete(L)}function zu(L){let q=(j.get(L)||0)-1;q<=0?(j.delete(L),$.add(L)):j.set(L,q),Ye({fetchers:new Map(T.fetchers)})}function Mn(L){let q=R.get(L);q&&(q.abort(),R.delete(L))}function Eo(L){for(let q of L){let J=Sn(q),ae=Va(J.data);T.fetchers.set(q,ae)}}function Ia(){let L=[],q=!1;for(let J of C){let ae=T.fetchers.get(J);Pe(ae,`Expected fetcher: ${J}`),ae.state==="loading"&&(C.delete(J),L.push(J),q=!0)}return Eo(L),q}function er(L){let q=[];for(let[J,ae]of Z)if(ae<L){let se=T.fetchers.get(J);Pe(se,`Expected fetcher: ${J}`),se.state==="loading"&&(Mn(J),Z.delete(J),q.push(J))}return Eo(q),q.length>0}function Xn(L,q){let J=T.blockers.get(L)||Xi;return I.get(L)!==q&&I.set(L,q),J}function tr(L){T.blockers.delete(L),I.delete(L)}function jn(L,q){let J=T.blockers.get(L)||Xi;Pe(J.state==="unblocked"&&q.state==="blocked"||J.state==="blocked"&&q.state==="blocked"||J.state==="blocked"&&q.state==="proceeding"||J.state==="blocked"&&q.state==="unblocked"||J.state==="proceeding"&&q.state==="unblocked",`Invalid blocker state transition: ${J.state} -> ${q.state}`);let ae=new Map(T.blockers);ae.set(L,q),Ye({blockers:ae})}function Ro({currentLocation:L,nextLocation:q,historyAction:J}){if(I.size===0)return;I.size>1&&ht(!1,"A router only supports one blocker at a time");let ae=Array.from(I.entries()),[se,ge]=ae[ae.length-1],be=T.blockers.get(se);if(!(be&&be.state==="proceeding")&&ge({currentLocation:L,nextLocation:q,historyAction:J}))return se}function zr(L){let q=yn(404,{pathname:L}),J=h||f,{matches:ae,route:se}=Pv(J);return{notFoundMatches:ae,route:se,error:q}}function Co(L,q,J){if(E=L,O=q,A=J||null,!_&&T.navigation===Qf){_=!0;let ae=Oo(T.location,T.matches);ae!=null&&Ye({restoreScrollPosition:ae})}return()=>{E=null,O=null,A=null}}function kr(L,q){return A&&A(L,q.map(ae=>oE(ae,T.loaderData)))||L.key}function nr(L,q){if(E&&O){let J=kr(L,q);E[J]=O()}}function Oo(L,q){if(E){let J=kr(L,q),ae=E[J];if(typeof ae=="number")return ae}return null}function ar(L,q,J){if(n.patchRoutesOnNavigation)if(L){if(Object.keys(L[0].params).length>0)return{active:!0,matches:Zs(q,J,p,!0)}}else return{active:!0,matches:Zs(q,J,p,!0)||[]};return{active:!1,matches:null}}async function rr(L,q,J,ae){if(!n.patchRoutesOnNavigation)return{type:"success",matches:L};let se=L;for(;;){let ge=h==null,be=h||f,ve=u;try{await n.patchRoutesOnNavigation({signal:J,path:q,matches:se,fetcherKey:ae,patch:(ye,Se)=>{J.aborted||Tv(ye,Se,be,ve,s,!1)}})}catch(ye){return{type:"error",error:ye,partialMatches:se}}finally{ge&&!J.aborted&&(f=[...f])}if(J.aborted)return{type:"aborted"};let Ee=Ya(be,q,p);if(Ee)return{type:"success",matches:Ee};let Ce=Zs(be,q,p,!0);if(!Ce||se.length===Ce.length&&se.every((ye,Se)=>ye.route.id===Ce[Se].route.id))return{type:"success",matches:null};se=Ce}}function Jl(L){u={},h=lo(L,s,void 0,u)}function Wl(L,q,J=!1){let ae=h==null;Tv(L,q,h||f,u,s,J),ae&&(f=[...f],Ye({}))}return V={get basename(){return p},get future(){return g},get state(){return T},get routes(){return f},get window(){return a},initialize:de,subscribe:qe,enableScrollRestoration:Co,navigate:Yt,fetch:xo,revalidate:Tn,createHref:L=>n.history.createHref(L),encodeLocation:L=>n.history.encodeLocation(L),getFetcher:Sn,deleteFetcher:zu,dispose:Te,getBlocker:Xn,deleteBlocker:tr,patchRoutes:Wl,_internalFetchControllers:R,_internalSetRoutes:Jl,_internalSetStateDoNotUseOrYouWillBreakYourApp(L){Ye(L)}},V}function zE(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function Sd(n,a,l,i,s,u){let f,h;if(s){f=[];for(let m of a)if(f.push(m),m.route.id===s){h=m;break}}else f=a,h=a[a.length-1];let p=gu(i||".",pu(f),bn(n.pathname,l)||n.pathname,u==="path");if(i==null&&(p.search=n.search,p.hash=n.hash),(i==null||i===""||i===".")&&h){let m=Pd(p.search);if(h.route.index&&!m)p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index";else if(!h.route.index&&m){let g=new URLSearchParams(p.search),b=g.getAll("index");g.delete("index"),b.filter(E=>E).forEach(E=>g.append("index",E));let S=g.toString();p.search=S?`?${S}`:""}}return l!=="/"&&(p.pathname=xE({basename:l,pathname:p.pathname})),Ka(p)}function Av(n,a,l){if(!l||!zE(l))return{path:a};if(l.formMethod&&!FE(l.formMethod))return{path:a,error:yn(405,{method:l.formMethod})};let i=()=>({path:a,error:yn(400,{type:"invalid-body"})}),u=(l.formMethod||"get").toUpperCase(),f=Iy(a);if(l.body!==void 0){if(l.formEncType==="text/plain"){if(!Vt(u))return i();let b=typeof l.body=="string"?l.body:l.body instanceof FormData||l.body instanceof URLSearchParams?Array.from(l.body.entries()).reduce((S,[E,A])=>`${S}${E}=${A}
|
|
66
|
+
`,""):String(l.body);return{path:a,submission:{formMethod:u,formAction:f,formEncType:l.formEncType,formData:void 0,json:void 0,text:b}}}else if(l.formEncType==="application/json"){if(!Vt(u))return i();try{let b=typeof l.body=="string"?JSON.parse(l.body):l.body;return{path:a,submission:{formMethod:u,formAction:f,formEncType:l.formEncType,formData:void 0,json:b,text:void 0}}}catch{return i()}}}Pe(typeof FormData=="function","FormData is not available in this environment");let h,p;if(l.formData)h=Rd(l.formData),p=l.formData;else if(l.body instanceof FormData)h=Rd(l.body),p=l.body;else if(l.body instanceof URLSearchParams)h=l.body,p=Lv(h);else if(l.body==null)h=new URLSearchParams,p=new FormData;else try{h=new URLSearchParams(l.body),p=Lv(h)}catch{return i()}let m={formMethod:u,formAction:f,formEncType:l&&l.formEncType||"application/x-www-form-urlencoded",formData:p,json:void 0,text:void 0};if(Vt(m.formMethod))return{path:a,submission:m};let g=pa(a);return n&&g.search&&Pd(g.search)&&h.append("index",""),g.search=`?${h}`,{path:Ka(g),submission:m}}function Nv(n,a,l,i,s,u,f,h,p,m,g,b,S,E,A,O,_,N,P,H){let K=H?en(H[1])?H[1].error:H[1].data:void 0,V=s.createURL(u.location),T=s.createURL(p),F;if(g&&u.errors){let fe=Object.keys(u.errors)[0];F=f.findIndex(ue=>ue.route.id===fe)}else if(H&&en(H[1])){let fe=H[0];F=f.findIndex(ue=>ue.route.id===fe)-1}let W=H?H[1].statusCode:void 0,re=W&&W>=400,oe={currentUrl:V,currentParams:u.matches[0]?.params||{},nextUrl:T,nextParams:f[0].params,...h,actionResult:K,actionStatus:W},Re=f.map((fe,ue)=>{let{route:le}=fe,R=null;if(F!=null&&ue>F?R=!1:le.lazy?R=!0:le.loader==null?R=!1:g?R=wd(le,u.loaderData,u.errors):kE(u.loaderData,u.matches[ue],fe)&&(R=!0),R!==null)return Ed(l,i,n,fe,m,a,R);let z=re?!1:b||V.pathname+V.search===T.pathname+T.search||V.search!==T.search||UE(u.matches[ue],fe),D={...oe,defaultShouldRevalidate:z},Z=ou(fe,D);return Ed(l,i,n,fe,m,a,Z,D)}),xe=[];return A.forEach((fe,ue)=>{if(g||!f.some(j=>j.route.id===fe.routeId)||E.has(ue))return;let le=u.fetchers.get(ue),R=le&&le.state!=="idle"&&le.data===void 0,z=Ya(_,fe.path,N);if(!z){if(P&&R)return;xe.push({key:ue,routeId:fe.routeId,path:fe.path,matches:null,match:null,request:null,controller:null});return}if(O.has(ue))return;let D=Js(z,fe.path),Z=new AbortController,C=Rl(s,fe.path,Z.signal),U=null;if(S.has(ue))S.delete(ue),U=Nl(l,i,C,z,D,m,a);else if(R)b&&(U=Nl(l,i,C,z,D,m,a));else{let j={...oe,defaultShouldRevalidate:re?!1:b};ou(D,j)&&(U=Nl(l,i,C,z,D,m,a,j))}U&&xe.push({key:ue,routeId:fe.routeId,path:fe.path,matches:U,match:D,request:C,controller:Z})}),{dsMatches:Re,revalidatingFetchers:xe}}function wd(n,a,l){if(n.lazy)return!0;if(!n.loader)return!1;let i=a!=null&&n.id in a,s=l!=null&&l[n.id]!==void 0;return!i&&s?!1:typeof n.loader=="function"&&n.loader.hydrate===!0?!0:!i&&!s}function kE(n,a,l){let i=!a||l.route.id!==a.route.id,s=!n.hasOwnProperty(l.route.id);return i||s}function UE(n,a){let l=n.route.path;return n.pathname!==a.pathname||l!=null&&l.endsWith("*")&&n.params["*"]!==a.params["*"]}function ou(n,a){if(n.route.shouldRevalidate){let l=n.route.shouldRevalidate(a);if(typeof l=="boolean")return l}return a.defaultShouldRevalidate}function Tv(n,a,l,i,s,u){let f;if(n){let m=i[n];Pe(m,`No route found to patch children into: routeId = ${n}`),m.children||(m.children=[]),f=m.children}else f=l;let h=[],p=[];if(a.forEach(m=>{let g=f.find(b=>Xy(m,b));g?p.push({existingRoute:g,newRoute:m}):h.push(m)}),h.length>0){let m=lo(h,s,[n||"_","patch",String(f?.length||"0")],i);f.push(...m)}if(u&&p.length>0)for(let m=0;m<p.length;m++){let{existingRoute:g,newRoute:b}=p[m],S=g,[E]=lo([b],s,[],{},!0);Object.assign(S,{element:E.element?E.element:S.element,errorElement:E.errorElement?E.errorElement:S.errorElement,hydrateFallbackElement:E.hydrateFallbackElement?E.hydrateFallbackElement:S.hydrateFallbackElement})}}function Xy(n,a){return"id"in n&&"id"in a&&n.id===a.id?!0:n.index===a.index&&n.path===a.path&&n.caseSensitive===a.caseSensitive?(!n.children||n.children.length===0)&&(!a.children||a.children.length===0)?!0:n.children.every((l,i)=>a.children?.some(s=>Xy(l,s))):!1}var Mv=new WeakMap,Qy=({key:n,route:a,manifest:l,mapRouteProperties:i})=>{let s=l[a.id];if(Pe(s,"No route found in manifest"),!s.lazy||typeof s.lazy!="object")return;let u=s.lazy[n];if(!u)return;let f=Mv.get(s);f||(f={},Mv.set(s,f));let h=f[n];if(h)return h;let p=(async()=>{let m=aE(n),b=s[n]!==void 0&&n!=="hasErrorBoundary";if(m)ht(!m,"Route property "+n+" is not a supported lazy route property. This property will be ignored."),f[n]=Promise.resolve();else if(b)ht(!1,`Route "${s.id}" has a static property "${n}" defined. The lazy property will be ignored.`);else{let S=await u();S!=null&&(Object.assign(s,{[n]:S}),Object.assign(s,i(s)))}typeof s.lazy=="object"&&(s.lazy[n]=void 0,Object.values(s.lazy).every(S=>S===void 0)&&(s.lazy=void 0))})();return f[n]=p,p},jv=new WeakMap;function PE(n,a,l,i,s){let u=l[n.id];if(Pe(u,"No route found in manifest"),!n.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof n.lazy=="function"){let g=jv.get(u);if(g)return{lazyRoutePromise:g,lazyHandlerPromise:g};let b=(async()=>{Pe(typeof n.lazy=="function","No lazy route function found");let S=await n.lazy(),E={};for(let A in S){let O=S[A];if(O===void 0)continue;let _=lE(A),P=u[A]!==void 0&&A!=="hasErrorBoundary";_?ht(!_,"Route property "+A+" is not a supported property to be returned from a lazy route function. This property will be ignored."):P?ht(!P,`Route "${u.id}" has a static property "${A}" defined but its lazy function is also returning a value for this property. The lazy route property "${A}" will be ignored.`):E[A]=O}Object.assign(u,E),Object.assign(u,{...i(u),lazy:void 0})})();return jv.set(u,b),b.catch(()=>{}),{lazyRoutePromise:b,lazyHandlerPromise:b}}let f=Object.keys(n.lazy),h=[],p;for(let g of f){if(s&&s.includes(g))continue;let b=Qy({key:g,route:n,manifest:l,mapRouteProperties:i});b&&(h.push(b),g===a&&(p=b))}let m=h.length>0?Promise.all(h).then(()=>{}):void 0;return m?.catch(()=>{}),p?.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:p}}async function Dv(n){let a=n.matches.filter(s=>s.shouldLoad),l={};return(await Promise.all(a.map(s=>s.resolve()))).forEach((s,u)=>{l[a[u].route.id]=s}),l}async function HE(n){return n.matches.some(a=>a.route.unstable_middleware)?Zy(n,!1,()=>Dv(n),(a,l)=>({[l]:{type:"error",result:a}})):Dv(n)}async function Zy(n,a,l,i){let{matches:s,request:u,params:f,context:h}=n,p={handlerResult:void 0};try{let m=s.flatMap(b=>b.route.unstable_middleware?b.route.unstable_middleware.map(S=>[b.route.id,S]):[]),g=await Jy({request:u,params:f,context:h},m,a,p,l);return a?g:p.handlerResult}catch(m){if(!p.middlewareError)throw m;let g=await i(p.middlewareError.error,p.middlewareError.routeId);return p.handlerResult?Object.assign(p.handlerResult,g):g}}async function Jy(n,a,l,i,s,u=0){let{request:f}=n;if(f.signal.aborted)throw f.signal.reason?f.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${f.method} ${f.url}`);let h=a[u];if(!h)return i.handlerResult=await s(),i.handlerResult;let[p,m]=h,g=!1,b,S=async()=>{if(g)throw new Error("You may only call `next()` once per middleware");g=!0,await Jy(n,a,l,i,s,u+1)};try{let E=await m({request:n.request,params:n.params,context:n.context},S);return g?E===void 0?b:E:S()}catch(E){throw i.middlewareError?i.middlewareError.error!==E&&(i.middlewareError={routeId:p,error:E}):i.middlewareError={routeId:p,error:E},E}}function Wy(n,a,l,i,s){let u=Qy({key:"unstable_middleware",route:i.route,manifest:a,mapRouteProperties:n}),f=PE(i.route,Vt(l.method)?"action":"loader",a,n,s);return{middleware:u,route:f.lazyRoutePromise,handler:f.lazyHandlerPromise}}function Ed(n,a,l,i,s,u,f,h=null){let p=!1,m=Wy(n,a,l,i,s);return{...i,_lazyPromises:m,shouldLoad:f,unstable_shouldRevalidateArgs:h,unstable_shouldCallHandler(g){return p=!0,h?typeof g=="boolean"?ou(i,{...h,defaultShouldRevalidate:g}):ou(i,h):f},resolve(g){return p||f||g&&!Vt(l.method)&&(i.route.lazy||i.route.loader)?$E({request:l,match:i,lazyHandlerPromise:m?.handler,lazyRoutePromise:m?.route,handlerOverride:g,scopedContext:u}):Promise.resolve({type:"data",result:void 0})}}}function Nl(n,a,l,i,s,u,f,h=null){return i.map(p=>p.route.id!==s.route.id?{...p,shouldLoad:!1,unstable_shouldRevalidateArgs:h,unstable_shouldCallHandler:()=>!1,_lazyPromises:Wy(n,a,l,p,u),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Ed(n,a,l,p,u,f,!0,h))}async function BE(n,a,l,i,s,u){l.some(m=>m._lazyPromises?.middleware)&&await Promise.all(l.map(m=>m._lazyPromises?.middleware));let f={request:a,params:l[0].params,context:s,matches:l},p=await n({...f,fetcherKey:i,unstable_runClientMiddleware:m=>{let g=f;return Zy(g,!1,()=>m({...g,fetcherKey:i,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(b,S)=>({[S]:{type:"error",result:b}}))}});try{await Promise.all(l.flatMap(m=>[m._lazyPromises?.handler,m._lazyPromises?.route]))}catch{}return p}async function $E({request:n,match:a,lazyHandlerPromise:l,lazyRoutePromise:i,handlerOverride:s,scopedContext:u}){let f,h,p=Vt(n.method),m=p?"action":"loader",g=b=>{let S,E=new Promise((_,N)=>S=N);h=()=>S(),n.signal.addEventListener("abort",h);let A=_=>typeof b!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${m}" [routeId: ${a.route.id}]`)):b({request:n,params:a.params,context:u},..._!==void 0?[_]:[]),O=(async()=>{try{return{type:"data",result:await(s?s(N=>A(N)):A())}}catch(_){return{type:"error",result:_}}})();return Promise.race([O,E])};try{let b=p?a.route.action:a.route.loader;if(l||i)if(b){let S,[E]=await Promise.all([g(b).catch(A=>{S=A}),l,i]);if(S!==void 0)throw S;f=E}else{await l;let S=p?a.route.action:a.route.loader;if(S)[f]=await Promise.all([g(S),i]);else if(m==="action"){let E=new URL(n.url),A=E.pathname+E.search;throw yn(405,{method:n.method,pathname:A,routeId:a.route.id})}else return{type:"data",result:void 0}}else if(b)f=await g(b);else{let S=new URL(n.url),E=S.pathname+S.search;throw yn(404,{pathname:E})}}catch(b){return{type:"error",result:b}}finally{h&&n.signal.removeEventListener("abort",h)}return f}async function VE(n){let{result:a,type:l}=n;if(e0(a)){let i;try{let s=a.headers.get("Content-Type");s&&/\bapplication\/json\b/.test(s)?a.body==null?i=null:i=await a.json():i=await a.text()}catch(s){return{type:"error",error:s}}return l==="error"?{type:"error",error:new xd(a.status,a.statusText,i),statusCode:a.status,headers:a.headers}:{type:"data",data:i,statusCode:a.status,headers:a.headers}}return l==="error"?Hv(a)?a.data instanceof Error?{type:"error",error:a.data,statusCode:a.init?.status,headers:a.init?.headers?new Headers(a.init.headers):void 0}:{type:"error",error:new xd(a.init?.status||500,void 0,a.data),statusCode:io(a)?a.status:void 0,headers:a.init?.headers?new Headers(a.init.headers):void 0}:{type:"error",error:a,statusCode:io(a)?a.status:void 0}:Hv(a)?{type:"data",data:a.data,statusCode:a.init?.status,headers:a.init?.headers?new Headers(a.init.headers):void 0}:{type:"data",data:a}}function qE(n,a,l,i,s){let u=n.headers.get("Location");if(Pe(u,"Redirects returned/thrown from loaders/actions must have a Location header"),!Ud(u)){let f=i.slice(0,i.findIndex(h=>h.route.id===l)+1);u=Sd(new URL(a.url),f,s,u),n.headers.set("Location",u)}return n}function _v(n,a,l){if(Ud(n)){let i=n,s=i.startsWith("//")?new URL(a.protocol+i):new URL(i),u=bn(s.pathname,l)!=null;if(s.origin===a.origin&&u)return s.pathname+s.search+s.hash}return n}function Rl(n,a,l,i){let s=n.createURL(Iy(a)).toString(),u={signal:l};if(i&&Vt(i.formMethod)){let{formMethod:f,formEncType:h}=i;u.method=f.toUpperCase(),h==="application/json"?(u.headers=new Headers({"Content-Type":h}),u.body=JSON.stringify(i.json)):h==="text/plain"?u.body=i.text:h==="application/x-www-form-urlencoded"&&i.formData?u.body=Rd(i.formData):u.body=i.formData}return new Request(s,u)}function Rd(n){let a=new URLSearchParams;for(let[l,i]of n.entries())a.append(l,typeof i=="string"?i:i.name);return a}function Lv(n){let a=new FormData;for(let[l,i]of n.entries())a.append(l,i);return a}function YE(n,a,l,i=!1,s=!1){let u={},f=null,h,p=!1,m={},g=l&&en(l[1])?l[1].error:void 0;return n.forEach(b=>{if(!(b.route.id in a))return;let S=b.route.id,E=a[S];if(Pe(!Cr(E),"Cannot handle redirect results in processLoaderData"),en(E)){let A=E.error;if(g!==void 0&&(A=g,g=void 0),f=f||{},s)f[S]=A;else{let O=Er(n,S);f[O.route.id]==null&&(f[O.route.id]=A)}i||(u[S]=Fy),p||(p=!0,h=io(E.error)?E.error.status:500),E.headers&&(m[S]=E.headers)}else u[S]=E.data,E.statusCode&&E.statusCode!==200&&!p&&(h=E.statusCode),E.headers&&(m[S]=E.headers)}),g!==void 0&&l&&(f={[l[0]]:g},l[2]&&(u[l[2]]=void 0)),{loaderData:u,errors:f,statusCode:h||200,loaderHeaders:m}}function zv(n,a,l,i,s,u){let{loaderData:f,errors:h}=YE(a,l,i);return s.filter(p=>!p.matches||p.matches.some(m=>m.shouldLoad)).forEach(p=>{let{key:m,match:g,controller:b}=p,S=u[m];if(Pe(S,"Did not find corresponding fetcher result"),!(b&&b.signal.aborted))if(en(S)){let E=Er(n.matches,g?.route.id);h&&h[E.route.id]||(h={...h,[E.route.id]:S.error}),n.fetchers.delete(m)}else if(Cr(S))Pe(!1,"Unhandled fetcher revalidation redirect");else{let E=Va(S.data);n.fetchers.set(m,E)}}),{loaderData:f,errors:h}}function kv(n,a,l,i){let s=Object.entries(a).filter(([,u])=>u!==Fy).reduce((u,[f,h])=>(u[f]=h,u),{});for(let u of l){let f=u.route.id;if(!a.hasOwnProperty(f)&&n.hasOwnProperty(f)&&u.route.loader&&(s[f]=n[f]),i&&i.hasOwnProperty(f))break}return s}function Uv(n){return n?en(n[1])?{actionData:{}}:{actionData:{[n[0]]:n[1].data}}:{}}function Er(n,a){return(a?n.slice(0,n.findIndex(i=>i.route.id===a)+1):[...n]).reverse().find(i=>i.route.hasErrorBoundary===!0)||n[0]}function Pv(n){let a=n.length===1?n[0]:n.find(l=>l.index||!l.path||l.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:a}],route:a}}function yn(n,{pathname:a,routeId:l,method:i,type:s,message:u}={}){let f="Unknown Server Error",h="Unknown @remix-run/router error";return n===400?(f="Bad Request",i&&a&&l?h=`You made a ${i} request to "${a}" but did not provide a \`loader\` for route "${l}", so there is no way to handle the request.`:s==="invalid-body"&&(h="Unable to encode submission body")):n===403?(f="Forbidden",h=`Route "${l}" does not match URL "${a}"`):n===404?(f="Not Found",h=`No route matches URL "${a}"`):n===405&&(f="Method Not Allowed",i&&a&&l?h=`You made a ${i.toUpperCase()} request to "${a}" but did not provide an \`action\` for route "${l}", so there is no way to handle the request.`:i&&(h=`Invalid request method "${i.toUpperCase()}"`)),new xd(n||500,f,new Error(h),!0)}function Ps(n){let a=Object.entries(n);for(let l=a.length-1;l>=0;l--){let[i,s]=a[l];if(Cr(s))return{key:i,result:s}}}function Iy(n){let a=typeof n=="string"?pa(n):n;return Ka({...a,hash:""})}function GE(n,a){return n.pathname!==a.pathname||n.search!==a.search?!1:n.hash===""?a.hash!=="":n.hash===a.hash?!0:a.hash!==""}function KE(n){return e0(n.result)&&TE.has(n.result.status)}function en(n){return n.type==="error"}function Cr(n){return(n&&n.type)==="redirect"}function Hv(n){return typeof n=="object"&&n!=null&&"type"in n&&"data"in n&&"init"in n&&n.type==="DataWithResponseInit"}function e0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function FE(n){return NE.has(n.toUpperCase())}function Vt(n){return OE.has(n.toUpperCase())}function Pd(n){return new URLSearchParams(n).getAll("index").some(a=>a==="")}function Js(n,a){let l=typeof a=="string"?pa(a).search:a.search;if(n[n.length-1].route.index&&Pd(l||""))return n[n.length-1];let i=Yy(n);return i[i.length-1]}function Bv(n){let{formMethod:a,formAction:l,formEncType:i,text:s,formData:u,json:f}=n;if(!(!a||!l||!i)){if(s!=null)return{formMethod:a,formAction:l,formEncType:i,formData:void 0,json:void 0,text:s};if(u!=null)return{formMethod:a,formAction:l,formEncType:i,formData:u,json:void 0,text:void 0};if(f!==void 0)return{formMethod:a,formAction:l,formEncType:i,formData:void 0,json:f,text:void 0}}}function Zf(n,a){return a?{state:"loading",location:n,formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text}:{state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function XE(n,a){return{state:"submitting",location:n,formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text}}function Qi(n,a){return n?{state:"loading",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:a}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:a}}function QE(n,a){return{state:"submitting",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:a?a.data:void 0}}function Va(n){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function ZE(n,a){try{let l=n.sessionStorage.getItem(Ky);if(l){let i=JSON.parse(l);for(let[s,u]of Object.entries(i||{}))u&&Array.isArray(u)&&a.set(s,new Set(u||[]))}}catch{}}function JE(n,a){if(a.size>0){let l={};for(let[i,s]of a)l[i]=[...s];try{n.sessionStorage.setItem(Ky,JSON.stringify(l))}catch(i){ht(!1,`Failed to save applied view transitions in sessionStorage (${i}).`)}}}function WE(){let n,a,l=new Promise((i,s)=>{n=async u=>{i(u);try{await l}catch{}},a=async u=>{s(u);try{await l}catch{}}});return{promise:l,resolve:n,reject:a}}var _r=v.createContext(null);_r.displayName="DataRouter";var mo=v.createContext(null);mo.displayName="DataRouterState";v.createContext(!1);var Hd=v.createContext({isTransitioning:!1});Hd.displayName="ViewTransition";var t0=v.createContext(new Map);t0.displayName="Fetchers";var IE=v.createContext(null);IE.displayName="Await";var An=v.createContext(null);An.displayName="Navigation";var vu=v.createContext(null);vu.displayName="Location";var Gn=v.createContext({outlet:null,matches:[],isDataRoute:!1});Gn.displayName="Route";var Bd=v.createContext(null);Bd.displayName="RouteError";function eR(n,{relative:a}={}){Pe(Vl(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:i}=v.useContext(An),{hash:s,pathname:u,search:f}=po(n,{relative:a}),h=u;return l!=="/"&&(h=u==="/"?l:$n([l,u])),i.createHref({pathname:h,search:f,hash:s})}function Vl(){return v.useContext(vu)!=null}function Ja(){return Pe(Vl(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(vu).location}var n0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function a0(n){v.useContext(An).static||v.useLayoutEffect(n)}function yu(){let{isDataRoute:n}=v.useContext(Gn);return n?hR():tR()}function tR(){Pe(Vl(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(_r),{basename:a,navigator:l}=v.useContext(An),{matches:i}=v.useContext(Gn),{pathname:s}=Ja(),u=JSON.stringify(pu(i)),f=v.useRef(!1);return a0(()=>{f.current=!0}),v.useCallback((p,m={})=>{if(ht(f.current,n0),!f.current)return;if(typeof p=="number"){l.go(p);return}let g=gu(p,JSON.parse(u),s,m.relative==="path");n==null&&a!=="/"&&(g.pathname=g.pathname==="/"?a:$n([a,g.pathname])),(m.replace?l.replace:l.push)(g,m.state,m)},[a,l,u,s,n])}v.createContext(null);function po(n,{relative:a}={}){let{matches:l}=v.useContext(Gn),{pathname:i}=Ja(),s=JSON.stringify(pu(l));return v.useMemo(()=>gu(n,JSON.parse(s),i,a==="path"),[n,s,i,a])}function nR(n,a,l,i){Pe(Vl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=v.useContext(An),{matches:u}=v.useContext(Gn),f=u[u.length-1],h=f?f.params:{},p=f?f.pathname:"/",m=f?f.pathnameBase:"/",g=f&&f.route;{let N=g&&g.path||"";r0(p,!g||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
67
|
+
|
|
68
|
+
Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let b=Ja(),S;S=b;let E=S.pathname||"/",A=E;if(m!=="/"){let N=m.replace(/^\//,"").split("/");A="/"+E.replace(/^\//,"").split("/").slice(N.length).join("/")}let O=Ya(n,{pathname:A});return ht(g||O!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),ht(O==null||O[O.length-1].route.element!==void 0||O[O.length-1].route.Component!==void 0||O[O.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),oR(O&&O.map(N=>Object.assign({},N,{params:Object.assign({},h,N.params),pathname:$n([m,s.encodeLocation?s.encodeLocation(N.pathname).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?m:$n([m,s.encodeLocation?s.encodeLocation(N.pathnameBase).pathname:N.pathnameBase])})),u,l,i)}function aR(){let n=dR(),a=io(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),l=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},u={padding:"2px 4px",backgroundColor:i},f=null;return console.error("Error handled by React Router default ErrorBoundary:",n),f=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:u},"ErrorBoundary")," or"," ",v.createElement("code",{style:u},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},a),l?v.createElement("pre",{style:s},l):null,f)}var rR=v.createElement(aR,null),lR=class extends v.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){console.error("React Router caught the following error during render",n,a)}render(){return this.state.error!==void 0?v.createElement(Gn.Provider,{value:this.props.routeContext},v.createElement(Bd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function iR({routeContext:n,match:a,children:l}){let i=v.useContext(_r);return i&&i.static&&i.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=a.route.id),v.createElement(Gn.Provider,{value:n},l)}function oR(n,a=[],l=null,i=null){if(n==null){if(!l)return null;if(l.errors)n=l.matches;else if(a.length===0&&!l.initialized&&l.matches.length>0)n=l.matches;else return null}let s=n,u=l?.errors;if(u!=null){let p=s.findIndex(m=>m.route.id&&u?.[m.route.id]!==void 0);Pe(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let f=!1,h=-1;if(l)for(let p=0;p<s.length;p++){let m=s[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=p),m.route.id){let{loaderData:g,errors:b}=l,S=m.route.loader&&!g.hasOwnProperty(m.route.id)&&(!b||b[m.route.id]===void 0);if(m.route.lazy||S){f=!0,h>=0?s=s.slice(0,h+1):s=[s[0]];break}}}return s.reduceRight((p,m,g)=>{let b,S=!1,E=null,A=null;l&&(b=u&&m.route.id?u[m.route.id]:void 0,E=m.route.errorElement||rR,f&&(h<0&&g===0?(r0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,A=null):h===g&&(S=!0,A=m.route.hydrateFallbackElement||null)));let O=a.concat(s.slice(0,g+1)),_=()=>{let N;return b?N=E:S?N=A:m.route.Component?N=v.createElement(m.route.Component,null):m.route.element?N=m.route.element:N=p,v.createElement(iR,{match:m,routeContext:{outlet:p,matches:O,isDataRoute:l!=null},children:N})};return l&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?v.createElement(lR,{location:l.location,revalidation:l.revalidation,component:E,error:b,children:_(),routeContext:{outlet:null,matches:O,isDataRoute:!0}}):_()},null)}function $d(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sR(n){let a=v.useContext(_r);return Pe(a,$d(n)),a}function uR(n){let a=v.useContext(mo);return Pe(a,$d(n)),a}function cR(n){let a=v.useContext(Gn);return Pe(a,$d(n)),a}function Vd(n){let a=cR(n),l=a.matches[a.matches.length-1];return Pe(l.route.id,`${n} can only be used on routes that contain a unique "id"`),l.route.id}function fR(){return Vd("useRouteId")}function dR(){let n=v.useContext(Bd),a=uR("useRouteError"),l=Vd("useRouteError");return n!==void 0?n:a.errors?.[l]}function hR(){let{router:n}=sR("useNavigate"),a=Vd("useNavigate"),l=v.useRef(!1);return a0(()=>{l.current=!0}),v.useCallback(async(s,u={})=>{ht(l.current,n0),l.current&&(typeof s=="number"?n.navigate(s):await n.navigate(s,{fromRouteId:a,...u}))},[n,a])}var $v={};function r0(n,a,l){!a&&!$v[n]&&($v[n]=!0,ht(!1,l))}var Vv={};function qv(n,a){!n&&!Vv[a]&&(Vv[a]=!0,console.warn(a))}function mR(n){let a={hasErrorBoundary:n.hasErrorBoundary||n.ErrorBoundary!=null||n.errorElement!=null};return n.Component&&(n.element&&ht(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(a,{element:v.createElement(n.Component),Component:void 0})),n.HydrateFallback&&(n.hydrateFallbackElement&&ht(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(a,{hydrateFallbackElement:v.createElement(n.HydrateFallback),HydrateFallback:void 0})),n.ErrorBoundary&&(n.errorElement&&ht(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(a,{errorElement:v.createElement(n.ErrorBoundary),ErrorBoundary:void 0})),a}var pR=["HydrateFallback","hydrateFallbackElement"];function gR(n,a){return LE({basename:a?.basename,unstable_getContext:a?.unstable_getContext,future:a?.future,history:Iw({initialEntries:a?.initialEntries,initialIndex:a?.initialIndex}),hydrationData:a?.hydrationData,routes:n,hydrationRouteProperties:pR,mapRouteProperties:mR,dataStrategy:a?.dataStrategy,patchRoutesOnNavigation:a?.patchRoutesOnNavigation}).initialize()}var vR=class{constructor(){this.status="pending",this.promise=new Promise((n,a)=>{this.resolve=l=>{this.status==="pending"&&(this.status="resolved",n(l))},this.reject=l=>{this.status==="pending"&&(this.status="rejected",a(l))}})}};function yR({router:n,flushSync:a}){let[l,i]=v.useState(n.state),[s,u]=v.useState(),[f,h]=v.useState({isTransitioning:!1}),[p,m]=v.useState(),[g,b]=v.useState(),[S,E]=v.useState(),A=v.useRef(new Map),O=v.useCallback((H,{deletedFetchers:K,flushSync:V,viewTransitionOpts:T})=>{H.fetchers.forEach((W,re)=>{W.data!==void 0&&A.current.set(re,W.data)}),K.forEach(W=>A.current.delete(W)),qv(V===!1||a!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let F=n.window!=null&&n.window.document!=null&&typeof n.window.document.startViewTransition=="function";if(qv(T==null||F,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!T||!F){a&&V?a(()=>i(H)):v.startTransition(()=>i(H));return}if(a&&V){a(()=>{g&&(p&&p.resolve(),g.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:T.currentLocation,nextLocation:T.nextLocation})});let W=n.window.document.startViewTransition(()=>{a(()=>i(H))});W.finished.finally(()=>{a(()=>{m(void 0),b(void 0),u(void 0),h({isTransitioning:!1})})}),a(()=>b(W));return}g?(p&&p.resolve(),g.skipTransition(),E({state:H,currentLocation:T.currentLocation,nextLocation:T.nextLocation})):(u(H),h({isTransitioning:!0,flushSync:!1,currentLocation:T.currentLocation,nextLocation:T.nextLocation}))},[n.window,a,g,p]);v.useLayoutEffect(()=>n.subscribe(O),[n,O]),v.useEffect(()=>{f.isTransitioning&&!f.flushSync&&m(new vR)},[f]),v.useEffect(()=>{if(p&&s&&n.window){let H=s,K=p.promise,V=n.window.document.startViewTransition(async()=>{v.startTransition(()=>i(H)),await K});V.finished.finally(()=>{m(void 0),b(void 0),u(void 0),h({isTransitioning:!1})}),b(V)}},[s,p,n.window]),v.useEffect(()=>{p&&s&&l.location.key===s.location.key&&p.resolve()},[p,g,l.location,s]),v.useEffect(()=>{!f.isTransitioning&&S&&(u(S.state),h({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),E(void 0))},[f.isTransitioning,S]);let _=v.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:H=>n.navigate(H),push:(H,K,V)=>n.navigate(H,{state:K,preventScrollReset:V?.preventScrollReset}),replace:(H,K,V)=>n.navigate(H,{replace:!0,state:K,preventScrollReset:V?.preventScrollReset})}),[n]),N=n.basename||"/",P=v.useMemo(()=>({router:n,navigator:_,static:!1,basename:N}),[n,_,N]);return v.createElement(v.Fragment,null,v.createElement(_r.Provider,{value:P},v.createElement(mo.Provider,{value:l},v.createElement(t0.Provider,{value:A.current},v.createElement(Hd.Provider,{value:f},v.createElement(wR,{basename:N,location:l.location,navigationType:l.historyAction,navigator:_},v.createElement(bR,{routes:n.routes,future:n.future,state:l})))))),null)}var bR=v.memo(xR);function xR({routes:n,future:a,state:l}){return nR(n,void 0,l,a)}function SR({to:n,replace:a,state:l,relative:i}){Pe(Vl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=v.useContext(An);ht(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=v.useContext(Gn),{pathname:f}=Ja(),h=yu(),p=gu(n,pu(u),f,i==="path"),m=JSON.stringify(p);return v.useEffect(()=>{h(JSON.parse(m),{replace:a,state:l,relative:i})},[h,m,i,a,l]),null}function wR({basename:n="/",children:a=null,location:l,navigationType:i="POP",navigator:s,static:u=!1}){Pe(!Vl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=n.replace(/^\/*/,"/"),h=v.useMemo(()=>({basename:f,navigator:s,static:u,future:{}}),[f,s,u]);typeof l=="string"&&(l=pa(l));let{pathname:p="/",search:m="",hash:g="",state:b=null,key:S="default"}=l,E=v.useMemo(()=>{let A=bn(p,f);return A==null?null:{location:{pathname:A,search:m,hash:g,state:b,key:S},navigationType:i}},[f,p,m,g,b,S,i]);return ht(E!=null,`<Router basename="${f}"> is not able to match the URL "${p}${m}${g}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:v.createElement(An.Provider,{value:h},v.createElement(vu.Provider,{children:a,value:E}))}var Ws="get",Is="application/x-www-form-urlencoded";function bu(n){return n!=null&&typeof n.tagName=="string"}function ER(n){return bu(n)&&n.tagName.toLowerCase()==="button"}function RR(n){return bu(n)&&n.tagName.toLowerCase()==="form"}function CR(n){return bu(n)&&n.tagName.toLowerCase()==="input"}function OR(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function AR(n,a){return n.button===0&&(!a||a==="_self")&&!OR(n)}var Hs=null;function NR(){if(Hs===null)try{new FormData(document.createElement("form"),0),Hs=!1}catch{Hs=!0}return Hs}var TR=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Jf(n){return n!=null&&!TR.has(n)?(ht(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Is}"`),null):n}function MR(n,a){let l,i,s,u,f;if(RR(n)){let h=n.getAttribute("action");i=h?bn(h,a):null,l=n.getAttribute("method")||Ws,s=Jf(n.getAttribute("enctype"))||Is,u=new FormData(n)}else if(ER(n)||CR(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||h.getAttribute("action");if(i=p?bn(p,a):null,l=n.getAttribute("formmethod")||h.getAttribute("method")||Ws,s=Jf(n.getAttribute("formenctype"))||Jf(h.getAttribute("enctype"))||Is,u=new FormData(h,n),!NR()){let{name:m,type:g,value:b}=n;if(g==="image"){let S=m?`${m}.`:"";u.append(`${S}x`,"0"),u.append(`${S}y`,"0")}else m&&u.append(m,b)}}else{if(bu(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=Ws,i=null,s=Is,f=n}return u&&s==="text/plain"&&(f=u,u=void 0),{action:i,method:l.toLowerCase(),encType:s,formData:u,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function qd(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function jR(n,a,l){let i=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return i.pathname==="/"?i.pathname=`_root.${l}`:a&&bn(i.pathname,a)==="/"?i.pathname=`${a.replace(/\/$/,"")}/_root.${l}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${l}`,i}async function DR(n,a){if(n.id in a)return a[n.id];try{let l=await import(n.module);return a[n.id]=l,l}catch(l){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function _R(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function LR(n,a,l){let i=await Promise.all(n.map(async s=>{let u=a.routes[s.route.id];if(u){let f=await DR(u,l);return f.links?f.links():[]}return[]}));return PR(i.flat(1).filter(_R).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Yv(n,a,l,i,s,u){let f=(p,m)=>l[m]?p.route.id!==l[m].route.id:!0,h=(p,m)=>l[m].pathname!==p.pathname||l[m].route.path?.endsWith("*")&&l[m].params["*"]!==p.params["*"];return u==="assets"?a.filter((p,m)=>f(p,m)||h(p,m)):u==="data"?a.filter((p,m)=>{let g=i.routes[p.route.id];if(!g||!g.hasLoader)return!1;if(f(p,m)||h(p,m))return!0;if(p.route.shouldRevalidate){let b=p.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:l[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function zR(n,a,{includeHydrateFallback:l}={}){return kR(n.map(i=>{let s=a.routes[i.route.id];if(!s)return[];let u=[s.module];return s.clientActionModule&&(u=u.concat(s.clientActionModule)),s.clientLoaderModule&&(u=u.concat(s.clientLoaderModule)),l&&s.hydrateFallbackModule&&(u=u.concat(s.hydrateFallbackModule)),s.imports&&(u=u.concat(s.imports)),u}).flat(1))}function kR(n){return[...new Set(n)]}function UR(n){let a={},l=Object.keys(n).sort();for(let i of l)a[i]=n[i];return a}function PR(n,a){let l=new Set;return new Set(a),n.reduce((i,s)=>{let u=JSON.stringify(UR(s));return l.has(u)||(l.add(u),i.push({key:u,link:s})),i},[])}function l0(){let n=v.useContext(_r);return qd(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function HR(){let n=v.useContext(mo);return qd(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Yd=v.createContext(void 0);Yd.displayName="FrameworkContext";function i0(){let n=v.useContext(Yd);return qd(n,"You must render this element inside a <HydratedRouter> element"),n}function BR(n,a){let l=v.useContext(Yd),[i,s]=v.useState(!1),[u,f]=v.useState(!1),{onFocus:h,onBlur:p,onMouseEnter:m,onMouseLeave:g,onTouchStart:b}=a,S=v.useRef(null);v.useEffect(()=>{if(n==="render"&&f(!0),n==="viewport"){let O=N=>{N.forEach(P=>{f(P.isIntersecting)})},_=new IntersectionObserver(O,{threshold:.5});return S.current&&_.observe(S.current),()=>{_.disconnect()}}},[n]),v.useEffect(()=>{if(i){let O=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(O)}}},[i]);let E=()=>{s(!0)},A=()=>{s(!1),f(!1)};return l?n!=="intent"?[u,S,{}]:[u,S,{onFocus:Zi(h,E),onBlur:Zi(p,A),onMouseEnter:Zi(m,E),onMouseLeave:Zi(g,A),onTouchStart:Zi(b,E)}]:[!1,S,{}]}function Zi(n,a){return l=>{n&&n(l),l.defaultPrevented||a(l)}}function $R({page:n,...a}){let{router:l}=l0(),i=v.useMemo(()=>Ya(l.routes,n,l.basename),[l.routes,n,l.basename]);return i?v.createElement(qR,{page:n,matches:i,...a}):null}function VR(n){let{manifest:a,routeModules:l}=i0(),[i,s]=v.useState([]);return v.useEffect(()=>{let u=!1;return LR(n,a,l).then(f=>{u||s(f)}),()=>{u=!0}},[n,a,l]),i}function qR({page:n,matches:a,...l}){let i=Ja(),{manifest:s,routeModules:u}=i0(),{basename:f}=l0(),{loaderData:h,matches:p}=HR(),m=v.useMemo(()=>Yv(n,a,p,s,i,"data"),[n,a,p,s,i]),g=v.useMemo(()=>Yv(n,a,p,s,i,"assets"),[n,a,p,s,i]),b=v.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let A=new Set,O=!1;if(a.forEach(N=>{let P=s.routes[N.route.id];!P||!P.hasLoader||(!m.some(H=>H.route.id===N.route.id)&&N.route.id in h&&u[N.route.id]?.shouldRevalidate||P.hasClientLoader?O=!0:A.add(N.route.id))}),A.size===0)return[];let _=jR(n,f,"data");return O&&A.size>0&&_.searchParams.set("_routes",a.filter(N=>A.has(N.route.id)).map(N=>N.route.id).join(",")),[_.pathname+_.search]},[f,h,i,s,m,a,n,u]),S=v.useMemo(()=>zR(g,s),[g,s]),E=VR(g);return v.createElement(v.Fragment,null,b.map(A=>v.createElement("link",{key:A,rel:"prefetch",as:"fetch",href:A,...l})),S.map(A=>v.createElement("link",{key:A,rel:"modulepreload",href:A,...l})),E.map(({key:A,link:O})=>v.createElement("link",{key:A,...O})))}function YR(...n){return a=>{n.forEach(l=>{typeof l=="function"?l(a):l!=null&&(l.current=a)})}}var o0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{o0&&(window.__reactRouterVersion="7.7.0")}catch{}var s0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,u0=v.forwardRef(function({onClick:a,discover:l="render",prefetch:i="none",relative:s,reloadDocument:u,replace:f,state:h,target:p,to:m,preventScrollReset:g,viewTransition:b,...S},E){let{basename:A}=v.useContext(An),O=typeof m=="string"&&s0.test(m),_,N=!1;if(typeof m=="string"&&O&&(_=m,o0))try{let re=new URL(window.location.href),oe=m.startsWith("//")?new URL(re.protocol+m):new URL(m),Re=bn(oe.pathname,A);oe.origin===re.origin&&Re!=null?m=Re+oe.search+oe.hash:N=!0}catch{ht(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let P=eR(m,{relative:s}),[H,K,V]=BR(i,S),T=XR(m,{replace:f,state:h,target:p,preventScrollReset:g,relative:s,viewTransition:b});function F(re){a&&a(re),re.defaultPrevented||T(re)}let W=v.createElement("a",{...S,...V,href:_||P,onClick:N||u?a:F,ref:YR(E,K),target:p,"data-discover":!O&&l==="render"?"true":void 0});return H&&!O?v.createElement(v.Fragment,null,W,v.createElement($R,{page:P})):W});u0.displayName="Link";var GR=v.forwardRef(function({"aria-current":a="page",caseSensitive:l=!1,className:i="",end:s=!1,style:u,to:f,viewTransition:h,children:p,...m},g){let b=po(f,{relative:m.relative}),S=Ja(),E=v.useContext(mo),{navigator:A,basename:O}=v.useContext(An),_=E!=null&&IR(b)&&h===!0,N=A.encodeLocation?A.encodeLocation(b).pathname:b.pathname,P=S.pathname,H=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;l||(P=P.toLowerCase(),H=H?H.toLowerCase():null,N=N.toLowerCase()),H&&O&&(H=bn(H,O)||H);const K=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let V=P===N||!s&&P.startsWith(N)&&P.charAt(K)==="/",T=H!=null&&(H===N||!s&&H.startsWith(N)&&H.charAt(N.length)==="/"),F={isActive:V,isPending:T,isTransitioning:_},W=V?a:void 0,re;typeof i=="function"?re=i(F):re=[i,V?"active":null,T?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let oe=typeof u=="function"?u(F):u;return v.createElement(u0,{...m,"aria-current":W,className:re,ref:g,style:oe,to:f,viewTransition:h},typeof p=="function"?p(F):p)});GR.displayName="NavLink";var KR=v.forwardRef(({discover:n="render",fetcherKey:a,navigate:l,reloadDocument:i,replace:s,state:u,method:f=Ws,action:h,onSubmit:p,relative:m,preventScrollReset:g,viewTransition:b,...S},E)=>{let A=JR(),O=WR(h,{relative:m}),_=f.toLowerCase()==="get"?"get":"post",N=typeof h=="string"&&s0.test(h),P=H=>{if(p&&p(H),H.defaultPrevented)return;H.preventDefault();let K=H.nativeEvent.submitter,V=K?.getAttribute("formmethod")||f;A(K||H.currentTarget,{fetcherKey:a,method:V,navigate:l,replace:s,state:u,relative:m,preventScrollReset:g,viewTransition:b})};return v.createElement("form",{ref:E,method:_,action:O,onSubmit:i?p:P,...S,"data-discover":!N&&n==="render"?"true":void 0})});KR.displayName="Form";function FR(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function c0(n){let a=v.useContext(_r);return Pe(a,FR(n)),a}function XR(n,{target:a,replace:l,state:i,preventScrollReset:s,relative:u,viewTransition:f}={}){let h=yu(),p=Ja(),m=po(n,{relative:u});return v.useCallback(g=>{if(AR(g,a)){g.preventDefault();let b=l!==void 0?l:Ka(p)===Ka(m);h(n,{replace:b,state:i,preventScrollReset:s,relative:u,viewTransition:f})}},[p,h,m,l,i,a,n,s,u,f])}var QR=0,ZR=()=>`__${String(++QR)}__`;function JR(){let{router:n}=c0("useSubmit"),{basename:a}=v.useContext(An),l=fR();return v.useCallback(async(i,s={})=>{let{action:u,method:f,encType:h,formData:p,body:m}=MR(i,a);if(s.navigate===!1){let g=s.fetcherKey||ZR();await n.fetch(g,l,s.action||u,{preventScrollReset:s.preventScrollReset,formData:p,body:m,formMethod:s.method||f,formEncType:s.encType||h,flushSync:s.flushSync})}else await n.navigate(s.action||u,{preventScrollReset:s.preventScrollReset,formData:p,body:m,formMethod:s.method||f,formEncType:s.encType||h,replace:s.replace,state:s.state,fromRouteId:l,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,a,l])}function WR(n,{relative:a}={}){let{basename:l}=v.useContext(An),i=v.useContext(Gn);Pe(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),u={...po(n||".",{relative:a})},f=Ja();if(n==null){u.search=f.search;let h=new URLSearchParams(u.search),p=h.getAll("index");if(p.some(g=>g==="")){h.delete("index"),p.filter(b=>b).forEach(b=>h.append("index",b));let g=h.toString();u.search=g?`?${g}`:""}}return(!n||n===".")&&s.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(u.pathname=u.pathname==="/"?l:$n([l,u.pathname])),Ka(u)}function IR(n,a={}){let l=v.useContext(Hd);Pe(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=c0("useViewTransitionState"),s=po(n,{relative:a.relative});if(!l.isTransitioning)return!1;let u=bn(l.currentLocation.pathname,i)||l.currentLocation.pathname,f=bn(l.nextLocation.pathname,i)||l.nextLocation.pathname;return iu(s.pathname,f)!=null||iu(s.pathname,u)!=null}var xu=By();const eC=My(xu);function tC(n){return v.createElement(yR,{flushSync:xu.flushSync,...n})}function qt(n,a,{checkForDefaultPrevented:l=!0}={}){return function(s){if(n?.(s),l===!1||!s.defaultPrevented)return a?.(s)}}function Gv(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function Nr(...n){return a=>{let l=!1;const i=n.map(s=>{const u=Gv(s,a);return!l&&typeof u=="function"&&(l=!0),u});if(l)return()=>{for(let s=0;s<i.length;s++){const u=i[s];typeof u=="function"?u():Gv(n[s],null)}}}}function ln(...n){return v.useCallback(Nr(...n),n)}function nC(n,a){const l=v.createContext(a),i=u=>{const{children:f,...h}=u,p=v.useMemo(()=>h,Object.values(h));return x.jsx(l.Provider,{value:p,children:f})};i.displayName=n+"Provider";function s(u){const f=v.useContext(l);if(f)return f;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${n}\``)}return[i,s]}function Su(n,a=[]){let l=[];function i(u,f){const h=v.createContext(f),p=l.length;l=[...l,f];const m=b=>{const{scope:S,children:E,...A}=b,O=S?.[n]?.[p]||h,_=v.useMemo(()=>A,Object.values(A));return x.jsx(O.Provider,{value:_,children:E})};m.displayName=u+"Provider";function g(b,S){const E=S?.[n]?.[p]||h,A=v.useContext(E);if(A)return A;if(f!==void 0)return f;throw new Error(`\`${b}\` must be used within \`${u}\``)}return[m,g]}const s=()=>{const u=l.map(f=>v.createContext(f));return function(h){const p=h?.[n]||u;return v.useMemo(()=>({[`__scope${n}`]:{...h,[n]:p}}),[h,p])}};return s.scopeName=n,[i,aC(s,...a)]}function aC(...n){const a=n[0];if(n.length===1)return a;const l=()=>{const i=n.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(u){const f=i.reduce((h,{useScope:p,scopeName:m})=>{const b=p(u)[`__scope${m}`];return{...h,...b}},{});return v.useMemo(()=>({[`__scope${a.scopeName}`]:f}),[f])}};return l.scopeName=a.scopeName,l}var Fa=globalThis?.document?v.useLayoutEffect:()=>{},rC=_y[" useId ".trim().toString()]||(()=>{}),lC=0;function Vn(n){const[a,l]=v.useState(rC());return Fa(()=>{l(i=>i??String(lC++))},[n]),n||(a?`radix-${a}`:"")}var iC=_y[" useInsertionEffect ".trim().toString()]||Fa;function Gd({prop:n,defaultProp:a,onChange:l=()=>{},caller:i}){const[s,u,f]=oC({defaultProp:a,onChange:l}),h=n!==void 0,p=h?n:s;{const g=v.useRef(n!==void 0);v.useEffect(()=>{const b=g.current;b!==h&&console.warn(`${i} is changing from ${b?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=h},[h,i])}const m=v.useCallback(g=>{if(h){const b=sC(g)?g(n):g;b!==n&&f.current?.(b)}else u(g)},[h,n,u,f]);return[p,m]}function oC({defaultProp:n,onChange:a}){const[l,i]=v.useState(n),s=v.useRef(l),u=v.useRef(a);return iC(()=>{u.current=a},[a]),v.useEffect(()=>{s.current!==l&&(u.current?.(l),s.current=l)},[l,s]),[l,i,u]}function sC(n){return typeof n=="function"}function wu(n){const a=cC(n),l=v.forwardRef((i,s)=>{const{children:u,...f}=i,h=v.Children.toArray(u),p=h.find(dC);if(p){const m=p.props.children,g=h.map(b=>b===p?v.Children.count(m)>1?v.Children.only(null):v.isValidElement(m)?m.props.children:null:b);return x.jsx(a,{...f,ref:s,children:v.isValidElement(m)?v.cloneElement(m,void 0,g):null})}return x.jsx(a,{...f,ref:s,children:u})});return l.displayName=`${n}.Slot`,l}var uC=wu("Slot");function cC(n){const a=v.forwardRef((l,i)=>{const{children:s,...u}=l;if(v.isValidElement(s)){const f=mC(s),h=hC(u,s.props);return s.type!==v.Fragment&&(h.ref=i?Nr(i,f):f),v.cloneElement(s,h)}return v.Children.count(s)>1?v.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var fC=Symbol("radix.slottable");function dC(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===fC}function hC(n,a){const l={...a};for(const i in a){const s=n[i],u=a[i];/^on[A-Z]/.test(i)?s&&u?l[i]=(...h)=>{const p=u(...h);return s(...h),p}:s&&(l[i]=s):i==="style"?l[i]={...s,...u}:i==="className"&&(l[i]=[s,u].filter(Boolean).join(" "))}return{...n,...l}}function mC(n){let a=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning;return l?n.ref:(a=Object.getOwnPropertyDescriptor(n,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var pC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],at=pC.reduce((n,a)=>{const l=wu(`Primitive.${a}`),i=v.forwardRef((s,u)=>{const{asChild:f,...h}=s,p=f?l:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(p,{...h,ref:u})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{});function gC(n,a){n&&xu.flushSync(()=>n.dispatchEvent(a))}function Dl(n){const a=v.useRef(n);return v.useEffect(()=>{a.current=n}),v.useMemo(()=>(...l)=>a.current?.(...l),[])}function vC(n,a=globalThis?.document){const l=Dl(n);v.useEffect(()=>{const i=s=>{s.key==="Escape"&&l(s)};return a.addEventListener("keydown",i,{capture:!0}),()=>a.removeEventListener("keydown",i,{capture:!0})},[l,a])}var yC="DismissableLayer",Cd="dismissableLayer.update",bC="dismissableLayer.pointerDownOutside",xC="dismissableLayer.focusOutside",Kv,f0=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kd=v.forwardRef((n,a)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:f,onDismiss:h,...p}=n,m=v.useContext(f0),[g,b]=v.useState(null),S=g?.ownerDocument??globalThis?.document,[,E]=v.useState({}),A=ln(a,F=>b(F)),O=Array.from(m.layers),[_]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),N=O.indexOf(_),P=g?O.indexOf(g):-1,H=m.layersWithOutsidePointerEventsDisabled.size>0,K=P>=N,V=EC(F=>{const W=F.target,re=[...m.branches].some(oe=>oe.contains(W));!K||re||(s?.(F),f?.(F),F.defaultPrevented||h?.())},S),T=RC(F=>{const W=F.target;[...m.branches].some(oe=>oe.contains(W))||(u?.(F),f?.(F),F.defaultPrevented||h?.())},S);return vC(F=>{P===m.layers.size-1&&(i?.(F),!F.defaultPrevented&&h&&(F.preventDefault(),h()))},S),v.useEffect(()=>{if(g)return l&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Kv=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),Fv(),()=>{l&&m.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=Kv)}},[g,S,l,m]),v.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),Fv())},[g,m]),v.useEffect(()=>{const F=()=>E({});return document.addEventListener(Cd,F),()=>document.removeEventListener(Cd,F)},[]),x.jsx(at.div,{...p,ref:A,style:{pointerEvents:H?K?"auto":"none":void 0,...n.style},onFocusCapture:qt(n.onFocusCapture,T.onFocusCapture),onBlurCapture:qt(n.onBlurCapture,T.onBlurCapture),onPointerDownCapture:qt(n.onPointerDownCapture,V.onPointerDownCapture)})});Kd.displayName=yC;var SC="DismissableLayerBranch",wC=v.forwardRef((n,a)=>{const l=v.useContext(f0),i=v.useRef(null),s=ln(a,i);return v.useEffect(()=>{const u=i.current;if(u)return l.branches.add(u),()=>{l.branches.delete(u)}},[l.branches]),x.jsx(at.div,{...n,ref:s})});wC.displayName=SC;function EC(n,a=globalThis?.document){const l=Dl(n),i=v.useRef(!1),s=v.useRef(()=>{});return v.useEffect(()=>{const u=h=>{if(h.target&&!i.current){let p=function(){d0(bC,l,m,{discrete:!0})};const m={originalEvent:h};h.pointerType==="touch"?(a.removeEventListener("click",s.current),s.current=p,a.addEventListener("click",s.current,{once:!0})):p()}else a.removeEventListener("click",s.current);i.current=!1},f=window.setTimeout(()=>{a.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(f),a.removeEventListener("pointerdown",u),a.removeEventListener("click",s.current)}},[a,l]),{onPointerDownCapture:()=>i.current=!0}}function RC(n,a=globalThis?.document){const l=Dl(n),i=v.useRef(!1);return v.useEffect(()=>{const s=u=>{u.target&&!i.current&&d0(xC,l,{originalEvent:u},{discrete:!1})};return a.addEventListener("focusin",s),()=>a.removeEventListener("focusin",s)},[a,l]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Fv(){const n=new CustomEvent(Cd);document.dispatchEvent(n)}function d0(n,a,l,{discrete:i}){const s=l.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:l});a&&s.addEventListener(n,a,{once:!0}),i?gC(s,u):s.dispatchEvent(u)}var Wf="focusScope.autoFocusOnMount",If="focusScope.autoFocusOnUnmount",Xv={bubbles:!1,cancelable:!0},CC="FocusScope",Fd=v.forwardRef((n,a)=>{const{loop:l=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:u,...f}=n,[h,p]=v.useState(null),m=Dl(s),g=Dl(u),b=v.useRef(null),S=ln(a,O=>p(O)),E=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let O=function(H){if(E.paused||!h)return;const K=H.target;h.contains(K)?b.current=K:qa(b.current,{select:!0})},_=function(H){if(E.paused||!h)return;const K=H.relatedTarget;K!==null&&(h.contains(K)||qa(b.current,{select:!0}))},N=function(H){if(document.activeElement===document.body)for(const V of H)V.removedNodes.length>0&&qa(h)};document.addEventListener("focusin",O),document.addEventListener("focusout",_);const P=new MutationObserver(N);return h&&P.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",O),document.removeEventListener("focusout",_),P.disconnect()}}},[i,h,E.paused]),v.useEffect(()=>{if(h){Zv.add(E);const O=document.activeElement;if(!h.contains(O)){const N=new CustomEvent(Wf,Xv);h.addEventListener(Wf,m),h.dispatchEvent(N),N.defaultPrevented||(OC(jC(h0(h)),{select:!0}),document.activeElement===O&&qa(h))}return()=>{h.removeEventListener(Wf,m),setTimeout(()=>{const N=new CustomEvent(If,Xv);h.addEventListener(If,g),h.dispatchEvent(N),N.defaultPrevented||qa(O??document.body,{select:!0}),h.removeEventListener(If,g),Zv.remove(E)},0)}}},[h,m,g,E]);const A=v.useCallback(O=>{if(!l&&!i||E.paused)return;const _=O.key==="Tab"&&!O.altKey&&!O.ctrlKey&&!O.metaKey,N=document.activeElement;if(_&&N){const P=O.currentTarget,[H,K]=AC(P);H&&K?!O.shiftKey&&N===K?(O.preventDefault(),l&&qa(H,{select:!0})):O.shiftKey&&N===H&&(O.preventDefault(),l&&qa(K,{select:!0})):N===P&&O.preventDefault()}},[l,i,E.paused]);return x.jsx(at.div,{tabIndex:-1,...f,ref:S,onKeyDown:A})});Fd.displayName=CC;function OC(n,{select:a=!1}={}){const l=document.activeElement;for(const i of n)if(qa(i,{select:a}),document.activeElement!==l)return}function AC(n){const a=h0(n),l=Qv(a,n),i=Qv(a.reverse(),n);return[l,i]}function h0(n){const a=[],l=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)a.push(l.currentNode);return a}function Qv(n,a){for(const l of n)if(!NC(l,{upTo:a}))return l}function NC(n,{upTo:a}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(a!==void 0&&n===a)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function TC(n){return n instanceof HTMLInputElement&&"select"in n}function qa(n,{select:a=!1}={}){if(n&&n.focus){const l=document.activeElement;n.focus({preventScroll:!0}),n!==l&&TC(n)&&a&&n.select()}}var Zv=MC();function MC(){let n=[];return{add(a){const l=n[0];a!==l&&l?.pause(),n=Jv(n,a),n.unshift(a)},remove(a){n=Jv(n,a),n[0]?.resume()}}}function Jv(n,a){const l=[...n],i=l.indexOf(a);return i!==-1&&l.splice(i,1),l}function jC(n){return n.filter(a=>a.tagName!=="A")}var DC="Portal",Xd=v.forwardRef((n,a)=>{const{container:l,...i}=n,[s,u]=v.useState(!1);Fa(()=>u(!0),[]);const f=l||s&&globalThis?.document?.body;return f?eC.createPortal(x.jsx(at.div,{...i,ref:a}),f):null});Xd.displayName=DC;function _C(n,a){return v.useReducer((l,i)=>a[l][i]??l,n)}var ql=n=>{const{present:a,children:l}=n,i=LC(a),s=typeof l=="function"?l({present:i.isPresent}):v.Children.only(l),u=ln(i.ref,zC(s));return typeof l=="function"||i.isPresent?v.cloneElement(s,{ref:u}):null};ql.displayName="Presence";function LC(n){const[a,l]=v.useState(),i=v.useRef(null),s=v.useRef(n),u=v.useRef("none"),f=n?"mounted":"unmounted",[h,p]=_C(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const m=Bs(i.current);u.current=h==="mounted"?m:"none"},[h]),Fa(()=>{const m=i.current,g=s.current;if(g!==n){const S=u.current,E=Bs(m);n?p("MOUNT"):E==="none"||m?.display==="none"?p("UNMOUNT"):p(g&&S!==E?"ANIMATION_OUT":"UNMOUNT"),s.current=n}},[n,p]),Fa(()=>{if(a){let m;const g=a.ownerDocument.defaultView??window,b=E=>{const O=Bs(i.current).includes(E.animationName);if(E.target===a&&O&&(p("ANIMATION_END"),!s.current)){const _=a.style.animationFillMode;a.style.animationFillMode="forwards",m=g.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=_)})}},S=E=>{E.target===a&&(u.current=Bs(i.current))};return a.addEventListener("animationstart",S),a.addEventListener("animationcancel",b),a.addEventListener("animationend",b),()=>{g.clearTimeout(m),a.removeEventListener("animationstart",S),a.removeEventListener("animationcancel",b),a.removeEventListener("animationend",b)}}else p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:v.useCallback(m=>{i.current=m?getComputedStyle(m):null,l(m)},[])}}function Bs(n){return n?.animationName||"none"}function zC(n){let a=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning;return l?n.ref:(a=Object.getOwnPropertyDescriptor(n,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var ed=0;function m0(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Wv()),document.body.insertAdjacentElement("beforeend",n[1]??Wv()),ed++,()=>{ed===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),ed--}},[])}function Wv(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Pn=function(){return Pn=Object.assign||function(a){for(var l,i=1,s=arguments.length;i<s;i++){l=arguments[i];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(a[u]=l[u])}return a},Pn.apply(this,arguments)};function p0(n,a){var l={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&a.indexOf(i)<0&&(l[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(n);s<i.length;s++)a.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(n,i[s])&&(l[i[s]]=n[i[s]]);return l}function kC(n,a,l){if(l||arguments.length===2)for(var i=0,s=a.length,u;i<s;i++)(u||!(i in a))&&(u||(u=Array.prototype.slice.call(a,0,i)),u[i]=a[i]);return n.concat(u||Array.prototype.slice.call(a))}var eu="right-scroll-bar-position",tu="width-before-scroll-bar",UC="with-scroll-bars-hidden",PC="--removed-body-scroll-bar-size";function td(n,a){return typeof n=="function"?n(a):n&&(n.current=a),n}function HC(n,a){var l=v.useState(function(){return{value:n,callback:a,facade:{get current(){return l.value},set current(i){var s=l.value;s!==i&&(l.value=i,l.callback(i,s))}}}})[0];return l.callback=a,l.facade}var BC=typeof window<"u"?v.useLayoutEffect:v.useEffect,Iv=new WeakMap;function $C(n,a){var l=HC(null,function(i){return n.forEach(function(s){return td(s,i)})});return BC(function(){var i=Iv.get(l);if(i){var s=new Set(i),u=new Set(n),f=l.current;s.forEach(function(h){u.has(h)||td(h,null)}),u.forEach(function(h){s.has(h)||td(h,f)})}Iv.set(l,n)},[n]),l}function VC(n){return n}function qC(n,a){a===void 0&&(a=VC);var l=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:n},useMedium:function(u){var f=a(u,i);return l.push(f),function(){l=l.filter(function(h){return h!==f})}},assignSyncMedium:function(u){for(i=!0;l.length;){var f=l;l=[],f.forEach(u)}l={push:function(h){return u(h)},filter:function(){return l}}},assignMedium:function(u){i=!0;var f=[];if(l.length){var h=l;l=[],h.forEach(u),f=l}var p=function(){var g=f;f=[],g.forEach(u)},m=function(){return Promise.resolve().then(p)};m(),l={push:function(g){f.push(g),m()},filter:function(g){return f=f.filter(g),l}}}};return s}function YC(n){n===void 0&&(n={});var a=qC(null);return a.options=Pn({async:!0,ssr:!1},n),a}var g0=function(n){var a=n.sideCar,l=p0(n,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=a.read();if(!i)throw new Error("Sidecar medium not found");return v.createElement(i,Pn({},l))};g0.isSideCarExport=!0;function GC(n,a){return n.useMedium(a),g0}var v0=YC(),nd=function(){},Eu=v.forwardRef(function(n,a){var l=v.useRef(null),i=v.useState({onScrollCapture:nd,onWheelCapture:nd,onTouchMoveCapture:nd}),s=i[0],u=i[1],f=n.forwardProps,h=n.children,p=n.className,m=n.removeScrollBar,g=n.enabled,b=n.shards,S=n.sideCar,E=n.noRelative,A=n.noIsolation,O=n.inert,_=n.allowPinchZoom,N=n.as,P=N===void 0?"div":N,H=n.gapMode,K=p0(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),V=S,T=$C([l,a]),F=Pn(Pn({},K),s);return v.createElement(v.Fragment,null,g&&v.createElement(V,{sideCar:v0,removeScrollBar:m,shards:b,noRelative:E,noIsolation:A,inert:O,setCallbacks:u,allowPinchZoom:!!_,lockRef:l,gapMode:H}),f?v.cloneElement(v.Children.only(h),Pn(Pn({},F),{ref:T})):v.createElement(P,Pn({},F,{className:p,ref:T}),h))});Eu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Eu.classNames={fullWidth:tu,zeroRight:eu};var KC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function FC(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var a=KC();return a&&n.setAttribute("nonce",a),n}function XC(n,a){n.styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a))}function QC(n){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(n)}var ZC=function(){var n=0,a=null;return{add:function(l){n==0&&(a=FC())&&(XC(a,l),QC(a)),n++},remove:function(){n--,!n&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},JC=function(){var n=ZC();return function(a,l){v.useEffect(function(){return n.add(a),function(){n.remove()}},[a&&l])}},y0=function(){var n=JC(),a=function(l){var i=l.styles,s=l.dynamic;return n(i,s),null};return a},WC={left:0,top:0,right:0,gap:0},ad=function(n){return parseInt(n||"",10)||0},IC=function(n){var a=window.getComputedStyle(document.body),l=a[n==="padding"?"paddingLeft":"marginLeft"],i=a[n==="padding"?"paddingTop":"marginTop"],s=a[n==="padding"?"paddingRight":"marginRight"];return[ad(l),ad(i),ad(s)]},e2=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return WC;var a=IC(n),l=document.documentElement.clientWidth,i=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,i-l+a[2]-a[0])}},t2=y0(),Tl="data-scroll-locked",n2=function(n,a,l,i){var s=n.left,u=n.top,f=n.right,h=n.gap;return l===void 0&&(l="margin"),`
|
|
69
|
+
.`.concat(UC,` {
|
|
70
|
+
overflow: hidden `).concat(i,`;
|
|
71
|
+
padding-right: `).concat(h,"px ").concat(i,`;
|
|
72
|
+
}
|
|
73
|
+
body[`).concat(Tl,`] {
|
|
74
|
+
overflow: hidden `).concat(i,`;
|
|
75
|
+
overscroll-behavior: contain;
|
|
76
|
+
`).concat([a&&"position: relative ".concat(i,";"),l==="margin"&&`
|
|
77
|
+
padding-left: `.concat(s,`px;
|
|
78
|
+
padding-top: `).concat(u,`px;
|
|
79
|
+
padding-right: `).concat(f,`px;
|
|
80
|
+
margin-left:0;
|
|
81
|
+
margin-top:0;
|
|
82
|
+
margin-right: `).concat(h,"px ").concat(i,`;
|
|
83
|
+
`),l==="padding"&&"padding-right: ".concat(h,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.`).concat(eu,` {
|
|
87
|
+
right: `).concat(h,"px ").concat(i,`;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.`).concat(tu,` {
|
|
91
|
+
margin-right: `).concat(h,"px ").concat(i,`;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.`).concat(eu," .").concat(eu,` {
|
|
95
|
+
right: 0 `).concat(i,`;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.`).concat(tu," .").concat(tu,` {
|
|
99
|
+
margin-right: 0 `).concat(i,`;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
body[`).concat(Tl,`] {
|
|
103
|
+
`).concat(PC,": ").concat(h,`px;
|
|
104
|
+
}
|
|
105
|
+
`)},ey=function(){var n=parseInt(document.body.getAttribute(Tl)||"0",10);return isFinite(n)?n:0},a2=function(){v.useEffect(function(){return document.body.setAttribute(Tl,(ey()+1).toString()),function(){var n=ey()-1;n<=0?document.body.removeAttribute(Tl):document.body.setAttribute(Tl,n.toString())}},[])},r2=function(n){var a=n.noRelative,l=n.noImportant,i=n.gapMode,s=i===void 0?"margin":i;a2();var u=v.useMemo(function(){return e2(s)},[s]);return v.createElement(t2,{styles:n2(u,!a,s,l?"":"!important")})},Od=!1;if(typeof window<"u")try{var $s=Object.defineProperty({},"passive",{get:function(){return Od=!0,!0}});window.addEventListener("test",$s,$s),window.removeEventListener("test",$s,$s)}catch{Od=!1}var xl=Od?{passive:!1}:!1,l2=function(n){return n.tagName==="TEXTAREA"},b0=function(n,a){if(!(n instanceof Element))return!1;var l=window.getComputedStyle(n);return l[a]!=="hidden"&&!(l.overflowY===l.overflowX&&!l2(n)&&l[a]==="visible")},i2=function(n){return b0(n,"overflowY")},o2=function(n){return b0(n,"overflowX")},ty=function(n,a){var l=a.ownerDocument,i=a;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=x0(n,i);if(s){var u=S0(n,i),f=u[1],h=u[2];if(f>h)return!0}i=i.parentNode}while(i&&i!==l.body);return!1},s2=function(n){var a=n.scrollTop,l=n.scrollHeight,i=n.clientHeight;return[a,l,i]},u2=function(n){var a=n.scrollLeft,l=n.scrollWidth,i=n.clientWidth;return[a,l,i]},x0=function(n,a){return n==="v"?i2(a):o2(a)},S0=function(n,a){return n==="v"?s2(a):u2(a)},c2=function(n,a){return n==="h"&&a==="rtl"?-1:1},f2=function(n,a,l,i,s){var u=c2(n,window.getComputedStyle(a).direction),f=u*i,h=l.target,p=a.contains(h),m=!1,g=f>0,b=0,S=0;do{if(!h)break;var E=S0(n,h),A=E[0],O=E[1],_=E[2],N=O-_-u*A;(A||N)&&x0(n,h)&&(b+=N,S+=A);var P=h.parentNode;h=P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?P.host:P}while(!p&&h!==document.body||p&&(a.contains(h)||a===h));return(g&&Math.abs(b)<1||!g&&Math.abs(S)<1)&&(m=!0),m},Vs=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},ny=function(n){return[n.deltaX,n.deltaY]},ay=function(n){return n&&"current"in n?n.current:n},d2=function(n,a){return n[0]===a[0]&&n[1]===a[1]},h2=function(n){return`
|
|
106
|
+
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
107
|
+
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
108
|
+
`)},m2=0,Sl=[];function p2(n){var a=v.useRef([]),l=v.useRef([0,0]),i=v.useRef(),s=v.useState(m2++)[0],u=v.useState(y0)[0],f=v.useRef(n);v.useEffect(function(){f.current=n},[n]),v.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(s));var O=kC([n.lockRef.current],(n.shards||[]).map(ay),!0).filter(Boolean);return O.forEach(function(_){return _.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),O.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var h=v.useCallback(function(O,_){if("touches"in O&&O.touches.length===2||O.type==="wheel"&&O.ctrlKey)return!f.current.allowPinchZoom;var N=Vs(O),P=l.current,H="deltaX"in O?O.deltaX:P[0]-N[0],K="deltaY"in O?O.deltaY:P[1]-N[1],V,T=O.target,F=Math.abs(H)>Math.abs(K)?"h":"v";if("touches"in O&&F==="h"&&T.type==="range")return!1;var W=ty(F,T);if(!W)return!0;if(W?V=F:(V=F==="v"?"h":"v",W=ty(F,T)),!W)return!1;if(!i.current&&"changedTouches"in O&&(H||K)&&(i.current=V),!V)return!0;var re=i.current||V;return f2(re,_,O,re==="h"?H:K)},[]),p=v.useCallback(function(O){var _=O;if(!(!Sl.length||Sl[Sl.length-1]!==u)){var N="deltaY"in _?ny(_):Vs(_),P=a.current.filter(function(V){return V.name===_.type&&(V.target===_.target||_.target===V.shadowParent)&&d2(V.delta,N)})[0];if(P&&P.should){_.cancelable&&_.preventDefault();return}if(!P){var H=(f.current.shards||[]).map(ay).filter(Boolean).filter(function(V){return V.contains(_.target)}),K=H.length>0?h(_,H[0]):!f.current.noIsolation;K&&_.cancelable&&_.preventDefault()}}},[]),m=v.useCallback(function(O,_,N,P){var H={name:O,delta:_,target:N,should:P,shadowParent:g2(N)};a.current.push(H),setTimeout(function(){a.current=a.current.filter(function(K){return K!==H})},1)},[]),g=v.useCallback(function(O){l.current=Vs(O),i.current=void 0},[]),b=v.useCallback(function(O){m(O.type,ny(O),O.target,h(O,n.lockRef.current))},[]),S=v.useCallback(function(O){m(O.type,Vs(O),O.target,h(O,n.lockRef.current))},[]);v.useEffect(function(){return Sl.push(u),n.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:S}),document.addEventListener("wheel",p,xl),document.addEventListener("touchmove",p,xl),document.addEventListener("touchstart",g,xl),function(){Sl=Sl.filter(function(O){return O!==u}),document.removeEventListener("wheel",p,xl),document.removeEventListener("touchmove",p,xl),document.removeEventListener("touchstart",g,xl)}},[]);var E=n.removeScrollBar,A=n.inert;return v.createElement(v.Fragment,null,A?v.createElement(u,{styles:h2(s)}):null,E?v.createElement(r2,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function g2(n){for(var a=null;n!==null;)n instanceof ShadowRoot&&(a=n.host,n=n.host),n=n.parentNode;return a}const v2=GC(v0,p2);var Qd=v.forwardRef(function(n,a){return v.createElement(Eu,Pn({},n,{ref:a,sideCar:v2}))});Qd.classNames=Eu.classNames;var y2=function(n){if(typeof document>"u")return null;var a=Array.isArray(n)?n[0]:n;return a.ownerDocument.body},wl=new WeakMap,qs=new WeakMap,Ys={},rd=0,w0=function(n){return n&&(n.host||w0(n.parentNode))},b2=function(n,a){return a.map(function(l){if(n.contains(l))return l;var i=w0(l);return i&&n.contains(i)?i:(console.error("aria-hidden",l,"in not contained inside",n,". Doing nothing"),null)}).filter(function(l){return!!l})},x2=function(n,a,l,i){var s=b2(a,Array.isArray(n)?n:[n]);Ys[l]||(Ys[l]=new WeakMap);var u=Ys[l],f=[],h=new Set,p=new Set(s),m=function(b){!b||h.has(b)||(h.add(b),m(b.parentNode))};s.forEach(m);var g=function(b){!b||p.has(b)||Array.prototype.forEach.call(b.children,function(S){if(h.has(S))g(S);else try{var E=S.getAttribute(i),A=E!==null&&E!=="false",O=(wl.get(S)||0)+1,_=(u.get(S)||0)+1;wl.set(S,O),u.set(S,_),f.push(S),O===1&&A&&qs.set(S,!0),_===1&&S.setAttribute(l,"true"),A||S.setAttribute(i,"true")}catch(N){console.error("aria-hidden: cannot operate on ",S,N)}})};return g(a),h.clear(),rd++,function(){f.forEach(function(b){var S=wl.get(b)-1,E=u.get(b)-1;wl.set(b,S),u.set(b,E),S||(qs.has(b)||b.removeAttribute(i),qs.delete(b)),E||b.removeAttribute(l)}),rd--,rd||(wl=new WeakMap,wl=new WeakMap,qs=new WeakMap,Ys={})}},E0=function(n,a,l){l===void 0&&(l="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),s=y2(n);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),x2(i,s,l,"aria-hidden")):function(){return null}},Ru="Dialog",[R0,EM]=Su(Ru),[S2,Nn]=R0(Ru),C0=n=>{const{__scopeDialog:a,children:l,open:i,defaultOpen:s,onOpenChange:u,modal:f=!0}=n,h=v.useRef(null),p=v.useRef(null),[m,g]=Gd({prop:i,defaultProp:s??!1,onChange:u,caller:Ru});return x.jsx(S2,{scope:a,triggerRef:h,contentRef:p,contentId:Vn(),titleId:Vn(),descriptionId:Vn(),open:m,onOpenChange:g,onOpenToggle:v.useCallback(()=>g(b=>!b),[g]),modal:f,children:l})};C0.displayName=Ru;var O0="DialogTrigger",w2=v.forwardRef((n,a)=>{const{__scopeDialog:l,...i}=n,s=Nn(O0,l),u=ln(a,s.triggerRef);return x.jsx(at.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Wd(s.open),...i,ref:u,onClick:qt(n.onClick,s.onOpenToggle)})});w2.displayName=O0;var Zd="DialogPortal",[E2,A0]=R0(Zd,{forceMount:void 0}),N0=n=>{const{__scopeDialog:a,forceMount:l,children:i,container:s}=n,u=Nn(Zd,a);return x.jsx(E2,{scope:a,forceMount:l,children:v.Children.map(i,f=>x.jsx(ql,{present:l||u.open,children:x.jsx(Xd,{asChild:!0,container:s,children:f})}))})};N0.displayName=Zd;var su="DialogOverlay",T0=v.forwardRef((n,a)=>{const l=A0(su,n.__scopeDialog),{forceMount:i=l.forceMount,...s}=n,u=Nn(su,n.__scopeDialog);return u.modal?x.jsx(ql,{present:i||u.open,children:x.jsx(C2,{...s,ref:a})}):null});T0.displayName=su;var R2=wu("DialogOverlay.RemoveScroll"),C2=v.forwardRef((n,a)=>{const{__scopeDialog:l,...i}=n,s=Nn(su,l);return x.jsx(Qd,{as:R2,allowPinchZoom:!0,shards:[s.contentRef],children:x.jsx(at.div,{"data-state":Wd(s.open),...i,ref:a,style:{pointerEvents:"auto",...i.style}})})}),Tr="DialogContent",M0=v.forwardRef((n,a)=>{const l=A0(Tr,n.__scopeDialog),{forceMount:i=l.forceMount,...s}=n,u=Nn(Tr,n.__scopeDialog);return x.jsx(ql,{present:i||u.open,children:u.modal?x.jsx(O2,{...s,ref:a}):x.jsx(A2,{...s,ref:a})})});M0.displayName=Tr;var O2=v.forwardRef((n,a)=>{const l=Nn(Tr,n.__scopeDialog),i=v.useRef(null),s=ln(a,l.contentRef,i);return v.useEffect(()=>{const u=i.current;if(u)return E0(u)},[]),x.jsx(j0,{...n,ref:s,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:qt(n.onCloseAutoFocus,u=>{u.preventDefault(),l.triggerRef.current?.focus()}),onPointerDownOutside:qt(n.onPointerDownOutside,u=>{const f=u.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0;(f.button===2||h)&&u.preventDefault()}),onFocusOutside:qt(n.onFocusOutside,u=>u.preventDefault())})}),A2=v.forwardRef((n,a)=>{const l=Nn(Tr,n.__scopeDialog),i=v.useRef(!1),s=v.useRef(!1);return x.jsx(j0,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{n.onCloseAutoFocus?.(u),u.defaultPrevented||(i.current||l.triggerRef.current?.focus(),u.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:u=>{n.onInteractOutside?.(u),u.defaultPrevented||(i.current=!0,u.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const f=u.target;l.triggerRef.current?.contains(f)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&s.current&&u.preventDefault()}})}),j0=v.forwardRef((n,a)=>{const{__scopeDialog:l,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:u,...f}=n,h=Nn(Tr,l),p=v.useRef(null),m=ln(a,p);return m0(),x.jsxs(x.Fragment,{children:[x.jsx(Fd,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:u,children:x.jsx(Kd,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Wd(h.open),...f,ref:m,onDismiss:()=>h.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(N2,{titleId:h.titleId}),x.jsx(M2,{contentRef:p,descriptionId:h.descriptionId})]})]})}),Jd="DialogTitle",D0=v.forwardRef((n,a)=>{const{__scopeDialog:l,...i}=n,s=Nn(Jd,l);return x.jsx(at.h2,{id:s.titleId,...i,ref:a})});D0.displayName=Jd;var _0="DialogDescription",L0=v.forwardRef((n,a)=>{const{__scopeDialog:l,...i}=n,s=Nn(_0,l);return x.jsx(at.p,{id:s.descriptionId,...i,ref:a})});L0.displayName=_0;var z0="DialogClose",k0=v.forwardRef((n,a)=>{const{__scopeDialog:l,...i}=n,s=Nn(z0,l);return x.jsx(at.button,{type:"button",...i,ref:a,onClick:qt(n.onClick,()=>s.onOpenChange(!1))})});k0.displayName=z0;function Wd(n){return n?"open":"closed"}var U0="DialogTitleWarning",[RM,P0]=nC(U0,{contentName:Tr,titleName:Jd,docsSlug:"dialog"}),N2=({titleId:n})=>{const a=P0(U0),l=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
|
|
109
|
+
|
|
110
|
+
If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
111
|
+
|
|
112
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return v.useEffect(()=>{n&&(document.getElementById(n)||console.error(l))},[l,n]),null},T2="DialogDescriptionWarning",M2=({contentRef:n,descriptionId:a})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${P0(T2).contentName}}.`;return v.useEffect(()=>{const s=n.current?.getAttribute("aria-describedby");a&&s&&(document.getElementById(a)||console.warn(i))},[i,n,a]),null},H0=C0,B0=N0,Id=T0,eh=M0,$0=D0,V0=L0,j2=k0;/**
|
|
113
|
+
* @license lucide-react v0.525.0 - ISC
|
|
114
|
+
*
|
|
115
|
+
* This source code is licensed under the ISC license.
|
|
116
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
+
*/const D2=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_2=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,l,i)=>i?i.toUpperCase():l.toLowerCase()),ry=n=>{const a=_2(n);return a.charAt(0).toUpperCase()+a.slice(1)},q0=(...n)=>n.filter((a,l,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===l).join(" ").trim(),L2=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
|
|
118
|
+
* @license lucide-react v0.525.0 - ISC
|
|
119
|
+
*
|
|
120
|
+
* This source code is licensed under the ISC license.
|
|
121
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
+
*/var z2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
123
|
+
* @license lucide-react v0.525.0 - ISC
|
|
124
|
+
*
|
|
125
|
+
* This source code is licensed under the ISC license.
|
|
126
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
+
*/const k2=v.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:i,className:s="",children:u,iconNode:f,...h},p)=>v.createElement("svg",{ref:p,...z2,width:a,height:a,stroke:n,strokeWidth:i?Number(l)*24/Number(a):l,className:q0("lucide",s),...!u&&!L2(h)&&{"aria-hidden":"true"},...h},[...f.map(([m,g])=>v.createElement(m,g)),...Array.isArray(u)?u:[u]]));/**
|
|
128
|
+
* @license lucide-react v0.525.0 - ISC
|
|
129
|
+
*
|
|
130
|
+
* This source code is licensed under the ISC license.
|
|
131
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
+
*/const kt=(n,a)=>{const l=v.forwardRef(({className:i,...s},u)=>v.createElement(k2,{ref:u,iconNode:a,className:q0(`lucide-${D2(ry(n))}`,`lucide-${n}`,i),...s}));return l.displayName=ry(n),l};/**
|
|
133
|
+
* @license lucide-react v0.525.0 - ISC
|
|
134
|
+
*
|
|
135
|
+
* This source code is licensed under the ISC license.
|
|
136
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
+
*/const U2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Y0=kt("check",U2);/**
|
|
138
|
+
* @license lucide-react v0.525.0 - ISC
|
|
139
|
+
*
|
|
140
|
+
* This source code is licensed under the ISC license.
|
|
141
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
+
*/const P2=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],G0=kt("chevrons-up-down",P2);/**
|
|
143
|
+
* @license lucide-react v0.525.0 - ISC
|
|
144
|
+
*
|
|
145
|
+
* This source code is licensed under the ISC license.
|
|
146
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
147
|
+
*/const H2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],B2=kt("circle-alert",H2);/**
|
|
148
|
+
* @license lucide-react v0.525.0 - ISC
|
|
149
|
+
*
|
|
150
|
+
* This source code is licensed under the ISC license.
|
|
151
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
+
*/const $2=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],V2=kt("circle-check-big",$2);/**
|
|
153
|
+
* @license lucide-react v0.525.0 - ISC
|
|
154
|
+
*
|
|
155
|
+
* This source code is licensed under the ISC license.
|
|
156
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
157
|
+
*/const q2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Y2=kt("circle-x",q2);/**
|
|
158
|
+
* @license lucide-react v0.525.0 - ISC
|
|
159
|
+
*
|
|
160
|
+
* This source code is licensed under the ISC license.
|
|
161
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
162
|
+
*/const G2=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],K2=kt("file-json",G2);/**
|
|
163
|
+
* @license lucide-react v0.525.0 - ISC
|
|
164
|
+
*
|
|
165
|
+
* This source code is licensed under the ISC license.
|
|
166
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
+
*/const F2=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],X2=kt("languages",F2);/**
|
|
168
|
+
* @license lucide-react v0.525.0 - ISC
|
|
169
|
+
*
|
|
170
|
+
* This source code is licensed under the ISC license.
|
|
171
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
172
|
+
*/const Q2=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],K0=kt("pencil",Q2);/**
|
|
173
|
+
* @license lucide-react v0.525.0 - ISC
|
|
174
|
+
*
|
|
175
|
+
* This source code is licensed under the ISC license.
|
|
176
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
+
*/const Z2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ad=kt("plus",Z2);/**
|
|
178
|
+
* @license lucide-react v0.525.0 - ISC
|
|
179
|
+
*
|
|
180
|
+
* This source code is licensed under the ISC license.
|
|
181
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
182
|
+
*/const J2=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],F0=kt("refresh-cw",J2);/**
|
|
183
|
+
* @license lucide-react v0.525.0 - ISC
|
|
184
|
+
*
|
|
185
|
+
* This source code is licensed under the ISC license.
|
|
186
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
187
|
+
*/const W2=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],X0=kt("save",W2);/**
|
|
188
|
+
* @license lucide-react v0.525.0 - ISC
|
|
189
|
+
*
|
|
190
|
+
* This source code is licensed under the ISC license.
|
|
191
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
192
|
+
*/const I2=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],eO=kt("search",I2);/**
|
|
193
|
+
* @license lucide-react v0.525.0 - ISC
|
|
194
|
+
*
|
|
195
|
+
* This source code is licensed under the ISC license.
|
|
196
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
197
|
+
*/const tO=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],nO=kt("settings",tO);/**
|
|
198
|
+
* @license lucide-react v0.525.0 - ISC
|
|
199
|
+
*
|
|
200
|
+
* This source code is licensed under the ISC license.
|
|
201
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
+
*/const aO=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],oo=kt("trash-2",aO);/**
|
|
203
|
+
* @license lucide-react v0.525.0 - ISC
|
|
204
|
+
*
|
|
205
|
+
* This source code is licensed under the ISC license.
|
|
206
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
207
|
+
*/const rO=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ml=kt("x",rO);function Q0(n){var a,l,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(a=0;a<s;a++)n[a]&&(l=Q0(n[a]))&&(i&&(i+=" "),i+=l)}else for(l in n)n[l]&&(i&&(i+=" "),i+=l);return i}function Z0(){for(var n,a,l=0,i="",s=arguments.length;l<s;l++)(n=arguments[l])&&(a=Q0(n))&&(i&&(i+=" "),i+=a);return i}const th="-",lO=n=>{const a=oO(n),{conflictingClassGroups:l,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:f=>{const h=f.split(th);return h[0]===""&&h.length!==1&&h.shift(),J0(h,a)||iO(f)},getConflictingClassGroupIds:(f,h)=>{const p=l[f]||[];return h&&i[f]?[...p,...i[f]]:p}}},J0=(n,a)=>{if(n.length===0)return a.classGroupId;const l=n[0],i=a.nextPart.get(l),s=i?J0(n.slice(1),i):void 0;if(s)return s;if(a.validators.length===0)return;const u=n.join(th);return a.validators.find(({validator:f})=>f(u))?.classGroupId},ly=/^\[(.+)\]$/,iO=n=>{if(ly.test(n)){const a=ly.exec(n)[1],l=a?.substring(0,a.indexOf(":"));if(l)return"arbitrary.."+l}},oO=n=>{const{theme:a,classGroups:l}=n,i={nextPart:new Map,validators:[]};for(const s in l)Nd(l[s],i,s,a);return i},Nd=(n,a,l,i)=>{n.forEach(s=>{if(typeof s=="string"){const u=s===""?a:iy(a,s);u.classGroupId=l;return}if(typeof s=="function"){if(sO(s)){Nd(s(i),a,l,i);return}a.validators.push({validator:s,classGroupId:l});return}Object.entries(s).forEach(([u,f])=>{Nd(f,iy(a,u),l,i)})})},iy=(n,a)=>{let l=n;return a.split(th).forEach(i=>{l.nextPart.has(i)||l.nextPart.set(i,{nextPart:new Map,validators:[]}),l=l.nextPart.get(i)}),l},sO=n=>n.isThemeGetter,uO=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,l=new Map,i=new Map;const s=(u,f)=>{l.set(u,f),a++,a>n&&(a=0,i=l,l=new Map)};return{get(u){let f=l.get(u);if(f!==void 0)return f;if((f=i.get(u))!==void 0)return s(u,f),f},set(u,f){l.has(u)?l.set(u,f):s(u,f)}}},Td="!",Md=":",cO=Md.length,fO=n=>{const{prefix:a,experimentalParseClassName:l}=n;let i=s=>{const u=[];let f=0,h=0,p=0,m;for(let A=0;A<s.length;A++){let O=s[A];if(f===0&&h===0){if(O===Md){u.push(s.slice(p,A)),p=A+cO;continue}if(O==="/"){m=A;continue}}O==="["?f++:O==="]"?f--:O==="("?h++:O===")"&&h--}const g=u.length===0?s:s.substring(p),b=dO(g),S=b!==g,E=m&&m>p?m-p:void 0;return{modifiers:u,hasImportantModifier:S,baseClassName:b,maybePostfixModifierPosition:E}};if(a){const s=a+Md,u=i;i=f=>f.startsWith(s)?u(f.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:f,maybePostfixModifierPosition:void 0}}if(l){const s=i;i=u=>l({className:u,parseClassName:s})}return i},dO=n=>n.endsWith(Td)?n.substring(0,n.length-1):n.startsWith(Td)?n.substring(1):n,hO=n=>{const a=Object.fromEntries(n.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const s=[];let u=[];return i.forEach(f=>{f[0]==="["||a[f]?(s.push(...u.sort(),f),u=[]):u.push(f)}),s.push(...u.sort()),s}},mO=n=>({cache:uO(n.cacheSize),parseClassName:fO(n),sortModifiers:hO(n),...lO(n)}),pO=/\s+/,gO=(n,a)=>{const{parseClassName:l,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:u}=a,f=[],h=n.trim().split(pO);let p="";for(let m=h.length-1;m>=0;m-=1){const g=h[m],{isExternal:b,modifiers:S,hasImportantModifier:E,baseClassName:A,maybePostfixModifierPosition:O}=l(g);if(b){p=g+(p.length>0?" "+p:p);continue}let _=!!O,N=i(_?A.substring(0,O):A);if(!N){if(!_){p=g+(p.length>0?" "+p:p);continue}if(N=i(A),!N){p=g+(p.length>0?" "+p:p);continue}_=!1}const P=u(S).join(":"),H=E?P+Td:P,K=H+N;if(f.includes(K))continue;f.push(K);const V=s(N,_);for(let T=0;T<V.length;++T){const F=V[T];f.push(H+F)}p=g+(p.length>0?" "+p:p)}return p};function vO(){let n=0,a,l,i="";for(;n<arguments.length;)(a=arguments[n++])&&(l=W0(a))&&(i&&(i+=" "),i+=l);return i}const W0=n=>{if(typeof n=="string")return n;let a,l="";for(let i=0;i<n.length;i++)n[i]&&(a=W0(n[i]))&&(l&&(l+=" "),l+=a);return l};function yO(n,...a){let l,i,s,u=f;function f(p){const m=a.reduce((g,b)=>b(g),n());return l=mO(m),i=l.cache.get,s=l.cache.set,u=h,h(p)}function h(p){const m=i(p);if(m)return m;const g=gO(p,l);return s(p,g),g}return function(){return u(vO.apply(null,arguments))}}const St=n=>{const a=l=>l[n]||[];return a.isThemeGetter=!0,a},I0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,eb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,bO=/^\d+\/\d+$/,xO=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,SO=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,wO=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,EO=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,RO=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,El=n=>bO.test(n),ze=n=>!!n&&!Number.isNaN(Number(n)),$a=n=>!!n&&Number.isInteger(Number(n)),ld=n=>n.endsWith("%")&&ze(n.slice(0,-1)),da=n=>xO.test(n),CO=()=>!0,OO=n=>SO.test(n)&&!wO.test(n),tb=()=>!1,AO=n=>EO.test(n),NO=n=>RO.test(n),TO=n=>!me(n)&&!pe(n),MO=n=>Yl(n,rb,tb),me=n=>I0.test(n),wr=n=>Yl(n,lb,OO),id=n=>Yl(n,zO,ze),oy=n=>Yl(n,nb,tb),jO=n=>Yl(n,ab,NO),Gs=n=>Yl(n,ib,AO),pe=n=>eb.test(n),Ji=n=>Gl(n,lb),DO=n=>Gl(n,kO),sy=n=>Gl(n,nb),_O=n=>Gl(n,rb),LO=n=>Gl(n,ab),Ks=n=>Gl(n,ib,!0),Yl=(n,a,l)=>{const i=I0.exec(n);return i?i[1]?a(i[1]):l(i[2]):!1},Gl=(n,a,l=!1)=>{const i=eb.exec(n);return i?i[1]?a(i[1]):l:!1},nb=n=>n==="position"||n==="percentage",ab=n=>n==="image"||n==="url",rb=n=>n==="length"||n==="size"||n==="bg-size",lb=n=>n==="length",zO=n=>n==="number",kO=n=>n==="family-name",ib=n=>n==="shadow",UO=()=>{const n=St("color"),a=St("font"),l=St("text"),i=St("font-weight"),s=St("tracking"),u=St("leading"),f=St("breakpoint"),h=St("container"),p=St("spacing"),m=St("radius"),g=St("shadow"),b=St("inset-shadow"),S=St("text-shadow"),E=St("drop-shadow"),A=St("blur"),O=St("perspective"),_=St("aspect"),N=St("ease"),P=St("animate"),H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...K(),pe,me],T=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],W=()=>[pe,me,p],re=()=>[El,"full","auto",...W()],oe=()=>[$a,"none","subgrid",pe,me],Re=()=>["auto",{span:["full",$a,pe,me]},$a,pe,me],xe=()=>[$a,"auto",pe,me],fe=()=>["auto","min","max","fr",pe,me],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],le=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...W()],z=()=>[El,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...W()],D=()=>[n,pe,me],Z=()=>[...K(),sy,oy,{position:[pe,me]}],C=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",_O,MO,{size:[pe,me]}],j=()=>[ld,Ji,wr],$=()=>["","none","full",m,pe,me],I=()=>["",ze,Ji,wr],ie=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>[ze,ld,sy,oy],Te=()=>["","none",A,pe,me],qe=()=>["none",ze,pe,me],Ye=()=>["none",ze,pe,me],Ot=()=>[ze,pe,me],Yt=()=>[El,"full",...W()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[da],breakpoint:[da],color:[CO],container:[da],"drop-shadow":[da],ease:["in","out","in-out"],font:[TO],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[da],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[da],shadow:[da],spacing:["px",ze],text:[da],"text-shadow":[da],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",El,me,pe,_]}],container:["container"],columns:[{columns:[ze,me,pe,h]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:V()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:re()}],"inset-x":[{"inset-x":re()}],"inset-y":[{"inset-y":re()}],start:[{start:re()}],end:[{end:re()}],top:[{top:re()}],right:[{right:re()}],bottom:[{bottom:re()}],left:[{left:re()}],visibility:["visible","invisible","collapse"],z:[{z:[$a,"auto",pe,me]}],basis:[{basis:[El,"full","auto",h,...W()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ze,El,"auto","initial","none",me]}],grow:[{grow:["",ze,pe,me]}],shrink:[{shrink:["",ze,pe,me]}],order:[{order:[$a,"first","last","none",pe,me]}],"grid-cols":[{"grid-cols":oe()}],"col-start-end":[{col:Re()}],"col-start":[{"col-start":xe()}],"col-end":[{"col-end":xe()}],"grid-rows":[{"grid-rows":oe()}],"row-start-end":[{row:Re()}],"row-start":[{"row-start":xe()}],"row-end":[{"row-end":xe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":fe()}],"auto-rows":[{"auto-rows":fe()}],gap:[{gap:W()}],"gap-x":[{"gap-x":W()}],"gap-y":[{"gap-y":W()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...le(),"normal"]}],"justify-self":[{"justify-self":["auto",...le()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...le(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...le(),"baseline"]}],"place-self":[{"place-self":["auto",...le()]}],p:[{p:W()}],px:[{px:W()}],py:[{py:W()}],ps:[{ps:W()}],pe:[{pe:W()}],pt:[{pt:W()}],pr:[{pr:W()}],pb:[{pb:W()}],pl:[{pl:W()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":W()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":W()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[h,"screen",...z()]}],"min-w":[{"min-w":[h,"screen","none",...z()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[f]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",l,Ji,wr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,pe,id]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ld,me]}],"font-family":[{font:[DO,me,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,pe,me]}],"line-clamp":[{"line-clamp":[ze,"none",pe,id]}],leading:[{leading:[u,...W()]}],"list-image":[{"list-image":["none",pe,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[ze,"from-font","auto",pe,wr]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[ze,"auto",pe,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Z()}],"bg-repeat":[{bg:C()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$a,pe,me],radial:["",pe,me],conic:[$a,pe,me]},LO,jO]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:I()}],"border-w-x":[{"border-x":I()}],"border-w-y":[{"border-y":I()}],"border-w-s":[{"border-s":I()}],"border-w-e":[{"border-e":I()}],"border-w-t":[{"border-t":I()}],"border-w-r":[{"border-r":I()}],"border-w-b":[{"border-b":I()}],"border-w-l":[{"border-l":I()}],"divide-x":[{"divide-x":I()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":I()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ie(),"hidden","none"]}],"divide-style":[{divide:[...ie(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ze,pe,me]}],"outline-w":[{outline:["",ze,Ji,wr]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",g,Ks,Gs]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",b,Ks,Gs]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[ze,wr]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":I()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",S,Ks,Gs]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[ze,pe,me]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ze]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[pe,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":K()}],"mask-image-conic-pos":[{"mask-conic":[ze]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Z()}],"mask-repeat":[{mask:C()}],"mask-size":[{mask:U()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,me]}],filter:[{filter:["","none",pe,me]}],blur:[{blur:Te()}],brightness:[{brightness:[ze,pe,me]}],contrast:[{contrast:[ze,pe,me]}],"drop-shadow":[{"drop-shadow":["","none",E,Ks,Gs]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",ze,pe,me]}],"hue-rotate":[{"hue-rotate":[ze,pe,me]}],invert:[{invert:["",ze,pe,me]}],saturate:[{saturate:[ze,pe,me]}],sepia:[{sepia:["",ze,pe,me]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,me]}],"backdrop-blur":[{"backdrop-blur":Te()}],"backdrop-brightness":[{"backdrop-brightness":[ze,pe,me]}],"backdrop-contrast":[{"backdrop-contrast":[ze,pe,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ze,pe,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ze,pe,me]}],"backdrop-invert":[{"backdrop-invert":["",ze,pe,me]}],"backdrop-opacity":[{"backdrop-opacity":[ze,pe,me]}],"backdrop-saturate":[{"backdrop-saturate":[ze,pe,me]}],"backdrop-sepia":[{"backdrop-sepia":["",ze,pe,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":W()}],"border-spacing-x":[{"border-spacing-x":W()}],"border-spacing-y":[{"border-spacing-y":W()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ze,"initial",pe,me]}],ease:[{ease:["linear","initial",N,pe,me]}],delay:[{delay:[ze,pe,me]}],animate:[{animate:["none",P,pe,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[O,pe,me]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:qe()}],"rotate-x":[{"rotate-x":qe()}],"rotate-y":[{"rotate-y":qe()}],"rotate-z":[{"rotate-z":qe()}],scale:[{scale:Ye()}],"scale-x":[{"scale-x":Ye()}],"scale-y":[{"scale-y":Ye()}],"scale-z":[{"scale-z":Ye()}],"scale-3d":["scale-3d"],skew:[{skew:Ot()}],"skew-x":[{"skew-x":Ot()}],"skew-y":[{"skew-y":Ot()}],transform:[{transform:[pe,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Yt()}],"translate-x":[{"translate-x":Yt()}],"translate-y":[{"translate-y":Yt()}],"translate-z":[{"translate-z":Yt()}],"translate-none":["translate-none"],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",pe,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe,me]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[ze,Ji,wr,id]}],stroke:[{stroke:["none",...D()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},PO=yO(UO);function nt(...n){return PO(Z0(n))}const so=H0,HO=B0,ob=v.forwardRef(({className:n,...a},l)=>x.jsx(Id,{ref:l,className:nt("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...a}));ob.displayName=Id.displayName;const _l=v.forwardRef(({className:n,children:a,...l},i)=>x.jsxs(HO,{children:[x.jsx(ob,{}),x.jsxs(eh,{ref:i,className:nt("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg animate-scale-in",n),...l,children:[a,x.jsxs(j2,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground transition-all-ease hover:scale-110",children:[x.jsx(Ml,{className:"h-4 w-4"}),x.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));_l.displayName=eh.displayName;const Ll=({className:n,...a})=>x.jsx("div",{className:nt("flex flex-col space-y-1.5 text-center sm:text-left",n),...a});Ll.displayName="DialogHeader";const uo=({className:n,...a})=>x.jsx("div",{className:nt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...a});uo.displayName="DialogFooter";const zl=v.forwardRef(({className:n,...a},l)=>x.jsx($0,{ref:l,className:nt("text-lg font-semibold leading-none tracking-tight",n),...a}));zl.displayName=$0.displayName;const nh=v.forwardRef(({className:n,...a},l)=>x.jsx(V0,{ref:l,className:nt("text-sm text-muted-foreground",n),...a}));nh.displayName=V0.displayName;const uy=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,cy=Z0,ah=(n,a)=>l=>{var i;if(a?.variants==null)return cy(n,l?.class,l?.className);const{variants:s,defaultVariants:u}=a,f=Object.keys(s).map(m=>{const g=l?.[m],b=u?.[m];if(g===null)return null;const S=uy(g)||uy(b);return s[m][S]}),h=l&&Object.entries(l).reduce((m,g)=>{let[b,S]=g;return S===void 0||(m[b]=S),m},{}),p=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((m,g)=>{let{class:b,className:S,...E}=g;return Object.entries(E).every(A=>{let[O,_]=A;return Array.isArray(_)?_.includes({...u,...h}[O]):{...u,...h}[O]===_})?[...m,b,S]:m},[]);return cy(n,f,p,l?.class,l?.className)},BO=ah("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"border border-destructive/50 text-destructive hover:bg-destructive hover:text-destructive-foreground",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),$e=v.forwardRef(({className:n,variant:a,size:l,asChild:i=!1,...s},u)=>{const f=i?uC:"button";return x.jsx(f,{className:nt(BO({variant:a,size:l,className:n})),ref:u,...s})});$e.displayName="Button";const Ct=v.forwardRef(({className:n,type:a,...l},i)=>x.jsx("input",{type:a,className:nt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:i,...l}));Ct.displayName="Input";var $O="Label",sb=v.forwardRef((n,a)=>x.jsx(at.label,{...n,ref:a,onMouseDown:l=>{l.target.closest("button, input, select, textarea")||(n.onMouseDown?.(l),!l.defaultPrevented&&l.detail>1&&l.preventDefault())}}));sb.displayName=$O;var ub=sb;const VO=ah("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),dt=v.forwardRef(({className:n,...a},l)=>x.jsx(ub,{ref:l,className:nt(VO(),n),...a}));dt.displayName=ub.displayName;function qO(n){const a=v.useRef({value:n,previous:n});return v.useMemo(()=>(a.current.value!==n&&(a.current.previous=a.current.value,a.current.value=n),a.current.previous),[n])}function cb(n){const[a,l]=v.useState(void 0);return Fa(()=>{if(n){l({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const u=s[0];let f,h;if("borderBoxSize"in u){const p=u.borderBoxSize,m=Array.isArray(p)?p[0]:p;f=m.inlineSize,h=m.blockSize}else f=n.offsetWidth,h=n.offsetHeight;l({width:f,height:h})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else l(void 0)},[n]),a}var Cu="Switch",[YO,CM]=Su(Cu),[GO,KO]=YO(Cu),fb=v.forwardRef((n,a)=>{const{__scopeSwitch:l,name:i,checked:s,defaultChecked:u,required:f,disabled:h,value:p="on",onCheckedChange:m,form:g,...b}=n,[S,E]=v.useState(null),A=ln(a,H=>E(H)),O=v.useRef(!1),_=S?g||!!S.closest("form"):!0,[N,P]=Gd({prop:s,defaultProp:u??!1,onChange:m,caller:Cu});return x.jsxs(GO,{scope:l,checked:N,disabled:h,children:[x.jsx(at.button,{type:"button",role:"switch","aria-checked":N,"aria-required":f,"data-state":pb(N),"data-disabled":h?"":void 0,disabled:h,value:p,...b,ref:A,onClick:qt(n.onClick,H=>{P(K=>!K),_&&(O.current=H.isPropagationStopped(),O.current||H.stopPropagation())})}),_&&x.jsx(mb,{control:S,bubbles:!O.current,name:i,value:p,checked:N,required:f,disabled:h,form:g,style:{transform:"translateX(-100%)"}})]})});fb.displayName=Cu;var db="SwitchThumb",hb=v.forwardRef((n,a)=>{const{__scopeSwitch:l,...i}=n,s=KO(db,l);return x.jsx(at.span,{"data-state":pb(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:a})});hb.displayName=db;var FO="SwitchBubbleInput",mb=v.forwardRef(({__scopeSwitch:n,control:a,checked:l,bubbles:i=!0,...s},u)=>{const f=v.useRef(null),h=ln(f,u),p=qO(l),m=cb(a);return v.useEffect(()=>{const g=f.current;if(!g)return;const b=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(b,"checked").set;if(p!==l&&E){const A=new Event("click",{bubbles:i});E.call(g,l),g.dispatchEvent(A)}},[p,l,i]),x.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:l,...s,tabIndex:-1,ref:h,style:{...s.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});mb.displayName=FO;function pb(n){return n?"checked":"unchecked"}var gb=fb,XO=hb;const vb=v.forwardRef(({className:n,...a},l)=>x.jsx(gb,{className:nt("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-all-ease focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",n),...a,ref:l,children:x.jsx(XO,{className:nt("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 transition-all-ease")})}));vb.displayName=gb.displayName;class QO{baseUrl;apiKey;constructor(a="http://127.0.0.1:3456/api",l=""){this.baseUrl=a,this.apiKey=l||localStorage.getItem("apiKey")||""}setBaseUrl(a){this.baseUrl=a}setApiKey(a){this.apiKey=a,a?localStorage.setItem("apiKey",a):localStorage.removeItem("apiKey")}createHeaders(a="application/json"){const l={"X-API-Key":this.apiKey,Accept:"application/json"};return a&&(l["Content-Type"]=a),l}async apiFetch(a,l={}){const i=`${this.baseUrl}${a}`,s={...l,headers:{...this.createHeaders(),...l.headers}};try{const u=await fetch(i,s);if(u.status===401)return localStorage.removeItem("apiKey"),window.dispatchEvent(new CustomEvent("unauthorized")),new Promise(()=>{});if(!u.ok)throw new Error(`API request failed: ${u.status} ${u.statusText}`);if(u.status===204)return{};const f=await u.text();return f?JSON.parse(f):{}}catch(u){throw console.error("API request error:",u),u}}async get(a){return this.apiFetch(a,{method:"GET"})}async post(a,l){return this.apiFetch(a,{method:"POST",body:JSON.stringify(l)})}async put(a,l){return this.apiFetch(a,{method:"PUT",body:JSON.stringify(l)})}async delete(a){return this.apiFetch(a,{method:"DELETE"})}async getConfig(){return this.get("/config")}async updateConfig(a){return this.post("/config",a)}async getProviders(){return this.get("/api/providers")}async addProvider(a){return this.post("/api/providers",a)}async updateProvider(a,l){return this.post(`/api/providers/${a}`,l)}async deleteProvider(a){return this.delete(`/api/providers/${a}`)}async getTransformers(){return this.get("/api/transformers")}async addTransformer(a){return this.post("/api/transformers",a)}async updateTransformer(a,l){return this.post(`/api/transformers/${a}`,l)}async deleteTransformer(a){return this.delete(`/api/transformers/${a}`)}async getConfigNew(){return this.get("/config")}async saveConfig(a){return this.post("/config",a)}async restartService(){return this.post("/restart",{})}}const an=new QO,yb=v.createContext(void 0);function Kl(){const n=v.useContext(yb);if(n===void 0)throw new Error("useConfig must be used within a ConfigProvider");return n}function ZO({children:n}){const[a,l]=v.useState(null),[i,s]=v.useState(null),[u,f]=v.useState(!1),[h,p]=v.useState(localStorage.getItem("apiKey"));return v.useEffect(()=>{const m=()=>{p(localStorage.getItem("apiKey"))};return window.addEventListener("storage",m),()=>{window.removeEventListener("storage",m)}},[]),v.useEffect(()=>{(async()=>{f(!1),l(null),s(null)})()},[h]),v.useEffect(()=>{(async()=>{if(!u){f(!0);try{const g=await an.getConfig();l(g)}catch(g){console.error("Failed to fetch config:",g),g.message!=="Unauthorized"&&(l({LOG:!1,CLAUDE_PATH:"",HOST:"127.0.0.1",PORT:3456,APIKEY:"",transformers:[],Providers:[],Router:{default:"",background:"",think:"",longContext:"",webSearch:""}}),s(g))}}})()},[u,h]),x.jsx(yb.Provider,{value:{config:a,setConfig:l,error:i},children:n})}function JO({isOpen:n,onOpenChange:a}){const{t:l}=Dr(),{config:i,setConfig:s}=Kl();if(!i)return null;const u=h=>{s({...i,LOG:h})},f=h=>{s({...i,CLAUDE_PATH:h.target.value})};return x.jsx(so,{open:n,onOpenChange:a,children:x.jsxs(_l,{children:[x.jsx(Ll,{children:x.jsx(zl,{children:l("toplevel.title")})}),x.jsxs("div",{className:"space-y-4 py-4",children:[x.jsxs("div",{className:"flex items-center space-x-2",children:[x.jsx(vb,{id:"log",checked:i.LOG,onCheckedChange:u}),x.jsx(dt,{htmlFor:"log",className:"transition-all-ease hover:scale-[1.02] cursor-pointer",children:l("toplevel.log")})]}),x.jsxs("div",{className:"space-y-2",children:[x.jsx(dt,{htmlFor:"claude-path",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.claude_path")}),x.jsx(Ct,{id:"claude-path",value:i.CLAUDE_PATH,onChange:f,className:"transition-all-ease focus:scale-[1.01]"})]}),x.jsxs("div",{className:"space-y-2",children:[x.jsx(dt,{htmlFor:"host",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.host")}),x.jsx(Ct,{id:"host",value:i.HOST,onChange:h=>s({...i,HOST:h.target.value}),className:"transition-all-ease focus:scale-[1.01]"})]}),x.jsxs("div",{className:"space-y-2",children:[x.jsx(dt,{htmlFor:"port",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.port")}),x.jsx(Ct,{id:"port",type:"number",value:i.PORT,onChange:h=>s({...i,PORT:parseInt(h.target.value,10)}),className:"transition-all-ease focus:scale-[1.01]"})]}),x.jsxs("div",{className:"space-y-2",children:[x.jsx(dt,{htmlFor:"apikey",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.apikey")}),x.jsx(Ct,{id:"apikey",type:"password",value:i.APIKEY,onChange:h=>s({...i,APIKEY:h.target.value}),className:"transition-all-ease focus:scale-[1.01]"})]})]}),x.jsx(uo,{children:x.jsx($e,{onClick:()=>a(!1),className:"transition-all-ease hover:scale-[1.02] active:scale-[0.98]",children:l("app.save")})})]})})}const kl=v.forwardRef(({className:n,...a},l)=>x.jsx("div",{ref:l,className:nt("rounded-lg border bg-card text-card-foreground shadow-sm",n),...a}));kl.displayName="Card";const Ul=v.forwardRef(({className:n,...a},l)=>x.jsx("div",{ref:l,className:nt("flex flex-col space-y-1.5 p-6",n),...a}));Ul.displayName="CardHeader";const Pl=v.forwardRef(({className:n,...a},l)=>x.jsx("div",{ref:l,className:nt("text-2xl font-semibold leading-none tracking-tight",n),...a}));Pl.displayName="CardTitle";const bb=v.forwardRef(({className:n,...a},l)=>x.jsx("div",{ref:l,className:nt("text-sm text-muted-foreground",n),...a}));bb.displayName="CardDescription";const Hl=v.forwardRef(({className:n,...a},l)=>x.jsx("div",{ref:l,className:nt("p-6 pt-0",n),...a}));Hl.displayName="CardContent";const xb=v.forwardRef(({className:n,...a},l)=>x.jsx("div",{ref:l,className:nt("flex items-center p-6 pt-0",n),...a}));xb.displayName="CardFooter";function WO({transformers:n,onEdit:a,onRemove:l}){return x.jsx("div",{className:"space-y-3",children:n.map((i,s)=>x.jsxs("div",{className:"flex items-start justify-between rounded-md border bg-white p-4 transition-all hover:shadow-md animate-slide-in hover:scale-[1.01]",children:[x.jsxs("div",{className:"flex-1 space-y-1.5",children:[x.jsx("p",{className:"text-md font-semibold text-gray-800",children:i.path}),x.jsx("p",{className:"text-sm text-gray-500",children:i.options.project})]}),x.jsxs("div",{className:"ml-4 flex flex-shrink-0 items-center gap-2",children:[x.jsx($e,{variant:"ghost",size:"icon",onClick:()=>a(s),className:"transition-all-ease hover:scale-110",children:x.jsx(K0,{className:"h-4 w-4"})}),x.jsx($e,{variant:"destructive",size:"icon",onClick:()=>l(s),className:"transition-all duration-200 hover:scale-110",children:x.jsx(oo,{className:"h-4 w-4 text-current transition-colors duration-200"})})]})]},s))})}function IO(){const{t:n}=Dr(),{config:a,setConfig:l}=Kl(),[i,s]=v.useState(null),[u,f]=v.useState(null),[h,p]=v.useState(null);if(!a)return null;const m=()=>{p({path:"",options:{}}),s(a.transformers.length)},g=O=>{const _=[...a.transformers];_.splice(O,1),l({...a,transformers:_}),f(null)},b=(O,_,N,P)=>{if(O<a.transformers.length){const H=[...a.transformers];P!==void 0?H[O].options[P]=N:H[O][_]=N,l({...a,transformers:H})}else if(h){const H={...h};P!==void 0?H.options[P]=N:H[_]=N,p(H)}},S=i!==null?i<a.transformers.length?a.transformers[i]:h:null,E=()=>{if(h&&i===a.transformers.length){const O=[...a.transformers,h];l({...a,transformers:O})}s(null),p(null)},A=()=>{s(null),p(null)};return x.jsxs(kl,{className:"flex h-full flex-col rounded-lg border shadow-sm",children:[x.jsxs(Ul,{className:"flex flex-row items-center justify-between border-b p-4",children:[x.jsxs(Pl,{className:"text-lg",children:[n("transformers.title")," ",x.jsxs("span",{className:"text-sm font-normal text-gray-500",children:["(",a.transformers.length,")"]})]}),x.jsx($e,{onClick:m,children:n("transformers.add")})]}),x.jsx(Hl,{className:"flex-grow overflow-y-auto p-4",children:x.jsx(WO,{transformers:a.transformers,onEdit:s,onRemove:f})}),x.jsx(so,{open:i!==null,onOpenChange:A,children:x.jsxs(_l,{children:[x.jsx(Ll,{children:x.jsx(zl,{children:n("transformers.edit")})}),S&&i!==null&&x.jsxs("div",{className:"space-y-4 py-4 px-6 max-h-96 overflow-y-auto",children:[x.jsxs("div",{className:"space-y-2",children:[x.jsx(dt,{htmlFor:"transformer-path",children:n("transformers.path")}),x.jsx(Ct,{id:"transformer-path",value:S.path,onChange:O=>b(i,"path",O.target.value)})]}),x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsx(dt,{children:n("transformers.parameters")}),x.jsx($e,{variant:"outline",size:"sm",onClick:()=>{const O=`param${Object.keys(S.options).length+1}`;if(i!==null){const _={...S.options,[O]:""};if(i<a.transformers.length){const N=[...a.transformers];N[i].options=_,l({...a,transformers:N})}else h&&p({...h,options:_})}},children:x.jsx(Ad,{className:"h-4 w-4"})})]}),Object.entries(S.options).map(([O,_])=>x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(Ct,{value:O,onChange:N=>{const P={...S.options};if(delete P[O],P[N.target.value]=_,i!==null)if(i<a.transformers.length){const H=[...a.transformers];H[i].options=P,l({...a,transformers:H})}else h&&p({...h,options:P})},className:"flex-1"}),x.jsx(Ct,{value:_,onChange:N=>{i!==null&&b(i,"options",N.target.value,O)},className:"flex-1"}),x.jsx($e,{variant:"outline",size:"icon",onClick:()=>{if(i!==null){const N={...S.options};if(delete N[O],i<a.transformers.length){const P=[...a.transformers];P[i].options=N,l({...a,transformers:P})}else h&&p({...h,options:N})}},children:x.jsx(oo,{className:"h-4 w-4"})})]},O))]})]}),x.jsxs(uo,{children:[x.jsx($e,{variant:"outline",onClick:A,children:n("app.cancel")}),x.jsx($e,{onClick:E,children:n("app.save")})]})]})}),x.jsx(so,{open:u!==null,onOpenChange:()=>f(null),children:x.jsxs(_l,{children:[x.jsxs(Ll,{children:[x.jsx(zl,{children:n("transformers.delete")}),x.jsx(nh,{children:n("transformers.delete_transformer_confirm")})]}),x.jsxs(uo,{children:[x.jsx($e,{variant:"outline",onClick:()=>f(null),children:n("app.cancel")}),x.jsx($e,{variant:"destructive",onClick:()=>u!==null&&g(u),children:n("app.delete")})]})]})})]})}const eA=ah("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Sb({className:n,variant:a,...l}){return x.jsx("div",{className:nt(eA({variant:a}),n),...l})}function tA({providers:n,onEdit:a,onRemove:l}){return x.jsx("div",{className:"space-y-3",children:n.map((i,s)=>x.jsxs("div",{className:"flex items-start justify-between rounded-md border bg-white p-4 transition-all hover:shadow-md animate-slide-in hover:scale-[1.01]",children:[x.jsxs("div",{className:"flex-1 space-y-1.5",children:[x.jsx("p",{className:"text-md font-semibold text-gray-800",children:i.name}),x.jsx("p",{className:"text-sm text-gray-500",children:i.api_base_url}),x.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:i.models.map(u=>x.jsx(Sb,{variant:"outline",className:"font-normal transition-all-ease hover:scale-105",children:u},u))})]}),x.jsxs("div",{className:"ml-4 flex flex-shrink-0 items-center gap-2",children:[x.jsx($e,{variant:"ghost",size:"icon",onClick:()=>a(s),className:"transition-all-ease hover:scale-110",children:x.jsx(K0,{className:"h-4 w-4"})}),x.jsx($e,{variant:"destructive",size:"icon",onClick:()=>l(s),className:"transition-all duration-200 hover:scale-110",children:x.jsx(oo,{className:"h-4 w-4 text-current transition-colors duration-200"})})]})]},s))})}var fy=1,nA=.9,aA=.8,rA=.17,od=.1,sd=.999,lA=.9999,iA=.99,oA=/[\\\/_+.#"@\[\(\{&]/,sA=/[\\\/_+.#"@\[\(\{&]/g,uA=/[\s-]/,wb=/[\s-]/g;function jd(n,a,l,i,s,u,f){if(u===a.length)return s===n.length?fy:iA;var h=`${s},${u}`;if(f[h]!==void 0)return f[h];for(var p=i.charAt(u),m=l.indexOf(p,s),g=0,b,S,E,A;m>=0;)b=jd(n,a,l,i,m+1,u+1,f),b>g&&(m===s?b*=fy:oA.test(n.charAt(m-1))?(b*=aA,E=n.slice(s,m-1).match(sA),E&&s>0&&(b*=Math.pow(sd,E.length))):uA.test(n.charAt(m-1))?(b*=nA,A=n.slice(s,m-1).match(wb),A&&s>0&&(b*=Math.pow(sd,A.length))):(b*=rA,s>0&&(b*=Math.pow(sd,m-s))),n.charAt(m)!==a.charAt(u)&&(b*=lA)),(b<od&&l.charAt(m-1)===i.charAt(u+1)||i.charAt(u+1)===i.charAt(u)&&l.charAt(m-1)!==i.charAt(u))&&(S=jd(n,a,l,i,m+1,u+2,f),S*od>b&&(b=S*od)),b>g&&(g=b),m=l.indexOf(p,m+1);return f[h]=g,g}function dy(n){return n.toLowerCase().replace(wb," ")}function cA(n,a,l){return n=l&&l.length>0?`${n+" "+l.join(" ")}`:n,jd(n,a,dy(n),dy(a),0,0,{})}var Wi='[cmdk-group=""]',ud='[cmdk-group-items=""]',fA='[cmdk-group-heading=""]',Eb='[cmdk-item=""]',hy=`${Eb}:not([aria-disabled="true"])`,Dd="cmdk-item-select",Cl="data-value",dA=(n,a,l)=>cA(n,a,l),Rb=v.createContext(void 0),go=()=>v.useContext(Rb),Cb=v.createContext(void 0),rh=()=>v.useContext(Cb),Ob=v.createContext(void 0),Ab=v.forwardRef((n,a)=>{let l=Ol(()=>{var j,$;return{search:"",value:($=(j=n.value)!=null?j:n.defaultValue)!=null?$:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),i=Ol(()=>new Set),s=Ol(()=>new Map),u=Ol(()=>new Map),f=Ol(()=>new Set),h=Nb(n),{label:p,children:m,value:g,onValueChange:b,filter:S,shouldFilter:E,loop:A,disablePointerSelection:O=!1,vimBindings:_=!0,...N}=n,P=Vn(),H=Vn(),K=Vn(),V=v.useRef(null),T=EA();Mr(()=>{if(g!==void 0){let j=g.trim();l.current.value=j,F.emit()}},[g]),Mr(()=>{T(6,fe)},[]);let F=v.useMemo(()=>({subscribe:j=>(f.current.add(j),()=>f.current.delete(j)),snapshot:()=>l.current,setState:(j,$,I)=>{var ie,ce,de,Te;if(!Object.is(l.current[j],$)){if(l.current[j]=$,j==="search")xe(),oe(),T(1,Re);else if(j==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let qe=document.getElementById(K);qe?qe.focus():(ie=document.getElementById(P))==null||ie.focus()}if(T(7,()=>{var qe;l.current.selectedItemId=(qe=ue())==null?void 0:qe.id,F.emit()}),I||T(5,fe),((ce=h.current)==null?void 0:ce.value)!==void 0){let qe=$??"";(Te=(de=h.current).onValueChange)==null||Te.call(de,qe);return}}F.emit()}},emit:()=>{f.current.forEach(j=>j())}}),[]),W=v.useMemo(()=>({value:(j,$,I)=>{var ie;$!==((ie=u.current.get(j))==null?void 0:ie.value)&&(u.current.set(j,{value:$,keywords:I}),l.current.filtered.items.set(j,re($,I)),T(2,()=>{oe(),F.emit()}))},item:(j,$)=>(i.current.add(j),$&&(s.current.has($)?s.current.get($).add(j):s.current.set($,new Set([j]))),T(3,()=>{xe(),oe(),l.current.value||Re(),F.emit()}),()=>{u.current.delete(j),i.current.delete(j),l.current.filtered.items.delete(j);let I=ue();T(4,()=>{xe(),I?.getAttribute("id")===j&&Re(),F.emit()})}),group:j=>(s.current.has(j)||s.current.set(j,new Set),()=>{u.current.delete(j),s.current.delete(j)}),filter:()=>h.current.shouldFilter,label:p||n["aria-label"],getDisablePointerSelection:()=>h.current.disablePointerSelection,listId:P,inputId:K,labelId:H,listInnerRef:V}),[]);function re(j,$){var I,ie;let ce=(ie=(I=h.current)==null?void 0:I.filter)!=null?ie:dA;return j?ce(j,l.current.search,$):0}function oe(){if(!l.current.search||h.current.shouldFilter===!1)return;let j=l.current.filtered.items,$=[];l.current.filtered.groups.forEach(ie=>{let ce=s.current.get(ie),de=0;ce.forEach(Te=>{let qe=j.get(Te);de=Math.max(qe,de)}),$.push([ie,de])});let I=V.current;le().sort((ie,ce)=>{var de,Te;let qe=ie.getAttribute("id"),Ye=ce.getAttribute("id");return((de=j.get(Ye))!=null?de:0)-((Te=j.get(qe))!=null?Te:0)}).forEach(ie=>{let ce=ie.closest(ud);ce?ce.appendChild(ie.parentElement===ce?ie:ie.closest(`${ud} > *`)):I.appendChild(ie.parentElement===I?ie:ie.closest(`${ud} > *`))}),$.sort((ie,ce)=>ce[1]-ie[1]).forEach(ie=>{var ce;let de=(ce=V.current)==null?void 0:ce.querySelector(`${Wi}[${Cl}="${encodeURIComponent(ie[0])}"]`);de?.parentElement.appendChild(de)})}function Re(){let j=le().find(I=>I.getAttribute("aria-disabled")!=="true"),$=j?.getAttribute(Cl);F.setState("value",$||void 0)}function xe(){var j,$,I,ie;if(!l.current.search||h.current.shouldFilter===!1){l.current.filtered.count=i.current.size;return}l.current.filtered.groups=new Set;let ce=0;for(let de of i.current){let Te=($=(j=u.current.get(de))==null?void 0:j.value)!=null?$:"",qe=(ie=(I=u.current.get(de))==null?void 0:I.keywords)!=null?ie:[],Ye=re(Te,qe);l.current.filtered.items.set(de,Ye),Ye>0&&ce++}for(let[de,Te]of s.current)for(let qe of Te)if(l.current.filtered.items.get(qe)>0){l.current.filtered.groups.add(de);break}l.current.filtered.count=ce}function fe(){var j,$,I;let ie=ue();ie&&(((j=ie.parentElement)==null?void 0:j.firstChild)===ie&&((I=($=ie.closest(Wi))==null?void 0:$.querySelector(fA))==null||I.scrollIntoView({block:"nearest"})),ie.scrollIntoView({block:"nearest"}))}function ue(){var j;return(j=V.current)==null?void 0:j.querySelector(`${Eb}[aria-selected="true"]`)}function le(){var j;return Array.from(((j=V.current)==null?void 0:j.querySelectorAll(hy))||[])}function R(j){let $=le()[j];$&&F.setState("value",$.getAttribute(Cl))}function z(j){var $;let I=ue(),ie=le(),ce=ie.findIndex(Te=>Te===I),de=ie[ce+j];($=h.current)!=null&&$.loop&&(de=ce+j<0?ie[ie.length-1]:ce+j===ie.length?ie[0]:ie[ce+j]),de&&F.setState("value",de.getAttribute(Cl))}function D(j){let $=ue(),I=$?.closest(Wi),ie;for(;I&&!ie;)I=j>0?SA(I,Wi):wA(I,Wi),ie=I?.querySelector(hy);ie?F.setState("value",ie.getAttribute(Cl)):z(j)}let Z=()=>R(le().length-1),C=j=>{j.preventDefault(),j.metaKey?Z():j.altKey?D(1):z(1)},U=j=>{j.preventDefault(),j.metaKey?R(0):j.altKey?D(-1):z(-1)};return v.createElement(at.div,{ref:a,tabIndex:-1,...N,"cmdk-root":"",onKeyDown:j=>{var $;($=N.onKeyDown)==null||$.call(N,j);let I=j.nativeEvent.isComposing||j.keyCode===229;if(!(j.defaultPrevented||I))switch(j.key){case"n":case"j":{_&&j.ctrlKey&&C(j);break}case"ArrowDown":{C(j);break}case"p":case"k":{_&&j.ctrlKey&&U(j);break}case"ArrowUp":{U(j);break}case"Home":{j.preventDefault(),R(0);break}case"End":{j.preventDefault(),Z();break}case"Enter":{j.preventDefault();let ie=ue();if(ie){let ce=new Event(Dd);ie.dispatchEvent(ce)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:W.inputId,id:W.labelId,style:CA},p),Ou(n,j=>v.createElement(Cb.Provider,{value:F},v.createElement(Rb.Provider,{value:W},j))))}),hA=v.forwardRef((n,a)=>{var l,i;let s=Vn(),u=v.useRef(null),f=v.useContext(Ob),h=go(),p=Nb(n),m=(i=(l=p.current)==null?void 0:l.forceMount)!=null?i:f?.forceMount;Mr(()=>{if(!m)return h.item(s,f?.id)},[m]);let g=Tb(s,u,[n.value,n.children,u],n.keywords),b=rh(),S=Xa(T=>T.value&&T.value===g.current),E=Xa(T=>m||h.filter()===!1?!0:T.search?T.filtered.items.get(s)>0:!0);v.useEffect(()=>{let T=u.current;if(!(!T||n.disabled))return T.addEventListener(Dd,A),()=>T.removeEventListener(Dd,A)},[E,n.onSelect,n.disabled]);function A(){var T,F;O(),(F=(T=p.current).onSelect)==null||F.call(T,g.current)}function O(){b.setState("value",g.current,!0)}if(!E)return null;let{disabled:_,value:N,onSelect:P,forceMount:H,keywords:K,...V}=n;return v.createElement(at.div,{ref:Nr(u,a),...V,id:s,"cmdk-item":"",role:"option","aria-disabled":!!_,"aria-selected":!!S,"data-disabled":!!_,"data-selected":!!S,onPointerMove:_||h.getDisablePointerSelection()?void 0:O,onClick:_?void 0:A},n.children)}),mA=v.forwardRef((n,a)=>{let{heading:l,children:i,forceMount:s,...u}=n,f=Vn(),h=v.useRef(null),p=v.useRef(null),m=Vn(),g=go(),b=Xa(E=>s||g.filter()===!1?!0:E.search?E.filtered.groups.has(f):!0);Mr(()=>g.group(f),[]),Tb(f,h,[n.value,n.heading,p]);let S=v.useMemo(()=>({id:f,forceMount:s}),[s]);return v.createElement(at.div,{ref:Nr(h,a),...u,"cmdk-group":"",role:"presentation",hidden:b?void 0:!0},l&&v.createElement("div",{ref:p,"cmdk-group-heading":"","aria-hidden":!0,id:m},l),Ou(n,E=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":l?m:void 0},v.createElement(Ob.Provider,{value:S},E))))}),pA=v.forwardRef((n,a)=>{let{alwaysRender:l,...i}=n,s=v.useRef(null),u=Xa(f=>!f.search);return!l&&!u?null:v.createElement(at.div,{ref:Nr(s,a),...i,"cmdk-separator":"",role:"separator"})}),gA=v.forwardRef((n,a)=>{let{onValueChange:l,...i}=n,s=n.value!=null,u=rh(),f=Xa(m=>m.search),h=Xa(m=>m.selectedItemId),p=go();return v.useEffect(()=>{n.value!=null&&u.setState("search",n.value)},[n.value]),v.createElement(at.input,{ref:a,...i,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":p.listId,"aria-labelledby":p.labelId,"aria-activedescendant":h,id:p.inputId,type:"text",value:s?n.value:f,onChange:m=>{s||u.setState("search",m.target.value),l?.(m.target.value)}})}),vA=v.forwardRef((n,a)=>{let{children:l,label:i="Suggestions",...s}=n,u=v.useRef(null),f=v.useRef(null),h=Xa(m=>m.selectedItemId),p=go();return v.useEffect(()=>{if(f.current&&u.current){let m=f.current,g=u.current,b,S=new ResizeObserver(()=>{b=requestAnimationFrame(()=>{let E=m.offsetHeight;g.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return S.observe(m),()=>{cancelAnimationFrame(b),S.unobserve(m)}}},[]),v.createElement(at.div,{ref:Nr(u,a),...s,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":h,"aria-label":i,id:p.listId},Ou(n,m=>v.createElement("div",{ref:Nr(f,p.listInnerRef),"cmdk-list-sizer":""},m)))}),yA=v.forwardRef((n,a)=>{let{open:l,onOpenChange:i,overlayClassName:s,contentClassName:u,container:f,...h}=n;return v.createElement(H0,{open:l,onOpenChange:i},v.createElement(B0,{container:f},v.createElement(Id,{"cmdk-overlay":"",className:s}),v.createElement(eh,{"aria-label":n.label,"cmdk-dialog":"",className:u},v.createElement(Ab,{ref:a,...h}))))}),bA=v.forwardRef((n,a)=>Xa(l=>l.filtered.count===0)?v.createElement(at.div,{ref:a,...n,"cmdk-empty":"",role:"presentation"}):null),xA=v.forwardRef((n,a)=>{let{progress:l,children:i,label:s="Loading...",...u}=n;return v.createElement(at.div,{ref:a,...u,"cmdk-loading":"",role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,"aria-label":s},Ou(n,f=>v.createElement("div",{"aria-hidden":!0},f)))}),Fl=Object.assign(Ab,{List:vA,Item:hA,Input:gA,Group:mA,Separator:pA,Dialog:yA,Empty:bA,Loading:xA});function SA(n,a){let l=n.nextElementSibling;for(;l;){if(l.matches(a))return l;l=l.nextElementSibling}}function wA(n,a){let l=n.previousElementSibling;for(;l;){if(l.matches(a))return l;l=l.previousElementSibling}}function Nb(n){let a=v.useRef(n);return Mr(()=>{a.current=n}),a}var Mr=typeof window>"u"?v.useEffect:v.useLayoutEffect;function Ol(n){let a=v.useRef();return a.current===void 0&&(a.current=n()),a}function Xa(n){let a=rh(),l=()=>n(a.snapshot());return v.useSyncExternalStore(a.subscribe,l,l)}function Tb(n,a,l,i=[]){let s=v.useRef(),u=go();return Mr(()=>{var f;let h=(()=>{var m;for(let g of l){if(typeof g=="string")return g.trim();if(typeof g=="object"&&"current"in g)return g.current?(m=g.current.textContent)==null?void 0:m.trim():s.current}})(),p=i.map(m=>m.trim());u.value(n,h,p),(f=a.current)==null||f.setAttribute(Cl,h),s.current=h}),s}var EA=()=>{let[n,a]=v.useState(),l=Ol(()=>new Map);return Mr(()=>{l.current.forEach(i=>i()),l.current=new Map},[n]),(i,s)=>{l.current.set(i,s),a({})}};function RA(n){let a=n.type;return typeof a=="function"?a(n.props):"render"in a?a.render(n.props):n}function Ou({asChild:n,children:a},l){return n&&v.isValidElement(a)?v.cloneElement(RA(a),{ref:a.ref},l(a.props.children)):l(a)}var CA={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Mb({className:n,...a}){return x.jsx(Fl,{"data-slot":"command",className:nt("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",n),...a})}function jb({className:n,...a}){return x.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[x.jsx(eO,{className:"size-4 shrink-0 opacity-50"}),x.jsx(Fl.Input,{"data-slot":"command-input",className:nt("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",n),...a})]})}function Db({className:n,...a}){return x.jsx(Fl.List,{"data-slot":"command-list",className:nt("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",n),...a})}function _b({...n}){return x.jsx(Fl.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...n})}function Lb({className:n,...a}){return x.jsx(Fl.Group,{"data-slot":"command-group",className:nt("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",n),...a})}function zb({className:n,...a}){return x.jsx(Fl.Item,{"data-slot":"command-item",className:nt("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...a})}const OA=["top","right","bottom","left"],Qa=Math.min,nn=Math.max,uu=Math.round,Fs=Math.floor,qn=n=>({x:n,y:n}),AA={left:"right",right:"left",bottom:"top",top:"bottom"},NA={start:"end",end:"start"};function _d(n,a,l){return nn(n,Qa(a,l))}function ha(n,a){return typeof n=="function"?n(a):n}function ma(n){return n.split("-")[0]}function Xl(n){return n.split("-")[1]}function lh(n){return n==="x"?"y":"x"}function ih(n){return n==="y"?"height":"width"}const TA=new Set(["top","bottom"]);function Bn(n){return TA.has(ma(n))?"y":"x"}function oh(n){return lh(Bn(n))}function MA(n,a,l){l===void 0&&(l=!1);const i=Xl(n),s=oh(n),u=ih(s);let f=s==="x"?i===(l?"end":"start")?"right":"left":i==="start"?"bottom":"top";return a.reference[u]>a.floating[u]&&(f=cu(f)),[f,cu(f)]}function jA(n){const a=cu(n);return[Ld(n),a,Ld(a)]}function Ld(n){return n.replace(/start|end/g,a=>NA[a])}const my=["left","right"],py=["right","left"],DA=["top","bottom"],_A=["bottom","top"];function LA(n,a,l){switch(n){case"top":case"bottom":return l?a?py:my:a?my:py;case"left":case"right":return a?DA:_A;default:return[]}}function zA(n,a,l,i){const s=Xl(n);let u=LA(ma(n),l==="start",i);return s&&(u=u.map(f=>f+"-"+s),a&&(u=u.concat(u.map(Ld)))),u}function cu(n){return n.replace(/left|right|bottom|top/g,a=>AA[a])}function kA(n){return{top:0,right:0,bottom:0,left:0,...n}}function kb(n){return typeof n!="number"?kA(n):{top:n,right:n,bottom:n,left:n}}function fu(n){const{x:a,y:l,width:i,height:s}=n;return{width:i,height:s,top:l,left:a,right:a+i,bottom:l+s,x:a,y:l}}function gy(n,a,l){let{reference:i,floating:s}=n;const u=Bn(a),f=oh(a),h=ih(f),p=ma(a),m=u==="y",g=i.x+i.width/2-s.width/2,b=i.y+i.height/2-s.height/2,S=i[h]/2-s[h]/2;let E;switch(p){case"top":E={x:g,y:i.y-s.height};break;case"bottom":E={x:g,y:i.y+i.height};break;case"right":E={x:i.x+i.width,y:b};break;case"left":E={x:i.x-s.width,y:b};break;default:E={x:i.x,y:i.y}}switch(Xl(a)){case"start":E[f]-=S*(l&&m?-1:1);break;case"end":E[f]+=S*(l&&m?-1:1);break}return E}const UA=async(n,a,l)=>{const{placement:i="bottom",strategy:s="absolute",middleware:u=[],platform:f}=l,h=u.filter(Boolean),p=await(f.isRTL==null?void 0:f.isRTL(a));let m=await f.getElementRects({reference:n,floating:a,strategy:s}),{x:g,y:b}=gy(m,i,p),S=i,E={},A=0;for(let O=0;O<h.length;O++){const{name:_,fn:N}=h[O],{x:P,y:H,data:K,reset:V}=await N({x:g,y:b,initialPlacement:i,placement:S,strategy:s,middlewareData:E,rects:m,platform:f,elements:{reference:n,floating:a}});g=P??g,b=H??b,E={...E,[_]:{...E[_],...K}},V&&A<=50&&(A++,typeof V=="object"&&(V.placement&&(S=V.placement),V.rects&&(m=V.rects===!0?await f.getElementRects({reference:n,floating:a,strategy:s}):V.rects),{x:g,y:b}=gy(m,S,p)),O=-1)}return{x:g,y:b,placement:S,strategy:s,middlewareData:E}};async function co(n,a){var l;a===void 0&&(a={});const{x:i,y:s,platform:u,rects:f,elements:h,strategy:p}=n,{boundary:m="clippingAncestors",rootBoundary:g="viewport",elementContext:b="floating",altBoundary:S=!1,padding:E=0}=ha(a,n),A=kb(E),_=h[S?b==="floating"?"reference":"floating":b],N=fu(await u.getClippingRect({element:(l=await(u.isElement==null?void 0:u.isElement(_)))==null||l?_:_.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(h.floating)),boundary:m,rootBoundary:g,strategy:p})),P=b==="floating"?{x:i,y:s,width:f.floating.width,height:f.floating.height}:f.reference,H=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h.floating)),K=await(u.isElement==null?void 0:u.isElement(H))?await(u.getScale==null?void 0:u.getScale(H))||{x:1,y:1}:{x:1,y:1},V=fu(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:P,offsetParent:H,strategy:p}):P);return{top:(N.top-V.top+A.top)/K.y,bottom:(V.bottom-N.bottom+A.bottom)/K.y,left:(N.left-V.left+A.left)/K.x,right:(V.right-N.right+A.right)/K.x}}const PA=n=>({name:"arrow",options:n,async fn(a){const{x:l,y:i,placement:s,rects:u,platform:f,elements:h,middlewareData:p}=a,{element:m,padding:g=0}=ha(n,a)||{};if(m==null)return{};const b=kb(g),S={x:l,y:i},E=oh(s),A=ih(E),O=await f.getDimensions(m),_=E==="y",N=_?"top":"left",P=_?"bottom":"right",H=_?"clientHeight":"clientWidth",K=u.reference[A]+u.reference[E]-S[E]-u.floating[A],V=S[E]-u.reference[E],T=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m));let F=T?T[H]:0;(!F||!await(f.isElement==null?void 0:f.isElement(T)))&&(F=h.floating[H]||u.floating[A]);const W=K/2-V/2,re=F/2-O[A]/2-1,oe=Qa(b[N],re),Re=Qa(b[P],re),xe=oe,fe=F-O[A]-Re,ue=F/2-O[A]/2+W,le=_d(xe,ue,fe),R=!p.arrow&&Xl(s)!=null&&ue!==le&&u.reference[A]/2-(ue<xe?oe:Re)-O[A]/2<0,z=R?ue<xe?ue-xe:ue-fe:0;return{[E]:S[E]+z,data:{[E]:le,centerOffset:ue-le-z,...R&&{alignmentOffset:z}},reset:R}}}),HA=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var l,i;const{placement:s,middlewareData:u,rects:f,initialPlacement:h,platform:p,elements:m}=a,{mainAxis:g=!0,crossAxis:b=!0,fallbackPlacements:S,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:O=!0,..._}=ha(n,a);if((l=u.arrow)!=null&&l.alignmentOffset)return{};const N=ma(s),P=Bn(h),H=ma(h)===h,K=await(p.isRTL==null?void 0:p.isRTL(m.floating)),V=S||(H||!O?[cu(h)]:jA(h)),T=A!=="none";!S&&T&&V.push(...zA(h,O,A,K));const F=[h,...V],W=await co(a,_),re=[];let oe=((i=u.flip)==null?void 0:i.overflows)||[];if(g&&re.push(W[N]),b){const ue=MA(s,f,K);re.push(W[ue[0]],W[ue[1]])}if(oe=[...oe,{placement:s,overflows:re}],!re.every(ue=>ue<=0)){var Re,xe;const ue=(((Re=u.flip)==null?void 0:Re.index)||0)+1,le=F[ue];if(le&&(!(b==="alignment"?P!==Bn(le):!1)||oe.every(D=>D.overflows[0]>0&&Bn(D.placement)===P)))return{data:{index:ue,overflows:oe},reset:{placement:le}};let R=(xe=oe.filter(z=>z.overflows[0]<=0).sort((z,D)=>z.overflows[1]-D.overflows[1])[0])==null?void 0:xe.placement;if(!R)switch(E){case"bestFit":{var fe;const z=(fe=oe.filter(D=>{if(T){const Z=Bn(D.placement);return Z===P||Z==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(Z=>Z>0).reduce((Z,C)=>Z+C,0)]).sort((D,Z)=>D[1]-Z[1])[0])==null?void 0:fe[0];z&&(R=z);break}case"initialPlacement":R=h;break}if(s!==R)return{reset:{placement:R}}}return{}}}};function vy(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function yy(n){return OA.some(a=>n[a]>=0)}const BA=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:l}=a,{strategy:i="referenceHidden",...s}=ha(n,a);switch(i){case"referenceHidden":{const u=await co(a,{...s,elementContext:"reference"}),f=vy(u,l.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:yy(f)}}}case"escaped":{const u=await co(a,{...s,altBoundary:!0}),f=vy(u,l.floating);return{data:{escapedOffsets:f,escaped:yy(f)}}}default:return{}}}}},Ub=new Set(["left","top"]);async function $A(n,a){const{placement:l,platform:i,elements:s}=n,u=await(i.isRTL==null?void 0:i.isRTL(s.floating)),f=ma(l),h=Xl(l),p=Bn(l)==="y",m=Ub.has(f)?-1:1,g=u&&p?-1:1,b=ha(a,n);let{mainAxis:S,crossAxis:E,alignmentAxis:A}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return h&&typeof A=="number"&&(E=h==="end"?A*-1:A),p?{x:E*g,y:S*m}:{x:S*m,y:E*g}}const VA=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var l,i;const{x:s,y:u,placement:f,middlewareData:h}=a,p=await $A(a,n);return f===((l=h.offset)==null?void 0:l.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:s+p.x,y:u+p.y,data:{...p,placement:f}}}}},qA=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:l,y:i,placement:s}=a,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:_=>{let{x:N,y:P}=_;return{x:N,y:P}}},...p}=ha(n,a),m={x:l,y:i},g=await co(a,p),b=Bn(ma(s)),S=lh(b);let E=m[S],A=m[b];if(u){const _=S==="y"?"top":"left",N=S==="y"?"bottom":"right",P=E+g[_],H=E-g[N];E=_d(P,E,H)}if(f){const _=b==="y"?"top":"left",N=b==="y"?"bottom":"right",P=A+g[_],H=A-g[N];A=_d(P,A,H)}const O=h.fn({...a,[S]:E,[b]:A});return{...O,data:{x:O.x-l,y:O.y-i,enabled:{[S]:u,[b]:f}}}}}},YA=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:l,y:i,placement:s,rects:u,middlewareData:f}=a,{offset:h=0,mainAxis:p=!0,crossAxis:m=!0}=ha(n,a),g={x:l,y:i},b=Bn(s),S=lh(b);let E=g[S],A=g[b];const O=ha(h,a),_=typeof O=="number"?{mainAxis:O,crossAxis:0}:{mainAxis:0,crossAxis:0,...O};if(p){const H=S==="y"?"height":"width",K=u.reference[S]-u.floating[H]+_.mainAxis,V=u.reference[S]+u.reference[H]-_.mainAxis;E<K?E=K:E>V&&(E=V)}if(m){var N,P;const H=S==="y"?"width":"height",K=Ub.has(ma(s)),V=u.reference[b]-u.floating[H]+(K&&((N=f.offset)==null?void 0:N[b])||0)+(K?0:_.crossAxis),T=u.reference[b]+u.reference[H]+(K?0:((P=f.offset)==null?void 0:P[b])||0)-(K?_.crossAxis:0);A<V?A=V:A>T&&(A=T)}return{[S]:E,[b]:A}}}},GA=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var l,i;const{placement:s,rects:u,platform:f,elements:h}=a,{apply:p=()=>{},...m}=ha(n,a),g=await co(a,m),b=ma(s),S=Xl(s),E=Bn(s)==="y",{width:A,height:O}=u.floating;let _,N;b==="top"||b==="bottom"?(_=b,N=S===(await(f.isRTL==null?void 0:f.isRTL(h.floating))?"start":"end")?"left":"right"):(N=b,_=S==="end"?"top":"bottom");const P=O-g.top-g.bottom,H=A-g.left-g.right,K=Qa(O-g[_],P),V=Qa(A-g[N],H),T=!a.middlewareData.shift;let F=K,W=V;if((l=a.middlewareData.shift)!=null&&l.enabled.x&&(W=H),(i=a.middlewareData.shift)!=null&&i.enabled.y&&(F=P),T&&!S){const oe=nn(g.left,0),Re=nn(g.right,0),xe=nn(g.top,0),fe=nn(g.bottom,0);E?W=A-2*(oe!==0||Re!==0?oe+Re:nn(g.left,g.right)):F=O-2*(xe!==0||fe!==0?xe+fe:nn(g.top,g.bottom))}await p({...a,availableWidth:W,availableHeight:F});const re=await f.getDimensions(h.floating);return A!==re.width||O!==re.height?{reset:{rects:!0}}:{}}}};function Au(){return typeof window<"u"}function Ql(n){return Pb(n)?(n.nodeName||"").toLowerCase():"#document"}function rn(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function Kn(n){var a;return(a=(Pb(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function Pb(n){return Au()?n instanceof Node||n instanceof rn(n).Node:!1}function Cn(n){return Au()?n instanceof Element||n instanceof rn(n).Element:!1}function Yn(n){return Au()?n instanceof HTMLElement||n instanceof rn(n).HTMLElement:!1}function by(n){return!Au()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof rn(n).ShadowRoot}const KA=new Set(["inline","contents"]);function vo(n){const{overflow:a,overflowX:l,overflowY:i,display:s}=On(n);return/auto|scroll|overlay|hidden|clip/.test(a+i+l)&&!KA.has(s)}const FA=new Set(["table","td","th"]);function XA(n){return FA.has(Ql(n))}const QA=[":popover-open",":modal"];function Nu(n){return QA.some(a=>{try{return n.matches(a)}catch{return!1}})}const ZA=["transform","translate","scale","rotate","perspective"],JA=["transform","translate","scale","rotate","perspective","filter"],WA=["paint","layout","strict","content"];function sh(n){const a=uh(),l=Cn(n)?On(n):n;return ZA.some(i=>l[i]?l[i]!=="none":!1)||(l.containerType?l.containerType!=="normal":!1)||!a&&(l.backdropFilter?l.backdropFilter!=="none":!1)||!a&&(l.filter?l.filter!=="none":!1)||JA.some(i=>(l.willChange||"").includes(i))||WA.some(i=>(l.contain||"").includes(i))}function IA(n){let a=Za(n);for(;Yn(a)&&!Bl(a);){if(sh(a))return a;if(Nu(a))return null;a=Za(a)}return null}function uh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const eN=new Set(["html","body","#document"]);function Bl(n){return eN.has(Ql(n))}function On(n){return rn(n).getComputedStyle(n)}function Tu(n){return Cn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Za(n){if(Ql(n)==="html")return n;const a=n.assignedSlot||n.parentNode||by(n)&&n.host||Kn(n);return by(a)?a.host:a}function Hb(n){const a=Za(n);return Bl(a)?n.ownerDocument?n.ownerDocument.body:n.body:Yn(a)&&vo(a)?a:Hb(a)}function fo(n,a,l){var i;a===void 0&&(a=[]),l===void 0&&(l=!0);const s=Hb(n),u=s===((i=n.ownerDocument)==null?void 0:i.body),f=rn(s);if(u){const h=zd(f);return a.concat(f,f.visualViewport||[],vo(s)?s:[],h&&l?fo(h):[])}return a.concat(s,fo(s,[],l))}function zd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Bb(n){const a=On(n);let l=parseFloat(a.width)||0,i=parseFloat(a.height)||0;const s=Yn(n),u=s?n.offsetWidth:l,f=s?n.offsetHeight:i,h=uu(l)!==u||uu(i)!==f;return h&&(l=u,i=f),{width:l,height:i,$:h}}function ch(n){return Cn(n)?n:n.contextElement}function jl(n){const a=ch(n);if(!Yn(a))return qn(1);const l=a.getBoundingClientRect(),{width:i,height:s,$:u}=Bb(a);let f=(u?uu(l.width):l.width)/i,h=(u?uu(l.height):l.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!h||!Number.isFinite(h))&&(h=1),{x:f,y:h}}const tN=qn(0);function $b(n){const a=rn(n);return!uh()||!a.visualViewport?tN:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function nN(n,a,l){return a===void 0&&(a=!1),!l||a&&l!==rn(n)?!1:a}function jr(n,a,l,i){a===void 0&&(a=!1),l===void 0&&(l=!1);const s=n.getBoundingClientRect(),u=ch(n);let f=qn(1);a&&(i?Cn(i)&&(f=jl(i)):f=jl(n));const h=nN(u,l,i)?$b(u):qn(0);let p=(s.left+h.x)/f.x,m=(s.top+h.y)/f.y,g=s.width/f.x,b=s.height/f.y;if(u){const S=rn(u),E=i&&Cn(i)?rn(i):i;let A=S,O=zd(A);for(;O&&i&&E!==A;){const _=jl(O),N=O.getBoundingClientRect(),P=On(O),H=N.left+(O.clientLeft+parseFloat(P.paddingLeft))*_.x,K=N.top+(O.clientTop+parseFloat(P.paddingTop))*_.y;p*=_.x,m*=_.y,g*=_.x,b*=_.y,p+=H,m+=K,A=rn(O),O=zd(A)}}return fu({width:g,height:b,x:p,y:m})}function fh(n,a){const l=Tu(n).scrollLeft;return a?a.left+l:jr(Kn(n)).left+l}function Vb(n,a,l){l===void 0&&(l=!1);const i=n.getBoundingClientRect(),s=i.left+a.scrollLeft-(l?0:fh(n,i)),u=i.top+a.scrollTop;return{x:s,y:u}}function aN(n){let{elements:a,rect:l,offsetParent:i,strategy:s}=n;const u=s==="fixed",f=Kn(i),h=a?Nu(a.floating):!1;if(i===f||h&&u)return l;let p={scrollLeft:0,scrollTop:0},m=qn(1);const g=qn(0),b=Yn(i);if((b||!b&&!u)&&((Ql(i)!=="body"||vo(f))&&(p=Tu(i)),Yn(i))){const E=jr(i);m=jl(i),g.x=E.x+i.clientLeft,g.y=E.y+i.clientTop}const S=f&&!b&&!u?Vb(f,p,!0):qn(0);return{width:l.width*m.x,height:l.height*m.y,x:l.x*m.x-p.scrollLeft*m.x+g.x+S.x,y:l.y*m.y-p.scrollTop*m.y+g.y+S.y}}function rN(n){return Array.from(n.getClientRects())}function lN(n){const a=Kn(n),l=Tu(n),i=n.ownerDocument.body,s=nn(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),u=nn(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let f=-l.scrollLeft+fh(n);const h=-l.scrollTop;return On(i).direction==="rtl"&&(f+=nn(a.clientWidth,i.clientWidth)-s),{width:s,height:u,x:f,y:h}}function iN(n,a){const l=rn(n),i=Kn(n),s=l.visualViewport;let u=i.clientWidth,f=i.clientHeight,h=0,p=0;if(s){u=s.width,f=s.height;const m=uh();(!m||m&&a==="fixed")&&(h=s.offsetLeft,p=s.offsetTop)}return{width:u,height:f,x:h,y:p}}const oN=new Set(["absolute","fixed"]);function sN(n,a){const l=jr(n,!0,a==="fixed"),i=l.top+n.clientTop,s=l.left+n.clientLeft,u=Yn(n)?jl(n):qn(1),f=n.clientWidth*u.x,h=n.clientHeight*u.y,p=s*u.x,m=i*u.y;return{width:f,height:h,x:p,y:m}}function xy(n,a,l){let i;if(a==="viewport")i=iN(n,l);else if(a==="document")i=lN(Kn(n));else if(Cn(a))i=sN(a,l);else{const s=$b(n);i={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return fu(i)}function qb(n,a){const l=Za(n);return l===a||!Cn(l)||Bl(l)?!1:On(l).position==="fixed"||qb(l,a)}function uN(n,a){const l=a.get(n);if(l)return l;let i=fo(n,[],!1).filter(h=>Cn(h)&&Ql(h)!=="body"),s=null;const u=On(n).position==="fixed";let f=u?Za(n):n;for(;Cn(f)&&!Bl(f);){const h=On(f),p=sh(f);!p&&h.position==="fixed"&&(s=null),(u?!p&&!s:!p&&h.position==="static"&&!!s&&oN.has(s.position)||vo(f)&&!p&&qb(n,f))?i=i.filter(g=>g!==f):s=h,f=Za(f)}return a.set(n,i),i}function cN(n){let{element:a,boundary:l,rootBoundary:i,strategy:s}=n;const f=[...l==="clippingAncestors"?Nu(a)?[]:uN(a,this._c):[].concat(l),i],h=f[0],p=f.reduce((m,g)=>{const b=xy(a,g,s);return m.top=nn(b.top,m.top),m.right=Qa(b.right,m.right),m.bottom=Qa(b.bottom,m.bottom),m.left=nn(b.left,m.left),m},xy(a,h,s));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function fN(n){const{width:a,height:l}=Bb(n);return{width:a,height:l}}function dN(n,a,l){const i=Yn(a),s=Kn(a),u=l==="fixed",f=jr(n,!0,u,a);let h={scrollLeft:0,scrollTop:0};const p=qn(0);function m(){p.x=fh(s)}if(i||!i&&!u)if((Ql(a)!=="body"||vo(s))&&(h=Tu(a)),i){const E=jr(a,!0,u,a);p.x=E.x+a.clientLeft,p.y=E.y+a.clientTop}else s&&m();u&&!i&&s&&m();const g=s&&!i&&!u?Vb(s,h):qn(0),b=f.left+h.scrollLeft-p.x-g.x,S=f.top+h.scrollTop-p.y-g.y;return{x:b,y:S,width:f.width,height:f.height}}function cd(n){return On(n).position==="static"}function Sy(n,a){if(!Yn(n)||On(n).position==="fixed")return null;if(a)return a(n);let l=n.offsetParent;return Kn(n)===l&&(l=l.ownerDocument.body),l}function Yb(n,a){const l=rn(n);if(Nu(n))return l;if(!Yn(n)){let s=Za(n);for(;s&&!Bl(s);){if(Cn(s)&&!cd(s))return s;s=Za(s)}return l}let i=Sy(n,a);for(;i&&XA(i)&&cd(i);)i=Sy(i,a);return i&&Bl(i)&&cd(i)&&!sh(i)?l:i||IA(n)||l}const hN=async function(n){const a=this.getOffsetParent||Yb,l=this.getDimensions,i=await l(n.floating);return{reference:dN(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function mN(n){return On(n).direction==="rtl"}const pN={convertOffsetParentRelativeRectToViewportRelativeRect:aN,getDocumentElement:Kn,getClippingRect:cN,getOffsetParent:Yb,getElementRects:hN,getClientRects:rN,getDimensions:fN,getScale:jl,isElement:Cn,isRTL:mN};function Gb(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function gN(n,a){let l=null,i;const s=Kn(n);function u(){var h;clearTimeout(i),(h=l)==null||h.disconnect(),l=null}function f(h,p){h===void 0&&(h=!1),p===void 0&&(p=1),u();const m=n.getBoundingClientRect(),{left:g,top:b,width:S,height:E}=m;if(h||a(),!S||!E)return;const A=Fs(b),O=Fs(s.clientWidth-(g+S)),_=Fs(s.clientHeight-(b+E)),N=Fs(g),H={rootMargin:-A+"px "+-O+"px "+-_+"px "+-N+"px",threshold:nn(0,Qa(1,p))||1};let K=!0;function V(T){const F=T[0].intersectionRatio;if(F!==p){if(!K)return f();F?f(!1,F):i=setTimeout(()=>{f(!1,1e-7)},1e3)}F===1&&!Gb(m,n.getBoundingClientRect())&&f(),K=!1}try{l=new IntersectionObserver(V,{...H,root:s.ownerDocument})}catch{l=new IntersectionObserver(V,H)}l.observe(n)}return f(!0),u}function vN(n,a,l,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,m=ch(n),g=s||u?[...m?fo(m):[],...fo(a)]:[];g.forEach(N=>{s&&N.addEventListener("scroll",l,{passive:!0}),u&&N.addEventListener("resize",l)});const b=m&&h?gN(m,l):null;let S=-1,E=null;f&&(E=new ResizeObserver(N=>{let[P]=N;P&&P.target===m&&E&&(E.unobserve(a),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var H;(H=E)==null||H.observe(a)})),l()}),m&&!p&&E.observe(m),E.observe(a));let A,O=p?jr(n):null;p&&_();function _(){const N=jr(n);O&&!Gb(O,N)&&l(),O=N,A=requestAnimationFrame(_)}return l(),()=>{var N;g.forEach(P=>{s&&P.removeEventListener("scroll",l),u&&P.removeEventListener("resize",l)}),b?.(),(N=E)==null||N.disconnect(),E=null,p&&cancelAnimationFrame(A)}}const yN=VA,bN=qA,xN=HA,SN=GA,wN=BA,wy=PA,EN=YA,RN=(n,a,l)=>{const i=new Map,s={platform:pN,...l},u={...s.platform,_c:i};return UA(n,a,{...s,platform:u})};var CN=typeof document<"u",ON=function(){},nu=CN?v.useLayoutEffect:ON;function du(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let l,i,s;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(l=n.length,l!==a.length)return!1;for(i=l;i--!==0;)if(!du(n[i],a[i]))return!1;return!0}if(s=Object.keys(n),l=s.length,l!==Object.keys(a).length)return!1;for(i=l;i--!==0;)if(!{}.hasOwnProperty.call(a,s[i]))return!1;for(i=l;i--!==0;){const u=s[i];if(!(u==="_owner"&&n.$$typeof)&&!du(n[u],a[u]))return!1}return!0}return n!==n&&a!==a}function Kb(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Ey(n,a){const l=Kb(n);return Math.round(a*l)/l}function fd(n){const a=v.useRef(n);return nu(()=>{a.current=n}),a}function AN(n){n===void 0&&(n={});const{placement:a="bottom",strategy:l="absolute",middleware:i=[],platform:s,elements:{reference:u,floating:f}={},transform:h=!0,whileElementsMounted:p,open:m}=n,[g,b]=v.useState({x:0,y:0,strategy:l,placement:a,middlewareData:{},isPositioned:!1}),[S,E]=v.useState(i);du(S,i)||E(i);const[A,O]=v.useState(null),[_,N]=v.useState(null),P=v.useCallback(D=>{D!==T.current&&(T.current=D,O(D))},[]),H=v.useCallback(D=>{D!==F.current&&(F.current=D,N(D))},[]),K=u||A,V=f||_,T=v.useRef(null),F=v.useRef(null),W=v.useRef(g),re=p!=null,oe=fd(p),Re=fd(s),xe=fd(m),fe=v.useCallback(()=>{if(!T.current||!F.current)return;const D={placement:a,strategy:l,middleware:S};Re.current&&(D.platform=Re.current),RN(T.current,F.current,D).then(Z=>{const C={...Z,isPositioned:xe.current!==!1};ue.current&&!du(W.current,C)&&(W.current=C,xu.flushSync(()=>{b(C)}))})},[S,a,l,Re,xe]);nu(()=>{m===!1&&W.current.isPositioned&&(W.current.isPositioned=!1,b(D=>({...D,isPositioned:!1})))},[m]);const ue=v.useRef(!1);nu(()=>(ue.current=!0,()=>{ue.current=!1}),[]),nu(()=>{if(K&&(T.current=K),V&&(F.current=V),K&&V){if(oe.current)return oe.current(K,V,fe);fe()}},[K,V,fe,oe,re]);const le=v.useMemo(()=>({reference:T,floating:F,setReference:P,setFloating:H}),[P,H]),R=v.useMemo(()=>({reference:K,floating:V}),[K,V]),z=v.useMemo(()=>{const D={position:l,left:0,top:0};if(!R.floating)return D;const Z=Ey(R.floating,g.x),C=Ey(R.floating,g.y);return h?{...D,transform:"translate("+Z+"px, "+C+"px)",...Kb(R.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:Z,top:C}},[l,h,R.floating,g.x,g.y]);return v.useMemo(()=>({...g,update:fe,refs:le,elements:R,floatingStyles:z}),[g,fe,le,R,z])}const NN=n=>{function a(l){return{}.hasOwnProperty.call(l,"current")}return{name:"arrow",options:n,fn(l){const{element:i,padding:s}=typeof n=="function"?n(l):n;return i&&a(i)?i.current!=null?wy({element:i.current,padding:s}).fn(l):{}:i?wy({element:i,padding:s}).fn(l):{}}}},TN=(n,a)=>({...yN(n),options:[n,a]}),MN=(n,a)=>({...bN(n),options:[n,a]}),jN=(n,a)=>({...EN(n),options:[n,a]}),DN=(n,a)=>({...xN(n),options:[n,a]}),_N=(n,a)=>({...SN(n),options:[n,a]}),LN=(n,a)=>({...wN(n),options:[n,a]}),zN=(n,a)=>({...NN(n),options:[n,a]});var kN="Arrow",Fb=v.forwardRef((n,a)=>{const{children:l,width:i=10,height:s=5,...u}=n;return x.jsx(at.svg,{...u,ref:a,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?l:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});Fb.displayName=kN;var UN=Fb,dh="Popper",[Xb,Qb]=Su(dh),[PN,Zb]=Xb(dh),Jb=n=>{const{__scopePopper:a,children:l}=n,[i,s]=v.useState(null);return x.jsx(PN,{scope:a,anchor:i,onAnchorChange:s,children:l})};Jb.displayName=dh;var Wb="PopperAnchor",Ib=v.forwardRef((n,a)=>{const{__scopePopper:l,virtualRef:i,...s}=n,u=Zb(Wb,l),f=v.useRef(null),h=ln(a,f);return v.useEffect(()=>{u.onAnchorChange(i?.current||f.current)}),i?null:x.jsx(at.div,{...s,ref:h})});Ib.displayName=Wb;var hh="PopperContent",[HN,BN]=Xb(hh),ex=v.forwardRef((n,a)=>{const{__scopePopper:l,side:i="bottom",sideOffset:s=0,align:u="center",alignOffset:f=0,arrowPadding:h=0,avoidCollisions:p=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:b="partial",hideWhenDetached:S=!1,updatePositionStrategy:E="optimized",onPlaced:A,...O}=n,_=Zb(hh,l),[N,P]=v.useState(null),H=ln(a,de=>P(de)),[K,V]=v.useState(null),T=cb(K),F=T?.width??0,W=T?.height??0,re=i+(u!=="center"?"-"+u:""),oe=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},Re=Array.isArray(m)?m:[m],xe=Re.length>0,fe={padding:oe,boundary:Re.filter(VN),altBoundary:xe},{refs:ue,floatingStyles:le,placement:R,isPositioned:z,middlewareData:D}=AN({strategy:"fixed",placement:re,whileElementsMounted:(...de)=>vN(...de,{animationFrame:E==="always"}),elements:{reference:_.anchor},middleware:[TN({mainAxis:s+W,alignmentAxis:f}),p&&MN({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?jN():void 0,...fe}),p&&DN({...fe}),_N({...fe,apply:({elements:de,rects:Te,availableWidth:qe,availableHeight:Ye})=>{const{width:Ot,height:Yt}=Te.reference,Tn=de.floating.style;Tn.setProperty("--radix-popper-available-width",`${qe}px`),Tn.setProperty("--radix-popper-available-height",`${Ye}px`),Tn.setProperty("--radix-popper-anchor-width",`${Ot}px`),Tn.setProperty("--radix-popper-anchor-height",`${Yt}px`)}}),K&&zN({element:K,padding:h}),qN({arrowWidth:F,arrowHeight:W}),S&&LN({strategy:"referenceHidden",...fe})]}),[Z,C]=ax(R),U=Dl(A);Fa(()=>{z&&U?.()},[z,U]);const j=D.arrow?.x,$=D.arrow?.y,I=D.arrow?.centerOffset!==0,[ie,ce]=v.useState();return Fa(()=>{N&&ce(window.getComputedStyle(N).zIndex)},[N]),x.jsx("div",{ref:ue.setFloating,"data-radix-popper-content-wrapper":"",style:{...le,transform:z?le.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ie,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:x.jsx(HN,{scope:l,placedSide:Z,onArrowChange:V,arrowX:j,arrowY:$,shouldHideArrow:I,children:x.jsx(at.div,{"data-side":Z,"data-align":C,...O,ref:H,style:{...O.style,animation:z?void 0:"none"}})})})});ex.displayName=hh;var tx="PopperArrow",$N={top:"bottom",right:"left",bottom:"top",left:"right"},nx=v.forwardRef(function(a,l){const{__scopePopper:i,...s}=a,u=BN(tx,i),f=$N[u.placedSide];return x.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:x.jsx(UN,{...s,ref:l,style:{...s.style,display:"block"}})})});nx.displayName=tx;function VN(n){return n!==null}var qN=n=>({name:"transformOrigin",options:n,fn(a){const{placement:l,rects:i,middlewareData:s}=a,f=s.arrow?.centerOffset!==0,h=f?0:n.arrowWidth,p=f?0:n.arrowHeight,[m,g]=ax(l),b={start:"0%",center:"50%",end:"100%"}[g],S=(s.arrow?.x??0)+h/2,E=(s.arrow?.y??0)+p/2;let A="",O="";return m==="bottom"?(A=f?b:`${S}px`,O=`${-p}px`):m==="top"?(A=f?b:`${S}px`,O=`${i.floating.height+p}px`):m==="right"?(A=`${-p}px`,O=f?b:`${E}px`):m==="left"&&(A=`${i.floating.width+p}px`,O=f?b:`${E}px`),{data:{x:A,y:O}}}});function ax(n){const[a,l="center"]=n.split("-");return[a,l]}var YN=Jb,rx=Ib,GN=ex,KN=nx,Mu="Popover",[lx,OM]=Su(Mu,[Qb]),yo=Qb(),[FN,Wa]=lx(Mu),ix=n=>{const{__scopePopover:a,children:l,open:i,defaultOpen:s,onOpenChange:u,modal:f=!1}=n,h=yo(a),p=v.useRef(null),[m,g]=v.useState(!1),[b,S]=Gd({prop:i,defaultProp:s??!1,onChange:u,caller:Mu});return x.jsx(YN,{...h,children:x.jsx(FN,{scope:a,contentId:Vn(),triggerRef:p,open:b,onOpenChange:S,onOpenToggle:v.useCallback(()=>S(E=>!E),[S]),hasCustomAnchor:m,onCustomAnchorAdd:v.useCallback(()=>g(!0),[]),onCustomAnchorRemove:v.useCallback(()=>g(!1),[]),modal:f,children:l})})};ix.displayName=Mu;var ox="PopoverAnchor",XN=v.forwardRef((n,a)=>{const{__scopePopover:l,...i}=n,s=Wa(ox,l),u=yo(l),{onCustomAnchorAdd:f,onCustomAnchorRemove:h}=s;return v.useEffect(()=>(f(),()=>h()),[f,h]),x.jsx(rx,{...u,...i,ref:a})});XN.displayName=ox;var sx="PopoverTrigger",ux=v.forwardRef((n,a)=>{const{__scopePopover:l,...i}=n,s=Wa(sx,l),u=yo(l),f=ln(a,s.triggerRef),h=x.jsx(at.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":mx(s.open),...i,ref:f,onClick:qt(n.onClick,s.onOpenToggle)});return s.hasCustomAnchor?h:x.jsx(rx,{asChild:!0,...u,children:h})});ux.displayName=sx;var mh="PopoverPortal",[QN,ZN]=lx(mh,{forceMount:void 0}),cx=n=>{const{__scopePopover:a,forceMount:l,children:i,container:s}=n,u=Wa(mh,a);return x.jsx(QN,{scope:a,forceMount:l,children:x.jsx(ql,{present:l||u.open,children:x.jsx(Xd,{asChild:!0,container:s,children:i})})})};cx.displayName=mh;var $l="PopoverContent",fx=v.forwardRef((n,a)=>{const l=ZN($l,n.__scopePopover),{forceMount:i=l.forceMount,...s}=n,u=Wa($l,n.__scopePopover);return x.jsx(ql,{present:i||u.open,children:u.modal?x.jsx(WN,{...s,ref:a}):x.jsx(IN,{...s,ref:a})})});fx.displayName=$l;var JN=wu("PopoverContent.RemoveScroll"),WN=v.forwardRef((n,a)=>{const l=Wa($l,n.__scopePopover),i=v.useRef(null),s=ln(a,i),u=v.useRef(!1);return v.useEffect(()=>{const f=i.current;if(f)return E0(f)},[]),x.jsx(Qd,{as:JN,allowPinchZoom:!0,children:x.jsx(dx,{...n,ref:s,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:qt(n.onCloseAutoFocus,f=>{f.preventDefault(),u.current||l.triggerRef.current?.focus()}),onPointerDownOutside:qt(n.onPointerDownOutside,f=>{const h=f.detail.originalEvent,p=h.button===0&&h.ctrlKey===!0,m=h.button===2||p;u.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:qt(n.onFocusOutside,f=>f.preventDefault(),{checkForDefaultPrevented:!1})})})}),IN=v.forwardRef((n,a)=>{const l=Wa($l,n.__scopePopover),i=v.useRef(!1),s=v.useRef(!1);return x.jsx(dx,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{n.onCloseAutoFocus?.(u),u.defaultPrevented||(i.current||l.triggerRef.current?.focus(),u.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:u=>{n.onInteractOutside?.(u),u.defaultPrevented||(i.current=!0,u.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const f=u.target;l.triggerRef.current?.contains(f)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&s.current&&u.preventDefault()}})}),dx=v.forwardRef((n,a)=>{const{__scopePopover:l,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:u,disableOutsidePointerEvents:f,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:g,...b}=n,S=Wa($l,l),E=yo(l);return m0(),x.jsx(Fd,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:u,children:x.jsx(Kd,{asChild:!0,disableOutsidePointerEvents:f,onInteractOutside:g,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:m,onDismiss:()=>S.onOpenChange(!1),children:x.jsx(GN,{"data-state":mx(S.open),role:"dialog",id:S.contentId,...E,...b,ref:a,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),hx="PopoverClose",eT=v.forwardRef((n,a)=>{const{__scopePopover:l,...i}=n,s=Wa(hx,l);return x.jsx(at.button,{type:"button",...i,ref:a,onClick:qt(n.onClick,()=>s.onOpenChange(!1))})});eT.displayName=hx;var tT="PopoverArrow",nT=v.forwardRef((n,a)=>{const{__scopePopover:l,...i}=n,s=yo(l);return x.jsx(KN,{...s,...i,ref:a})});nT.displayName=tT;function mx(n){return n?"open":"closed"}var aT=ix,rT=ux,lT=cx,iT=fx;function ph({...n}){return x.jsx(aT,{"data-slot":"popover",...n})}function gh({...n}){return x.jsx(rT,{"data-slot":"popover-trigger",...n})}function vh({className:n,align:a="center",sideOffset:l=4,...i}){return x.jsx(lT,{children:x.jsx(iT,{"data-slot":"popover-content",align:a,sideOffset:l,className:nt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden animate-fade-in",n),...i})})}function Rr({options:n,value:a,onChange:l,placeholder:i="Select an option...",searchPlaceholder:s="Search...",emptyPlaceholder:u="No options found."}){const[f,h]=v.useState(!1),p=n.find(m=>m.value===a);return x.jsxs(ph,{open:f,onOpenChange:h,children:[x.jsx(gh,{asChild:!0,children:x.jsxs($e,{variant:"outline",role:"combobox","aria-expanded":f,className:"w-full justify-between transition-all-ease hover:scale-[1.02] active:scale-[0.98]",children:[p?p.label:i,x.jsx(G0,{className:"ml-2 h-4 w-4 shrink-0 opacity-50 transition-transform duration-200 group-data-[state=open]:rotate-180"})]})}),x.jsx(vh,{className:"w-[--radix-popover-trigger-width] p-0 animate-fade-in",children:x.jsxs(Mb,{children:[x.jsx(jb,{placeholder:s}),x.jsxs(Db,{children:[x.jsx(_b,{children:u}),x.jsx(Lb,{children:n.map(m=>x.jsxs(zb,{value:m.value,onSelect:g=>{l(g===a?"":g),h(!1)},className:"transition-all-ease hover:bg-accent hover:text-accent-foreground",children:[x.jsx(Y0,{className:nt("mr-2 h-4 w-4 transition-opacity",a===m.value?"opacity-100":"opacity-0")}),m.label]},m.value))})]})]})})]})}const oT=v.forwardRef(({options:n,value:a,onChange:l,onEnter:i,searchPlaceholder:s="Search...",emptyPlaceholder:u="No options found.",inputPlaceholder:f="Type or select..."},h)=>{const[p,m]=v.useState(!1),[g,b]=v.useState(a||""),S=v.useRef(null);v.useImperativeHandle(h,()=>S.current),v.useEffect(()=>{b(a||"")},[a]);const E=N=>{const P=N.target.value;b(P),l(P)},A=N=>{N.key==="Enter"&&g.trim()&&i&&(i(g.trim()),b(""))},O=N=>{b(N),l(N),i&&(i(N),b("")),m(!1)},_=()=>g;return v.useImperativeHandle(h,()=>({...S.current,value:g,getCurrentValue:_,clearInput:()=>{b(""),l("")}})),x.jsxs("div",{className:"relative",children:[x.jsx(Ct,{ref:S,value:g,onChange:E,onKeyDown:A,placeholder:f,className:"pr-10"}),x.jsxs(ph,{open:p,onOpenChange:m,children:[x.jsx(gh,{asChild:!0,children:x.jsx($e,{variant:"ghost",size:"sm",className:"absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent",children:x.jsx(G0,{className:"h-4 w-4 opacity-50"})})}),x.jsx(vh,{className:"w-[--radix-popover-trigger-width] p-0 animate-fade-in",children:x.jsxs(Mb,{children:[x.jsx(jb,{placeholder:s}),x.jsxs(Db,{children:[x.jsx(_b,{children:u}),x.jsx(Lb,{children:n.map(N=>x.jsxs(zb,{value:N.value,onSelect:()=>O(N.value),className:"transition-all-ease hover:bg-accent hover:text-accent-foreground",children:[x.jsx(Y0,{className:nt("mr-2 h-4 w-4 transition-opacity",a===N.value?"opacity-100":"opacity-0")}),N.label]},N.value))})]})]})})]})]})});function sT(){const{t:n}=Dr(),{config:a,setConfig:l}=Kl(),[i,s]=v.useState(null),[u,f]=v.useState(null),[h,p]=v.useState({}),[m,g]=v.useState({}),[b,S]=v.useState({}),[E,A]=v.useState([]),O=v.useRef(null);if(v.useEffect(()=>{(async()=>{try{const z=await an.get("/transformers");A(z.transformers)}catch(z){console.error("Failed to fetch transformers:",z)}})()},[]),!a)return null;const _=()=>{const R=[...a.Providers,{name:"",api_base_url:"",api_key:"",models:[]}];l({...a,Providers:R}),s(R.length-1)},N=()=>{s(null)},P=()=>{if(i!==null&&i===a.Providers.length-1){const R=[...a.Providers];R.pop(),l({...a,Providers:R})}i!==null&&p(R=>{const z={...R};return delete z[i],z}),s(null)},H=R=>{const z=[...a.Providers];z.splice(R,1),l({...a,Providers:z}),f(null)},K=(R,z,D)=>{const Z=[...a.Providers];Z[R][z]=D,l({...a,Providers:Z})},V=(R,z)=>{if(!z)return;const D=[...a.Providers];D[R].transformer||(D[R].transformer={use:[]}),D[R].transformer.use=[...D[R].transformer.use,z],l({...a,Providers:D})},T=(R,z)=>{const D=[...a.Providers];if(D[R].transformer){const Z=[...D[R].transformer.use];Z.splice(z,1),D[R].transformer.use=Z,Z.length===0&&Object.keys(D[R].transformer).length===1&&delete D[R].transformer}l({...a,Providers:D})},F=(R,z,D)=>{if(!D)return;const Z=[...a.Providers];Z[R].transformer||(Z[R].transformer={use:[]}),Z[R].transformer[z]||(Z[R].transformer[z]={use:[]}),Z[R].transformer[z].use=[...Z[R].transformer[z].use,D],l({...a,Providers:Z})},W=(R,z,D)=>{const Z=[...a.Providers];if(Z[R].transformer&&Z[R].transformer[z]){const C=[...Z[R].transformer[z].use];C.splice(D,1),Z[R].transformer[z].use=C,C.length===0&&Object.keys(Z[R].transformer[z]).length===1&&delete Z[R].transformer[z]}l({...a,Providers:Z})},re=(R,z,D,Z)=>{const C=[...a.Providers];if(C[R].transformer||(C[R].transformer={use:[]}),C[R].transformer.use&&C[R].transformer.use.length>z){const U=C[R].transformer.use[z];if(Array.isArray(U)){const j=[...U];if(j.length>1&&typeof j[1]=="object"&&j[1]!==null){const I={...j[1],[D]:Z};j[1]=I}else if(j.length>1){const $={[D]:Z};j.splice(1,j.length-1,$)}else{const $={[D]:Z};j.push($)}C[R].transformer.use[z]=j}else{const j={[D]:Z};C[R].transformer.use[z]=[U,j]}}l({...a,Providers:C})},oe=(R,z,D)=>{const Z=[...a.Providers];if(!Z[R].transformer?.use||Z[R].transformer.use.length<=z)return;const C=Z[R].transformer.use[z];if(Array.isArray(C)&&C.length>1){const U=[...C];if(typeof U[1]=="object"&&U[1]!==null){const j={...U[1]};delete j[D],Object.keys(j).length===0?U.splice(1,1):U[1]=j,Z[R].transformer.use[z]=U,l({...a,Providers:Z})}}},Re=(R,z,D,Z,C)=>{const U=[...a.Providers];if(U[R].transformer||(U[R].transformer={use:[]}),U[R].transformer[z]||(U[R].transformer[z]={use:[]}),U[R].transformer[z].use&&U[R].transformer[z].use.length>D){const j=U[R].transformer[z].use[D];if(Array.isArray(j)){const $=[...j];if($.length>1&&typeof $[1]=="object"&&$[1]!==null){const ie={...$[1],[Z]:C};$[1]=ie}else if($.length>1){const I={[Z]:C};$.splice(1,$.length-1,I)}else{const I={[Z]:C};$.push(I)}U[R].transformer[z].use[D]=$}else{const $={[Z]:C};U[R].transformer[z].use[D]=[j,$]}}l({...a,Providers:U})},xe=(R,z,D,Z)=>{const C=[...a.Providers];if(!C[R].transformer?.[z]?.use||C[R].transformer[z].use.length<=D)return;const U=C[R].transformer[z].use[D];if(Array.isArray(U)&&U.length>1){const j=[...U];if(typeof j[1]=="object"&&j[1]!==null){const $={...j[1]};delete $[Z],Object.keys($).length===0?j.splice(1,1):j[1]=$,C[R].transformer[z].use[D]=j,l({...a,Providers:C})}}},fe=(R,z)=>{if(!z.trim())return;const D=[...a.Providers],Z=[...D[R].models];Z.includes(z.trim())||(Z.push(z.trim()),D[R].models=Z,l({...a,Providers:D}))},ue=(R,z)=>{const D=[...a.Providers],Z=[...D[R].models];Z.splice(z,1),D[R].models=Z,l({...a,Providers:D})},le=i!==null?a.Providers[i]:null;return x.jsxs(kl,{className:"flex h-full flex-col rounded-lg border shadow-sm",children:[x.jsxs(Ul,{className:"flex flex-row items-center justify-between border-b p-4",children:[x.jsxs(Pl,{className:"text-lg",children:[n("providers.title")," ",x.jsxs("span",{className:"text-sm font-normal text-gray-500",children:["(",a.Providers.length,")"]})]}),x.jsx($e,{onClick:_,children:n("providers.add")})]}),x.jsx(Hl,{className:"flex-grow overflow-y-auto p-4",children:x.jsx(tA,{providers:a.Providers,onEdit:s,onRemove:f})}),x.jsx(so,{open:i!==null,onOpenChange:R=>{R||P()},children:x.jsxs(_l,{className:"max-h-[80vh] flex flex-col sm:max-w-2xl",children:[x.jsx(Ll,{children:x.jsx(zl,{children:n("providers.edit")})}),le&&i!==null&&x.jsxs("div",{className:"space-y-4 p-4 overflow-y-auto flex-grow",children:[x.jsxs("div",{className:"space-y-2",children:[x.jsx(dt,{htmlFor:"name",children:n("providers.name")}),x.jsx(Ct,{id:"name",value:le.name,onChange:R=>K(i,"name",R.target.value)})]}),x.jsxs("div",{className:"space-y-2",children:[x.jsx(dt,{htmlFor:"api_base_url",children:n("providers.api_base_url")}),x.jsx(Ct,{id:"api_base_url",value:le.api_base_url,onChange:R=>K(i,"api_base_url",R.target.value)})]}),x.jsxs("div",{className:"space-y-2",children:[x.jsx(dt,{htmlFor:"api_key",children:n("providers.api_key")}),x.jsx(Ct,{id:"api_key",type:"password",value:le.api_key,onChange:R=>K(i,"api_key",R.target.value)})]}),x.jsxs("div",{className:"space-y-2",children:[x.jsx(dt,{htmlFor:"models",children:n("providers.models")}),x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"flex gap-2",children:[x.jsx("div",{className:"flex-1",children:h[i]?x.jsx(oT,{ref:O,options:le.models.map(R=>({label:R,value:R})),value:"",onChange:R=>{},onEnter:R=>{i!==null&&fe(i,R)},inputPlaceholder:n("providers.models_placeholder")}):x.jsx(Ct,{id:"models",placeholder:n("providers.models_placeholder"),onKeyDown:R=>{R.key==="Enter"&&R.currentTarget.value.trim()&&i!==null&&(fe(i,R.currentTarget.value),R.currentTarget.value="")}})}),x.jsx($e,{onClick:()=>{if(h[i]&&O.current){const R=O.current,z=R.getCurrentValue();z&&z.trim()&&i!==null&&(fe(i,z.trim()),R.clearInput())}else{const R=document.getElementById("models");R&&R.value.trim()&&i!==null&&(fe(i,R.value),R.value="")}},children:n("providers.add_model")})]}),x.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:le.models.map((R,z)=>x.jsxs(Sb,{variant:"outline",className:"font-normal flex items-center gap-1",children:[R,x.jsx("button",{type:"button",className:"ml-1 rounded-full hover:bg-gray-200",onClick:()=>i!==null&&ue(i,z),children:x.jsx(Ml,{className:"h-3 w-3"})})]},z))})]})]}),x.jsxs("div",{className:"space-y-2",children:[x.jsx(dt,{children:n("providers.provider_transformer")}),x.jsx("div",{className:"flex gap-2",children:x.jsx(Rr,{options:E.map(R=>({label:R.name,value:R.name})),value:"",onChange:R=>{i!==null&&V(i,R)},placeholder:n("providers.select_transformer"),emptyPlaceholder:n("providers.no_transformers")})}),le.transformer?.use&&le.transformer.use.length>0&&x.jsxs("div",{className:"space-y-2 mt-2",children:[x.jsx("div",{className:"text-sm font-medium text-gray-700",children:n("providers.selected_transformers")}),le.transformer.use.map((R,z)=>x.jsxs("div",{className:"border rounded-md p-3",children:[x.jsxs("div",{className:"flex gap-2 items-center mb-2",children:[x.jsx("div",{className:"flex-1 bg-gray-50 rounded p-2 text-sm",children:typeof R=="string"?R:Array.isArray(R)?String(R[0]):String(R)}),x.jsx($e,{variant:"outline",size:"icon",onClick:()=>{i!==null&&T(i,z)},children:x.jsx(oo,{className:"h-4 w-4"})})]}),x.jsxs("div",{className:"mt-2 pl-4 border-l-2 border-gray-200",children:[x.jsx(dt,{className:"text-sm",children:n("providers.transformer_parameters")}),x.jsxs("div",{className:"space-y-2 mt-1",children:[x.jsxs("div",{className:"flex gap-2",children:[x.jsx(Ct,{placeholder:n("providers.parameter_name"),value:m[`provider-${i}-transformer-${z}`]?.name||"",onChange:D=>{const Z=`provider-${i}-transformer-${z}`;g(C=>({...C,[Z]:{...C[Z]||{name:"",value:""},name:D.target.value}}))}}),x.jsx(Ct,{placeholder:n("providers.parameter_value"),value:m[`provider-${i}-transformer-${z}`]?.value||"",onChange:D=>{const Z=`provider-${i}-transformer-${z}`;g(C=>({...C,[Z]:{...C[Z]||{name:"",value:""},value:D.target.value}}))}}),x.jsx($e,{size:"sm",onClick:()=>{if(i!==null){const D=`provider-${i}-transformer-${z}`,Z=m[D];Z&&Z.name&&Z.value&&(re(i,z,Z.name,Z.value),g(C=>({...C,[D]:{name:"",value:""}})))}},children:x.jsx(Ad,{className:"h-4 w-4"})})]}),(()=>{if(!le.transformer?.use||le.transformer.use.length<=z)return null;const D=le.transformer.use[z];let Z={};return Array.isArray(D)&&D.length>1&&typeof D[1]=="object"&&D[1]!==null&&(Z=D[1]),Object.keys(Z).length>0?x.jsx("div",{className:"space-y-1",children:Object.entries(Z).map(([C,U])=>x.jsxs("div",{className:"flex items-center justify-between bg-gray-50 rounded p-2",children:[x.jsxs("div",{className:"text-sm",children:[x.jsxs("span",{className:"font-medium",children:[C,":"]})," ",String(U)]}),x.jsx($e,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>{i!==null&&oe(i,z,C)},children:x.jsx(Ml,{className:"h-3 w-3"})})]},C))}):null})()]})]})]},z))]})]}),le.models.length>0&&x.jsxs("div",{className:"space-y-2",children:[x.jsx(dt,{children:n("providers.model_transformers")}),x.jsx("div",{className:"space-y-3",children:le.models.map((R,z)=>x.jsxs("div",{className:"border rounded-md p-3",children:[x.jsx("div",{className:"font-medium text-sm mb-2",children:R}),x.jsx("div",{className:"flex gap-2",children:x.jsx("div",{className:"flex-1 flex gap-2",children:x.jsx(Rr,{options:E.map(D=>({label:D.name,value:D.name})),value:"",onChange:D=>{i!==null&&F(i,R,D)},placeholder:n("providers.select_transformer"),emptyPlaceholder:n("providers.no_transformers")})})}),le.transformer?.[R]?.use&&le.transformer[R].use.length>0&&x.jsxs("div",{className:"space-y-2 mt-2",children:[x.jsx("div",{className:"text-sm font-medium text-gray-700",children:n("providers.selected_transformers")}),le.transformer[R].use.map((D,Z)=>x.jsxs("div",{className:"border rounded-md p-3",children:[x.jsxs("div",{className:"flex gap-2 items-center mb-2",children:[x.jsx("div",{className:"flex-1 bg-gray-50 rounded p-2 text-sm",children:typeof D=="string"?D:Array.isArray(D)?String(D[0]):String(D)}),x.jsx($e,{variant:"outline",size:"icon",onClick:()=>{i!==null&&W(i,R,Z)},children:x.jsx(oo,{className:"h-4 w-4"})})]}),x.jsxs("div",{className:"mt-2 pl-4 border-l-2 border-gray-200",children:[x.jsx(dt,{className:"text-sm",children:n("providers.transformer_parameters")}),x.jsxs("div",{className:"space-y-2 mt-1",children:[x.jsxs("div",{className:"flex gap-2",children:[x.jsx(Ct,{placeholder:n("providers.parameter_name"),value:b[`model-${i}-${R}-transformer-${Z}`]?.name||"",onChange:C=>{const U=`model-${i}-${R}-transformer-${Z}`;S(j=>({...j,[U]:{...j[U]||{name:"",value:""},name:C.target.value}}))}}),x.jsx(Ct,{placeholder:n("providers.parameter_value"),value:b[`model-${i}-${R}-transformer-${Z}`]?.value||"",onChange:C=>{const U=`model-${i}-${R}-transformer-${Z}`;S(j=>({...j,[U]:{...j[U]||{name:"",value:""},value:C.target.value}}))}}),x.jsx($e,{size:"sm",onClick:()=>{if(i!==null){const C=`model-${i}-${R}-transformer-${Z}`,U=b[C];U&&U.name&&U.value&&(Re(i,R,Z,U.name,U.value),S(j=>({...j,[C]:{name:"",value:""}})))}},children:x.jsx(Ad,{className:"h-4 w-4"})})]}),(()=>{if(!le.transformer?.[R]?.use||le.transformer[R].use.length<=Z)return null;const C=le.transformer[R].use[Z];let U={};return Array.isArray(C)&&C.length>1&&typeof C[1]=="object"&&C[1]!==null&&(U=C[1]),Object.keys(U).length>0?x.jsx("div",{className:"space-y-1",children:Object.entries(U).map(([j,$])=>x.jsxs("div",{className:"flex items-center justify-between bg-gray-50 rounded p-2",children:[x.jsxs("div",{className:"text-sm",children:[x.jsxs("span",{className:"font-medium",children:[j,":"]})," ",String($)]}),x.jsx($e,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>{i!==null&&xe(i,R,Z,j)},children:x.jsx(Ml,{className:"h-3 w-3"})})]},j))}):null})()]})]})]},Z))]})]},z))})]})]}),x.jsx("div",{className:"space-y-3 mt-auto",children:x.jsx("div",{className:"flex justify-end gap-2",children:x.jsx($e,{onClick:N,children:n("app.save")})})})]})}),x.jsx(so,{open:u!==null,onOpenChange:()=>f(null),children:x.jsxs(_l,{children:[x.jsxs(Ll,{children:[x.jsx(zl,{children:n("providers.delete")}),x.jsx(nh,{children:n("providers.delete_provider_confirm")})]}),x.jsxs(uo,{children:[x.jsx($e,{variant:"outline",onClick:()=>f(null),children:n("providers.cancel")}),x.jsx($e,{variant:"destructive",onClick:()=>u!==null&&H(u),children:n("providers.delete")})]})]})})]})}function uT(){const{t:n}=Dr(),{config:a,setConfig:l}=Kl();if(!a)return null;const i=(u,f)=>{const h={...a.Router,[u]:f};l({...a,Router:h})},s=a.Providers.flatMap(u=>u.models.map(f=>({value:`${u.name},${f}`,label:`${u.name}, ${f}`})));return x.jsxs(kl,{className:"flex h-full flex-col rounded-lg border shadow-sm",children:[x.jsx(Ul,{className:"border-b p-4",children:x.jsx(Pl,{className:"text-lg",children:n("router.title")})}),x.jsxs(Hl,{className:"flex-grow space-y-5 overflow-y-auto p-4",children:[x.jsxs("div",{className:"space-y-2",children:[x.jsx(dt,{children:n("router.default")}),x.jsx(Rr,{options:s,value:a.Router.default,onChange:u=>i("default",u),placeholder:n("router.selectModel"),searchPlaceholder:n("router.searchModel"),emptyPlaceholder:n("router.noModelFound")})]}),x.jsxs("div",{className:"space-y-2",children:[x.jsx(dt,{children:n("router.background")}),x.jsx(Rr,{options:s,value:a.Router.background,onChange:u=>i("background",u),placeholder:n("router.selectModel"),searchPlaceholder:n("router.searchModel"),emptyPlaceholder:n("router.noModelFound")})]}),x.jsxs("div",{className:"space-y-2",children:[x.jsx(dt,{children:n("router.think")}),x.jsx(Rr,{options:s,value:a.Router.think,onChange:u=>i("think",u),placeholder:n("router.selectModel"),searchPlaceholder:n("router.searchModel"),emptyPlaceholder:n("router.noModelFound")})]}),x.jsxs("div",{className:"space-y-2",children:[x.jsx(dt,{children:n("router.longContext")}),x.jsx(Rr,{options:s,value:a.Router.longContext,onChange:u=>i("longContext",u),placeholder:n("router.selectModel"),searchPlaceholder:n("router.searchModel"),emptyPlaceholder:n("router.noModelFound")})]}),x.jsxs("div",{className:"space-y-2",children:[x.jsx(dt,{children:n("router.webSearch")}),x.jsx(Rr,{options:s,value:a.Router.webSearch,onChange:u=>i("webSearch",u),placeholder:n("router.selectModel"),searchPlaceholder:n("router.searchModel"),emptyPlaceholder:n("router.noModelFound")})]})]})]})}function cT(n,a,l){return a in n?Object.defineProperty(n,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[a]=l,n}function Ry(n,a){var l=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);a&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable})),l.push.apply(l,i)}return l}function Cy(n){for(var a=1;a<arguments.length;a++){var l=arguments[a]!=null?arguments[a]:{};a%2?Ry(Object(l),!0).forEach(function(i){cT(n,i,l[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(l)):Ry(Object(l)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(l,i))})}return n}function fT(n,a){if(n==null)return{};var l={},i=Object.keys(n),s,u;for(u=0;u<i.length;u++)s=i[u],!(a.indexOf(s)>=0)&&(l[s]=n[s]);return l}function dT(n,a){if(n==null)return{};var l=fT(n,a),i,s;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);for(s=0;s<u.length;s++)i=u[s],!(a.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(l[i]=n[i])}return l}function hT(n,a){return mT(n)||pT(n,a)||gT(n,a)||vT()}function mT(n){if(Array.isArray(n))return n}function pT(n,a){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(n)))){var l=[],i=!0,s=!1,u=void 0;try{for(var f=n[Symbol.iterator](),h;!(i=(h=f.next()).done)&&(l.push(h.value),!(a&&l.length===a));i=!0);}catch(p){s=!0,u=p}finally{try{!i&&f.return!=null&&f.return()}finally{if(s)throw u}}return l}}function gT(n,a){if(n){if(typeof n=="string")return Oy(n,a);var l=Object.prototype.toString.call(n).slice(8,-1);if(l==="Object"&&n.constructor&&(l=n.constructor.name),l==="Map"||l==="Set")return Array.from(n);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Oy(n,a)}}function Oy(n,a){(a==null||a>n.length)&&(a=n.length);for(var l=0,i=new Array(a);l<a;l++)i[l]=n[l];return i}function vT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
208
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yT(n,a,l){return a in n?Object.defineProperty(n,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[a]=l,n}function Ay(n,a){var l=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);a&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable})),l.push.apply(l,i)}return l}function Ny(n){for(var a=1;a<arguments.length;a++){var l=arguments[a]!=null?arguments[a]:{};a%2?Ay(Object(l),!0).forEach(function(i){yT(n,i,l[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(l)):Ay(Object(l)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(l,i))})}return n}function bT(){for(var n=arguments.length,a=new Array(n),l=0;l<n;l++)a[l]=arguments[l];return function(i){return a.reduceRight(function(s,u){return u(s)},i)}}function eo(n){return function a(){for(var l=this,i=arguments.length,s=new Array(i),u=0;u<i;u++)s[u]=arguments[u];return s.length>=n.length?n.apply(this,s):function(){for(var f=arguments.length,h=new Array(f),p=0;p<f;p++)h[p]=arguments[p];return a.apply(l,[].concat(s,h))}}}function hu(n){return{}.toString.call(n).includes("Object")}function xT(n){return!Object.keys(n).length}function ho(n){return typeof n=="function"}function ST(n,a){return Object.prototype.hasOwnProperty.call(n,a)}function wT(n,a){return hu(a)||Ga("changeType"),Object.keys(a).some(function(l){return!ST(n,l)})&&Ga("changeField"),a}function ET(n){ho(n)||Ga("selectorType")}function RT(n){ho(n)||hu(n)||Ga("handlerType"),hu(n)&&Object.values(n).some(function(a){return!ho(a)})&&Ga("handlersType")}function CT(n){n||Ga("initialIsRequired"),hu(n)||Ga("initialType"),xT(n)&&Ga("initialContent")}function OT(n,a){throw new Error(n[a]||n.default)}var AT={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Ga=eo(OT)(AT),Xs={changes:wT,selector:ET,handler:RT,initial:CT};function NT(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Xs.initial(n),Xs.handler(a);var l={current:n},i=eo(jT)(l,a),s=eo(MT)(l),u=eo(Xs.changes)(n),f=eo(TT)(l);function h(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(g){return g};return Xs.selector(m),m(l.current)}function p(m){bT(i,s,u,f)(m)}return[h,p]}function TT(n,a){return ho(a)?a(n.current):a}function MT(n,a){return n.current=Ny(Ny({},n.current),a),a}function jT(n,a,l){return ho(a)?a(n.current):Object.keys(l).forEach(function(i){var s;return(s=a[i])===null||s===void 0?void 0:s.call(a,n.current[i])}),l}var DT={create:NT},_T={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function LT(n){return function a(){for(var l=this,i=arguments.length,s=new Array(i),u=0;u<i;u++)s[u]=arguments[u];return s.length>=n.length?n.apply(this,s):function(){for(var f=arguments.length,h=new Array(f),p=0;p<f;p++)h[p]=arguments[p];return a.apply(l,[].concat(s,h))}}}function zT(n){return{}.toString.call(n).includes("Object")}function kT(n){return n||Ty("configIsRequired"),zT(n)||Ty("configType"),n.urls?(UT(),{paths:{vs:n.urls.monacoBase}}):n}function UT(){console.warn(px.deprecation)}function PT(n,a){throw new Error(n[a]||n.default)}var px={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
209
|
+
You are using deprecated way of configuration.
|
|
210
|
+
|
|
211
|
+
Instead of using
|
|
212
|
+
monaco.config({ urls: { monacoBase: '...' } })
|
|
213
|
+
use
|
|
214
|
+
monaco.config({ paths: { vs: '...' } })
|
|
215
|
+
|
|
216
|
+
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
217
|
+
`},Ty=LT(PT)(px),HT={config:kT},BT=function(){for(var a=arguments.length,l=new Array(a),i=0;i<a;i++)l[i]=arguments[i];return function(s){return l.reduceRight(function(u,f){return f(u)},s)}};function gx(n,a){return Object.keys(a).forEach(function(l){a[l]instanceof Object&&n[l]&&Object.assign(a[l],gx(n[l],a[l]))}),Cy(Cy({},n),a)}var $T={type:"cancelation",msg:"operation is manually canceled"};function dd(n){var a=!1,l=new Promise(function(i,s){n.then(function(u){return a?s($T):i(u)}),n.catch(s)});return l.cancel=function(){return a=!0},l}var VT=DT.create({config:_T,isInitialized:!1,resolve:null,reject:null,monaco:null}),vx=hT(VT,2),bo=vx[0],ju=vx[1];function qT(n){var a=HT.config(n),l=a.monaco,i=dT(a,["monaco"]);ju(function(s){return{config:gx(s.config,i),monaco:l}})}function YT(){var n=bo(function(a){var l=a.monaco,i=a.isInitialized,s=a.resolve;return{monaco:l,isInitialized:i,resolve:s}});if(!n.isInitialized){if(ju({isInitialized:!0}),n.monaco)return n.resolve(n.monaco),dd(hd);if(window.monaco&&window.monaco.editor)return yx(window.monaco),n.resolve(window.monaco),dd(hd);BT(GT,FT)(XT)}return dd(hd)}function GT(n){return document.body.appendChild(n)}function KT(n){var a=document.createElement("script");return n&&(a.src=n),a}function FT(n){var a=bo(function(i){var s=i.config,u=i.reject;return{config:s,reject:u}}),l=KT("".concat(a.config.paths.vs,"/loader.js"));return l.onload=function(){return n()},l.onerror=a.reject,l}function XT(){var n=bo(function(l){var i=l.config,s=l.resolve,u=l.reject;return{config:i,resolve:s,reject:u}}),a=window.require;a.config(n.config),a(["vs/editor/editor.main"],function(l){yx(l),n.resolve(l)},function(l){n.reject(l)})}function yx(n){bo().monaco||ju({monaco:n})}function QT(){return bo(function(n){var a=n.monaco;return a})}var hd=new Promise(function(n,a){return ju({resolve:n,reject:a})}),bx={config:qT,init:YT,__getMonacoInstance:QT},ZT={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},md=ZT,JT={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},WT=JT;function IT({children:n}){return Or.createElement("div",{style:WT.container},n)}var eM=IT,tM=eM;function nM({width:n,height:a,isEditorReady:l,loading:i,_ref:s,className:u,wrapperProps:f}){return Or.createElement("section",{style:{...md.wrapper,width:n,height:a},...f},!l&&Or.createElement(tM,null,i),Or.createElement("div",{ref:s,style:{...md.fullWidth,...!l&&md.hide},className:u}))}var aM=nM,xx=v.memo(aM);function rM(n){v.useEffect(n,[])}var Sx=rM;function lM(n,a,l=!0){let i=v.useRef(!0);v.useEffect(i.current||!l?()=>{i.current=!1}:n,a)}var tn=lM;function no(){}function Al(n,a,l,i){return iM(n,i)||oM(n,a,l,i)}function iM(n,a){return n.editor.getModel(wx(n,a))}function oM(n,a,l,i){return n.editor.createModel(a,l,i?wx(n,i):void 0)}function wx(n,a){return n.Uri.parse(a)}function sM({original:n,modified:a,language:l,originalLanguage:i,modifiedLanguage:s,originalModelPath:u,modifiedModelPath:f,keepCurrentOriginalModel:h=!1,keepCurrentModifiedModel:p=!1,theme:m="light",loading:g="Loading...",options:b={},height:S="100%",width:E="100%",className:A,wrapperProps:O={},beforeMount:_=no,onMount:N=no}){let[P,H]=v.useState(!1),[K,V]=v.useState(!0),T=v.useRef(null),F=v.useRef(null),W=v.useRef(null),re=v.useRef(N),oe=v.useRef(_),Re=v.useRef(!1);Sx(()=>{let le=bx.init();return le.then(R=>(F.current=R)&&V(!1)).catch(R=>R?.type!=="cancelation"&&console.error("Monaco initialization: error:",R)),()=>T.current?ue():le.cancel()}),tn(()=>{if(T.current&&F.current){let le=T.current.getOriginalEditor(),R=Al(F.current,n||"",i||l||"text",u||"");R!==le.getModel()&&le.setModel(R)}},[u],P),tn(()=>{if(T.current&&F.current){let le=T.current.getModifiedEditor(),R=Al(F.current,a||"",s||l||"text",f||"");R!==le.getModel()&&le.setModel(R)}},[f],P),tn(()=>{let le=T.current.getModifiedEditor();le.getOption(F.current.editor.EditorOption.readOnly)?le.setValue(a||""):a!==le.getValue()&&(le.executeEdits("",[{range:le.getModel().getFullModelRange(),text:a||"",forceMoveMarkers:!0}]),le.pushUndoStop())},[a],P),tn(()=>{T.current?.getModel()?.original.setValue(n||"")},[n],P),tn(()=>{let{original:le,modified:R}=T.current.getModel();F.current.editor.setModelLanguage(le,i||l||"text"),F.current.editor.setModelLanguage(R,s||l||"text")},[l,i,s],P),tn(()=>{F.current?.editor.setTheme(m)},[m],P),tn(()=>{T.current?.updateOptions(b)},[b],P);let xe=v.useCallback(()=>{if(!F.current)return;oe.current(F.current);let le=Al(F.current,n||"",i||l||"text",u||""),R=Al(F.current,a||"",s||l||"text",f||"");T.current?.setModel({original:le,modified:R})},[l,a,s,n,i,u,f]),fe=v.useCallback(()=>{!Re.current&&W.current&&(T.current=F.current.editor.createDiffEditor(W.current,{automaticLayout:!0,...b}),xe(),F.current?.editor.setTheme(m),H(!0),Re.current=!0)},[b,m,xe]);v.useEffect(()=>{P&&re.current(T.current,F.current)},[P]),v.useEffect(()=>{!K&&!P&&fe()},[K,P,fe]);function ue(){let le=T.current?.getModel();h||le?.original?.dispose(),p||le?.modified?.dispose(),T.current?.dispose()}return Or.createElement(xx,{width:E,height:S,isEditorReady:P,loading:g,_ref:W,className:A,wrapperProps:O})}var uM=sM;v.memo(uM);function cM(n){let a=v.useRef();return v.useEffect(()=>{a.current=n},[n]),a.current}var fM=cM,Qs=new Map;function dM({defaultValue:n,defaultLanguage:a,defaultPath:l,value:i,language:s,path:u,theme:f="light",line:h,loading:p="Loading...",options:m={},overrideServices:g={},saveViewState:b=!0,keepCurrentModel:S=!1,width:E="100%",height:A="100%",className:O,wrapperProps:_={},beforeMount:N=no,onMount:P=no,onChange:H,onValidate:K=no}){let[V,T]=v.useState(!1),[F,W]=v.useState(!0),re=v.useRef(null),oe=v.useRef(null),Re=v.useRef(null),xe=v.useRef(P),fe=v.useRef(N),ue=v.useRef(),le=v.useRef(i),R=fM(u),z=v.useRef(!1),D=v.useRef(!1);Sx(()=>{let U=bx.init();return U.then(j=>(re.current=j)&&W(!1)).catch(j=>j?.type!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>oe.current?C():U.cancel()}),tn(()=>{let U=Al(re.current,n||i||"",a||s||"",u||l||"");U!==oe.current?.getModel()&&(b&&Qs.set(R,oe.current?.saveViewState()),oe.current?.setModel(U),b&&oe.current?.restoreViewState(Qs.get(u)))},[u],V),tn(()=>{oe.current?.updateOptions(m)},[m],V),tn(()=>{!oe.current||i===void 0||(oe.current.getOption(re.current.editor.EditorOption.readOnly)?oe.current.setValue(i):i!==oe.current.getValue()&&(D.current=!0,oe.current.executeEdits("",[{range:oe.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),oe.current.pushUndoStop(),D.current=!1))},[i],V),tn(()=>{let U=oe.current?.getModel();U&&s&&re.current?.editor.setModelLanguage(U,s)},[s],V),tn(()=>{h!==void 0&&oe.current?.revealLine(h)},[h],V),tn(()=>{re.current?.editor.setTheme(f)},[f],V);let Z=v.useCallback(()=>{if(!(!Re.current||!re.current)&&!z.current){fe.current(re.current);let U=u||l,j=Al(re.current,i||n||"",a||s||"",U||"");oe.current=re.current?.editor.create(Re.current,{model:j,automaticLayout:!0,...m},g),b&&oe.current.restoreViewState(Qs.get(U)),re.current.editor.setTheme(f),h!==void 0&&oe.current.revealLine(h),T(!0),z.current=!0}},[n,a,l,i,s,u,m,g,b,f,h]);v.useEffect(()=>{V&&xe.current(oe.current,re.current)},[V]),v.useEffect(()=>{!F&&!V&&Z()},[F,V,Z]),le.current=i,v.useEffect(()=>{V&&H&&(ue.current?.dispose(),ue.current=oe.current?.onDidChangeModelContent(U=>{D.current||H(oe.current.getValue(),U)}))},[V,H]),v.useEffect(()=>{if(V){let U=re.current.editor.onDidChangeMarkers(j=>{let $=oe.current.getModel()?.uri;if($&&j.find(I=>I.path===$.path)){let I=re.current.editor.getModelMarkers({resource:$});K?.(I)}});return()=>{U?.dispose()}}return()=>{}},[V,K]);function C(){ue.current?.dispose(),S?b&&Qs.set(u,oe.current.saveViewState()):oe.current.getModel()?.dispose(),oe.current.dispose()}return Or.createElement(xx,{width:E,height:A,isEditorReady:V,loading:p,_ref:Re,className:O,wrapperProps:_})}var hM=dM,mM=v.memo(hM),pM=mM;function gM({open:n,onOpenChange:a,showToast:l}){const{t:i}=Dr(),{config:s}=Kl(),[u,f]=v.useState(""),[h,p]=v.useState(!1),[m,g]=v.useState(!1),[b,S]=v.useState(!1),E=v.useRef(null);v.useEffect(()=>{s&&n&&f(JSON.stringify(s,null,2))},[s,n]),v.useEffect(()=>{if(n)g(!0),requestAnimationFrame(()=>{S(!0)});else{S(!1);const N=setTimeout(()=>{g(!1)},300);return()=>clearTimeout(N)}},[n]);const A=(N,P,H)=>{if(N&&typeof N=="object"&&"success"in N){const K=N;return K.success?(l&&l(K.message||P,"success"),!0):(l&&l(K.message||H,"error"),!1)}else return l&&l(P,"success"),!0},O=async()=>{if(u)try{p(!0);const N=JSON.parse(u),P=await an.updateConfig(N);A(P,i("app.config_saved_success"),i("app.config_saved_failed"))&&a(!1)}catch(N){console.error("Failed to save config:",N),l&&l(i("app.config_saved_failed")+": "+N.message,"error")}finally{p(!1)}},_=async()=>{if(u)try{p(!0);const N=JSON.parse(u),P=await an.updateConfig(N);if(A(P,i("app.config_saved_success"),i("app.config_saved_failed"))){const K=await an.restartService();A(K,i("app.config_saved_restart_success"),i("app.config_saved_restart_failed")),a(!1)}}catch(N){console.error("Failed to save config and restart:",N),l&&l(i("app.config_saved_restart_failed")+": "+N.message,"error")}finally{p(!1)}};return!m&&!n?null:x.jsxs(x.Fragment,{children:[(m||n)&&x.jsx("div",{className:`fixed inset-0 z-50 transition-all duration-300 ease-out ${b&&n?"bg-black/50 opacity-100":"bg-black/0 opacity-0 pointer-events-none"}`,onClick:()=>a(!1)}),x.jsxs("div",{ref:E,className:`fixed bottom-0 left-0 right-0 z-50 flex flex-col bg-white shadow-2xl transition-all duration-300 ease-out transform ${b&&n?"translate-y-0":"translate-y-full"}`,style:{height:"100vh",maxHeight:"100vh"},children:[x.jsxs("div",{className:"flex items-center justify-between border-b p-4",children:[x.jsx("h2",{className:"text-lg font-semibold",children:i("json_editor.title")}),x.jsxs("div",{className:"flex gap-2",children:[x.jsxs($e,{variant:"outline",size:"sm",onClick:()=>a(!1),disabled:h,children:[x.jsx(Ml,{className:"h-4 w-4 mr-2"}),i("json_editor.cancel")]}),x.jsxs($e,{variant:"outline",size:"sm",onClick:O,disabled:h,children:[x.jsx(X0,{className:"h-4 w-4 mr-2"}),i(h?"json_editor.saving":"json_editor.save")]}),x.jsxs($e,{variant:"default",size:"sm",onClick:_,disabled:h,children:[x.jsx(F0,{className:"h-4 w-4 mr-2"}),i(h?"json_editor.saving":"json_editor.save_and_restart")]})]})]}),x.jsx("div",{className:"flex-1 min-h-0 bg-gray-50",children:x.jsx(pM,{height:"100%",defaultLanguage:"json",value:u,onChange:N=>f(N||""),theme:"vs",options:{minimap:{enabled:!0},fontSize:14,scrollBeyondLastLine:!1,automaticLayout:!0,wordWrap:"on",formatOnPaste:!0,formatOnType:!0,suggest:{showKeywords:!0,showSnippets:!0}}})})]})]})}function vM({message:n,type:a,onClose:l}){v.useEffect(()=>{const u=setTimeout(()=>{l()},3e3);return()=>clearTimeout(u)},[l]);const i=()=>{switch(a){case"success":return x.jsx(V2,{className:"h-5 w-5 text-green-500"});case"error":return x.jsx(Y2,{className:"h-5 w-5 text-red-500"});case"warning":return x.jsx(B2,{className:"h-5 w-5 text-yellow-500"});default:return null}},s=()=>{switch(a){case"success":return"bg-green-100 border-green-200";case"error":return"bg-red-100 border-red-200";case"warning":return"bg-yellow-100 border-yellow-200";default:return"bg-gray-100 border-gray-200"}};return x.jsxs("div",{className:`fixed top-4 right-4 z-50 flex items-center justify-between p-4 rounded-lg border shadow-lg ${s()} transition-all duration-300 ease-in-out`,children:[x.jsxs("div",{className:"flex items-center space-x-2",children:[i(),x.jsx("span",{className:"text-sm font-medium",children:n})]}),x.jsx("button",{onClick:l,className:"ml-4 text-gray-500 hover:text-gray-700 focus:outline-none",children:x.jsx(Ml,{className:"h-4 w-4"})})]})}function yM(){const{t:n,i18n:a}=Dr(),l=yu(),{config:i,error:s}=Kl(),[u,f]=v.useState(!1),[h,p]=v.useState(!1),[m,g]=v.useState(!0),[b,S]=v.useState(null);v.useEffect(()=>{(async()=>{if(i){g(!1);return}if(!localStorage.getItem("apiKey")){g(!1);return}try{await an.getConfig()}catch(P){console.error("Error checking auth:",P),P.message==="Unauthorized"&&l("/login")}finally{g(!1)}})();const _=()=>{l("/login")};return window.addEventListener("unauthorized",_),()=>{window.removeEventListener("unauthorized",_)}},[i,l]);const E=async()=>{if(i)try{const O=await an.updateConfig(i);if(console.log("Config saved successfully"),O&&typeof O=="object"&&"success"in O){const _=O;_.success?S({message:_.message||n("app.config_saved_success"),type:"success"}):S({message:_.message||n("app.config_saved_failed"),type:"error"})}else S({message:n("app.config_saved_success"),type:"success"})}catch(O){console.error("Failed to save config:",O),S({message:n("app.config_saved_failed")+": "+O.message,type:"error"})}},A=async()=>{if(i)try{const O=await an.updateConfig(i);let _=!0;if(O&&typeof O=="object"&&"success"in O){const N=O;N.success||(_=!1,S({message:N.message||n("app.config_saved_failed"),type:"error"}))}if(_){const N=await an.restartService();if(console.log("Config saved and service restarted successfully"),N&&typeof N=="object"&&"success"in N){const P=N;P.success&&S({message:P.message||n("app.config_saved_restart_success"),type:"success"})}else S({message:n("app.config_saved_restart_success"),type:"success"})}}catch(O){console.error("Failed to save config and restart:",O),S({message:n("app.config_saved_restart_failed")+": "+O.message,type:"error"})}};return m?x.jsx("div",{children:"Loading..."}):s?x.jsxs("div",{children:["Error: ",s.message]}):i?x.jsxs("div",{className:"h-screen bg-gray-50 font-sans",children:[x.jsxs("header",{className:"flex h-16 items-center justify-between border-b bg-white px-6",children:[x.jsx("h1",{className:"text-xl font-semibold text-gray-800",children:n("app.title")}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx($e,{variant:"ghost",size:"icon",onClick:()=>f(!0),className:"transition-all-ease hover:scale-110",children:x.jsx(nO,{className:"h-5 w-5"})}),x.jsx($e,{variant:"ghost",size:"icon",onClick:()=>p(!0),className:"transition-all-ease hover:scale-110",children:x.jsx(K2,{className:"h-5 w-5"})}),x.jsxs(ph,{children:[x.jsx(gh,{asChild:!0,children:x.jsx($e,{variant:"ghost",size:"icon",className:"transition-all-ease hover:scale-110",children:x.jsx(X2,{className:"h-5 w-5"})})}),x.jsx(vh,{className:"w-32 p-2",children:x.jsxs("div",{className:"space-y-1",children:[x.jsx($e,{variant:a.language.startsWith("en")?"default":"ghost",className:"w-full justify-start transition-all-ease hover:scale-[1.02]",onClick:()=>a.changeLanguage("en"),children:"English"}),x.jsx($e,{variant:a.language.startsWith("zh")?"default":"ghost",className:"w-full justify-start transition-all-ease hover:scale-[1.02]",onClick:()=>a.changeLanguage("zh"),children:"中文"})]})})]}),x.jsxs($e,{onClick:E,variant:"outline",className:"transition-all-ease hover:scale-[1.02] active:scale-[0.98]",children:[x.jsx(X0,{className:"mr-2 h-4 w-4"}),n("app.save")]}),x.jsxs($e,{onClick:A,className:"transition-all-ease hover:scale-[1.02] active:scale-[0.98]",children:[x.jsx(F0,{className:"mr-2 h-4 w-4"}),n("app.save_and_restart")]})]})]}),x.jsxs("main",{className:"flex h-[calc(100vh-4rem)] gap-4 p-4",children:[x.jsx("div",{className:"w-3/5",children:x.jsx(sT,{})}),x.jsxs("div",{className:"flex w-2/5 flex-col gap-4",children:[x.jsx("div",{className:"h-3/5",children:x.jsx(uT,{})}),x.jsx("div",{className:"flex-1",children:x.jsx(IO,{})})]})]}),x.jsx(JO,{isOpen:u,onOpenChange:f}),x.jsx(gM,{open:h,onOpenChange:p,showToast:(O,_)=>S({message:O,type:_})}),b&&x.jsx(vM,{message:b.message,type:b.type,onClose:()=>S(null)})]}):x.jsx("div",{children:"Loading..."})}function bM(){const{t:n}=Dr(),a=yu(),[l,i]=v.useState(""),[s,u]=v.useState(""),[f,h]=v.useState(!1);v.useEffect(()=>{(async()=>{if(localStorage.getItem("apiKey")){h(!0);try{await an.getConfig(),a("/dashboard")}catch{localStorage.removeItem("apiKey")}finally{h(!1)}}})();const g=()=>{a("/login")};return window.addEventListener("unauthorized",g),()=>{window.removeEventListener("unauthorized",g)}},[a]);const p=async m=>{m.preventDefault();try{an.setApiKey(l),window.dispatchEvent(new StorageEvent("storage",{key:"apiKey",newValue:l,url:window.location.href})),l&&await an.getConfig(),a("/dashboard")}catch{an.setApiKey(""),u(n("login.invalidApiKey"))}};return f?x.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-50",children:x.jsxs(kl,{className:"w-full max-w-md",children:[x.jsx(Ul,{className:"space-y-1",children:x.jsx(Pl,{className:"text-2xl",children:n("login.title")})}),x.jsxs(Hl,{children:[x.jsx("div",{className:"flex justify-center py-8",children:x.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"})}),x.jsx("p",{className:"text-center text-sm text-gray-500",children:n("login.validating")})]})]})}):x.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-50",children:x.jsxs(kl,{className:"w-full max-w-md",children:[x.jsxs(Ul,{className:"space-y-1",children:[x.jsx(Pl,{className:"text-2xl",children:n("login.title")}),x.jsx(bb,{children:n("login.description")})]}),x.jsxs("form",{onSubmit:p,children:[x.jsxs(Hl,{className:"space-y-4",children:[x.jsxs("div",{className:"space-y-2",children:[x.jsx(dt,{htmlFor:"apiKey",children:n("login.apiKey")}),x.jsx(Ct,{id:"apiKey",type:"password",value:l,onChange:m=>i(m.target.value),placeholder:n("login.apiKeyPlaceholder")})]}),s&&x.jsx("div",{className:"text-sm text-red-500",children:s})]}),x.jsx(xb,{children:x.jsx($e,{className:"w-full",type:"submit",children:n("login.signIn")})})]})]})})}const xM=({children:n})=>n,SM=({children:n})=>n,wM=gR([{path:"/",element:x.jsx(SR,{to:"/dashboard",replace:!0})},{path:"/login",element:x.jsx(SM,{children:x.jsx(bM,{})})},{path:"/dashboard",element:x.jsx(xM,{children:x.jsx(yM,{})})}],{initialEntries:["/dashboard"]});Zw.createRoot(document.getElementById("root")).render(x.jsx(v.StrictMode,{children:x.jsx(ZO,{children:x.jsx(tC,{router:wM})})}));</script>
|
|
218
|
+
<style rel="stylesheet" crossorigin>/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-500:oklch(63.7% .237 25.331);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-500:oklch(79.5% .184 86.047);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-500:oklch(72.3% .219 149.579);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--tracking-widest:.1em;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-4{top:calc(var(--spacing)*4)}.top-\[50\%\]{top:50%}.right-0{right:calc(var(--spacing)*0)}.right-4{right:calc(var(--spacing)*4)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-\[50\%\]{left:50%}.z-50{z-index:50}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.inline-flex{display:inline-flex}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.h-3{height:calc(var(--spacing)*3)}.h-3\/5{height:60%}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-11{height:calc(var(--spacing)*11)}.h-16{height:calc(var(--spacing)*16)}.h-\[calc\(100vh-4rem\)\]{height:calc(100vh - 4rem)}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-96{max-height:calc(var(--spacing)*96)}.max-h-\[80vh\]{max-height:80vh}.max-h-\[300px\]{max-height:300px}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-screen{min-height:100vh}.w-2\/5{width:40%}.w-3{width:calc(var(--spacing)*3)}.w-3\/5{width:60%}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-11{width:calc(var(--spacing)*11)}.w-32{width:calc(var(--spacing)*32)}.w-72{width:calc(var(--spacing)*72)}.w-\[--radix-popover-trigger-width\]{width:--radix-popover-trigger-width}.w-full{width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-\(--radix-popover-content-transform-origin\){transform-origin:var(--radix-popover-content-transform-origin)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full{--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.scroll-py-1{scroll-padding-block:calc(var(--spacing)*1)}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-destructive\/50{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.border-destructive\/50{border-color:color-mix(in oklab,var(--destructive)50%,transparent)}}.border-gray-200{border-color:var(--color-gray-200)}.border-green-200{border-color:var(--color-green-200)}.border-input{border-color:var(--input)}.border-primary{border-color:var(--primary)}.border-red-200{border-color:var(--color-red-200)}.border-transparent{border-color:#0000}.border-yellow-200{border-color:var(--color-yellow-200)}.border-t-transparent{border-top-color:#0000}.bg-background{background-color:var(--background)}.bg-black\/0{background-color:#0000}@supports (color:color-mix(in lab,red,red)){.bg-black\/0{background-color:color-mix(in oklab,var(--color-black)0%,transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\/80{background-color:color-mix(in oklab,var(--color-black)80%,transparent)}}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-green-100{background-color:var(--color-green-100)}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-red-100{background-color:var(--color-red-100)}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-100{background-color:var(--color-yellow-100)}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-2{padding-top:calc(var(--spacing)*2)}.pr-10{padding-right:calc(var(--spacing)*10)}.pl-4{padding-left:calc(var(--spacing)*4)}.text-center{text-align:center}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-none{--tw-leading:1;line-height:1}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.whitespace-nowrap{white-space:nowrap}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-destructive{color:var(--destructive)}.text-destructive-foreground{color:var(--destructive-foreground)}.text-foreground{color:var(--foreground)}.text-gray-500{color:var(--color-gray-500)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-green-500{color:var(--color-green-500)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-500{color:var(--color-red-500)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-yellow-500{color:var(--color-yellow-500)}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-100{opacity:1}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.select-none{-webkit-user-select:none;user-select:none}.group-data-\[state\=open\]\:rotate-180:is(:where(.group)[data-state=open] *){rotate:180deg}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-70:is(:where(.peer):disabled~*){opacity:.7}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}@media (hover:hover){.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:scale-\[1\.01\]:hover{scale:1.01}.hover\:scale-\[1\.02\]:hover{scale:1.02}.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive:hover,.hover\:bg-destructive\/80:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/80:hover{background-color:color-mix(in oklab,var(--destructive)80%,transparent)}}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-primary\/80:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/80:hover{background-color:color-mix(in oklab,var(--primary)80%,transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\:bg-transparent:hover{background-color:#0000}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-destructive-foreground:hover{color:var(--destructive-foreground)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\:scale-\[1\.01\]:focus{scale:1.01}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:var(--ring)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color:var(--background)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:scale-\[0\.98\]:active{scale:.98}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true]{pointer-events:none}.data-\[disabled\=true\]\:opacity-50[data-disabled=true]{opacity:.5}.data-\[selected\=true\]\:bg-accent[data-selected=true]{background-color:var(--accent)}.data-\[selected\=true\]\:text-accent-foreground[data-selected=true]{color:var(--accent-foreground)}:is(.\*\*\:data-\[slot\=command-input-wrapper\]\:h-12 *)[data-slot=command-input-wrapper]{height:calc(var(--spacing)*12)}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--tw-translate-x:calc(var(--spacing)*5);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:var(--input)}@media (min-width:40rem){.sm\:max-w-2xl{max-width:var(--container-2xl)}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}:where(.sm\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}@media (min-width:48rem){.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-inline:calc(var(--spacing)*2)}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-block:calc(var(--spacing)*1.5)}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:var(--muted-foreground)}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-inline:calc(var(--spacing)*2)}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:calc(var(--spacing)*0)}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:calc(var(--spacing)*5)}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:calc(var(--spacing)*5)}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:calc(var(--spacing)*12)}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-inline:calc(var(--spacing)*2)}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-block:calc(var(--spacing)*3)}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:calc(var(--spacing)*5)}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:calc(var(--spacing)*5)}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}}:root{--radius:.625rem;--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--destructive-foreground:oklch(98.5% 0 0);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--destructive-foreground:oklch(98.5% 0 0);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:oklch(55.6% 0 0)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes scaleIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes slideIn{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.animate-fade-in{animation:fadeIn .2s ease-out forwards}.animate-scale-in{animation:scaleIn .2s cubic-bezier(.34,1.56,.64,1) forwards}.animate-slide-in{animation:slideIn .3s cubic-bezier(.34,1.56,.64,1) forwards}.transition-all-ease{transition:all .2s cubic-bezier(.34,1.56,.64,1)}</style>
|
|
219
|
+
</head>
|
|
220
|
+
<body>
|
|
221
|
+
<div id="root"></div>
|
|
222
|
+
</body>
|
|
223
|
+
</html>
|