@tinyrack/tinyauth-server 0.0.16 → 0.2.0
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/dist/emails/components/email-layout.d.ts +1 -1
- package/dist/emails/components/email-layout.d.ts.map +1 -1
- package/dist/emails/templates/password-reset.d.ts +1 -1
- package/dist/emails/templates/password-reset.d.ts.map +1 -1
- package/dist/emails/templates/verification.d.ts +1 -1
- package/dist/emails/templates/verification.d.ts.map +1 -1
- package/dist/entities/background-job.entity.d.ts +42 -42
- package/dist/entities/background-job.entity.d.ts.map +1 -1
- package/dist/entities/base.entity.d.ts +8 -8
- package/dist/entities/base.entity.d.ts.map +1 -1
- package/dist/entities/bootstrap-state.entity.d.ts +15 -15
- package/dist/entities/bootstrap-state.entity.d.ts.map +1 -1
- package/dist/entities/email-verification.entity.d.ts +33 -27
- package/dist/entities/email-verification.entity.d.ts.map +1 -1
- package/dist/entities/jwt-key.entity.d.ts +36 -36
- package/dist/entities/jwt-key.entity.d.ts.map +1 -1
- package/dist/entities/oauth-client.entity.d.ts +519 -471
- package/dist/entities/oauth-client.entity.d.ts.map +1 -1
- package/dist/entities/oauth-code.entity.d.ts +519 -471
- package/dist/entities/oauth-code.entity.d.ts.map +1 -1
- package/dist/entities/password-reset.entity.d.ts +33 -27
- package/dist/entities/password-reset.entity.d.ts.map +1 -1
- package/dist/entities/pending-oauth-registration.entity.d.ts +39 -39
- package/dist/entities/pending-oauth-registration.entity.d.ts.map +1 -1
- package/dist/entities/revoked-token.entity.d.ts +519 -471
- package/dist/entities/revoked-token.entity.d.ts.map +1 -1
- package/dist/entities/scheduler-job.entity.d.ts +48 -48
- package/dist/entities/scheduler-job.entity.d.ts.map +1 -1
- package/dist/entities/terms-content.entity.d.ts +279 -249
- package/dist/entities/terms-content.entity.d.ts.map +1 -1
- package/dist/entities/terms.entity.d.ts +279 -249
- package/dist/entities/terms.entity.d.ts.map +1 -1
- package/dist/entities/user-consent.entity.d.ts +519 -471
- package/dist/entities/user-consent.entity.d.ts.map +1 -1
- package/dist/entities/user-oauth.entity.d.ts +36 -30
- package/dist/entities/user-oauth.entity.d.ts.map +1 -1
- package/dist/entities/user-passkey.entity.d.ts +45 -39
- package/dist/entities/user-passkey.entity.d.ts.map +1 -1
- package/dist/entities/user-terms-consent.entity.d.ts +279 -249
- package/dist/entities/user-terms-consent.entity.d.ts.map +1 -1
- package/dist/entities/user-totp-recovery-code.entity.d.ts +177 -159
- package/dist/entities/user-totp-recovery-code.entity.d.ts.map +1 -1
- package/dist/entities/user-totp.entity.d.ts +177 -159
- package/dist/entities/user-totp.entity.d.ts.map +1 -1
- package/dist/entities/user.entity.d.ts +177 -159
- package/dist/entities/user.entity.d.ts.map +1 -1
- package/dist/entrypoints/app.d.ts +8 -1
- package/dist/entrypoints/app.d.ts.map +1 -1
- package/dist/entrypoints/app.js +5 -0
- package/dist/entrypoints/app.js.map +1 -1
- package/dist/entrypoints/database/postgres/compiled-functions.js +1 -1
- package/dist/entrypoints/database/postgres/compiled-functions.js.map +1 -1
- package/dist/entrypoints/database/sqlite/compiled-functions.js +1 -1
- package/dist/entrypoints/database/sqlite/compiled-functions.js.map +1 -1
- package/dist/lib/config/client.d.ts.map +1 -1
- package/dist/lib/config/client.js +5 -1
- package/dist/lib/config/client.js.map +1 -1
- package/dist/lib/config/identity-providers.d.ts.map +1 -1
- package/dist/lib/config/identity-providers.js +10 -33
- package/dist/lib/config/identity-providers.js.map +1 -1
- package/dist/lib/config/url-policy.d.ts +4 -0
- package/dist/lib/config/url-policy.d.ts.map +1 -0
- package/dist/lib/config/url-policy.js +38 -0
- package/dist/lib/config/url-policy.js.map +1 -0
- package/dist/lib/pkce.d.ts.map +1 -1
- package/dist/lib/pkce.js +3 -0
- package/dist/lib/pkce.js.map +1 -1
- package/dist/middleware/csrf.d.ts +2 -0
- package/dist/middleware/csrf.d.ts.map +1 -0
- package/dist/middleware/csrf.js +51 -0
- package/dist/middleware/csrf.js.map +1 -0
- package/dist/repositories/revoked-token.repository.d.ts +20 -0
- package/dist/repositories/revoked-token.repository.d.ts.map +1 -1
- package/dist/repositories/revoked-token.repository.js +44 -1
- package/dist/repositories/revoked-token.repository.js.map +1 -1
- package/dist/repositories/user-passkey.repository.d.ts +45 -39
- package/dist/repositories/user-passkey.repository.d.ts.map +1 -1
- package/dist/repositories/user-totp-recovery-code.repository.d.ts +118 -106
- package/dist/repositories/user-totp-recovery-code.repository.d.ts.map +1 -1
- package/dist/repositories/user-totp.repository.d.ts +177 -159
- package/dist/repositories/user-totp.repository.d.ts.map +1 -1
- package/dist/routes/api/oauth/_provider/authorize/get.d.ts.map +1 -1
- package/dist/routes/api/oauth/_provider/authorize/get.js +13 -1
- package/dist/routes/api/oauth/_provider/authorize/get.js.map +1 -1
- package/dist/routes/api/oauth/_provider/callback/post.d.ts.map +1 -1
- package/dist/routes/api/oauth/_provider/callback/post.js +30 -1
- package/dist/routes/api/oauth/_provider/callback/post.js.map +1 -1
- package/dist/routes/index.d.ts +8 -1
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/oauth/.well-known/openid-configuration/get.d.ts +4 -0
- package/dist/routes/oauth/.well-known/openid-configuration/get.d.ts.map +1 -1
- package/dist/routes/oauth/.well-known/openid-configuration/get.js +25 -2
- package/dist/routes/oauth/.well-known/openid-configuration/get.js.map +1 -1
- package/dist/routes/oauth/authorize/get.d.ts +2 -0
- package/dist/routes/oauth/authorize/get.d.ts.map +1 -1
- package/dist/routes/oauth/authorize/get.js +4 -0
- package/dist/routes/oauth/authorize/get.js.map +1 -1
- package/dist/routes/oauth/index.d.ts +8 -1
- package/dist/routes/oauth/index.d.ts.map +1 -1
- package/dist/routes/oauth/introspect/post.d.ts +1 -0
- package/dist/routes/oauth/introspect/post.d.ts.map +1 -1
- package/dist/routes/oauth/token/post.d.ts +1 -1
- package/dist/routes/oauth/token/post.d.ts.map +1 -1
- package/dist/routes/oauth/token/post.js +1 -0
- package/dist/routes/oauth/token/post.js.map +1 -1
- package/dist/routes/oauth/userinfo/get.d.ts.map +1 -1
- package/dist/routes/oauth/userinfo/get.js +3 -0
- package/dist/routes/oauth/userinfo/get.js.map +1 -1
- package/dist/schemas/error.d.ts +75 -0
- package/dist/schemas/error.d.ts.map +1 -1
- package/dist/schemas/error.js +3 -0
- package/dist/schemas/error.js.map +1 -1
- package/dist/schemas/field.d.ts +1 -6
- package/dist/schemas/field.d.ts.map +1 -1
- package/dist/schemas/field.js +2 -3
- package/dist/schemas/field.js.map +1 -1
- package/dist/schemas/oauth.d.ts +1 -1
- package/dist/schemas/oauth.js +1 -1
- package/dist/schemas/oauth.js.map +1 -1
- package/dist/schemas/response.d.ts +1 -1
- package/dist/services/jwt.service.d.ts +5 -0
- package/dist/services/jwt.service.d.ts.map +1 -1
- package/dist/services/jwt.service.js +31 -16
- package/dist/services/jwt.service.js.map +1 -1
- package/dist/services/oauth-authorize.service.d.ts +5 -1
- package/dist/services/oauth-authorize.service.d.ts.map +1 -1
- package/dist/services/oauth-authorize.service.js +65 -16
- package/dist/services/oauth-authorize.service.js.map +1 -1
- package/dist/services/oauth-client.service.d.ts +1 -0
- package/dist/services/oauth-client.service.d.ts.map +1 -1
- package/dist/services/oauth-client.service.js +5 -0
- package/dist/services/oauth-client.service.js.map +1 -1
- package/dist/services/oauth-connect.service.d.ts +1 -0
- package/dist/services/oauth-connect.service.d.ts.map +1 -1
- package/dist/services/oauth-connect.service.js +61 -7
- package/dist/services/oauth-connect.service.js.map +1 -1
- package/dist/services/oauth-token.service.d.ts +8 -1
- package/dist/services/oauth-token.service.d.ts.map +1 -1
- package/dist/services/oauth-token.service.js +111 -30
- package/dist/services/oauth-token.service.js.map +1 -1
- package/package.json +28 -28
- package/public/assets/index-5_9rzim1.css +2 -0
- package/public/assets/index-BTGeW26-.js +75 -0
- package/public/assets/index-BTGeW26-.js.map +1 -0
- package/public/index.html +2 -2
- package/readme.md +74 -25
- package/public/assets/index-6odabbrQ.css +0 -1
- package/public/assets/index-CLq6d6iO.js +0 -76
- package/public/assets/index-CLq6d6iO.js.map +0 -1
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function a(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerPolicy&&(s.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?s.credentials="include":n.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(n){if(n.ep)return;n.ep=!0;const s=a(n);fetch(n.href,s)}})();function C9(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Y0={exports:{}},Ps={};var wy;function D9(){if(wy)return Ps;wy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(o,n,s){var c=null;if(s!==void 0&&(c=""+s),n.key!==void 0&&(c=""+n.key),"key"in n){s={};for(var d in n)d!=="key"&&(s[d]=n[d])}else s=n;return n=s.ref,{$$typeof:e,type:o,key:c,ref:n!==void 0?n:null,props:s}}return Ps.Fragment=t,Ps.jsx=a,Ps.jsxs=a,Ps}var ky;function P9(){return ky||(ky=1,Y0.exports=D9()),Y0.exports}var v=P9(),ji=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},L9=class extends ji{#t;#e;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},im=new L9,I9={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},U9=class{#t=I9;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},pi=new U9;function Z9(e){setTimeout(e,0)}var V9=typeof window>"u"||"Deno"in globalThis;function cn(){}function H9(e,t){return typeof e=="function"?e(t):e}function E1(e){return typeof e=="number"&&e>=0&&e!==1/0}function b8(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Pa(e,t){return typeof e=="function"?e(t):e}function Ln(e,t){return typeof e=="function"?e(t):e}function $y(e,t){const{type:a="all",exact:o,fetchStatus:n,predicate:s,queryKey:c,stale:d}=e;if(c){if(o){if(t.queryHash!==om(c,t.options))return!1}else if(!Ws(t.queryKey,c))return!1}if(a!=="all"){const m=t.isActive();if(a==="active"&&!m||a==="inactive"&&m)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||n&&n!==t.state.fetchStatus||s&&!s(t))}function Ay(e,t){const{exact:a,status:o,predicate:n,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(a){if(wi(t.options.mutationKey)!==wi(s))return!1}else if(!Ws(t.options.mutationKey,s))return!1}return!(o&&t.state.status!==o||n&&!n(t))}function om(e,t){return(t?.queryKeyHashFn||wi)(e)}function wi(e){return JSON.stringify(e,(t,a)=>T1(a)?Object.keys(a).sort().reduce((o,n)=>(o[n]=a[n],o),{}):a)}function Ws(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(a=>Ws(e[a],t[a])):!1}var F9=Object.prototype.hasOwnProperty;function sm(e,t,a=0){if(e===t)return e;if(a>500)return t;const o=Ey(e)&&Ey(t);if(!o&&!(T1(e)&&T1(t)))return t;const s=(o?e:Object.keys(e)).length,c=o?t:Object.keys(t),d=c.length,m=o?new Array(d):{};let p=0;for(let y=0;y<d;y++){const b=o?y:c[y],x=e[b],_=t[b];if(x===_){m[b]=x,(o?y<s:F9.call(e,b))&&p++;continue}if(x===null||_===null||typeof x!="object"||typeof _!="object"){m[b]=_;continue}const w=sm(x,_,a+1);m[b]=w,w===x&&p++}return s===d&&p===s?e:m}function el(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const a in e)if(e[a]!==t[a])return!1;return!0}function Ey(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function T1(e){if(!Ty(e))return!1;const t=e.constructor;if(t===void 0)return!0;const a=t.prototype;return!(!Ty(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ty(e){return Object.prototype.toString.call(e)==="[object Object]"}function q9(e){return new Promise(t=>{pi.setTimeout(t,e)})}function j1(e,t,a){return typeof a.structuralSharing=="function"?a.structuralSharing(e,t):a.structuralSharing!==!1?sm(e,t):t}function B9(e,t,a=0){const o=[...e,t];return a&&o.length>a?o.slice(1):o}function K9(e,t,a=0){const o=[t,...e];return a&&o.length>a?o.slice(0,-1):o}var lm=Symbol();function _8(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===lm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function cm(e,t){return typeof e=="function"?e(...t):!!e}function Q9(e,t,a){let o=!1,n;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(n??=t(),o||(o=!0,n.aborted?a():n.addEventListener("abort",a,{once:!0})),n)}),e}var tl=(()=>{let e=()=>V9;return{isServer(){return e()},setIsServer(t){e=t}}})();function M1(){let e,t;const a=new Promise((n,s)=>{e=n,t=s});a.status="pending",a.catch(()=>{});function o(n){Object.assign(a,n),delete a.resolve,delete a.reject}return a.resolve=n=>{o({status:"fulfilled",value:n}),e(n)},a.reject=n=>{o({status:"rejected",reason:n}),t(n)},a}var G9=Z9;function J9(){let e=[],t=0,a=d=>{d()},o=d=>{d()},n=G9;const s=d=>{t?e.push(d):n(()=>{a(d)})},c=()=>{const d=e;e=[],d.length&&n(()=>{o(()=>{d.forEach(m=>{a(m)})})})};return{batch:d=>{let m;t++;try{m=d()}finally{t--,t||c()}return m},batchCalls:d=>(...m)=>{s(()=>{d(...m)})},schedule:s,setNotifyFunction:d=>{a=d},setBatchNotifyFunction:d=>{o=d},setScheduler:d=>{n=d}}}var Tt=J9(),X9=class extends ji{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),a=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",a)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(a=>{a(e)}))}isOnline(){return this.#t}},_u=new X9;function Y9(e){return Math.min(1e3*2**e,3e4)}function x8(e){return(e??"online")==="online"?_u.isOnline():!0}var O1=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function S8(e){let t=!1,a=0,o;const n=M1(),s=()=>n.status!=="pending",c=$=>{if(!s()){const A=new O1($);x(A),e.onCancel?.(A)}},d=()=>{t=!0},m=()=>{t=!1},p=()=>im.isFocused()&&(e.networkMode==="always"||_u.isOnline())&&e.canRun(),y=()=>x8(e.networkMode)&&e.canRun(),b=$=>{s()||(o?.(),n.resolve($))},x=$=>{s()||(o?.(),n.reject($))},_=()=>new Promise($=>{o=A=>{(s()||p())&&$(A)},e.onPause?.()}).then(()=>{o=void 0,s()||e.onContinue?.()}),w=()=>{if(s())return;let $;const A=a===0?e.initialPromise:void 0;try{$=A??e.fn()}catch(E){$=Promise.reject(E)}Promise.resolve($).then(b).catch(E=>{if(s())return;const T=e.retry??(tl.isServer()?0:3),N=e.retryDelay??Y9,M=typeof N=="function"?N(a,E):N,U=T===!0||typeof T=="number"&&a<T||typeof T=="function"&&T(a,E);if(t||!U){x(E);return}a++,e.onFail?.(a,E),q9(M).then(()=>p()?void 0:_()).then(()=>{t?x(E):w()})})};return{promise:n,status:()=>n.status,cancel:c,continue:()=>(o?.(),n),cancelRetry:d,continueRetry:m,canStart:y,start:()=>(y()?w():_().then(w),n)}}var w8=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),E1(this.gcTime)&&(this.#t=pi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(tl.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(pi.clearTimeout(this.#t),this.#t=void 0)}};function W9(e){return{onFetch:(t,a)=>{const o=t.options,n=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let d={pages:[],pageParams:[]},m=0;const p=async()=>{let y=!1;const b=w=>{Q9(w,()=>t.signal,()=>y=!0)},x=_8(t.options,t.fetchOptions),_=async(w,$,A)=>{if(y)return Promise.reject(t.signal.reason);if($==null&&w.pages.length)return Promise.resolve(w);const T=(()=>{const K={client:t.client,queryKey:t.queryKey,pageParam:$,direction:A?"backward":"forward",meta:t.options.meta};return b(K),K})(),N=await x(T),{maxPages:M}=t.options,U=A?K9:B9;return{pages:U(w.pages,N,M),pageParams:U(w.pageParams,$,M)}};if(n&&s.length){const w=n==="backward",$=w?ek:jy,A={pages:s,pageParams:c},E=$(o,A);d=await _(A,E,w)}else{const w=e??s.length;do{const $=m===0?c[0]??o.initialPageParam:jy(o,d);if(m>0&&$==null)break;d=await _(d,$),m++}while(m<w)}return d};t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},a):t.fetchFn=p}}}function jy(e,{pages:t,pageParams:a}){const o=t.length-1;return t.length>0?e.getNextPageParam(t[o],t,a[o],a):void 0}function ek(e,{pages:t,pageParams:a}){return t.length>0?e.getPreviousPageParam?.(t[0],t,a[0],a):void 0}var tk=class extends w8{#t;#e;#n;#r;#a;#i;#s;#o;constructor(e){super(),this.#o=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#r=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Oy(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#t}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#s,...e},e?._type&&(this.#t=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Oy(this.options);t.data!==void 0&&(this.setState(My(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const a=j1(this.state.data,e,this.options);return this.#l({data:a,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),a}setState(e){this.#l({type:"setState",state:e})}cancel(e){const t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(cn).catch(cn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Ln(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===lm||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Pa(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!b8(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#o||this.#u()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#u(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){const m=this.observers.find(p=>p.options.queryFn);m&&this.setOptions(m.options)}const a=new AbortController,o=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#o=!0,a.signal)})},n=()=>{const m=_8(this.options,t),y=(()=>{const b={client:this.#a,queryKey:this.queryKey,meta:this.meta};return o(b),b})();return this.#o=!1,this.options.persister?this.options.persister(m,y,this):m(y)},c=(()=>{const m={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:n};return o(m),m})();(this.#t==="infinite"?W9(this.options.pages):this.options.behavior)?.onFetch(c,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#l({type:"fetch",meta:c.fetchOptions?.meta}),this.#i=S8({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:m=>{m instanceof O1&&m.revert&&this.setState({...this.#n,fetchStatus:"idle"}),a.abort()},onFail:(m,p)=>{this.#l({type:"failed",failureCount:m,error:p})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const m=await this.#i.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#r.config.onSuccess?.(m,this),this.#r.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof O1){if(m.silent)return this.#i.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#l({type:"error",error:m}),this.#r.config.onError?.(m,this),this.#r.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#l(e){const t=a=>{switch(e.type){case"failed":return{...a,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...k8(a.data,this.options),fetchMeta:e.meta??null};case"success":const o={...a,...My(e.data,e.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?o:void 0,o;case"error":const n=e.error;return{...a,error:n,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...e.state}}};this.state=t(this.state),Tt.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function k8(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:x8(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function My(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Oy(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,a=t!==void 0,o=a?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:a?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var Iu=class extends ji{constructor(e,t){super(),this.options=t,this.#t=e,this.#o=null,this.#s=M1(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#i;#s;#o;#u;#l;#m;#d;#p;#c;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Ny(this.#e,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return N1(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return N1(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#x(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,a=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ln(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),t._defaulted&&!el(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&zy(this.#e,a,this.options,t)&&this.#f(),this.updateResult(),o&&(this.#e!==a||Ln(this.options.enabled,this.#e)!==Ln(t.enabled,this.#e)||Pa(this.options.staleTime,this.#e)!==Pa(t.staleTime,this.#e))&&this.#g();const n=this.#v();o&&(this.#e!==a||Ln(this.options.enabled,this.#e)!==Ln(t.enabled,this.#e)||n!==this.#c)&&this.#y(n)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),a=this.createResult(t,e);return rk(this,a)&&(this.#r=a,this.#i=this.options,this.#a=this.#e.state),a}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(a,o)=>(this.trackProp(o),t?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,o))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),a=this.#t.getQueryCache().build(this.#t,t);return a.fetch().then(()=>this.createResult(a,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(e){this.#S();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(cn)),t}#g(){this.#_();const e=Pa(this.options.staleTime,this.#e);if(tl.isServer()||this.#r.isStale||!E1(e))return;const a=b8(this.#r.dataUpdatedAt,e)+1;this.#d=pi.setTimeout(()=>{this.#r.isStale||this.updateResult()},a)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(e){this.#x(),this.#c=e,!(tl.isServer()||Ln(this.options.enabled,this.#e)===!1||!E1(this.#c)||this.#c===0)&&(this.#p=pi.setInterval(()=>{(this.options.refetchIntervalInBackground||im.isFocused())&&this.#f()},this.#c))}#b(){this.#g(),this.#y(this.#v())}#_(){this.#d!==void 0&&(pi.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#p!==void 0&&(pi.clearInterval(this.#p),this.#p=void 0)}createResult(e,t){const a=this.#e,o=this.options,n=this.#r,s=this.#a,c=this.#i,m=e!==a?e.state:this.#n,{state:p}=e;let y={...p},b=!1,x;if(t._optimisticResults){const B=this.hasListeners(),H=!B&&Ny(e,t),ne=B&&zy(e,a,t,o);(H||ne)&&(y={...y,...k8(p.data,e.options)}),t._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:_,errorUpdatedAt:w,status:$}=y;x=y.data;let A=!1;if(t.placeholderData!==void 0&&x===void 0&&$==="pending"){let B;n?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(B=n.data,A=!0):B=typeof t.placeholderData=="function"?t.placeholderData(this.#m?.state.data,this.#m):t.placeholderData,B!==void 0&&($="success",x=j1(n?.data,B,t),b=!0)}if(t.select&&x!==void 0&&!A)if(n&&x===s?.data&&t.select===this.#u)x=this.#l;else try{this.#u=t.select,x=t.select(x),x=j1(n?.data,x,t),this.#l=x,this.#o=null}catch(B){this.#o=B}this.#o&&(_=this.#o,x=this.#l,w=Date.now(),$="error");const E=y.fetchStatus==="fetching",T=$==="pending",N=$==="error",M=T&&E,U=x!==void 0,L={status:$,fetchStatus:y.fetchStatus,isPending:T,isSuccess:$==="success",isError:N,isInitialLoading:M,isLoading:M,data:x,dataUpdatedAt:y.dataUpdatedAt,error:_,errorUpdatedAt:w,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:y.dataUpdateCount>m.dataUpdateCount||y.errorUpdateCount>m.errorUpdateCount,isFetching:E,isRefetching:E&&!T,isLoadingError:N&&!U,isPaused:y.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:N&&U,isStale:um(e,t),refetch:this.refetch,promise:this.#s,isEnabled:Ln(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const B=L.data!==void 0,H=L.status==="error"&&!B,ne=ce=>{H?ce.reject(L.error):B&&ce.resolve(L.data)},ie=()=>{const ce=this.#s=L.promise=M1();ne(ce)},W=this.#s;switch(W.status){case"pending":e.queryHash===a.queryHash&&ne(W);break;case"fulfilled":(H||L.data!==W.value)&&ie();break;case"rejected":(!H||L.error!==W.reason)&&ie();break}}return L}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#i=this.options,this.#a.data!==void 0&&(this.#m=this.#e),el(t,e))return;this.#r=t;const a=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,n=typeof o=="function"?o():o;if(n==="all"||!n&&!this.#h.size)return!0;const s=new Set(n??this.#h);return this.options.throwOnError&&s.add("error"),Object.keys(this.#r).some(c=>{const d=c;return this.#r[d]!==e[d]&&s.has(d)})};this.#w({listeners:a()})}#S(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(e){Tt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function nk(e,t){return Ln(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Ln(t.retryOnMount,e)===!1)}function Ny(e,t){return nk(e,t)||e.state.data!==void 0&&N1(e,t,t.refetchOnMount)}function N1(e,t,a){if(Ln(t.enabled,e)!==!1&&Pa(t.staleTime,e)!=="static"){const o=typeof a=="function"?a(e):a;return o==="always"||o!==!1&&um(e,t)}return!1}function zy(e,t,a,o){return(e!==t||Ln(o.enabled,e)===!1)&&(!a.suspense||e.state.status!=="error")&&um(e,a)}function um(e,t){return Ln(t.enabled,e)!==!1&&e.isStaleByTime(Pa(t.staleTime,e))}function rk(e,t){return!el(e.getCurrentResult(),t)}var ak=class extends w8{#t;#e;#n;#r;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#e=[],this.state=e.state||$8(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#a({type:"continue"})},a={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=S8({fn:()=>this.options.mutationFn?this.options.mutationFn(e,a):Promise.reject(new Error("No mutationFn found")),onFail:(s,c)=>{this.#a({type:"failed",failureCount:s,error:c})},onPause:()=>{this.#a({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const o=this.state.status==="pending",n=!this.#r.canStart();try{if(o)t();else{this.#a({type:"pending",variables:e,isPaused:n}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,a);const c=await this.options.onMutate?.(e,a);c!==this.state.context&&this.#a({type:"pending",context:c,variables:e,isPaused:n})}const s=await this.#r.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,a),await this.options.onSuccess?.(s,e,this.state.context,a),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(s,null,e,this.state.context,a),this.#a({type:"success",data:s}),s}catch(s){try{await this.#n.config.onError?.(s,e,this.state.context,this,a)}catch(c){Promise.reject(c)}try{await this.options.onError?.(s,e,this.state.context,a)}catch(c){Promise.reject(c)}try{await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,a)}catch(c){Promise.reject(c)}try{await this.options.onSettled?.(void 0,s,e,this.state.context,a)}catch(c){Promise.reject(c)}throw this.#a({type:"error",error:s}),s}finally{this.#n.runNext(this)}}#a(e){const t=a=>{switch(e.type){case"failed":return{...a,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...a,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:e.error,failureCount:a.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Tt.batch(()=>{this.#e.forEach(a=>{a.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function $8(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ik=class extends ji{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,a){const o=new ak({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:a});return this.add(o),o}add(e){this.#t.add(e);const t=iu(e);if(typeof t=="string"){const a=this.#e.get(t);a?a.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=iu(e);if(typeof t=="string"){const a=this.#e.get(t);if(a)if(a.length>1){const o=a.indexOf(e);o!==-1&&a.splice(o,1)}else a[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=iu(e);if(typeof t=="string"){const o=this.#e.get(t)?.find(n=>n.state.status==="pending");return!o||o===e}else return!0}runNext(e){const t=iu(e);return typeof t=="string"?this.#e.get(t)?.find(o=>o!==e&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Tt.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(a=>Ay(t,a))}findAll(e={}){return this.getAll().filter(t=>Ay(e,t))}notify(e){Tt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Tt.batch(()=>Promise.all(e.map(t=>t.continue().catch(cn))))}};function iu(e){return e.options.scope?.id}var ok=class extends ji{#t;#e=void 0;#n;#r;constructor(t,a){super(),this.#t=t,this.setOptions(a),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const a=this.options;this.options=this.#t.defaultMutationOptions(t),el(this.options,a)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),a?.mutationKey&&this.options.mutationKey&&wi(a.mutationKey)!==wi(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#a(),this.#i(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#i()}mutate(t,a){return this.#r=a,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#a(){const t=this.#n?.state??$8();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#i(t){Tt.batch(()=>{if(this.#r&&this.hasListeners()){const a=this.#e.variables,o=this.#e.context,n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#r.onSuccess?.(t.data,a,o,n)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(t.data,null,a,o,n)}catch(s){Promise.reject(s)}}else if(t?.type==="error"){try{this.#r.onError?.(t.error,a,o,n)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(void 0,t.error,a,o,n)}catch(s){Promise.reject(s)}}}this.listeners.forEach(a=>{a(this.#e)})})}};function Ry(e,t){const a=new Set(t);return e.filter(o=>!a.has(o))}function sk(e,t,a){const o=e.slice(0);return o[t]=a,o}var lk=class extends ji{#t;#e;#n;#r;#a;#i;#s;#o;#u;#l=[];constructor(e,t,a){super(),this.#t=e,this.#r=a,this.#n=[],this.#a=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#a.forEach(e=>{e.subscribe(t=>{this.#h(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#a.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,Tt.batch(()=>{const a=this.#a,o=this.#c(this.#n);o.forEach(y=>y.observer.setOptions(y.defaultedQueryOptions));const n=o.map(y=>y.observer),s=n.map(y=>y.getCurrentResult()),c=a.length!==n.length,d=n.some((y,b)=>y!==a[b]),m=c||d,p=m?!0:s.some((y,b)=>{const x=this.#e[b];return!x||!el(y,x)});!m&&!p||(m&&(this.#l=o,this.#a=n),this.#e=s,this.hasListeners()&&(m&&(Ry(a,n).forEach(y=>{y.destroy()}),Ry(n,a).forEach(y=>{y.subscribe(b=>{this.#h(y,b)})})),this.#f()))})}getCurrentResult(){return this.#e}getQueries(){return this.#a.map(e=>e.getCurrentQuery())}getObservers(){return this.#a}getOptimisticResult(e,t){const a=this.#c(e),o=a.map(s=>s.observer.getOptimisticResult(s.defaultedQueryOptions)),n=a.map(s=>s.defaultedQueryOptions.queryHash);return[o,s=>this.#d(s??o,t,n),()=>this.#m(o,a)]}#m(e,t){return t.map((a,o)=>{const n=e[o];return a.defaultedQueryOptions.notifyOnChangeProps?n:a.observer.trackResult(n,s=>{t.forEach(c=>{c.observer.trackProp(s)})})})}#d(e,t,a){if(t){const o=this.#u,n=a!==void 0&&o!==void 0&&(o.length!==a.length||a.some((s,c)=>s!==o[c]));return(!this.#i||this.#e!==this.#o||n||t!==this.#s)&&(this.#s=t,this.#o=this.#e,a!==void 0&&(this.#u=a),this.#i=sm(this.#i,t(e))),this.#i}return e}#p(){return this.#r?.combine!==void 0&&this.#a.some((e,t)=>e.options.suspense&&this.#e[t]?.data===void 0)}#c(e){const t=new Map;this.#a.forEach(o=>{const n=o.options.queryHash;if(!n)return;const s=t.get(n);s?s.push(o):t.set(n,[o])});const a=[];return e.forEach(o=>{const n=this.#t.defaultQueryOptions(o),c=t.get(n.queryHash)?.shift()??new Iu(this.#t,n);a.push({defaultedQueryOptions:n,observer:c})}),a}#h(e,t){const a=this.#a.indexOf(e);a!==-1&&(this.#e=sk(this.#e,a,t),this.#f())}#f(){if(this.hasListeners()){const e=this.#m(this.#e,this.#l),t=this.#p(),a=this.#i,o=t?a:this.#d(e,this.#r?.combine);(t||a!==o)&&Tt.batch(()=>{this.listeners.forEach(n=>{n(this.#e)})})}}},ck=class extends ji{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,a){const o=t.queryKey,n=t.queryHash??om(o,t);let s=this.get(n);return s||(s=new tk({client:e,queryKey:o,queryHash:n,options:e.defaultQueryOptions(t),state:a,defaultOptions:e.getQueryDefaults(o)}),this.add(s)),s}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Tt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(a=>$y(t,a))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(a=>$y(e,a)):t}notify(e){Tt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Tt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Tt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},uk=class{#t;#e;#n;#r;#a;#i;#s;#o;constructor(e={}){this.#t=e.queryCache||new ck,this.#e=e.mutationCache||new ik,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=im.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=_u.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),a=this.#t.build(this,t),o=a.state.data;return o===void 0?this.fetchQuery(e):(e.revalidateIfStale&&a.isStaleByTime(Pa(t.staleTime,a))&&this.prefetchQuery(t),Promise.resolve(o))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:a})=>{const o=a.data;return[t,o]})}setQueryData(e,t,a){const o=this.defaultQueryOptions({queryKey:e}),s=this.#t.get(o.queryHash)?.state.data,c=H9(t,s);if(c!==void 0)return this.#t.build(this,o).setData(c,{...a,manual:!0})}setQueriesData(e,t,a){return Tt.batch(()=>this.#t.findAll(e).map(({queryKey:o})=>[o,this.setQueryData(o,t,a)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;Tt.batch(()=>{t.findAll(e).forEach(a=>{t.remove(a)})})}resetQueries(e,t){const a=this.#t;return Tt.batch(()=>(a.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const a={revert:!0,...t},o=Tt.batch(()=>this.#t.findAll(e).map(n=>n.cancel(a)));return Promise.all(o).then(cn).catch(cn)}invalidateQueries(e,t={}){return Tt.batch(()=>(this.#t.findAll(e).forEach(a=>{a.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const a={...t,cancelRefetch:t.cancelRefetch??!0},o=Tt.batch(()=>this.#t.findAll(e).filter(n=>!n.isDisabled()&&!n.isStatic()).map(n=>{let s=n.fetch(void 0,a);return a.throwOnError||(s=s.catch(cn)),n.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(o).then(cn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const a=this.#t.build(this,t);return a.isStaleByTime(Pa(t.staleTime,a))?a.fetch(t):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(cn).catch(cn)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(cn).catch(cn)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return _u.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(wi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],a={};return t.forEach(o=>{Ws(e,o.queryKey)&&Object.assign(a,o.defaultOptions)}),a}setMutationDefaults(e,t){this.#a.set(wi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],a={};return t.forEach(o=>{Ws(e,o.mutationKey)&&Object.assign(a,o.defaultOptions)}),a}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=om(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===lm&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},W0={exports:{}},Ee={};var Cy;function dk(){if(Cy)return Ee;Cy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),x=Symbol.iterator;function _(z){return z===null||typeof z!="object"?null:(z=x&&z[x]||z["@@iterator"],typeof z=="function"?z:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,A={};function E(z,G,ae){this.props=z,this.context=G,this.refs=A,this.updater=ae||w}E.prototype.isReactComponent={},E.prototype.setState=function(z,G){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,G,"setState")},E.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function T(){}T.prototype=E.prototype;function N(z,G,ae){this.props=z,this.context=G,this.refs=A,this.updater=ae||w}var M=N.prototype=new T;M.constructor=N,$(M,E.prototype),M.isPureReactComponent=!0;var U=Array.isArray;function K(){}var L={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function H(z,G,ae){var de=ae.ref;return{$$typeof:e,type:z,key:G,ref:de!==void 0?de:null,props:ae}}function ne(z,G){return H(z.type,G,z.props)}function ie(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function W(z){var G={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(ae){return G[ae]})}var ce=/\/+/g;function pe(z,G){return typeof z=="object"&&z!==null&&z.key!=null?W(""+z.key):G.toString(36)}function Ae(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(K,K):(z.status="pending",z.then(function(G){z.status==="pending"&&(z.status="fulfilled",z.value=G)},function(G){z.status==="pending"&&(z.status="rejected",z.reason=G)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function q(z,G,ae,de,ve){var je=typeof z;(je==="undefined"||je==="boolean")&&(z=null);var Ie=!1;if(z===null)Ie=!0;else switch(je){case"bigint":case"string":case"number":Ie=!0;break;case"object":switch(z.$$typeof){case e:case t:Ie=!0;break;case y:return Ie=z._init,q(Ie(z._payload),G,ae,de,ve)}}if(Ie)return ve=ve(z),Ie=de===""?"."+pe(z,0):de,U(ve)?(ae="",Ie!=null&&(ae=Ie.replace(ce,"$&/")+"/"),q(ve,G,ae,"",function(dr){return dr})):ve!=null&&(ie(ve)&&(ve=ne(ve,ae+(ve.key==null||z&&z.key===ve.key?"":(""+ve.key).replace(ce,"$&/")+"/")+Ie)),G.push(ve)),1;Ie=0;var wt=de===""?".":de+":";if(U(z))for(var Ye=0;Ye<z.length;Ye++)de=z[Ye],je=wt+pe(de,Ye),Ie+=q(de,G,ae,je,ve);else if(Ye=_(z),typeof Ye=="function")for(z=Ye.call(z),Ye=0;!(de=z.next()).done;)de=de.value,je=wt+pe(de,Ye++),Ie+=q(de,G,ae,je,ve);else if(je==="object"){if(typeof z.then=="function")return q(Ae(z),G,ae,de,ve);throw G=String(z),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return Ie}function ee(z,G,ae){if(z==null)return z;var de=[],ve=0;return q(z,de,"","",function(je){return G.call(ae,je,ve++)}),de}function he(z){if(z._status===-1){var G=z._result;G=G(),G.then(function(ae){(z._status===0||z._status===-1)&&(z._status=1,z._result=ae)},function(ae){(z._status===0||z._status===-1)&&(z._status=2,z._result=ae)}),z._status===-1&&(z._status=0,z._result=G)}if(z._status===1)return z._result.default;throw z._result}var we=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},De={map:ee,forEach:function(z,G,ae){ee(z,function(){G.apply(this,arguments)},ae)},count:function(z){var G=0;return ee(z,function(){G++}),G},toArray:function(z){return ee(z,function(G){return G})||[]},only:function(z){if(!ie(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return Ee.Activity=b,Ee.Children=De,Ee.Component=E,Ee.Fragment=a,Ee.Profiler=n,Ee.PureComponent=N,Ee.StrictMode=o,Ee.Suspense=m,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(z){return L.H.useMemoCache(z)}},Ee.cache=function(z){return function(){return z.apply(null,arguments)}},Ee.cacheSignal=function(){return null},Ee.cloneElement=function(z,G,ae){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var de=$({},z.props),ve=z.key;if(G!=null)for(je in G.key!==void 0&&(ve=""+G.key),G)!B.call(G,je)||je==="key"||je==="__self"||je==="__source"||je==="ref"&&G.ref===void 0||(de[je]=G[je]);var je=arguments.length-2;if(je===1)de.children=ae;else if(1<je){for(var Ie=Array(je),wt=0;wt<je;wt++)Ie[wt]=arguments[wt+2];de.children=Ie}return H(z.type,ve,de)},Ee.createContext=function(z){return z={$$typeof:c,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:s,_context:z},z},Ee.createElement=function(z,G,ae){var de,ve={},je=null;if(G!=null)for(de in G.key!==void 0&&(je=""+G.key),G)B.call(G,de)&&de!=="key"&&de!=="__self"&&de!=="__source"&&(ve[de]=G[de]);var Ie=arguments.length-2;if(Ie===1)ve.children=ae;else if(1<Ie){for(var wt=Array(Ie),Ye=0;Ye<Ie;Ye++)wt[Ye]=arguments[Ye+2];ve.children=wt}if(z&&z.defaultProps)for(de in Ie=z.defaultProps,Ie)ve[de]===void 0&&(ve[de]=Ie[de]);return H(z,je,ve)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(z){return{$$typeof:d,render:z}},Ee.isValidElement=ie,Ee.lazy=function(z){return{$$typeof:y,_payload:{_status:-1,_result:z},_init:he}},Ee.memo=function(z,G){return{$$typeof:p,type:z,compare:G===void 0?null:G}},Ee.startTransition=function(z){var G=L.T,ae={};L.T=ae;try{var de=z(),ve=L.S;ve!==null&&ve(ae,de),typeof de=="object"&&de!==null&&typeof de.then=="function"&&de.then(K,we)}catch(je){we(je)}finally{G!==null&&ae.types!==null&&(G.types=ae.types),L.T=G}},Ee.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},Ee.use=function(z){return L.H.use(z)},Ee.useActionState=function(z,G,ae){return L.H.useActionState(z,G,ae)},Ee.useCallback=function(z,G){return L.H.useCallback(z,G)},Ee.useContext=function(z){return L.H.useContext(z)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(z,G){return L.H.useDeferredValue(z,G)},Ee.useEffect=function(z,G){return L.H.useEffect(z,G)},Ee.useEffectEvent=function(z){return L.H.useEffectEvent(z)},Ee.useId=function(){return L.H.useId()},Ee.useImperativeHandle=function(z,G,ae){return L.H.useImperativeHandle(z,G,ae)},Ee.useInsertionEffect=function(z,G){return L.H.useInsertionEffect(z,G)},Ee.useLayoutEffect=function(z,G){return L.H.useLayoutEffect(z,G)},Ee.useMemo=function(z,G){return L.H.useMemo(z,G)},Ee.useOptimistic=function(z,G){return L.H.useOptimistic(z,G)},Ee.useReducer=function(z,G,ae){return L.H.useReducer(z,G,ae)},Ee.useRef=function(z){return L.H.useRef(z)},Ee.useState=function(z){return L.H.useState(z)},Ee.useSyncExternalStore=function(z,G,ae){return L.H.useSyncExternalStore(z,G,ae)},Ee.useTransition=function(){return L.H.useTransition()},Ee.version="19.2.5",Ee}var Dy;function hl(){return Dy||(Dy=1,W0.exports=dk()),W0.exports}var g=hl();const $e=C9(g);var A8=g.createContext(void 0),xt=e=>{const t=g.useContext(A8);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},fk=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(A8.Provider,{value:e,children:t})),E8=g.createContext(!1),T8=()=>g.useContext(E8);E8.Provider;function mk(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var pk=g.createContext(mk()),j8=()=>g.useContext(pk),M8=(e,t,a)=>{const o=a?.state.error&&typeof e.throwOnError=="function"?cm(e.throwOnError,[a.state.error,a]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||o)&&(t.isReset()||(e.retryOnMount=!1))},O8=e=>{g.useEffect(()=>{e.clearReset()},[e])},N8=({result:e,errorResetBoundary:t,throwOnError:a,query:o,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&o&&(n&&e.data===void 0||cm(a,[e.error,o])),z8=(e,t)=>t.state.data===void 0,R8=e=>{if(e.suspense){const a=n=>n==="static"?n:Math.max(n??1e3,1e3),o=e.staleTime;e.staleTime=typeof o=="function"?(...n)=>a(o(...n)):a(o),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},hk=(e,t)=>e.isLoading&&e.isFetching&&!t,z1=(e,t)=>e?.suspense&&t.isPending,R1=(e,t,a)=>t.fetchOptimistic(e).catch(()=>{a.clearReset()});function gk({queries:e,...t},a){const o=xt(),n=T8(),s=j8(),c=g.useMemo(()=>e.map($=>{const A=o.defaultQueryOptions($);return A._optimisticResults=n?"isRestoring":"optimistic",A}),[e,o,n]);c.forEach($=>{R8($);const A=o.getQueryCache().get($.queryHash);M8($,s,A)}),O8(s);const[d]=g.useState(()=>new lk(o,c,t)),[m,p,y]=d.getOptimisticResult(c,t.combine),b=!n&&t.subscribed!==!1;g.useSyncExternalStore(g.useCallback($=>b?d.subscribe(Tt.batchCalls($)):cn,[d,b]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),g.useEffect(()=>{d.setQueries(c,t)},[c,t,d]);const _=m.some(($,A)=>z1(c[A],$))?m.flatMap(($,A)=>{const E=c[A];if(E&&z1(E,$)){const T=new Iu(o,E);return R1(E,T,s)}return[]}):[];if(_.length>0)throw Promise.all(_);const w=m.find(($,A)=>{const E=c[A];return E&&N8({result:$,errorResetBoundary:s,throwOnError:E.throwOnError,query:o.getQueryCache().get(E.queryHash),suspense:E.suspense})});if(w?.error)throw w.error;return p(y())}function C8(e,t,a){const o=T8(),n=j8(),s=xt(),c=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(c);const d=s.getQueryCache().get(c.queryHash);c._optimisticResults=o?"isRestoring":"optimistic",R8(c),M8(c,n,d),O8(n);const m=!s.getQueryCache().get(c.queryHash),[p]=g.useState(()=>new t(s,c)),y=p.getOptimisticResult(c),b=!o&&e.subscribed!==!1;if(g.useSyncExternalStore(g.useCallback(x=>{const _=b?p.subscribe(Tt.batchCalls(x)):cn;return p.updateResult(),_},[p,b]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),g.useEffect(()=>{p.setOptions(c)},[c,p]),z1(c,y))throw R1(c,p,n);if(N8({result:y,errorResetBoundary:n,throwOnError:c.throwOnError,query:d,suspense:c.suspense}))throw y.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(c,y),c.experimental_prefetchInRender&&!tl.isServer()&&hk(y,o)&&(m?R1(c,p,n):d?.promise)?.catch(cn).finally(()=>{p.updateResult()}),c.notifyOnChangeProps?y:p.trackResult(y)}function vk(e,t){return C8(e,Iu)}function It(e,t){return C8({...e,enabled:!0,suspense:!0,throwOnError:z8,placeholderData:void 0},Iu)}function yk(e,t){return gk({...e,queries:e.queries.map(a=>({...a,suspense:!0,throwOnError:z8,enabled:!0,placeholderData:void 0}))})}function dt(e,t){const a=xt(),[o]=g.useState(()=>new ok(a,e));g.useEffect(()=>{o.setOptions(e)},[o,e]);const n=g.useSyncExternalStore(g.useCallback(c=>o.subscribe(Tt.batchCalls(c)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),s=g.useCallback((c,d)=>{o.mutate(c,d).catch(cn)},[o]);if(n.error&&cm(o.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:s,mutateAsync:n.mutate}}var Bs=typeof window<"u"?g.useLayoutEffect:g.useEffect;function e1(e){const t=g.useRef({value:e,prev:null}),a=t.current.value;return e!==a&&(t.current={value:e,prev:a}),t.current.prev}function bk(e,t,a={},o={}){g.useEffect(()=>{if(!e.current||o.disabled||typeof IntersectionObserver!="function")return;const n=new IntersectionObserver(([s])=>{t(s)},a);return n.observe(e.current),()=>{n.disconnect()}},[t,a,o.disabled,e])}function _k(e){const t=g.useRef(null);return g.useImperativeHandle(e,()=>t.current,[]),t}const D8=!1;function nl(e){return e[e.length-1]}function xk(e){return typeof e=="function"}function Ra(e,t){return xk(e)?e(t):e}const P8=Object.prototype.hasOwnProperty,Py=Object.prototype.propertyIsEnumerable;function L8(e){for(const t in e)if(P8.call(e,t))return!0;return!1}const Sk=()=>Object.create(null),fi=(e,t)=>hi(e,t,Sk);function hi(e,t,a=()=>({}),o=0){if(e===t)return e;if(o>500)return t;const n=t,s=Uy(e)&&Uy(n);if(!s&&!(jo(e)&&jo(n)))return n;const c=s?e:Ly(e);if(!c)return n;const d=s?n:Ly(n);if(!d)return n;const m=c.length,p=d.length,y=s?new Array(p):a();let b=0;for(let x=0;x<p;x++){const _=s?x:d[x],w=e[_],$=n[_];if(w===$){y[_]=w,(s?x<m:P8.call(e,_))&&b++;continue}if(w===null||$===null||typeof w!="object"||typeof $!="object"){y[_]=$;continue}const A=hi(w,$,a,o+1);y[_]=A,A===w&&b++}return m===p&&b===m?e:y}function Ly(e){const t=Object.getOwnPropertyNames(e);for(const n of t)if(!Py.call(e,n))return!1;const a=Object.getOwnPropertySymbols(e);if(a.length===0)return t;const o=t;for(const n of a){if(!Py.call(e,n))return!1;o.push(n)}return o}function jo(e){if(!Iy(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const a=t.prototype;return!(!Iy(a)||!a.hasOwnProperty("isPrototypeOf"))}function Iy(e){return Object.prototype.toString.call(e)==="[object Object]"}function Uy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function bi(e,t,a){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let o=0,n=e.length;o<n;o++)if(!bi(e[o],t[o],a))return!1;return!0}if(jo(e)&&jo(t)){const o=a?.ignoreUndefined??!0;if(a?.partial){for(const c in t)if((!o||t[c]!==void 0)&&!bi(e[c],t[c],a))return!1;return!0}let n=0;if(!o)n=Object.keys(e).length;else for(const c in e)e[c]!==void 0&&n++;let s=0;for(const c in t)if((!o||t[c]!==void 0)&&(s++,s>n||!bi(e[c],t[c],a)))return!1;return n===s}return!1}function Mo(e){let t,a;const o=new Promise((n,s)=>{t=n,a=s});return o.status="pending",o.resolve=n=>{o.status="resolved",o.value=n,t(n),e?.(n)},o.reject=n=>{o.status="rejected",a(n)},o}function rl(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function wk(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function Zy(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,a=>{try{return decodeURI(a)}catch{return a}})}return wk(t)}const kk=["http:","https:","mailto:","tel:"];function xu(e,t){if(!e)return!1;try{const a=new URL(e);return!t.has(a.protocol)}catch{return!1}}function Ls(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let a=0,o="",n;for(;(n=t.exec(e))!==null;)o+=Zy(e.slice(a,n.index))+n[0],a=t.lastIndex;o=o+Zy(a?e.slice(a):e);let s=!1;return o.startsWith("//")&&(s=!0,o="/"+o.replace(/^\/+/,"")),{path:o,handledProtocolRelativeURL:s}}function $k(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function Ak(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}function ta(){throw new Error("Invariant failed")}function al(e){const t=new Map;let a,o;const n=s=>{s.next&&(s.prev?(s.prev.next=s.next,s.next.prev=s.prev,s.next=void 0,o&&(o.next=s,s.prev=o)):(s.next.prev=void 0,a=s.next,s.next=void 0,o&&(s.prev=o,o.next=s)),o=s)};return{get(s){const c=t.get(s);if(c)return n(c),c.value},set(s,c){if(t.size>=e&&a){const m=a;t.delete(m.key),m.next&&(a=m.next,m.next.prev=void 0),m===o&&(o=void 0)}const d=t.get(s);if(d)d.value=c,n(d);else{const m={key:s,value:c,prev:o};o&&(o.next=m),o=m,a||(a=m),t.set(s,m)}},clear(){t.clear(),a=void 0,o=void 0}}}const Ca=4,I8=5;function Ek(e){const t=e.indexOf("{");if(t===-1)return null;const a=e.indexOf("}",t);return a===-1||t+1>=e.length?null:[t,a]}function U8(e,t,a=new Uint16Array(6)){const o=e.indexOf("/",t),n=o===-1?e.length:o,s=e.substring(t,n);if(!s||!s.includes("$"))return a[0]=0,a[1]=t,a[2]=t,a[3]=n,a[4]=n,a[5]=n,a;if(s==="$"){const d=e.length;return a[0]=2,a[1]=t,a[2]=t,a[3]=d,a[4]=d,a[5]=d,a}if(s.charCodeAt(0)===36)return a[0]=1,a[1]=t,a[2]=t+1,a[3]=n,a[4]=n,a[5]=n,a;const c=Ek(s);if(c){const[d,m]=c,p=s.charCodeAt(d+1);if(p===45){if(d+2<s.length&&s.charCodeAt(d+2)===36){const y=d+3,b=m;if(y<b)return a[0]=3,a[1]=t+d,a[2]=t+y,a[3]=t+b,a[4]=t+m+1,a[5]=n,a}}else if(p===36){const y=d+1,b=d+2;return b===m?(a[0]=2,a[1]=t+d,a[2]=t+y,a[3]=t+b,a[4]=t+m+1,a[5]=e.length,a):(a[0]=1,a[1]=t+d,a[2]=t+b,a[3]=t+m,a[4]=t+m+1,a[5]=n,a)}}return a[0]=0,a[1]=t,a[2]=t,a[3]=n,a[4]=n,a[5]=n,a}function Uu(e,t,a,o,n,s,c){c?.(a);let d=o;{const m=a.fullPath??a.from,p=m.length,y=a.options?.caseSensitive??e,b=a.options?.params?.parse??a.options?.parseParams;for(;d<p;){const _=U8(m,d,t);let w;const $=d,A=_[5];switch(d=A+1,s++,_[0]){case 0:{const E=m.substring(_[2],_[3]);if(y){const T=n.static?.get(E);if(T)w=T;else{n.static??=new Map;const N=gi(a.fullPath??a.from);N.parent=n,N.depth=s,w=N,n.static.set(E,N)}}else{const T=E.toLowerCase(),N=n.staticInsensitive?.get(T);if(N)w=N;else{n.staticInsensitive??=new Map;const M=gi(a.fullPath??a.from);M.parent=n,M.depth=s,w=M,n.staticInsensitive.set(T,M)}}break}case 1:{const E=m.substring($,_[1]),T=m.substring(_[4],A),N=y&&!!(E||T),M=E?N?E:E.toLowerCase():void 0,U=T?N?T:T.toLowerCase():void 0,K=!b&&n.dynamic?.find(L=>!L.parse&&L.caseSensitive===N&&L.prefix===M&&L.suffix===U);if(K)w=K;else{const L=n1(1,a.fullPath??a.from,N,M,U);w=L,L.depth=s,L.parent=n,n.dynamic??=[],n.dynamic.push(L)}break}case 3:{const E=m.substring($,_[1]),T=m.substring(_[4],A),N=y&&!!(E||T),M=E?N?E:E.toLowerCase():void 0,U=T?N?T:T.toLowerCase():void 0,K=!b&&n.optional?.find(L=>!L.parse&&L.caseSensitive===N&&L.prefix===M&&L.suffix===U);if(K)w=K;else{const L=n1(3,a.fullPath??a.from,N,M,U);w=L,L.parent=n,L.depth=s,n.optional??=[],n.optional.push(L)}break}case 2:{const E=m.substring($,_[1]),T=m.substring(_[4],A),N=y&&!!(E||T),M=E?N?E:E.toLowerCase():void 0,U=T?N?T:T.toLowerCase():void 0,K=n1(2,a.fullPath??a.from,N,M,U);w=K,K.parent=n,K.depth=s,n.wildcard??=[],n.wildcard.push(K)}}n=w}if(b&&a.children&&!a.isRoot&&a.id&&a.id.charCodeAt(a.id.lastIndexOf("/")+1)===95){const _=gi(a.fullPath??a.from);_.kind=I8,_.parent=n,s++,_.depth=s,n.pathless??=[],n.pathless.push(_),n=_}const x=(a.path||!a.children)&&!a.isRoot;if(x&&m.endsWith("/")){const _=gi(a.fullPath??a.from);_.kind=Ca,_.parent=n,s++,_.depth=s,n.index=_,n=_}n.parse=b??null,x&&!n.route&&(n.route=a,n.fullPath=a.fullPath??a.from)}if(a.children)for(const m of a.children)Uu(e,t,m,d,n,s,c)}function t1(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Na(e){if(e.pathless)for(const t of e.pathless)Na(t);if(e.static)for(const t of e.static.values())Na(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())Na(t);if(e.dynamic?.length){e.dynamic.sort(t1);for(const t of e.dynamic)Na(t)}if(e.optional?.length){e.optional.sort(t1);for(const t of e.optional)Na(t)}if(e.wildcard?.length){e.wildcard.sort(t1);for(const t of e.wildcard)Na(t)}}function gi(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null}}function n1(e,t,a,o,n){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,caseSensitive:a,prefix:o,suffix:n}}function Tk(e,t){const a=gi("/"),o=new Uint16Array(6);for(const n of e)Uu(!1,o,n,1,a,0);Na(a),t.masksTree=a,t.flatCache=al(1e3)}function jk(e,t){e||="/";const a=t.flatCache.get(e);if(a)return a;const o=dm(e,t.masksTree);return t.flatCache.set(e,o),o}function Mk(e,t,a,o,n){e||="/",o||="/";const s=t?`case\0${e}`:e;let c=n.singleCache.get(s);return c||(c=gi("/"),Uu(t,new Uint16Array(6),{from:e},1,c,0),n.singleCache.set(s,c)),dm(o,c,a)}function Ok(e,t,a=!1){const o=a?e:`nofuzz\0${e}`,n=t.matchCache.get(o);if(n!==void 0)return n;e||="/";let s;try{s=dm(e,t.segmentTree,a)}catch(c){if(c instanceof URIError)s=null;else throw c}return s&&(s.branch=V8(s.route)),t.matchCache.set(o,s),s}function Nk(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function zk(e,t=!1,a){const o=gi(e.fullPath),n=new Uint16Array(6),s={},c={};let d=0;return Uu(t,n,e,1,o,0,m=>{if(a?.(m,d),m.id in s&&ta(),s[m.id]=m,d!==0&&m.path){const p=Nk(m.fullPath);(!c[p]||m.fullPath.endsWith("/"))&&(c[p]=m)}d++}),Na(o),{processedTree:{segmentTree:o,singleCache:al(1e3),matchCache:al(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:c}}function dm(e,t,a=!1){const o=e.split("/"),n=Ck(e,o,t,a);if(!n)return null;const[s]=Z8(e,o,n);return{route:n.node.route,rawParams:s}}function Z8(e,t,a){const o=Rk(a.node);let n=null;const s=Object.create(null);let c=a.extract?.part??0,d=a.extract?.node??0,m=a.extract?.path??0,p=a.extract?.segment??0;for(;d<o.length;c++,d++,m++,p++){const y=o[d];if(y.kind===Ca)break;if(y.kind===I8){p--,c--,m--;continue}const b=t[c],x=m;if(b&&(m+=b.length),y.kind===1){n??=a.node.fullPath.split("/");const _=n[p],w=y.prefix?.length??0;if(_.charCodeAt(w)===123){const $=y.suffix?.length??0,A=_.substring(w+2,_.length-$-1),E=b.substring(w,b.length-$);s[A]=decodeURIComponent(E)}else{const $=_.substring(1);s[$]=decodeURIComponent(b)}}else if(y.kind===3){if(a.skipped&1<<d){c--,m=x-1;continue}n??=a.node.fullPath.split("/");const _=n[p],w=y.prefix?.length??0,$=y.suffix?.length??0,A=_.substring(w+3,_.length-$-1),E=y.suffix||y.prefix?b.substring(w,b.length-$):b;E&&(s[A]=decodeURIComponent(E))}else if(y.kind===2){const _=y,w=e.substring(x+(_.prefix?.length??0),e.length-(_.suffix?.length??0)),$=decodeURIComponent(w);s["*"]=$,s._splat=$;break}}return a.rawParams&&Object.assign(s,a.rawParams),[s,{part:c,node:d,path:m,segment:p}]}function V8(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Rk(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Ck(e,t,a,o){if(e==="/"&&a.index)return{node:a.index,skipped:0};const n=!nl(t),s=n&&e!=="/",c=t.length-(n?1:0),d=[{node:a,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let m=null,p=null;for(;d.length;){const y=d.pop(),{node:b,index:x,skipped:_,depth:w,statics:$,dynamics:A,optionals:E}=y;let{extract:T,rawParams:N}=y;if(b.kind===2&&b.route&&!su(p,y))continue;if(b.parse){if(!Vy(e,t,y))continue;N=y.rawParams,T=y.extract}o&&b.route&&b.kind!==Ca&&su(m,y)&&(m=y);const M=x===c;if(M&&(b.route&&(!s||b.kind===Ca||b.kind===2)&&su(p,y)&&(p=y),!b.optional&&!b.wildcard&&!b.index&&!b.pathless))continue;const U=M?void 0:t[x];let K;if(M&&b.index){const L={node:b.index,index:x,skipped:_,depth:w+1,statics:$,dynamics:A,optionals:E,extract:T,rawParams:N};let B=!0;if(b.index.parse&&(Vy(e,t,L)||(B=!1)),B){if(!A&&!E&&!_&&Dk($,c))return L;su(p,L)&&(p=L)}}if(b.wildcard)for(let L=b.wildcard.length-1;L>=0;L--){const B=b.wildcard[L],{prefix:H,suffix:ne}=B;if(!(H&&(M||!(B.caseSensitive?U:K??=U.toLowerCase()).startsWith(H)))){if(ne){if(M)continue;const ie=t.slice(x).join("/").slice(-ne.length);if((B.caseSensitive?ie:ie.toLowerCase())!==ne)continue}d.push({node:B,index:c,skipped:_,depth:w+1,statics:$,dynamics:A,optionals:E,extract:T,rawParams:N})}}if(b.optional){const L=_|1<<w,B=w+1;for(let H=b.optional.length-1;H>=0;H--){const ne=b.optional[H];d.push({node:ne,index:x,skipped:L,depth:B,statics:$,dynamics:A,optionals:E,extract:T,rawParams:N})}if(!M)for(let H=b.optional.length-1;H>=0;H--){const ne=b.optional[H],{prefix:ie,suffix:W}=ne;if(ie||W){const ce=ne.caseSensitive?U:K??=U.toLowerCase();if(ie&&!ce.startsWith(ie)||W&&!ce.endsWith(W))continue}d.push({node:ne,index:x+1,skipped:_,depth:B,statics:$,dynamics:A,optionals:E+ou(c,x),extract:T,rawParams:N})}}if(!M&&b.dynamic&&U)for(let L=b.dynamic.length-1;L>=0;L--){const B=b.dynamic[L],{prefix:H,suffix:ne}=B;if(H||ne){const ie=B.caseSensitive?U:K??=U.toLowerCase();if(H&&!ie.startsWith(H)||ne&&!ie.endsWith(ne))continue}d.push({node:B,index:x+1,skipped:_,depth:w+1,statics:$,dynamics:A+ou(c,x),optionals:E,extract:T,rawParams:N})}if(!M&&b.staticInsensitive){const L=b.staticInsensitive.get(K??=U.toLowerCase());L&&d.push({node:L,index:x+1,skipped:_,depth:w+1,statics:$+ou(c,x),dynamics:A,optionals:E,extract:T,rawParams:N})}if(!M&&b.static){const L=b.static.get(U);L&&d.push({node:L,index:x+1,skipped:_,depth:w+1,statics:$+ou(c,x),dynamics:A,optionals:E,extract:T,rawParams:N})}if(b.pathless){const L=w+1;for(let B=b.pathless.length-1;B>=0;B--){const H=b.pathless[B];d.push({node:H,index:x,skipped:_,depth:L,statics:$,dynamics:A,optionals:E,extract:T,rawParams:N})}}}if(p)return p;if(o&&m){let y=m.index;for(let x=0;x<m.index;x++)y+=t[x].length;const b=y===e.length?"/":e.slice(y);return m.rawParams??=Object.create(null),m.rawParams["**"]=decodeURIComponent(b),m}return null}function ou(e,t){return 2**(e-t-1)}function Dk(e,t){return e===2**(t-1)-1}function Vy(e,t,a){let o,n;try{[o,n]=Z8(e,t,a)}catch{return null}if(a.rawParams=o,a.extract=n,!a.node.parse)return!0;try{if(a.node.parse(o)===!1)return null}catch{}return!0}function su(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Ca)>(e.node.kind===Ca)||t.node.kind===Ca==(e.node.kind===Ca)&&t.depth>e.depth))):!0}function gu(e){return fm(e.filter(t=>t!==void 0).join("/"))}function fm(e){return e.replace(/\/{2,}/g,"/")}function H8(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function ea(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function F8(e){return ea(H8(e))}function Su(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function Pk(e,t,a){return Su(e,a)===Su(t,a)}function Lk({base:e,to:t,trailingSlash:a="never",cache:o}){const n=t.startsWith("/"),s=!n&&t===".";let c;if(o){c=n?t:s?e:e+"\0"+t;const p=o.get(c);if(p)return p}let d;if(s)d=e.split("/");else if(n)d=t.split("/");else{for(d=e.split("/");d.length>1&&nl(d)==="";)d.pop();const p=t.split("/");for(let y=0,b=p.length;y<b;y++){const x=p[y];x===""?y?y===b-1&&d.push(x):d=[x]:x===".."?d.pop():x==="."||d.push(x)}}d.length>1&&(nl(d)===""?a==="never"&&d.pop():a==="always"&&d.push(""));const m=fm(d.join("/"))||"/";return c&&o&&o.set(c,m),m}function Ik(e){const t=new Map(e.map(n=>[encodeURIComponent(n),n])),a=Array.from(t.keys()).map(n=>n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),o=new RegExp(a,"g");return n=>n.replace(o,s=>t.get(s)??s)}function r1(e,t,a){const o=t[e];return typeof o!="string"?o:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(o)?o:o.split("/").map(n=>Fy(n,a)).join("/"):Fy(o,a)}function Hy({path:e,params:t,decoder:a,...o}){let n=!1;const s=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:s,isMissingParams:n};if(!e.includes("$"))return{interpolatedPath:e,usedParams:s,isMissingParams:n};const c=e.length;let d=0,m,p="";for(;d<c;){const y=d;m=U8(e,y,m);const b=m[5];if(d=b+1,y===b)continue;const x=m[0];if(x===0){p+="/"+e.substring(y,b);continue}if(x===2){const _=t._splat;s._splat=_,s["*"]=_;const w=e.substring(y,m[1]),$=e.substring(m[4],b);if(!_){n=!0,(w||$)&&(p+="/"+w+$);continue}const A=r1("_splat",t,a);p+="/"+w+A+$;continue}if(x===1){const _=e.substring(m[2],m[3]);!n&&!(_ in t)&&(n=!0),s[_]=t[_];const w=e.substring(y,m[1]),$=e.substring(m[4],b),A=r1(_,t,a)??"undefined";p+="/"+w+A+$;continue}if(x===3){const _=e.substring(m[2],m[3]),w=t[_];if(w==null)continue;s[_]=w;const $=e.substring(y,m[1]),A=e.substring(m[4],b),E=r1(_,t,a)??"";p+="/"+$+E+A;continue}}return e.endsWith("/")&&(p+="/"),{usedParams:s,interpolatedPath:p||"/",isMissingParams:n}}function Fy(e,t){const a=encodeURIComponent(e);return t?.(a)??a}function fn(e){return e?.isNotFound===!0}function Uk(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}const Zk="tsr-scroll-restoration-v1_3";function Vk(){const e=Uk();if(!e)return null;let t={};try{const o=JSON.parse(e.getItem("tsr-scroll-restoration-v1_3")||"{}");jo(o)&&(t=o)}catch{}return{get state(){return t},set:o=>{t=Ra(o,t)||t},persist:()=>{try{e.setItem(Zk,JSON.stringify(t))}catch{}}}}const qy=Vk(),Hk=e=>e.state.__TSR_key||e.href;function Fk(e){const t=[];let a;for(;a=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(a.children,e)+1})`),e=a;return`${t.reverse().join(" > ")}`.toLowerCase()}let lu=!1;const Is="window",By="data-scroll-restoration-id";function qk(e,t){if(!qy)return;const a=qy;if((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!a)return;e.isScrollRestorationSetup=!0,lu=!1;const o=e.options.getScrollRestorationKey||Hk,n=new Map;window.history.scrollRestoration="manual";const s=d=>{if(!(lu||!e.isScrollRestoring))if(d.target===document||d.target===window)n.set(Is,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const m=d.target;n.set(m,{scrollX:m.scrollLeft||0,scrollY:m.scrollTop||0})}},c=d=>{if(!e.isScrollRestoring||!d||n.size===0||!a)return;const m=a.state[d]||={};for(const[p,y]of n){let b;if(p===Is)b=Is;else if(p.isConnected){const x=p.getAttribute(By);b=x?`[${By}="${x}"]`:Fk(p)}b&&(m[b]=y)}};document.addEventListener("scroll",s,!0),e.subscribe("onBeforeLoad",d=>{c(d.fromLocation?o(d.fromLocation):void 0),n.clear()}),window.addEventListener("pagehide",()=>{c(o(e.stores.resolvedLocation.get()??e.stores.location.get())),a.persist()}),e.subscribe("onRendered",d=>{const m=o(d.toLocation),p=e.options.scrollRestorationBehavior,y=e.options.scrollToTopSelectors;if(n.clear(),!e.resetNextScroll){e.resetNextScroll=!0;return}if(!(typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))){lu=!0;try{const b=e.isScrollRestoring?a.state[m]:void 0;let x=!1;if(b)for(const _ in b){const w=b[_];if(!jo(w))continue;const{scrollX:$,scrollY:A}=w;if(!(!Number.isFinite($)||!Number.isFinite(A))){if(_===Is)window.scrollTo({top:A,left:$,behavior:p}),x=!0;else if(_){let E;try{E=document.querySelector(_)}catch{continue}E&&(E.scrollLeft=$,E.scrollTop=A,x=!0)}}}if(!x){const _=e.history.location.hash.slice(1);if(_){const w=window.history.state?.__hashScrollIntoViewOptions??!0;if(w){const $=document.getElementById(_);$&&$.scrollIntoView(w)}}else{const w={top:0,left:0,behavior:p};if(window.scrollTo(w),y)for(const $ of y){if($===Is)continue;const A=typeof $=="function"?$():document.querySelector($);A&&A.scrollTo(w)}}}}finally{lu=!1}e.isScrollRestoring&&a.set(b=>(b[m]||={},b))}})}function Bk(e,t=String){const a=new URLSearchParams;for(const o in e){const n=e[o];n!==void 0&&a.set(o,t(n))}return a.toString()}function a1(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function Kk(e){const t=new URLSearchParams(e),a=Object.create(null);for(const[o,n]of t.entries()){const s=a[o];s==null?a[o]=a1(n):Array.isArray(s)?s.push(a1(n)):a[o]=[s,a1(n)]}return a}const Qk=Jk(JSON.parse),Gk=Xk(JSON.stringify,JSON.parse);function Jk(e){return t=>{t[0]==="?"&&(t=t.substring(1));const a=Kk(t);for(const o in a){const n=a[o];if(typeof n=="string")try{a[o]=e(n)}catch{}}return a}}function Xk(e,t){const a=typeof t=="function";function o(n){if(typeof n=="object"&&n!==null)try{return e(n)}catch{}else if(a&&typeof n=="string")try{return t(n),e(n)}catch{}return n}return n=>{const s=Bk(n,o);return s?`?${s}`:""}}const _i="__root__";function ra(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const a=new Response(null,{status:e.statusCode,headers:t});if(a.options=e,e.throw)throw a;return a}function En(e){return e instanceof Response&&!!e.options}function Yk(e){return{input:({url:t})=>{for(const a of e)t=C1(a,t);return t},output:({url:t})=>{for(let a=e.length-1;a>=0;a--)t=q8(e[a],t);return t}}}function Wk(e){const t=F8(e.basepath),a=`/${t}`,o=`${a}/`,n=e.caseSensitive?a:a.toLowerCase(),s=e.caseSensitive?o:o.toLowerCase();return{input:({url:c})=>{const d=e.caseSensitive?c.pathname:c.pathname.toLowerCase();return d===n?c.pathname="/":d.startsWith(s)&&(c.pathname=c.pathname.slice(a.length)),c},output:({url:c})=>(c.pathname=gu(["/",t,c.pathname]),c)}}function C1(e,t){const a=e?.input?.({url:t});if(a){if(typeof a=="string")return new URL(a);if(a instanceof URL)return a}return t}function q8(e,t){const a=e?.output?.({url:t});if(a){if(typeof a=="string")return new URL(a);if(a instanceof URL)return a}return t}function e$(e,t){const{createMutableStore:a,createReadonlyStore:o,batch:n,init:s}=t,c=new Map,d=new Map,m=new Map,p=a(e.status),y=a(e.loadedAt),b=a(e.isLoading),x=a(e.isTransitioning),_=a(e.location),w=a(e.resolvedLocation),$=a(e.statusCode),A=a(e.redirect),E=a([]),T=a([]),N=a([]),M=o(()=>i1(c,E.get())),U=o(()=>i1(d,T.get())),K=o(()=>i1(m,N.get())),L=o(()=>E.get()[0]),B=o(()=>E.get().some(ee=>c.get(ee)?.get().status==="pending")),H=o(()=>({locationHref:_.get().href,resolvedLocationHref:w.get()?.href,status:p.get()})),ne=o(()=>({status:p.get(),loadedAt:y.get(),isLoading:b.get(),isTransitioning:x.get(),matches:M.get(),location:_.get(),resolvedLocation:w.get(),statusCode:$.get(),redirect:A.get()})),ie=al(64);function W(ee){let he=ie.get(ee);return he||(he=o(()=>{const we=E.get();for(const De of we){const z=c.get(De);if(z&&z.routeId===ee)return z.get()}}),ie.set(ee,he)),he}const ce={status:p,loadedAt:y,isLoading:b,isTransitioning:x,location:_,resolvedLocation:w,statusCode:$,redirect:A,matchesId:E,pendingIds:T,cachedIds:N,matches:M,pendingMatches:U,cachedMatches:K,firstId:L,hasPending:B,matchRouteDeps:H,matchStores:c,pendingMatchStores:d,cachedMatchStores:m,__store:ne,getRouteMatchStore:W,setMatches:pe,setPending:Ae,setCached:q};pe(e.matches),s?.(ce);function pe(ee){o1(ee,c,E,a,n)}function Ae(ee){o1(ee,d,T,a,n)}function q(ee){o1(ee,m,N,a,n)}return ce}function i1(e,t){const a=[];for(const o of t){const n=e.get(o);n&&a.push(n.get())}return a}function o1(e,t,a,o,n){const s=e.map(d=>d.id),c=new Set(s);n(()=>{for(const d of t.keys())c.has(d)||t.delete(d);for(const d of e){const m=t.get(d.id);if(!m){const p=o(d);p.routeId=d.routeId,t.set(d.id,p);continue}m.routeId=d.routeId,m.get()!==d&&m.set(d)}Ak(a.get(),s)||a.set(s)})}const D1=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},t$=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Zu=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),xi=(e,t,a=!0)=>{const o={...e.router.options.context??{}},n=a?t:t-1;for(let s=0;s<=n;s++){const c=e.matches[s];if(!c)continue;const d=e.router.getMatch(c.id);d&&Object.assign(o,d.__routeContext,d.__beforeLoadContext)}return o},Ky=(e,t)=>{if(!e.matches.length)return;const a=t.routeId,o=e.matches.findIndex(c=>c.routeId===e.router.routeTree.id),n=o>=0?o:0;let s=a?e.matches.findIndex(c=>c.routeId===a):e.firstBadMatchIndex??e.matches.length-1;s<0&&(s=n);for(let c=s;c>=0;c--){const d=e.matches[c];if(e.router.looseRoutesById[d.routeId].options.notFoundComponent)return c}return a?s:n},Da=(e,t,a)=>{if(!(!En(a)&&!fn(a)))throw En(a)&&a.redirectHandled&&!a.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=a,e.updateMatch(t.id,o=>({...o,status:En(a)?"redirected":fn(a)?"notFound":o.status==="pending"?"success":o.status,context:xi(e,t.index),isFetching:!1,error:a})),fn(a)&&!a.routeId&&(a.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),En(a)&&(e.rendered=!0,a.options._fromLocation=e.location,a.redirectHandled=!0,a=e.router.resolveRedirect(a))),a},B8=(e,t)=>{const a=e.router.getMatch(t);return!!(!a||a._nonReactive.dehydrated)},Qy=(e,t,a)=>{const o=xi(e,a);e.updateMatch(t,n=>({...n,context:o}))},Us=(e,t,a,o)=>{const{id:n,routeId:s}=e.matches[t],c=e.router.looseRoutesById[s];if(a instanceof Promise)throw a;a.routerCode=o,e.firstBadMatchIndex??=t,Da(e,e.router.getMatch(n),a);try{c.options.onError?.(a)}catch(d){a=d,Da(e,e.router.getMatch(n),a)}e.updateMatch(n,d=>(d._nonReactive.beforeLoadPromise?.resolve(),d._nonReactive.beforeLoadPromise=void 0,d._nonReactive.loadPromise?.resolve(),{...d,error:a,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!En(a)&&!fn(a)&&(e.serialError??=a)},K8=(e,t,a,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const n=a.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Zu(e,t)&&(a.options.loader||a.options.beforeLoad||G8(a))&&typeof n=="number"&&n!==1/0&&(a.options.pendingComponent??e.router.options?.defaultPendingComponent)){const s=setTimeout(()=>{D1(e)},n);o._nonReactive.pendingTimeout=s}},n$=(e,t,a)=>{const o=e.router.getMatch(t);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;K8(e,t,a,o);const n=()=>{const s=e.router.getMatch(t);s.preload&&(s.status==="redirected"||s.status==="notFound")&&Da(e,s,s.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(n):n()},r$=(e,t,a,o)=>{const n=e.router.getMatch(t);let s=n._nonReactive.loadPromise;n._nonReactive.loadPromise=Mo(()=>{s?.resolve(),s=void 0});const{paramsError:c,searchError:d}=n;c&&Us(e,a,c,"PARSE_PARAMS"),d&&Us(e,a,d,"VALIDATE_SEARCH"),K8(e,t,o,n);const m=new AbortController;let p=!1;const y=()=>{p||(p=!0,e.updateMatch(t,M=>({...M,isFetching:"beforeLoad",fetchCount:M.fetchCount+1,abortController:m})))},b=()=>{n._nonReactive.beforeLoadPromise?.resolve(),n._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,M=>({...M,isFetching:!1}))};if(!o.options.beforeLoad){e.router.batch(()=>{y(),b()});return}n._nonReactive.beforeLoadPromise=Mo();const x={...xi(e,a,!1),...n.__routeContext},{search:_,params:w,cause:$}=n,A=Zu(e,t),E={search:_,abortController:m,params:w,preload:A,context:x,location:e.location,navigate:M=>e.router.navigate({...M,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:A?"preload":$,matches:e.matches,routeId:o.id,...e.router.options.additionalContext},T=M=>{if(M===void 0){e.router.batch(()=>{y(),b()});return}(En(M)||fn(M))&&(y(),Us(e,a,M,"BEFORE_LOAD")),e.router.batch(()=>{y(),e.updateMatch(t,U=>({...U,__beforeLoadContext:M})),b()})};let N;try{if(N=o.options.beforeLoad(E),rl(N))return y(),N.catch(M=>{Us(e,a,M,"BEFORE_LOAD")}).then(T)}catch(M){y(),Us(e,a,M,"BEFORE_LOAD")}T(N)},a$=(e,t)=>{const{id:a,routeId:o}=e.matches[t],n=e.router.looseRoutesById[o],s=()=>d(),c=()=>r$(e,a,t,n),d=()=>{if(B8(e,a))return;const m=n$(e,a,n);return rl(m)?m.then(c):c()};return s()},i$=(e,t,a)=>{const o=e.router.getMatch(t);if(!o||!a.options.head&&!a.options.scripts&&!a.options.headers)return;const n={ssr:e.router.options.ssr,matches:e.matches,match:o,params:o.params,loaderData:o.loaderData};return Promise.all([a.options.head?.(n),a.options.scripts?.(n),a.options.headers?.(n)]).then(([s,c,d])=>({meta:s?.meta,links:s?.links,headScripts:s?.scripts,headers:d,scripts:c,styles:s?.styles}))},Q8=(e,t,a,o,n)=>{const s=t[o-1],{params:c,loaderDeps:d,abortController:m,cause:p}=e.router.getMatch(a),y=xi(e,o),b=Zu(e,a);return{params:c,deps:d,preload:!!b,parentMatchPromise:s,abortController:m,context:y,location:e.location,navigate:x=>e.router.navigate({...x,_fromLocation:e.location}),cause:b?"preload":p,route:n,...e.router.options.additionalContext}},Gy=async(e,t,a,o,n)=>{try{const s=e.router.getMatch(a);try{(!(D8??e.router.isServer)||s.ssr===!0)&&il(n);const c=n.options.loader,d=typeof c=="function"?c:c?.handler,m=d?.(Q8(e,t,a,o,n)),p=!!d&&rl(m);if((p||n._lazyPromise||n._componentsPromise||n.options.head||n.options.scripts||n.options.headers||s._nonReactive.minPendingPromise)&&e.updateMatch(a,b=>({...b,isFetching:"loader"})),d){const b=p?await m:m;Da(e,e.router.getMatch(a),b),b!==void 0&&e.updateMatch(a,x=>({...x,loaderData:b}))}n._lazyPromise&&await n._lazyPromise;const y=s._nonReactive.minPendingPromise;y&&await y,n._componentsPromise&&await n._componentsPromise,e.updateMatch(a,b=>({...b,error:void 0,context:xi(e,o),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(c){let d=c;if(d?.name==="AbortError"){if(s.abortController.signal.aborted){s._nonReactive.loaderPromise?.resolve(),s._nonReactive.loaderPromise=void 0;return}e.updateMatch(a,p=>({...p,status:p.status==="pending"?"success":p.status,isFetching:!1,context:xi(e,o)}));return}const m=s._nonReactive.minPendingPromise;m&&await m,fn(c)&&await n.options.notFoundComponent?.preload?.(),Da(e,e.router.getMatch(a),c);try{n.options.onError?.(c)}catch(p){d=p,Da(e,e.router.getMatch(a),p)}!En(d)&&!fn(d)&&await il(n,["errorComponent"]),e.updateMatch(a,p=>({...p,error:d,context:xi(e,o),status:"error",isFetching:!1}))}}catch(s){const c=e.router.getMatch(a);c&&(c._nonReactive.loaderPromise=void 0),Da(e,c,s)}},o$=async(e,t,a)=>{async function o(_,w,$,A,E){const T=Date.now()-w.updatedAt,N=_?E.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:E.options.staleTime??e.router.options.defaultStaleTime??0,M=E.options.shouldReload,U=typeof M=="function"?M(Q8(e,t,n,a,E)):M,{status:K,invalid:L}=A,B=T>=N&&(!!e.forceStaleReload||A.cause==="enter"||$!==void 0&&$!==A.id);c=K==="success"&&(L||(U??B)),_&&E.options.preload===!1||(c&&!e.sync&&y?(d=!0,(async()=>{try{await Gy(e,t,n,a,E);const H=e.router.getMatch(n);H._nonReactive.loaderPromise?.resolve(),H._nonReactive.loadPromise?.resolve(),H._nonReactive.loaderPromise=void 0,H._nonReactive.loadPromise=void 0}catch(H){En(H)&&await e.router.navigate(H.options)}})()):K!=="success"||c?await Gy(e,t,n,a,E):Qy(e,n,a))}const{id:n,routeId:s}=e.matches[a];let c=!1,d=!1;const m=e.router.looseRoutesById[s],p=m.options.loader,y=((typeof p=="function"?void 0:p?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(B8(e,n)){if(!e.router.getMatch(n))return e.matches[a];Qy(e,n,a)}else{const _=e.router.getMatch(n),w=e.router.stores.matchesId.get()[a],$=(w&&e.router.stores.matchStores.get(w)||null)?.routeId===s?w:e.router.stores.matches.get().find(E=>E.routeId===s)?.id,A=Zu(e,n);if(_._nonReactive.loaderPromise){if(_.status==="success"&&!e.sync&&!_.preload&&y)return _;await _._nonReactive.loaderPromise;const E=e.router.getMatch(n),T=E._nonReactive.error||E.error;T&&Da(e,E,T),E.status==="pending"&&await o(A,_,$,E,m)}else{const E=A&&!e.router.stores.matchStores.has(n),T=e.router.getMatch(n);T._nonReactive.loaderPromise=Mo(),E!==T.preload&&e.updateMatch(n,N=>({...N,preload:E})),await o(A,_,$,T,m)}}const b=e.router.getMatch(n);d||(b._nonReactive.loaderPromise?.resolve(),b._nonReactive.loadPromise?.resolve(),b._nonReactive.loadPromise=void 0),clearTimeout(b._nonReactive.pendingTimeout),b._nonReactive.pendingTimeout=void 0,d||(b._nonReactive.loaderPromise=void 0),b._nonReactive.dehydrated=void 0;const x=d?b.isFetching:!1;return x!==b.isFetching||b.invalid!==!1?(e.updateMatch(n,_=>({..._,isFetching:x,invalid:!1})),e.router.getMatch(n)):b};async function Jy(e){const t=e,a=[];t$(t.router)&&D1(t);let o;for(let x=0;x<t.matches.length;x++){try{const _=a$(t,x);rl(_)&&await _}catch(_){if(En(_))throw _;if(fn(_))o=_;else if(!t.preload)throw _;break}if(t.serialError||t.firstBadMatchIndex!=null)break}const n=t.firstBadMatchIndex??t.matches.length,s=o&&!t.preload?Ky(t,o):void 0,c=o&&t.preload?0:s!==void 0?Math.min(s+1,n):n;let d,m;for(let x=0;x<c;x++)a.push(o$(t,a,x));try{await Promise.all(a)}catch{const x=await Promise.allSettled(a);for(const _ of x){if(_.status!=="rejected")continue;const w=_.reason;if(En(w))throw w;fn(w)?d??=w:m??=w}if(m!==void 0)throw m}const p=d??(o&&!t.preload?o:void 0);let y=t.firstBadMatchIndex!==void 0?t.firstBadMatchIndex:t.matches.length-1;if(!p&&o&&t.preload)return t.matches;if(p){const x=Ky(t,p);x===void 0&&ta();const _=t.matches[x],w=t.router.looseRoutesById[_.routeId],$=t.router.options?.defaultNotFoundComponent;!w.options.notFoundComponent&&$&&(w.options.notFoundComponent=$),p.routeId=_.routeId;const A=_.routeId===t.router.routeTree.id;t.updateMatch(_.id,E=>({...E,...A?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:p},isFetching:!1})),y=x,await il(w,["notFoundComponent"])}else if(!t.preload){const x=t.matches[0];x.globalNotFound||t.router.getMatch(x.id)?.globalNotFound&&t.updateMatch(x.id,_=>({..._,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const x=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await il(x,["errorComponent"])}for(let x=0;x<=y;x++){const{id:_,routeId:w}=t.matches[x],$=t.router.looseRoutesById[w];try{const A=i$(t,_,$);if(A){const E=await A;t.updateMatch(_,T=>({...T,...E}))}}catch(A){console.error(`Error executing head for route ${w}:`,A)}}const b=D1(t);if(rl(b)&&await b,p)throw p;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Xy(e,t){const a=t.map(o=>e.options[o]?.preload?.()).filter(Boolean);if(a.length!==0)return Promise.all(a)}function il(e,t=vu){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(o=>{const{id:n,...s}=o.options;Object.assign(e.options,s),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const a=()=>e._componentsLoaded?void 0:t===vu?(()=>{if(e._componentsPromise===void 0){const o=Xy(e,vu);o?e._componentsPromise=o.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Xy(e,t);return e._lazyPromise?e._lazyPromise.then(a):a()}function G8(e){for(const t of vu)if(e.options[t]?.preload)return!0;return!1}const vu=["component","errorComponent","pendingComponent","notFoundComponent"];var La="__TSR_index",Yy="popstate",Wy="beforeunload";function s$(e){let t=e.getLocation();const a=new Set,o=c=>{t=e.getLocation(),a.forEach(d=>d({location:t,action:c}))},n=c=>{e.notifyOnIndexChange??!0?o(c):t=e.getLocation()},s=async({task:c,navigateOpts:d,...m})=>{if(d?.ignoreBlocker??!1){c();return}const p=e.getBlockers?.()??[],y=m.type==="PUSH"||m.type==="REPLACE";if(typeof document<"u"&&p.length&&y)for(const b of p){const x=wu(m.path,m.state);if(await b.blockerFn({currentLocation:t,nextLocation:x,action:m.type})){e.onBlocked?.();return}}c()};return{get location(){return t},get length(){return e.getLength()},subscribers:a,subscribe:c=>(a.add(c),()=>{a.delete(c)}),push:(c,d,m)=>{const p=t.state[La];d=e6(p+1,d),s({task:()=>{e.pushState(c,d),o({type:"PUSH"})},navigateOpts:m,type:"PUSH",path:c,state:d})},replace:(c,d,m)=>{const p=t.state[La];d=e6(p,d),s({task:()=>{e.replaceState(c,d),o({type:"REPLACE"})},navigateOpts:m,type:"REPLACE",path:c,state:d})},go:(c,d)=>{s({task:()=>{e.go(c),n({type:"GO",index:c})},navigateOpts:d,type:"GO"})},back:c=>{s({task:()=>{e.back(c?.ignoreBlocker??!1),n({type:"BACK"})},navigateOpts:c,type:"BACK"})},forward:c=>{s({task:()=>{e.forward(c?.ignoreBlocker??!1),n({type:"FORWARD"})},navigateOpts:c,type:"FORWARD"})},canGoBack:()=>t.state[La]!==0,createHref:c=>e.createHref(c),block:c=>{if(!e.setBlockers)return()=>{};const d=e.getBlockers?.()??[];return e.setBlockers([...d,c]),()=>{const m=e.getBlockers?.()??[];e.setBlockers?.(m.filter(p=>p!==c))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:o}}function e6(e,t){t||(t={});const a=mm();return{...t,key:a,__TSR_key:a,[La]:e}}function l$(e){const t=typeof document<"u"?window:void 0,a=t.history.pushState,o=t.history.replaceState;let n=[];const s=()=>n,c=B=>n=B,d=(B=>B),m=(()=>wu(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const B=mm();t.history.replaceState({[La]:0,key:B,__TSR_key:B},"")}let p=m(),y,b=!1,x=!1,_=!1,w=!1;const $=()=>p;let A,E;const T=()=>{A&&(L._ignoreSubscribers=!0,(A.isPush?t.history.pushState:t.history.replaceState)(A.state,"",A.href),L._ignoreSubscribers=!1,A=void 0,E=void 0,y=void 0)},N=(B,H,ne)=>{const ie=d(H);E||(y=p),p=wu(H,ne),A={href:ie,state:ne,isPush:A?.isPush||B==="push"},E||(E=Promise.resolve().then(()=>T()))},M=B=>{p=m(),L.notify({type:B})},U=async()=>{if(x){x=!1;return}const B=m(),H=B.state[La]-p.state[La],ne=H===1,ie=H===-1,W=!ne&&!ie||b;b=!1;const ce=W?"GO":ie?"BACK":"FORWARD",pe=W?{type:"GO",index:H}:{type:ie?"BACK":"FORWARD"};if(_)_=!1;else{const Ae=s();if(typeof document<"u"&&Ae.length){for(const q of Ae)if(await q.blockerFn({currentLocation:p,nextLocation:B,action:ce})){x=!0,t.history.go(1),L.notify(pe);return}}}p=m(),L.notify(pe)},K=B=>{if(w){w=!1;return}let H=!1;const ne=s();if(typeof document<"u"&&ne.length)for(const ie of ne){const W=ie.enableBeforeUnload??!0;if(W===!0){H=!0;break}if(typeof W=="function"&&W()===!0){H=!0;break}}if(H)return B.preventDefault(),B.returnValue=""},L=s$({getLocation:$,getLength:()=>t.history.length,pushState:(B,H)=>N("push",B,H),replaceState:(B,H)=>N("replace",B,H),back:B=>(B&&(_=!0),w=!0,t.history.back()),forward:B=>{B&&(_=!0),w=!0,t.history.forward()},go:B=>{b=!0,t.history.go(B)},createHref:B=>d(B),flush:T,destroy:()=>{t.history.pushState=a,t.history.replaceState=o,t.removeEventListener(Wy,K,{capture:!0}),t.removeEventListener(Yy,U)},onBlocked:()=>{y&&p!==y&&(p=y)},getBlockers:s,setBlockers:c,notifyOnIndexChange:!1});return t.addEventListener(Wy,K,{capture:!0}),t.addEventListener(Yy,U),t.history.pushState=function(...B){const H=a.apply(t.history,B);return L._ignoreSubscribers||M("PUSH"),H},t.history.replaceState=function(...B){const H=o.apply(t.history,B);return L._ignoreSubscribers||M("REPLACE"),H},L}function c$(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function wu(e,t){const a=c$(e),o=a.indexOf("#"),n=a.indexOf("?"),s=mm();return{href:a,pathname:a.substring(0,o>0?n>0?Math.min(o,n):o:n>0?n:a.length),hash:o>-1?a.substring(o):"",search:n>-1?a.slice(n,o===-1?void 0:o):"",state:t||{[La]:0,key:s,__TSR_key:s}}}function mm(){return(Math.random()+1).toString(36).substring(7)}function Ao(e,t){const a=t,o=e;return{fromLocation:a,toLocation:o,pathChanged:a?.pathname!==o.pathname,hrefChanged:a?.href!==o.href,hashChanged:a?.hash!==o.hash}}var u$=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=a=>a(),this.update=a=>{const o=this.options,n=this.basepath??o?.basepath??"/",s=this.basepath===void 0,c=o?.rewrite;if(this.options={...o,...a},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Ik(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=l$()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let y;this.resolvePathCache=al(1e3),y=this.buildRouteTree(),this.setRoutes(y)}if(!this.stores&&this.latestLocation){const y=this.getStoreConfig(this);this.batch=y.batch,this.stores=e$(f$(this.latestLocation),y),qk(this)}let d=!1;const m=this.options.basepath??"/",p=this.options.rewrite;if(s||n!==m||c!==p){this.basepath=m;const y=[],b=F8(m);b&&b!=="/"&&y.push(Wk({basepath:m})),p&&y.push(p),this.rewrite=y.length===0?void 0:y.length===1?y[0]:Yk(y),this.history&&this.updateLatestLocation(),d=!0}d&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const a=zk(this.routeTree,this.options.caseSensitive,(o,n)=>{o.init({originalIndex:n})});return this.options.routeMasks&&Tk(this.options.routeMasks,a.processedTree),a},this.subscribe=(a,o)=>{const n={eventType:a,fn:o};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=a=>{this.subscribers.forEach(o=>{o.eventType===a.type&&o.fn(a)})},this.parseLocation=(a,o)=>{const n=({pathname:m,search:p,hash:y,href:b,state:x})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(m)){const E=this.options.parseSearch(p),T=this.options.stringifySearch(E);return{href:m+T+y,publicHref:m+T+y,pathname:Ls(m).path,external:!1,searchStr:T,search:fi(o?.search,E),hash:Ls(y.slice(1)).path,state:hi(o?.state,x)}}const _=new URL(b,this.origin),w=C1(this.rewrite,_),$=this.options.parseSearch(w.search),A=this.options.stringifySearch($);return w.search=A,{href:w.href.replace(w.origin,""),publicHref:b,pathname:Ls(w.pathname).path,external:!!this.rewrite&&w.origin!==this.origin,searchStr:A,search:fi(o?.search,$),hash:Ls(w.hash.slice(1)).path,state:hi(o?.state,x)}},s=n(a),{__tempLocation:c,__tempKey:d}=s.state;if(c&&(!d||d===this.tempLocationKey)){const m=n(c);return m.state.key=s.state.key,m.state.__TSR_key=s.state.__TSR_key,delete m.state.__tempLocation,{...m,maskedLocation:s}}return s},this.resolvePathWithBase=(a,o)=>Lk({base:a,to:o.includes("//")?fm(o):o,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(a,o,n)=>typeof a=="string"?this.matchRoutesInternal({pathname:a,search:o},n):this.matchRoutesInternal(a,o),this.getMatchedRoutes=a=>m$({pathname:a,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=a=>{const o=this.getMatch(a);o&&(o.abortController.abort(),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(a=>{this.cancelMatch(a)}),this.stores.matchesId.get().forEach(a=>{if(this.stores.pendingMatchStores.has(a))return;const o=this.stores.matchStores.get(a)?.get();o&&(o.status==="pending"||o.isFetching==="loader")&&this.cancelMatch(a)})},this.buildLocation=a=>{const o=(s={})=>{const c=s._fromLocation||this.pendingBuiltLocation||this.latestLocation,d=this.matchRoutesLightweight(c);s.from;const m=s.unsafeRelative==="path"?c.pathname:s.from??d.fullPath,p=s.to?`${s.to}`:void 0,y=d.search,b=Object.assign(Object.create(null),d.params),x=p?.charCodeAt(0)===47?"/":this.resolvePathWithBase(m,"."),_=p?this.resolvePathWithBase(x,p):x,w=s.params===!1||s.params===null?Object.create(null):(s.params??!0)===!0?b:Object.assign(b,Ra(s.params,b)),$=this.routesByPath[ea(_)];let A;if($)A=this.getRouteBranch($);else if(_.includes("$"))A=[];else{const ie=this.getMatchedRoutes(_);A=ie.matchedRoutes,this.options.notFoundRoute&&(!ie.foundRoute||ie.foundRoute.path!=="/"&&ie.routeParams["**"])&&(A=[...A,this.options.notFoundRoute])}if(A.length&&L8(w))for(const ie of A){const W=ie.options.params?.stringify??ie.options.stringifyParams;if(W)try{Object.assign(w,W(w))}catch{}}const E=a.leaveParams?_:Ls(Hy({path:_,params:w,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let T=y;if(a._includeValidateSearch&&this.options.search?.strict){const ie={};A.forEach(W=>{if(W.options.validateSearch)try{Object.assign(ie,yu(W.options.validateSearch,{...ie,...T}))}catch{}}),T=ie}T=p$({search:T,dest:s,destRoutes:A,_includeValidateSearch:a._includeValidateSearch}),T=fi(y,T);const N=this.options.stringifySearch(T),M=s.hash===!0?c.hash:s.hash?Ra(s.hash,c.hash):void 0,U=M?`#${M}`:"";let K=s.state===!0?c.state:s.state?Ra(s.state,c.state):{};K=hi(c.state,K);const L=`${E}${N}${U}`;let B,H,ne=!1;if(this.rewrite){const ie=new URL(L,this.origin),W=q8(this.rewrite,ie);B=ie.href.replace(ie.origin,""),W.origin!==this.origin?(H=W.href,ne=!0):H=W.pathname+W.search+W.hash}else B=$k(L),H=B;return{publicHref:H,href:B,pathname:E,search:T,searchStr:N,state:K,hash:M??"",external:ne,unmaskOnReload:s.unmaskOnReload}},n=(s={},c)=>{const d=o(s);let m=c?o(c):void 0;if(!m){const p=Object.create(null);if(this.options.routeMasks){const y=jk(d.pathname,this.processedTree);if(y){Object.assign(p,y.rawParams);const{from:b,params:x,..._}=y.route,w=x===!1||x===null?Object.create(null):(x??!0)===!0?p:Object.assign(p,Ra(x,p));c={from:a.from,..._,params:w},m=o(c)}}}return m&&(d.maskedLocation=m),d};return a.mask?n(a,{from:a.from,...a.mask}):n(a)},this.commitLocation=async({viewTransition:a,ignoreBlocker:o,...n})=>{const s=()=>{const m=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];m.forEach(y=>{n.state[y]=this.latestLocation.state[y]});const p=bi(n.state,this.latestLocation.state);return m.forEach(y=>{delete n.state[y]}),p},c=ea(this.latestLocation.href)===ea(n.href);let d=this.commitLocationPromise;if(this.commitLocationPromise=Mo(()=>{d?.resolve(),d=void 0}),c&&s())this.load();else{let{maskedLocation:m,hashScrollIntoView:p,...y}=n;m&&(y={...m,state:{...m.state,__tempKey:void 0,__tempLocation:{...y,search:y.searchStr,state:{...y.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(y.unmaskOnReload??this.options.unmaskOnReload??!1)&&(y.state.__tempKey=this.tempLocationKey)),y.state.__hashScrollIntoViewOptions=p??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=a,this.history[n.replace?"replace":"push"](y.publicHref,y.state,{ignoreBlocker:o})}return this.resetNextScroll=n.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:a,resetScroll:o,hashScrollIntoView:n,viewTransition:s,ignoreBlocker:c,href:d,...m}={})=>{if(d){const b=this.history.location.state.__TSR_index,x=wu(d,{__TSR_index:a?b:b+1}),_=new URL(x.pathname,this.origin);m.to=C1(this.rewrite,_).pathname,m.search=this.options.parseSearch(x.search),m.hash=x.hash.slice(1)}const p=this.buildLocation({...m,_includeValidateSearch:!0});this.pendingBuiltLocation=p;const y=this.commitLocation({...p,viewTransition:s,replace:a,resetScroll:o,hashScrollIntoView:n,ignoreBlocker:c});return Promise.resolve().then(()=>{this.pendingBuiltLocation===p&&(this.pendingBuiltLocation=void 0)}),y},this.navigate=async({to:a,reloadDocument:o,href:n,publicHref:s,...c})=>{let d=!1;if(n)try{new URL(`${n}`),d=!0}catch{}if(d&&!o&&(o=!0),o){if(a!==void 0||!n){const p=this.buildLocation({to:a,...c});n=n??p.publicHref,s=s??p.publicHref}const m=!d&&s?s:n;if(xu(m,this.protocolAllowlist))return Promise.resolve();if(!c.ignoreBlocker){const p=this.history.getBlockers?.()??[];for(const y of p)if(y?.blockerFn&&await y.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return c.replace?window.location.replace(m):window.location.href=m,Promise.resolve()}return this.buildAndCommitLocation({...c,href:n,to:a,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const a=this.matchRoutes(this.latestLocation),o=this.stores.cachedMatches.get().filter(n=>!a.some(s=>s.id===n.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(a),this.stores.setCached(o)})},this.load=async a=>{let o,n,s;const c=this.stores.resolvedLocation.get()??this.stores.location.get();for(s=new Promise(m=>{this.startTransition(async()=>{try{this.beforeLoad();const p=this.latestLocation,y=Ao(p,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...y}),this.emit({type:"onBeforeLoad",...y}),await Jy({router:this,sync:a?.sync,forceStaleReload:c.href===p.href,matches:this.stores.pendingMatches.get(),location:p,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let b=null,x=null,_=null,w=null;this.batch(()=>{const $=this.stores.pendingMatches.get(),A=$.length,E=this.stores.matches.get();b=A?E.filter(M=>!this.stores.pendingMatchStores.has(M.id)):null;const T=new Set;for(const M of this.stores.pendingMatchStores.values())M.routeId&&T.add(M.routeId);const N=new Set;for(const M of this.stores.matchStores.values())M.routeId&&N.add(M.routeId);x=A?E.filter(M=>!T.has(M.routeId)):null,_=A?$.filter(M=>!N.has(M.routeId)):null,w=A?$.filter(M=>N.has(M.routeId)):E,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),A&&(this.stores.setMatches($),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...b.filter(M=>M.status!=="error"&&M.status!=="notFound"&&M.status!=="redirected")]),this.clearExpiredCache())});for(const[$,A]of[[x,"onLeave"],[_,"onEnter"],[w,"onStay"]])if($)for(const E of $)this.looseRoutesById[E.routeId].options[A]?.(E)})})}})}catch(p){En(p)?(o=p,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):fn(p)&&(n=p);const y=o?o.status:n?404:this.stores.matches.get().some(b=>b.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(y),this.stores.redirect.set(o)})}this.latestLoadPromise===s&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),m()})}),this.latestLoadPromise=s,await s;this.latestLoadPromise&&s!==this.latestLoadPromise;)await this.latestLoadPromise;let d;this.hasNotFoundMatch()?d=404:this.stores.matches.get().some(m=>m.status==="error")&&(d=500),d!==void 0&&this.stores.statusCode.set(d)},this.startViewTransition=a=>{const o=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,o&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let n;if(typeof o=="object"&&this.isViewTransitionTypesSupported){const s=this.latestLocation,c=this.stores.resolvedLocation.get(),d=typeof o.types=="function"?o.types(Ao(s,c)):o.types;if(d===!1){a();return}n={update:a,types:d}}else n=a;document.startViewTransition(n)}else a()},this.updateMatch=(a,o)=>{this.startTransition(()=>{const n=this.stores.pendingMatchStores.get(a);if(n){n.set(o);return}const s=this.stores.matchStores.get(a);if(s){s.set(o);return}const c=this.stores.cachedMatchStores.get(a);if(c){const d=o(c.get());d.status==="redirected"?this.stores.cachedMatchStores.delete(a)&&this.stores.cachedIds.set(m=>m.filter(p=>p!==a)):c.set(d)}})},this.getMatch=a=>this.stores.cachedMatchStores.get(a)?.get()??this.stores.pendingMatchStores.get(a)?.get()??this.stores.matchStores.get(a)?.get(),this.invalidate=a=>{const o=n=>a?.filter?.(n)??!0?{...n,invalid:!0,...a?.forcePending||n.status==="error"||n.status==="notFound"?{status:"pending",error:void 0}:void 0}:n;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(o)),this.stores.setCached(this.stores.cachedMatches.get().map(o)),this.stores.setPending(this.stores.pendingMatches.get().map(o))}),this.shouldViewTransition=!1,this.load({sync:a?.sync})},this.getParsedLocationHref=a=>a.publicHref||"/",this.resolveRedirect=a=>{const o=a.headers.get("Location");if(!a.options.href||a.options._builtLocation){const n=a.options._builtLocation??this.buildLocation(a.options),s=this.getParsedLocationHref(n);a.options.href=s,a.headers.set("Location",s)}else if(o)try{const n=new URL(o);if(this.origin&&n.origin===this.origin){const s=n.pathname+n.search+n.hash;a.options.href=s,a.headers.set("Location",s)}}catch{}if(a.options.href&&!a.options._builtLocation&&xu(a.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return a.headers.get("Location")||a.headers.set("Location",a.options.href),a},this.clearCache=a=>{const o=a?.filter;o!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(n=>!o(n))):this.stores.setCached([])},this.clearExpiredCache=()=>{const a=Date.now(),o=n=>{const s=this.looseRoutesById[n.routeId];if(!s.options.loader)return!0;const c=(n.preload?s.options.preloadGcTime??this.options.defaultPreloadGcTime:s.options.gcTime??this.options.defaultGcTime)??300*1e3;return n.status==="error"?!0:a-n.updatedAt>=c};this.clearCache({filter:o})},this.loadRouteChunk=il,this.preloadRoute=async a=>{const o=a._builtLocation??this.buildLocation(a);let n=this.matchRoutes(o,{throwOnError:!0,preload:!0,dest:a});const s=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),c=new Set([...s,...this.stores.cachedIds.get()]),d=n.filter(m=>!c.has(m.id));if(d.length){const m=this.stores.cachedMatches.get();this.stores.setCached([...m,...d])}try{return n=await Jy({router:this,matches:n,location:o,preload:!0,updateMatch:(m,p)=>{s.has(m)?n=n.map(y=>y.id===m?p(y):y):this.updateMatch(m,p)}}),n}catch(m){if(En(m))return m.options.reloadDocument?void 0:await this.preloadRoute({...m.options,_fromLocation:o});fn(m)||console.error(m);return}},this.matchRoute=(a,o)=>{const n={...a,to:a.to?this.resolvePathWithBase(a.from||"",a.to):void 0,params:a.params||{},leaveParams:!0},s=this.buildLocation(n);if(o?.pending&&this.stores.status.get()!=="pending")return!1;const c=(o?.pending===void 0?!this.stores.isLoading.get():o.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),d=Mk(s.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,c.pathname,this.processedTree);return!d||a.params&&!bi(d.rawParams,a.params,{partial:!0})?!1:o?.includeSearch??!0?bi(c.search,s.search,{partial:!0})?d.rawParams:!1:d.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(a=>a.status==="notFound"||a.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??Gk,parseSearch:e.parseSearch??Qk,protocolAllowlist:e.protocolAllowlist??kk}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:a}){this.routesById=e,this.routesByPath=t,this.processedTree=a;const o=this.options.notFoundRoute;o&&(o.init({originalIndex:99999999999}),this.routesById[o.id]=o)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=V8(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){const a=this.getMatchedRoutes(e.pathname),{foundRoute:o,routeParams:n}=a;let{matchedRoutes:s}=a,c=!1;(o?o.path!=="/"&&n["**"]:ea(e.pathname))&&(this.options.notFoundRoute?s=[...s,this.options.notFoundRoute]:c=!0);const d=c?g$(this.options.notFoundMode,s):void 0,m=new Array(s.length),p=new Map;for(const y of this.stores.matchStores.values())y.routeId&&p.set(y.routeId,y.get());for(let y=0;y<s.length;y++){const b=s[y],x=m[y-1];let _,w,$;{const W=x?.search??e.search,ce=x?._strictSearch??void 0;try{const pe=yu(b.options.validateSearch,{...W})??void 0;_={...W,...pe},w={...ce,...pe},$=void 0}catch(pe){let Ae=pe;if(pe instanceof ku||(Ae=new ku(pe.message,{cause:pe})),t?.throwOnError)throw Ae;_=W,w={},$=Ae}}const A=b.options.loaderDeps?.({search:_})??"",E=A?JSON.stringify(A):"",{interpolatedPath:T,usedParams:N}=Hy({path:b.fullPath,params:n,decoder:this.pathParamsDecoder,server:this.isServer}),M=b.id+T+E,U=this.getMatch(M),K=p.get(b.id),L=U?._strictParams??N;let B;if(!U)try{t6(b,L)}catch(W){if(fn(W)||En(W)?B=W:B=new d$(W.message,{cause:W}),t?.throwOnError)throw B}Object.assign(n,L);const H=K?"stay":"enter";let ne;if(U)ne={...U,cause:H,params:K?.params??n,_strictParams:L,search:fi(K?K.search:U.search,_),_strictSearch:w};else{const W=b.options.loader||b.options.beforeLoad||b.lazyFn||G8(b)?"pending":"success";ne={id:M,ssr:b.options.ssr,index:y,routeId:b.id,params:K?.params??n,_strictParams:L,pathname:T,updatedAt:Date.now(),search:K?fi(K.search,_):_,_strictSearch:w,searchError:void 0,status:W,isFetching:!1,error:void 0,paramsError:B,__routeContext:void 0,_nonReactive:{loadPromise:Mo()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:H,loaderDeps:K?hi(K.loaderDeps,A):A,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:b.options.staticData||{},fullPath:b.fullPath}}t?.preload||(ne.globalNotFound=d===b.id),ne.searchError=$;const ie=this.getParentContext(x);ne.context={...ie,...ne.__routeContext,...ne.__beforeLoadContext},m[y]=ne}for(let y=0;y<m.length;y++){const b=m[y],x=this.looseRoutesById[b.routeId],_=this.getMatch(b.id),w=p.get(b.routeId);if(b.params=w?fi(w.params,n):n,!_){const $=m[y-1],A=this.getParentContext($);if(x.options.context){const E={deps:b.loaderDeps,params:b.params,context:A??{},location:e,navigate:T=>this.navigate({...T,_fromLocation:e}),buildLocation:this.buildLocation,cause:b.cause,abortController:b.abortController,preload:!!b.preload,matches:m,routeId:x.id};b.__routeContext=x.options.context(E)??void 0}b.context={...A,...b.__routeContext,...b.__beforeLoadContext}}}return m}matchRoutesLightweight(e){const{matchedRoutes:t,routeParams:a}=this.getMatchedRoutes(e.pathname),o=nl(t),n={...e.search};for(const p of t)try{Object.assign(n,yu(p.options.validateSearch,n))}catch{}const s=nl(this.stores.matchesId.get()),c=s&&this.stores.matchStores.get(s)?.get(),d=c&&c.routeId===o.id&&c.pathname===e.pathname;let m;if(d)m=c.params;else{const p=Object.assign(Object.create(null),a);for(const y of t)try{t6(y,p)}catch{}m=p}return{matchedRoutes:t,fullPath:o.fullPath,search:n,params:m}}},ku=class extends Error{},d$=class extends Error{};function f$(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function yu(e,t){if(e==null)return{};if("~standard"in e){const a=e["~standard"].validate(t);if(a instanceof Promise)throw new ku("Async validation not supported");if(a.issues)throw new ku(JSON.stringify(a.issues,void 0,2),{cause:a});return a.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function m$({pathname:e,routesById:t,processedTree:a}){const o=Object.create(null),n=ea(e);let s;const c=Ok(n,a,!0);return c&&(s=c.route,Object.assign(o,c.rawParams)),{matchedRoutes:c?.branch||[t.__root__],routeParams:o,foundRoute:s}}function p$({search:e,dest:t,destRoutes:a,_includeValidateSearch:o}){return h$(a)(e,t,o??!1)}function h$(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const n of e){if("search"in n.options)n.options.search?.middlewares&&t.middlewares.push(...n.options.search.middlewares);else if(n.options.preSearchFilters||n.options.postSearchFilters){const s=({search:c,next:d})=>{let m=c;"preSearchFilters"in n.options&&n.options.preSearchFilters&&(m=n.options.preSearchFilters.reduce((y,b)=>b(y),c));const p=d(m);return"postSearchFilters"in n.options&&n.options.postSearchFilters?n.options.postSearchFilters.reduce((y,b)=>b(y),p):p};t.middlewares.push(s)}if(n.options.validateSearch){const s=({search:c,next:d})=>{const m=d(c);if(!t._includeValidateSearch)return m;try{return{...m,...yu(n.options.validateSearch,m)??void 0}}catch{return m}};t.middlewares.push(s)}}const a=({search:n})=>{const s=t.dest;return s.search?s.search===!0?n:Ra(s.search,n):{}};t.middlewares.push(a);const o=(n,s,c)=>{if(n>=c.length)return s;const d=c[n];return d({search:s,next:p=>o(n+1,p,c)})};return function(s,c,d){return t.dest=c,t._includeValidateSearch=d,o(0,s,t.middlewares)}}function g$(e,t){if(e!=="root")for(let a=t.length-1;a>=0;a--){const o=t[a];if(o.children)return o.id}return _i}function t6(e,t){const a=e.options.params?.parse??e.options.parseParams;if(a){const o=a(t);if(o===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(t,o)}}const v$="Error preloading route! ☝️";var J8=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const a=this.options,o=!a?.path&&!a?.id;this.parentRoute=this.options.getParentRoute?.(),o?this._path=_i:this.parentRoute||ta();let n=o?_i:a?.path;n&&n!=="/"&&(n=H8(n));const s=a?.id||n;let c=o?_i:gu([this.parentRoute.id==="__root__"?"":this.parentRoute.id,s]);n==="__root__"&&(n="/"),c!=="__root__"&&(c=gu(["/",c]));const d=c==="__root__"?"/":gu([this.parentRoute.fullPath,n]);this._path=n,this._id=c,this._fullPath=d,this._to=ea(d)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>ra({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},y$=class extends J8{constructor(e){super(e)}};function b$(e){if(typeof document<"u"&&document.querySelector){const t=e.stores.location.get(),a=t.state.__hashScrollIntoViewOptions??!0;if(a&&t.hash!==""){const o=document.getElementById(t.hash);o&&o.scrollIntoView(a)}}}function pm(e){const t=e.errorComponent??hm;return v.jsx(_$,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:a,reset:o})=>a?g.createElement(t,{error:a,reset:o}):e.children})}var _$=class extends g.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){const a=e.getResetKey();return t.error&&t.resetKey!==a?{resetKey:a,error:null}:{resetKey:a}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function hm({error:e}){const[t,a]=g.useState(!1);return v.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[v.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),v.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>a(o=>!o),children:t?"Hide Error":"Show Error"})]}),v.jsx("div",{style:{height:".25rem"}}),t?v.jsx("div",{children:v.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?v.jsx("code",{children:e.message}):null})}):null]})}function x$({children:e,fallback:t=null}){return X8()?v.jsx($e.Fragment,{children:e}):v.jsx($e.Fragment,{children:t})}function X8(){return $e.useSyncExternalStore(S$,()=>!0,()=>!1)}function S$(){return()=>{}}var Y8=g.createContext(null);function $t(e){return g.useContext(Y8)}var Vu=g.createContext(void 0),w$=g.createContext(void 0),_t=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(_t||{});function k$({update:e,notify:t,unwatched:a}){return{link:o,unlink:n,propagate:s,checkDirty:c,shallowPropagate:d};function o(p,y,b){const x=y.depsTail;if(x!==void 0&&x.dep===p)return;const _=x!==void 0?x.nextDep:y.deps;if(_!==void 0&&_.dep===p){_.version=b,y.depsTail=_;return}const w=p.subsTail;if(w!==void 0&&w.version===b&&w.sub===y)return;const $=y.depsTail=p.subsTail={version:b,dep:p,sub:y,prevDep:x,nextDep:_,prevSub:w,nextSub:void 0};_!==void 0&&(_.prevDep=$),x!==void 0?x.nextDep=$:y.deps=$,w!==void 0?w.nextSub=$:p.subs=$}function n(p,y=p.sub){const b=p.dep,x=p.prevDep,_=p.nextDep,w=p.nextSub,$=p.prevSub;return _!==void 0?_.prevDep=x:y.depsTail=x,x!==void 0?x.nextDep=_:y.deps=_,w!==void 0?w.prevSub=$:b.subsTail=$,$!==void 0?$.nextSub=w:(b.subs=w)===void 0&&a(b),_}function s(p){let y=p.nextSub,b;e:do{const x=p.sub;let _=x.flags;if(_&60?_&12?_&4?!(_&48)&&m(p,x)?(x.flags=_|40,_&=1):_=0:x.flags=_&-9|32:_=0:x.flags=_|32,_&2&&t(x),_&1){const w=x.subs;if(w!==void 0){const $=(p=w).nextSub;$!==void 0&&(b={value:y,prev:b},y=$);continue}}if((p=y)!==void 0){y=p.nextSub;continue}for(;b!==void 0;)if(p=b.value,b=b.prev,p!==void 0){y=p.nextSub;continue e}break}while(!0)}function c(p,y){let b,x=0,_=!1;e:do{const w=p.dep,$=w.flags;if(y.flags&16)_=!0;else if(($&17)===17){if(e(w)){const A=w.subs;A.nextSub!==void 0&&d(A),_=!0}}else if(($&33)===33){(p.nextSub!==void 0||p.prevSub!==void 0)&&(b={value:p,prev:b}),p=w.deps,y=w,++x;continue}if(!_){const A=p.nextDep;if(A!==void 0){p=A;continue}}for(;x--;){const A=y.subs,E=A.nextSub!==void 0;if(E?(p=b.value,b=b.prev):p=A,_){if(e(y)){E&&d(A),y=p.sub;continue}_=!1}else y.flags&=-33;y=p.sub;const T=p.nextDep;if(T!==void 0){p=T;continue e}}return _}while(!0)}function d(p){do{const y=p.sub,b=y.flags;(b&48)===32&&(y.flags=b|16,(b&6)===2&&t(y))}while((p=p.nextSub)!==void 0)}function m(p,y){let b=y.depsTail;for(;b!==void 0;){if(b===p)return!0;b=b.prevDep}return!1}}function $$(e,t,a){const o=typeof e=="object",n=o?e:void 0;return{next:(o?e.next:e)?.bind(n),error:(o?e.error:t)?.bind(n),complete:(o?e.complete:a)?.bind(n)}}const P1=[];let bu=0;const{link:n6,unlink:A$,propagate:E$,checkDirty:W8,shallowPropagate:r6}=k$({update(e){return e._update()},notify(e){P1[L1++]=e,e.flags&=~_t.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=_t.Mutable|_t.Dirty,$u(e))}});let cu=0,L1=0,Er,I1=0;function e4(e){try{++I1,e()}finally{--I1||t4()}}function $u(e){const t=e.depsTail;let a=t!==void 0?t.nextDep:e.deps;for(;a!==void 0;)a=A$(a,e)}function t4(){if(!(I1>0)){for(;cu<L1;){const e=P1[cu];P1[cu++]=void 0,e.notify()}cu=0,L1=0}}function a6(e,t){const a=typeof e=="function",o=e,n={_snapshot:a?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:a?_t.None:_t.Mutable,get(){return Er!==void 0&&n6(n,Er,bu),n._snapshot},subscribe(s){const c=$$(s),d={current:!1},m=T$(()=>{n.get(),d.current?c.next?.(n._snapshot):d.current=!0});return{unsubscribe:()=>{m.stop()}}},_update(s){const c=Er,d=t?.compare??Object.is;if(a)Er=n,++bu,n.depsTail=void 0;else if(s===void 0)return!1;a&&(n.flags=_t.Mutable|_t.RecursedCheck);try{const m=n._snapshot,p=typeof s=="function"?s(m):s===void 0&&a?o(m):s;return m===void 0||!d(m,p)?(n._snapshot=p,!0):!1}finally{Er=c,a&&(n.flags&=~_t.RecursedCheck),$u(n)}}};return a?(n.flags=_t.Mutable|_t.Dirty,n.get=function(){const s=n.flags;if(s&_t.Dirty||s&_t.Pending&&W8(n.deps,n)){if(n._update()){const c=n.subs;c!==void 0&&r6(c)}}else s&_t.Pending&&(n.flags=s&~_t.Pending);return Er!==void 0&&n6(n,Er,bu),n._snapshot}):n.set=function(s){if(n._update(s)){const c=n.subs;c!==void 0&&(E$(c),r6(c),t4())}},n}function T$(e){const t=()=>{const o=Er;Er=a,++bu,a.depsTail=void 0,a.flags=_t.Watching|_t.RecursedCheck;try{return e()}finally{Er=o,a.flags&=~_t.RecursedCheck,$u(a)}},a={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:_t.Watching|_t.RecursedCheck,notify(){const o=this.flags;o&_t.Dirty||o&_t.Pending&&W8(this.deps,this)?t():this.flags=_t.Watching},stop(){this.flags=_t.None,this.depsTail=void 0,$u(this)}};return t(),a}var s1={exports:{}},l1={},c1={exports:{}},u1={};var i6;function j$(){if(i6)return u1;i6=1;var e=hl();function t(b,x){return b===x&&(b!==0||1/b===1/x)||b!==b&&x!==x}var a=typeof Object.is=="function"?Object.is:t,o=e.useState,n=e.useEffect,s=e.useLayoutEffect,c=e.useDebugValue;function d(b,x){var _=x(),w=o({inst:{value:_,getSnapshot:x}}),$=w[0].inst,A=w[1];return s(function(){$.value=_,$.getSnapshot=x,m($)&&A({inst:$})},[b,_,x]),n(function(){return m($)&&A({inst:$}),b(function(){m($)&&A({inst:$})})},[b]),c(_),_}function m(b){var x=b.getSnapshot;b=b.value;try{var _=x();return!a(b,_)}catch{return!0}}function p(b,x){return x()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:d;return u1.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,u1}var o6;function n4(){return o6||(o6=1,c1.exports=j$()),c1.exports}var s6;function M$(){if(s6)return l1;s6=1;var e=hl(),t=n4();function a(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var o=typeof Object.is=="function"?Object.is:a,n=t.useSyncExternalStore,s=e.useRef,c=e.useEffect,d=e.useMemo,m=e.useDebugValue;return l1.useSyncExternalStoreWithSelector=function(p,y,b,x,_){var w=s(null);if(w.current===null){var $={hasValue:!1,value:null};w.current=$}else $=w.current;w=d(function(){function E(K){if(!T){if(T=!0,N=K,K=x(K),_!==void 0&&$.hasValue){var L=$.value;if(_(L,K))return M=L}return M=K}if(L=M,o(N,K))return L;var B=x(K);return _!==void 0&&_(L,B)?(N=K,L):(N=K,M=B)}var T=!1,N,M,U=b===void 0?null:b;return[function(){return E(y())},U===null?void 0:function(){return E(U())}]},[y,b,x,_]);var A=n(p,w[0],w[1]);return c(function(){$.hasValue=!0,$.value=A},[A]),m(A),A},l1}var l6;function O$(){return l6||(l6=1,s1.exports=M$()),s1.exports}var N$=O$();function z$(e,t){return e===t}function Zn(e,t,a=z$){const o=g.useCallback(c=>{if(!e)return()=>{};const{unsubscribe:d}=e.subscribe(c);return d},[e]),n=g.useCallback(()=>e?.get(),[e]);return N$.useSyncExternalStoreWithSelector(o,n,n,t,a)}var R$={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function Mi(e){const t=$t(),a=g.useContext(e.from?w$:Vu),o=e.from??a,n=o?e.from?t.stores.getRouteMatchStore(o):t.stores.matchStores.get(o):void 0,s=g.useRef(void 0);return Zn(n??R$,c=>{if((e.shouldThrow??!0)&&!c&&ta(),c===void 0)return;const d=e.select?e.select(c):c;if(e.structuralSharing??t.options.defaultStructuralSharing){const m=hi(s.current,d);return s.current=m,m}return d})}function r4(e){return Mi({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function a4(e){const{select:t,...a}=e;return Mi({...a,select:o=>t?t(o.loaderDeps):o.loaderDeps})}function i4(e){return Mi({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const a=e.strict===!1?t.params:t._strictParams;return e.select?e.select(a):a}})}function gm(e){return Mi({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function gl(e){const t=$t();return g.useCallback(a=>t.navigate({...a,from:a.from??e?.from}),[e?.from,t])}function o4(e){return Mi({...e,select:t=>e.select?e.select(t.context):t.context})}var d1={exports:{}},on={};var c6;function C$(){if(c6)return on;c6=1;var e=hl();function t(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var o={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},n=Symbol.for("react.portal");function s(m,p,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:b==null?null:""+b,children:m,containerInfo:p,implementation:y}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return on.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,on.createPortal=function(m,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return s(m,p,null,y)},on.flushSync=function(m){var p=c.T,y=o.p;try{if(c.T=null,o.p=2,m)return m()}finally{c.T=p,o.p=y,o.d.f()}},on.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(m,p))},on.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},on.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var y=p.as,b=d(y,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,_=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?o.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:x,fetchPriority:_}):y==="script"&&o.d.X(m,{crossOrigin:b,integrity:x,fetchPriority:_,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},on.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=d(p.as,p.crossOrigin);o.d.M(m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(m)},on.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,b=d(y,p.crossOrigin);o.d.L(m,y,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},on.preloadModule=function(m,p){if(typeof m=="string")if(p){var y=d(p.as,p.crossOrigin);o.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(m)},on.requestFormReset=function(m){o.d.r(m)},on.unstable_batchedUpdates=function(m,p){return m(p)},on.useFormState=function(m,p,y){return c.H.useFormState(m,p,y)},on.useFormStatus=function(){return c.H.useHostTransitionStatus()},on.version="19.2.5",on}var u6;function s4(){if(u6)return d1.exports;u6=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),d1.exports=C$(),d1.exports}var D$=s4();function P$(e,t){const a=$t(),o=_k(t),{activeProps:n,inactiveProps:s,activeOptions:c,to:d,preload:m,preloadDelay:p,preloadIntentProximity:y,hashScrollIntoView:b,replace:x,startTransition:_,resetScroll:w,viewTransition:$,children:A,target:E,disabled:T,style:N,className:M,onClick:U,onBlur:K,onFocus:L,onMouseEnter:B,onMouseLeave:H,onTouchStart:ne,ignoreBlocker:ie,params:W,search:ce,hash:pe,state:Ae,mask:q,reloadDocument:ee,unsafeRelative:he,from:we,_fromLocation:De,...z}=e,G=X8(),ae=g.useMemo(()=>e,[a,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),de=Zn(a.stores.location,C=>C,(C,I)=>C.href===I.href),ve=g.useMemo(()=>{const C={_fromLocation:de,...ae};return a.buildLocation(C)},[a,de,ae]),je=ve.maskedLocation?ve.maskedLocation.publicHref:ve.publicHref,Ie=ve.maskedLocation?ve.maskedLocation.external:ve.external,wt=g.useMemo(()=>H$(je,Ie,a.history,T),[T,Ie,je,a.history]),Ye=g.useMemo(()=>{if(wt?.external)return xu(wt.href,a.protocolAllowlist)?void 0:wt.href;if(!F$(d)&&!(typeof d!="string"||d.indexOf(":")===-1))try{return new URL(d),xu(d,a.protocolAllowlist)?void 0:d}catch{}},[d,wt,a.protocolAllowlist]),dr=g.useMemo(()=>{if(Ye)return!1;if(c?.exact){if(!Pk(de.pathname,ve.pathname,a.basepath))return!1}else{const C=Su(de.pathname,a.basepath),I=Su(ve.pathname,a.basepath);if(!(C.startsWith(I)&&(C.length===I.length||C[I.length]==="/")))return!1}return(c?.includeSearch??!0)&&!bi(de.search,ve.search,{partial:!c?.exact,ignoreUndefined:!c?.explicitUndefined})?!1:c?.includeHash?G&&de.hash===ve.hash:!0},[c?.exact,c?.explicitUndefined,c?.includeHash,c?.includeSearch,de,Ye,G,ve.hash,ve.pathname,ve.search,a.basepath]),jn=dr?Ra(n,{})??L$:f1,fr=dr?f1:Ra(s,{})??f1,zr=[M,jn.className,fr.className].filter(Boolean).join(" "),yn=(N||jn.style||fr.style)&&{...N,...jn.style,...fr.style},[Fa,Rr]=g.useState(!1),Ri=g.useRef(!1),Bn=e.reloadDocument||Ye?!1:m??a.options.defaultPreload,Sr=p??a.options.defaultPreloadDelay??0,Mn=g.useCallback(()=>{a.preloadRoute({...ae,_builtLocation:ve}).catch(C=>{console.warn(C),console.warn(v$)})},[a,ae,ve]);bk(o,g.useCallback(C=>{C?.isIntersecting&&Mn()},[Mn]),V$,{disabled:!!T||Bn!=="viewport"}),g.useEffect(()=>{Ri.current||!T&&Bn==="render"&&(Mn(),Ri.current=!0)},[T,Mn,Bn]);const qa=C=>{const I=C.currentTarget.getAttribute("target"),oe=E!==void 0?E:I;if(!T&&!q$(C)&&!C.defaultPrevented&&(!oe||oe==="_self")&&C.button===0){C.preventDefault(),D$.flushSync(()=>{Rr(!0)});const se=a.subscribe("onResolved",()=>{se(),Rr(!1)});a.navigate({...ae,replace:x,resetScroll:w,hashScrollIntoView:b,startTransition:_,viewTransition:$,ignoreBlocker:ie})}};if(Ye)return{...z,ref:o,href:Ye,...A&&{children:A},...E&&{target:E},...T&&{disabled:T},...N&&{style:N},...M&&{className:M},...U&&{onClick:U},...K&&{onBlur:K},...L&&{onFocus:L},...B&&{onMouseEnter:B},...H&&{onMouseLeave:H},...ne&&{onTouchStart:ne}};const Ho=C=>{if(T||Bn!=="intent")return;if(!Sr){Mn();return}const I=C.currentTarget;if(Zs.has(I))return;const oe=setTimeout(()=>{Zs.delete(I),Mn()},Sr);Zs.set(I,oe)},Ci=C=>{T||Bn!=="intent"||Mn()},j=C=>{if(T||!Bn||!Sr)return;const I=C.currentTarget,oe=Zs.get(I);oe&&(clearTimeout(oe),Zs.delete(I))};return{...z,...jn,...fr,href:wt?.href,ref:o,onClick:So([U,qa]),onBlur:So([K,j]),onFocus:So([L,Ho]),onMouseEnter:So([B,Ho]),onMouseLeave:So([H,j]),onTouchStart:So([ne,Ci]),disabled:!!T,target:E,...yn&&{style:yn},...zr&&{className:zr},...T&&I$,...dr&&U$,...G&&Fa&&Z$}}var f1={},L$={className:"active"},I$={role:"link","aria-disabled":!0},U$={"data-status":"active","aria-current":"page"},Z$={"data-transitioning":"transitioning"},Zs=new WeakMap,V$={rootMargin:"100px"},So=e=>t=>{for(const a of e)if(a){if(t.defaultPrevented)return;a(t)}};function H$(e,t,a,o){if(!o)return t?{href:e,external:!0}:{href:a.createHref(e)||"/",external:!1}}function F$(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var vt=g.forwardRef((e,t)=>{const{_asChild:a,...o}=e,{type:n,...s}=P$(o,t),c=typeof o.children=="function"?o.children({isActive:s["data-status"]==="active"}):o.children;if(!a){const{disabled:d,...m}=s;return g.createElement("a",m,c)}return g.createElement(a,s,c)});function q$(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var B$=class extends J8{constructor(t){super(t),this.useMatch=a=>Mi({select:a?.select,from:this.id,structuralSharing:a?.structuralSharing}),this.useRouteContext=a=>o4({...a,from:this.id}),this.useSearch=a=>gm({select:a?.select,structuralSharing:a?.structuralSharing,from:this.id}),this.useParams=a=>i4({select:a?.select,structuralSharing:a?.structuralSharing,from:this.id}),this.useLoaderDeps=a=>a4({...a,from:this.id}),this.useLoaderData=a=>r4({...a,from:this.id}),this.useNavigate=()=>gl({from:this.fullPath}),this.Link=$e.forwardRef((a,o)=>v.jsx(vt,{ref:o,from:this.fullPath,...a}))}};function K$(e){return new B$(e)}function Q$(){return e=>J$(e)}var G$=class extends y${constructor(e){super(e),this.useMatch=t=>Mi({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>o4({...t,from:this.id}),this.useSearch=t=>gm({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>i4({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>a4({...t,from:this.id}),this.useLoaderData=t=>r4({...t,from:this.id}),this.useNavigate=()=>gl({from:this.fullPath}),this.Link=$e.forwardRef((t,a)=>v.jsx(vt,{ref:a,from:this.fullPath,...t}))}};function J$(e){return new G$(e)}function Kt(e){return new X$(e,{silent:!0}).createRoute}var X$=class{constructor(e,t){this.path=e,this.createRoute=a=>{const o=K$(a);return o.isRoot=!1,o},this.silent=t?.silent}};function Y$(e){const t=$t(),a=`not-found-${Zn(t.stores.location,o=>o.pathname)}-${Zn(t.stores.status,o=>o)}`;return v.jsx(pm,{getResetKey:()=>a,onCatch:(o,n)=>{if(fn(o))e.onCatch?.(o,n);else throw o},errorComponent:({error:o})=>{if(fn(o))return e.fallback?.(o);throw o},children:e.children})}function W$(){return v.jsx("p",{children:"Not Found"})}function $o(e){return v.jsx(v.Fragment,{children:e.children})}function l4(e,t,a){return t.options.notFoundComponent?v.jsx(t.options.notFoundComponent,{...a}):e.options.defaultNotFoundComponent?v.jsx(e.options.defaultNotFoundComponent,{...a}):v.jsx(W$,{})}function eA(e){return null}function tA(){return eA($t()),null}var c4=g.memo(function({matchId:t}){const a=$t(),o=a.stores.matchStores.get(t);o||ta();const n=Zn(a.stores.loadedAt,c=>c),s=Zn(o,c=>c);return v.jsx(nA,{router:a,matchId:t,resetKey:n,matchState:g.useMemo(()=>{const c=s.routeId,d=a.routesById[c].parentRoute?.id;return{routeId:c,ssr:s.ssr,_displayPending:s._displayPending,parentRouteId:d}},[s._displayPending,s.routeId,s.ssr,a.routesById])})});function nA({router:e,matchId:t,resetKey:a,matchState:o}){const n=e.routesById[o.routeId],s=n.options.pendingComponent??e.options.defaultPendingComponent,c=s?v.jsx(s,{}):null,d=n.options.errorComponent??e.options.defaultErrorComponent,m=n.options.onCatch??e.options.defaultOnCatch,p=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,y=o.ssr===!1||o.ssr==="data-only",b=(!n.isRoot||n.options.wrapInSuspense||y)&&(n.options.wrapInSuspense??s??(n.options.errorComponent?.preload||y))?g.Suspense:$o,x=d?pm:$o,_=p?Y$:$o;return v.jsxs(n.isRoot?n.options.shellComponent??$o:$o,{children:[v.jsx(Vu.Provider,{value:t,children:v.jsx(b,{fallback:c,children:v.jsx(x,{getResetKey:()=>a,errorComponent:d||hm,onCatch:(w,$)=>{if(fn(w))throw w.routeId??=o.routeId,w;m?.(w,$)},children:v.jsx(_,{fallback:w=>{if(w.routeId??=o.routeId,!p||w.routeId&&w.routeId!==o.routeId||!w.routeId&&!n.isRoot)throw w;return g.createElement(p,w)},children:y||o._displayPending?v.jsx(x$,{fallback:c,children:v.jsx(d6,{matchId:t})}):v.jsx(d6,{matchId:t})})})})}),o.parentRouteId===_i?v.jsxs(v.Fragment,{children:[v.jsx(rA,{resetKey:a}),e.options.scrollRestoration&&D8?v.jsx(tA,{}):null]}):null]})}function rA({resetKey:e}){const t=$t(),a=g.useRef(void 0);return Bs(()=>{const o=t.latestLocation.href;(a.current===void 0||a.current!==o)&&(t.emit({type:"onRendered",...Ao(t.stores.location.get(),t.stores.resolvedLocation.get())}),a.current=o)},[t.latestLocation.state.__TSR_key,e,t]),null}var d6=g.memo(function({matchId:t}){const a=$t(),o=(y,b)=>a.getMatch(y.id)?._nonReactive[b]??y._nonReactive[b],n=a.stores.matchStores.get(t);n||ta();const s=Zn(n,y=>y),c=s.routeId,d=a.routesById[c],m=g.useMemo(()=>{const y=(a.routesById[c].options.remountDeps??a.options.defaultRemountDeps)?.({routeId:c,loaderDeps:s.loaderDeps,params:s._strictParams,search:s._strictSearch});return y?JSON.stringify(y):void 0},[c,s.loaderDeps,s._strictParams,s._strictSearch,a.options.defaultRemountDeps,a.routesById]),p=g.useMemo(()=>{const y=d.options.component??a.options.defaultComponent;return y?v.jsx(y,{},m):v.jsx(u4,{})},[m,d.options.component,a.options.defaultComponent]);if(s._displayPending)throw o(s,"displayPendingPromise");if(s._forcePending)throw o(s,"minPendingPromise");if(s.status==="pending"){const y=d.options.pendingMinMs??a.options.defaultPendingMinMs;if(y){const b=a.getMatch(s.id);if(b&&!b._nonReactive.minPendingPromise){const x=Mo();b._nonReactive.minPendingPromise=x,setTimeout(()=>{x.resolve(),b._nonReactive.minPendingPromise=void 0},y)}}throw o(s,"loadPromise")}if(s.status==="notFound")return fn(s.error)||ta(),l4(a,d,s.error);if(s.status==="redirected")throw En(s.error)||ta(),o(s,"loadPromise");if(s.status==="error")throw s.error;return p}),u4=g.memo(function(){const t=$t(),a=g.useContext(Vu);let o,n=!1,s;{const p=a?t.stores.matchStores.get(a):void 0;[o,n]=Zn(p,y=>[y?.routeId,y?.globalNotFound??!1]),s=Zn(t.stores.matchesId,y=>y[y.findIndex(b=>b===a)+1])}const c=o?t.routesById[o]:void 0,d=t.options.defaultPendingComponent?v.jsx(t.options.defaultPendingComponent,{}):null;if(n)return c||ta(),l4(t,c,void 0);if(!s)return null;const m=v.jsx(c4,{matchId:s});return o===_i?v.jsx(g.Suspense,{fallback:d,children:m}):m});function aA(){const e=$t(),t=g.useRef({router:e,mounted:!1}),[a,o]=g.useState(!1),n=Zn(e.stores.isLoading,b=>b),s=Zn(e.stores.hasPending,b=>b),c=e1(n),d=n||a||s,m=e1(d),p=n||s,y=e1(p);return e.startTransition=b=>{o(!0),g.startTransition(()=>{b(),o(!1)})},g.useEffect(()=>{const b=e.history.subscribe(e.load),x=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ea(e.latestLocation.publicHref)!==ea(x.publicHref)&&e.commitLocation({...x,replace:!0}),()=>{b()}},[e,e.history]),Bs(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(x){console.error(x)}})()},[e]),Bs(()=>{c&&!n&&e.emit({type:"onLoad",...Ao(e.stores.location.get(),e.stores.resolvedLocation.get())})},[c,e,n]),Bs(()=>{y&&!p&&e.emit({type:"onBeforeRouteMount",...Ao(e.stores.location.get(),e.stores.resolvedLocation.get())})},[p,y,e]),Bs(()=>{if(m&&!d){const b=Ao(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...b}),e4(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())}),b.hrefChanged&&b$(e)}},[d,m,e]),null}function iA(){const e=$t(),t=e.routesById[_i].options.pendingComponent??e.options.defaultPendingComponent,a=t?v.jsx(t,{}):null,o=v.jsxs(typeof document<"u"&&e.ssr?$o:g.Suspense,{fallback:a,children:[v.jsx(aA,{}),v.jsx(oA,{})]});return e.options.InnerWrap?v.jsx(e.options.InnerWrap,{children:o}):o}function oA(){const e=$t(),t=Zn(e.stores.firstId,n=>n),a=Zn(e.stores.loadedAt,n=>n),o=t?v.jsx(c4,{matchId:t}):null;return v.jsx(Vu.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?o:v.jsx(pm,{getResetKey:()=>a,errorComponent:hm,onCatch:void 0,children:o})})}var sA=e=>({createMutableStore:a6,createReadonlyStore:a6,batch:e4}),lA=e=>new cA(e),cA=class extends u${constructor(e){super(e,sA)}};function uA({router:e,children:t,...a}){L8(a)&&e.update({...e.options,...a,context:{...e.options.context,...a.context}});const o=v.jsx(Y8.Provider,{value:e,children:t});return e.options.Wrap?v.jsx(e.options.Wrap,{children:o}):o}function dA({router:e,...t}){return v.jsx(uA,{router:e,...t,children:v.jsx(iA,{})})}var m1={exports:{}},Vs={},p1={exports:{}},h1={};var f6;function fA(){return f6||(f6=1,(function(e){function t(q,ee){var he=q.length;q.push(ee);e:for(;0<he;){var we=he-1>>>1,De=q[we];if(0<n(De,ee))q[we]=ee,q[he]=De,he=we;else break e}}function a(q){return q.length===0?null:q[0]}function o(q){if(q.length===0)return null;var ee=q[0],he=q.pop();if(he!==ee){q[0]=he;e:for(var we=0,De=q.length,z=De>>>1;we<z;){var G=2*(we+1)-1,ae=q[G],de=G+1,ve=q[de];if(0>n(ae,he))de<De&&0>n(ve,ae)?(q[we]=ve,q[de]=he,we=de):(q[we]=ae,q[G]=he,we=G);else if(de<De&&0>n(ve,he))q[we]=ve,q[de]=he,we=de;else break e}}return ee}function n(q,ee){var he=q.sortIndex-ee.sortIndex;return he!==0?he:q.id-ee.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var m=[],p=[],y=1,b=null,x=3,_=!1,w=!1,$=!1,A=!1,E=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function M(q){for(var ee=a(p);ee!==null;){if(ee.callback===null)o(p);else if(ee.startTime<=q)o(p),ee.sortIndex=ee.expirationTime,t(m,ee);else break;ee=a(p)}}function U(q){if($=!1,M(q),!w)if(a(m)!==null)w=!0,K||(K=!0,W());else{var ee=a(p);ee!==null&&Ae(U,ee.startTime-q)}}var K=!1,L=-1,B=5,H=-1;function ne(){return A?!0:!(e.unstable_now()-H<B)}function ie(){if(A=!1,K){var q=e.unstable_now();H=q;var ee=!0;try{e:{w=!1,$&&($=!1,T(L),L=-1),_=!0;var he=x;try{t:{for(M(q),b=a(m);b!==null&&!(b.expirationTime>q&&ne());){var we=b.callback;if(typeof we=="function"){b.callback=null,x=b.priorityLevel;var De=we(b.expirationTime<=q);if(q=e.unstable_now(),typeof De=="function"){b.callback=De,M(q),ee=!0;break t}b===a(m)&&o(m),M(q)}else o(m);b=a(m)}if(b!==null)ee=!0;else{var z=a(p);z!==null&&Ae(U,z.startTime-q),ee=!1}}break e}finally{b=null,x=he,_=!1}ee=void 0}}finally{ee?W():K=!1}}}var W;if(typeof N=="function")W=function(){N(ie)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,pe=ce.port2;ce.port1.onmessage=ie,W=function(){pe.postMessage(null)}}else W=function(){E(ie,0)};function Ae(q,ee){L=E(function(){q(e.unstable_now())},ee)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(q){switch(x){case 1:case 2:case 3:var ee=3;break;default:ee=x}var he=x;x=ee;try{return q()}finally{x=he}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(q,ee){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var he=x;x=q;try{return ee()}finally{x=he}},e.unstable_scheduleCallback=function(q,ee,he){var we=e.unstable_now();switch(typeof he=="object"&&he!==null?(he=he.delay,he=typeof he=="number"&&0<he?we+he:we):he=we,q){case 1:var De=-1;break;case 2:De=250;break;case 5:De=1073741823;break;case 4:De=1e4;break;default:De=5e3}return De=he+De,q={id:y++,callback:ee,priorityLevel:q,startTime:he,expirationTime:De,sortIndex:-1},he>we?(q.sortIndex=he,t(p,q),a(m)===null&&q===a(p)&&($?(T(L),L=-1):$=!0,Ae(U,he-we))):(q.sortIndex=De,t(m,q),w||_||(w=!0,K||(K=!0,W()))),q},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(q){var ee=x;return function(){var he=x;x=ee;try{return q.apply(this,arguments)}finally{x=he}}}})(h1)),h1}var m6;function mA(){return m6||(m6=1,p1.exports=fA()),p1.exports}var p6;function pA(){if(p6)return Vs;p6=1;var e=mA(),t=hl(),a=s4();function o(r){var i="https://react.dev/errors/"+r;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function s(r){var i=r,l=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(l=i.return),r=i.return;while(r)}return i.tag===3?l:null}function c(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function d(r){if(r.tag===31){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function m(r){if(s(r)!==r)throw Error(o(188))}function p(r){var i=r.alternate;if(!i){if(i=s(r),i===null)throw Error(o(188));return i!==r?null:r}for(var l=r,u=i;;){var f=l.return;if(f===null)break;var h=f.alternate;if(h===null){if(u=f.return,u!==null){l=u;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===l)return m(f),r;if(h===u)return m(f),i;h=h.sibling}throw Error(o(188))}if(l.return!==u.return)l=f,u=h;else{for(var S=!1,k=f.child;k;){if(k===l){S=!0,l=f,u=h;break}if(k===u){S=!0,u=f,l=h;break}k=k.sibling}if(!S){for(k=h.child;k;){if(k===l){S=!0,l=h,u=f;break}if(k===u){S=!0,u=h,l=f;break}k=k.sibling}if(!S)throw Error(o(189))}}if(l.alternate!==u)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?r:i}function y(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r;for(r=r.child;r!==null;){if(i=y(r),i!==null)return i;r=r.sibling}return null}var b=Object.assign,x=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),N=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),ne=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function W(r){return r===null||typeof r!="object"?null:(r=ie&&r[ie]||r["@@iterator"],typeof r=="function"?r:null)}var ce=Symbol.for("react.client.reference");function pe(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===ce?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case $:return"Fragment";case E:return"Profiler";case A:return"StrictMode";case U:return"Suspense";case K:return"SuspenseList";case H:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case w:return"Portal";case N:return r.displayName||"Context";case T:return(r._context.displayName||"Context")+".Consumer";case M:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case L:return i=r.displayName||null,i!==null?i:pe(r.type)||"Memo";case B:i=r._payload,r=r._init;try{return pe(r(i))}catch{}}return null}var Ae=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he={pending:!1,data:null,method:null,action:null},we=[],De=-1;function z(r){return{current:r}}function G(r){0>De||(r.current=we[De],we[De]=null,De--)}function ae(r,i){De++,we[De]=r.current,r.current=i}var de=z(null),ve=z(null),je=z(null),Ie=z(null);function wt(r,i){switch(ae(je,i),ae(ve,r),ae(de,null),i.nodeType){case 9:case 11:r=(r=i.documentElement)&&(r=r.namespaceURI)?Bv(r):0;break;default:if(r=i.tagName,i=i.namespaceURI)i=Bv(i),r=Kv(i,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}G(de),ae(de,r)}function Ye(){G(de),G(ve),G(je)}function dr(r){r.memoizedState!==null&&ae(Ie,r);var i=de.current,l=Kv(i,r.type);i!==l&&(ae(ve,r),ae(de,l))}function jn(r){ve.current===r&&(G(de),G(ve)),Ie.current===r&&(G(Ie),zs._currentValue=he)}var fr,zr;function yn(r){if(fr===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);fr=i&&i[1]||"",zr=-1<l.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+fr+r+zr}var Fa=!1;function Rr(r,i){if(!r||Fa)return"";Fa=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(i){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(Q){var F=Q}Reflect.construct(r,[],Y)}else{try{Y.call()}catch(Q){F=Q}r.call(Y.prototype)}}else{try{throw Error()}catch(Q){F=Q}(Y=r())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(Q){if(Q&&F&&typeof Q.stack=="string")return[Q.stack,F.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=u.DetermineComponentFrameRoot(),S=h[0],k=h[1];if(S&&k){var O=S.split(`
|
|
4
|
-
`),V=k.split(`
|
|
5
|
-
`);for(f=u=0;u<O.length&&!O[u].includes("DetermineComponentFrameRoot");)u++;for(;f<V.length&&!V[f].includes("DetermineComponentFrameRoot");)f++;if(u===O.length||f===V.length)for(u=O.length-1,f=V.length-1;1<=u&&0<=f&&O[u]!==V[f];)f--;for(;1<=u&&0<=f;u--,f--)if(O[u]!==V[f]){if(u!==1||f!==1)do if(u--,f--,0>f||O[u]!==V[f]){var J=`
|
|
6
|
-
`+O[u].replace(" at new "," at ");return r.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",r.displayName)),J}while(1<=u&&0<=f);break}}}finally{Fa=!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:"")?yn(l):""}function Ri(r,i){switch(r.tag){case 26:case 27:case 5:return yn(r.type);case 16:return yn("Lazy");case 13:return r.child!==i&&i!==null?yn("Suspense Fallback"):yn("Suspense");case 19:return yn("SuspenseList");case 0:case 15:return Rr(r.type,!1);case 11:return Rr(r.type.render,!1);case 1:return Rr(r.type,!0);case 31:return yn("Activity");default:return""}}function Bn(r){try{var i="",l=null;do i+=Ri(r,l),l=r,r=r.return;while(r);return i}catch(u){return`
|
|
7
|
-
Error generating stack: `+u.message+`
|
|
8
|
-
`+u.stack}}var Sr=Object.prototype.hasOwnProperty,Mn=e.unstable_scheduleCallback,qa=e.unstable_cancelCallback,Ho=e.unstable_shouldYield,Ci=e.unstable_requestPaint,j=e.unstable_now,C=e.unstable_getCurrentPriorityLevel,I=e.unstable_ImmediatePriority,oe=e.unstable_UserBlockingPriority,se=e.unstable_NormalPriority,le=e.unstable_LowPriority,me=e.unstable_IdlePriority,Me=e.log,Ue=e.unstable_setDisableYieldValue,Mt=null,yt=null;function kt(r){if(typeof Me=="function"&&Ue(r),yt&&typeof yt.setStrictMode=="function")try{yt.setStrictMode(Mt,r)}catch{}}var mn=Math.clz32?Math.clz32:Ld,Fo=Math.log,qo=Math.LN2;function Ld(r){return r>>>=0,r===0?32:31-(Fo(r)/qo|0)|0}var Ba=256,Di=262144,Ka=4194304;function Qa(r){var i=r&42;if(i!==0)return i;switch(r&-r){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:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function Bl(r,i,l){var u=r.pendingLanes;if(u===0)return 0;var f=0,h=r.suspendedLanes,S=r.pingedLanes;r=r.warmLanes;var k=u&134217727;return k!==0?(u=k&~h,u!==0?f=Qa(u):(S&=k,S!==0?f=Qa(S):l||(l=k&~r,l!==0&&(f=Qa(l))))):(k=u&~h,k!==0?f=Qa(k):S!==0?f=Qa(S):l||(l=u&~r,l!==0&&(f=Qa(l)))),f===0?0:i!==0&&i!==f&&(i&h)===0&&(h=f&-f,l=i&-i,h>=l||h===32&&(l&4194048)!==0)?i:f}function Bo(r,i){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&i)===0}function Sw(r,i){switch(r){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 Eh(){var r=Ka;return Ka<<=1,(Ka&62914560)===0&&(Ka=4194304),r}function Id(r){for(var i=[],l=0;31>l;l++)i.push(r);return i}function Ko(r,i){r.pendingLanes|=i,i!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function ww(r,i,l,u,f,h){var S=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var k=r.entanglements,O=r.expirationTimes,V=r.hiddenUpdates;for(l=S&~l;0<l;){var J=31-mn(l),Y=1<<J;k[J]=0,O[J]=-1;var F=V[J];if(F!==null)for(V[J]=null,J=0;J<F.length;J++){var Q=F[J];Q!==null&&(Q.lane&=-536870913)}l&=~Y}u!==0&&Th(r,u,0),h!==0&&f===0&&r.tag!==0&&(r.suspendedLanes|=h&~(S&~i))}function Th(r,i,l){r.pendingLanes|=i,r.suspendedLanes&=~i;var u=31-mn(i);r.entangledLanes|=i,r.entanglements[u]=r.entanglements[u]|1073741824|l&261930}function jh(r,i){var l=r.entangledLanes|=i;for(r=r.entanglements;l;){var u=31-mn(l),f=1<<u;f&i|r[u]&i&&(r[u]|=i),l&=~f}}function Mh(r,i){var l=i&-i;return l=(l&42)!==0?1:Ud(l),(l&(r.suspendedLanes|i))!==0?0:l}function Ud(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Zd(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Oh(){var r=ee.p;return r!==0?r:(r=window.event,r===void 0?32:gy(r.type))}function Nh(r,i){var l=ee.p;try{return ee.p=r,i()}finally{ee.p=l}}var la=Math.random().toString(36).slice(2),Qt="__reactFiber$"+la,bn="__reactProps$"+la,Pi="__reactContainer$"+la,Vd="__reactEvents$"+la,kw="__reactListeners$"+la,$w="__reactHandles$"+la,zh="__reactResources$"+la,Qo="__reactMarker$"+la;function Hd(r){delete r[Qt],delete r[bn],delete r[Vd],delete r[kw],delete r[$w]}function Li(r){var i=r[Qt];if(i)return i;for(var l=r.parentNode;l;){if(i=l[Pi]||l[Qt]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(r=ey(r);r!==null;){if(l=r[Qt])return l;r=ey(r)}return i}r=l,l=r.parentNode}return null}function Ii(r){if(r=r[Qt]||r[Pi]){var i=r.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return r}return null}function Go(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r.stateNode;throw Error(o(33))}function Ui(r){var i=r[zh];return i||(i=r[zh]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Ft(r){r[Qo]=!0}var Rh=new Set,Ch={};function Ga(r,i){Zi(r,i),Zi(r+"Capture",i)}function Zi(r,i){for(Ch[r]=i,r=0;r<i.length;r++)Rh.add(i[r])}var Aw=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]*$"),Dh={},Ph={};function Ew(r){return Sr.call(Ph,r)?!0:Sr.call(Dh,r)?!1:Aw.test(r)?Ph[r]=!0:(Dh[r]=!0,!1)}function Kl(r,i,l){if(Ew(i))if(l===null)r.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":r.removeAttribute(i);return;case"boolean":var u=i.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){r.removeAttribute(i);return}}r.setAttribute(i,""+l)}}function Ql(r,i,l){if(l===null)r.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(i);return}r.setAttribute(i,""+l)}}function Cr(r,i,l,u){if(u===null)r.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(l);return}r.setAttributeNS(i,l,""+u)}}function Kn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Lh(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Tw(r,i,l){var u=Object.getOwnPropertyDescriptor(r.constructor.prototype,i);if(!r.hasOwnProperty(i)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,h=u.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return f.call(this)},set:function(S){l=""+S,h.call(this,S)}}),Object.defineProperty(r,i,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(S){l=""+S},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function Fd(r){if(!r._valueTracker){var i=Lh(r)?"checked":"value";r._valueTracker=Tw(r,i,""+r[i])}}function Ih(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var l=i.getValue(),u="";return r&&(u=Lh(r)?r.checked?"true":"false":r.value),r=u,r!==l?(i.setValue(r),!0):!1}function Gl(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var jw=/[\n"\\]/g;function Qn(r){return r.replace(jw,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function qd(r,i,l,u,f,h,S,k){r.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?r.type=S:r.removeAttribute("type"),i!=null?S==="number"?(i===0&&r.value===""||r.value!=i)&&(r.value=""+Kn(i)):r.value!==""+Kn(i)&&(r.value=""+Kn(i)):S!=="submit"&&S!=="reset"||r.removeAttribute("value"),i!=null?Bd(r,S,Kn(i)):l!=null?Bd(r,S,Kn(l)):u!=null&&r.removeAttribute("value"),f==null&&h!=null&&(r.defaultChecked=!!h),f!=null&&(r.checked=f&&typeof f!="function"&&typeof f!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?r.name=""+Kn(k):r.removeAttribute("name")}function Uh(r,i,l,u,f,h,S,k){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(r.type=h),i!=null||l!=null){if(!(h!=="submit"&&h!=="reset"||i!=null)){Fd(r);return}l=l!=null?""+Kn(l):"",i=i!=null?""+Kn(i):l,k||i===r.value||(r.value=i),r.defaultValue=i}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,r.checked=k?r.checked:!!u,r.defaultChecked=!!u,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(r.name=S),Fd(r)}function Bd(r,i,l){i==="number"&&Gl(r.ownerDocument)===r||r.defaultValue===""+l||(r.defaultValue=""+l)}function Vi(r,i,l,u){if(r=r.options,i){i={};for(var f=0;f<l.length;f++)i["$"+l[f]]=!0;for(l=0;l<r.length;l++)f=i.hasOwnProperty("$"+r[l].value),r[l].selected!==f&&(r[l].selected=f),f&&u&&(r[l].defaultSelected=!0)}else{for(l=""+Kn(l),i=null,f=0;f<r.length;f++){if(r[f].value===l){r[f].selected=!0,u&&(r[f].defaultSelected=!0);return}i!==null||r[f].disabled||(i=r[f])}i!==null&&(i.selected=!0)}}function Zh(r,i,l){if(i!=null&&(i=""+Kn(i),i!==r.value&&(r.value=i),l==null)){r.defaultValue!==i&&(r.defaultValue=i);return}r.defaultValue=l!=null?""+Kn(l):""}function Vh(r,i,l,u){if(i==null){if(u!=null){if(l!=null)throw Error(o(92));if(Ae(u)){if(1<u.length)throw Error(o(93));u=u[0]}l=u}l==null&&(l=""),i=l}l=Kn(i),r.defaultValue=l,u=r.textContent,u===l&&u!==""&&u!==null&&(r.value=u),Fd(r)}function Hi(r,i){if(i){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=i;return}}r.textContent=i}var Mw=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 Hh(r,i,l){var u=i.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?r.setProperty(i,""):i==="float"?r.cssFloat="":r[i]="":u?r.setProperty(i,l):typeof l!="number"||l===0||Mw.has(i)?i==="float"?r.cssFloat=l:r[i]=(""+l).trim():r[i]=l+"px"}function Fh(r,i,l){if(i!=null&&typeof i!="object")throw Error(o(62));if(r=r.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||i!=null&&i.hasOwnProperty(u)||(u.indexOf("--")===0?r.setProperty(u,""):u==="float"?r.cssFloat="":r[u]="");for(var f in i)u=i[f],i.hasOwnProperty(f)&&l[f]!==u&&Hh(r,f,u)}else for(var h in i)i.hasOwnProperty(h)&&Hh(r,h,i[h])}function Kd(r){if(r.indexOf("-")===-1)return!1;switch(r){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 Ow=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"]]),Nw=/^[\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 Jl(r){return Nw.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Dr(){}var Qd=null;function Gd(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Fi=null,qi=null;function qh(r){var i=Ii(r);if(i&&(r=i.stateNode)){var l=r[bn]||null;e:switch(r=i.stateNode,i.type){case"input":if(qd(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),i=l.name,l.type==="radio"&&i!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Qn(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var u=l[i];if(u!==r&&u.form===r.form){var f=u[bn]||null;if(!f)throw Error(o(90));qd(u,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(i=0;i<l.length;i++)u=l[i],u.form===r.form&&Ih(u)}break e;case"textarea":Zh(r,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&Vi(r,!!l.multiple,i,!1)}}}var Jd=!1;function Bh(r,i,l){if(Jd)return r(i,l);Jd=!0;try{var u=r(i);return u}finally{if(Jd=!1,(Fi!==null||qi!==null)&&(Pc(),Fi&&(i=Fi,r=qi,qi=Fi=null,qh(i),r)))for(i=0;i<r.length;i++)qh(r[i])}}function Jo(r,i){var l=r.stateNode;if(l===null)return null;var u=l[bn]||null;if(u===null)return null;l=u[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(r=r.type,u=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!u;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(o(231,i,typeof l));return l}var Pr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xd=!1;if(Pr)try{var Xo={};Object.defineProperty(Xo,"passive",{get:function(){Xd=!0}}),window.addEventListener("test",Xo,Xo),window.removeEventListener("test",Xo,Xo)}catch{Xd=!1}var ca=null,Yd=null,Xl=null;function Kh(){if(Xl)return Xl;var r,i=Yd,l=i.length,u,f="value"in ca?ca.value:ca.textContent,h=f.length;for(r=0;r<l&&i[r]===f[r];r++);var S=l-r;for(u=1;u<=S&&i[l-u]===f[h-u];u++);return Xl=f.slice(r,1<u?1-u:void 0)}function Yl(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function Wl(){return!0}function Qh(){return!1}function _n(r){function i(l,u,f,h,S){this._reactName=l,this._targetInst=f,this.type=u,this.nativeEvent=h,this.target=S,this.currentTarget=null;for(var k in r)r.hasOwnProperty(k)&&(l=r[k],this[k]=l?l(h):h[k]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Wl:Qh,this.isPropagationStopped=Qh,this}return b(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Wl)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Wl)},persist:function(){},isPersistent:Wl}),i}var Ja={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ec=_n(Ja),Yo=b({},Ja,{view:0,detail:0}),zw=_n(Yo),Wd,ef,Wo,tc=b({},Yo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nf,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Wo&&(Wo&&r.type==="mousemove"?(Wd=r.screenX-Wo.screenX,ef=r.screenY-Wo.screenY):ef=Wd=0,Wo=r),Wd)},movementY:function(r){return"movementY"in r?r.movementY:ef}}),Gh=_n(tc),Rw=b({},tc,{dataTransfer:0}),Cw=_n(Rw),Dw=b({},Yo,{relatedTarget:0}),tf=_n(Dw),Pw=b({},Ja,{animationName:0,elapsedTime:0,pseudoElement:0}),Lw=_n(Pw),Iw=b({},Ja,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Uw=_n(Iw),Zw=b({},Ja,{data:0}),Jh=_n(Zw),Vw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hw={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"},Fw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qw(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=Fw[r])?!!i[r]:!1}function nf(){return qw}var Bw=b({},Yo,{key:function(r){if(r.key){var i=Vw[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=Yl(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Hw[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nf,charCode:function(r){return r.type==="keypress"?Yl(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Yl(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Kw=_n(Bw),Qw=b({},tc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xh=_n(Qw),Gw=b({},Yo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nf}),Jw=_n(Gw),Xw=b({},Ja,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yw=_n(Xw),Ww=b({},tc,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),e7=_n(Ww),t7=b({},Ja,{newState:0,oldState:0}),n7=_n(t7),r7=[9,13,27,32],rf=Pr&&"CompositionEvent"in window,es=null;Pr&&"documentMode"in document&&(es=document.documentMode);var a7=Pr&&"TextEvent"in window&&!es,Yh=Pr&&(!rf||es&&8<es&&11>=es),Wh=" ",eg=!1;function tg(r,i){switch(r){case"keyup":return r7.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ng(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Bi=!1;function i7(r,i){switch(r){case"compositionend":return ng(i);case"keypress":return i.which!==32?null:(eg=!0,Wh);case"textInput":return r=i.data,r===Wh&&eg?null:r;default:return null}}function o7(r,i){if(Bi)return r==="compositionend"||!rf&&tg(r,i)?(r=Kh(),Xl=Yd=ca=null,Bi=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Yh&&i.locale!=="ko"?null:i.data;default:return null}}var s7={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 rg(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!s7[r.type]:i==="textarea"}function ag(r,i,l,u){Fi?qi?qi.push(u):qi=[u]:Fi=u,i=Fc(i,"onChange"),0<i.length&&(l=new ec("onChange","change",null,l,u),r.push({event:l,listeners:i}))}var ts=null,ns=null;function l7(r){Uv(r,0)}function nc(r){var i=Go(r);if(Ih(i))return r}function ig(r,i){if(r==="change")return i}var og=!1;if(Pr){var af;if(Pr){var of="oninput"in document;if(!of){var sg=document.createElement("div");sg.setAttribute("oninput","return;"),of=typeof sg.oninput=="function"}af=of}else af=!1;og=af&&(!document.documentMode||9<document.documentMode)}function lg(){ts&&(ts.detachEvent("onpropertychange",cg),ns=ts=null)}function cg(r){if(r.propertyName==="value"&&nc(ns)){var i=[];ag(i,ns,r,Gd(r)),Bh(l7,i)}}function c7(r,i,l){r==="focusin"?(lg(),ts=i,ns=l,ts.attachEvent("onpropertychange",cg)):r==="focusout"&&lg()}function u7(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return nc(ns)}function d7(r,i){if(r==="click")return nc(i)}function f7(r,i){if(r==="input"||r==="change")return nc(i)}function m7(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var On=typeof Object.is=="function"?Object.is:m7;function rs(r,i){if(On(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var l=Object.keys(r),u=Object.keys(i);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var f=l[u];if(!Sr.call(i,f)||!On(r[f],i[f]))return!1}return!0}function ug(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function dg(r,i){var l=ug(r);r=0;for(var u;l;){if(l.nodeType===3){if(u=r+l.textContent.length,r<=i&&u>=i)return{node:l,offset:i-r};r=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=ug(l)}}function fg(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?fg(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function mg(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var i=Gl(r.document);i instanceof r.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)r=i.contentWindow;else break;i=Gl(r.document)}return i}function sf(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}var p7=Pr&&"documentMode"in document&&11>=document.documentMode,Ki=null,lf=null,as=null,cf=!1;function pg(r,i,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;cf||Ki==null||Ki!==Gl(u)||(u=Ki,"selectionStart"in u&&sf(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),as&&rs(as,u)||(as=u,u=Fc(lf,"onSelect"),0<u.length&&(i=new ec("onSelect","select",null,i,l),r.push({event:i,listeners:u}),i.target=Ki)))}function Xa(r,i){var l={};return l[r.toLowerCase()]=i.toLowerCase(),l["Webkit"+r]="webkit"+i,l["Moz"+r]="moz"+i,l}var Qi={animationend:Xa("Animation","AnimationEnd"),animationiteration:Xa("Animation","AnimationIteration"),animationstart:Xa("Animation","AnimationStart"),transitionrun:Xa("Transition","TransitionRun"),transitionstart:Xa("Transition","TransitionStart"),transitioncancel:Xa("Transition","TransitionCancel"),transitionend:Xa("Transition","TransitionEnd")},uf={},hg={};Pr&&(hg=document.createElement("div").style,"AnimationEvent"in window||(delete Qi.animationend.animation,delete Qi.animationiteration.animation,delete Qi.animationstart.animation),"TransitionEvent"in window||delete Qi.transitionend.transition);function Ya(r){if(uf[r])return uf[r];if(!Qi[r])return r;var i=Qi[r],l;for(l in i)if(i.hasOwnProperty(l)&&l in hg)return uf[r]=i[l];return r}var gg=Ya("animationend"),vg=Ya("animationiteration"),yg=Ya("animationstart"),h7=Ya("transitionrun"),g7=Ya("transitionstart"),v7=Ya("transitioncancel"),bg=Ya("transitionend"),_g=new Map,df="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(" ");df.push("scrollEnd");function mr(r,i){_g.set(r,i),Ga(i,[r])}var rc=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Gn=[],Gi=0,ff=0;function ac(){for(var r=Gi,i=ff=Gi=0;i<r;){var l=Gn[i];Gn[i++]=null;var u=Gn[i];Gn[i++]=null;var f=Gn[i];Gn[i++]=null;var h=Gn[i];if(Gn[i++]=null,u!==null&&f!==null){var S=u.pending;S===null?f.next=f:(f.next=S.next,S.next=f),u.pending=f}h!==0&&xg(l,f,h)}}function ic(r,i,l,u){Gn[Gi++]=r,Gn[Gi++]=i,Gn[Gi++]=l,Gn[Gi++]=u,ff|=u,r.lanes|=u,r=r.alternate,r!==null&&(r.lanes|=u)}function mf(r,i,l,u){return ic(r,i,l,u),oc(r)}function Wa(r,i){return ic(r,null,null,i),oc(r)}function xg(r,i,l){r.lanes|=l;var u=r.alternate;u!==null&&(u.lanes|=l);for(var f=!1,h=r.return;h!==null;)h.childLanes|=l,u=h.alternate,u!==null&&(u.childLanes|=l),h.tag===22&&(r=h.stateNode,r===null||r._visibility&1||(f=!0)),r=h,h=h.return;return r.tag===3?(h=r.stateNode,f&&i!==null&&(f=31-mn(l),r=h.hiddenUpdates,u=r[f],u===null?r[f]=[i]:u.push(i),i.lane=l|536870912),h):null}function oc(r){if(50<As)throw As=0,S0=null,Error(o(185));for(var i=r.return;i!==null;)r=i,i=r.return;return r.tag===3?r.stateNode:null}var Ji={};function y7(r,i,l,u){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nn(r,i,l,u){return new y7(r,i,l,u)}function pf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Lr(r,i){var l=r.alternate;return l===null?(l=Nn(r.tag,i,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=i,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&65011712,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,i=r.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l.refCleanup=r.refCleanup,l}function Sg(r,i){r.flags&=65011714;var l=r.alternate;return l===null?(r.childLanes=0,r.lanes=i,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=l.childLanes,r.lanes=l.lanes,r.child=l.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=l.memoizedProps,r.memoizedState=l.memoizedState,r.updateQueue=l.updateQueue,r.type=l.type,i=l.dependencies,r.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),r}function sc(r,i,l,u,f,h){var S=0;if(u=r,typeof r=="function")pf(r)&&(S=1);else if(typeof r=="string")S=w9(r,l,de.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case H:return r=Nn(31,l,i,f),r.elementType=H,r.lanes=h,r;case $:return ei(l.children,f,h,i);case A:S=8,f|=24;break;case E:return r=Nn(12,l,i,f|2),r.elementType=E,r.lanes=h,r;case U:return r=Nn(13,l,i,f),r.elementType=U,r.lanes=h,r;case K:return r=Nn(19,l,i,f),r.elementType=K,r.lanes=h,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case N:S=10;break e;case T:S=9;break e;case M:S=11;break e;case L:S=14;break e;case B:S=16,u=null;break e}S=29,l=Error(o(130,r===null?"null":typeof r,"")),u=null}return i=Nn(S,l,i,f),i.elementType=r,i.type=u,i.lanes=h,i}function ei(r,i,l,u){return r=Nn(7,r,u,i),r.lanes=l,r}function hf(r,i,l){return r=Nn(6,r,null,i),r.lanes=l,r}function wg(r){var i=Nn(18,null,null,0);return i.stateNode=r,i}function gf(r,i,l){return i=Nn(4,r.children!==null?r.children:[],r.key,i),i.lanes=l,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}var kg=new WeakMap;function Jn(r,i){if(typeof r=="object"&&r!==null){var l=kg.get(r);return l!==void 0?l:(i={value:r,source:i,stack:Bn(i)},kg.set(r,i),i)}return{value:r,source:i,stack:Bn(i)}}var Xi=[],Yi=0,lc=null,is=0,Xn=[],Yn=0,ua=null,wr=1,kr="";function Ir(r,i){Xi[Yi++]=is,Xi[Yi++]=lc,lc=r,is=i}function $g(r,i,l){Xn[Yn++]=wr,Xn[Yn++]=kr,Xn[Yn++]=ua,ua=r;var u=wr;r=kr;var f=32-mn(u)-1;u&=~(1<<f),l+=1;var h=32-mn(i)+f;if(30<h){var S=f-f%5;h=(u&(1<<S)-1).toString(32),u>>=S,f-=S,wr=1<<32-mn(i)+f|l<<f|u,kr=h+r}else wr=1<<h|l<<f|u,kr=r}function vf(r){r.return!==null&&(Ir(r,1),$g(r,1,0))}function yf(r){for(;r===lc;)lc=Xi[--Yi],Xi[Yi]=null,is=Xi[--Yi],Xi[Yi]=null;for(;r===ua;)ua=Xn[--Yn],Xn[Yn]=null,kr=Xn[--Yn],Xn[Yn]=null,wr=Xn[--Yn],Xn[Yn]=null}function Ag(r,i){Xn[Yn++]=wr,Xn[Yn++]=kr,Xn[Yn++]=ua,wr=i.id,kr=i.overflow,ua=r}var Gt=null,pt=null,qe=!1,da=null,Wn=!1,bf=Error(o(519));function fa(r){var i=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw os(Jn(i,r)),bf}function Eg(r){var i=r.stateNode,l=r.type,u=r.memoizedProps;switch(i[Qt]=r,i[bn]=u,l){case"dialog":Ve("cancel",i),Ve("close",i);break;case"iframe":case"object":case"embed":Ve("load",i);break;case"video":case"audio":for(l=0;l<Ts.length;l++)Ve(Ts[l],i);break;case"source":Ve("error",i);break;case"img":case"image":case"link":Ve("error",i),Ve("load",i);break;case"details":Ve("toggle",i);break;case"input":Ve("invalid",i),Uh(i,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Ve("invalid",i);break;case"textarea":Ve("invalid",i),Vh(i,u.value,u.defaultValue,u.children)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||i.textContent===""+l||u.suppressHydrationWarning===!0||Fv(i.textContent,l)?(u.popover!=null&&(Ve("beforetoggle",i),Ve("toggle",i)),u.onScroll!=null&&Ve("scroll",i),u.onScrollEnd!=null&&Ve("scrollend",i),u.onClick!=null&&(i.onclick=Dr),i=!0):i=!1,i||fa(r,!0)}function Tg(r){for(Gt=r.return;Gt;)switch(Gt.tag){case 5:case 31:case 13:Wn=!1;return;case 27:case 3:Wn=!0;return;default:Gt=Gt.return}}function Wi(r){if(r!==Gt)return!1;if(!qe)return Tg(r),qe=!0,!1;var i=r.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=r.type,l=!(l!=="form"&&l!=="button")||P0(r.type,r.memoizedProps)),l=!l),l&&pt&&fa(r),Tg(r),i===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));pt=Wv(r)}else if(i===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));pt=Wv(r)}else i===27?(i=pt,Aa(r.type)?(r=V0,V0=null,pt=r):pt=i):pt=Gt?tr(r.stateNode.nextSibling):null;return!0}function ti(){pt=Gt=null,qe=!1}function _f(){var r=da;return r!==null&&(kn===null?kn=r:kn.push.apply(kn,r),da=null),r}function os(r){da===null?da=[r]:da.push(r)}var xf=z(null),ni=null,Ur=null;function ma(r,i,l){ae(xf,i._currentValue),i._currentValue=l}function Zr(r){r._currentValue=xf.current,G(xf)}function Sf(r,i,l){for(;r!==null;){var u=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),r===l)break;r=r.return}}function wf(r,i,l,u){var f=r.child;for(f!==null&&(f.return=r);f!==null;){var h=f.dependencies;if(h!==null){var S=f.child;h=h.firstContext;e:for(;h!==null;){var k=h;h=f;for(var O=0;O<i.length;O++)if(k.context===i[O]){h.lanes|=l,k=h.alternate,k!==null&&(k.lanes|=l),Sf(h.return,l,r),u||(S=null);break e}h=k.next}}else if(f.tag===18){if(S=f.return,S===null)throw Error(o(341));S.lanes|=l,h=S.alternate,h!==null&&(h.lanes|=l),Sf(S,l,r),S=null}else S=f.child;if(S!==null)S.return=f;else for(S=f;S!==null;){if(S===r){S=null;break}if(f=S.sibling,f!==null){f.return=S.return,S=f;break}S=S.return}f=S}}function eo(r,i,l,u){r=null;for(var f=i,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var S=f.alternate;if(S===null)throw Error(o(387));if(S=S.memoizedProps,S!==null){var k=f.type;On(f.pendingProps.value,S.value)||(r!==null?r.push(k):r=[k])}}else if(f===Ie.current){if(S=f.alternate,S===null)throw Error(o(387));S.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(r!==null?r.push(zs):r=[zs])}f=f.return}r!==null&&wf(i,r,l,u),i.flags|=262144}function cc(r){for(r=r.firstContext;r!==null;){if(!On(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function ri(r){ni=r,Ur=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Jt(r){return jg(ni,r)}function uc(r,i){return ni===null&&ri(r),jg(r,i)}function jg(r,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},Ur===null){if(r===null)throw Error(o(308));Ur=i,r.dependencies={lanes:0,firstContext:i},r.flags|=524288}else Ur=Ur.next=i;return l}var b7=typeof AbortController<"u"?AbortController:function(){var r=[],i=this.signal={aborted:!1,addEventListener:function(l,u){r.push(u)}};this.abort=function(){i.aborted=!0,r.forEach(function(l){return l()})}},_7=e.unstable_scheduleCallback,x7=e.unstable_NormalPriority,Rt={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function kf(){return{controller:new b7,data:new Map,refCount:0}}function ss(r){r.refCount--,r.refCount===0&&_7(x7,function(){r.controller.abort()})}var ls=null,$f=0,to=0,no=null;function S7(r,i){if(ls===null){var l=ls=[];$f=0,to=T0(),no={status:"pending",value:void 0,then:function(u){l.push(u)}}}return $f++,i.then(Mg,Mg),i}function Mg(){if(--$f===0&&ls!==null){no!==null&&(no.status="fulfilled");var r=ls;ls=null,to=0,no=null;for(var i=0;i<r.length;i++)(0,r[i])()}}function w7(r,i){var l=[],u={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return r.then(function(){u.status="fulfilled",u.value=i;for(var f=0;f<l.length;f++)(0,l[f])(i)},function(f){for(u.status="rejected",u.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),u}var Og=q.S;q.S=function(r,i){pv=j(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&S7(r,i),Og!==null&&Og(r,i)};var ai=z(null);function Af(){var r=ai.current;return r!==null?r:ct.pooledCache}function dc(r,i){i===null?ae(ai,ai.current):ae(ai,i.pool)}function Ng(){var r=Af();return r===null?null:{parent:Rt._currentValue,pool:r}}var ro=Error(o(460)),Ef=Error(o(474)),fc=Error(o(542)),mc={then:function(){}};function zg(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Rg(r,i,l){switch(l=r[l],l===void 0?r.push(i):l!==i&&(i.then(Dr,Dr),i=l),i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,Dg(r),r;default:if(typeof i.status=="string")i.then(Dr,Dr);else{if(r=ct,r!==null&&100<r.shellSuspendCounter)throw Error(o(482));r=i,r.status="pending",r.then(function(u){if(i.status==="pending"){var f=i;f.status="fulfilled",f.value=u}},function(u){if(i.status==="pending"){var f=i;f.status="rejected",f.reason=u}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,Dg(r),r}throw oi=i,ro}}function ii(r){try{var i=r._init;return i(r._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(oi=l,ro):l}}var oi=null;function Cg(){if(oi===null)throw Error(o(459));var r=oi;return oi=null,r}function Dg(r){if(r===ro||r===fc)throw Error(o(483))}var ao=null,cs=0;function pc(r){var i=cs;return cs+=1,ao===null&&(ao=[]),Rg(ao,r,i)}function us(r,i){i=i.props.ref,r.ref=i!==void 0?i:null}function hc(r,i){throw i.$$typeof===x?Error(o(525)):(r=Object.prototype.toString.call(i),Error(o(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r)))}function Pg(r){function i(D,R){if(r){var Z=D.deletions;Z===null?(D.deletions=[R],D.flags|=16):Z.push(R)}}function l(D,R){if(!r)return null;for(;R!==null;)i(D,R),R=R.sibling;return null}function u(D){for(var R=new Map;D!==null;)D.key!==null?R.set(D.key,D):R.set(D.index,D),D=D.sibling;return R}function f(D,R){return D=Lr(D,R),D.index=0,D.sibling=null,D}function h(D,R,Z){return D.index=Z,r?(Z=D.alternate,Z!==null?(Z=Z.index,Z<R?(D.flags|=67108866,R):Z):(D.flags|=67108866,R)):(D.flags|=1048576,R)}function S(D){return r&&D.alternate===null&&(D.flags|=67108866),D}function k(D,R,Z,X){return R===null||R.tag!==6?(R=hf(Z,D.mode,X),R.return=D,R):(R=f(R,Z),R.return=D,R)}function O(D,R,Z,X){var be=Z.type;return be===$?J(D,R,Z.props.children,X,Z.key):R!==null&&(R.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===B&&ii(be)===R.type)?(R=f(R,Z.props),us(R,Z),R.return=D,R):(R=sc(Z.type,Z.key,Z.props,null,D.mode,X),us(R,Z),R.return=D,R)}function V(D,R,Z,X){return R===null||R.tag!==4||R.stateNode.containerInfo!==Z.containerInfo||R.stateNode.implementation!==Z.implementation?(R=gf(Z,D.mode,X),R.return=D,R):(R=f(R,Z.children||[]),R.return=D,R)}function J(D,R,Z,X,be){return R===null||R.tag!==7?(R=ei(Z,D.mode,X,be),R.return=D,R):(R=f(R,Z),R.return=D,R)}function Y(D,R,Z){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=hf(""+R,D.mode,Z),R.return=D,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case _:return Z=sc(R.type,R.key,R.props,null,D.mode,Z),us(Z,R),Z.return=D,Z;case w:return R=gf(R,D.mode,Z),R.return=D,R;case B:return R=ii(R),Y(D,R,Z)}if(Ae(R)||W(R))return R=ei(R,D.mode,Z,null),R.return=D,R;if(typeof R.then=="function")return Y(D,pc(R),Z);if(R.$$typeof===N)return Y(D,uc(D,R),Z);hc(D,R)}return null}function F(D,R,Z,X){var be=R!==null?R.key:null;if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return be!==null?null:k(D,R,""+Z,X);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case _:return Z.key===be?O(D,R,Z,X):null;case w:return Z.key===be?V(D,R,Z,X):null;case B:return Z=ii(Z),F(D,R,Z,X)}if(Ae(Z)||W(Z))return be!==null?null:J(D,R,Z,X,null);if(typeof Z.then=="function")return F(D,R,pc(Z),X);if(Z.$$typeof===N)return F(D,R,uc(D,Z),X);hc(D,Z)}return null}function Q(D,R,Z,X,be){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return D=D.get(Z)||null,k(R,D,""+X,be);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case _:return D=D.get(X.key===null?Z:X.key)||null,O(R,D,X,be);case w:return D=D.get(X.key===null?Z:X.key)||null,V(R,D,X,be);case B:return X=ii(X),Q(D,R,Z,X,be)}if(Ae(X)||W(X))return D=D.get(Z)||null,J(R,D,X,be,null);if(typeof X.then=="function")return Q(D,R,Z,pc(X),be);if(X.$$typeof===N)return Q(D,R,Z,uc(R,X),be);hc(R,X)}return null}function ge(D,R,Z,X){for(var be=null,Qe=null,ye=R,Re=R=0,Fe=null;ye!==null&&Re<Z.length;Re++){ye.index>Re?(Fe=ye,ye=null):Fe=ye.sibling;var Ge=F(D,ye,Z[Re],X);if(Ge===null){ye===null&&(ye=Fe);break}r&&ye&&Ge.alternate===null&&i(D,ye),R=h(Ge,R,Re),Qe===null?be=Ge:Qe.sibling=Ge,Qe=Ge,ye=Fe}if(Re===Z.length)return l(D,ye),qe&&Ir(D,Re),be;if(ye===null){for(;Re<Z.length;Re++)ye=Y(D,Z[Re],X),ye!==null&&(R=h(ye,R,Re),Qe===null?be=ye:Qe.sibling=ye,Qe=ye);return qe&&Ir(D,Re),be}for(ye=u(ye);Re<Z.length;Re++)Fe=Q(ye,D,Re,Z[Re],X),Fe!==null&&(r&&Fe.alternate!==null&&ye.delete(Fe.key===null?Re:Fe.key),R=h(Fe,R,Re),Qe===null?be=Fe:Qe.sibling=Fe,Qe=Fe);return r&&ye.forEach(function(Oa){return i(D,Oa)}),qe&&Ir(D,Re),be}function xe(D,R,Z,X){if(Z==null)throw Error(o(151));for(var be=null,Qe=null,ye=R,Re=R=0,Fe=null,Ge=Z.next();ye!==null&&!Ge.done;Re++,Ge=Z.next()){ye.index>Re?(Fe=ye,ye=null):Fe=ye.sibling;var Oa=F(D,ye,Ge.value,X);if(Oa===null){ye===null&&(ye=Fe);break}r&&ye&&Oa.alternate===null&&i(D,ye),R=h(Oa,R,Re),Qe===null?be=Oa:Qe.sibling=Oa,Qe=Oa,ye=Fe}if(Ge.done)return l(D,ye),qe&&Ir(D,Re),be;if(ye===null){for(;!Ge.done;Re++,Ge=Z.next())Ge=Y(D,Ge.value,X),Ge!==null&&(R=h(Ge,R,Re),Qe===null?be=Ge:Qe.sibling=Ge,Qe=Ge);return qe&&Ir(D,Re),be}for(ye=u(ye);!Ge.done;Re++,Ge=Z.next())Ge=Q(ye,D,Re,Ge.value,X),Ge!==null&&(r&&Ge.alternate!==null&&ye.delete(Ge.key===null?Re:Ge.key),R=h(Ge,R,Re),Qe===null?be=Ge:Qe.sibling=Ge,Qe=Ge);return r&&ye.forEach(function(R9){return i(D,R9)}),qe&&Ir(D,Re),be}function ot(D,R,Z,X){if(typeof Z=="object"&&Z!==null&&Z.type===$&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case _:e:{for(var be=Z.key;R!==null;){if(R.key===be){if(be=Z.type,be===$){if(R.tag===7){l(D,R.sibling),X=f(R,Z.props.children),X.return=D,D=X;break e}}else if(R.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===B&&ii(be)===R.type){l(D,R.sibling),X=f(R,Z.props),us(X,Z),X.return=D,D=X;break e}l(D,R);break}else i(D,R);R=R.sibling}Z.type===$?(X=ei(Z.props.children,D.mode,X,Z.key),X.return=D,D=X):(X=sc(Z.type,Z.key,Z.props,null,D.mode,X),us(X,Z),X.return=D,D=X)}return S(D);case w:e:{for(be=Z.key;R!==null;){if(R.key===be)if(R.tag===4&&R.stateNode.containerInfo===Z.containerInfo&&R.stateNode.implementation===Z.implementation){l(D,R.sibling),X=f(R,Z.children||[]),X.return=D,D=X;break e}else{l(D,R);break}else i(D,R);R=R.sibling}X=gf(Z,D.mode,X),X.return=D,D=X}return S(D);case B:return Z=ii(Z),ot(D,R,Z,X)}if(Ae(Z))return ge(D,R,Z,X);if(W(Z)){if(be=W(Z),typeof be!="function")throw Error(o(150));return Z=be.call(Z),xe(D,R,Z,X)}if(typeof Z.then=="function")return ot(D,R,pc(Z),X);if(Z.$$typeof===N)return ot(D,R,uc(D,Z),X);hc(D,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,R!==null&&R.tag===6?(l(D,R.sibling),X=f(R,Z),X.return=D,D=X):(l(D,R),X=hf(Z,D.mode,X),X.return=D,D=X),S(D)):l(D,R)}return function(D,R,Z,X){try{cs=0;var be=ot(D,R,Z,X);return ao=null,be}catch(ye){if(ye===ro||ye===fc)throw ye;var Qe=Nn(29,ye,null,D.mode);return Qe.lanes=X,Qe.return=D,Qe}}}var si=Pg(!0),Lg=Pg(!1),pa=!1;function Tf(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jf(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function ha(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function ga(r,i,l){var u=r.updateQueue;if(u===null)return null;if(u=u.shared,(Xe&2)!==0){var f=u.pending;return f===null?i.next=i:(i.next=f.next,f.next=i),u.pending=i,i=oc(r),xg(r,null,l),i}return ic(r,u,i,l),oc(r)}function ds(r,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var u=i.lanes;u&=r.pendingLanes,l|=u,i.lanes=l,jh(r,l)}}function Mf(r,i){var l=r.updateQueue,u=r.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var f=null,h=null;if(l=l.firstBaseUpdate,l!==null){do{var S={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};h===null?f=h=S:h=h.next=S,l=l.next}while(l!==null);h===null?f=h=i:h=h.next=i}else f=h=i;l={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:u.shared,callbacks:u.callbacks},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=i:r.next=i,l.lastBaseUpdate=i}var Of=!1;function fs(){if(Of){var r=no;if(r!==null)throw r}}function ms(r,i,l,u){Of=!1;var f=r.updateQueue;pa=!1;var h=f.firstBaseUpdate,S=f.lastBaseUpdate,k=f.shared.pending;if(k!==null){f.shared.pending=null;var O=k,V=O.next;O.next=null,S===null?h=V:S.next=V,S=O;var J=r.alternate;J!==null&&(J=J.updateQueue,k=J.lastBaseUpdate,k!==S&&(k===null?J.firstBaseUpdate=V:k.next=V,J.lastBaseUpdate=O))}if(h!==null){var Y=f.baseState;S=0,J=V=O=null,k=h;do{var F=k.lane&-536870913,Q=F!==k.lane;if(Q?(He&F)===F:(u&F)===F){F!==0&&F===to&&(Of=!0),J!==null&&(J=J.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var ge=r,xe=k;F=i;var ot=l;switch(xe.tag){case 1:if(ge=xe.payload,typeof ge=="function"){Y=ge.call(ot,Y,F);break e}Y=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=xe.payload,F=typeof ge=="function"?ge.call(ot,Y,F):ge,F==null)break e;Y=b({},Y,F);break e;case 2:pa=!0}}F=k.callback,F!==null&&(r.flags|=64,Q&&(r.flags|=8192),Q=f.callbacks,Q===null?f.callbacks=[F]:Q.push(F))}else Q={lane:F,tag:k.tag,payload:k.payload,callback:k.callback,next:null},J===null?(V=J=Q,O=Y):J=J.next=Q,S|=F;if(k=k.next,k===null){if(k=f.shared.pending,k===null)break;Q=k,k=Q.next,Q.next=null,f.lastBaseUpdate=Q,f.shared.pending=null}}while(!0);J===null&&(O=Y),f.baseState=O,f.firstBaseUpdate=V,f.lastBaseUpdate=J,h===null&&(f.shared.lanes=0),xa|=S,r.lanes=S,r.memoizedState=Y}}function Ig(r,i){if(typeof r!="function")throw Error(o(191,r));r.call(i)}function Ug(r,i){var l=r.callbacks;if(l!==null)for(r.callbacks=null,r=0;r<l.length;r++)Ig(l[r],i)}var io=z(null),gc=z(0);function Zg(r,i){r=Jr,ae(gc,r),ae(io,i),Jr=r|i.baseLanes}function Nf(){ae(gc,Jr),ae(io,io.current)}function zf(){Jr=gc.current,G(io),G(gc)}var zn=z(null),er=null;function va(r){var i=r.alternate;ae(Ot,Ot.current&1),ae(zn,r),er===null&&(i===null||io.current!==null||i.memoizedState!==null)&&(er=r)}function Rf(r){ae(Ot,Ot.current),ae(zn,r),er===null&&(er=r)}function Vg(r){r.tag===22?(ae(Ot,Ot.current),ae(zn,r),er===null&&(er=r)):ya()}function ya(){ae(Ot,Ot.current),ae(zn,zn.current)}function Rn(r){G(zn),er===r&&(er=null),G(Ot)}var Ot=z(0);function vc(r){for(var i=r;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||U0(l)||Z0(l)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Vr=0,Oe=null,at=null,Ct=null,yc=!1,oo=!1,li=!1,bc=0,ps=0,so=null,k7=0;function At(){throw Error(o(321))}function Cf(r,i){if(i===null)return!1;for(var l=0;l<i.length&&l<r.length;l++)if(!On(r[l],i[l]))return!1;return!0}function Df(r,i,l,u,f,h){return Vr=h,Oe=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,q.H=r===null||r.memoizedState===null?$2:Xf,li=!1,h=l(u,f),li=!1,oo&&(h=Fg(i,l,u,f)),Hg(r),h}function Hg(r){q.H=vs;var i=at!==null&&at.next!==null;if(Vr=0,Ct=at=Oe=null,yc=!1,ps=0,so=null,i)throw Error(o(300));r===null||Dt||(r=r.dependencies,r!==null&&cc(r)&&(Dt=!0))}function Fg(r,i,l,u){Oe=r;var f=0;do{if(oo&&(so=null),ps=0,oo=!1,25<=f)throw Error(o(301));if(f+=1,Ct=at=null,r.updateQueue!=null){var h=r.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}q.H=A2,h=i(l,u)}while(oo);return h}function $7(){var r=q.H,i=r.useState()[0];return i=typeof i.then=="function"?hs(i):i,r=r.useState()[0],(at!==null?at.memoizedState:null)!==r&&(Oe.flags|=1024),i}function Pf(){var r=bc!==0;return bc=0,r}function Lf(r,i,l){i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~l}function If(r){if(yc){for(r=r.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}yc=!1}Vr=0,Ct=at=Oe=null,oo=!1,ps=bc=0,so=null}function pn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ct===null?Oe.memoizedState=Ct=r:Ct=Ct.next=r,Ct}function Nt(){if(at===null){var r=Oe.alternate;r=r!==null?r.memoizedState:null}else r=at.next;var i=Ct===null?Oe.memoizedState:Ct.next;if(i!==null)Ct=i,at=r;else{if(r===null)throw Oe.alternate===null?Error(o(467)):Error(o(310));at=r,r={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},Ct===null?Oe.memoizedState=Ct=r:Ct=Ct.next=r}return Ct}function _c(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function hs(r){var i=ps;return ps+=1,so===null&&(so=[]),r=Rg(so,r,i),i=Oe,(Ct===null?i.memoizedState:Ct.next)===null&&(i=i.alternate,q.H=i===null||i.memoizedState===null?$2:Xf),r}function xc(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return hs(r);if(r.$$typeof===N)return Jt(r)}throw Error(o(438,String(r)))}function Uf(r){var i=null,l=Oe.updateQueue;if(l!==null&&(i=l.memoCache),i==null){var u=Oe.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(i={data:u.data.map(function(f){return f.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=_c(),Oe.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0)for(l=i.data[i.index]=Array(r),u=0;u<r;u++)l[u]=ne;return i.index++,l}function Hr(r,i){return typeof i=="function"?i(r):i}function Sc(r){var i=Nt();return Zf(i,at,r)}function Zf(r,i,l){var u=r.queue;if(u===null)throw Error(o(311));u.lastRenderedReducer=l;var f=r.baseQueue,h=u.pending;if(h!==null){if(f!==null){var S=f.next;f.next=h.next,h.next=S}i.baseQueue=f=h,u.pending=null}if(h=r.baseState,f===null)r.memoizedState=h;else{i=f.next;var k=S=null,O=null,V=i,J=!1;do{var Y=V.lane&-536870913;if(Y!==V.lane?(He&Y)===Y:(Vr&Y)===Y){var F=V.revertLane;if(F===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),Y===to&&(J=!0);else if((Vr&F)===F){V=V.next,F===to&&(J=!0);continue}else Y={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},O===null?(k=O=Y,S=h):O=O.next=Y,Oe.lanes|=F,xa|=F;Y=V.action,li&&l(h,Y),h=V.hasEagerState?V.eagerState:l(h,Y)}else F={lane:Y,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},O===null?(k=O=F,S=h):O=O.next=F,Oe.lanes|=Y,xa|=Y;V=V.next}while(V!==null&&V!==i);if(O===null?S=h:O.next=k,!On(h,r.memoizedState)&&(Dt=!0,J&&(l=no,l!==null)))throw l;r.memoizedState=h,r.baseState=S,r.baseQueue=O,u.lastRenderedState=h}return f===null&&(u.lanes=0),[r.memoizedState,u.dispatch]}function Vf(r){var i=Nt(),l=i.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=r;var u=l.dispatch,f=l.pending,h=i.memoizedState;if(f!==null){l.pending=null;var S=f=f.next;do h=r(h,S.action),S=S.next;while(S!==f);On(h,i.memoizedState)||(Dt=!0),i.memoizedState=h,i.baseQueue===null&&(i.baseState=h),l.lastRenderedState=h}return[h,u]}function qg(r,i,l){var u=Oe,f=Nt(),h=qe;if(h){if(l===void 0)throw Error(o(407));l=l()}else l=i();var S=!On((at||f).memoizedState,l);if(S&&(f.memoizedState=l,Dt=!0),f=f.queue,qf(Qg.bind(null,u,f,r),[r]),f.getSnapshot!==i||S||Ct!==null&&Ct.memoizedState.tag&1){if(u.flags|=2048,lo(9,{destroy:void 0},Kg.bind(null,u,f,l,i),null),ct===null)throw Error(o(349));h||(Vr&127)!==0||Bg(u,i,l)}return l}function Bg(r,i,l){r.flags|=16384,r={getSnapshot:i,value:l},i=Oe.updateQueue,i===null?(i=_c(),Oe.updateQueue=i,i.stores=[r]):(l=i.stores,l===null?i.stores=[r]:l.push(r))}function Kg(r,i,l,u){i.value=l,i.getSnapshot=u,Gg(i)&&Jg(r)}function Qg(r,i,l){return l(function(){Gg(i)&&Jg(r)})}function Gg(r){var i=r.getSnapshot;r=r.value;try{var l=i();return!On(r,l)}catch{return!0}}function Jg(r){var i=Wa(r,2);i!==null&&$n(i,r,2)}function Hf(r){var i=pn();if(typeof r=="function"){var l=r;if(r=l(),li){kt(!0);try{l()}finally{kt(!1)}}}return i.memoizedState=i.baseState=r,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hr,lastRenderedState:r},i}function Xg(r,i,l,u){return r.baseState=l,Zf(r,at,typeof u=="function"?u:Hr)}function A7(r,i,l,u,f){if($c(r))throw Error(o(485));if(r=i.action,r!==null){var h={payload:f,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){h.listeners.push(S)}};q.T!==null?l(!0):h.isTransition=!1,u(h),l=i.pending,l===null?(h.next=i.pending=h,Yg(i,h)):(h.next=l.next,i.pending=l.next=h)}}function Yg(r,i){var l=i.action,u=i.payload,f=r.state;if(i.isTransition){var h=q.T,S={};q.T=S;try{var k=l(f,u),O=q.S;O!==null&&O(S,k),Wg(r,i,k)}catch(V){Ff(r,i,V)}finally{h!==null&&S.types!==null&&(h.types=S.types),q.T=h}}else try{h=l(f,u),Wg(r,i,h)}catch(V){Ff(r,i,V)}}function Wg(r,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){e2(r,i,u)},function(u){return Ff(r,i,u)}):e2(r,i,l)}function e2(r,i,l){i.status="fulfilled",i.value=l,t2(i),r.state=l,i=r.pending,i!==null&&(l=i.next,l===i?r.pending=null:(l=l.next,i.next=l,Yg(r,l)))}function Ff(r,i,l){var u=r.pending;if(r.pending=null,u!==null){u=u.next;do i.status="rejected",i.reason=l,t2(i),i=i.next;while(i!==u)}r.action=null}function t2(r){r=r.listeners;for(var i=0;i<r.length;i++)(0,r[i])()}function n2(r,i){return i}function r2(r,i){if(qe){var l=ct.formState;if(l!==null){e:{var u=Oe;if(qe){if(pt){t:{for(var f=pt,h=Wn;f.nodeType!==8;){if(!h){f=null;break t}if(f=tr(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){pt=tr(f.nextSibling),u=f.data==="F!";break e}}fa(u)}u=!1}u&&(i=l[0])}}return l=pn(),l.memoizedState=l.baseState=i,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n2,lastRenderedState:i},l.queue=u,l=S2.bind(null,Oe,u),u.dispatch=l,u=Hf(!1),h=Jf.bind(null,Oe,!1,u.queue),u=pn(),f={state:i,dispatch:null,action:r,pending:null},u.queue=f,l=A7.bind(null,Oe,f,h,l),f.dispatch=l,u.memoizedState=r,[i,l,!1]}function a2(r){var i=Nt();return i2(i,at,r)}function i2(r,i,l){if(i=Zf(r,i,n2)[0],r=Sc(Hr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var u=hs(i)}catch(S){throw S===ro?fc:S}else u=i;i=Nt();var f=i.queue,h=f.dispatch;return l!==i.memoizedState&&(Oe.flags|=2048,lo(9,{destroy:void 0},E7.bind(null,f,l),null)),[u,h,r]}function E7(r,i){r.action=i}function o2(r){var i=Nt(),l=at;if(l!==null)return i2(i,l,r);Nt(),i=i.memoizedState,l=Nt();var u=l.queue.dispatch;return l.memoizedState=r,[i,u,!1]}function lo(r,i,l,u){return r={tag:r,create:l,deps:u,inst:i,next:null},i=Oe.updateQueue,i===null&&(i=_c(),Oe.updateQueue=i),l=i.lastEffect,l===null?i.lastEffect=r.next=r:(u=l.next,l.next=r,r.next=u,i.lastEffect=r),r}function s2(){return Nt().memoizedState}function wc(r,i,l,u){var f=pn();Oe.flags|=r,f.memoizedState=lo(1|i,{destroy:void 0},l,u===void 0?null:u)}function kc(r,i,l,u){var f=Nt();u=u===void 0?null:u;var h=f.memoizedState.inst;at!==null&&u!==null&&Cf(u,at.memoizedState.deps)?f.memoizedState=lo(i,h,l,u):(Oe.flags|=r,f.memoizedState=lo(1|i,h,l,u))}function l2(r,i){wc(8390656,8,r,i)}function qf(r,i){kc(2048,8,r,i)}function T7(r){Oe.flags|=4;var i=Oe.updateQueue;if(i===null)i=_c(),Oe.updateQueue=i,i.events=[r];else{var l=i.events;l===null?i.events=[r]:l.push(r)}}function c2(r){var i=Nt().memoizedState;return T7({ref:i,nextImpl:r}),function(){if((Xe&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}function u2(r,i){return kc(4,2,r,i)}function d2(r,i){return kc(4,4,r,i)}function f2(r,i){if(typeof i=="function"){r=r();var l=i(r);return function(){typeof l=="function"?l():i(null)}}if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function m2(r,i,l){l=l!=null?l.concat([r]):null,kc(4,4,f2.bind(null,i,r),l)}function Bf(){}function p2(r,i){var l=Nt();i=i===void 0?null:i;var u=l.memoizedState;return i!==null&&Cf(i,u[1])?u[0]:(l.memoizedState=[r,i],r)}function h2(r,i){var l=Nt();i=i===void 0?null:i;var u=l.memoizedState;if(i!==null&&Cf(i,u[1]))return u[0];if(u=r(),li){kt(!0);try{r()}finally{kt(!1)}}return l.memoizedState=[u,i],u}function Kf(r,i,l){return l===void 0||(Vr&1073741824)!==0&&(He&261930)===0?r.memoizedState=i:(r.memoizedState=l,r=gv(),Oe.lanes|=r,xa|=r,l)}function g2(r,i,l,u){return On(l,i)?l:io.current!==null?(r=Kf(r,l,u),On(r,i)||(Dt=!0),r):(Vr&42)===0||(Vr&1073741824)!==0&&(He&261930)===0?(Dt=!0,r.memoizedState=l):(r=gv(),Oe.lanes|=r,xa|=r,i)}function v2(r,i,l,u,f){var h=ee.p;ee.p=h!==0&&8>h?h:8;var S=q.T,k={};q.T=k,Jf(r,!1,i,l);try{var O=f(),V=q.S;if(V!==null&&V(k,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var J=w7(O,u);gs(r,i,J,Pn(r))}else gs(r,i,u,Pn(r))}catch(Y){gs(r,i,{then:function(){},status:"rejected",reason:Y},Pn())}finally{ee.p=h,S!==null&&k.types!==null&&(S.types=k.types),q.T=S}}function j7(){}function Qf(r,i,l,u){if(r.tag!==5)throw Error(o(476));var f=y2(r).queue;v2(r,f,i,he,l===null?j7:function(){return b2(r),l(u)})}function y2(r){var i=r.memoizedState;if(i!==null)return i;i={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hr,lastRenderedState:he},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hr,lastRenderedState:l},next:null},r.memoizedState=i,r=r.alternate,r!==null&&(r.memoizedState=i),i}function b2(r){var i=y2(r);i.next===null&&(i=r.alternate.memoizedState),gs(r,i.next.queue,{},Pn())}function Gf(){return Jt(zs)}function _2(){return Nt().memoizedState}function x2(){return Nt().memoizedState}function M7(r){for(var i=r.return;i!==null;){switch(i.tag){case 24:case 3:var l=Pn();r=ha(l);var u=ga(i,r,l);u!==null&&($n(u,i,l),ds(u,i,l)),i={cache:kf()},r.payload=i;return}i=i.return}}function O7(r,i,l){var u=Pn();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},$c(r)?w2(i,l):(l=mf(r,i,l,u),l!==null&&($n(l,r,u),k2(l,i,u)))}function S2(r,i,l){var u=Pn();gs(r,i,l,u)}function gs(r,i,l,u){var f={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if($c(r))w2(i,f);else{var h=r.alternate;if(r.lanes===0&&(h===null||h.lanes===0)&&(h=i.lastRenderedReducer,h!==null))try{var S=i.lastRenderedState,k=h(S,l);if(f.hasEagerState=!0,f.eagerState=k,On(k,S))return ic(r,i,f,0),ct===null&&ac(),!1}catch{}if(l=mf(r,i,f,u),l!==null)return $n(l,r,u),k2(l,i,u),!0}return!1}function Jf(r,i,l,u){if(u={lane:2,revertLane:T0(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},$c(r)){if(i)throw Error(o(479))}else i=mf(r,l,u,2),i!==null&&$n(i,r,2)}function $c(r){var i=r.alternate;return r===Oe||i!==null&&i===Oe}function w2(r,i){oo=yc=!0;var l=r.pending;l===null?i.next=i:(i.next=l.next,l.next=i),r.pending=i}function k2(r,i,l){if((l&4194048)!==0){var u=i.lanes;u&=r.pendingLanes,l|=u,i.lanes=l,jh(r,l)}}var vs={readContext:Jt,use:xc,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useLayoutEffect:At,useInsertionEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useSyncExternalStore:At,useId:At,useHostTransitionStatus:At,useFormState:At,useActionState:At,useOptimistic:At,useMemoCache:At,useCacheRefresh:At};vs.useEffectEvent=At;var $2={readContext:Jt,use:xc,useCallback:function(r,i){return pn().memoizedState=[r,i===void 0?null:i],r},useContext:Jt,useEffect:l2,useImperativeHandle:function(r,i,l){l=l!=null?l.concat([r]):null,wc(4194308,4,f2.bind(null,i,r),l)},useLayoutEffect:function(r,i){return wc(4194308,4,r,i)},useInsertionEffect:function(r,i){wc(4,2,r,i)},useMemo:function(r,i){var l=pn();i=i===void 0?null:i;var u=r();if(li){kt(!0);try{r()}finally{kt(!1)}}return l.memoizedState=[u,i],u},useReducer:function(r,i,l){var u=pn();if(l!==void 0){var f=l(i);if(li){kt(!0);try{l(i)}finally{kt(!1)}}}else f=i;return u.memoizedState=u.baseState=f,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:f},u.queue=r,r=r.dispatch=O7.bind(null,Oe,r),[u.memoizedState,r]},useRef:function(r){var i=pn();return r={current:r},i.memoizedState=r},useState:function(r){r=Hf(r);var i=r.queue,l=S2.bind(null,Oe,i);return i.dispatch=l,[r.memoizedState,l]},useDebugValue:Bf,useDeferredValue:function(r,i){var l=pn();return Kf(l,r,i)},useTransition:function(){var r=Hf(!1);return r=v2.bind(null,Oe,r.queue,!0,!1),pn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,i,l){var u=Oe,f=pn();if(qe){if(l===void 0)throw Error(o(407));l=l()}else{if(l=i(),ct===null)throw Error(o(349));(He&127)!==0||Bg(u,i,l)}f.memoizedState=l;var h={value:l,getSnapshot:i};return f.queue=h,l2(Qg.bind(null,u,h,r),[r]),u.flags|=2048,lo(9,{destroy:void 0},Kg.bind(null,u,h,l,i),null),l},useId:function(){var r=pn(),i=ct.identifierPrefix;if(qe){var l=kr,u=wr;l=(u&~(1<<32-mn(u)-1)).toString(32)+l,i="_"+i+"R_"+l,l=bc++,0<l&&(i+="H"+l.toString(32)),i+="_"}else l=k7++,i="_"+i+"r_"+l.toString(32)+"_";return r.memoizedState=i},useHostTransitionStatus:Gf,useFormState:r2,useActionState:r2,useOptimistic:function(r){var i=pn();i.memoizedState=i.baseState=r;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=Jf.bind(null,Oe,!0,l),l.dispatch=i,[r,i]},useMemoCache:Uf,useCacheRefresh:function(){return pn().memoizedState=M7.bind(null,Oe)},useEffectEvent:function(r){var i=pn(),l={impl:r};return i.memoizedState=l,function(){if((Xe&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Xf={readContext:Jt,use:xc,useCallback:p2,useContext:Jt,useEffect:qf,useImperativeHandle:m2,useInsertionEffect:u2,useLayoutEffect:d2,useMemo:h2,useReducer:Sc,useRef:s2,useState:function(){return Sc(Hr)},useDebugValue:Bf,useDeferredValue:function(r,i){var l=Nt();return g2(l,at.memoizedState,r,i)},useTransition:function(){var r=Sc(Hr)[0],i=Nt().memoizedState;return[typeof r=="boolean"?r:hs(r),i]},useSyncExternalStore:qg,useId:_2,useHostTransitionStatus:Gf,useFormState:a2,useActionState:a2,useOptimistic:function(r,i){var l=Nt();return Xg(l,at,r,i)},useMemoCache:Uf,useCacheRefresh:x2};Xf.useEffectEvent=c2;var A2={readContext:Jt,use:xc,useCallback:p2,useContext:Jt,useEffect:qf,useImperativeHandle:m2,useInsertionEffect:u2,useLayoutEffect:d2,useMemo:h2,useReducer:Vf,useRef:s2,useState:function(){return Vf(Hr)},useDebugValue:Bf,useDeferredValue:function(r,i){var l=Nt();return at===null?Kf(l,r,i):g2(l,at.memoizedState,r,i)},useTransition:function(){var r=Vf(Hr)[0],i=Nt().memoizedState;return[typeof r=="boolean"?r:hs(r),i]},useSyncExternalStore:qg,useId:_2,useHostTransitionStatus:Gf,useFormState:o2,useActionState:o2,useOptimistic:function(r,i){var l=Nt();return at!==null?Xg(l,at,r,i):(l.baseState=r,[r,l.queue.dispatch])},useMemoCache:Uf,useCacheRefresh:x2};A2.useEffectEvent=c2;function Yf(r,i,l,u){i=r.memoizedState,l=l(u,i),l=l==null?i:b({},i,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var Wf={enqueueSetState:function(r,i,l){r=r._reactInternals;var u=Pn(),f=ha(u);f.payload=i,l!=null&&(f.callback=l),i=ga(r,f,u),i!==null&&($n(i,r,u),ds(i,r,u))},enqueueReplaceState:function(r,i,l){r=r._reactInternals;var u=Pn(),f=ha(u);f.tag=1,f.payload=i,l!=null&&(f.callback=l),i=ga(r,f,u),i!==null&&($n(i,r,u),ds(i,r,u))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var l=Pn(),u=ha(l);u.tag=2,i!=null&&(u.callback=i),i=ga(r,u,l),i!==null&&($n(i,r,l),ds(i,r,l))}};function E2(r,i,l,u,f,h,S){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(u,h,S):i.prototype&&i.prototype.isPureReactComponent?!rs(l,u)||!rs(f,h):!0}function T2(r,i,l,u){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,u),i.state!==r&&Wf.enqueueReplaceState(i,i.state,null)}function ci(r,i){var l=i;if("ref"in i){l={};for(var u in i)u!=="ref"&&(l[u]=i[u])}if(r=r.defaultProps){l===i&&(l=b({},l));for(var f in r)l[f]===void 0&&(l[f]=r[f])}return l}function j2(r){rc(r)}function M2(r){console.error(r)}function O2(r){rc(r)}function Ac(r,i){try{var l=r.onUncaughtError;l(i.value,{componentStack:i.stack})}catch(u){setTimeout(function(){throw u})}}function N2(r,i,l){try{var u=r.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function e0(r,i,l){return l=ha(l),l.tag=3,l.payload={element:null},l.callback=function(){Ac(r,i)},l}function z2(r){return r=ha(r),r.tag=3,r}function R2(r,i,l,u){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var h=u.value;r.payload=function(){return f(h)},r.callback=function(){N2(i,l,u)}}var S=l.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(r.callback=function(){N2(i,l,u),typeof f!="function"&&(Sa===null?Sa=new Set([this]):Sa.add(this));var k=u.stack;this.componentDidCatch(u.value,{componentStack:k!==null?k:""})})}function N7(r,i,l,u,f){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(i=l.alternate,i!==null&&eo(i,l,f,!0),l=zn.current,l!==null){switch(l.tag){case 31:case 13:return er===null?Lc():l.alternate===null&&Et===0&&(Et=3),l.flags&=-257,l.flags|=65536,l.lanes=f,u===mc?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([u]):i.add(u),$0(r,u,f)),!1;case 22:return l.flags|=65536,u===mc?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([u]):l.add(u)),$0(r,u,f)),!1}throw Error(o(435,l.tag))}return $0(r,u,f),Lc(),!1}if(qe)return i=zn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=f,u!==bf&&(r=Error(o(422),{cause:u}),os(Jn(r,l)))):(u!==bf&&(i=Error(o(423),{cause:u}),os(Jn(i,l))),r=r.current.alternate,r.flags|=65536,f&=-f,r.lanes|=f,u=Jn(u,l),f=e0(r.stateNode,u,f),Mf(r,f),Et!==4&&(Et=2)),!1;var h=Error(o(520),{cause:u});if(h=Jn(h,l),$s===null?$s=[h]:$s.push(h),Et!==4&&(Et=2),i===null)return!0;u=Jn(u,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,r=f&-f,l.lanes|=r,r=e0(l.stateNode,u,r),Mf(l,r),!1;case 1:if(i=l.type,h=l.stateNode,(l.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Sa===null||!Sa.has(h))))return l.flags|=65536,f&=-f,l.lanes|=f,f=z2(f),R2(f,r,l,u),Mf(l,f),!1}l=l.return}while(l!==null);return!1}var t0=Error(o(461)),Dt=!1;function Xt(r,i,l,u){i.child=r===null?Lg(i,null,l,u):si(i,r.child,l,u)}function C2(r,i,l,u,f){l=l.render;var h=i.ref;if("ref"in u){var S={};for(var k in u)k!=="ref"&&(S[k]=u[k])}else S=u;return ri(i),u=Df(r,i,l,S,h,f),k=Pf(),r!==null&&!Dt?(Lf(r,i,f),Fr(r,i,f)):(qe&&k&&vf(i),i.flags|=1,Xt(r,i,u,f),i.child)}function D2(r,i,l,u,f){if(r===null){var h=l.type;return typeof h=="function"&&!pf(h)&&h.defaultProps===void 0&&l.compare===null?(i.tag=15,i.type=h,P2(r,i,h,u,f)):(r=sc(l.type,null,u,i,i.mode,f),r.ref=i.ref,r.return=i,i.child=r)}if(h=r.child,!c0(r,f)){var S=h.memoizedProps;if(l=l.compare,l=l!==null?l:rs,l(S,u)&&r.ref===i.ref)return Fr(r,i,f)}return i.flags|=1,r=Lr(h,u),r.ref=i.ref,r.return=i,i.child=r}function P2(r,i,l,u,f){if(r!==null){var h=r.memoizedProps;if(rs(h,u)&&r.ref===i.ref)if(Dt=!1,i.pendingProps=u=h,c0(r,f))(r.flags&131072)!==0&&(Dt=!0);else return i.lanes=r.lanes,Fr(r,i,f)}return n0(r,i,l,u,f)}function L2(r,i,l,u){var f=u.children,h=r!==null?r.memoizedState:null;if(r===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((i.flags&128)!==0){if(h=h!==null?h.baseLanes|l:l,r!==null){for(u=i.child=r.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;u=f&~h}else u=0,i.child=null;return I2(r,i,h,l,u)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},r!==null&&dc(i,h!==null?h.cachePool:null),h!==null?Zg(i,h):Nf(),Vg(i);else return u=i.lanes=536870912,I2(r,i,h!==null?h.baseLanes|l:l,l,u)}else h!==null?(dc(i,h.cachePool),Zg(i,h),ya(),i.memoizedState=null):(r!==null&&dc(i,null),Nf(),ya());return Xt(r,i,f,l),i.child}function ys(r,i){return r!==null&&r.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function I2(r,i,l,u,f){var h=Af();return h=h===null?null:{parent:Rt._currentValue,pool:h},i.memoizedState={baseLanes:l,cachePool:h},r!==null&&dc(i,null),Nf(),Vg(i),r!==null&&eo(r,i,u,!0),i.childLanes=f,null}function Ec(r,i){return i=jc({mode:i.mode,children:i.children},r.mode),i.ref=r.ref,r.child=i,i.return=r,i}function U2(r,i,l){return si(i,r.child,null,l),r=Ec(i,i.pendingProps),r.flags|=2,Rn(i),i.memoizedState=null,r}function z7(r,i,l){var u=i.pendingProps,f=(i.flags&128)!==0;if(i.flags&=-129,r===null){if(qe){if(u.mode==="hidden")return r=Ec(i,u),i.lanes=536870912,ys(null,r);if(Rf(i),(r=pt)?(r=Yv(r,Wn),r=r!==null&&r.data==="&"?r:null,r!==null&&(i.memoizedState={dehydrated:r,treeContext:ua!==null?{id:wr,overflow:kr}:null,retryLane:536870912,hydrationErrors:null},l=wg(r),l.return=i,i.child=l,Gt=i,pt=null)):r=null,r===null)throw fa(i);return i.lanes=536870912,null}return Ec(i,u)}var h=r.memoizedState;if(h!==null){var S=h.dehydrated;if(Rf(i),f)if(i.flags&256)i.flags&=-257,i=U2(r,i,l);else if(i.memoizedState!==null)i.child=r.child,i.flags|=128,i=null;else throw Error(o(558));else if(Dt||eo(r,i,l,!1),f=(l&r.childLanes)!==0,Dt||f){if(u=ct,u!==null&&(S=Mh(u,l),S!==0&&S!==h.retryLane))throw h.retryLane=S,Wa(r,S),$n(u,r,S),t0;Lc(),i=U2(r,i,l)}else r=h.treeContext,pt=tr(S.nextSibling),Gt=i,qe=!0,da=null,Wn=!1,r!==null&&Ag(i,r),i=Ec(i,u),i.flags|=4096;return i}return r=Lr(r.child,{mode:u.mode,children:u.children}),r.ref=i.ref,i.child=r,r.return=i,r}function Tc(r,i){var l=i.ref;if(l===null)r!==null&&r.ref!==null&&(i.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(r===null||r.ref!==l)&&(i.flags|=4194816)}}function n0(r,i,l,u,f){return ri(i),l=Df(r,i,l,u,void 0,f),u=Pf(),r!==null&&!Dt?(Lf(r,i,f),Fr(r,i,f)):(qe&&u&&vf(i),i.flags|=1,Xt(r,i,l,f),i.child)}function Z2(r,i,l,u,f,h){return ri(i),i.updateQueue=null,l=Fg(i,u,l,f),Hg(r),u=Pf(),r!==null&&!Dt?(Lf(r,i,h),Fr(r,i,h)):(qe&&u&&vf(i),i.flags|=1,Xt(r,i,l,h),i.child)}function V2(r,i,l,u,f){if(ri(i),i.stateNode===null){var h=Ji,S=l.contextType;typeof S=="object"&&S!==null&&(h=Jt(S)),h=new l(u,h),i.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Wf,i.stateNode=h,h._reactInternals=i,h=i.stateNode,h.props=u,h.state=i.memoizedState,h.refs={},Tf(i),S=l.contextType,h.context=typeof S=="object"&&S!==null?Jt(S):Ji,h.state=i.memoizedState,S=l.getDerivedStateFromProps,typeof S=="function"&&(Yf(i,l,S,u),h.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(S=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),S!==h.state&&Wf.enqueueReplaceState(h,h.state,null),ms(i,u,h,f),fs(),h.state=i.memoizedState),typeof h.componentDidMount=="function"&&(i.flags|=4194308),u=!0}else if(r===null){h=i.stateNode;var k=i.memoizedProps,O=ci(l,k);h.props=O;var V=h.context,J=l.contextType;S=Ji,typeof J=="object"&&J!==null&&(S=Jt(J));var Y=l.getDerivedStateFromProps;J=typeof Y=="function"||typeof h.getSnapshotBeforeUpdate=="function",k=i.pendingProps!==k,J||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(k||V!==S)&&T2(i,h,u,S),pa=!1;var F=i.memoizedState;h.state=F,ms(i,u,h,f),fs(),V=i.memoizedState,k||F!==V||pa?(typeof Y=="function"&&(Yf(i,l,Y,u),V=i.memoizedState),(O=pa||E2(i,l,O,u,F,V,S))?(J||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(i.flags|=4194308)):(typeof h.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=V),h.props=u,h.state=V,h.context=S,u=O):(typeof h.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{h=i.stateNode,jf(r,i),S=i.memoizedProps,J=ci(l,S),h.props=J,Y=i.pendingProps,F=h.context,V=l.contextType,O=Ji,typeof V=="object"&&V!==null&&(O=Jt(V)),k=l.getDerivedStateFromProps,(V=typeof k=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(S!==Y||F!==O)&&T2(i,h,u,O),pa=!1,F=i.memoizedState,h.state=F,ms(i,u,h,f),fs();var Q=i.memoizedState;S!==Y||F!==Q||pa||r!==null&&r.dependencies!==null&&cc(r.dependencies)?(typeof k=="function"&&(Yf(i,l,k,u),Q=i.memoizedState),(J=pa||E2(i,l,J,u,F,Q,O)||r!==null&&r.dependencies!==null&&cc(r.dependencies))?(V||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(u,Q,O),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(u,Q,O)),typeof h.componentDidUpdate=="function"&&(i.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof h.componentDidUpdate!="function"||S===r.memoizedProps&&F===r.memoizedState||(i.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||S===r.memoizedProps&&F===r.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=Q),h.props=u,h.state=Q,h.context=O,u=J):(typeof h.componentDidUpdate!="function"||S===r.memoizedProps&&F===r.memoizedState||(i.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||S===r.memoizedProps&&F===r.memoizedState||(i.flags|=1024),u=!1)}return h=u,Tc(r,i),u=(i.flags&128)!==0,h||u?(h=i.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:h.render(),i.flags|=1,r!==null&&u?(i.child=si(i,r.child,null,f),i.child=si(i,null,l,f)):Xt(r,i,l,f),i.memoizedState=h.state,r=i.child):r=Fr(r,i,f),r}function H2(r,i,l,u){return ti(),i.flags|=256,Xt(r,i,l,u),i.child}var r0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function a0(r){return{baseLanes:r,cachePool:Ng()}}function i0(r,i,l){return r=r!==null?r.childLanes&~l:0,i&&(r|=Dn),r}function F2(r,i,l){var u=i.pendingProps,f=!1,h=(i.flags&128)!==0,S;if((S=h)||(S=r!==null&&r.memoizedState===null?!1:(Ot.current&2)!==0),S&&(f=!0,i.flags&=-129),S=(i.flags&32)!==0,i.flags&=-33,r===null){if(qe){if(f?va(i):ya(),(r=pt)?(r=Yv(r,Wn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(i.memoizedState={dehydrated:r,treeContext:ua!==null?{id:wr,overflow:kr}:null,retryLane:536870912,hydrationErrors:null},l=wg(r),l.return=i,i.child=l,Gt=i,pt=null)):r=null,r===null)throw fa(i);return Z0(r)?i.lanes=32:i.lanes=536870912,null}var k=u.children;return u=u.fallback,f?(ya(),f=i.mode,k=jc({mode:"hidden",children:k},f),u=ei(u,f,l,null),k.return=i,u.return=i,k.sibling=u,i.child=k,u=i.child,u.memoizedState=a0(l),u.childLanes=i0(r,S,l),i.memoizedState=r0,ys(null,u)):(va(i),o0(i,k))}var O=r.memoizedState;if(O!==null&&(k=O.dehydrated,k!==null)){if(h)i.flags&256?(va(i),i.flags&=-257,i=s0(r,i,l)):i.memoizedState!==null?(ya(),i.child=r.child,i.flags|=128,i=null):(ya(),k=u.fallback,f=i.mode,u=jc({mode:"visible",children:u.children},f),k=ei(k,f,l,null),k.flags|=2,u.return=i,k.return=i,u.sibling=k,i.child=u,si(i,r.child,null,l),u=i.child,u.memoizedState=a0(l),u.childLanes=i0(r,S,l),i.memoizedState=r0,i=ys(null,u));else if(va(i),Z0(k)){if(S=k.nextSibling&&k.nextSibling.dataset,S)var V=S.dgst;S=V,u=Error(o(419)),u.stack="",u.digest=S,os({value:u,source:null,stack:null}),i=s0(r,i,l)}else if(Dt||eo(r,i,l,!1),S=(l&r.childLanes)!==0,Dt||S){if(S=ct,S!==null&&(u=Mh(S,l),u!==0&&u!==O.retryLane))throw O.retryLane=u,Wa(r,u),$n(S,r,u),t0;U0(k)||Lc(),i=s0(r,i,l)}else U0(k)?(i.flags|=192,i.child=r.child,i=null):(r=O.treeContext,pt=tr(k.nextSibling),Gt=i,qe=!0,da=null,Wn=!1,r!==null&&Ag(i,r),i=o0(i,u.children),i.flags|=4096);return i}return f?(ya(),k=u.fallback,f=i.mode,O=r.child,V=O.sibling,u=Lr(O,{mode:"hidden",children:u.children}),u.subtreeFlags=O.subtreeFlags&65011712,V!==null?k=Lr(V,k):(k=ei(k,f,l,null),k.flags|=2),k.return=i,u.return=i,u.sibling=k,i.child=u,ys(null,u),u=i.child,k=r.child.memoizedState,k===null?k=a0(l):(f=k.cachePool,f!==null?(O=Rt._currentValue,f=f.parent!==O?{parent:O,pool:O}:f):f=Ng(),k={baseLanes:k.baseLanes|l,cachePool:f}),u.memoizedState=k,u.childLanes=i0(r,S,l),i.memoizedState=r0,ys(r.child,u)):(va(i),l=r.child,r=l.sibling,l=Lr(l,{mode:"visible",children:u.children}),l.return=i,l.sibling=null,r!==null&&(S=i.deletions,S===null?(i.deletions=[r],i.flags|=16):S.push(r)),i.child=l,i.memoizedState=null,l)}function o0(r,i){return i=jc({mode:"visible",children:i},r.mode),i.return=r,r.child=i}function jc(r,i){return r=Nn(22,r,null,i),r.lanes=0,r}function s0(r,i,l){return si(i,r.child,null,l),r=o0(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function q2(r,i,l){r.lanes|=i;var u=r.alternate;u!==null&&(u.lanes|=i),Sf(r.return,i,l)}function l0(r,i,l,u,f,h){var S=r.memoizedState;S===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:f,treeForkCount:h}:(S.isBackwards=i,S.rendering=null,S.renderingStartTime=0,S.last=u,S.tail=l,S.tailMode=f,S.treeForkCount=h)}function B2(r,i,l){var u=i.pendingProps,f=u.revealOrder,h=u.tail;u=u.children;var S=Ot.current,k=(S&2)!==0;if(k?(S=S&1|2,i.flags|=128):S&=1,ae(Ot,S),Xt(r,i,u,l),u=qe?is:0,!k&&r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&q2(r,l,i);else if(r.tag===19)q2(r,l,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(f){case"forwards":for(l=i.child,f=null;l!==null;)r=l.alternate,r!==null&&vc(r)===null&&(f=l),l=l.sibling;l=f,l===null?(f=i.child,i.child=null):(f=l.sibling,l.sibling=null),l0(i,!1,f,l,h,u);break;case"backwards":case"unstable_legacy-backwards":for(l=null,f=i.child,i.child=null;f!==null;){if(r=f.alternate,r!==null&&vc(r)===null){i.child=f;break}r=f.sibling,f.sibling=l,l=f,f=r}l0(i,!0,l,null,h,u);break;case"together":l0(i,!1,null,null,void 0,u);break;default:i.memoizedState=null}return i.child}function Fr(r,i,l){if(r!==null&&(i.dependencies=r.dependencies),xa|=i.lanes,(l&i.childLanes)===0)if(r!==null){if(eo(r,i,l,!1),(l&i.childLanes)===0)return null}else return null;if(r!==null&&i.child!==r.child)throw Error(o(153));if(i.child!==null){for(r=i.child,l=Lr(r,r.pendingProps),i.child=l,l.return=i;r.sibling!==null;)r=r.sibling,l=l.sibling=Lr(r,r.pendingProps),l.return=i;l.sibling=null}return i.child}function c0(r,i){return(r.lanes&i)!==0?!0:(r=r.dependencies,!!(r!==null&&cc(r)))}function R7(r,i,l){switch(i.tag){case 3:wt(i,i.stateNode.containerInfo),ma(i,Rt,r.memoizedState.cache),ti();break;case 27:case 5:dr(i);break;case 4:wt(i,i.stateNode.containerInfo);break;case 10:ma(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Rf(i),null;break;case 13:var u=i.memoizedState;if(u!==null)return u.dehydrated!==null?(va(i),i.flags|=128,null):(l&i.child.childLanes)!==0?F2(r,i,l):(va(i),r=Fr(r,i,l),r!==null?r.sibling:null);va(i);break;case 19:var f=(r.flags&128)!==0;if(u=(l&i.childLanes)!==0,u||(eo(r,i,l,!1),u=(l&i.childLanes)!==0),f){if(u)return B2(r,i,l);i.flags|=128}if(f=i.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),ae(Ot,Ot.current),u)break;return null;case 22:return i.lanes=0,L2(r,i,l,i.pendingProps);case 24:ma(i,Rt,r.memoizedState.cache)}return Fr(r,i,l)}function K2(r,i,l){if(r!==null)if(r.memoizedProps!==i.pendingProps)Dt=!0;else{if(!c0(r,l)&&(i.flags&128)===0)return Dt=!1,R7(r,i,l);Dt=(r.flags&131072)!==0}else Dt=!1,qe&&(i.flags&1048576)!==0&&$g(i,is,i.index);switch(i.lanes=0,i.tag){case 16:e:{var u=i.pendingProps;if(r=ii(i.elementType),i.type=r,typeof r=="function")pf(r)?(u=ci(r,u),i.tag=1,i=V2(null,i,r,u,l)):(i.tag=0,i=n0(null,i,r,u,l));else{if(r!=null){var f=r.$$typeof;if(f===M){i.tag=11,i=C2(null,i,r,u,l);break e}else if(f===L){i.tag=14,i=D2(null,i,r,u,l);break e}}throw i=pe(r)||r,Error(o(306,i,""))}}return i;case 0:return n0(r,i,i.type,i.pendingProps,l);case 1:return u=i.type,f=ci(u,i.pendingProps),V2(r,i,u,f,l);case 3:e:{if(wt(i,i.stateNode.containerInfo),r===null)throw Error(o(387));u=i.pendingProps;var h=i.memoizedState;f=h.element,jf(r,i),ms(i,u,null,l);var S=i.memoizedState;if(u=S.cache,ma(i,Rt,u),u!==h.cache&&wf(i,[Rt],l,!0),fs(),u=S.element,h.isDehydrated)if(h={element:u,isDehydrated:!1,cache:S.cache},i.updateQueue.baseState=h,i.memoizedState=h,i.flags&256){i=H2(r,i,u,l);break e}else if(u!==f){f=Jn(Error(o(424)),i),os(f),i=H2(r,i,u,l);break e}else for(r=i.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,pt=tr(r.firstChild),Gt=i,qe=!0,da=null,Wn=!0,l=Lg(i,null,u,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(ti(),u===f){i=Fr(r,i,l);break e}Xt(r,i,u,l)}i=i.child}return i;case 26:return Tc(r,i),r===null?(l=ay(i.type,null,i.pendingProps,null))?i.memoizedState=l:qe||(l=i.type,r=i.pendingProps,u=qc(je.current).createElement(l),u[Qt]=i,u[bn]=r,Yt(u,l,r),Ft(u),i.stateNode=u):i.memoizedState=ay(i.type,r.memoizedProps,i.pendingProps,r.memoizedState),null;case 27:return dr(i),r===null&&qe&&(u=i.stateNode=ty(i.type,i.pendingProps,je.current),Gt=i,Wn=!0,f=pt,Aa(i.type)?(V0=f,pt=tr(u.firstChild)):pt=f),Xt(r,i,i.pendingProps.children,l),Tc(r,i),r===null&&(i.flags|=4194304),i.child;case 5:return r===null&&qe&&((f=u=pt)&&(u=u9(u,i.type,i.pendingProps,Wn),u!==null?(i.stateNode=u,Gt=i,pt=tr(u.firstChild),Wn=!1,f=!0):f=!1),f||fa(i)),dr(i),f=i.type,h=i.pendingProps,S=r!==null?r.memoizedProps:null,u=h.children,P0(f,h)?u=null:S!==null&&P0(f,S)&&(i.flags|=32),i.memoizedState!==null&&(f=Df(r,i,$7,null,null,l),zs._currentValue=f),Tc(r,i),Xt(r,i,u,l),i.child;case 6:return r===null&&qe&&((r=l=pt)&&(l=d9(l,i.pendingProps,Wn),l!==null?(i.stateNode=l,Gt=i,pt=null,r=!0):r=!1),r||fa(i)),null;case 13:return F2(r,i,l);case 4:return wt(i,i.stateNode.containerInfo),u=i.pendingProps,r===null?i.child=si(i,null,u,l):Xt(r,i,u,l),i.child;case 11:return C2(r,i,i.type,i.pendingProps,l);case 7:return Xt(r,i,i.pendingProps,l),i.child;case 8:return Xt(r,i,i.pendingProps.children,l),i.child;case 12:return Xt(r,i,i.pendingProps.children,l),i.child;case 10:return u=i.pendingProps,ma(i,i.type,u.value),Xt(r,i,u.children,l),i.child;case 9:return f=i.type._context,u=i.pendingProps.children,ri(i),f=Jt(f),u=u(f),i.flags|=1,Xt(r,i,u,l),i.child;case 14:return D2(r,i,i.type,i.pendingProps,l);case 15:return P2(r,i,i.type,i.pendingProps,l);case 19:return B2(r,i,l);case 31:return z7(r,i,l);case 22:return L2(r,i,l,i.pendingProps);case 24:return ri(i),u=Jt(Rt),r===null?(f=Af(),f===null&&(f=ct,h=kf(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=l),f=h),i.memoizedState={parent:u,cache:f},Tf(i),ma(i,Rt,f)):((r.lanes&l)!==0&&(jf(r,i),ms(i,null,null,l),fs()),f=r.memoizedState,h=i.memoizedState,f.parent!==u?(f={parent:u,cache:u},i.memoizedState=f,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=f),ma(i,Rt,u)):(u=h.cache,ma(i,Rt,u),u!==f.cache&&wf(i,[Rt],l,!0))),Xt(r,i,i.pendingProps.children,l),i.child;case 29:throw i.pendingProps}throw Error(o(156,i.tag))}function qr(r){r.flags|=4}function u0(r,i,l,u,f){if((i=(r.mode&32)!==0)&&(i=!1),i){if(r.flags|=16777216,(f&335544128)===f)if(r.stateNode.complete)r.flags|=8192;else if(_v())r.flags|=8192;else throw oi=mc,Ef}else r.flags&=-16777217}function Q2(r,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!cy(i))if(_v())r.flags|=8192;else throw oi=mc,Ef}function Mc(r,i){i!==null&&(r.flags|=4),r.flags&16384&&(i=r.tag!==22?Eh():536870912,r.lanes|=i,mo|=i)}function bs(r,i){if(!qe)switch(r.tailMode){case"hidden":i=r.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:u.sibling=null}}function ht(r){var i=r.alternate!==null&&r.alternate.child===r.child,l=0,u=0;if(i)for(var f=r.child;f!==null;)l|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,f.return=r,f=f.sibling;else for(f=r.child;f!==null;)l|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=r,f=f.sibling;return r.subtreeFlags|=u,r.childLanes=l,i}function C7(r,i,l){var u=i.pendingProps;switch(yf(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(i),null;case 1:return ht(i),null;case 3:return l=i.stateNode,u=null,r!==null&&(u=r.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),Zr(Rt),Ye(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(Wi(i)?qr(i):r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,_f())),ht(i),null;case 26:var f=i.type,h=i.memoizedState;return r===null?(qr(i),h!==null?(ht(i),Q2(i,h)):(ht(i),u0(i,f,null,u,l))):h?h!==r.memoizedState?(qr(i),ht(i),Q2(i,h)):(ht(i),i.flags&=-16777217):(r=r.memoizedProps,r!==u&&qr(i),ht(i),u0(i,f,r,u,l)),null;case 27:if(jn(i),l=je.current,f=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==u&&qr(i);else{if(!u){if(i.stateNode===null)throw Error(o(166));return ht(i),null}r=de.current,Wi(i)?Eg(i):(r=ty(f,u,l),i.stateNode=r,qr(i))}return ht(i),null;case 5:if(jn(i),f=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==u&&qr(i);else{if(!u){if(i.stateNode===null)throw Error(o(166));return ht(i),null}if(h=de.current,Wi(i))Eg(i);else{var S=qc(je.current);switch(h){case 1:h=S.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=S.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=S.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=S.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=S.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof u.is=="string"?S.createElement("select",{is:u.is}):S.createElement("select"),u.multiple?h.multiple=!0:u.size&&(h.size=u.size);break;default:h=typeof u.is=="string"?S.createElement(f,{is:u.is}):S.createElement(f)}}h[Qt]=i,h[bn]=u;e:for(S=i.child;S!==null;){if(S.tag===5||S.tag===6)h.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===i)break e;for(;S.sibling===null;){if(S.return===null||S.return===i)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}i.stateNode=h;e:switch(Yt(h,f,u),f){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&qr(i)}}return ht(i),u0(i,i.type,r===null?null:r.memoizedProps,i.pendingProps,l),null;case 6:if(r&&i.stateNode!=null)r.memoizedProps!==u&&qr(i);else{if(typeof u!="string"&&i.stateNode===null)throw Error(o(166));if(r=je.current,Wi(i)){if(r=i.stateNode,l=i.memoizedProps,u=null,f=Gt,f!==null)switch(f.tag){case 27:case 5:u=f.memoizedProps}r[Qt]=i,r=!!(r.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||Fv(r.nodeValue,l)),r||fa(i,!0)}else r=qc(r).createTextNode(u),r[Qt]=i,i.stateNode=r}return ht(i),null;case 31:if(l=i.memoizedState,r===null||r.memoizedState!==null){if(u=Wi(i),l!==null){if(r===null){if(!u)throw Error(o(318));if(r=i.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(557));r[Qt]=i}else ti(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;ht(i),r=!1}else l=_f(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=l),r=!0;if(!r)return i.flags&256?(Rn(i),i):(Rn(i),null);if((i.flags&128)!==0)throw Error(o(558))}return ht(i),null;case 13:if(u=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(f=Wi(i),u!==null&&u.dehydrated!==null){if(r===null){if(!f)throw Error(o(318));if(f=i.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(o(317));f[Qt]=i}else ti(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;ht(i),f=!1}else f=_f(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=f),f=!0;if(!f)return i.flags&256?(Rn(i),i):(Rn(i),null)}return Rn(i),(i.flags&128)!==0?(i.lanes=l,i):(l=u!==null,r=r!==null&&r.memoizedState!==null,l&&(u=i.child,f=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(f=u.alternate.memoizedState.cachePool.pool),h=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(h=u.memoizedState.cachePool.pool),h!==f&&(u.flags|=2048)),l!==r&&l&&(i.child.flags|=8192),Mc(i,i.updateQueue),ht(i),null);case 4:return Ye(),r===null&&N0(i.stateNode.containerInfo),ht(i),null;case 10:return Zr(i.type),ht(i),null;case 19:if(G(Ot),u=i.memoizedState,u===null)return ht(i),null;if(f=(i.flags&128)!==0,h=u.rendering,h===null)if(f)bs(u,!1);else{if(Et!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(h=vc(r),h!==null){for(i.flags|=128,bs(u,!1),r=h.updateQueue,i.updateQueue=r,Mc(i,r),i.subtreeFlags=0,r=l,l=i.child;l!==null;)Sg(l,r),l=l.sibling;return ae(Ot,Ot.current&1|2),qe&&Ir(i,u.treeForkCount),i.child}r=r.sibling}u.tail!==null&&j()>Cc&&(i.flags|=128,f=!0,bs(u,!1),i.lanes=4194304)}else{if(!f)if(r=vc(h),r!==null){if(i.flags|=128,f=!0,r=r.updateQueue,i.updateQueue=r,Mc(i,r),bs(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!qe)return ht(i),null}else 2*j()-u.renderingStartTime>Cc&&l!==536870912&&(i.flags|=128,f=!0,bs(u,!1),i.lanes=4194304);u.isBackwards?(h.sibling=i.child,i.child=h):(r=u.last,r!==null?r.sibling=h:i.child=h,u.last=h)}return u.tail!==null?(r=u.tail,u.rendering=r,u.tail=r.sibling,u.renderingStartTime=j(),r.sibling=null,l=Ot.current,ae(Ot,f?l&1|2:l&1),qe&&Ir(i,u.treeForkCount),r):(ht(i),null);case 22:case 23:return Rn(i),zf(),u=i.memoizedState!==null,r!==null?r.memoizedState!==null!==u&&(i.flags|=8192):u&&(i.flags|=8192),u?(l&536870912)!==0&&(i.flags&128)===0&&(ht(i),i.subtreeFlags&6&&(i.flags|=8192)):ht(i),l=i.updateQueue,l!==null&&Mc(i,l.retryQueue),l=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==l&&(i.flags|=2048),r!==null&&G(ai),null;case 24:return l=null,r!==null&&(l=r.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),Zr(Rt),ht(i),null;case 25:return null;case 30:return null}throw Error(o(156,i.tag))}function D7(r,i){switch(yf(i),i.tag){case 1:return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return Zr(Rt),Ye(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 26:case 27:case 5:return jn(i),null;case 31:if(i.memoizedState!==null){if(Rn(i),i.alternate===null)throw Error(o(340));ti()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 13:if(Rn(i),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(o(340));ti()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return G(Ot),null;case 4:return Ye(),null;case 10:return Zr(i.type),null;case 22:case 23:return Rn(i),zf(),r!==null&&G(ai),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 24:return Zr(Rt),null;case 25:return null;default:return null}}function G2(r,i){switch(yf(i),i.tag){case 3:Zr(Rt),Ye();break;case 26:case 27:case 5:jn(i);break;case 4:Ye();break;case 31:i.memoizedState!==null&&Rn(i);break;case 13:Rn(i);break;case 19:G(Ot);break;case 10:Zr(i.type);break;case 22:case 23:Rn(i),zf(),r!==null&&G(ai);break;case 24:Zr(Rt)}}function _s(r,i){try{var l=i.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var f=u.next;l=f;do{if((l.tag&r)===r){u=void 0;var h=l.create,S=l.inst;u=h(),S.destroy=u}l=l.next}while(l!==f)}}catch(k){nt(i,i.return,k)}}function ba(r,i,l){try{var u=i.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var h=f.next;u=h;do{if((u.tag&r)===r){var S=u.inst,k=S.destroy;if(k!==void 0){S.destroy=void 0,f=i;var O=l,V=k;try{V()}catch(J){nt(f,O,J)}}}u=u.next}while(u!==h)}}catch(J){nt(i,i.return,J)}}function J2(r){var i=r.updateQueue;if(i!==null){var l=r.stateNode;try{Ug(i,l)}catch(u){nt(r,r.return,u)}}}function X2(r,i,l){l.props=ci(r.type,r.memoizedProps),l.state=r.memoizedState;try{l.componentWillUnmount()}catch(u){nt(r,i,u)}}function xs(r,i){try{var l=r.ref;if(l!==null){switch(r.tag){case 26:case 27:case 5:var u=r.stateNode;break;case 30:u=r.stateNode;break;default:u=r.stateNode}typeof l=="function"?r.refCleanup=l(u):l.current=u}}catch(f){nt(r,i,f)}}function $r(r,i){var l=r.ref,u=r.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(f){nt(r,i,f)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){nt(r,i,f)}else l.current=null}function Y2(r){var i=r.type,l=r.memoizedProps,u=r.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(f){nt(r,r.return,f)}}function d0(r,i,l){try{var u=r.stateNode;a9(u,r.type,l,i),u[bn]=i}catch(f){nt(r,r.return,f)}}function W2(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Aa(r.type)||r.tag===4}function f0(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||W2(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Aa(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function m0(r,i,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,i?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(r,i):(i=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,i.appendChild(r),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=Dr));else if(u!==4&&(u===27&&Aa(r.type)&&(l=r.stateNode,i=null),r=r.child,r!==null))for(m0(r,i,l),r=r.sibling;r!==null;)m0(r,i,l),r=r.sibling}function Oc(r,i,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,i?l.insertBefore(r,i):l.appendChild(r);else if(u!==4&&(u===27&&Aa(r.type)&&(l=r.stateNode),r=r.child,r!==null))for(Oc(r,i,l),r=r.sibling;r!==null;)Oc(r,i,l),r=r.sibling}function ev(r){var i=r.stateNode,l=r.memoizedProps;try{for(var u=r.type,f=i.attributes;f.length;)i.removeAttributeNode(f[0]);Yt(i,u,l),i[Qt]=r,i[bn]=l}catch(h){nt(r,r.return,h)}}var Br=!1,Pt=!1,p0=!1,tv=typeof WeakSet=="function"?WeakSet:Set,qt=null;function P7(r,i){if(r=r.containerInfo,C0=Yc,r=mg(r),sf(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var f=u.anchorOffset,h=u.focusNode;u=u.focusOffset;try{l.nodeType,h.nodeType}catch{l=null;break e}var S=0,k=-1,O=-1,V=0,J=0,Y=r,F=null;t:for(;;){for(var Q;Y!==l||f!==0&&Y.nodeType!==3||(k=S+f),Y!==h||u!==0&&Y.nodeType!==3||(O=S+u),Y.nodeType===3&&(S+=Y.nodeValue.length),(Q=Y.firstChild)!==null;)F=Y,Y=Q;for(;;){if(Y===r)break t;if(F===l&&++V===f&&(k=S),F===h&&++J===u&&(O=S),(Q=Y.nextSibling)!==null)break;Y=F,F=Y.parentNode}Y=Q}l=k===-1||O===-1?null:{start:k,end:O}}else l=null}l=l||{start:0,end:0}}else l=null;for(D0={focusedElem:r,selectionRange:l},Yc=!1,qt=i;qt!==null;)if(i=qt,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,qt=r;else for(;qt!==null;){switch(i=qt,h=i.alternate,r=i.flags,i.tag){case 0:if((r&4)!==0&&(r=i.updateQueue,r=r!==null?r.events:null,r!==null))for(l=0;l<r.length;l++)f=r[l],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&h!==null){r=void 0,l=i,f=h.memoizedProps,h=h.memoizedState,u=l.stateNode;try{var ge=ci(l.type,f);r=u.getSnapshotBeforeUpdate(ge,h),u.__reactInternalSnapshotBeforeUpdate=r}catch(xe){nt(l,l.return,xe)}}break;case 3:if((r&1024)!==0){if(r=i.stateNode.containerInfo,l=r.nodeType,l===9)I0(r);else if(l===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":I0(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(o(163))}if(r=i.sibling,r!==null){r.return=i.return,qt=r;break}qt=i.return}}function nv(r,i,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:Qr(r,l),u&4&&_s(5,l);break;case 1:if(Qr(r,l),u&4)if(r=l.stateNode,i===null)try{r.componentDidMount()}catch(S){nt(l,l.return,S)}else{var f=ci(l.type,i.memoizedProps);i=i.memoizedState;try{r.componentDidUpdate(f,i,r.__reactInternalSnapshotBeforeUpdate)}catch(S){nt(l,l.return,S)}}u&64&&J2(l),u&512&&xs(l,l.return);break;case 3:if(Qr(r,l),u&64&&(r=l.updateQueue,r!==null)){if(i=null,l.child!==null)switch(l.child.tag){case 27:case 5:i=l.child.stateNode;break;case 1:i=l.child.stateNode}try{Ug(r,i)}catch(S){nt(l,l.return,S)}}break;case 27:i===null&&u&4&&ev(l);case 26:case 5:Qr(r,l),i===null&&u&4&&Y2(l),u&512&&xs(l,l.return);break;case 12:Qr(r,l);break;case 31:Qr(r,l),u&4&&iv(r,l);break;case 13:Qr(r,l),u&4&&ov(r,l),u&64&&(r=l.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(l=B7.bind(null,l),f9(r,l))));break;case 22:if(u=l.memoizedState!==null||Br,!u){i=i!==null&&i.memoizedState!==null||Pt,f=Br;var h=Pt;Br=u,(Pt=i)&&!h?Gr(r,l,(l.subtreeFlags&8772)!==0):Qr(r,l),Br=f,Pt=h}break;case 30:break;default:Qr(r,l)}}function rv(r){var i=r.alternate;i!==null&&(r.alternate=null,rv(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&Hd(i)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var bt=null,xn=!1;function Kr(r,i,l){for(l=l.child;l!==null;)av(r,i,l),l=l.sibling}function av(r,i,l){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(Mt,l)}catch{}switch(l.tag){case 26:Pt||$r(l,i),Kr(r,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Pt||$r(l,i);var u=bt,f=xn;Aa(l.type)&&(bt=l.stateNode,xn=!1),Kr(r,i,l),Ms(l.stateNode),bt=u,xn=f;break;case 5:Pt||$r(l,i);case 6:if(u=bt,f=xn,bt=null,Kr(r,i,l),bt=u,xn=f,bt!==null)if(xn)try{(bt.nodeType===9?bt.body:bt.nodeName==="HTML"?bt.ownerDocument.body:bt).removeChild(l.stateNode)}catch(h){nt(l,i,h)}else try{bt.removeChild(l.stateNode)}catch(h){nt(l,i,h)}break;case 18:bt!==null&&(xn?(r=bt,Jv(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,l.stateNode),xo(r)):Jv(bt,l.stateNode));break;case 4:u=bt,f=xn,bt=l.stateNode.containerInfo,xn=!0,Kr(r,i,l),bt=u,xn=f;break;case 0:case 11:case 14:case 15:ba(2,l,i),Pt||ba(4,l,i),Kr(r,i,l);break;case 1:Pt||($r(l,i),u=l.stateNode,typeof u.componentWillUnmount=="function"&&X2(l,i,u)),Kr(r,i,l);break;case 21:Kr(r,i,l);break;case 22:Pt=(u=Pt)||l.memoizedState!==null,Kr(r,i,l),Pt=u;break;default:Kr(r,i,l)}}function iv(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{xo(r)}catch(l){nt(i,i.return,l)}}}function ov(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{xo(r)}catch(l){nt(i,i.return,l)}}function L7(r){switch(r.tag){case 31:case 13:case 19:var i=r.stateNode;return i===null&&(i=r.stateNode=new tv),i;case 22:return r=r.stateNode,i=r._retryCache,i===null&&(i=r._retryCache=new tv),i;default:throw Error(o(435,r.tag))}}function Nc(r,i){var l=L7(r);i.forEach(function(u){if(!l.has(u)){l.add(u);var f=K7.bind(null,r,u);u.then(f,f)}})}function Sn(r,i){var l=i.deletions;if(l!==null)for(var u=0;u<l.length;u++){var f=l[u],h=r,S=i,k=S;e:for(;k!==null;){switch(k.tag){case 27:if(Aa(k.type)){bt=k.stateNode,xn=!1;break e}break;case 5:bt=k.stateNode,xn=!1;break e;case 3:case 4:bt=k.stateNode.containerInfo,xn=!0;break e}k=k.return}if(bt===null)throw Error(o(160));av(h,S,f),bt=null,xn=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)sv(i,r),i=i.sibling}var pr=null;function sv(r,i){var l=r.alternate,u=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Sn(i,r),wn(r),u&4&&(ba(3,r,r.return),_s(3,r),ba(5,r,r.return));break;case 1:Sn(i,r),wn(r),u&512&&(Pt||l===null||$r(l,l.return)),u&64&&Br&&(r=r.updateQueue,r!==null&&(u=r.callbacks,u!==null&&(l=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var f=pr;if(Sn(i,r),wn(r),u&512&&(Pt||l===null||$r(l,l.return)),u&4){var h=l!==null?l.memoizedState:null;if(u=r.memoizedState,l===null)if(u===null)if(r.stateNode===null){e:{u=r.type,l=r.memoizedProps,f=f.ownerDocument||f;t:switch(u){case"title":h=f.getElementsByTagName("title")[0],(!h||h[Qo]||h[Qt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(u),f.head.insertBefore(h,f.querySelector("head > title"))),Yt(h,u,l),h[Qt]=r,Ft(h),u=h;break e;case"link":var S=sy("link","href",f).get(u+(l.href||""));if(S){for(var k=0;k<S.length;k++)if(h=S[k],h.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&h.getAttribute("rel")===(l.rel==null?null:l.rel)&&h.getAttribute("title")===(l.title==null?null:l.title)&&h.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){S.splice(k,1);break t}}h=f.createElement(u),Yt(h,u,l),f.head.appendChild(h);break;case"meta":if(S=sy("meta","content",f).get(u+(l.content||""))){for(k=0;k<S.length;k++)if(h=S[k],h.getAttribute("content")===(l.content==null?null:""+l.content)&&h.getAttribute("name")===(l.name==null?null:l.name)&&h.getAttribute("property")===(l.property==null?null:l.property)&&h.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&h.getAttribute("charset")===(l.charSet==null?null:l.charSet)){S.splice(k,1);break t}}h=f.createElement(u),Yt(h,u,l),f.head.appendChild(h);break;default:throw Error(o(468,u))}h[Qt]=r,Ft(h),u=h}r.stateNode=u}else ly(f,r.type,r.stateNode);else r.stateNode=oy(f,u,r.memoizedProps);else h!==u?(h===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):h.count--,u===null?ly(f,r.type,r.stateNode):oy(f,u,r.memoizedProps)):u===null&&r.stateNode!==null&&d0(r,r.memoizedProps,l.memoizedProps)}break;case 27:Sn(i,r),wn(r),u&512&&(Pt||l===null||$r(l,l.return)),l!==null&&u&4&&d0(r,r.memoizedProps,l.memoizedProps);break;case 5:if(Sn(i,r),wn(r),u&512&&(Pt||l===null||$r(l,l.return)),r.flags&32){f=r.stateNode;try{Hi(f,"")}catch(ge){nt(r,r.return,ge)}}u&4&&r.stateNode!=null&&(f=r.memoizedProps,d0(r,f,l!==null?l.memoizedProps:f)),u&1024&&(p0=!0);break;case 6:if(Sn(i,r),wn(r),u&4){if(r.stateNode===null)throw Error(o(162));u=r.memoizedProps,l=r.stateNode;try{l.nodeValue=u}catch(ge){nt(r,r.return,ge)}}break;case 3:if(Qc=null,f=pr,pr=Bc(i.containerInfo),Sn(i,r),pr=f,wn(r),u&4&&l!==null&&l.memoizedState.isDehydrated)try{xo(i.containerInfo)}catch(ge){nt(r,r.return,ge)}p0&&(p0=!1,lv(r));break;case 4:u=pr,pr=Bc(r.stateNode.containerInfo),Sn(i,r),wn(r),pr=u;break;case 12:Sn(i,r),wn(r);break;case 31:Sn(i,r),wn(r),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,Nc(r,u)));break;case 13:Sn(i,r),wn(r),r.child.flags&8192&&r.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Rc=j()),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,Nc(r,u)));break;case 22:f=r.memoizedState!==null;var O=l!==null&&l.memoizedState!==null,V=Br,J=Pt;if(Br=V||f,Pt=J||O,Sn(i,r),Pt=J,Br=V,wn(r),u&8192)e:for(i=r.stateNode,i._visibility=f?i._visibility&-2:i._visibility|1,f&&(l===null||O||Br||Pt||ui(r)),l=null,i=r;;){if(i.tag===5||i.tag===26){if(l===null){O=l=i;try{if(h=O.stateNode,f)S=h.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{k=O.stateNode;var Y=O.memoizedProps.style,F=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;k.style.display=F==null||typeof F=="boolean"?"":(""+F).trim()}}catch(ge){nt(O,O.return,ge)}}}else if(i.tag===6){if(l===null){O=i;try{O.stateNode.nodeValue=f?"":O.memoizedProps}catch(ge){nt(O,O.return,ge)}}}else if(i.tag===18){if(l===null){O=i;try{var Q=O.stateNode;f?Xv(Q,!0):Xv(O.stateNode,!1)}catch(ge){nt(O,O.return,ge)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===r)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break e;for(;i.sibling===null;){if(i.return===null||i.return===r)break e;l===i&&(l=null),i=i.return}l===i&&(l=null),i.sibling.return=i.return,i=i.sibling}u&4&&(u=r.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,Nc(r,l))));break;case 19:Sn(i,r),wn(r),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,Nc(r,u)));break;case 30:break;case 21:break;default:Sn(i,r),wn(r)}}function wn(r){var i=r.flags;if(i&2){try{for(var l,u=r.return;u!==null;){if(W2(u)){l=u;break}u=u.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var f=l.stateNode,h=f0(r);Oc(r,h,f);break;case 5:var S=l.stateNode;l.flags&32&&(Hi(S,""),l.flags&=-33);var k=f0(r);Oc(r,k,S);break;case 3:case 4:var O=l.stateNode.containerInfo,V=f0(r);m0(r,V,O);break;default:throw Error(o(161))}}catch(J){nt(r,r.return,J)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function lv(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var i=r;lv(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),r=r.sibling}}function Qr(r,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)nv(r,i.alternate,i),i=i.sibling}function ui(r){for(r=r.child;r!==null;){var i=r;switch(i.tag){case 0:case 11:case 14:case 15:ba(4,i,i.return),ui(i);break;case 1:$r(i,i.return);var l=i.stateNode;typeof l.componentWillUnmount=="function"&&X2(i,i.return,l),ui(i);break;case 27:Ms(i.stateNode);case 26:case 5:$r(i,i.return),ui(i);break;case 22:i.memoizedState===null&&ui(i);break;case 30:ui(i);break;default:ui(i)}r=r.sibling}}function Gr(r,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var u=i.alternate,f=r,h=i,S=h.flags;switch(h.tag){case 0:case 11:case 15:Gr(f,h,l),_s(4,h);break;case 1:if(Gr(f,h,l),u=h,f=u.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(V){nt(u,u.return,V)}if(u=h,f=u.updateQueue,f!==null){var k=u.stateNode;try{var O=f.shared.hiddenCallbacks;if(O!==null)for(f.shared.hiddenCallbacks=null,f=0;f<O.length;f++)Ig(O[f],k)}catch(V){nt(u,u.return,V)}}l&&S&64&&J2(h),xs(h,h.return);break;case 27:ev(h);case 26:case 5:Gr(f,h,l),l&&u===null&&S&4&&Y2(h),xs(h,h.return);break;case 12:Gr(f,h,l);break;case 31:Gr(f,h,l),l&&S&4&&iv(f,h);break;case 13:Gr(f,h,l),l&&S&4&&ov(f,h);break;case 22:h.memoizedState===null&&Gr(f,h,l),xs(h,h.return);break;case 30:break;default:Gr(f,h,l)}i=i.sibling}}function h0(r,i){var l=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),r=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==l&&(r!=null&&r.refCount++,l!=null&&ss(l))}function g0(r,i){r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&ss(r))}function hr(r,i,l,u){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)cv(r,i,l,u),i=i.sibling}function cv(r,i,l,u){var f=i.flags;switch(i.tag){case 0:case 11:case 15:hr(r,i,l,u),f&2048&&_s(9,i);break;case 1:hr(r,i,l,u);break;case 3:hr(r,i,l,u),f&2048&&(r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&ss(r)));break;case 12:if(f&2048){hr(r,i,l,u),r=i.stateNode;try{var h=i.memoizedProps,S=h.id,k=h.onPostCommit;typeof k=="function"&&k(S,i.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(O){nt(i,i.return,O)}}else hr(r,i,l,u);break;case 31:hr(r,i,l,u);break;case 13:hr(r,i,l,u);break;case 23:break;case 22:h=i.stateNode,S=i.alternate,i.memoizedState!==null?h._visibility&2?hr(r,i,l,u):Ss(r,i):h._visibility&2?hr(r,i,l,u):(h._visibility|=2,co(r,i,l,u,(i.subtreeFlags&10256)!==0||!1)),f&2048&&h0(S,i);break;case 24:hr(r,i,l,u),f&2048&&g0(i.alternate,i);break;default:hr(r,i,l,u)}}function co(r,i,l,u,f){for(f=f&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var h=r,S=i,k=l,O=u,V=S.flags;switch(S.tag){case 0:case 11:case 15:co(h,S,k,O,f),_s(8,S);break;case 23:break;case 22:var J=S.stateNode;S.memoizedState!==null?J._visibility&2?co(h,S,k,O,f):Ss(h,S):(J._visibility|=2,co(h,S,k,O,f)),f&&V&2048&&h0(S.alternate,S);break;case 24:co(h,S,k,O,f),f&&V&2048&&g0(S.alternate,S);break;default:co(h,S,k,O,f)}i=i.sibling}}function Ss(r,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var l=r,u=i,f=u.flags;switch(u.tag){case 22:Ss(l,u),f&2048&&h0(u.alternate,u);break;case 24:Ss(l,u),f&2048&&g0(u.alternate,u);break;default:Ss(l,u)}i=i.sibling}}var ws=8192;function uo(r,i,l){if(r.subtreeFlags&ws)for(r=r.child;r!==null;)uv(r,i,l),r=r.sibling}function uv(r,i,l){switch(r.tag){case 26:uo(r,i,l),r.flags&ws&&r.memoizedState!==null&&k9(l,pr,r.memoizedState,r.memoizedProps);break;case 5:uo(r,i,l);break;case 3:case 4:var u=pr;pr=Bc(r.stateNode.containerInfo),uo(r,i,l),pr=u;break;case 22:r.memoizedState===null&&(u=r.alternate,u!==null&&u.memoizedState!==null?(u=ws,ws=16777216,uo(r,i,l),ws=u):uo(r,i,l));break;default:uo(r,i,l)}}function dv(r){var i=r.alternate;if(i!==null&&(r=i.child,r!==null)){i.child=null;do i=r.sibling,r.sibling=null,r=i;while(r!==null)}}function ks(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var u=i[l];qt=u,mv(u,r)}dv(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)fv(r),r=r.sibling}function fv(r){switch(r.tag){case 0:case 11:case 15:ks(r),r.flags&2048&&ba(9,r,r.return);break;case 3:ks(r);break;case 12:ks(r);break;case 22:var i=r.stateNode;r.memoizedState!==null&&i._visibility&2&&(r.return===null||r.return.tag!==13)?(i._visibility&=-3,zc(r)):ks(r);break;default:ks(r)}}function zc(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var u=i[l];qt=u,mv(u,r)}dv(r)}for(r=r.child;r!==null;){switch(i=r,i.tag){case 0:case 11:case 15:ba(8,i,i.return),zc(i);break;case 22:l=i.stateNode,l._visibility&2&&(l._visibility&=-3,zc(i));break;default:zc(i)}r=r.sibling}}function mv(r,i){for(;qt!==null;){var l=qt;switch(l.tag){case 0:case 11:case 15:ba(8,l,i);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:ss(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,qt=u;else e:for(l=r;qt!==null;){u=qt;var f=u.sibling,h=u.return;if(rv(u),u===l){qt=null;break e}if(f!==null){f.return=h,qt=f;break e}qt=h}}}var I7={getCacheForType:function(r){var i=Jt(Rt),l=i.data.get(r);return l===void 0&&(l=r(),i.data.set(r,l)),l},cacheSignal:function(){return Jt(Rt).controller.signal}},U7=typeof WeakMap=="function"?WeakMap:Map,Xe=0,ct=null,Ze=null,He=0,tt=0,Cn=null,_a=!1,fo=!1,v0=!1,Jr=0,Et=0,xa=0,di=0,y0=0,Dn=0,mo=0,$s=null,kn=null,b0=!1,Rc=0,pv=0,Cc=1/0,Dc=null,Sa=null,Ut=0,wa=null,po=null,Xr=0,_0=0,x0=null,hv=null,As=0,S0=null;function Pn(){return(Xe&2)!==0&&He!==0?He&-He:q.T!==null?T0():Oh()}function gv(){if(Dn===0)if((He&536870912)===0||qe){var r=Di;Di<<=1,(Di&3932160)===0&&(Di=262144),Dn=r}else Dn=536870912;return r=zn.current,r!==null&&(r.flags|=32),Dn}function $n(r,i,l){(r===ct&&(tt===2||tt===9)||r.cancelPendingCommit!==null)&&(ho(r,0),ka(r,He,Dn,!1)),Ko(r,l),((Xe&2)===0||r!==ct)&&(r===ct&&((Xe&2)===0&&(di|=l),Et===4&&ka(r,He,Dn,!1)),Ar(r))}function vv(r,i,l){if((Xe&6)!==0)throw Error(o(327));var u=!l&&(i&127)===0&&(i&r.expiredLanes)===0||Bo(r,i),f=u?H7(r,i):k0(r,i,!0),h=u;do{if(f===0){fo&&!u&&ka(r,i,0,!1);break}else{if(l=r.current.alternate,h&&!Z7(l)){f=k0(r,i,!1),h=!1;continue}if(f===2){if(h=i,r.errorRecoveryDisabledLanes&h)var S=0;else S=r.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){i=S;e:{var k=r;f=$s;var O=k.current.memoizedState.isDehydrated;if(O&&(ho(k,S).flags|=256),S=k0(k,S,!1),S!==2){if(v0&&!O){k.errorRecoveryDisabledLanes|=h,di|=h,f=4;break e}h=kn,kn=f,h!==null&&(kn===null?kn=h:kn.push.apply(kn,h))}f=S}if(h=!1,f!==2)continue}}if(f===1){ho(r,0),ka(r,i,0,!0);break}e:{switch(u=r,h=f,h){case 0:case 1:throw Error(o(345));case 4:if((i&4194048)!==i)break;case 6:ka(u,i,Dn,!_a);break e;case 2:kn=null;break;case 3:case 5:break;default:throw Error(o(329))}if((i&62914560)===i&&(f=Rc+300-j(),10<f)){if(ka(u,i,Dn,!_a),Bl(u,0,!0)!==0)break e;Xr=i,u.timeoutHandle=Qv(yv.bind(null,u,l,kn,Dc,b0,i,Dn,di,mo,_a,h,"Throttled",-0,0),f);break e}yv(u,l,kn,Dc,b0,i,Dn,di,mo,_a,h,null,-0,0)}}break}while(!0);Ar(r)}function yv(r,i,l,u,f,h,S,k,O,V,J,Y,F,Q){if(r.timeoutHandle=-1,Y=i.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Dr},uv(i,h,Y);var ge=(h&62914560)===h?Rc-j():(h&4194048)===h?pv-j():0;if(ge=$9(Y,ge),ge!==null){Xr=h,r.cancelPendingCommit=ge(Av.bind(null,r,i,h,l,u,f,S,k,O,J,Y,null,F,Q)),ka(r,h,S,!V);return}}Av(r,i,h,l,u,f,S,k,O)}function Z7(r){for(var i=r;;){var l=i.tag;if((l===0||l===11||l===15)&&i.flags&16384&&(l=i.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var f=l[u],h=f.getSnapshot;f=f.value;try{if(!On(h(),f))return!1}catch{return!1}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function ka(r,i,l,u){i&=~y0,i&=~di,r.suspendedLanes|=i,r.pingedLanes&=~i,u&&(r.warmLanes|=i),u=r.expirationTimes;for(var f=i;0<f;){var h=31-mn(f),S=1<<h;u[h]=-1,f&=~S}l!==0&&Th(r,l,i)}function Pc(){return(Xe&6)===0?(Es(0),!1):!0}function w0(){if(Ze!==null){if(tt===0)var r=Ze.return;else r=Ze,Ur=ni=null,If(r),ao=null,cs=0,r=Ze;for(;r!==null;)G2(r.alternate,r),r=r.return;Ze=null}}function ho(r,i){var l=r.timeoutHandle;l!==-1&&(r.timeoutHandle=-1,s9(l)),l=r.cancelPendingCommit,l!==null&&(r.cancelPendingCommit=null,l()),Xr=0,w0(),ct=r,Ze=l=Lr(r.current,null),He=i,tt=0,Cn=null,_a=!1,fo=Bo(r,i),v0=!1,mo=Dn=y0=di=xa=Et=0,kn=$s=null,b0=!1,(i&8)!==0&&(i|=i&32);var u=r.entangledLanes;if(u!==0)for(r=r.entanglements,u&=i;0<u;){var f=31-mn(u),h=1<<f;i|=r[f],u&=~h}return Jr=i,ac(),l}function bv(r,i){Oe=null,q.H=vs,i===ro||i===fc?(i=Cg(),tt=3):i===Ef?(i=Cg(),tt=4):tt=i===t0?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Cn=i,Ze===null&&(Et=1,Ac(r,Jn(i,r.current)))}function _v(){var r=zn.current;return r===null?!0:(He&4194048)===He?er===null:(He&62914560)===He||(He&536870912)!==0?r===er:!1}function xv(){var r=q.H;return q.H=vs,r===null?vs:r}function Sv(){var r=q.A;return q.A=I7,r}function Lc(){Et=4,_a||(He&4194048)!==He&&zn.current!==null||(fo=!0),(xa&134217727)===0&&(di&134217727)===0||ct===null||ka(ct,He,Dn,!1)}function k0(r,i,l){var u=Xe;Xe|=2;var f=xv(),h=Sv();(ct!==r||He!==i)&&(Dc=null,ho(r,i)),i=!1;var S=Et;e:do try{if(tt!==0&&Ze!==null){var k=Ze,O=Cn;switch(tt){case 8:w0(),S=6;break e;case 3:case 2:case 9:case 6:zn.current===null&&(i=!0);var V=tt;if(tt=0,Cn=null,go(r,k,O,V),l&&fo){S=0;break e}break;default:V=tt,tt=0,Cn=null,go(r,k,O,V)}}V7(),S=Et;break}catch(J){bv(r,J)}while(!0);return i&&r.shellSuspendCounter++,Ur=ni=null,Xe=u,q.H=f,q.A=h,Ze===null&&(ct=null,He=0,ac()),S}function V7(){for(;Ze!==null;)wv(Ze)}function H7(r,i){var l=Xe;Xe|=2;var u=xv(),f=Sv();ct!==r||He!==i?(Dc=null,Cc=j()+500,ho(r,i)):fo=Bo(r,i);e:do try{if(tt!==0&&Ze!==null){i=Ze;var h=Cn;t:switch(tt){case 1:tt=0,Cn=null,go(r,i,h,1);break;case 2:case 9:if(zg(h)){tt=0,Cn=null,kv(i);break}i=function(){tt!==2&&tt!==9||ct!==r||(tt=7),Ar(r)},h.then(i,i);break e;case 3:tt=7;break e;case 4:tt=5;break e;case 7:zg(h)?(tt=0,Cn=null,kv(i)):(tt=0,Cn=null,go(r,i,h,7));break;case 5:var S=null;switch(Ze.tag){case 26:S=Ze.memoizedState;case 5:case 27:var k=Ze;if(S?cy(S):k.stateNode.complete){tt=0,Cn=null;var O=k.sibling;if(O!==null)Ze=O;else{var V=k.return;V!==null?(Ze=V,Ic(V)):Ze=null}break t}}tt=0,Cn=null,go(r,i,h,5);break;case 6:tt=0,Cn=null,go(r,i,h,6);break;case 8:w0(),Et=6;break e;default:throw Error(o(462))}}F7();break}catch(J){bv(r,J)}while(!0);return Ur=ni=null,q.H=u,q.A=f,Xe=l,Ze!==null?0:(ct=null,He=0,ac(),Et)}function F7(){for(;Ze!==null&&!Ho();)wv(Ze)}function wv(r){var i=K2(r.alternate,r,Jr);r.memoizedProps=r.pendingProps,i===null?Ic(r):Ze=i}function kv(r){var i=r,l=i.alternate;switch(i.tag){case 15:case 0:i=Z2(l,i,i.pendingProps,i.type,void 0,He);break;case 11:i=Z2(l,i,i.pendingProps,i.type.render,i.ref,He);break;case 5:If(i);default:G2(l,i),i=Ze=Sg(i,Jr),i=K2(l,i,Jr)}r.memoizedProps=r.pendingProps,i===null?Ic(r):Ze=i}function go(r,i,l,u){Ur=ni=null,If(i),ao=null,cs=0;var f=i.return;try{if(N7(r,f,i,l,He)){Et=1,Ac(r,Jn(l,r.current)),Ze=null;return}}catch(h){if(f!==null)throw Ze=f,h;Et=1,Ac(r,Jn(l,r.current)),Ze=null;return}i.flags&32768?(qe||u===1?r=!0:fo||(He&536870912)!==0?r=!1:(_a=r=!0,(u===2||u===9||u===3||u===6)&&(u=zn.current,u!==null&&u.tag===13&&(u.flags|=16384))),$v(i,r)):Ic(i)}function Ic(r){var i=r;do{if((i.flags&32768)!==0){$v(i,_a);return}r=i.return;var l=C7(i.alternate,i,Jr);if(l!==null){Ze=l;return}if(i=i.sibling,i!==null){Ze=i;return}Ze=i=r}while(i!==null);Et===0&&(Et=5)}function $v(r,i){do{var l=D7(r.alternate,r);if(l!==null){l.flags&=32767,Ze=l;return}if(l=r.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!i&&(r=r.sibling,r!==null)){Ze=r;return}Ze=r=l}while(r!==null);Et=6,Ze=null}function Av(r,i,l,u,f,h,S,k,O){r.cancelPendingCommit=null;do Uc();while(Ut!==0);if((Xe&6)!==0)throw Error(o(327));if(i!==null){if(i===r.current)throw Error(o(177));if(h=i.lanes|i.childLanes,h|=ff,ww(r,l,h,S,k,O),r===ct&&(Ze=ct=null,He=0),po=i,wa=r,Xr=l,_0=h,x0=f,hv=u,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,Q7(se,function(){return Ov(),null})):(r.callbackNode=null,r.callbackPriority=0),u=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||u){u=q.T,q.T=null,f=ee.p,ee.p=2,S=Xe,Xe|=4;try{P7(r,i,l)}finally{Xe=S,ee.p=f,q.T=u}}Ut=1,Ev(),Tv(),jv()}}function Ev(){if(Ut===1){Ut=0;var r=wa,i=po,l=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||l){l=q.T,q.T=null;var u=ee.p;ee.p=2;var f=Xe;Xe|=4;try{sv(i,r);var h=D0,S=mg(r.containerInfo),k=h.focusedElem,O=h.selectionRange;if(S!==k&&k&&k.ownerDocument&&fg(k.ownerDocument.documentElement,k)){if(O!==null&&sf(k)){var V=O.start,J=O.end;if(J===void 0&&(J=V),"selectionStart"in k)k.selectionStart=V,k.selectionEnd=Math.min(J,k.value.length);else{var Y=k.ownerDocument||document,F=Y&&Y.defaultView||window;if(F.getSelection){var Q=F.getSelection(),ge=k.textContent.length,xe=Math.min(O.start,ge),ot=O.end===void 0?xe:Math.min(O.end,ge);!Q.extend&&xe>ot&&(S=ot,ot=xe,xe=S);var D=dg(k,xe),R=dg(k,ot);if(D&&R&&(Q.rangeCount!==1||Q.anchorNode!==D.node||Q.anchorOffset!==D.offset||Q.focusNode!==R.node||Q.focusOffset!==R.offset)){var Z=Y.createRange();Z.setStart(D.node,D.offset),Q.removeAllRanges(),xe>ot?(Q.addRange(Z),Q.extend(R.node,R.offset)):(Z.setEnd(R.node,R.offset),Q.addRange(Z))}}}}for(Y=[],Q=k;Q=Q.parentNode;)Q.nodeType===1&&Y.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<Y.length;k++){var X=Y[k];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Yc=!!C0,D0=C0=null}finally{Xe=f,ee.p=u,q.T=l}}r.current=i,Ut=2}}function Tv(){if(Ut===2){Ut=0;var r=wa,i=po,l=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||l){l=q.T,q.T=null;var u=ee.p;ee.p=2;var f=Xe;Xe|=4;try{nv(r,i.alternate,i)}finally{Xe=f,ee.p=u,q.T=l}}Ut=3}}function jv(){if(Ut===4||Ut===3){Ut=0,Ci();var r=wa,i=po,l=Xr,u=hv;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Ut=5:(Ut=0,po=wa=null,Mv(r,r.pendingLanes));var f=r.pendingLanes;if(f===0&&(Sa=null),Zd(l),i=i.stateNode,yt&&typeof yt.onCommitFiberRoot=="function")try{yt.onCommitFiberRoot(Mt,i,void 0,(i.current.flags&128)===128)}catch{}if(u!==null){i=q.T,f=ee.p,ee.p=2,q.T=null;try{for(var h=r.onRecoverableError,S=0;S<u.length;S++){var k=u[S];h(k.value,{componentStack:k.stack})}}finally{q.T=i,ee.p=f}}(Xr&3)!==0&&Uc(),Ar(r),f=r.pendingLanes,(l&261930)!==0&&(f&42)!==0?r===S0?As++:(As=0,S0=r):As=0,Es(0)}}function Mv(r,i){(r.pooledCacheLanes&=i)===0&&(i=r.pooledCache,i!=null&&(r.pooledCache=null,ss(i)))}function Uc(){return Ev(),Tv(),jv(),Ov()}function Ov(){if(Ut!==5)return!1;var r=wa,i=_0;_0=0;var l=Zd(Xr),u=q.T,f=ee.p;try{ee.p=32>l?32:l,q.T=null,l=x0,x0=null;var h=wa,S=Xr;if(Ut=0,po=wa=null,Xr=0,(Xe&6)!==0)throw Error(o(331));var k=Xe;if(Xe|=4,fv(h.current),cv(h,h.current,S,l),Xe=k,Es(0,!1),yt&&typeof yt.onPostCommitFiberRoot=="function")try{yt.onPostCommitFiberRoot(Mt,h)}catch{}return!0}finally{ee.p=f,q.T=u,Mv(r,i)}}function Nv(r,i,l){i=Jn(l,i),i=e0(r.stateNode,i,2),r=ga(r,i,2),r!==null&&(Ko(r,2),Ar(r))}function nt(r,i,l){if(r.tag===3)Nv(r,r,l);else for(;i!==null;){if(i.tag===3){Nv(i,r,l);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Sa===null||!Sa.has(u))){r=Jn(l,r),l=z2(2),u=ga(i,l,2),u!==null&&(R2(l,u,i,r),Ko(u,2),Ar(u));break}}i=i.return}}function $0(r,i,l){var u=r.pingCache;if(u===null){u=r.pingCache=new U7;var f=new Set;u.set(i,f)}else f=u.get(i),f===void 0&&(f=new Set,u.set(i,f));f.has(l)||(v0=!0,f.add(l),r=q7.bind(null,r,i,l),i.then(r,r))}function q7(r,i,l){var u=r.pingCache;u!==null&&u.delete(i),r.pingedLanes|=r.suspendedLanes&l,r.warmLanes&=~l,ct===r&&(He&l)===l&&(Et===4||Et===3&&(He&62914560)===He&&300>j()-Rc?(Xe&2)===0&&ho(r,0):y0|=l,mo===He&&(mo=0)),Ar(r)}function zv(r,i){i===0&&(i=Eh()),r=Wa(r,i),r!==null&&(Ko(r,i),Ar(r))}function B7(r){var i=r.memoizedState,l=0;i!==null&&(l=i.retryLane),zv(r,l)}function K7(r,i){var l=0;switch(r.tag){case 31:case 13:var u=r.stateNode,f=r.memoizedState;f!==null&&(l=f.retryLane);break;case 19:u=r.stateNode;break;case 22:u=r.stateNode._retryCache;break;default:throw Error(o(314))}u!==null&&u.delete(i),zv(r,l)}function Q7(r,i){return Mn(r,i)}var Zc=null,vo=null,A0=!1,Vc=!1,E0=!1,$a=0;function Ar(r){r!==vo&&r.next===null&&(vo===null?Zc=vo=r:vo=vo.next=r),Vc=!0,A0||(A0=!0,J7())}function Es(r,i){if(!E0&&Vc){E0=!0;do for(var l=!1,u=Zc;u!==null;){if(r!==0){var f=u.pendingLanes;if(f===0)var h=0;else{var S=u.suspendedLanes,k=u.pingedLanes;h=(1<<31-mn(42|r)+1)-1,h&=f&~(S&~k),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(l=!0,Pv(u,h))}else h=He,h=Bl(u,u===ct?h:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(h&3)===0||Bo(u,h)||(l=!0,Pv(u,h));u=u.next}while(l);E0=!1}}function G7(){Rv()}function Rv(){Vc=A0=!1;var r=0;$a!==0&&o9()&&(r=$a);for(var i=j(),l=null,u=Zc;u!==null;){var f=u.next,h=Cv(u,i);h===0?(u.next=null,l===null?Zc=f:l.next=f,f===null&&(vo=l)):(l=u,(r!==0||(h&3)!==0)&&(Vc=!0)),u=f}Ut!==0&&Ut!==5||Es(r),$a!==0&&($a=0)}function Cv(r,i){for(var l=r.suspendedLanes,u=r.pingedLanes,f=r.expirationTimes,h=r.pendingLanes&-62914561;0<h;){var S=31-mn(h),k=1<<S,O=f[S];O===-1?((k&l)===0||(k&u)!==0)&&(f[S]=Sw(k,i)):O<=i&&(r.expiredLanes|=k),h&=~k}if(i=ct,l=He,l=Bl(r,r===i?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u=r.callbackNode,l===0||r===i&&(tt===2||tt===9)||r.cancelPendingCommit!==null)return u!==null&&u!==null&&qa(u),r.callbackNode=null,r.callbackPriority=0;if((l&3)===0||Bo(r,l)){if(i=l&-l,i===r.callbackPriority)return i;switch(u!==null&&qa(u),Zd(l)){case 2:case 8:l=oe;break;case 32:l=se;break;case 268435456:l=me;break;default:l=se}return u=Dv.bind(null,r),l=Mn(l,u),r.callbackPriority=i,r.callbackNode=l,i}return u!==null&&u!==null&&qa(u),r.callbackPriority=2,r.callbackNode=null,2}function Dv(r,i){if(Ut!==0&&Ut!==5)return r.callbackNode=null,r.callbackPriority=0,null;var l=r.callbackNode;if(Uc()&&r.callbackNode!==l)return null;var u=He;return u=Bl(r,r===ct?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u===0?null:(vv(r,u,i),Cv(r,j()),r.callbackNode!=null&&r.callbackNode===l?Dv.bind(null,r):null)}function Pv(r,i){if(Uc())return null;vv(r,i,!0)}function J7(){l9(function(){(Xe&6)!==0?Mn(I,G7):Rv()})}function T0(){if($a===0){var r=to;r===0&&(r=Ba,Ba<<=1,(Ba&261888)===0&&(Ba=256)),$a=r}return $a}function Lv(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Jl(""+r)}function Iv(r,i){var l=i.ownerDocument.createElement("input");return l.name=i.name,l.value=i.value,r.id&&l.setAttribute("form",r.id),i.parentNode.insertBefore(l,i),r=new FormData(r),l.parentNode.removeChild(l),r}function X7(r,i,l,u,f){if(i==="submit"&&l&&l.stateNode===f){var h=Lv((f[bn]||null).action),S=u.submitter;S&&(i=(i=S[bn]||null)?Lv(i.formAction):S.getAttribute("formAction"),i!==null&&(h=i,S=null));var k=new ec("action","action",null,u,f);r.push({event:k,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if($a!==0){var O=S?Iv(f,S):new FormData(f);Qf(l,{pending:!0,data:O,method:f.method,action:h},null,O)}}else typeof h=="function"&&(k.preventDefault(),O=S?Iv(f,S):new FormData(f),Qf(l,{pending:!0,data:O,method:f.method,action:h},h,O))},currentTarget:f}]})}}for(var j0=0;j0<df.length;j0++){var M0=df[j0],Y7=M0.toLowerCase(),W7=M0[0].toUpperCase()+M0.slice(1);mr(Y7,"on"+W7)}mr(gg,"onAnimationEnd"),mr(vg,"onAnimationIteration"),mr(yg,"onAnimationStart"),mr("dblclick","onDoubleClick"),mr("focusin","onFocus"),mr("focusout","onBlur"),mr(h7,"onTransitionRun"),mr(g7,"onTransitionStart"),mr(v7,"onTransitionCancel"),mr(bg,"onTransitionEnd"),Zi("onMouseEnter",["mouseout","mouseover"]),Zi("onMouseLeave",["mouseout","mouseover"]),Zi("onPointerEnter",["pointerout","pointerover"]),Zi("onPointerLeave",["pointerout","pointerover"]),Ga("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ga("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ga("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ga("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ga("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ga("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ts="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(" "),e9=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ts));function Uv(r,i){i=(i&4)!==0;for(var l=0;l<r.length;l++){var u=r[l],f=u.event;u=u.listeners;e:{var h=void 0;if(i)for(var S=u.length-1;0<=S;S--){var k=u[S],O=k.instance,V=k.currentTarget;if(k=k.listener,O!==h&&f.isPropagationStopped())break e;h=k,f.currentTarget=V;try{h(f)}catch(J){rc(J)}f.currentTarget=null,h=O}else for(S=0;S<u.length;S++){if(k=u[S],O=k.instance,V=k.currentTarget,k=k.listener,O!==h&&f.isPropagationStopped())break e;h=k,f.currentTarget=V;try{h(f)}catch(J){rc(J)}f.currentTarget=null,h=O}}}}function Ve(r,i){var l=i[Vd];l===void 0&&(l=i[Vd]=new Set);var u=r+"__bubble";l.has(u)||(Zv(i,r,2,!1),l.add(u))}function O0(r,i,l){var u=0;i&&(u|=4),Zv(l,r,u,i)}var Hc="_reactListening"+Math.random().toString(36).slice(2);function N0(r){if(!r[Hc]){r[Hc]=!0,Rh.forEach(function(l){l!=="selectionchange"&&(e9.has(l)||O0(l,!1,r),O0(l,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[Hc]||(i[Hc]=!0,O0("selectionchange",!1,i))}}function Zv(r,i,l,u){switch(gy(i)){case 2:var f=T9;break;case 8:f=j9;break;default:f=K0}l=f.bind(null,i,l,r),f=void 0,!Xd||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(f=!0),u?f!==void 0?r.addEventListener(i,l,{capture:!0,passive:f}):r.addEventListener(i,l,!0):f!==void 0?r.addEventListener(i,l,{passive:f}):r.addEventListener(i,l,!1)}function z0(r,i,l,u,f){var h=u;if((i&1)===0&&(i&2)===0&&u!==null)e:for(;;){if(u===null)return;var S=u.tag;if(S===3||S===4){var k=u.stateNode.containerInfo;if(k===f)break;if(S===4)for(S=u.return;S!==null;){var O=S.tag;if((O===3||O===4)&&S.stateNode.containerInfo===f)return;S=S.return}for(;k!==null;){if(S=Li(k),S===null)return;if(O=S.tag,O===5||O===6||O===26||O===27){u=h=S;continue e}k=k.parentNode}}u=u.return}Bh(function(){var V=h,J=Gd(l),Y=[];e:{var F=_g.get(r);if(F!==void 0){var Q=ec,ge=r;switch(r){case"keypress":if(Yl(l)===0)break e;case"keydown":case"keyup":Q=Kw;break;case"focusin":ge="focus",Q=tf;break;case"focusout":ge="blur",Q=tf;break;case"beforeblur":case"afterblur":Q=tf;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=Gh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=Cw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=Jw;break;case gg:case vg:case yg:Q=Lw;break;case bg:Q=Yw;break;case"scroll":case"scrollend":Q=zw;break;case"wheel":Q=e7;break;case"copy":case"cut":case"paste":Q=Uw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=Xh;break;case"toggle":case"beforetoggle":Q=n7}var xe=(i&4)!==0,ot=!xe&&(r==="scroll"||r==="scrollend"),D=xe?F!==null?F+"Capture":null:F;xe=[];for(var R=V,Z;R!==null;){var X=R;if(Z=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||Z===null||D===null||(X=Jo(R,D),X!=null&&xe.push(js(R,X,Z))),ot)break;R=R.return}0<xe.length&&(F=new Q(F,ge,null,l,J),Y.push({event:F,listeners:xe}))}}if((i&7)===0){e:{if(F=r==="mouseover"||r==="pointerover",Q=r==="mouseout"||r==="pointerout",F&&l!==Qd&&(ge=l.relatedTarget||l.fromElement)&&(Li(ge)||ge[Pi]))break e;if((Q||F)&&(F=J.window===J?J:(F=J.ownerDocument)?F.defaultView||F.parentWindow:window,Q?(ge=l.relatedTarget||l.toElement,Q=V,ge=ge?Li(ge):null,ge!==null&&(ot=s(ge),xe=ge.tag,ge!==ot||xe!==5&&xe!==27&&xe!==6)&&(ge=null)):(Q=null,ge=V),Q!==ge)){if(xe=Gh,X="onMouseLeave",D="onMouseEnter",R="mouse",(r==="pointerout"||r==="pointerover")&&(xe=Xh,X="onPointerLeave",D="onPointerEnter",R="pointer"),ot=Q==null?F:Go(Q),Z=ge==null?F:Go(ge),F=new xe(X,R+"leave",Q,l,J),F.target=ot,F.relatedTarget=Z,X=null,Li(J)===V&&(xe=new xe(D,R+"enter",ge,l,J),xe.target=Z,xe.relatedTarget=ot,X=xe),ot=X,Q&&ge)t:{for(xe=t9,D=Q,R=ge,Z=0,X=D;X;X=xe(X))Z++;X=0;for(var be=R;be;be=xe(be))X++;for(;0<Z-X;)D=xe(D),Z--;for(;0<X-Z;)R=xe(R),X--;for(;Z--;){if(D===R||R!==null&&D===R.alternate){xe=D;break t}D=xe(D),R=xe(R)}xe=null}else xe=null;Q!==null&&Vv(Y,F,Q,xe,!1),ge!==null&&ot!==null&&Vv(Y,ot,ge,xe,!0)}}e:{if(F=V?Go(V):window,Q=F.nodeName&&F.nodeName.toLowerCase(),Q==="select"||Q==="input"&&F.type==="file")var Qe=ig;else if(rg(F))if(og)Qe=f7;else{Qe=u7;var ye=c7}else Q=F.nodeName,!Q||Q.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?V&&Kd(V.elementType)&&(Qe=ig):Qe=d7;if(Qe&&(Qe=Qe(r,V))){ag(Y,Qe,l,J);break e}ye&&ye(r,F,V),r==="focusout"&&V&&F.type==="number"&&V.memoizedProps.value!=null&&Bd(F,"number",F.value)}switch(ye=V?Go(V):window,r){case"focusin":(rg(ye)||ye.contentEditable==="true")&&(Ki=ye,lf=V,as=null);break;case"focusout":as=lf=Ki=null;break;case"mousedown":cf=!0;break;case"contextmenu":case"mouseup":case"dragend":cf=!1,pg(Y,l,J);break;case"selectionchange":if(p7)break;case"keydown":case"keyup":pg(Y,l,J)}var Re;if(rf)e:{switch(r){case"compositionstart":var Fe="onCompositionStart";break e;case"compositionend":Fe="onCompositionEnd";break e;case"compositionupdate":Fe="onCompositionUpdate";break e}Fe=void 0}else Bi?tg(r,l)&&(Fe="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Fe="onCompositionStart");Fe&&(Yh&&l.locale!=="ko"&&(Bi||Fe!=="onCompositionStart"?Fe==="onCompositionEnd"&&Bi&&(Re=Kh()):(ca=J,Yd="value"in ca?ca.value:ca.textContent,Bi=!0)),ye=Fc(V,Fe),0<ye.length&&(Fe=new Jh(Fe,r,null,l,J),Y.push({event:Fe,listeners:ye}),Re?Fe.data=Re:(Re=ng(l),Re!==null&&(Fe.data=Re)))),(Re=a7?i7(r,l):o7(r,l))&&(Fe=Fc(V,"onBeforeInput"),0<Fe.length&&(ye=new Jh("onBeforeInput","beforeinput",null,l,J),Y.push({event:ye,listeners:Fe}),ye.data=Re)),X7(Y,r,V,l,J)}Uv(Y,i)})}function js(r,i,l){return{instance:r,listener:i,currentTarget:l}}function Fc(r,i){for(var l=i+"Capture",u=[];r!==null;){var f=r,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=Jo(r,l),f!=null&&u.unshift(js(r,f,h)),f=Jo(r,i),f!=null&&u.push(js(r,f,h))),r.tag===3)return u;r=r.return}return[]}function t9(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function Vv(r,i,l,u,f){for(var h=i._reactName,S=[];l!==null&&l!==u;){var k=l,O=k.alternate,V=k.stateNode;if(k=k.tag,O!==null&&O===u)break;k!==5&&k!==26&&k!==27||V===null||(O=V,f?(V=Jo(l,h),V!=null&&S.unshift(js(l,V,O))):f||(V=Jo(l,h),V!=null&&S.push(js(l,V,O)))),l=l.return}S.length!==0&&r.push({event:i,listeners:S})}var n9=/\r\n?/g,r9=/\u0000|\uFFFD/g;function Hv(r){return(typeof r=="string"?r:""+r).replace(n9,`
|
|
9
|
-
`).replace(r9,"")}function Fv(r,i){return i=Hv(i),Hv(r)===i}function it(r,i,l,u,f,h){switch(l){case"children":typeof u=="string"?i==="body"||i==="textarea"&&u===""||Hi(r,u):(typeof u=="number"||typeof u=="bigint")&&i!=="body"&&Hi(r,""+u);break;case"className":Ql(r,"class",u);break;case"tabIndex":Ql(r,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Ql(r,l,u);break;case"style":Fh(r,u,h);break;case"data":if(i!=="object"){Ql(r,"data",u);break}case"src":case"href":if(u===""&&(i!=="a"||l!=="href")){r.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(l);break}u=Jl(""+u),r.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){r.setAttribute(l,"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 h=="function"&&(l==="formAction"?(i!=="input"&&it(r,i,"name",f.name,f,null),it(r,i,"formEncType",f.formEncType,f,null),it(r,i,"formMethod",f.formMethod,f,null),it(r,i,"formTarget",f.formTarget,f,null)):(it(r,i,"encType",f.encType,f,null),it(r,i,"method",f.method,f,null),it(r,i,"target",f.target,f,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(l);break}u=Jl(""+u),r.setAttribute(l,u);break;case"onClick":u!=null&&(r.onclick=Dr);break;case"onScroll":u!=null&&Ve("scroll",r);break;case"onScrollEnd":u!=null&&Ve("scrollend",r);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(o(61));if(l=u.__html,l!=null){if(f.children!=null)throw Error(o(60));r.innerHTML=l}}break;case"multiple":r.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":r.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){r.removeAttribute("xlink:href");break}l=Jl(""+u),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(l,""+u):r.removeAttribute(l);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":u&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(l,""):r.removeAttribute(l);break;case"capture":case"download":u===!0?r.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(l,u):r.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?r.setAttribute(l,u):r.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?r.removeAttribute(l):r.setAttribute(l,u);break;case"popover":Ve("beforetoggle",r),Ve("toggle",r),Kl(r,"popover",u);break;case"xlinkActuate":Cr(r,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Cr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Cr(r,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Cr(r,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Cr(r,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Cr(r,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Cr(r,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Cr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Cr(r,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Kl(r,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Ow.get(l)||l,Kl(r,l,u))}}function R0(r,i,l,u,f,h){switch(l){case"style":Fh(r,u,h);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(o(61));if(l=u.__html,l!=null){if(f.children!=null)throw Error(o(60));r.innerHTML=l}}break;case"children":typeof u=="string"?Hi(r,u):(typeof u=="number"||typeof u=="bigint")&&Hi(r,""+u);break;case"onScroll":u!=null&&Ve("scroll",r);break;case"onScrollEnd":u!=null&&Ve("scrollend",r);break;case"onClick":u!=null&&(r.onclick=Dr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ch.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),i=l.slice(2,f?l.length-7:void 0),h=r[bn]||null,h=h!=null?h[l]:null,typeof h=="function"&&r.removeEventListener(i,h,f),typeof u=="function")){typeof h!="function"&&h!==null&&(l in r?r[l]=null:r.hasAttribute(l)&&r.removeAttribute(l)),r.addEventListener(i,u,f);break e}l in r?r[l]=u:u===!0?r.setAttribute(l,""):Kl(r,l,u)}}}function Yt(r,i,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ve("error",r),Ve("load",r);var u=!1,f=!1,h;for(h in l)if(l.hasOwnProperty(h)){var S=l[h];if(S!=null)switch(h){case"src":u=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,i));default:it(r,i,h,S,l,null)}}f&&it(r,i,"srcSet",l.srcSet,l,null),u&&it(r,i,"src",l.src,l,null);return;case"input":Ve("invalid",r);var k=h=S=f=null,O=null,V=null;for(u in l)if(l.hasOwnProperty(u)){var J=l[u];if(J!=null)switch(u){case"name":f=J;break;case"type":S=J;break;case"checked":O=J;break;case"defaultChecked":V=J;break;case"value":h=J;break;case"defaultValue":k=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(o(137,i));break;default:it(r,i,u,J,l,null)}}Uh(r,h,k,O,V,S,f,!1);return;case"select":Ve("invalid",r),u=S=h=null;for(f in l)if(l.hasOwnProperty(f)&&(k=l[f],k!=null))switch(f){case"value":h=k;break;case"defaultValue":S=k;break;case"multiple":u=k;default:it(r,i,f,k,l,null)}i=h,l=S,r.multiple=!!u,i!=null?Vi(r,!!u,i,!1):l!=null&&Vi(r,!!u,l,!0);return;case"textarea":Ve("invalid",r),h=f=u=null;for(S in l)if(l.hasOwnProperty(S)&&(k=l[S],k!=null))switch(S){case"value":u=k;break;case"defaultValue":f=k;break;case"children":h=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(o(91));break;default:it(r,i,S,k,l,null)}Vh(r,u,f,h);return;case"option":for(O in l)l.hasOwnProperty(O)&&(u=l[O],u!=null)&&(O==="selected"?r.selected=u&&typeof u!="function"&&typeof u!="symbol":it(r,i,O,u,l,null));return;case"dialog":Ve("beforetoggle",r),Ve("toggle",r),Ve("cancel",r),Ve("close",r);break;case"iframe":case"object":Ve("load",r);break;case"video":case"audio":for(u=0;u<Ts.length;u++)Ve(Ts[u],r);break;case"image":Ve("error",r),Ve("load",r);break;case"details":Ve("toggle",r);break;case"embed":case"source":case"link":Ve("error",r),Ve("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in l)if(l.hasOwnProperty(V)&&(u=l[V],u!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,i));default:it(r,i,V,u,l,null)}return;default:if(Kd(i)){for(J in l)l.hasOwnProperty(J)&&(u=l[J],u!==void 0&&R0(r,i,J,u,l,void 0));return}}for(k in l)l.hasOwnProperty(k)&&(u=l[k],u!=null&&it(r,i,k,u,l,null))}function a9(r,i,l,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,S=null,k=null,O=null,V=null,J=null;for(Q in l){var Y=l[Q];if(l.hasOwnProperty(Q)&&Y!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":O=Y;default:u.hasOwnProperty(Q)||it(r,i,Q,null,u,Y)}}for(var F in u){var Q=u[F];if(Y=l[F],u.hasOwnProperty(F)&&(Q!=null||Y!=null))switch(F){case"type":h=Q;break;case"name":f=Q;break;case"checked":V=Q;break;case"defaultChecked":J=Q;break;case"value":S=Q;break;case"defaultValue":k=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(o(137,i));break;default:Q!==Y&&it(r,i,F,Q,u,Y)}}qd(r,S,k,O,V,J,h,f);return;case"select":Q=S=k=F=null;for(h in l)if(O=l[h],l.hasOwnProperty(h)&&O!=null)switch(h){case"value":break;case"multiple":Q=O;default:u.hasOwnProperty(h)||it(r,i,h,null,u,O)}for(f in u)if(h=u[f],O=l[f],u.hasOwnProperty(f)&&(h!=null||O!=null))switch(f){case"value":F=h;break;case"defaultValue":k=h;break;case"multiple":S=h;default:h!==O&&it(r,i,f,h,u,O)}i=k,l=S,u=Q,F!=null?Vi(r,!!l,F,!1):!!u!=!!l&&(i!=null?Vi(r,!!l,i,!0):Vi(r,!!l,l?[]:"",!1));return;case"textarea":Q=F=null;for(k in l)if(f=l[k],l.hasOwnProperty(k)&&f!=null&&!u.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:it(r,i,k,null,u,f)}for(S in u)if(f=u[S],h=l[S],u.hasOwnProperty(S)&&(f!=null||h!=null))switch(S){case"value":F=f;break;case"defaultValue":Q=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(o(91));break;default:f!==h&&it(r,i,S,f,u,h)}Zh(r,F,Q);return;case"option":for(var ge in l)F=l[ge],l.hasOwnProperty(ge)&&F!=null&&!u.hasOwnProperty(ge)&&(ge==="selected"?r.selected=!1:it(r,i,ge,null,u,F));for(O in u)F=u[O],Q=l[O],u.hasOwnProperty(O)&&F!==Q&&(F!=null||Q!=null)&&(O==="selected"?r.selected=F&&typeof F!="function"&&typeof F!="symbol":it(r,i,O,F,u,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 xe in l)F=l[xe],l.hasOwnProperty(xe)&&F!=null&&!u.hasOwnProperty(xe)&&it(r,i,xe,null,u,F);for(V in u)if(F=u[V],Q=l[V],u.hasOwnProperty(V)&&F!==Q&&(F!=null||Q!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(o(137,i));break;default:it(r,i,V,F,u,Q)}return;default:if(Kd(i)){for(var ot in l)F=l[ot],l.hasOwnProperty(ot)&&F!==void 0&&!u.hasOwnProperty(ot)&&R0(r,i,ot,void 0,u,F);for(J in u)F=u[J],Q=l[J],!u.hasOwnProperty(J)||F===Q||F===void 0&&Q===void 0||R0(r,i,J,F,u,Q);return}}for(var D in l)F=l[D],l.hasOwnProperty(D)&&F!=null&&!u.hasOwnProperty(D)&&it(r,i,D,null,u,F);for(Y in u)F=u[Y],Q=l[Y],!u.hasOwnProperty(Y)||F===Q||F==null&&Q==null||it(r,i,Y,F,u,Q)}function qv(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function i9(){if(typeof performance.getEntriesByType=="function"){for(var r=0,i=0,l=performance.getEntriesByType("resource"),u=0;u<l.length;u++){var f=l[u],h=f.transferSize,S=f.initiatorType,k=f.duration;if(h&&k&&qv(S)){for(S=0,k=f.responseEnd,u+=1;u<l.length;u++){var O=l[u],V=O.startTime;if(V>k)break;var J=O.transferSize,Y=O.initiatorType;J&&qv(Y)&&(O=O.responseEnd,S+=J*(O<k?1:(k-V)/(O-V)))}if(--u,i+=8*(h+S)/(f.duration/1e3),r++,10<r)break}}if(0<r)return i/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var C0=null,D0=null;function qc(r){return r.nodeType===9?r:r.ownerDocument}function Bv(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Kv(r,i){if(r===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&i==="foreignObject"?0:r}function P0(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var L0=null;function o9(){var r=window.event;return r&&r.type==="popstate"?r===L0?!1:(L0=r,!0):(L0=null,!1)}var Qv=typeof setTimeout=="function"?setTimeout:void 0,s9=typeof clearTimeout=="function"?clearTimeout:void 0,Gv=typeof Promise=="function"?Promise:void 0,l9=typeof queueMicrotask=="function"?queueMicrotask:typeof Gv<"u"?function(r){return Gv.resolve(null).then(r).catch(c9)}:Qv;function c9(r){setTimeout(function(){throw r})}function Aa(r){return r==="head"}function Jv(r,i){var l=i,u=0;do{var f=l.nextSibling;if(r.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"||l==="/&"){if(u===0){r.removeChild(f),xo(i);return}u--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")u++;else if(l==="html")Ms(r.ownerDocument.documentElement);else if(l==="head"){l=r.ownerDocument.head,Ms(l);for(var h=l.firstChild;h;){var S=h.nextSibling,k=h.nodeName;h[Qo]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&h.rel.toLowerCase()==="stylesheet"||l.removeChild(h),h=S}}else l==="body"&&Ms(r.ownerDocument.body);l=f}while(l);xo(i)}function Xv(r,i){var l=r;r=0;do{var u=l.nextSibling;if(l.nodeType===1?i?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(i?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(r===0)break;r--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||r++;l=u}while(l)}function I0(r){var i=r.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var l=i;switch(i=i.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":I0(l),Hd(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}r.removeChild(l)}}function u9(r,i,l,u){for(;r.nodeType===1;){var f=l;if(r.nodeName.toLowerCase()!==i.toLowerCase()){if(!u&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(u){if(!r[Qo])switch(i){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(h=r.getAttribute("rel"),h==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(h!==f.rel||r.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||r.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||r.getAttribute("title")!==(f.title==null?null:f.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(h=r.getAttribute("src"),(h!==(f.src==null?null:f.src)||r.getAttribute("type")!==(f.type==null?null:f.type)||r.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(i==="input"&&r.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&r.getAttribute("name")===h)return r}else return r;if(r=tr(r.nextSibling),r===null)break}return null}function d9(r,i,l){if(i==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!l||(r=tr(r.nextSibling),r===null))return null;return r}function Yv(r,i){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!i||(r=tr(r.nextSibling),r===null))return null;return r}function U0(r){return r.data==="$?"||r.data==="$~"}function Z0(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function f9(r,i){var l=r.ownerDocument;if(r.data==="$~")r._reactRetry=i;else if(r.data!=="$?"||l.readyState!=="loading")i();else{var u=function(){i(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),r._reactRetry=u}}function tr(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return r}var V0=null;function Wv(r){r=r.nextSibling;for(var i=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"||l==="/&"){if(i===0)return tr(r.nextSibling);i--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||i++}r=r.nextSibling}return null}function ey(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(i===0)return r;i--}else l!=="/$"&&l!=="/&"||i++}r=r.previousSibling}return null}function ty(r,i,l){switch(i=qc(l),r){case"html":if(r=i.documentElement,!r)throw Error(o(452));return r;case"head":if(r=i.head,!r)throw Error(o(453));return r;case"body":if(r=i.body,!r)throw Error(o(454));return r;default:throw Error(o(451))}}function Ms(r){for(var i=r.attributes;i.length;)r.removeAttributeNode(i[0]);Hd(r)}var nr=new Map,ny=new Set;function Bc(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Yr=ee.d;ee.d={f:m9,r:p9,D:h9,C:g9,L:v9,m:y9,X:_9,S:b9,M:x9};function m9(){var r=Yr.f(),i=Pc();return r||i}function p9(r){var i=Ii(r);i!==null&&i.tag===5&&i.type==="form"?b2(i):Yr.r(r)}var yo=typeof document>"u"?null:document;function ry(r,i,l){var u=yo;if(u&&typeof i=="string"&&i){var f=Qn(i);f='link[rel="'+r+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),ny.has(f)||(ny.add(f),r={rel:r,crossOrigin:l,href:i},u.querySelector(f)===null&&(i=u.createElement("link"),Yt(i,"link",r),Ft(i),u.head.appendChild(i)))}}function h9(r){Yr.D(r),ry("dns-prefetch",r,null)}function g9(r,i){Yr.C(r,i),ry("preconnect",r,i)}function v9(r,i,l){Yr.L(r,i,l);var u=yo;if(u&&r&&i){var f='link[rel="preload"][as="'+Qn(i)+'"]';i==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+Qn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+Qn(l.imageSizes)+'"]')):f+='[href="'+Qn(r)+'"]';var h=f;switch(i){case"style":h=bo(r);break;case"script":h=_o(r)}nr.has(h)||(r=b({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:r,as:i},l),nr.set(h,r),u.querySelector(f)!==null||i==="style"&&u.querySelector(Os(h))||i==="script"&&u.querySelector(Ns(h))||(i=u.createElement("link"),Yt(i,"link",r),Ft(i),u.head.appendChild(i)))}}function y9(r,i){Yr.m(r,i);var l=yo;if(l&&r){var u=i&&typeof i.as=="string"?i.as:"script",f='link[rel="modulepreload"][as="'+Qn(u)+'"][href="'+Qn(r)+'"]',h=f;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=_o(r)}if(!nr.has(h)&&(r=b({rel:"modulepreload",href:r},i),nr.set(h,r),l.querySelector(f)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ns(h)))return}u=l.createElement("link"),Yt(u,"link",r),Ft(u),l.head.appendChild(u)}}}function b9(r,i,l){Yr.S(r,i,l);var u=yo;if(u&&r){var f=Ui(u).hoistableStyles,h=bo(r);i=i||"default";var S=f.get(h);if(!S){var k={loading:0,preload:null};if(S=u.querySelector(Os(h)))k.loading=5;else{r=b({rel:"stylesheet",href:r,"data-precedence":i},l),(l=nr.get(h))&&H0(r,l);var O=S=u.createElement("link");Ft(O),Yt(O,"link",r),O._p=new Promise(function(V,J){O.onload=V,O.onerror=J}),O.addEventListener("load",function(){k.loading|=1}),O.addEventListener("error",function(){k.loading|=2}),k.loading|=4,Kc(S,i,u)}S={type:"stylesheet",instance:S,count:1,state:k},f.set(h,S)}}}function _9(r,i){Yr.X(r,i);var l=yo;if(l&&r){var u=Ui(l).hoistableScripts,f=_o(r),h=u.get(f);h||(h=l.querySelector(Ns(f)),h||(r=b({src:r,async:!0},i),(i=nr.get(f))&&F0(r,i),h=l.createElement("script"),Ft(h),Yt(h,"link",r),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function x9(r,i){Yr.M(r,i);var l=yo;if(l&&r){var u=Ui(l).hoistableScripts,f=_o(r),h=u.get(f);h||(h=l.querySelector(Ns(f)),h||(r=b({src:r,async:!0,type:"module"},i),(i=nr.get(f))&&F0(r,i),h=l.createElement("script"),Ft(h),Yt(h,"link",r),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function ay(r,i,l,u){var f=(f=je.current)?Bc(f):null;if(!f)throw Error(o(446));switch(r){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(i=bo(l.href),l=Ui(f).hoistableStyles,u=l.get(i),u||(u={type:"style",instance:null,count:0,state:null},l.set(i,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){r=bo(l.href);var h=Ui(f).hoistableStyles,S=h.get(r);if(S||(f=f.ownerDocument||f,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(r,S),(h=f.querySelector(Os(r)))&&!h._p&&(S.instance=h,S.state.loading=5),nr.has(r)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},nr.set(r,l),h||S9(f,r,l,S.state))),i&&u===null)throw Error(o(528,""));return S}if(i&&u!==null)throw Error(o(529,""));return null;case"script":return i=l.async,l=l.src,typeof l=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=_o(l),l=Ui(f).hoistableScripts,u=l.get(i),u||(u={type:"script",instance:null,count:0,state:null},l.set(i,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,r))}}function bo(r){return'href="'+Qn(r)+'"'}function Os(r){return'link[rel="stylesheet"]['+r+"]"}function iy(r){return b({},r,{"data-precedence":r.precedence,precedence:null})}function S9(r,i,l,u){r.querySelector('link[rel="preload"][as="style"]['+i+"]")?u.loading=1:(i=r.createElement("link"),u.preload=i,i.addEventListener("load",function(){return u.loading|=1}),i.addEventListener("error",function(){return u.loading|=2}),Yt(i,"link",l),Ft(i),r.head.appendChild(i))}function _o(r){return'[src="'+Qn(r)+'"]'}function Ns(r){return"script[async]"+r}function oy(r,i,l){if(i.count++,i.instance===null)switch(i.type){case"style":var u=r.querySelector('style[data-href~="'+Qn(l.href)+'"]');if(u)return i.instance=u,Ft(u),u;var f=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(r.ownerDocument||r).createElement("style"),Ft(u),Yt(u,"style",f),Kc(u,l.precedence,r),i.instance=u;case"stylesheet":f=bo(l.href);var h=r.querySelector(Os(f));if(h)return i.state.loading|=4,i.instance=h,Ft(h),h;u=iy(l),(f=nr.get(f))&&H0(u,f),h=(r.ownerDocument||r).createElement("link"),Ft(h);var S=h;return S._p=new Promise(function(k,O){S.onload=k,S.onerror=O}),Yt(h,"link",u),i.state.loading|=4,Kc(h,l.precedence,r),i.instance=h;case"script":return h=_o(l.src),(f=r.querySelector(Ns(h)))?(i.instance=f,Ft(f),f):(u=l,(f=nr.get(h))&&(u=b({},l),F0(u,f)),r=r.ownerDocument||r,f=r.createElement("script"),Ft(f),Yt(f,"link",u),r.head.appendChild(f),i.instance=f);case"void":return null;default:throw Error(o(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(u=i.instance,i.state.loading|=4,Kc(u,l.precedence,r));return i.instance}function Kc(r,i,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=u.length?u[u.length-1]:null,h=f,S=0;S<u.length;S++){var k=u[S];if(k.dataset.precedence===i)h=k;else if(h!==f)break}h?h.parentNode.insertBefore(r,h.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(r,i.firstChild))}function H0(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.title==null&&(r.title=i.title)}function F0(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.integrity==null&&(r.integrity=i.integrity)}var Qc=null;function sy(r,i,l){if(Qc===null){var u=new Map,f=Qc=new Map;f.set(l,u)}else f=Qc,u=f.get(l),u||(u=new Map,f.set(l,u));if(u.has(r))return u;for(u.set(r,null),l=l.getElementsByTagName(r),f=0;f<l.length;f++){var h=l[f];if(!(h[Qo]||h[Qt]||r==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var S=h.getAttribute(i)||"";S=r+S;var k=u.get(S);k?k.push(h):u.set(S,[h])}}return u}function ly(r,i,l){r=r.ownerDocument||r,r.head.insertBefore(l,i==="title"?r.querySelector("head > title"):null)}function w9(r,i,l){if(l===1||i.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(r=i.disabled,typeof i.precedence=="string"&&r==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function cy(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function k9(r,i,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=bo(u.href),h=i.querySelector(Os(f));if(h){i=h._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(r.count++,r=Gc.bind(r),i.then(r,r)),l.state.loading|=4,l.instance=h,Ft(h);return}h=i.ownerDocument||i,u=iy(u),(f=nr.get(f))&&H0(u,f),h=h.createElement("link"),Ft(h);var S=h;S._p=new Promise(function(k,O){S.onload=k,S.onerror=O}),Yt(h,"link",u),l.instance=h}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(l,i),(i=l.state.preload)&&(l.state.loading&3)===0&&(r.count++,l=Gc.bind(r),i.addEventListener("load",l),i.addEventListener("error",l))}}var q0=0;function $9(r,i){return r.stylesheets&&r.count===0&&Xc(r,r.stylesheets),0<r.count||0<r.imgCount?function(l){var u=setTimeout(function(){if(r.stylesheets&&Xc(r,r.stylesheets),r.unsuspend){var h=r.unsuspend;r.unsuspend=null,h()}},6e4+i);0<r.imgBytes&&q0===0&&(q0=62500*i9());var f=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Xc(r,r.stylesheets),r.unsuspend)){var h=r.unsuspend;r.unsuspend=null,h()}},(r.imgBytes>q0?50:800)+i);return r.unsuspend=l,function(){r.unsuspend=null,clearTimeout(u),clearTimeout(f)}}:null}function Gc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xc(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Jc=null;function Xc(r,i){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Jc=new Map,i.forEach(A9,r),Jc=null,Gc.call(r))}function A9(r,i){if(!(i.state.loading&4)){var l=Jc.get(r);if(l)var u=l.get(null);else{l=new Map,Jc.set(r,l);for(var f=r.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var S=f[h];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(l.set(S.dataset.precedence,S),u=S)}u&&l.set(null,u)}f=i.instance,S=f.getAttribute("data-precedence"),h=l.get(S)||u,h===u&&l.set(null,f),l.set(S,f),this.count++,u=Gc.bind(this),f.addEventListener("load",u),f.addEventListener("error",u),h?h.parentNode.insertBefore(f,h.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(f,r.firstChild)),i.state.loading|=4}}var zs={$$typeof:N,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function E9(r,i,l,u,f,h,S,k,O){this.tag=1,this.containerInfo=r,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=Id(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Id(0),this.hiddenUpdates=Id(null),this.identifierPrefix=u,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function uy(r,i,l,u,f,h,S,k,O,V,J,Y){return r=new E9(r,i,l,S,O,V,J,Y,k),i=1,h===!0&&(i|=24),h=Nn(3,null,null,i),r.current=h,h.stateNode=r,i=kf(),i.refCount++,r.pooledCache=i,i.refCount++,h.memoizedState={element:u,isDehydrated:l,cache:i},Tf(h),r}function dy(r){return r?(r=Ji,r):Ji}function fy(r,i,l,u,f,h){f=dy(f),u.context===null?u.context=f:u.pendingContext=f,u=ha(i),u.payload={element:l},h=h===void 0?null:h,h!==null&&(u.callback=h),l=ga(r,u,i),l!==null&&($n(l,r,i),ds(l,r,i))}function my(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<i?l:i}}function B0(r,i){my(r,i),(r=r.alternate)&&my(r,i)}function py(r){if(r.tag===13||r.tag===31){var i=Wa(r,67108864);i!==null&&$n(i,r,67108864),B0(r,67108864)}}function hy(r){if(r.tag===13||r.tag===31){var i=Pn();i=Ud(i);var l=Wa(r,i);l!==null&&$n(l,r,i),B0(r,i)}}var Yc=!0;function T9(r,i,l,u){var f=q.T;q.T=null;var h=ee.p;try{ee.p=2,K0(r,i,l,u)}finally{ee.p=h,q.T=f}}function j9(r,i,l,u){var f=q.T;q.T=null;var h=ee.p;try{ee.p=8,K0(r,i,l,u)}finally{ee.p=h,q.T=f}}function K0(r,i,l,u){if(Yc){var f=Q0(u);if(f===null)z0(r,i,u,Wc,l),vy(r,u);else if(O9(f,r,i,l,u))u.stopPropagation();else if(vy(r,u),i&4&&-1<M9.indexOf(r)){for(;f!==null;){var h=Ii(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var S=Qa(h.pendingLanes);if(S!==0){var k=h;for(k.pendingLanes|=2,k.entangledLanes|=2;S;){var O=1<<31-mn(S);k.entanglements[1]|=O,S&=~O}Ar(h),(Xe&6)===0&&(Cc=j()+500,Es(0))}}break;case 31:case 13:k=Wa(h,2),k!==null&&$n(k,h,2),Pc(),B0(h,2)}if(h=Q0(u),h===null&&z0(r,i,u,Wc,l),h===f)break;f=h}f!==null&&u.stopPropagation()}else z0(r,i,u,null,l)}}function Q0(r){return r=Gd(r),G0(r)}var Wc=null;function G0(r){if(Wc=null,r=Li(r),r!==null){var i=s(r);if(i===null)r=null;else{var l=i.tag;if(l===13){if(r=c(i),r!==null)return r;r=null}else if(l===31){if(r=d(i),r!==null)return r;r=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return Wc=r,null}function gy(r){switch(r){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(C()){case I:return 2;case oe:return 8;case se:case le:return 32;case me:return 268435456;default:return 32}default:return 32}}var J0=!1,Ea=null,Ta=null,ja=null,Rs=new Map,Cs=new Map,Ma=[],M9="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 vy(r,i){switch(r){case"focusin":case"focusout":Ea=null;break;case"dragenter":case"dragleave":Ta=null;break;case"mouseover":case"mouseout":ja=null;break;case"pointerover":case"pointerout":Rs.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cs.delete(i.pointerId)}}function Ds(r,i,l,u,f,h){return r===null||r.nativeEvent!==h?(r={blockedOn:i,domEventName:l,eventSystemFlags:u,nativeEvent:h,targetContainers:[f]},i!==null&&(i=Ii(i),i!==null&&py(i)),r):(r.eventSystemFlags|=u,i=r.targetContainers,f!==null&&i.indexOf(f)===-1&&i.push(f),r)}function O9(r,i,l,u,f){switch(i){case"focusin":return Ea=Ds(Ea,r,i,l,u,f),!0;case"dragenter":return Ta=Ds(Ta,r,i,l,u,f),!0;case"mouseover":return ja=Ds(ja,r,i,l,u,f),!0;case"pointerover":var h=f.pointerId;return Rs.set(h,Ds(Rs.get(h)||null,r,i,l,u,f)),!0;case"gotpointercapture":return h=f.pointerId,Cs.set(h,Ds(Cs.get(h)||null,r,i,l,u,f)),!0}return!1}function yy(r){var i=Li(r.target);if(i!==null){var l=s(i);if(l!==null){if(i=l.tag,i===13){if(i=c(l),i!==null){r.blockedOn=i,Nh(r.priority,function(){hy(l)});return}}else if(i===31){if(i=d(l),i!==null){r.blockedOn=i,Nh(r.priority,function(){hy(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function eu(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var l=Q0(r.nativeEvent);if(l===null){l=r.nativeEvent;var u=new l.constructor(l.type,l);Qd=u,l.target.dispatchEvent(u),Qd=null}else return i=Ii(l),i!==null&&py(i),r.blockedOn=l,!1;i.shift()}return!0}function by(r,i,l){eu(r)&&l.delete(i)}function N9(){J0=!1,Ea!==null&&eu(Ea)&&(Ea=null),Ta!==null&&eu(Ta)&&(Ta=null),ja!==null&&eu(ja)&&(ja=null),Rs.forEach(by),Cs.forEach(by)}function tu(r,i){r.blockedOn===i&&(r.blockedOn=null,J0||(J0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,N9)))}var nu=null;function _y(r){nu!==r&&(nu=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){nu===r&&(nu=null);for(var i=0;i<r.length;i+=3){var l=r[i],u=r[i+1],f=r[i+2];if(typeof u!="function"){if(G0(u||l)===null)continue;break}var h=Ii(l);h!==null&&(r.splice(i,3),i-=3,Qf(h,{pending:!0,data:f,method:l.method,action:u},u,f))}}))}function xo(r){function i(O){return tu(O,r)}Ea!==null&&tu(Ea,r),Ta!==null&&tu(Ta,r),ja!==null&&tu(ja,r),Rs.forEach(i),Cs.forEach(i);for(var l=0;l<Ma.length;l++){var u=Ma[l];u.blockedOn===r&&(u.blockedOn=null)}for(;0<Ma.length&&(l=Ma[0],l.blockedOn===null);)yy(l),l.blockedOn===null&&Ma.shift();if(l=(r.ownerDocument||r).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var f=l[u],h=l[u+1],S=f[bn]||null;if(typeof h=="function")S||_y(l);else if(S){var k=null;if(h&&h.hasAttribute("formAction")){if(f=h,S=h[bn]||null)k=S.formAction;else if(G0(f)!==null)continue}else k=S.action;typeof k=="function"?l[u+1]=k:(l.splice(u,3),u-=3),_y(l)}}}function xy(){function r(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(S){return f=S})},focusReset:"manual",scroll:"manual"})}function i(){f!==null&&(f(),f=null),u||setTimeout(l,20)}function l(){if(!u&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,f=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(l,100),function(){u=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),f!==null&&(f(),f=null)}}}function X0(r){this._internalRoot=r}ru.prototype.render=X0.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(o(409));var l=i.current,u=Pn();fy(l,u,r,i,null,null)},ru.prototype.unmount=X0.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;fy(r.current,2,null,r,null,null),Pc(),i[Pi]=null}};function ru(r){this._internalRoot=r}ru.prototype.unstable_scheduleHydration=function(r){if(r){var i=Oh();r={blockedOn:null,target:r,priority:i};for(var l=0;l<Ma.length&&i!==0&&i<Ma[l].priority;l++);Ma.splice(l,0,r),l===0&&yy(r)}};var Sy=t.version;if(Sy!=="19.2.5")throw Error(o(527,Sy,"19.2.5"));ee.findDOMNode=function(r){var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(o(188)):(r=Object.keys(r).join(","),Error(o(268,r)));return r=p(i),r=r!==null?y(r):null,r=r===null?null:r.stateNode,r};var z9={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!au.isDisabled&&au.supportsFiber)try{Mt=au.inject(z9),yt=au}catch{}}return Vs.createRoot=function(r,i){if(!n(r))throw Error(o(299));var l=!1,u="",f=j2,h=M2,S=O2;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(f=i.onUncaughtError),i.onCaughtError!==void 0&&(h=i.onCaughtError),i.onRecoverableError!==void 0&&(S=i.onRecoverableError)),i=uy(r,1,!1,null,null,l,u,null,f,h,S,xy),r[Pi]=i.current,N0(r),new X0(i)},Vs.hydrateRoot=function(r,i,l){if(!n(r))throw Error(o(299));var u=!1,f="",h=j2,S=M2,k=O2,O=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(h=l.onUncaughtError),l.onCaughtError!==void 0&&(S=l.onCaughtError),l.onRecoverableError!==void 0&&(k=l.onRecoverableError),l.formState!==void 0&&(O=l.formState)),i=uy(r,1,!0,i,l??null,u,f,O,h,S,k,xy),i.context=dy(null),l=i.current,u=Pn(),u=Ud(u),f=ha(u),f.callback=null,ga(l,f,u),l=u,i.current.lanes=l,Ko(i,l),Ar(i),r[Pi]=i.current,N0(r),new ru(i)},Vs.version="19.2.5",Vs}var h6;function hA(){if(h6)return m1.exports;h6=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),m1.exports=pA(),m1.exports}var gA=hA();const ke=e=>typeof e=="string",Hs=()=>{let e,t;const a=new Promise((o,n)=>{e=o,t=n});return a.resolve=e,a.reject=t,a},g6=e=>e==null?"":String(e),vA=(e,t,a)=>{e.forEach(o=>{t[o]&&(a[o]=t[o])})},yA=/###/g,v6=e=>e&&e.includes("###")?e.replace(yA,"."):e,y6=e=>!e||ke(e),Gs=(e,t,a)=>{const o=ke(t)?t.split("."):t;let n=0;for(;n<o.length-1;){if(y6(e))return{};const s=v6(o[n]);!e[s]&&a&&(e[s]=new a),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++n}return y6(e)?{}:{obj:e,k:v6(o[n])}},b6=(e,t,a)=>{const{obj:o,k:n}=Gs(e,t,Object);if(o!==void 0||t.length===1){o[n]=a;return}let s=t[t.length-1],c=t.slice(0,t.length-1),d=Gs(e,c,Object);for(;d.obj===void 0&&c.length;)s=`${c[c.length-1]}.${s}`,c=c.slice(0,c.length-1),d=Gs(e,c,Object),d?.obj&&typeof d.obj[`${d.k}.${s}`]<"u"&&(d.obj=void 0);d.obj[`${d.k}.${s}`]=a},bA=(e,t,a,o)=>{const{obj:n,k:s}=Gs(e,t,Object);n[s]=n[s]||[],n[s].push(a)},Au=(e,t)=>{const{obj:a,k:o}=Gs(e,t);if(a&&Object.prototype.hasOwnProperty.call(a,o))return a[o]},_A=(e,t,a)=>{const o=Au(e,a);return o!==void 0?o:Au(t,a)},d4=(e,t,a)=>{for(const o in t)o!=="__proto__"&&o!=="constructor"&&(o in e?ke(e[o])||e[o]instanceof String||ke(t[o])||t[o]instanceof String?a&&(e[o]=t[o]):d4(e[o],t[o],a):e[o]=t[o]);return e},Wr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),xA={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},SA=e=>ke(e)?e.replace(/[&<>"'\/]/g,t=>xA[t]):e;class wA{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const a=this.regExpMap.get(t);if(a!==void 0)return a;const o=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,o),this.regExpQueue.push(t),o}}const kA=[" ",",","?","!",";"],$A=new wA(20),AA=(e,t,a)=>{t=t||"",a=a||"";const o=kA.filter(c=>!t.includes(c)&&!a.includes(c));if(o.length===0)return!0;const n=$A.getRegExp(`(${o.map(c=>c==="?"?"\\?":c).join("|")})`);let s=!n.test(e);if(!s){const c=e.indexOf(a);c>0&&!n.test(e.substring(0,c))&&(s=!0)}return s},U1=(e,t,a=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const o=t.split(a);let n=e;for(let s=0;s<o.length;){if(!n||typeof n!="object")return;let c,d="";for(let m=s;m<o.length;++m)if(m!==s&&(d+=a),d+=o[m],c=n[d],c!==void 0){if(["string","number","boolean"].includes(typeof c)&&m<o.length-1)continue;s+=m-s+1;break}n=c}return n},ol=e=>e?.replace(/_/g,"-"),EA={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class Eu{constructor(t,a={}){this.init(t,a)}init(t,a={}){this.prefix=a.prefix||"i18next:",this.logger=t||EA,this.options=a,this.debug=a.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,a,o,n){return n&&!this.debug?null:(t=t.map(s=>ke(s)?s.replace(/[\r\n\x00-\x1F\x7F]/g," "):s),ke(t[0])&&(t[0]=`${o}${this.prefix} ${t[0]}`),this.logger[a](t))}create(t){return new Eu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Eu(this.logger,t)}}var jr=new Eu;class Hu{constructor(){this.observers={}}on(t,a){return t.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const n=this.observers[o].get(a)||0;this.observers[o].set(a,n+1)}),this}off(t,a){if(this.observers[t]){if(!a){delete this.observers[t];return}this.observers[t].delete(a)}}once(t,a){const o=(...n)=>{a(...n),this.off(t,o)};return this.on(t,o),this}emit(t,...a){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([n,s])=>{for(let c=0;c<s;c++)n(...a)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,s])=>{for(let c=0;c<s;c++)n(t,...a)})}}class _6 extends Hu{constructor(t,a={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.includes(t)||this.options.ns.push(t)}removeNamespaces(t){const a=this.options.ns.indexOf(t);a>-1&&this.options.ns.splice(a,1)}getResource(t,a,o,n={}){const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,c=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let d;t.includes(".")?d=t.split("."):(d=[t,a],o&&(Array.isArray(o)?d.push(...o):ke(o)&&s?d.push(...o.split(s)):d.push(o)));const m=Au(this.data,d);return!m&&!a&&!o&&t.includes(".")&&(t=d[0],a=d[1],o=d.slice(2).join(".")),m||!c||!ke(o)?m:U1(this.data?.[t]?.[a],o,s)}addResource(t,a,o,n,s={silent:!1}){const c=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let d=[t,a];o&&(d=d.concat(c?o.split(c):o)),t.includes(".")&&(d=t.split("."),n=a,a=d[1]),this.addNamespaces(a),b6(this.data,d,n),s.silent||this.emit("added",t,a,o,n)}addResources(t,a,o,n={silent:!1}){for(const s in o)(ke(o[s])||Array.isArray(o[s]))&&this.addResource(t,a,s,o[s],{silent:!0});n.silent||this.emit("added",t,a,o)}addResourceBundle(t,a,o,n,s,c={silent:!1,skipCopy:!1}){let d=[t,a];t.includes(".")&&(d=t.split("."),n=o,o=a,a=d[1]),this.addNamespaces(a);let m=Au(this.data,d)||{};c.skipCopy||(o=JSON.parse(JSON.stringify(o))),n?d4(m,o,s):m={...m,...o},b6(this.data,d,m),c.silent||this.emit("added",t,a,o)}removeResourceBundle(t,a){this.hasResourceBundle(t,a)&&delete this.data[t][a],this.removeNamespaces(a),this.emit("removed",t,a)}hasResourceBundle(t,a){return this.getResource(t,a)!==void 0}getResourceBundle(t,a){return a||(a=this.options.defaultNS),this.getResource(t,a)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const a=this.getDataByLanguage(t);return!!(a&&Object.keys(a)||[]).find(n=>a[n]&&Object.keys(a[n]).length>0)}toJSON(){return this.data}}var f4={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,a,o,n){return e.forEach(s=>{t=this.processors[s]?.process(t,a,o,n)??t}),t}};const m4=Symbol("i18next/PATH_KEY");function TA(){const e=[],t=Object.create(null);let a;return t.get=(o,n)=>(a?.revoke?.(),n===m4?e:(e.push(n),a=Proxy.revocable(o,t),a.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Eo(e,t){const{[m4]:a}=e(TA()),o=t?.keySeparator??".",n=t?.nsSeparator??":";if(a.length>1&&n){const s=t?.ns,c=Array.isArray(s)?s:null;if(c&&c.length>1&&c.slice(1).includes(a[0]))return`${a[0]}${n}${a.slice(1).join(o)}`}return a.join(o)}const g1=e=>!ke(e)&&typeof e!="boolean"&&typeof e!="number";class Tu extends Hu{constructor(t,a={}){super(),vA(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=jr.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,a={interpolation:{}}){const o={...a};if(t==null)return!1;const n=this.resolve(t,o);if(n?.res===void 0)return!1;const s=g1(n.res);return!(o.returnObjects===!1&&s)}extractFromKey(t,a){let o=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const n=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let s=a.ns||this.options.defaultNS||[];const c=o&&t.includes(o),d=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!AA(t,o,n);if(c&&!d){const m=t.match(this.interpolator.nestingRegexp);if(m&&m.length>0)return{key:t,namespaces:ke(s)?[s]:s};const p=t.split(o);(o!==n||o===n&&this.options.ns.includes(p[0]))&&(s=p.shift()),t=p.join(n)}return{key:t,namespaces:ke(s)?[s]:s}}translate(t,a,o){let n=typeof a=="object"?{...a}:a;if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";typeof t=="function"&&(t=Eo(t,{...this.options,...n})),Array.isArray(t)||(t=[String(t)]),t=t.map(ce=>typeof ce=="function"?Eo(ce,{...this.options,...n}):String(ce));const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,c=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:d,namespaces:m}=this.extractFromKey(t[t.length-1],n),p=m[m.length-1];let y=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;y===void 0&&(y=":");const b=n.lng||this.language,x=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(b?.toLowerCase()==="cimode")return x?s?{res:`${p}${y}${d}`,usedKey:d,exactUsedKey:d,usedLng:b,usedNS:p,usedParams:this.getUsedParamsDetails(n)}:`${p}${y}${d}`:s?{res:d,usedKey:d,exactUsedKey:d,usedLng:b,usedNS:p,usedParams:this.getUsedParamsDetails(n)}:d;const _=this.resolve(t,n);let w=_?.res;const $=_?.usedKey||d,A=_?.exactUsedKey||d,E=["[object Number]","[object Function]","[object RegExp]"],T=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,N=!this.i18nFormat||this.i18nFormat.handleAsObject,M=n.count!==void 0&&!ke(n.count),U=Tu.hasDefaultValue(n),K=M?this.pluralResolver.getSuffix(b,n.count,n):"",L=n.ordinal&&M?this.pluralResolver.getSuffix(b,n.count,{ordinal:!1}):"",B=M&&!n.ordinal&&n.count===0,H=B&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${K}`]||n[`defaultValue${L}`]||n.defaultValue;let ne=w;N&&!w&&U&&(ne=H);const ie=g1(ne),W=Object.prototype.toString.apply(ne);if(N&&ne&&ie&&!E.includes(W)&&!(ke(T)&&Array.isArray(ne))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ce=this.options.returnedObjectHandler?this.options.returnedObjectHandler($,ne,{...n,ns:m}):`key '${d} (${this.language})' returned an object instead of string.`;return s?(_.res=ce,_.usedParams=this.getUsedParamsDetails(n),_):ce}if(c){const ce=Array.isArray(ne),pe=ce?[]:{},Ae=ce?A:$;for(const q in ne)if(Object.prototype.hasOwnProperty.call(ne,q)){const ee=`${Ae}${c}${q}`;U&&!w?pe[q]=this.translate(ee,{...n,defaultValue:g1(H)?H[q]:void 0,joinArrays:!1,ns:m}):pe[q]=this.translate(ee,{...n,joinArrays:!1,ns:m}),pe[q]===ee&&(pe[q]=ne[q])}w=pe}}else if(N&&ke(T)&&Array.isArray(w))w=w.join(T),w&&(w=this.extendTranslation(w,t,n,o));else{let ce=!1,pe=!1;!this.isValidLookup(w)&&U&&(ce=!0,w=H),this.isValidLookup(w)||(pe=!0,w=d);const q=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&pe?void 0:w,ee=U&&H!==w&&this.options.updateMissing;if(pe||ce||ee){if(this.logger.log(ee?"updateKey":"missingKey",b,p,M&&!ee?`${d}${this.pluralResolver.getSuffix(b,n.count,n)}`:d,ee?H:w),c){const z=this.resolve(d,{...n,keySeparator:!1});z&&z.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 he=[];const we=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&we&&we[0])for(let z=0;z<we.length;z++)he.push(we[z]);else this.options.saveMissingTo==="all"?he=this.languageUtils.toResolveHierarchy(n.lng||this.language):he.push(n.lng||this.language);const De=(z,G,ae)=>{const de=U&&ae!==w?ae:q;this.options.missingKeyHandler?this.options.missingKeyHandler(z,p,G,de,ee,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(z,p,G,de,ee,n),this.emit("missingKey",z,p,G,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&M?he.forEach(z=>{const G=this.pluralResolver.getSuffixes(z,n);B&&n[`defaultValue${this.options.pluralSeparator}zero`]&&!G.includes(`${this.options.pluralSeparator}zero`)&&G.push(`${this.options.pluralSeparator}zero`),G.forEach(ae=>{De([z],d+ae,n[`defaultValue${ae}`]||H)})}):De(he,d,H))}w=this.extendTranslation(w,t,n,_,o),pe&&w===d&&this.options.appendNamespaceToMissingKey&&(w=`${p}${y}${d}`),(pe||ce)&&this.options.parseMissingKeyHandler&&(w=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${y}${d}`:d,ce?w:void 0,n))}return s?(_.res=w,_.usedParams=this.getUsedParamsDetails(n),_):w}extendTranslation(t,a,o,n,s){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const m=ke(t)&&(o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(m){const b=t.match(this.interpolator.nestingRegexp);p=b&&b.length}let y=o.replace&&!ke(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(y={...this.options.interpolation.defaultVariables,...y}),t=this.interpolator.interpolate(t,y,o.lng||this.language||n.usedLng,o),m){const b=t.match(this.interpolator.nestingRegexp),x=b&&b.length;p<x&&(o.nest=!1)}!o.lng&&n&&n.res&&(o.lng=this.language||n.usedLng),o.nest!==!1&&(t=this.interpolator.nest(t,(...b)=>s?.[0]===b[0]&&!o.context?(this.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${a[0]}`),null):this.translate(...b,a),o)),o.interpolation&&this.interpolator.reset()}const c=o.postProcess||this.options.postProcess,d=ke(c)?[c]:c;return t!=null&&d?.length&&o.applyPostProcessor!==!1&&(t=f4.handle(d,t,a,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),t}resolve(t,a={}){let o,n,s,c,d;return ke(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(m=>typeof m=="function"?Eo(m,{...this.options,...a}):m)),t.forEach(m=>{if(this.isValidLookup(o))return;const p=this.extractFromKey(m,a),y=p.key;n=y;let b=p.namespaces;this.options.fallbackNS&&(b=b.concat(this.options.fallbackNS));const x=a.count!==void 0&&!ke(a.count),_=x&&!a.ordinal&&a.count===0,w=a.context!==void 0&&(ke(a.context)||typeof a.context=="number")&&a.context!=="",$=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);b.forEach(A=>{this.isValidLookup(o)||(d=A,!this.checkedLoadedFor[`${$[0]}-${A}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(d)&&(this.checkedLoadedFor[`${$[0]}-${A}`]=!0,this.logger.warn(`key "${n}" for languages "${$.join(", ")}" won't get resolved as namespace "${d}" 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!!!")),$.forEach(E=>{if(this.isValidLookup(o))return;c=E;const T=[y];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(T,y,E,A,a);else{let M;x&&(M=this.pluralResolver.getSuffix(E,a.count,a));const U=`${this.options.pluralSeparator}zero`,K=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(x&&(a.ordinal&&M.startsWith(K)&&T.push(y+M.replace(K,this.options.pluralSeparator)),T.push(y+M),_&&T.push(y+U)),w){const L=`${y}${this.options.contextSeparator||"_"}${a.context}`;T.push(L),x&&(a.ordinal&&M.startsWith(K)&&T.push(L+M.replace(K,this.options.pluralSeparator)),T.push(L+M),_&&T.push(L+U))}}let N;for(;N=T.pop();)this.isValidLookup(o)||(s=N,o=this.getResource(E,A,N,a))}))})}),{res:o,usedKey:n,exactUsedKey:s,usedLng:c,usedNS:d}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,a,o,n={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,a,o,n):this.resourceStore.getResource(t,a,o,n)}getUsedParamsDetails(t={}){const a=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=t.replace&&!ke(t.replace);let n=o?t.replace:t;if(o&&typeof t.count<"u"&&(n.count=t.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!o){n={...n};for(const s of a)delete n[s]}return n}static hasDefaultValue(t){const a="defaultValue";for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&o.startsWith(a)&&t[o]!==void 0)return!0;return!1}}class x6{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=jr.create("languageUtils")}getScriptPartFromCode(t){if(t=ol(t),!t||!t.includes("-"))return null;const a=t.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}getLanguagePartFromCode(t){if(t=ol(t),!t||!t.includes("-"))return t;const a=t.split("-");return this.formatLanguageCode(a[0])}formatLanguageCode(t){if(ke(t)&&t.includes("-")){let a;try{a=Intl.getCanonicalLocales(t)[0]}catch{}return a&&this.options.lowerCaseLng&&(a=a.toLowerCase()),a||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(t)}getBestMatchFromCodes(t){if(!t)return null;let a;return t.forEach(o=>{if(a)return;const n=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(n))&&(a=n)}),!a&&this.options.supportedLngs&&t.forEach(o=>{if(a)return;const n=this.getScriptPartFromCode(o);if(this.isSupportedCode(n))return a=n;const s=this.getLanguagePartFromCode(o);if(this.isSupportedCode(s))return a=s;a=this.options.supportedLngs.find(c=>c===s?!0:!c.includes("-")&&!s.includes("-")?!1:!!(c.includes("-")&&!s.includes("-")&&c.slice(0,c.indexOf("-"))===s||c.startsWith(s)&&s.length>1))}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}getFallbackCodes(t,a){if(!t)return[];if(typeof t=="function"&&(t=t(a)),ke(t)&&(t=[t]),Array.isArray(t))return t;if(!a)return t.default||[];let o=t[a];return o||(o=t[this.getScriptPartFromCode(a)]),o||(o=t[this.formatLanguageCode(a)]),o||(o=t[this.getLanguagePartFromCode(a)]),o||(o=t.default),o||[]}toResolveHierarchy(t,a){const o=this.getFallbackCodes((a===!1?[]:a)||this.options.fallbackLng||[],t),n=[],s=c=>{c&&(this.isSupportedCode(c)?n.push(c):this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`))};return ke(t)&&(t.includes("-")||t.includes("_"))?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):ke(t)&&s(this.formatLanguageCode(t)),o.forEach(c=>{n.includes(c)||s(this.formatLanguageCode(c))}),n}}const S6={zero:0,one:1,two:2,few:3,many:4,other:5},w6={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class jA{constructor(t,a={}){this.languageUtils=t,this.options=a,this.logger=jr.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,a={}){const o=ol(t==="dev"?"en":t),n=a.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:o,type:n});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let c;try{c=new Intl.PluralRules(o,{type:n})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),w6;if(!t.match(/-|_/))return w6;const m=this.languageUtils.getLanguagePartFromCode(t);c=this.getRule(m,a)}return this.pluralRulesCache[s]=c,c}needsPlural(t,a={}){let o=this.getRule(t,a);return o||(o=this.getRule("dev",a)),o?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,a,o={}){return this.getSuffixes(t,o).map(n=>`${a}${n}`)}getSuffixes(t,a={}){let o=this.getRule(t,a);return o||(o=this.getRule("dev",a)),o?o.resolvedOptions().pluralCategories.sort((n,s)=>S6[n]-S6[s]).map(n=>`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${n}`):[]}getSuffix(t,a,o={}){const n=this.getRule(t,o);return n?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${n.select(a)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",a,o))}}const k6=(e,t,a,o=".",n=!0)=>{let s=_A(e,t,a);return!s&&n&&ke(a)&&(s=U1(e,a,o),s===void 0&&(s=U1(t,a,o))),s},v1=e=>e.replace(/\$/g,"$$$$");class $6{constructor(t={}){this.logger=jr.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(a=>a),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:a,escapeValue:o,useRawValueToEscape:n,prefix:s,prefixEscaped:c,suffix:d,suffixEscaped:m,formatSeparator:p,unescapeSuffix:y,unescapePrefix:b,nestingPrefix:x,nestingPrefixEscaped:_,nestingSuffix:w,nestingSuffixEscaped:$,nestingOptionsSeparator:A,maxReplaces:E,alwaysFormat:T}=t.interpolation;this.escape=a!==void 0?a:SA,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=s?Wr(s):c||"{{",this.suffix=d?Wr(d):m||"}}",this.formatSeparator=p||",",this.unescapePrefix=y?"":b?Wr(b):"-",this.unescapeSuffix=this.unescapePrefix?"":y?Wr(y):"",this.nestingPrefix=x?Wr(x):_||Wr("$t("),this.nestingSuffix=w?Wr(w):$||Wr(")"),this.nestingOptionsSeparator=A||",",this.maxReplaces=E||1e3,this.alwaysFormat=T!==void 0?T:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(a,o)=>a?.source===o?(a.lastIndex=0,a):new RegExp(o,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,a,o,n){let s,c,d;const m=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=_=>{if(!_.includes(this.formatSeparator)){const E=k6(a,m,_,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(E,void 0,o,{...n,...a,interpolationkey:_}):E}const w=_.split(this.formatSeparator),$=w.shift().trim(),A=w.join(this.formatSeparator).trim();return this.format(k6(a,m,$,this.options.keySeparator,this.options.ignoreJSONStructure),A,o,{...n,...a,interpolationkey:$})};this.resetRegExp(),!this.escapeValue&&typeof t=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(t)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const y=n?.missingInterpolationHandler||this.options.missingInterpolationHandler,b=n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:_=>v1(_)},{regex:this.regexp,safeValue:_=>this.escapeValue?v1(this.escape(_)):v1(_)}].forEach(_=>{for(d=0;s=_.regex.exec(t);){const w=s[1].trim();if(c=p(w),c===void 0)if(typeof y=="function"){const A=y(t,s,n);c=ke(A)?A:""}else if(n&&Object.prototype.hasOwnProperty.call(n,w))c="";else if(b){c=s[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${t}`),c="";else!ke(c)&&!this.useRawValueToEscape&&(c=g6(c));const $=_.safeValue(c);if(t=t.replace(s[0],$),b?(_.regex.lastIndex+=c.length,_.regex.lastIndex-=s[0].length):_.regex.lastIndex=0,d++,d>=this.maxReplaces)break}}),t}nest(t,a,o={}){let n,s,c;const d=(m,p)=>{const y=this.nestingOptionsSeparator;if(!m.includes(y))return m;const b=m.split(new RegExp(`${Wr(y)}[ ]*{`));let x=`{${b[1]}`;m=b[0],x=this.interpolate(x,c);const _=x.match(/'/g),w=x.match(/"/g);((_?.length??0)%2===0&&!w||(w?.length??0)%2!==0)&&(x=x.replace(/'/g,'"'));try{c=JSON.parse(x),p&&(c={...p,...c})}catch($){return this.logger.warn(`failed parsing options string in nesting for key ${m}`,$),`${m}${y}${x}`}return c.defaultValue&&c.defaultValue.includes(this.prefix)&&delete c.defaultValue,m};for(;n=this.nestingRegexp.exec(t);){let m=[];c={...o},c=c.replace&&!ke(c.replace)?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;const p=/{.*}/.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(p!==-1&&(m=n[1].slice(p).split(this.formatSeparator).map(y=>y.trim()).filter(Boolean),n[1]=n[1].slice(0,p)),s=a(d.call(this,n[1].trim(),c),c),s&&n[0]===t&&!ke(s))return s;ke(s)||(s=g6(s)),s||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${t}`),s=""),m.length&&(s=m.reduce((y,b)=>this.format(y,b,o.lng,{...o,interpolationkey:n[1].trim()}),s.trim())),t=t.replace(n[0],s),this.regexp.lastIndex=0}return t}}const MA=e=>{let t=e.toLowerCase().trim();const a={};if(e.includes("(")){const o=e.split("(");t=o[0].toLowerCase().trim();const n=o[1].slice(0,-1);t==="currency"&&!n.includes(":")?a.currency||(a.currency=n.trim()):t==="relativetime"&&!n.includes(":")?a.range||(a.range=n.trim()):n.split(";").forEach(c=>{if(c){const[d,...m]=c.split(":"),p=m.join(":").trim().replace(/^'+|'+$/g,""),y=d.trim();a[y]||(a[y]=p),p==="false"&&(a[y]=!1),p==="true"&&(a[y]=!0),isNaN(p)||(a[y]=parseInt(p,10))}})}return{formatName:t,formatOptions:a}},A6=e=>{const t={};return(a,o,n)=>{let s=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(s={...s,[n.interpolationkey]:void 0});const c=o+JSON.stringify(s);let d=t[c];return d||(d=e(ol(o),n),t[c]=d),d(a)}},OA=e=>(t,a,o)=>e(ol(a),o)(t);class NA{constructor(t={}){this.logger=jr.create("formatter"),this.options=t,this.init(t)}init(t,a={interpolation:{}}){this.formatSeparator=a.interpolation.formatSeparator||",";const o=a.cacheInBuiltFormats?A6:OA;this.formats={number:o((n,s)=>{const c=new Intl.NumberFormat(n,{...s});return d=>c.format(d)}),currency:o((n,s)=>{const c=new Intl.NumberFormat(n,{...s,style:"currency"});return d=>c.format(d)}),datetime:o((n,s)=>{const c=new Intl.DateTimeFormat(n,{...s});return d=>c.format(d)}),relativetime:o((n,s)=>{const c=new Intl.RelativeTimeFormat(n,{...s});return d=>c.format(d,s.range||"day")}),list:o((n,s)=>{const c=new Intl.ListFormat(n,{...s});return d=>c.format(d)})}}add(t,a){this.formats[t.toLowerCase().trim()]=a}addCached(t,a){this.formats[t.toLowerCase().trim()]=A6(a)}format(t,a,o,n={}){if(!a||t==null)return t;const s=a.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&!s[0].includes(")")&&s.find(d=>d.includes(")"))){const d=s.findIndex(m=>m.includes(")"));s[0]=[s[0],...s.splice(1,d)].join(this.formatSeparator)}return s.reduce((d,m)=>{const{formatName:p,formatOptions:y}=MA(m);if(this.formats[p]){let b=d;try{const x=n?.formatParams?.[n.interpolationkey]||{},_=x.locale||x.lng||n.locale||n.lng||o;b=this.formats[p](d,_,{...y,...n,...x})}catch(x){this.logger.warn(x)}return b}else this.logger.warn(`there was no format function for ${p}`);return d},t)}}const zA=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class RA extends Hu{constructor(t,a,o,n={}){super(),this.backend=t,this.store=a,this.services=o,this.languageUtils=o.languageUtils,this.options=n,this.logger=jr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(o,n.backend,n)}queueLoad(t,a,o,n){const s={},c={},d={},m={};return t.forEach(p=>{let y=!0;a.forEach(b=>{const x=`${p}|${b}`;!o.reload&&this.store.hasResourceBundle(p,b)?this.state[x]=2:this.state[x]<0||(this.state[x]===1?c[x]===void 0&&(c[x]=!0):(this.state[x]=1,y=!1,c[x]===void 0&&(c[x]=!0),s[x]===void 0&&(s[x]=!0),m[b]===void 0&&(m[b]=!0)))}),y||(d[p]=!0)}),(Object.keys(s).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(s),pending:Object.keys(c),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(m)}}loaded(t,a,o){const n=t.split("|"),s=n[0],c=n[1];a&&this.emit("failedLoading",s,c,a),!a&&o&&this.store.addResourceBundle(s,c,o,void 0,void 0,{skipCopy:!0}),this.state[t]=a?-1:2,a&&o&&(this.state[t]=0);const d={};this.queue.forEach(m=>{bA(m.loaded,[s],c),zA(m,t),a&&m.errors.push(a),m.pendingCount===0&&!m.done&&(Object.keys(m.loaded).forEach(p=>{d[p]||(d[p]={});const y=m.loaded[p];y.length&&y.forEach(b=>{d[p][b]===void 0&&(d[p][b]=!0)})}),m.done=!0,m.errors.length?m.callback(m.errors):m.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(m=>!m.done)}read(t,a,o,n=0,s=this.retryTimeout,c){if(!t.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:a,fcName:o,tried:n,wait:s,callback:c});return}this.readingCalls++;const d=(p,y)=>{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(p&&y&&n<this.maxRetries){setTimeout(()=>{this.read(t,a,o,n+1,s*2,c)},s);return}c(p,y)},m=this.backend[o].bind(this.backend);if(m.length===2){try{const p=m(t,a);p&&typeof p.then=="function"?p.then(y=>d(null,y)).catch(d):d(null,p)}catch(p){d(p)}return}return m(t,a,d)}prepareLoading(t,a,o={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();ke(t)&&(t=this.languageUtils.toResolveHierarchy(t)),ke(a)&&(a=[a]);const s=this.queueLoad(t,a,o,n);if(!s.toLoad.length)return s.pending.length||n(),null;s.toLoad.forEach(c=>{this.loadOne(c)})}load(t,a,o){this.prepareLoading(t,a,{},o)}reload(t,a,o){this.prepareLoading(t,a,{reload:!0},o)}loadOne(t,a=""){const o=t.split("|"),n=o[0],s=o[1];this.read(n,s,"read",void 0,void 0,(c,d)=>{c&&this.logger.warn(`${a}loading namespace ${s} for language ${n} failed`,c),!c&&d&&this.logger.log(`${a}loaded namespace ${s} for language ${n}`,d),this.loaded(t,c,d)})}saveMissing(t,a,o,n,s,c={},d=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(a)){this.logger.warn(`did not save key "${o}" as the namespace "${a}" 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(!(o==null||o==="")){if(this.backend?.create){const m={...c,isUpdate:s},p=this.backend.create.bind(this.backend);if(p.length<6)try{let y;p.length===5?y=p(t,a,o,n,m):y=p(t,a,o,n),y&&typeof y.then=="function"?y.then(b=>d(null,b)).catch(d):d(null,y)}catch(y){d(y)}else p(t,a,o,n,d,m)}!t||!t[0]||this.store.addResource(t[0],a,o,n)}}}const y1=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,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:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),ke(e[1])&&(t.defaultValue=e[1]),ke(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const a=e[3]||e[2];Object.keys(a).forEach(o=>{t[o]=a[o]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),E6=e=>(ke(e.ns)&&(e.ns=[e.ns]),ke(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ke(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),uu=()=>{},CA=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(a=>{typeof e[a]=="function"&&(e[a]=e[a].bind(e))})};class Js extends Hu{constructor(t={},a){if(super(),this.options=E6(t),this.services={},this.logger=jr,this.modules={external:[]},CA(this),a&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,a),this;setTimeout(()=>{this.init(t,a)},0)}}init(t={},a){this.isInitializing=!0,typeof t=="function"&&(a=t,t={}),t.defaultNS==null&&t.ns&&(ke(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));const o=y1();this.options={...o,...this.options,...E6(t)},this.options.interpolation={...o.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=o.overloadTranslationOptionHandler);const n=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?jr.init(n(this.modules.logger),this.options):jr.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=NA;const y=new x6(this.options);this.store=new _6(this.options.resources,this.options);const b=this.services;b.logger=jr,b.resourceStore=this.store,b.languageUtils=y,b.pluralResolver=new jA(y,{prepend:this.options.pluralSeparator}),p&&(b.formatter=n(p),b.formatter.init&&b.formatter.init(b,this.options),this.options.interpolation.format=b.formatter.format.bind(b.formatter)),b.interpolator=new $6(this.options),b.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},b.backendConnector=new RA(n(this.modules.backend),b.resourceStore,b,this.options),b.backendConnector.on("*",(x,..._)=>{this.emit(x,..._)}),this.modules.languageDetector&&(b.languageDetector=n(this.modules.languageDetector),b.languageDetector.init&&b.languageDetector.init(b,this.options.detection,this.options)),this.modules.i18nFormat&&(b.i18nFormat=n(this.modules.i18nFormat),b.i18nFormat.init&&b.i18nFormat.init(this)),this.translator=new Tu(this.services,this.options),this.translator.on("*",(x,..._)=>{this.emit(x,..._)}),this.modules.external.forEach(x=>{x.init&&x.init(this)})}if(this.format=this.options.interpolation.format,a||(a=uu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[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(p=>{this[p]=(...y)=>this.store[p](...y)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...y)=>(this.store[p](...y),this)});const d=Hs(),m=()=>{const p=(y,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),d.resolve(b),a(y,b)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initAsync?m():setTimeout(m,0),d}loadResources(t,a=uu){let o=a;const n=ke(t)?t:this.language;if(typeof t=="function"&&(o=t),!this.options.resources||this.options.partialBundledLanguages){if(n?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const s=[],c=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(p=>{p!=="cimode"&&(s.includes(p)||s.push(p))})};n?c(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(m=>c(m)),this.options.preload?.forEach?.(d=>c(d)),this.services.backendConnector.load(s,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(d)})}else o(null)}reloadResources(t,a,o){const n=Hs();return typeof t=="function"&&(o=t,t=void 0),typeof a=="function"&&(o=a,a=void 0),t||(t=this.languages),a||(a=this.options.ns),o||(o=uu),this.services.backendConnector.reload(t,a,s=>{n.resolve(),o(s)}),n}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&f4.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!["cimode","dev"].includes(t)){for(let a=0;a<this.languages.length;a++){const o=this.languages[a];if(!["cimode","dev"].includes(o)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}!this.resolvedLanguage&&!this.languages.includes(t)&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,a){this.isLanguageChangingTo=t;const o=Hs();this.emit("languageChanging",t);const n=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},s=(d,m)=>{m?this.isLanguageChangingTo===t&&(n(m),this.translator.changeLanguage(m),this.isLanguageChangingTo=void 0,this.emit("languageChanged",m),this.logger.log("languageChanged",m)):this.isLanguageChangingTo=void 0,o.resolve((...p)=>this.t(...p)),a&&a(d,(...p)=>this.t(...p))},c=d=>{!t&&!d&&this.services.languageDetector&&(d=[]);const m=ke(d)?d:d&&d[0],p=this.store.hasLanguageSomeTranslations(m)?m:this.services.languageUtils.getBestMatchFromCodes(ke(d)?[d]:d);p&&(this.language||n(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector?.cacheUserLanguage?.(p)),this.loadResources(p,y=>{s(y,p)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),o}getFixedT(t,a,o,n){const s=n?.scopeNs,c=(d,m,...p)=>{let y;typeof m!="object"?y=this.options.overloadTranslationOptionHandler([d,m].concat(p)):y={...m},y.lng=y.lng||c.lng,y.lngs=y.lngs||c.lngs;const b=y.ns!==void 0&&y.ns!==null;y.ns=y.ns||c.ns,y.keyPrefix!==""&&(y.keyPrefix=y.keyPrefix||o||c.keyPrefix);const x={...this.options,...y};Array.isArray(s)&&!b&&(x.ns=s),typeof y.keyPrefix=="function"&&(y.keyPrefix=Eo(y.keyPrefix,x));const _=this.options.keySeparator||".";let w;return y.keyPrefix&&Array.isArray(d)?w=d.map($=>(typeof $=="function"&&($=Eo($,x)),`${y.keyPrefix}${_}${$}`)):(typeof d=="function"&&(d=Eo(d,x)),w=y.keyPrefix?`${y.keyPrefix}${_}${d}`:d),this.t(w,y)};return ke(t)?c.lng=t:c.lngs=t,c.ns=a,c.keyPrefix=o,c}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,a={}){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 o=a.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const c=(d,m)=>{const p=this.services.backendConnector.state[`${d}|${m}`];return p===-1||p===0||p===2};if(a.precheck){const d=a.precheck(this,c);if(d!==void 0)return d}return!!(this.hasResourceBundle(o,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(o,t)&&(!n||c(s,t)))}loadNamespaces(t,a){const o=Hs();return this.options.ns?(ke(t)&&(t=[t]),t.forEach(n=>{this.options.ns.includes(n)||this.options.ns.push(n)}),this.loadResources(n=>{o.resolve(),a&&a(n)}),o):(a&&a(),Promise.resolve())}loadLanguages(t,a){const o=Hs();ke(t)&&(t=[t]);const n=this.options.preload||[],s=t.filter(c=>!n.includes(c)&&this.services.languageUtils.isSupportedCode(c));return s.length?(this.options.preload=n.concat(s),this.loadResources(c=>{o.resolve(),a&&a(c)}),o):(a&&a(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const n=new Intl.Locale(t);if(n&&n.getTextInfo){const s=n.getTextInfo();if(s&&s.direction)return s.direction}}catch{}const a=["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"],o=this.services?.languageUtils||new x6(y1());return t.toLowerCase().indexOf("-latn")>1?"ltr":a.includes(o.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},a){const o=new Js(t,a);return o.createInstance=Js.createInstance,o}cloneInstance(t={},a=uu){const o=t.forkResourceStore;o&&delete t.forkResourceStore;const n={...this.options,...t,isClone:!0},s=new Js(n);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(d=>{s[d]=this[d]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},o){const d=Object.keys(this.store.data).reduce((m,p)=>(m[p]={...this.store.data[p]},m[p]=Object.keys(m[p]).reduce((y,b)=>(y[b]={...m[p][b]},y),m[p]),m),{});s.store=new _6(d,n),s.services.resourceStore=s.store}if(t.interpolation){const m={...y1().interpolation,...this.options.interpolation,...t.interpolation},p={...n,interpolation:m};s.services.interpolator=new $6(p)}return s.translator=new Tu(s.services,n),s.translator.on("*",(d,...m)=>{s.emit(d,...m)}),s.init(n,a),s.translator.options=n,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Zt=Js.createInstance();Zt.createInstance;Zt.dir;Zt.init;Zt.loadResources;Zt.reloadResources;Zt.use;Zt.changeLanguage;Zt.getFixedT;Zt.t;Zt.exists;Zt.setDefaultNamespace;Zt.hasLoadedNamespace;Zt.loadNamespaces;Zt.loadLanguages;const DA=(e,t,a,o)=>{const n=[a,{code:t,...o||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(n,"warn","react-i18next::",!0);ki(n[0])&&(n[0]=`react-i18next:: ${n[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...n):console?.warn&&console.warn(...n)},T6={},Z1=(e,t,a,o)=>{ki(a)&&T6[a]||(ki(a)&&(T6[a]=new Date),DA(e,t,a,o))},p4=(e,t)=>()=>{if(e.isInitialized)t();else{const a=()=>{setTimeout(()=>{e.off("initialized",a)},0),t()};e.on("initialized",a)}},V1=(e,t,a)=>{e.loadNamespaces(t,p4(e,a))},j6=(e,t,a,o)=>{if(ki(a)&&(a=[a]),e.options.preload&&e.options.preload.indexOf(t)>-1)return V1(e,a,o);a.forEach(n=>{e.options.ns.indexOf(n)<0&&e.options.ns.push(n)}),e.loadLanguages(t,p4(e,o))},PA=(e,t,a={})=>!t.languages||!t.languages.length?(Z1(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:a.lng,precheck:(o,n)=>{if(a.bindI18n&&a.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!n(o.isLanguageChangingTo,e))return!1}}),ki=e=>typeof e=="string",LA=e=>typeof e=="object"&&e!==null,IA=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,UA={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},ZA=e=>UA[e],VA=e=>e.replace(IA,ZA);let H1={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:VA,transDefaultProps:void 0};const HA=(e={})=>{H1={...H1,...e}},FA=()=>H1;let h4;const qA=e=>{h4=e},BA=()=>h4,KA={type:"3rdParty",init(e){HA(e.options.react),qA(e)}},QA=g.createContext();class GA{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(a=>{this.usedNamespaces[a]||(this.usedNamespaces[a]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var JA=n4();const XA=(e,t)=>{if(ki(t))return t;if(LA(t)&&ki(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){const a=e[e.length-1];return typeof a=="function"?"":a}return e},YA={t:XA,ready:!1},WA=()=>()=>{},Ne=(e,t={})=>{const{i18n:a}=t,{i18n:o,defaultNS:n}=g.useContext(QA)||{},s=a||o||BA();s&&!s.reportNamespaces&&(s.reportNamespaces=new GA),s||Z1(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const c=g.useMemo(()=>({...FA(),...s?.options?.react,...t}),[s,t]),{useSuspense:d,keyPrefix:m}=c,p=n||s?.options?.defaultNS,y=ki(p)?[p]:p||["translation"],b=g.useMemo(()=>y,y);s?.reportNamespaces?.addUsedNamespaces?.(b);const x=g.useRef(0),_=g.useCallback(H=>{if(!s)return WA;const{bindI18n:ne,bindI18nStore:ie}=c,W=()=>{x.current+=1,H()};return ne&&s.on(ne,W),ie&&s.store.on(ie,W),()=>{ne&&ne.split(" ").forEach(ce=>s.off(ce,W)),ie&&ie.split(" ").forEach(ce=>s.store.off(ce,W))}},[s,c]),w=g.useRef(),$=g.useCallback(()=>{if(!s)return YA;const H=!!(s.isInitialized||s.initializedStoreOnce)&&b.every(Ae=>PA(Ae,s,c)),ne=t.lng||s.language,ie=x.current,W=w.current;if(W&&W.ready===H&&W.lng===ne&&W.keyPrefix===m&&W.revision===ie)return W;const pe={t:s.getFixedT(ne,c.nsMode==="fallback"?b:b[0],m,{scopeNs:b}),ready:H,lng:ne,keyPrefix:m,revision:ie};return w.current=pe,pe},[s,b,m,c,t.lng]),[A,E]=g.useState(0),{t:T,ready:N}=JA.useSyncExternalStore(_,$,$);g.useEffect(()=>{if(s&&!N&&!d){const H=()=>E(ne=>ne+1);t.lng?j6(s,t.lng,b,H):V1(s,b,H)}},[s,t.lng,b,N,d,A]);const M=s||{},U=g.useRef(null),K=g.useRef(),L=H=>{const ne=Object.getOwnPropertyDescriptors(H);ne.__original&&delete ne.__original;const ie=Object.create(Object.getPrototypeOf(H),ne);if(!Object.prototype.hasOwnProperty.call(ie,"__original"))try{Object.defineProperty(ie,"__original",{value:H,writable:!1,enumerable:!1,configurable:!1})}catch{}return ie},B=g.useMemo(()=>{const H=M,ne=H?.language;let ie=H;H&&(U.current&&U.current.__original===H?K.current!==ne?(ie=L(H),U.current=ie,K.current=ne):ie=U.current:(ie=L(H),U.current=ie,K.current=ne));const W=!N&&!d?(...pe)=>(Z1(s,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),T(...pe)):T,ce=[W,ie,N];return ce.t=W,ce.i18n=ie,ce.ready=N,ce},[T,M,N,M.resolvedLanguage,M.language,M.languages]);if(s&&d&&!N)throw new Promise(H=>{const ne=()=>H();t.lng?j6(s,t.lng,b,ne):V1(s,b,ne)});return B},eE={"common.language.auto":"Auto","common.language.select":"Select language","common.theme.auto":"Auto","common.theme.dark":"Dark","common.theme.light":"Light","common.theme.select":"Select theme","login.email.placeholder":"hello@example.com","login.error.failed":"Login failed. Please check your email and password.","login.password.placeholder":"Enter your password","login.submit":"Log in","login.submitting":"Logging in...","login.title":"Welcome back!","login.link.register":"Sign up","login.link.forgotPassword":"Forgot password?","login.selectMethod.subtitle":"","login.method.password":"Email","login.method.passkey":"Passkey","login.password.backToMethods":"Other sign in options","login.footer.noAccount":"Don't have an account?","profile.email.label":"Email","profile.id.label":"User ID","profile.logout":"Log out","profile.title":"My Profile","profile.account.title":"Account Information","profile.account.description":"Your basic account details","profile.security.title":"Security","profile.security.description":"Manage your security settings","register.email.placeholder":"hello@example.com","register.error.emailExists":"Email already exists","register.error.emailNotAllowed":"This email address is not allowed for registration.","register.error.registrationDisabled":"Registration is currently disabled.","register.link.login":"Sign in","register.footer.haveAccount":"Already have an account?","register.password.placeholder":"Enter your password","register.submit":"Create account","register.submitting":"Creating account...","register.subtitle":"Create a new account to get started","register.title":"Create account","validation.email.invalid":"Invalid email format","validation.password.max":"Password must be at most {{count}} characters","validation.password.min":"Password must be at least {{count}} characters","validation.password.required":"Please enter your password","validation.token.required":"Please enter verification token","validation.confirmPassword.required":"Please confirm your password","validation.confirmPassword.mismatch":"Passwords do not match","validation.confirmText.mismatch":"The confirmation text does not match","validation.terms.required":"Please agree to the required terms","register.success.subtitle":"We sent you a verification email","register.success.description":"Please check your email at {{email}} to verify your account.","verifyEmail.title":"Email Verification","verifyEmail.subtitle":"Enter your verification token below","verifyEmail.token.placeholder":"Enter the token from your email","verifyEmail.submit":"Verify","verifyEmail.submitting":"Verifying...","verifyEmail.resend":"Resend verification email","verifyEmail.resending":"Resending...","verifyEmail.success.title":"Verification complete!","verifyEmail.success.subtitle":"Your email has been successfully verified","verifyEmail.success.description":"You can now access all features.","verifyEmail.success.goToProfile":"Go to profile","verifyEmail.error.invalidToken":"Invalid or expired token","verifyEmail.resendSuccess":"Verification email has been resent","forgotPassword.title":"Forgot Password","forgotPassword.subtitle":"Enter your email to receive a password reset link","forgotPassword.email.placeholder":"hello@example.com","forgotPassword.submit":"Send reset link","forgotPassword.submitting":"Sending...","forgotPassword.backToLogin":"Back to login","forgotPassword.footer.rememberedPassword":"Remembered your password?","forgotPassword.success.title":"Email sent!","forgotPassword.success.subtitle":"Check your inbox","forgotPassword.success.description":"If an account exists for {{email}}, you will receive a password reset link.","forgotPassword.success.checkSpam":"If you don't see the email, please check your spam folder.","forgotPassword.error.notEditable":"This account cannot be modified","resetPassword.title":"Reset Password","resetPassword.subtitle":"Enter your new password below","resetPassword.token.placeholder":"Enter the token from your email","resetPassword.password.placeholder":"Enter your new password","resetPassword.confirmPassword.placeholder":"Confirm your new password","resetPassword.submit":"Reset password","resetPassword.submitting":"Resetting...","resetPassword.backToLogin":"Back to login","resetPassword.success.title":"Password reset!","resetPassword.success.subtitle":"Your password has been successfully changed","resetPassword.success.description":"You can now log in with your new password.","resetPassword.success.goToLogin":"Go to login","resetPassword.error.invalidToken":"Invalid or expired token","resetPassword.error.notEditable":"This account cannot be modified","consent.title":"Authorization Request","consent.subtitle":"{{app}} is requesting access to your account","consent.loggedInAs":"Logged in as","consent.permissions.title":"This application will be able to:","consent.allow":"Allow","consent.deny":"Deny","consent.error.title":"Error","consent.error.message":"Unable to load authorization details. The client may be invalid.","consent.error.back":"Go back","consent.scope.openid":"Access your unique user identifier","consent.scope.profile":"Access your profile information","consent.scope.email":"Access your email address","consent.scope.address":"Access your address information","consent.scope.phone":"Access your phone number","consent.scope.offline_access":"Maintain access when you are not present","oauth.error.failed":"OAuth login failed. Please try again.","oauth.error.accessDenied":"The authorization request was denied.","oauth.error.temporarilyUnavailable":"The service is temporarily unavailable. Please try again later.","oauth.error.serverError":"An error occurred on the authentication server. Please try again later.","oauth.error.registrationEmailNotAllowed":"This email address is not allowed for registration.","profile.linkedAccounts.title":"Linked Accounts","profile.linkedAccounts.description":"Connect your account with third-party services","profile.linkedAccounts.link":"Link","profile.linkedAccounts.unlink":"Unlink","profile.linkedAccounts.unlinking":"Unlinking...","profile.linkedAccounts.unlinkError":"Cannot unlink. You need at least one way to log in.","profile.linkedAccounts.unlinkModal.title":"Unlink Account","profile.linkedAccounts.unlinkModal.description":"You are about to unlink {{provider}} from your account.","profile.linkedAccounts.unlinkModal.warning":"You will no longer be able to log in using {{provider}}. Make sure you have another way to access your account.","profile.linkedAccounts.unlinkModal.cancel":"Cancel","profile.linkedAccounts.connected":"Connected","profile.linkedAccounts.notConnected":"Not connected","error.title":"Error","error.subtitle":"Something went wrong","error.defaultMessage":"An unexpected error occurred. Please try again later.","error.codeLabel":"Error Code","error.goToLogin":"Go to login","error.goBack":"Go back","error.footer.needHelp":"Need help?","error.footer.contactSupport":"Contact support","error.sessionExpired":"Your session has expired. Please log in again.","error.retry":"Retry","profile.password.title":"Password","profile.password.status.set":"Password is set","profile.password.status.notSet":"No password set","profile.password.set":"Set Password","profile.password.change":"Change Password","profile.password.remove":"Remove Password","profile.password.setModal.title":"Set Password","profile.password.setModal.description":"Set a password to enable email and password login.","profile.password.setModal.newPassword":"New Password","profile.password.setModal.newPasswordPlaceholder":"Enter new password","profile.password.setModal.confirmPassword":"Confirm Password","profile.password.setModal.confirmPasswordPlaceholder":"Confirm new password","profile.password.setModal.submit":"Set Password","profile.password.setModal.submitting":"Setting...","profile.password.setModal.cancel":"Cancel","profile.password.setModal.error":"Failed to set password","profile.password.changeModal.title":"Change Password","profile.password.changeModal.description":"Verify your current password and set a new one.","profile.password.changeModal.currentPassword":"Current Password","profile.password.changeModal.currentPasswordPlaceholder":"Enter current password","profile.password.changeModal.newPassword":"New Password","profile.password.changeModal.newPasswordPlaceholder":"Enter new password","profile.password.changeModal.confirmPassword":"Confirm Password","profile.password.changeModal.confirmPasswordPlaceholder":"Confirm new password","profile.password.changeModal.submit":"Change Password","profile.password.changeModal.submitting":"Changing...","profile.password.changeModal.cancel":"Cancel","profile.password.changeModal.error":"Failed to change password","profile.password.changeModal.invalidCurrent":"Current password is incorrect","profile.password.removeModal.title":"Remove Password","profile.password.removeModal.description":"Removing your password will disable email and password login. You will only be able to log in with linked OAuth accounts.","profile.password.removeModal.currentPassword":"Current Password","profile.password.removeModal.currentPasswordPlaceholder":"Enter current password","profile.password.removeModal.submit":"Remove Password","profile.password.removeModal.submitting":"Removing...","profile.password.removeModal.cancel":"Cancel","profile.password.removeModal.error":"Failed to remove password","profile.password.removeModal.invalidCurrent":"Current password is incorrect","profile.password.removeModal.noOAuth":"You must have at least one OAuth account linked","profile.password.removeModal.noOAuthWith2FA":"Cannot remove password when 2FA is set up. Add an OAuth account first, or disable 2FA before removing password.","profile.password.removeDisabledReason":"Cannot remove password when 2FA is set up. Add an OAuth account first.","profile.password.configManaged":"This account is managed by configuration and the password cannot be changed","profile.totp.title":"Two-Factor Authentication","profile.totp.status.enabled":"Two-factor authentication is enabled","profile.totp.status.recoveryCodesMissing":"Recovery codes need to be regenerated","profile.totp.status.disabled":"Two-factor authentication is not enabled","profile.totp.enable":"Enable","profile.totp.disable":"Disable","profile.totp.regenerate":"Regenerate codes","profile.totp.recoveryCodesMissing":"Your existing recovery codes are no longer valid. Generate a new set now and store them safely.","profile.totp.setupModal.title":"Set Up Two-Factor Authentication","profile.totp.setupModal.requiredDescription":"You must set up two-factor authentication (TOTP) or passkey to continue.","profile.totp.setupModal.setupError":"Failed to start setup. Please try again.","profile.totp.setupModal.retry":"Retry","profile.totp.setupModal.cancel":"Cancel","profile.totp.setupModal.switchToPasskey":"Use Passkey Instead","profile.totp.disableModal.title":"Disable Two-Factor Authentication","profile.totp.disableModal.description":"Enter your current authentication code to disable two-factor authentication.","profile.totp.disableModal.warning":"Disabling two-factor authentication will make your account less secure.","profile.totp.disableModal.codeLabel":"Authentication Code","profile.totp.disableModal.cancel":"Cancel","profile.totp.disableModal.disable":"Disable","profile.totp.disableModal.disabling":"Disabling...","profile.totp.disableModal.error":"Invalid code. Please try again.","profile.totp.disableModal.cannotRemoveLastSecondFactor":"Cannot disable TOTP. At least one two-factor authentication method (TOTP or Passkey) is required.","profile.totp.regenerateModal.title":"Regenerate Recovery Codes","profile.totp.regenerateModal.description":"Enter your current authentication code to replace all existing recovery codes.","profile.totp.regenerateModal.submit":"Generate Recovery Codes","profile.totp.regenerateModal.submitting":"Generating...","profile.totp.regenerateModal.error":"Invalid code. Please try again.","profile.totp.regenerateModal.unexpectedError":"Unable to regenerate recovery codes right now. Please try again.","profile.totp.regenerateModal.recoveryTitle":"New Recovery Codes","profile.totp.regenerateModal.recoveryDescription":"These codes are shown once. Store them somewhere safe before closing this dialog.","validation.totp.length":"Code must be 6 digits","validation.totp.digits":"Code must contain only digits","validation.passkey.name.max":"Passkey name must be at most 100 characters","validation.passkey.name.required":"Passkey name is required","profile.passkey.title":"Passkeys","profile.passkey.status.enabled":"{{count}} passkey(s) registered","profile.passkey.status.disabled":"No passkeys registered","profile.passkey.add":"Add Passkey","profile.passkey.manage":"Manage","profile.passkey.setupModal.title":"Add Passkey","profile.passkey.setupModal.requiredDescription":"You must set up passkey or two-factor authentication (TOTP) to continue.","profile.passkey.setupModal.description":"A passkey lets you sign in securely using your fingerprint, face, or screen lock.","profile.passkey.setupModal.nameLabel":"Passkey Name (Optional)","profile.passkey.setupModal.namePlaceholder":"e.g., MacBook Pro, iPhone","profile.passkey.setupModal.nameHint":"Give your passkey a name to identify it later","profile.passkey.setupModal.continue":"Continue","profile.passkey.setupModal.cancel":"Cancel","profile.passkey.setupModal.switchToTotp":"Use TOTP Instead","profile.passkey.setupModal.waitingForDevice":"Follow the prompts from your browser or device...","profile.passkey.setupModal.error":"Failed to register passkey. Please try again.","profile.passkey.setupModal.cancelled":"Passkey registration was cancelled.","profile.passkey.manageModal.title":"Manage Passkeys","profile.passkey.manageModal.noPasskeys":"You don't have any passkeys registered yet.","profile.passkey.manageModal.close":"Close","profile.passkey.manageModal.addNew":"Add New Passkey","profile.passkey.manageModal.unnamedPasskey":"Unnamed Passkey","profile.passkey.manageModal.createdAt":"Added {{date}}","profile.passkey.manageModal.backedUp":"Synced","profile.passkey.manageModal.rename":"Rename","profile.passkey.manageModal.delete":"Delete","profile.passkey.manageModal.deleteConfirmInline":"Delete this passkey?","profile.passkey.manageModal.deleteError":"Cannot delete passkey. You need at least one way to log in.","profile.passkey.manageModal.cannotRemoveLastSecondFactor":"Cannot delete passkey. At least one two-factor authentication method (TOTP or Passkey) is required.","profile.passkey.manageModal.namePlaceholder":"Enter passkey name","profile.passkey.manageModal.cancelEdit":"Cancel","profile.passkey.manageModal.save":"Save","profile.passkey.manageModal.saving":"Saving...","profile.passkey.manageModal.renameError":"Failed to rename passkey. Please try again.","profile.dangerZone.title":"Danger Zone","profile.dangerZone.description":"Irreversible actions like deleting your account","profile.deleteAccount.title":"Delete Account","profile.deleteAccount.description":"Permanently delete your account","profile.deleteAccount.button":"Delete Account","profile.deleteAccount.modal.title":"Are you sure you want to delete your account?","profile.deleteAccount.modal.description":"This action cannot be undone. All your data will be permanently deleted after {{days}} days.","profile.deleteAccount.modal.warning":"You will not be able to sign up again with this email after deletion.","profile.deleteAccount.modal.confirmLabel":'Type "delete" to confirm',"profile.deleteAccount.modal.confirmPlaceholder":"delete","profile.deleteAccount.modal.confirm":"Delete Account","profile.deleteAccount.modal.confirming":"Deleting...","profile.deleteAccount.modal.cancel":"Cancel","profile.deleteAccount.configManaged":"This account is managed by configuration and cannot be deleted","profile.deleteAccount.error":"Failed to delete account","verifyTotp.title":"Two-Factor Authentication","verifyTotp.subtitle":"Enter the code from your authenticator app","verifyTotp.submit":"Verify","verifyTotp.submitting":"Verifying...","verifyTotp.error.invalid":"Invalid code. Please try again.","verifyTotp.error.expired":"Session expired. Please log in again.","verifyTotp.redirecting":"Redirecting to login in {{seconds}} seconds...","verifyTotp.redirectNow":"Go to login now","verifyTotp.backToLogin":"Back to login","verifyTotp.useRecoveryCode":"Use a recovery code","verifyRecovery.title":"Recovery Code","verifyRecovery.subtitle":"Enter one of your recovery codes","verifyRecovery.placeholder":"XXXX-XXXX-XXXX-XXXX","verifyRecovery.submit":"Verify","verifyRecovery.submitting":"Verifying...","verifyRecovery.error.invalid":"Invalid recovery code. Please try again.","verifyRecovery.error.noCodesAvailable":"No recovery codes available. All codes have been used.","verifyRecovery.error.expired":"Session expired. Please log in again.","verifyRecovery.backToTotp":"Use authenticator app instead","verifyRecovery.backToLogin":"Back to login","verifyRecovery.redirecting":"Redirecting to login in {{seconds}} seconds...","verifyRecovery.redirectNow":"Go to login now","setupTotp.title":"Set Up Two-Factor Authentication","setupTotp.subtitle":"Add an extra layer of security to your account","setupTotp.required":"Two-factor authentication is required to continue","setupTotp.qrDescription":"Scan this QR code with your authenticator app (Google Authenticator, Authy, etc.)","setupTotp.manualEntry":"Can't scan? Enter this code manually","setupTotp.next":"Next","setupTotp.back":"Back","setupTotp.verify":"Verify","setupTotp.verifying":"Verifying...","setupTotp.verifyTitle":"Verify Authentication Code","setupTotp.verifySubtitle":"Enter the 6-digit code from your authenticator app","setupTotp.error.invalid":"Invalid code. Please try again.","setupTotp.error.setupFailed":"Failed to start setup. Please try again.","setupTotp.error.expired":"Session expired. Please log in again.","setupTotp.error.alreadyEnabled":"Two-factor authentication is already enabled.","setupTotp.redirecting":"Redirecting to login in {{seconds}} seconds...","setupTotp.redirectNow":"Go to login now","setupTotp.goToProfile":"Go to profile","setupTotp.retry":"Retry","setupTotp.backToLogin":"Back to login","setupTotp.recoveryCodes.title":"Save Your Recovery Codes","setupTotp.recoveryCodes.description":"If you lose access to your authenticator app, you can use these one-time recovery codes to sign in. Each code can only be used once.","setupTotp.recoveryCodes.warning":"Store these codes in a safe place. You will not be able to see them again.","setupTotp.recoveryCodes.copy":"Copy all codes","setupTotp.recoveryCodes.copied":"Copied!","setupTotp.recoveryCodes.confirmCheckbox":"I have saved these recovery codes in a safe place","setupTotp.recoveryCodes.confirm":"Complete setup","verifyPasskey.title":"Passkey Verification","verifyPasskey.subtitle":"Use your passkey to complete sign in","verifyPasskey.waiting":"Follow the prompts from your browser or device...","verifyPasskey.retry":"Try again","verifyPasskey.error.expired":"Session expired. Please log in again.","verifyPasskey.error.userMismatch":"This passkey belongs to a different account.","verifyPasskey.error.failed":"Passkey verification failed. Please try again.","verifyPasskey.backToLogin":"Back to login","verify2fa.title":"Two-Factor Authentication","verify2fa.subtitle":"Choose a verification method","verify2fa.totp.title":"Authenticator App","verify2fa.totp.description":"Use a 6-digit code from your app","verify2fa.passkey.title":"Passkey","verify2fa.passkey.description":"Use fingerprint, face, or security key","verify2fa.backToLogin":"Back to login","setup2fa.title":"Set Up Two-Factor Authentication","setup2fa.subtitle":"Choose your preferred 2FA method","setup2fa.required":"Two-factor authentication is required to continue","setup2fa.totp.title":"Authenticator App","setup2fa.totp.description":"Use Google Authenticator, Authy, etc.","setup2fa.passkey.title":"Passkey","setup2fa.passkey.description":"Use fingerprint, face, or security key","setup2fa.backToLogin":"Back to login","setupPasskey.title":"Set Up Passkey","setupPasskey.subtitle":"Register a passkey for secure authentication","setupPasskey.required":"Two-factor authentication is required to continue","setupPasskey.description":"A passkey lets you sign in securely using your fingerprint, face, or screen lock.","setupPasskey.name.label":"Passkey Name (Optional)","setupPasskey.name.placeholder":"e.g., MacBook Pro, iPhone","setupPasskey.name.hint":"Give your passkey a name to identify it later","setupPasskey.continue":"Continue","setupPasskey.registering":"Registering...","setupPasskey.waiting":"Follow the prompts from your browser or device...","setupPasskey.retry":"Try again","setupPasskey.error.failed":"Failed to register passkey. Please try again.","setupPasskey.error.cancelled":"Passkey registration was cancelled.","setupPasskey.backToLogin":"Back to login","terms.title":"Terms of Service","terms.required":"Required","terms.optional":"Optional","terms.agreeAll":"Agree to all","terms.agreeAllOptionalIncluded":"(including optional)","terms.versionUpdated":"Terms have been updated. Please agree to the new version.","terms.submit":"Agree and Continue","terms.error.title":"Error","terms.error.message":"Unable to load terms information.","terms.error.back":"Go back","terms.error.submitFailed":"Failed to submit consent. Please try again.","terms.view":"View"},tE={"common.language.auto":"自動","common.language.select":"言語を選択","common.theme.auto":"自動","common.theme.dark":"ダーク","common.theme.light":"ライト","common.theme.select":"テーマを選択","login.email.placeholder":"hello@example.com","login.error.failed":"ログインに失敗しました。メールアドレスとパスワードを確認してください。","login.password.placeholder":"パスワードを入力","login.submit":"ログイン","login.submitting":"ログイン中...","login.title":"Welcome back!","login.link.register":"新規登録","login.link.forgotPassword":"パスワードをお忘れですか?","login.selectMethod.subtitle":"","login.method.password":"メール","login.method.passkey":"パスキー","login.password.backToMethods":"他の方法でログイン","login.footer.noAccount":"アカウントをお持ちでないですか?","profile.email.label":"メールアドレス","profile.id.label":"ユーザーID","profile.logout":"ログアウト","profile.title":"マイプロフィール","profile.account.title":"アカウント情報","profile.account.description":"基本アカウント情報","profile.security.title":"セキュリティ","profile.security.description":"セキュリティ設定を管理","register.email.placeholder":"hello@example.com","register.error.emailExists":"メールアドレスはすでに存在します","register.error.emailNotAllowed":"このメールアドレスでの登録は許可されていません。","register.error.registrationDisabled":"現在、登録は無効になっています。","register.link.login":"ログイン","register.footer.haveAccount":"すでにアカウントをお持ちですか?","register.password.placeholder":"パスワードを入力","register.submit":"アカウント作成","register.submitting":"アカウント作成中...","register.subtitle":"新しいアカウントを作成して始めましょう","register.title":"Create account","validation.email.invalid":"正しいメールアドレスの形式ではありません","validation.password.max":"パスワードは{{count}}文字以下である必要があります","validation.password.min":"パスワードは{{count}}文字以上である必要があります","validation.password.required":"パスワードを入力してください","validation.token.required":"認証トークンを入力してください","validation.confirmPassword.required":"パスワードの確認を入力してください","validation.confirmPassword.mismatch":"パスワードが一致しません","validation.confirmText.mismatch":"確認テキストが一致しません","validation.terms.required":"必須規約に同意してください","register.success.subtitle":"確認メールを送信しました","register.success.description":"{{email}}に送信されたメールを確認してアカウントを認証してください。","verifyEmail.title":"メール認証","verifyEmail.subtitle":"以下に認証トークンを入力してください","verifyEmail.token.placeholder":"メールで受け取ったトークンを入力","verifyEmail.submit":"認証する","verifyEmail.submitting":"認証中...","verifyEmail.resend":"認証メールを再送信","verifyEmail.resending":"再送信中...","verifyEmail.success.title":"認証完了!","verifyEmail.success.subtitle":"メールアドレスが正常に認証されました","verifyEmail.success.description":"すべての機能をご利用いただけます。","verifyEmail.success.goToProfile":"プロフィールへ","verifyEmail.error.invalidToken":"無効または期限切れのトークンです","verifyEmail.resendSuccess":"認証メールを再送信しました","forgotPassword.title":"パスワードを忘れた","forgotPassword.subtitle":"パスワードリセットリンクを受け取るメールアドレスを入力してください","forgotPassword.email.placeholder":"hello@example.com","forgotPassword.submit":"リセットリンクを送信","forgotPassword.submitting":"送信中...","forgotPassword.backToLogin":"ログインに戻る","forgotPassword.footer.rememberedPassword":"パスワードを思い出しましたか?","forgotPassword.success.title":"メール送信完了!","forgotPassword.success.subtitle":"受信トレイをご確認ください","forgotPassword.success.description":"{{email}}のアカウントが存在する場合、パスワードリセットリンクが送信されます。","forgotPassword.success.checkSpam":"メールが届いていない場合は、迷惑メールフォルダをご確認ください。","forgotPassword.error.notEditable":"このアカウントは変更できません","resetPassword.title":"パスワードリセット","resetPassword.subtitle":"新しいパスワードを入力してください","resetPassword.token.placeholder":"メールで受け取ったトークンを入力","resetPassword.password.placeholder":"新しいパスワードを入力","resetPassword.confirmPassword.placeholder":"新しいパスワードを再入力","resetPassword.submit":"パスワードをリセット","resetPassword.submitting":"リセット中...","resetPassword.backToLogin":"ログインに戻る","resetPassword.success.title":"パスワードリセット完了!","resetPassword.success.subtitle":"パスワードが正常に変更されました","resetPassword.success.description":"新しいパスワードでログインできます。","resetPassword.success.goToLogin":"ログインへ","resetPassword.error.invalidToken":"無効または期限切れのトークンです","resetPassword.error.notEditable":"このアカウントは変更できません","consent.title":"認可リクエスト","consent.subtitle":"{{app}}があなたのアカウントへのアクセスを要求しています","consent.loggedInAs":"ログイン中のアカウント","consent.permissions.title":"このアプリケーションは以下を行うことができます:","consent.allow":"許可","consent.deny":"拒否","consent.error.title":"エラー","consent.error.message":"認可情報を読み込めませんでした。クライアントが無効である可能性があります。","consent.error.back":"戻る","consent.scope.openid":"ユーザー識別子へのアクセス","consent.scope.profile":"プロフィール情報へのアクセス","consent.scope.email":"メールアドレスへのアクセス","consent.scope.address":"住所情報へのアクセス","consent.scope.phone":"電話番号へのアクセス","consent.scope.offline_access":"オフラインアクセスの維持","oauth.error.failed":"OAuthログインに失敗しました。もう一度お試しください。","oauth.error.accessDenied":"認証リクエストが拒否されました。","oauth.error.temporarilyUnavailable":"サービスが一時的に利用できません。しばらくしてから再度お試しください。","oauth.error.serverError":"認証サーバーでエラーが発生しました。しばらくしてから再度お試しください。","oauth.error.registrationEmailNotAllowed":"このメールアドレスでの登録は許可されていません。","profile.linkedAccounts.title":"連携アカウント","profile.linkedAccounts.description":"外部サービスとアカウントを連携","profile.linkedAccounts.link":"連携","profile.linkedAccounts.unlink":"連携解除","profile.linkedAccounts.unlinking":"連携解除中...","profile.linkedAccounts.unlinkError":"連携を解除できません。少なくとも1つのログイン方法が必要です。","profile.linkedAccounts.unlinkModal.title":"アカウント連携解除","profile.linkedAccounts.unlinkModal.description":"{{provider}}のアカウント連携を解除します。","profile.linkedAccounts.unlinkModal.warning":"{{provider}}でログインできなくなります。他のログイン方法があることを確認してください。","profile.linkedAccounts.unlinkModal.cancel":"キャンセル","profile.linkedAccounts.connected":"連携済み","profile.linkedAccounts.notConnected":"未連携","error.title":"エラー","error.subtitle":"問題が発生しました","error.defaultMessage":"予期しないエラーが発生しました。後でもう一度お試しください。","error.codeLabel":"エラーコード","error.goToLogin":"ログインへ","error.goBack":"戻る","error.footer.needHelp":"ヘルプが必要ですか?","error.footer.contactSupport":"サポートに連絡","error.sessionExpired":"セッションが期限切れです。再度ログインしてください。","error.retry":"再試行","profile.password.title":"パスワード","profile.password.status.set":"パスワードが設定されています","profile.password.status.notSet":"パスワードが設定されていません","profile.password.set":"パスワードを設定","profile.password.change":"パスワードを変更","profile.password.remove":"パスワードを削除","profile.password.setModal.title":"パスワードを設定","profile.password.setModal.description":"メールアドレスとパスワードでログインできるようにパスワードを設定します。","profile.password.setModal.newPassword":"新しいパスワード","profile.password.setModal.newPasswordPlaceholder":"新しいパスワードを入力","profile.password.setModal.confirmPassword":"パスワード確認","profile.password.setModal.confirmPasswordPlaceholder":"新しいパスワードを再入力","profile.password.setModal.submit":"パスワードを設定","profile.password.setModal.submitting":"設定中...","profile.password.setModal.cancel":"キャンセル","profile.password.setModal.error":"パスワードの設定に失敗しました","profile.password.changeModal.title":"パスワードを変更","profile.password.changeModal.description":"現在のパスワードを確認して、新しいパスワードを設定します。","profile.password.changeModal.currentPassword":"現在のパスワード","profile.password.changeModal.currentPasswordPlaceholder":"現在のパスワードを入力","profile.password.changeModal.newPassword":"新しいパスワード","profile.password.changeModal.newPasswordPlaceholder":"新しいパスワードを入力","profile.password.changeModal.confirmPassword":"パスワード確認","profile.password.changeModal.confirmPasswordPlaceholder":"新しいパスワードを再入力","profile.password.changeModal.submit":"パスワードを変更","profile.password.changeModal.submitting":"変更中...","profile.password.changeModal.cancel":"キャンセル","profile.password.changeModal.error":"パスワードの変更に失敗しました","profile.password.changeModal.invalidCurrent":"現在のパスワードが正しくありません","profile.password.removeModal.title":"パスワードを削除","profile.password.removeModal.description":"パスワードを削除すると、メールアドレスとパスワードでログインできなくなります。連携されたOAuthアカウントでのみログインできます。","profile.password.removeModal.currentPassword":"現在のパスワード","profile.password.removeModal.currentPasswordPlaceholder":"現在のパスワードを入力","profile.password.removeModal.submit":"パスワードを削除","profile.password.removeModal.submitting":"削除中...","profile.password.removeModal.cancel":"キャンセル","profile.password.removeModal.error":"パスワードの削除に失敗しました","profile.password.removeModal.invalidCurrent":"現在のパスワードが正しくありません","profile.password.removeModal.noOAuth":"少なくとも1つのOAuthアカウントが連携されている必要があります","profile.password.removeModal.noOAuthWith2FA":"2FAが設定されている場合、パスワードを削除できません。まずOAuthアカウントを連携するか、2FAを無効にしてからパスワードを削除してください。","profile.password.removeDisabledReason":"2FAが設定されている場合、パスワードを削除できません。まずOAuthアカウントを連携してください。","profile.password.configManaged":"このアカウントは設定ファイルで管理されているため、パスワードを変更できません","profile.totp.title":"二要素認証","profile.totp.status.enabled":"二要素認証が有効です","profile.totp.status.recoveryCodesMissing":"リカバリーコードを再生成する必要があります","profile.totp.status.disabled":"二要素認証が有効ではありません","profile.totp.enable":"有効化","profile.totp.disable":"無効化","profile.totp.regenerate":"コードを再生成","profile.totp.recoveryCodesMissing":"既存のリカバリーコードは無効です。今すぐ新しいコードを生成して安全な場所に保管してください。","profile.totp.setupModal.title":"二要素認証の設定","profile.totp.setupModal.requiredDescription":"続行するには、二要素認証(TOTP)またはパスキーを設定する必要があります。","profile.totp.setupModal.setupError":"設定を開始できませんでした。もう一度お試しください。","profile.totp.setupModal.retry":"再試行","profile.totp.setupModal.cancel":"キャンセル","profile.totp.setupModal.switchToPasskey":"代わりにパスキーを使用","profile.totp.disableModal.title":"二要素認証を無効化","profile.totp.disableModal.description":"二要素認証を無効にするには、現在の認証コードを入力してください。","profile.totp.disableModal.warning":"二要素認証を無効にすると、アカウントのセキュリティが低下します。","profile.totp.disableModal.codeLabel":"認証コード","profile.totp.disableModal.cancel":"キャンセル","profile.totp.disableModal.disable":"無効化","profile.totp.disableModal.disabling":"無効化中...","profile.totp.disableModal.error":"無効なコードです。もう一度お試しください。","profile.totp.disableModal.cannotRemoveLastSecondFactor":"TOTPを無効にできません。少なくとも1つの二要素認証方法(TOTPまたはパスキー)が必要です。","profile.totp.regenerateModal.title":"リカバリーコードを再生成","profile.totp.regenerateModal.description":"既存のリカバリーコードをすべて置き換えるには、現在の認証コードを入力してください。","profile.totp.regenerateModal.submit":"リカバリーコードを生成","profile.totp.regenerateModal.submitting":"生成中...","profile.totp.regenerateModal.error":"無効なコードです。もう一度お試しください。","profile.totp.regenerateModal.unexpectedError":"現在はリカバリーコードを再生成できません。もう一度お試しください。","profile.totp.regenerateModal.recoveryTitle":"新しいリカバリーコード","profile.totp.regenerateModal.recoveryDescription":"これらのコードは一度だけ表示されます。このダイアログを閉じる前に安全な場所へ保管してください。","validation.totp.length":"コードは6桁である必要があります","validation.totp.digits":"コードは数字のみを含む必要があります","validation.passkey.name.max":"パスキー名は100文字以下である必要があります","validation.passkey.name.required":"パスキー名を入力してください","profile.passkey.title":"パスキー","profile.passkey.status.enabled":"{{count}}個のパスキーが登録されています","profile.passkey.status.disabled":"パスキーが登録されていません","profile.passkey.add":"パスキーを追加","profile.passkey.manage":"管理","profile.passkey.setupModal.title":"パスキーを追加","profile.passkey.setupModal.requiredDescription":"続行するには、パスキーまたは二要素認証(TOTP)を設定する必要があります。","profile.passkey.setupModal.description":"パスキーを使用すると、指紋、顔認証、または画面ロックで安全にログインできます。","profile.passkey.setupModal.nameLabel":"パスキー名(任意)","profile.passkey.setupModal.namePlaceholder":"例:MacBook Pro、iPhone","profile.passkey.setupModal.nameHint":"後で識別できるようにパスキーに名前を付けてください","profile.passkey.setupModal.continue":"続ける","profile.passkey.setupModal.cancel":"キャンセル","profile.passkey.setupModal.switchToTotp":"代わりにTOTPを使用","profile.passkey.setupModal.waitingForDevice":"ブラウザまたはデバイスの指示に従ってください...","profile.passkey.setupModal.error":"パスキーの登録に失敗しました。もう一度お試しください。","profile.passkey.setupModal.cancelled":"パスキーの登録がキャンセルされました。","profile.passkey.manageModal.title":"パスキーを管理","profile.passkey.manageModal.noPasskeys":"登録されたパスキーがありません。","profile.passkey.manageModal.close":"閉じる","profile.passkey.manageModal.addNew":"新しいパスキーを追加","profile.passkey.manageModal.unnamedPasskey":"名前のないパスキー","profile.passkey.manageModal.createdAt":"{{date}}に追加","profile.passkey.manageModal.backedUp":"同期済み","profile.passkey.manageModal.rename":"名前を変更","profile.passkey.manageModal.delete":"削除","profile.passkey.manageModal.deleteConfirmInline":"このパスキーを削除しますか?","profile.passkey.manageModal.deleteError":"パスキーを削除できません。少なくとも1つのログイン方法が必要です。","profile.passkey.manageModal.cannotRemoveLastSecondFactor":"パスキーを削除できません。少なくとも1つの二要素認証方法(TOTPまたはパスキー)が必要です。","profile.passkey.manageModal.namePlaceholder":"パスキー名を入力","profile.passkey.manageModal.cancelEdit":"キャンセル","profile.passkey.manageModal.save":"保存","profile.passkey.manageModal.saving":"保存中...","profile.passkey.manageModal.renameError":"パスキー名の変更に失敗しました。もう一度お試しください。","profile.dangerZone.title":"危険ゾーン","profile.dangerZone.description":"アカウント削除などの取り消しできない操作","profile.deleteAccount.title":"アカウント削除","profile.deleteAccount.description":"アカウントを完全に削除します","profile.deleteAccount.button":"アカウントを削除","profile.deleteAccount.modal.title":"本当にアカウントを削除しますか?","profile.deleteAccount.modal.description":"この操作は取り消せません。すべてのデータは{{days}}日後に完全に削除されます。","profile.deleteAccount.modal.warning":"削除後、このメールアドレスで再登録することはできません。","profile.deleteAccount.modal.confirmLabel":"確認のため「削除」と入力してください","profile.deleteAccount.modal.confirmPlaceholder":"削除","profile.deleteAccount.modal.confirm":"アカウントを削除","profile.deleteAccount.modal.confirming":"削除中...","profile.deleteAccount.modal.cancel":"キャンセル","profile.deleteAccount.configManaged":"このアカウントは設定ファイルで管理されているため削除できません","profile.deleteAccount.error":"アカウントの削除に失敗しました","verifyTotp.title":"二要素認証","verifyTotp.subtitle":"認証アプリのコードを入力してください","verifyTotp.submit":"確認","verifyTotp.submitting":"確認中...","verifyTotp.error.invalid":"無効なコードです。もう一度お試しください。","verifyTotp.error.expired":"セッションが期限切れです。再度ログインしてください。","verifyTotp.redirecting":"{{seconds}}秒後にログインページに移動します...","verifyTotp.redirectNow":"今すぐログインページに移動","verifyTotp.backToLogin":"ログインに戻る","verifyTotp.useRecoveryCode":"リカバリーコードを使用","verifyRecovery.title":"リカバリーコード","verifyRecovery.subtitle":"リカバリーコードの1つを入力してください","verifyRecovery.placeholder":"XXXX-XXXX-XXXX-XXXX","verifyRecovery.submit":"確認","verifyRecovery.submitting":"確認中...","verifyRecovery.error.invalid":"無効なリカバリーコードです。もう一度お試しください。","verifyRecovery.error.noCodesAvailable":"利用可能なリカバリーコードがありません。すべてのコードが使用済みです。","verifyRecovery.error.expired":"セッションが期限切れです。再度ログインしてください。","verifyRecovery.backToTotp":"認証アプリで認証する","verifyRecovery.backToLogin":"ログインに戻る","verifyRecovery.redirecting":"{{seconds}}秒後にログインページに移動します...","verifyRecovery.redirectNow":"今すぐログインページに移動","setupTotp.title":"二要素認証の設定","setupTotp.subtitle":"アカウントにセキュリティ層を追加","setupTotp.required":"続行するには二要素認証が必要です","setupTotp.qrDescription":"認証アプリ(Google Authenticator、Authyなど)でQRコードをスキャンしてください","setupTotp.manualEntry":"スキャンできない場合は手動でコードを入力","setupTotp.next":"次へ","setupTotp.back":"戻る","setupTotp.verify":"確認","setupTotp.verifying":"確認中...","setupTotp.verifyTitle":"認証コードの確認","setupTotp.verifySubtitle":"認証アプリの6桁のコードを入力してください","setupTotp.error.invalid":"無効なコードです。もう一度お試しください。","setupTotp.error.setupFailed":"設定を開始できませんでした。もう一度お試しください。","setupTotp.error.expired":"セッションが期限切れです。再度ログインしてください。","setupTotp.error.alreadyEnabled":"二要素認証はすでに有効になっています。","setupTotp.redirecting":"{{seconds}}秒後にログインページに移動します...","setupTotp.redirectNow":"今すぐログインページに移動","setupTotp.goToProfile":"プロフィールに移動","setupTotp.retry":"再試行","setupTotp.backToLogin":"ログインに戻る","setupTotp.recoveryCodes.title":"リカバリーコードを保存してください","setupTotp.recoveryCodes.description":"認証アプリにアクセスできなくなった場合、このワンタイムリカバリーコードを使用してログインできます。各コードは一度のみ使用できます。","setupTotp.recoveryCodes.warning":"これらのコードを安全な場所に保管してください。再度表示することはできません。","setupTotp.recoveryCodes.copy":"すべてのコードをコピー","setupTotp.recoveryCodes.copied":"コピーしました!","setupTotp.recoveryCodes.confirmCheckbox":"リカバリーコードを安全な場所に保存しました","setupTotp.recoveryCodes.confirm":"設定完了","verifyPasskey.title":"パスキー認証","verifyPasskey.subtitle":"パスキーを使用してログインを完了してください","verifyPasskey.waiting":"ブラウザまたはデバイスの指示に従ってください...","verifyPasskey.retry":"再試行","verifyPasskey.error.expired":"セッションが期限切れです。再度ログインしてください。","verifyPasskey.error.userMismatch":"このパスキーは別のアカウントに登録されています。","verifyPasskey.error.failed":"パスキー認証に失敗しました。もう一度お試しください。","verifyPasskey.backToLogin":"ログインに戻る","verify2fa.title":"二要素認証","verify2fa.subtitle":"認証方法を選択してください","verify2fa.totp.title":"認証アプリ","verify2fa.totp.description":"アプリの6桁のコードを使用","verify2fa.passkey.title":"パスキー","verify2fa.passkey.description":"指紋、顔認証、またはセキュリティキーを使用","verify2fa.backToLogin":"ログインに戻る","setup2fa.title":"二要素認証の設定","setup2fa.subtitle":"ご希望の二要素認証方法を選択してください","setup2fa.required":"続行するには二要素認証が必要です","setup2fa.totp.title":"認証アプリ","setup2fa.totp.description":"Google Authenticator、Authyなどを使用","setup2fa.passkey.title":"パスキー","setup2fa.passkey.description":"指紋、顔認証、またはセキュリティキーを使用","setup2fa.backToLogin":"ログインに戻る","setupPasskey.title":"パスキーの設定","setupPasskey.subtitle":"安全な認証のためにパスキーを登録","setupPasskey.required":"続行するには二要素認証が必要です","setupPasskey.description":"パスキーを使用すると、指紋、顔認証、または画面ロックで安全にログインできます。","setupPasskey.name.label":"パスキー名(任意)","setupPasskey.name.placeholder":"例:MacBook Pro、iPhone","setupPasskey.name.hint":"後で識別できるようにパスキーに名前を付けてください","setupPasskey.continue":"続ける","setupPasskey.registering":"登録中...","setupPasskey.waiting":"ブラウザまたはデバイスの指示に従ってください...","setupPasskey.retry":"再試行","setupPasskey.error.failed":"パスキーの登録に失敗しました。もう一度お試しください。","setupPasskey.error.cancelled":"パスキーの登録がキャンセルされました。","setupPasskey.backToLogin":"ログインに戻る","terms.title":"利用規約","terms.required":"必須","terms.optional":"任意","terms.agreeAll":"すべてに同意","terms.agreeAllOptionalIncluded":"(任意規約を含む)","terms.versionUpdated":"規約が更新されました。新しいバージョンに同意してください。","terms.submit":"同意して続ける","terms.error.title":"エラー","terms.error.message":"規約情報を読み込めませんでした。","terms.error.back":"戻る","terms.error.submitFailed":"同意の送信に失敗しました。もう一度お試しください。","terms.view":"表示"},nE={"common.language.auto":"자동","common.language.select":"언어 선택","common.theme.auto":"자동","common.theme.dark":"다크","common.theme.light":"라이트","common.theme.select":"테마 선택","login.email.placeholder":"hello@example.com","login.error.failed":"로그인에 실패했습니다. 이메일과 비밀번호를 확인해주세요.","login.password.placeholder":"비밀번호를 입력하세요","login.submit":"로그인","login.submitting":"로그인 중...","login.title":"Welcome back!","login.link.register":"회원가입","login.link.forgotPassword":"비밀번호를 잊으셨나요?","login.selectMethod.subtitle":"","login.method.password":"이메일","login.method.passkey":"패스키","login.password.backToMethods":"다른 방식으로 로그인","login.footer.noAccount":"계정이 없으신가요?","profile.email.label":"이메일","profile.id.label":"사용자 ID","profile.logout":"로그아웃","profile.title":"내 정보","profile.account.title":"계정 정보","profile.account.description":"기본 계정 정보입니다","profile.security.title":"보안","profile.security.description":"보안 설정을 관리하세요","register.email.placeholder":"hello@example.com","register.error.emailExists":"이미 존재하는 이메일입니다","register.error.emailNotAllowed":"이 이메일 주소로는 회원가입이 허용되지 않습니다.","register.error.registrationDisabled":"현재 회원가입이 비활성화되어 있습니다.","register.link.login":"로그인","register.footer.haveAccount":"이미 계정이 있으신가요?","register.password.placeholder":"비밀번호를 입력하세요","register.submit":"회원가입","register.submitting":"회원가입 중...","register.subtitle":"새 계정을 만들어 시작하세요","register.title":"Create account","validation.email.invalid":"올바른 이메일 형식이 아닙니다","validation.password.max":"비밀번호는 최대 {{count}}자까지 가능합니다","validation.password.min":"비밀번호는 최소 {{count}}자 이상이어야 합니다","validation.password.required":"비밀번호를 입력해주세요","validation.token.required":"인증 토큰을 입력해주세요","validation.confirmPassword.required":"비밀번호 확인을 입력해주세요","validation.confirmPassword.mismatch":"비밀번호가 일치하지 않습니다","validation.confirmText.mismatch":"입력한 텍스트가 일치하지 않습니다","validation.terms.required":"필수 약관에 동의해주세요","register.success.subtitle":"이메일 인증 링크를 보냈습니다","register.success.description":"{{email}}로 전송된 이메일을 확인하여 계정을 인증해주세요.","verifyEmail.title":"이메일 인증","verifyEmail.subtitle":"아래에 인증 토큰을 입력하세요","verifyEmail.token.placeholder":"이메일로 받은 토큰을 입력하세요","verifyEmail.submit":"인증하기","verifyEmail.submitting":"인증 중...","verifyEmail.resend":"인증 이메일 재전송","verifyEmail.resending":"재전송 중...","verifyEmail.success.title":"인증 완료!","verifyEmail.success.subtitle":"이메일이 성공적으로 인증되었습니다","verifyEmail.success.description":"이제 모든 기능을 사용할 수 있습니다.","verifyEmail.success.goToProfile":"프로필로 이동","verifyEmail.error.invalidToken":"유효하지 않거나 만료된 토큰입니다","verifyEmail.resendSuccess":"인증 이메일이 재전송되었습니다","forgotPassword.title":"비밀번호 찾기","forgotPassword.subtitle":"비밀번호 재설정 링크를 받을 이메일을 입력하세요","forgotPassword.email.placeholder":"hello@example.com","forgotPassword.submit":"재설정 링크 보내기","forgotPassword.submitting":"전송 중...","forgotPassword.backToLogin":"로그인으로 돌아가기","forgotPassword.footer.rememberedPassword":"비밀번호가 기억나셨나요?","forgotPassword.success.title":"이메일 전송 완료!","forgotPassword.success.subtitle":"받은 편지함을 확인하세요","forgotPassword.success.description":"{{email}}에 해당하는 계정이 존재하면 비밀번호 재설정 링크가 전송됩니다.","forgotPassword.success.checkSpam":"이메일이 보이지 않으면 스팸 폴더를 확인해주세요.","forgotPassword.error.notEditable":"이 계정은 수정할 수 없습니다","resetPassword.title":"비밀번호 재설정","resetPassword.subtitle":"새 비밀번호를 입력하세요","resetPassword.token.placeholder":"이메일로 받은 토큰을 입력하세요","resetPassword.password.placeholder":"새 비밀번호를 입력하세요","resetPassword.confirmPassword.placeholder":"새 비밀번호를 다시 입력하세요","resetPassword.submit":"비밀번호 재설정","resetPassword.submitting":"재설정 중...","resetPassword.backToLogin":"로그인으로 돌아가기","resetPassword.success.title":"비밀번호 재설정 완료!","resetPassword.success.subtitle":"비밀번호가 성공적으로 변경되었습니다","resetPassword.success.description":"새 비밀번호로 로그인할 수 있습니다.","resetPassword.success.goToLogin":"로그인으로 이동","resetPassword.error.invalidToken":"유효하지 않거나 만료된 토큰입니다","resetPassword.error.notEditable":"이 계정은 수정할 수 없습니다","consent.title":"권한 요청","consent.subtitle":"{{app}}에서 계정에 대한 접근을 요청합니다","consent.loggedInAs":"로그인 계정","consent.permissions.title":"이 애플리케이션은 다음을 수행할 수 있습니다:","consent.allow":"허용","consent.deny":"거부","consent.error.title":"오류","consent.error.message":"권한 정보를 불러올 수 없습니다. 클라이언트가 유효하지 않을 수 있습니다.","consent.error.back":"돌아가기","consent.scope.openid":"고유 사용자 식별자에 접근","consent.scope.profile":"프로필 정보에 접근","consent.scope.email":"이메일 주소에 접근","consent.scope.address":"주소 정보에 접근","consent.scope.phone":"전화번호에 접근","consent.scope.offline_access":"오프라인 접근 유지","oauth.error.failed":"OAuth 로그인에 실패했습니다. 다시 시도해주세요.","oauth.error.accessDenied":"사용자가 권한 요청을 거부했습니다.","oauth.error.temporarilyUnavailable":"서비스가 일시적으로 이용 불가합니다. 잠시 후 다시 시도해주세요.","oauth.error.serverError":"인증 서버에 오류가 발생했습니다. 잠시 후 다시 시도해주세요.","oauth.error.registrationEmailNotAllowed":"이 이메일 주소로는 회원가입이 허용되지 않습니다.","profile.linkedAccounts.title":"연결된 계정","profile.linkedAccounts.description":"외부 서비스와 계정을 연결하세요","profile.linkedAccounts.link":"연결","profile.linkedAccounts.unlink":"연결 해제","profile.linkedAccounts.unlinking":"연결 해제 중...","profile.linkedAccounts.unlinkError":"연결을 해제할 수 없습니다. 최소 하나의 로그인 방법이 필요합니다.","profile.linkedAccounts.unlinkModal.title":"계정 연결 해제","profile.linkedAccounts.unlinkModal.description":"{{provider}} 계정 연결을 해제합니다.","profile.linkedAccounts.unlinkModal.warning":"{{provider}}로 더 이상 로그인할 수 없게 됩니다. 다른 로그인 방법이 있는지 확인하세요.","profile.linkedAccounts.unlinkModal.cancel":"취소","profile.linkedAccounts.connected":"연결됨","profile.linkedAccounts.notConnected":"연결되지 않음","error.title":"오류","error.subtitle":"문제가 발생했습니다","error.defaultMessage":"예상치 못한 오류가 발생했습니다. 나중에 다시 시도해주세요.","error.codeLabel":"오류 코드","error.goToLogin":"로그인으로 이동","error.goBack":"뒤로 가기","error.footer.needHelp":"도움이 필요하신가요?","error.footer.contactSupport":"지원팀 문의","error.sessionExpired":"세션이 만료되었습니다. 다시 로그인해주세요.","error.retry":"다시 시도","profile.password.title":"비밀번호","profile.password.status.set":"비밀번호가 설정되어 있습니다","profile.password.status.notSet":"비밀번호가 설정되어 있지 않습니다","profile.password.set":"비밀번호 설정","profile.password.change":"비밀번호 변경","profile.password.remove":"비밀번호 삭제","profile.password.setModal.title":"비밀번호 설정","profile.password.setModal.description":"이메일과 비밀번호로 로그인할 수 있도록 비밀번호를 설정하세요.","profile.password.setModal.newPassword":"새 비밀번호","profile.password.setModal.newPasswordPlaceholder":"새 비밀번호를 입력하세요","profile.password.setModal.confirmPassword":"비밀번호 확인","profile.password.setModal.confirmPasswordPlaceholder":"새 비밀번호를 다시 입력하세요","profile.password.setModal.submit":"비밀번호 설정","profile.password.setModal.submitting":"설정 중...","profile.password.setModal.cancel":"취소","profile.password.setModal.error":"비밀번호 설정에 실패했습니다","profile.password.changeModal.title":"비밀번호 변경","profile.password.changeModal.description":"현재 비밀번호를 확인한 후 새 비밀번호를 설정합니다.","profile.password.changeModal.currentPassword":"현재 비밀번호","profile.password.changeModal.currentPasswordPlaceholder":"현재 비밀번호를 입력하세요","profile.password.changeModal.newPassword":"새 비밀번호","profile.password.changeModal.newPasswordPlaceholder":"새 비밀번호를 입력하세요","profile.password.changeModal.confirmPassword":"비밀번호 확인","profile.password.changeModal.confirmPasswordPlaceholder":"새 비밀번호를 다시 입력하세요","profile.password.changeModal.submit":"비밀번호 변경","profile.password.changeModal.submitting":"변경 중...","profile.password.changeModal.cancel":"취소","profile.password.changeModal.error":"비밀번호 변경에 실패했습니다","profile.password.changeModal.invalidCurrent":"현재 비밀번호가 올바르지 않습니다","profile.password.removeModal.title":"비밀번호 삭제","profile.password.removeModal.description":"비밀번호를 삭제하면 이메일과 비밀번호로 로그인할 수 없게 됩니다. 연결된 OAuth 계정으로만 로그인할 수 있습니다.","profile.password.removeModal.currentPassword":"현재 비밀번호","profile.password.removeModal.currentPasswordPlaceholder":"현재 비밀번호를 입력하세요","profile.password.removeModal.submit":"비밀번호 삭제","profile.password.removeModal.submitting":"삭제 중...","profile.password.removeModal.cancel":"취소","profile.password.removeModal.error":"비밀번호 삭제에 실패했습니다","profile.password.removeModal.invalidCurrent":"현재 비밀번호가 올바르지 않습니다","profile.password.removeModal.noOAuth":"최소 하나의 OAuth 계정이 연결되어 있어야 합니다","profile.password.removeModal.noOAuthWith2FA":"2FA가 설정된 상태에서 비밀번호를 삭제할 수 없습니다. OAuth 계정을 먼저 연결하거나, 2FA를 비활성화한 후 비밀번호를 삭제하세요.","profile.password.removeDisabledReason":"2FA가 설정된 경우 비밀번호를 삭제할 수 없습니다. OAuth 계정을 먼저 연결해주세요.","profile.password.configManaged":"이 계정은 설정 파일로 관리되어 비밀번호를 변경할 수 없습니다","profile.totp.title":"2단계 인증","profile.totp.status.enabled":"2단계 인증이 활성화되어 있습니다","profile.totp.status.recoveryCodesMissing":"복구 코드를 다시 생성해야 합니다","profile.totp.status.disabled":"2단계 인증이 활성화되어 있지 않습니다","profile.totp.enable":"활성화","profile.totp.disable":"비활성화","profile.totp.regenerate":"코드 재생성","profile.totp.recoveryCodesMissing":"기존 복구 코드는 더 이상 유효하지 않습니다. 지금 새 복구 코드를 생성하고 안전한 곳에 보관하세요.","profile.totp.setupModal.title":"2단계 인증 설정","profile.totp.setupModal.requiredDescription":"계속하려면 2단계 인증(TOTP) 또는 패스키를 설정해야 합니다.","profile.totp.setupModal.setupError":"설정을 시작하지 못했습니다. 다시 시도해주세요.","profile.totp.setupModal.retry":"다시 시도","profile.totp.setupModal.cancel":"취소","profile.totp.setupModal.switchToPasskey":"패스키 사용하기","profile.totp.disableModal.title":"2단계 인증 비활성화","profile.totp.disableModal.description":"2단계 인증을 비활성화하려면 현재 인증 코드를 입력하세요.","profile.totp.disableModal.warning":"2단계 인증을 비활성화하면 계정 보안이 약해집니다.","profile.totp.disableModal.codeLabel":"인증 코드","profile.totp.disableModal.cancel":"취소","profile.totp.disableModal.disable":"비활성화","profile.totp.disableModal.disabling":"비활성화 중...","profile.totp.disableModal.error":"잘못된 코드입니다. 다시 시도해주세요.","profile.totp.disableModal.cannotRemoveLastSecondFactor":"TOTP를 비활성화할 수 없습니다. 최소 하나의 2단계 인증 방법(TOTP 또는 패스키)이 필요합니다.","profile.totp.regenerateModal.title":"복구 코드 재생성","profile.totp.regenerateModal.description":"기존 복구 코드를 모두 교체하려면 현재 인증 코드를 입력하세요.","profile.totp.regenerateModal.submit":"복구 코드 생성","profile.totp.regenerateModal.submitting":"생성 중...","profile.totp.regenerateModal.error":"잘못된 코드입니다. 다시 시도해주세요.","profile.totp.regenerateModal.unexpectedError":"지금은 복구 코드를 다시 생성할 수 없습니다. 다시 시도해주세요.","profile.totp.regenerateModal.recoveryTitle":"새 복구 코드","profile.totp.regenerateModal.recoveryDescription":"이 코드는 한 번만 표시됩니다. 이 창을 닫기 전에 안전한 곳에 보관하세요.","validation.totp.length":"코드는 6자리여야 합니다","validation.totp.digits":"코드는 숫자만 포함해야 합니다","validation.passkey.name.max":"패스키 이름은 100자 이하여야 합니다","validation.passkey.name.required":"패스키 이름을 입력해주세요","profile.passkey.title":"패스키","profile.passkey.status.enabled":"{{count}}개의 패스키가 등록되어 있습니다","profile.passkey.status.disabled":"등록된 패스키가 없습니다","profile.passkey.add":"패스키 추가","profile.passkey.manage":"관리","profile.passkey.setupModal.title":"패스키 추가","profile.passkey.setupModal.requiredDescription":"계속하려면 패스키 또는 2단계 인증(TOTP)을 설정해야 합니다.","profile.passkey.setupModal.description":"패스키를 사용하면 지문, 얼굴 인식 또는 화면 잠금으로 안전하게 로그인할 수 있습니다.","profile.passkey.setupModal.nameLabel":"패스키 이름 (선택)","profile.passkey.setupModal.namePlaceholder":"예: MacBook Pro, iPhone","profile.passkey.setupModal.nameHint":"나중에 식별할 수 있도록 패스키에 이름을 지정하세요","profile.passkey.setupModal.continue":"계속","profile.passkey.setupModal.cancel":"취소","profile.passkey.setupModal.switchToTotp":"2단계 인증 사용하기","profile.passkey.setupModal.waitingForDevice":"브라우저 또는 기기의 안내를 따르세요...","profile.passkey.setupModal.error":"패스키 등록에 실패했습니다. 다시 시도해주세요.","profile.passkey.setupModal.cancelled":"패스키 등록이 취소되었습니다.","profile.passkey.manageModal.title":"패스키 관리","profile.passkey.manageModal.noPasskeys":"등록된 패스키가 없습니다.","profile.passkey.manageModal.close":"닫기","profile.passkey.manageModal.addNew":"새 패스키 추가","profile.passkey.manageModal.unnamedPasskey":"이름 없는 패스키","profile.passkey.manageModal.createdAt":"{{date}}에 추가됨","profile.passkey.manageModal.backedUp":"동기화됨","profile.passkey.manageModal.rename":"이름 변경","profile.passkey.manageModal.delete":"삭제","profile.passkey.manageModal.deleteConfirmInline":"이 패스키를 삭제할까요?","profile.passkey.manageModal.deleteError":"패스키를 삭제할 수 없습니다. 최소 하나의 로그인 방법이 필요합니다.","profile.passkey.manageModal.cannotRemoveLastSecondFactor":"패스키를 삭제할 수 없습니다. 최소 하나의 2단계 인증 방법(TOTP 또는 패스키)이 필요합니다.","profile.passkey.manageModal.namePlaceholder":"패스키 이름 입력","profile.passkey.manageModal.cancelEdit":"취소","profile.passkey.manageModal.save":"저장","profile.passkey.manageModal.saving":"저장 중...","profile.passkey.manageModal.renameError":"패스키 이름 변경에 실패했습니다. 다시 시도해주세요.","profile.dangerZone.title":"위험 영역","profile.dangerZone.description":"계정 삭제와 같은 되돌릴 수 없는 작업","profile.deleteAccount.title":"계정 삭제","profile.deleteAccount.description":"계정을 영구적으로 삭제합니다","profile.deleteAccount.button":"계정 삭제","profile.deleteAccount.modal.title":"정말 계정을 삭제하시겠습니까?","profile.deleteAccount.modal.description":"이 작업은 되돌릴 수 없습니다. 모든 데이터가 {{days}}일 후에 영구적으로 삭제됩니다.","profile.deleteAccount.modal.warning":"삭제 후에는 이 이메일로 다시 가입할 수 없습니다.","profile.deleteAccount.modal.confirmLabel":'확인을 위해 "삭제"를 입력하세요',"profile.deleteAccount.modal.confirmPlaceholder":"삭제","profile.deleteAccount.modal.confirm":"계정 삭제","profile.deleteAccount.modal.confirming":"삭제 중...","profile.deleteAccount.modal.cancel":"취소","profile.deleteAccount.configManaged":"이 계정은 설정 파일로 관리되어 삭제할 수 없습니다","profile.deleteAccount.error":"계정 삭제에 실패했습니다","verifyTotp.title":"2단계 인증","verifyTotp.subtitle":"인증 앱의 코드를 입력하세요","verifyTotp.submit":"확인","verifyTotp.submitting":"확인 중...","verifyTotp.error.invalid":"잘못된 코드입니다. 다시 시도해주세요.","verifyTotp.error.expired":"세션이 만료되었습니다. 다시 로그인해주세요.","verifyTotp.redirecting":"{{seconds}}초 후 로그인 페이지로 이동합니다...","verifyTotp.redirectNow":"지금 로그인 페이지로 이동","verifyTotp.backToLogin":"로그인으로 돌아가기","verifyTotp.useRecoveryCode":"복구 코드 사용","verifyRecovery.title":"복구 코드","verifyRecovery.subtitle":"복구 코드 중 하나를 입력하세요","verifyRecovery.placeholder":"XXXX-XXXX-XXXX-XXXX","verifyRecovery.submit":"확인","verifyRecovery.submitting":"확인 중...","verifyRecovery.error.invalid":"유효하지 않은 복구 코드입니다. 다시 시도해주세요.","verifyRecovery.error.noCodesAvailable":"사용 가능한 복구 코드가 없습니다. 모든 코드가 사용되었습니다.","verifyRecovery.error.expired":"세션이 만료되었습니다. 다시 로그인해주세요.","verifyRecovery.backToTotp":"인증 앱으로 인증하기","verifyRecovery.backToLogin":"로그인으로 돌아가기","verifyRecovery.redirecting":"{{seconds}}초 후 로그인 페이지로 이동합니다...","verifyRecovery.redirectNow":"지금 로그인 페이지로 이동","setupTotp.title":"2단계 인증 설정","setupTotp.subtitle":"계정에 추가 보안 계층을 추가하세요","setupTotp.required":"계속하려면 2단계 인증이 필요합니다","setupTotp.qrDescription":"인증 앱(Google Authenticator, Authy 등)으로 QR 코드를 스캔하세요","setupTotp.manualEntry":"스캔할 수 없나요? 수동으로 코드를 입력하세요","setupTotp.next":"다음","setupTotp.back":"뒤로","setupTotp.verify":"확인","setupTotp.verifying":"확인 중...","setupTotp.verifyTitle":"인증 코드 확인","setupTotp.verifySubtitle":"인증 앱의 6자리 코드를 입력하세요","setupTotp.error.invalid":"잘못된 코드입니다. 다시 시도해주세요.","setupTotp.error.setupFailed":"설정을 시작하지 못했습니다. 다시 시도해주세요.","setupTotp.error.expired":"세션이 만료되었습니다. 다시 로그인해주세요.","setupTotp.error.alreadyEnabled":"2단계 인증이 이미 활성화되어 있습니다.","setupTotp.redirecting":"{{seconds}}초 후 로그인 페이지로 이동합니다...","setupTotp.redirectNow":"지금 로그인 페이지로 이동","setupTotp.goToProfile":"프로필로 이동","setupTotp.retry":"다시 시도","setupTotp.backToLogin":"로그인으로 돌아가기","setupTotp.recoveryCodes.title":"복구 코드를 저장하세요","setupTotp.recoveryCodes.description":"인증 앱에 접근할 수 없게 된 경우, 이 일회용 복구 코드를 사용하여 로그인할 수 있습니다. 각 코드는 한 번만 사용할 수 있습니다.","setupTotp.recoveryCodes.warning":"이 코드를 안전한 곳에 보관하세요. 다시 확인할 수 없습니다.","setupTotp.recoveryCodes.copy":"모든 코드 복사","setupTotp.recoveryCodes.copied":"복사되었습니다!","setupTotp.recoveryCodes.confirmCheckbox":"복구 코드를 안전한 곳에 저장했습니다","setupTotp.recoveryCodes.confirm":"설정 완료","verifyPasskey.title":"패스키 인증","verifyPasskey.subtitle":"패스키를 사용하여 로그인을 완료하세요","verifyPasskey.waiting":"브라우저 또는 기기의 안내를 따르세요...","verifyPasskey.retry":"다시 시도","verifyPasskey.error.expired":"세션이 만료되었습니다. 다시 로그인해주세요.","verifyPasskey.error.userMismatch":"이 패스키는 다른 계정에 등록되어 있습니다.","verifyPasskey.error.failed":"패스키 인증에 실패했습니다. 다시 시도해주세요.","verifyPasskey.backToLogin":"로그인으로 돌아가기","verify2fa.title":"2단계 인증","verify2fa.subtitle":"인증 방법을 선택하세요","verify2fa.totp.title":"인증 앱","verify2fa.totp.description":"앱의 6자리 코드 사용","verify2fa.passkey.title":"패스키","verify2fa.passkey.description":"지문, 얼굴 인식 또는 보안 키 사용","verify2fa.backToLogin":"로그인으로 돌아가기","setup2fa.title":"2단계 인증 설정","setup2fa.subtitle":"원하는 2단계 인증 방법을 선택하세요","setup2fa.required":"계속하려면 2단계 인증이 필요합니다","setup2fa.totp.title":"인증 앱","setup2fa.totp.description":"Google Authenticator, Authy 등 사용","setup2fa.passkey.title":"패스키","setup2fa.passkey.description":"지문, 얼굴 인식 또는 보안 키 사용","setup2fa.backToLogin":"로그인으로 돌아가기","setupPasskey.title":"패스키 설정","setupPasskey.subtitle":"안전한 인증을 위해 패스키를 등록하세요","setupPasskey.required":"계속하려면 2단계 인증이 필요합니다","setupPasskey.description":"패스키를 사용하면 지문, 얼굴 인식 또는 화면 잠금으로 안전하게 로그인할 수 있습니다.","setupPasskey.name.label":"패스키 이름 (선택)","setupPasskey.name.placeholder":"예: MacBook Pro, iPhone","setupPasskey.name.hint":"나중에 식별할 수 있도록 패스키에 이름을 지정하세요","setupPasskey.continue":"계속","setupPasskey.registering":"등록 중...","setupPasskey.waiting":"브라우저 또는 기기의 안내를 따르세요...","setupPasskey.retry":"다시 시도","setupPasskey.error.failed":"패스키 등록에 실패했습니다. 다시 시도해주세요.","setupPasskey.error.cancelled":"패스키 등록이 취소되었습니다.","setupPasskey.backToLogin":"로그인으로 돌아가기","terms.title":"약관 동의","terms.required":"필수","terms.optional":"선택","terms.agreeAll":"전체 동의","terms.agreeAllOptionalIncluded":"(선택 약관 포함)","terms.versionUpdated":"약관이 변경되었습니다. 새 버전에 동의해주세요.","terms.submit":"동의하고 계속하기","terms.error.title":"오류","terms.error.message":"약관 정보를 불러올 수 없습니다.","terms.error.back":"돌아가기","terms.error.submitFailed":"약관 동의 처리에 실패했습니다. 다시 시도해주세요.","terms.view":"보기"},sl="tinyauth-language",To={ko:{translation:nE,label:"한국어"},en:{translation:eE,label:"English"},ja:{translation:tE,label:"日本語"}},M6={ko:To.ko.label,en:To.en.label,ja:To.ja.label};function Oo(e){return e in To}function g4(e){return e.filter(Oo)}function v4(e,t){const a=navigator.language.split("-")[0];return a&&Oo(a)&&e.includes(a)?a:Oo(t)?t:"en"}function rE(e,t,a){const o=localStorage.getItem(sl);return o&&Oo(o)&&e.includes(o)?o:t==="auto"?v4(e,a):Oo(t)&&e.includes(t)?t:a}function aE(e){const{supportedLanguages:t,defaultLanguage:a,fallbackLanguage:o}=e,n=g4(t),s={};for(const m of n)s[m]={translation:To[m].translation};const c=Oo(o)?o:"en";s[c]||(s[c]={translation:To[c].translation});const d=rE(n,a,c);return Zt.use(KA).init({resources:s,lng:d,fallbackLng:c,supportedLngs:n,interpolation:{escapeValue:!1},react:{useSuspense:!1}}),Zt}class Bt extends Error{code;status;constructor(t,a,o){super(o),this.name="TinyAuthError",this.code=t,this.status=a}static async fromResponse(t){let a="UNKNOWN_ERROR",o=t.statusText||"An unknown error occurred";try{const n=await t.json();n.code&&(a=n.code),n.message&&(o=n.message)}catch{}return new Bt(a,t.status,o)}}const vm=new uk({defaultOptions:{queries:{retry:(e,t)=>t instanceof Bt&&t.status>=400&&t.status<500?!1:e<3},mutations:{retry:!1}}}),iE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M227,168a12,12,0,0,0-4.21-5.09C207.25,152.22,204,133.68,204,120c0-16.17,12.68-30.6,20.25-37.76a12,12,0,0,0,0-17.43C210.89,52.17,188.81,44,168,44a76.29,76.29,0,0,0-40,11.37,75.59,75.59,0,0,0-93.58,11A78.64,78.64,0,0,0,12,123.51,131,131,0,0,0,53.43,216,43.81,43.81,0,0,0,83.6,228h87.69a43.87,43.87,0,0,0,32.05-13.85,127.63,127.63,0,0,0,18.4-25.39c1.57-2.88,3-5.71,4.14-8.41C227.47,176.67,229.12,172.87,227,168Zm-41.23,29.82A19.78,19.78,0,0,1,171.29,204H83.6a19.85,19.85,0,0,1-13.7-5.42A107.18,107.18,0,0,1,36,122.88,54.49,54.49,0,0,1,51.5,83.28,50.86,50.86,0,0,1,88,68h.72A51.5,51.5,0,0,1,120.48,79.4a12,12,0,0,0,15,0A51.41,51.41,0,0,1,168,68a67.24,67.24,0,0,1,29.88,7.4C186.26,89.66,180,105.13,180,120c0,23.33,7.47,42.89,21.25,56.19A103.3,103.3,0,0,1,185.76,197.81ZM128.75,13A43.83,43.83,0,0,1,142.17,1.51a12,12,0,0,1,11.64,21,19.84,19.84,0,0,0-6.11,5.24A12,12,0,0,1,128.75,13Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,73.52Zm0,99.26c-16.79-11.53-24-30.87-24-52.78,0-18.3,11.68-34.81,24-46.48C204.53,62.66,185,56,168,56a63.72,63.72,0,0,0-40,14h0A63.71,63.71,0,0,0,88.88,56C52,55.5,23.06,86.3,24,123.19a119.62,119.62,0,0,0,37.65,84.12A32,32,0,0,0,83.6,216h87.7a31.75,31.75,0,0,0,23.26-10c15.85-17,21.44-33.2,21.44-33.2Z",opacity:"0.2"}),g.createElement("path",{d:"M223.3,169.59a8.07,8.07,0,0,0-2.8-3.4C203.53,154.53,200,134.64,200,120c0-17.67,13.47-33.06,21.5-40.67a8,8,0,0,0,0-11.62C208.82,55.74,187.82,48,168,48a72.23,72.23,0,0,0-40,12.13,71.56,71.56,0,0,0-90.71,9.09A74.63,74.63,0,0,0,16,123.4a127,127,0,0,0,40.14,89.73A39.8,39.8,0,0,0,83.59,224h87.68a39.84,39.84,0,0,0,29.12-12.57,125,125,0,0,0,17.82-24.6C225.23,174,224.33,172,223.3,169.59Zm-34.63,30.94a23.76,23.76,0,0,1-17.4,7.47H83.59a23.82,23.82,0,0,1-16.44-6.51A111.14,111.14,0,0,1,32,123,58.5,58.5,0,0,1,48.65,80.47,54.81,54.81,0,0,1,88,64h.78A55.45,55.45,0,0,1,123,76.28a8,8,0,0,0,10,0A55.39,55.39,0,0,1,168,64a70.64,70.64,0,0,1,36,10.35c-13,14.52-20,30.47-20,45.65,0,23.77,7.64,42.73,22.18,55.3A105.52,105.52,0,0,1,188.67,200.53ZM128.23,30A40,40,0,0,1,167,0h1a8,8,0,0,1,0,16h-1a24,24,0,0,0-23.24,18,8,8,0,1,1-15.5-4Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128.23,30A40,40,0,0,1,167,0h1a8,8,0,0,1,0,16h-1a24,24,0,0,0-23.24,18,8,8,0,1,1-15.5-4ZM223.3,169.59a8.07,8.07,0,0,0-2.8-3.4C203.53,154.53,200,134.64,200,120c0-17.67,13.47-33.06,21.5-40.67a8,8,0,0,0,0-11.62C208.82,55.74,187.82,48,168,48a72.23,72.23,0,0,0-40,12.13,71.56,71.56,0,0,0-90.71,9.09A74.63,74.63,0,0,0,16,123.4a127,127,0,0,0,40.14,89.73A39.8,39.8,0,0,0,83.59,224h87.68a39.84,39.84,0,0,0,29.12-12.57,125,125,0,0,0,17.82-24.6C225.23,174,224.33,172,223.3,169.59Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M219.4,167.84C201.71,155.69,198,135.12,198,120c0-18.42,13.86-34.29,22.12-42.12a6,6,0,0,0,0-8.71C208,57.7,187.07,50,168,50a70.23,70.23,0,0,0-40,12.55,69.6,69.6,0,0,0-89.31,8.08A72.63,72.63,0,0,0,18,123.35a125.11,125.11,0,0,0,39.53,88.33A37.85,37.85,0,0,0,83.6,222h87.7A37.83,37.83,0,0,0,199,210.07a122.6,122.6,0,0,0,17.54-24.2c6.55-12,5.77-13.75,5-15.48A6.07,6.07,0,0,0,219.4,167.84Zm-29.23,34A25.82,25.82,0,0,1,171.3,210H83.6A25.85,25.85,0,0,1,65.78,203,113.21,113.21,0,0,1,30,123a60.55,60.55,0,0,1,17.21-44A56.82,56.82,0,0,1,88,62h.81a57.35,57.35,0,0,1,35.44,12.71,6,6,0,0,0,7.5,0A57.39,57.39,0,0,1,168,62c13.89,0,28.81,4.68,39.11,12-9.44,10.14-21.1,26.59-21.1,46,0,23.78,7.81,42.6,22.66,54.77A107.33,107.33,0,0,1,190.17,201.89Zm-60-171.39A38,38,0,0,1,167,2h1a6,6,0,0,1,0,12h-1a26,26,0,0,0-25.18,19.5,6,6,0,1,1-11.62-3Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M223.3,169.59a8.07,8.07,0,0,0-2.8-3.4C203.53,154.53,200,134.64,200,120c0-17.67,13.47-33.06,21.5-40.67a8,8,0,0,0,0-11.62C208.82,55.74,187.82,48,168,48a72.2,72.2,0,0,0-40,12.13,71.56,71.56,0,0,0-90.71,9.09A74.63,74.63,0,0,0,16,123.4a127.06,127.06,0,0,0,40.14,89.73A39.8,39.8,0,0,0,83.59,224h87.68a39.84,39.84,0,0,0,29.12-12.57,125,125,0,0,0,17.82-24.6C225.23,174,224.33,172,223.3,169.59Zm-34.63,30.94a23.76,23.76,0,0,1-17.4,7.47H83.59a23.82,23.82,0,0,1-16.44-6.51A111.14,111.14,0,0,1,32,123,58.5,58.5,0,0,1,48.65,80.47,54.81,54.81,0,0,1,88,64h.78A55.45,55.45,0,0,1,123,76.28a8,8,0,0,0,10,0A55.44,55.44,0,0,1,168,64a70.64,70.64,0,0,1,36,10.35c-13,14.52-20,30.47-20,45.65,0,23.77,7.64,42.73,22.18,55.3A105.82,105.82,0,0,1,188.67,200.53ZM128.23,30A40,40,0,0,1,167,0h1a8,8,0,0,1,0,16h-1a24,24,0,0,0-23.24,18,8,8,0,1,1-15.5-4Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M218.27,169.49C199.86,156.84,196,135.6,196,120c0-19.17,14.25-35.53,22.75-43.57a4,4,0,0,0,0-5.81C207,59.48,186.59,52,168,52a68.3,68.3,0,0,0-40,13,67.61,67.61,0,0,0-87.88,7A70.65,70.65,0,0,0,20,123.3a123.11,123.11,0,0,0,38.9,86.92A35.81,35.81,0,0,0,83.6,220h87.7a35.84,35.84,0,0,0,26.19-11.3,119.93,119.93,0,0,0,17.24-23.79c6.08-11.1,5.42-12.62,4.94-13.72A4,4,0,0,0,218.27,169.49Zm-26.64,33.77A27.83,27.83,0,0,1,171.3,212H83.6a27.84,27.84,0,0,1-19.19-7.6A115.15,115.15,0,0,1,28,123.09,62.55,62.55,0,0,1,45.81,77.66,58.78,58.78,0,0,1,88,60h.84a59.37,59.37,0,0,1,36.66,13.15,4,4,0,0,0,5,0A59.35,59.35,0,0,1,168,60c15.12,0,31.45,5.41,42.11,13.73C200.68,83.42,188,100.16,188,120c0,23.79,8,42.44,23.12,54.17A107.64,107.64,0,0,1,191.63,203.26ZM132.13,31A36,36,0,0,1,167,4h1a4,4,0,0,1,0,8h-1a28,28,0,0,0-27.12,21A4,4,0,0,1,136,36a3.87,3.87,0,0,1-1-.13A4,4,0,0,1,132.13,31Z"}))]]),oE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),g.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),sE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),g.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),lE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm12,24.87a83.53,83.53,0,0,1,24,7.25V203.88a83.53,83.53,0,0,1-24,7.25ZM44,128a84.12,84.12,0,0,1,72-83.13V211.13A84.12,84.12,0,0,1,44,128Zm144,58.71V69.29a83.81,83.81,0,0,1,0,117.42Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M224,128a96,96,0,0,1-96,96V32A96,96,0,0,1,224,128Z",opacity:"0.2"}),g.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM40,128a88.11,88.11,0,0,1,80-87.63V215.63A88.11,88.11,0,0,1,40,128Zm96,87.63V40.37a88,88,0,0,1,0,175.26Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM40,128a88.1,88.1,0,0,1,88-88V216A88.1,88.1,0,0,1,40,128Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm6,12.2a89.86,89.86,0,0,1,20,3.63V214.17a89.86,89.86,0,0,1-20,3.63Zm32,8.23a90.48,90.48,0,0,1,20,12.81V196.76a90.48,90.48,0,0,1-20,12.81ZM38,128a90.12,90.12,0,0,1,84-89.8V217.8A90.12,90.12,0,0,1,38,128Zm160,56.5V71.5a89.81,89.81,0,0,1,0,113Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm8,16.37a86.4,86.4,0,0,1,16,3V212.67a86.4,86.4,0,0,1-16,3Zm32,9.26a87.81,87.81,0,0,1,16,10.54V195.83a87.81,87.81,0,0,1-16,10.54ZM40,128a88.11,88.11,0,0,1,80-87.63V215.63A88.11,88.11,0,0,1,40,128Zm160,50.54V77.46a87.82,87.82,0,0,1,0,101.08Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm4,8.09a91.58,91.58,0,0,1,24,4.27V215.64a91.58,91.58,0,0,1-24,4.27Zm32,7.25a92.21,92.21,0,0,1,24,15V197.69a92.21,92.21,0,0,1-24,15ZM36,128a92.11,92.11,0,0,1,88-91.91V219.91A92.11,92.11,0,0,1,36,128Zm160,61.9V66.1a91.83,91.83,0,0,1,0,123.8Z"}))]]),cE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M160,36A92.09,92.09,0,0,0,79,84.36,68,68,0,1,0,72,220h88a92,92,0,0,0,0-184Zm0,160H72a44,44,0,0,1-1.82-88A91.86,91.86,0,0,0,68,128a12,12,0,0,0,24,0,68,68,0,1,1,68,68Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M240,128a80,80,0,0,1-80,80H72A56,56,0,1,1,85.92,97.74l0,.1A80,80,0,0,1,240,128Z",opacity:"0.2"}),g.createElement("path",{d:"M160,40A88.09,88.09,0,0,0,81.29,88.67,64,64,0,1,0,72,216h88a88,88,0,0,0,0-176Zm0,160H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.11A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,72,72Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M160.06,40A88.1,88.1,0,0,0,81.29,88.67h0A87.48,87.48,0,0,0,72,127.73,8.18,8.18,0,0,1,64.57,136,8,8,0,0,1,56,128a103.66,103.66,0,0,1,5.34-32.92,4,4,0,0,0-4.75-5.18A64.09,64.09,0,0,0,8,152c0,35.19,29.75,64,65,64H160a88.09,88.09,0,0,0,87.93-91.48C246.11,77.54,207.07,40,160.06,40Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M160,42A86.11,86.11,0,0,0,82.43,90.88,62,62,0,1,0,72,214h88a86,86,0,0,0,0-172Zm0,160H72a50,50,0,0,1,0-100,50.67,50.67,0,0,1,5.91.35A85.61,85.61,0,0,0,74,128a6,6,0,0,0,12,0,74,74,0,1,1,74,74Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M160,40A88.09,88.09,0,0,0,81.29,88.67,64,64,0,1,0,72,216h88a88,88,0,0,0,0-176Zm0,160H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.11A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,72,72Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M160,44A84.11,84.11,0,0,0,83.59,93.12,60.71,60.71,0,0,0,72,92a60,60,0,0,0,0,120h88a84,84,0,0,0,0-168Zm0,160H72a52,52,0,1,1,8.55-103.3A83.66,83.66,0,0,0,76,128a4,4,0,0,0,8,0,76,76,0,1,1,76,76Z"}))]]),uE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"}),g.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"}))]]),dE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M176,12H80A28,28,0,0,0,52,40V216a28,28,0,0,0,28,28h96a28,28,0,0,0,28-28V40A28,28,0,0,0,176,12ZM76,76H180V180H76Zm4-40h96a4,4,0,0,1,4,4V52H76V40A4,4,0,0,1,80,36Zm96,184H80a4,4,0,0,1-4-4V204H180v12A4,4,0,0,1,176,220Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M192,56V200H64V56Z",opacity:"0.2"}),g.createElement("path",{d:"M176,16H80A24,24,0,0,0,56,40V216a24,24,0,0,0,24,24h96a24,24,0,0,0,24-24V40A24,24,0,0,0,176,16ZM72,64H184V192H72Zm8-32h96a8,8,0,0,1,8,8v8H72V40A8,8,0,0,1,80,32Zm96,192H80a8,8,0,0,1-8-8v-8H184v8A8,8,0,0,1,176,224Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M176,16H80A24,24,0,0,0,56,40V216a24,24,0,0,0,24,24h96a24,24,0,0,0,24-24V40A24,24,0,0,0,176,16ZM80,32h96a8,8,0,0,1,8,8v8H72V40A8,8,0,0,1,80,32Zm96,192H80a8,8,0,0,1-8-8v-8H184v8A8,8,0,0,1,176,224Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M176,18H80A22,22,0,0,0,58,40V216a22,22,0,0,0,22,22h96a22,22,0,0,0,22-22V40A22,22,0,0,0,176,18ZM70,62H186V194H70ZM80,30h96a10,10,0,0,1,10,10V50H70V40A10,10,0,0,1,80,30Zm96,196H80a10,10,0,0,1-10-10V206H186v10A10,10,0,0,1,176,226Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M176,16H80A24,24,0,0,0,56,40V216a24,24,0,0,0,24,24h96a24,24,0,0,0,24-24V40A24,24,0,0,0,176,16ZM72,64H184V192H72Zm8-32h96a8,8,0,0,1,8,8v8H72V40A8,8,0,0,1,80,32Zm96,192H80a8,8,0,0,1-8-8v-8H184v8A8,8,0,0,1,176,224Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M176,20H80A20,20,0,0,0,60,40V216a20,20,0,0,0,20,20h96a20,20,0,0,0,20-20V40A20,20,0,0,0,176,20ZM68,60H188V196H68ZM80,28h96a12,12,0,0,1,12,12V52H68V40A12,12,0,0,1,80,28Zm96,200H80a12,12,0,0,1-12-12V204H188v12A12,12,0,0,1,176,228Z"}))]]),fE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M224,44H32A12,12,0,0,0,20,56V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A12,12,0,0,0,224,44ZM193.15,68,128,127.72,62.85,68ZM44,188V83.28l75.89,69.57a12,12,0,0,0,16.22,0L212,83.28V188Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M224,56l-96,88L32,56Z",opacity:"0.2"}),g.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-8,144H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M224,50H32a6,6,0,0,0-6,6V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A6,6,0,0,0,224,50ZM208.58,62,128,135.86,47.42,62ZM216,194H40a2,2,0,0,1-2-2V69.64l86,78.78a6,6,0,0,0,8.1,0L218,69.64V192A2,2,0,0,1,216,194Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M224,52H32a4,4,0,0,0-4,4V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A4,4,0,0,0,224,52Zm-10.28,8L128,138.57,42.28,60ZM216,196H40a4,4,0,0,1-4-4V65.09L125.3,147a4,4,0,0,0,5.4,0L220,65.09V192A4,4,0,0,1,216,196Z"}))]]),mE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M160,128a224.48,224.48,0,0,1-26.37,105.54,12,12,0,1,1-21.16-11.32A200.33,200.33,0,0,0,136,128a8,8,0,0,0-16,0,12,12,0,0,1-24,0,32,32,0,0,1,64,0ZM128,56a12,12,0,1,0,0,24,48.05,48.05,0,0,1,48,48c0,7.62-.36,15.32-1.07,22.87A12,12,0,0,0,185.74,164c.38,0,.76,0,1.14,0a12,12,0,0,0,11.93-10.87c.79-8.3,1.18-16.76,1.18-25.13A72.08,72.08,0,0,0,128,56ZM96,92.23A12,12,0,0,0,80,74.35,72.1,72.1,0,0,0,56,128a120.11,120.11,0,0,1-15.12,58.37,12,12,0,0,0,21,11.69A144.14,144.14,0,0,0,80,128,48.08,48.08,0,0,1,96,92.23Zm10.1,64.1a12,12,0,0,0-14.46,8.9,158.61,158.61,0,0,1-18.88,45.86,12,12,0,0,0,20.5,12.48A182.86,182.86,0,0,0,115,170.79,12,12,0,0,0,106.1,156.33Zm76.73,24.07A12,12,0,0,0,168.19,189a241.5,241.5,0,0,1-8,24.87,12,12,0,0,0,6.91,15.49,11.76,11.76,0,0,0,4.29.8,12,12,0,0,0,11.21-7.71,260.2,260.2,0,0,0,8.79-27.37A12,12,0,0,0,182.83,180.4ZM128,16A112.12,112.12,0,0,0,16,127.44c0,.19,0,.38,0,.57a79.81,79.81,0,0,1-5,27.82,12,12,0,1,0,22.5,8.35A103.59,103.59,0,0,0,40,128.58c0-.19,0-.38,0-.57a88,88,0,0,1,176-.5c0,.16,0,.33,0,.5a282.12,282.12,0,0,1-6.74,61.38,12,12,0,0,0,9.09,14.33A11.84,11.84,0,0,0,221,204a12,12,0,0,0,11.7-9.38A305.87,305.87,0,0,0,240,128.55c0-.18,0-.36,0-.54A112.13,112.13,0,0,0,128,16Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),g.createElement("path",{d:"M72,128a134.63,134.63,0,0,1-14.16,60.47,8,8,0,1,1-14.32-7.12A118.8,118.8,0,0,0,56,128,71.73,71.73,0,0,1,83,71.8,8,8,0,1,1,93,84.29,55.76,55.76,0,0,0,72,128Zm56-8a8,8,0,0,0-8,8,184.12,184.12,0,0,1-23,89.1,8,8,0,0,0,14,7.76A200.19,200.19,0,0,0,136,128,8,8,0,0,0,128,120Zm0-32a40,40,0,0,0-40,40,8,8,0,0,0,16,0,24,24,0,0,1,48,0,214.09,214.09,0,0,1-20.51,92A8,8,0,1,0,146,226.83,230,230,0,0,0,168,128,40,40,0,0,0,128,88Zm0-64A104.11,104.11,0,0,0,24,128a87.76,87.76,0,0,1-5,29.33,8,8,0,0,0,15.09,5.33A103.9,103.9,0,0,0,40,128a88,88,0,0,1,176,0,282.24,282.24,0,0,1-5.29,54.45,8,8,0,0,0,6.3,9.4,8.22,8.22,0,0,0,1.55.15,8,8,0,0,0,7.84-6.45A298.37,298.37,0,0,0,232,128,104.12,104.12,0,0,0,128,24ZM94.4,152.17A8,8,0,0,0,85,158.42a151,151,0,0,1-17.21,45.44,8,8,0,0,0,13.86,8,166.67,166.67,0,0,0,19-50.25A8,8,0,0,0,94.4,152.17ZM128,56a72.85,72.85,0,0,0-9,.56,8,8,0,0,0,2,15.87A56.08,56.08,0,0,1,184,128a252.12,252.12,0,0,1-1.92,31A8,8,0,0,0,189,168a8.39,8.39,0,0,0,1,.06,8,8,0,0,0,7.92-7,266.48,266.48,0,0,0,2-33A72.08,72.08,0,0,0,128,56Zm57.93,128.25a8,8,0,0,0-9.75,5.75c-1.46,5.69-3.15,11.4-5,17a8,8,0,0,0,5,10.13,7.88,7.88,0,0,0,2.55.42,8,8,0,0,0,7.58-5.46c2-5.92,3.79-12,5.35-18.05A8,8,0,0,0,185.94,184.26Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M126.42,24C70.73,24.85,25.21,70.09,24,125.81a103.53,103.53,0,0,0,13.52,53.54,4,4,0,0,0,7.1-.3,119.35,119.35,0,0,0,11.37-51A71.77,71.77,0,0,1,83,71.83a8,8,0,1,1,9.86,12.61A55.82,55.82,0,0,0,72,128.07a135.28,135.28,0,0,1-18.45,68.35,4,4,0,0,0,.61,4.85c2,2,4.09,4,6.25,5.82a4,4,0,0,0,6-1A151.18,151.18,0,0,0,85,158.49a8,8,0,1,1,15.68,3.19,167.33,167.33,0,0,1-21.07,53.64,4,4,0,0,0,1.6,5.63c2.47,1.25,5,2.41,7.57,3.47a4,4,0,0,0,5-1.61A183,183,0,0,0,120,128.28a8.16,8.16,0,0,1,7.44-8.21,8,8,0,0,1,8.56,8,198.94,198.94,0,0,1-25.21,97.16,4,4,0,0,0,2.95,5.92q4.55.63,9.21.86a4,4,0,0,0,3.67-2.1A214.88,214.88,0,0,0,152,128.8c.05-13.25-10.3-24.49-23.54-24.74A24,24,0,0,0,104,128a8.1,8.1,0,0,1-7.29,8,8,8,0,0,1-8.71-8,40,40,0,0,1,40.42-40c22,.23,39.68,19.17,39.57,41.16a231.37,231.37,0,0,1-20.52,94.57,4,4,0,0,0,4.62,5.51,103.49,103.49,0,0,0,10.26-3,4,4,0,0,0,2.35-2.22,243.76,243.76,0,0,0,11.48-34,8,8,0,1,1,15.5,4q-1.12,4.37-2.4,8.7a4,4,0,0,0,6.46,4.17A104,104,0,0,0,126.42,24ZM198,161.08a8,8,0,0,1-7.92,7,8.39,8.39,0,0,1-1-.06,8,8,0,0,1-6.95-8.93,252.57,252.57,0,0,0,1.92-31,56.08,56.08,0,0,0-56-56,56.78,56.78,0,0,0-7,.43,8,8,0,0,1-2-15.89,72.1,72.1,0,0,1,81,71.49A266.93,266.93,0,0,1,198,161.08Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M70,128a132.68,132.68,0,0,1-14,59.58,6,6,0,0,1-5.38,3.33,6,6,0,0,1-5.36-8.67A120.74,120.74,0,0,0,58,128,69.72,69.72,0,0,1,84.25,73.36a6,6,0,0,1,7.51,9.37A57.73,57.73,0,0,0,70,128Zm58-6a6,6,0,0,0-6,6,186.07,186.07,0,0,1-23.23,90.07,6,6,0,0,0,10.5,5.82A198.14,198.14,0,0,0,134,128,6,6,0,0,0,128,122Zm0-32a38,38,0,0,0-38,38,6,6,0,0,0,12,0,26,26,0,0,1,52,0,216.06,216.06,0,0,1-20.71,92.85A6,6,0,1,0,144.16,226,227.94,227.94,0,0,0,166,128,38,38,0,0,0,128,90Zm0-64A102.11,102.11,0,0,0,26,128a90,90,0,0,1-5.12,30,6,6,0,1,0,11.31,4A101.83,101.83,0,0,0,38,128a90,90,0,0,1,180,0,284.7,284.7,0,0,1-5.33,54.84,6,6,0,0,0,4.72,7.05,6.8,6.8,0,0,0,1.17.11,6,6,0,0,0,5.88-4.84A295.92,295.92,0,0,0,230,128,102.12,102.12,0,0,0,128,26ZM94,154.13a6,6,0,0,0-7.07,4.69,152.82,152.82,0,0,1-17.44,46,6,6,0,0,0,10.4,6,164.77,164.77,0,0,0,18.8-49.65A6,6,0,0,0,94,154.13ZM128,58a70.76,70.76,0,0,0-8.75.54,6,6,0,1,0,1.49,11.91A58,58,0,0,1,186,128a252.27,252.27,0,0,1-1.94,31.26,6,6,0,0,0,5.21,6.69,6.59,6.59,0,0,0,.75,0,6,6,0,0,0,5.95-5.26A266.46,266.46,0,0,0,198,128,70.08,70.08,0,0,0,128,58ZM185.44,186.2a6,6,0,0,0-7.31,4.31c-1.47,5.74-3.18,11.49-5.06,17.09a6,6,0,0,0,11.38,3.82c2-5.88,3.75-11.9,5.3-17.92A6,6,0,0,0,185.44,186.2Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M72,128a134.63,134.63,0,0,1-14.16,60.47,8,8,0,1,1-14.32-7.12A118.8,118.8,0,0,0,56,128,71.73,71.73,0,0,1,83,71.8,8,8,0,1,1,93,84.29,55.76,55.76,0,0,0,72,128Zm56-8a8,8,0,0,0-8,8,184.12,184.12,0,0,1-23,89.1,8,8,0,0,0,14,7.76A200.19,200.19,0,0,0,136,128,8,8,0,0,0,128,120Zm0-32a40,40,0,0,0-40,40,8,8,0,0,0,16,0,24,24,0,0,1,48,0,214.09,214.09,0,0,1-20.51,92A8,8,0,1,0,146,226.83,230,230,0,0,0,168,128,40,40,0,0,0,128,88Zm0-64A104.11,104.11,0,0,0,24,128a87.76,87.76,0,0,1-5,29.33,8,8,0,0,0,15.09,5.33A103.9,103.9,0,0,0,40,128a88,88,0,0,1,176,0,282.24,282.24,0,0,1-5.29,54.45,8,8,0,0,0,6.3,9.4,8.22,8.22,0,0,0,1.55.15,8,8,0,0,0,7.84-6.45A298.37,298.37,0,0,0,232,128,104.12,104.12,0,0,0,128,24ZM94.4,152.17A8,8,0,0,0,85,158.42a151,151,0,0,1-17.21,45.44,8,8,0,0,0,13.86,8,166.67,166.67,0,0,0,19-50.25A8,8,0,0,0,94.4,152.17ZM128,56a72.85,72.85,0,0,0-9,.56,8,8,0,0,0,2,15.87A56.08,56.08,0,0,1,184,128a252.12,252.12,0,0,1-1.92,31A8,8,0,0,0,189,168a8.39,8.39,0,0,0,1,.06,8,8,0,0,0,7.92-7,266.48,266.48,0,0,0,2-33A72.08,72.08,0,0,0,128,56Zm57.93,128.25a8,8,0,0,0-9.75,5.75c-1.46,5.69-3.15,11.4-5,17a8,8,0,0,0,5,10.13,7.88,7.88,0,0,0,2.55.42,8,8,0,0,0,7.58-5.46c2-5.92,3.79-12,5.35-18.05A8,8,0,0,0,185.94,184.26Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M68,128A130.71,130.71,0,0,1,54.27,186.7a4,4,0,0,1-3.58,2.22,3.91,3.91,0,0,1-1.78-.42,4,4,0,0,1-1.8-5.36A122.71,122.71,0,0,0,60,128,67.74,67.74,0,0,1,85.5,74.92a4,4,0,0,1,5,6.25A59.74,59.74,0,0,0,68,128Zm60-4a4,4,0,0,0-4,4,188.1,188.1,0,0,1-23.48,91,4,4,0,0,0,7,3.88A196.22,196.22,0,0,0,132,128,4,4,0,0,0,128,124Zm0-32a36,36,0,0,0-36,36,4,4,0,0,0,8,0,28,28,0,0,1,56,0,218,218,0,0,1-20.9,93.7,4,4,0,1,0,7.24,3.41A226,226,0,0,0,164,128,36,36,0,0,0,128,92Zm0-64A100.11,100.11,0,0,0,28,128a91.66,91.66,0,0,1-5.24,30.67,4,4,0,1,0,7.54,2.66A99.66,99.66,0,0,0,36,128a92,92,0,0,1,184,0,286.37,286.37,0,0,1-5.37,55.23,4,4,0,0,0,3.15,4.69,4.13,4.13,0,0,0,.78.08,4,4,0,0,0,3.92-3.23A294.25,294.25,0,0,0,228,128,100.11,100.11,0,0,0,128,28ZM93.6,156.09a4,4,0,0,0-4.71,3.12,155,155,0,0,1-17.66,46.64,4,4,0,0,0,6.93,4,163.13,163.13,0,0,0,18.57-49A4,4,0,0,0,93.6,156.09ZM128,60a68.79,68.79,0,0,0-8.5.53,4,4,0,0,0,1,7.93A62.57,62.57,0,0,1,128,68a60.07,60.07,0,0,1,60,60,256.15,256.15,0,0,1-1.95,31.5,4,4,0,0,0,3.47,4.47l.5,0a4,4,0,0,0,4-3.51A264.37,264.37,0,0,0,196,128,68.08,68.08,0,0,0,128,60Zm56.93,128.12a4,4,0,0,0-4.87,2.88c-1.49,5.78-3.21,11.58-5.1,17.23a4,4,0,1,0,7.58,2.54c2-5.83,3.73-11.81,5.27-17.77A4,4,0,0,0,184.94,188.13Z"}))]]),pE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.1,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M207.86,123.18l16.78-21a99.14,99.14,0,0,0-10.07-24.29l-26.7-3a81,81,0,0,0-6.81-6.81l-3-26.71a99.43,99.43,0,0,0-24.3-10l-21,16.77a81.59,81.59,0,0,0-9.64,0l-21-16.78A99.14,99.14,0,0,0,77.91,41.43l-3,26.7a81,81,0,0,0-6.81,6.81l-26.71,3a99.43,99.43,0,0,0-10,24.3l16.77,21a81.59,81.59,0,0,0,0,9.64l-16.78,21a99.14,99.14,0,0,0,10.07,24.29l26.7,3a81,81,0,0,0,6.81,6.81l3,26.71a99.43,99.43,0,0,0,24.3,10l21-16.77a81.59,81.59,0,0,0,9.64,0l21,16.78a99.14,99.14,0,0,0,24.29-10.07l3-26.7a81,81,0,0,0,6.81-6.81l26.71-3a99.43,99.43,0,0,0,10-24.3l-16.77-21A81.59,81.59,0,0,0,207.86,123.18ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),g.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8.06,8.06,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8.06,8.06,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm83.93-32.49q.13-3.51,0-7l15.83-19.79a4,4,0,0,0,.75-3.53A103.64,103.64,0,0,0,218,75.9a4,4,0,0,0-3-2l-25.19-2.8c-1.58-1.71-3.24-3.37-4.95-4.95L182.07,41a4,4,0,0,0-2-3A104,104,0,0,0,154.82,27.5a4,4,0,0,0-3.53.74L131.51,44.07q-3.51-.14-7,0L104.7,28.24a4,4,0,0,0-3.53-.75A103.64,103.64,0,0,0,75.9,38a4,4,0,0,0-2,3l-2.8,25.19c-1.71,1.58-3.37,3.24-4.95,4.95L41,73.93a4,4,0,0,0-3,2A104,104,0,0,0,27.5,101.18a4,4,0,0,0,.74,3.53l15.83,19.78q-.14,3.51,0,7L28.24,151.3a4,4,0,0,0-.75,3.53A103.64,103.64,0,0,0,38,180.1a4,4,0,0,0,3,2l25.19,2.8c1.58,1.71,3.24,3.37,4.95,4.95l2.8,25.2a4,4,0,0,0,2,3,104,104,0,0,0,25.28,10.46,4,4,0,0,0,3.53-.74l19.78-15.83q3.51.13,7,0l19.79,15.83a4,4,0,0,0,2.5.88,4,4,0,0,0,1-.13A103.64,103.64,0,0,0,180.1,218a4,4,0,0,0,2-3l2.8-25.19c1.71-1.58,3.37-3.24,4.95-4.95l25.2-2.8a4,4,0,0,0,3-2,104,104,0,0,0,10.46-25.28,4,4,0,0,0-.74-3.53Zm.17,42.83-24.67,2.74a4,4,0,0,0-2.55,1.32,76.2,76.2,0,0,1-6.48,6.48,4,4,0,0,0-1.32,2.55l-2.74,24.66a95.45,95.45,0,0,1-19.64,8.15l-19.38-15.51a4,4,0,0,0-2.5-.87h-.24a73.67,73.67,0,0,1-9.16,0,4,4,0,0,0-2.74.87l-19.37,15.5a95.33,95.33,0,0,1-19.65-8.13l-2.74-24.67a4,4,0,0,0-1.32-2.55,76.2,76.2,0,0,1-6.48-6.48,4,4,0,0,0-2.55-1.32l-24.66-2.74a95.45,95.45,0,0,1-8.15-19.64l15.51-19.38a4,4,0,0,0,.87-2.74,77.76,77.76,0,0,1,0-9.16,4,4,0,0,0-.87-2.74l-15.5-19.37A95.33,95.33,0,0,1,43.9,81.66l24.67-2.74a4,4,0,0,0,2.55-1.32,76.2,76.2,0,0,1,6.48-6.48,4,4,0,0,0,1.32-2.55l2.74-24.66a95.45,95.45,0,0,1,19.64-8.15l19.38,15.51a4,4,0,0,0,2.74.87,73.67,73.67,0,0,1,9.16,0,4,4,0,0,0,2.74-.87l19.37-15.5a95.33,95.33,0,0,1,19.65,8.13l2.74,24.67a4,4,0,0,0,1.32,2.55,76.2,76.2,0,0,1,6.48,6.48,4,4,0,0,0,2.55,1.32l24.66,2.74a95.45,95.45,0,0,1,8.15,19.64l-15.51,19.38a4,4,0,0,0-.87,2.74,77.76,77.76,0,0,1,0,9.16,4,4,0,0,0,.87,2.74l15.5,19.37A95.33,95.33,0,0,1,212.1,174.34Z"}))]]),hE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M212.62,75.17A63.7,63.7,0,0,0,206.39,26,12,12,0,0,0,196,20a63.71,63.71,0,0,0-50,24H126A63.71,63.71,0,0,0,76,20a12,12,0,0,0-10.39,6,63.7,63.7,0,0,0-6.23,49.17A61.5,61.5,0,0,0,52,104v8a60.1,60.1,0,0,0,45.76,58.28A43.66,43.66,0,0,0,92,192v4H76a20,20,0,0,1-20-20,44.05,44.05,0,0,0-44-44,12,12,0,0,0,0,24,20,20,0,0,1,20,20,44.05,44.05,0,0,0,44,44H92v12a12,12,0,0,0,24,0V192a20,20,0,0,1,40,0v40a12,12,0,0,0,24,0V192a43.66,43.66,0,0,0-5.76-21.72A60.1,60.1,0,0,0,220,112v-8A61.5,61.5,0,0,0,212.62,75.17ZM196,112a36,36,0,0,1-36,36H112a36,36,0,0,1-36-36v-8a37.87,37.87,0,0,1,6.13-20.12,11.65,11.65,0,0,0,1.58-11.49,39.9,39.9,0,0,1-.4-27.72,39.87,39.87,0,0,1,26.41,17.8A12,12,0,0,0,119.82,68h32.35a12,12,0,0,0,10.11-5.53,39.84,39.84,0,0,1,26.41-17.8,39.9,39.9,0,0,1-.4,27.72,12,12,0,0,0,1.61,11.53A37.85,37.85,0,0,1,196,104Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208,104v8a48,48,0,0,1-48,48H136a32,32,0,0,1,32,32v40H104V192a32,32,0,0,1,32-32H112a48,48,0,0,1-48-48v-8a49.28,49.28,0,0,1,8.51-27.3A51.92,51.92,0,0,1,76,32a52,52,0,0,1,43.83,24h32.34A52,52,0,0,1,196,32a51.92,51.92,0,0,1,3.49,44.7A49.28,49.28,0,0,1,208,104Z",opacity:"0.2"}),g.createElement("path",{d:"M208.3,75.68A59.74,59.74,0,0,0,202.93,28,8,8,0,0,0,196,24a59.75,59.75,0,0,0-48,24H124A59.75,59.75,0,0,0,76,24a8,8,0,0,0-6.93,4,59.78,59.78,0,0,0-5.38,47.68A58.14,58.14,0,0,0,56,104v8a56.06,56.06,0,0,0,48.44,55.47A39.8,39.8,0,0,0,96,192v8H72a24,24,0,0,1-24-24A40,40,0,0,0,8,136a8,8,0,0,0,0,16,24,24,0,0,1,24,24,40,40,0,0,0,40,40H96v16a8,8,0,0,0,16,0V192a24,24,0,0,1,48,0v40a8,8,0,0,0,16,0V192a39.8,39.8,0,0,0-8.44-24.53A56.06,56.06,0,0,0,216,112v-8A58,58,0,0,0,208.3,75.68ZM200,112a40,40,0,0,1-40,40H112a40,40,0,0,1-40-40v-8a41.74,41.74,0,0,1,6.9-22.48A8,8,0,0,0,80,73.83a43.81,43.81,0,0,1,.79-33.58,43.88,43.88,0,0,1,32.32,20.06A8,8,0,0,0,119.82,64h32.35a8,8,0,0,0,6.74-3.69,43.87,43.87,0,0,1,32.32-20.06A43.81,43.81,0,0,1,192,73.83a8.09,8.09,0,0,0,1,7.65A41.76,41.76,0,0,1,200,104Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,104v8a56.06,56.06,0,0,1-48.44,55.47A39.8,39.8,0,0,1,176,192v40a8,8,0,0,1-8,8H104a8,8,0,0,1-8-8V216H72a40,40,0,0,1-40-40A24,24,0,0,0,8,152a8,8,0,0,1,0-16,40,40,0,0,1,40,40,24,24,0,0,0,24,24H96v-8a39.8,39.8,0,0,1,8.44-24.53A56.06,56.06,0,0,1,56,112v-8a58.14,58.14,0,0,1,7.69-28.32A59.78,59.78,0,0,1,69.07,28,8,8,0,0,1,76,24a59.75,59.75,0,0,1,48,24h24a59.75,59.75,0,0,1,48-24,8,8,0,0,1,6.93,4,59.74,59.74,0,0,1,5.37,47.68A58,58,0,0,1,216,104Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M206.13,75.92A57.79,57.79,0,0,0,201.2,29a6,6,0,0,0-5.2-3,57.77,57.77,0,0,0-47,24H123A57.77,57.77,0,0,0,76,26a6,6,0,0,0-5.2,3,57.79,57.79,0,0,0-4.93,46.92A55.88,55.88,0,0,0,58,104v8a54.06,54.06,0,0,0,50.45,53.87A37.85,37.85,0,0,0,98,192v10H72a26,26,0,0,1-26-26A38,38,0,0,0,8,138a6,6,0,0,0,0,12,26,26,0,0,1,26,26,38,38,0,0,0,38,38H98v18a6,6,0,0,0,12,0V192a26,26,0,0,1,52,0v40a6,6,0,0,0,12,0V192a37.85,37.85,0,0,0-10.45-26.13A54.06,54.06,0,0,0,214,112v-8A55.88,55.88,0,0,0,206.13,75.92ZM202,112a42,42,0,0,1-42,42H112a42,42,0,0,1-42-42v-8a43.86,43.86,0,0,1,7.3-23.69,6,6,0,0,0,.81-5.76,45.85,45.85,0,0,1,1.43-36.42,45.85,45.85,0,0,1,35.23,21.1A6,6,0,0,0,119.83,62h32.34a6,6,0,0,0,5.06-2.76,45.83,45.83,0,0,1,35.23-21.11,45.85,45.85,0,0,1,1.43,36.42,6,6,0,0,0,.79,5.74A43.78,43.78,0,0,1,202,104Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208.31,75.68A59.78,59.78,0,0,0,202.93,28,8,8,0,0,0,196,24a59.75,59.75,0,0,0-48,24H124A59.75,59.75,0,0,0,76,24a8,8,0,0,0-6.93,4,59.78,59.78,0,0,0-5.38,47.68A58.14,58.14,0,0,0,56,104v8a56.06,56.06,0,0,0,48.44,55.47A39.8,39.8,0,0,0,96,192v8H72a24,24,0,0,1-24-24A40,40,0,0,0,8,136a8,8,0,0,0,0,16,24,24,0,0,1,24,24,40,40,0,0,0,40,40H96v16a8,8,0,0,0,16,0V192a24,24,0,0,1,48,0v40a8,8,0,0,0,16,0V192a39.8,39.8,0,0,0-8.44-24.53A56.06,56.06,0,0,0,216,112v-8A58.14,58.14,0,0,0,208.31,75.68ZM200,112a40,40,0,0,1-40,40H112a40,40,0,0,1-40-40v-8a41.74,41.74,0,0,1,6.9-22.48A8,8,0,0,0,80,73.83a43.81,43.81,0,0,1,.79-33.58,43.88,43.88,0,0,1,32.32,20.06A8,8,0,0,0,119.82,64h32.35a8,8,0,0,0,6.74-3.69,43.87,43.87,0,0,1,32.32-20.06A43.81,43.81,0,0,1,192,73.83a8.09,8.09,0,0,0,1,7.65A41.72,41.72,0,0,1,200,104Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M203.94,76.16A55.73,55.73,0,0,0,199.46,30,4,4,0,0,0,196,28a55.78,55.78,0,0,0-46,24H122A55.78,55.78,0,0,0,76,28a4,4,0,0,0-3.46,2,55.73,55.73,0,0,0-4.48,46.16A53.78,53.78,0,0,0,60,104v8a52.06,52.06,0,0,0,52,52h1.41A36,36,0,0,0,100,192v12H72a28,28,0,0,1-28-28A36,36,0,0,0,8,140a4,4,0,0,0,0,8,28,28,0,0,1,28,28,36,36,0,0,0,36,36h28v20a4,4,0,0,0,8,0V192a28,28,0,0,1,56,0v40a4,4,0,0,0,8,0V192a36,36,0,0,0-13.41-28H160a52.06,52.06,0,0,0,52-52v-8A53.78,53.78,0,0,0,203.94,76.16ZM204,112a44.05,44.05,0,0,1-44,44H112a44.05,44.05,0,0,1-44-44v-8a45.76,45.76,0,0,1,7.71-24.89,4,4,0,0,0,.53-3.84,47.82,47.82,0,0,1,2.1-39.21,47.8,47.8,0,0,1,38.12,22.1A4,4,0,0,0,119.83,60h32.34a4,4,0,0,0,3.37-1.84,47.8,47.8,0,0,1,38.12-22.1,47.82,47.82,0,0,1,2.1,39.21,4,4,0,0,0,.53,3.83A45.85,45.85,0,0,1,204,104Z"}))]]),gE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M228,128a100,100,0,1,1-22.86-63.64,12,12,0,0,1-18.51,15.28A76,76,0,1,0,203.05,140H128a12,12,0,0,1,0-24h88A12,12,0,0,1,228,128Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),g.createElement("path",{d:"M224,128a96,96,0,1,1-21.95-61.09,8,8,0,1,1-12.33,10.18A80,80,0,1,0,207.6,136H128a8,8,0,0,1,0-16h88A8,8,0,0,1,224,128Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104,104,0,0,0,128,24Zm0,184A80,80,0,1,1,181.34,68.37a8,8,0,0,1-10.67,11.92A64,64,0,1,0,191.5,136H128a8,8,0,0,1,0-16h72a8,8,0,0,1,8,8A80.09,80.09,0,0,1,128,208Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M222,128a94,94,0,1,1-21.49-59.82,6,6,0,1,1-9.25,7.64A82,82,0,1,0,209.78,134H128a6,6,0,0,1,0-12h88A6,6,0,0,1,222,128Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M224,128a96,96,0,1,1-21.95-61.09,8,8,0,1,1-12.33,10.18A80,80,0,1,0,207.6,136H128a8,8,0,0,1,0-16h88A8,8,0,0,1,224,128Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M220,128a92,92,0,1,1-21-58.55,4,4,0,0,1-6.17,5.1A84,84,0,1,0,211.91,132H128a4,4,0,0,1,0-8h88A4,4,0,0,1,220,128Z"}))]]),vE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z",opacity:"0.2"}),g.createElement("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z"}))]]),yE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),g.createElement("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),bE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M196,76a16,16,0,1,1-16-16A16,16,0,0,1,196,76Zm48,22.74A84.3,84.3,0,0,1,160.11,180H160a83.52,83.52,0,0,1-23.65-3.38l-7.86,7.87A12,12,0,0,1,120,188H108v12a12,12,0,0,1-12,12H84v12a12,12,0,0,1-12,12H40a20,20,0,0,1-20-20V187.31a19.86,19.86,0,0,1,5.86-14.14l53.52-53.52A84,84,0,1,1,244,98.74ZM202.43,53.57A59.48,59.48,0,0,0,158,36c-32,1-58,27.89-58,59.89a59.69,59.69,0,0,0,4.2,22.19,12,12,0,0,1-2.55,13.21L44,189v23H60V200a12,12,0,0,1,12-12H84V176a12,12,0,0,1,12-12h19l9.65-9.65a12,12,0,0,1,13.22-2.55A59.58,59.58,0,0,0,160,156h.08c32,0,58.87-26.07,59.89-58A59.55,59.55,0,0,0,202.43,53.57Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M232,98.36C230.73,136.92,198.67,168,160.09,168a71.68,71.68,0,0,1-26.92-5.17h0L120,176H96v24H72v24H40a8,8,0,0,1-8-8V187.31a8,8,0,0,1,2.34-5.65l58.83-58.83h0A71.68,71.68,0,0,1,88,95.91c0-38.58,31.08-70.64,69.64-71.87A72,72,0,0,1,232,98.36Z",opacity:"0.2"}),g.createElement("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM180,92a16,16,0,1,1,16-16A16,16,0,0,1,180,92Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M215.15,40.85A78,78,0,0,0,86.2,121.31l-56.1,56.1a13.94,13.94,0,0,0-4.1,9.9V216a14,14,0,0,0,14,14H72a6,6,0,0,0,6-6V206H96a6,6,0,0,0,6-6V182h18a6,6,0,0,0,4.24-1.76l10.45-10.44A77.59,77.59,0,0,0,160,174h.1A78,78,0,0,0,215.15,40.85ZM226,98.16c-1.12,35.16-30.67,63.8-65.88,63.84a65.93,65.93,0,0,1-24.51-4.67,6,6,0,0,0-6.64,1.26L117.51,170H96a6,6,0,0,0-6,6v18H72a6,6,0,0,0-6,6v18H40a2,2,0,0,1-2-2V187.31a2,2,0,0,1,.58-1.41l58.83-58.83a6,6,0,0,0,1.26-6.64A65.61,65.61,0,0,1,94,95.92C94,60.71,122.68,31.16,157.83,30A66,66,0,0,1,226,98.16ZM190,76a10,10,0,1,1-10-10A10,10,0,0,1,190,76Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M213.74,42.26A76,76,0,0,0,88.51,121.84l-57,57A11.93,11.93,0,0,0,28,187.31V216a12,12,0,0,0,12,12H72a4,4,0,0,0,4-4V204H96a4,4,0,0,0,4-4V180h20a4,4,0,0,0,2.83-1.17l11.33-11.34A75.72,75.72,0,0,0,160,172h.1A76,76,0,0,0,213.74,42.26Zm14.22,56c-1.15,36.22-31.6,65.72-67.87,65.77H160a67.52,67.52,0,0,1-25.21-4.83,4,4,0,0,0-4.45.83l-12,12H96a4,4,0,0,0-4,4v20H72a4,4,0,0,0-4,4v20H40a4,4,0,0,1-4-4V187.31a4.06,4.06,0,0,1,1.17-2.83L96,125.66a4,4,0,0,0,.83-4.45A67.51,67.51,0,0,1,92,95.91C92,59.64,121.55,29.19,157.77,28A68,68,0,0,1,228,98.23ZM188,76a8,8,0,1,1-8-8A8,8,0,0,1,188,76Z"}))]]),_E=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M117.18,188.74a12,12,0,0,1,0,17l-5.12,5.12A58.26,58.26,0,0,1,70.6,228h0A58.62,58.62,0,0,1,29.14,127.92L63.89,93.17a58.64,58.64,0,0,1,98.56,28.11,12,12,0,1,1-23.37,5.44,34.65,34.65,0,0,0-58.22-16.58L46.11,144.89A34.62,34.62,0,0,0,70.57,204h0a34.41,34.41,0,0,0,24.49-10.14l5.11-5.12A12,12,0,0,1,117.18,188.74ZM226.83,45.17a58.65,58.65,0,0,0-82.93,0l-5.11,5.11a12,12,0,0,0,17,17l5.12-5.12a34.63,34.63,0,1,1,49,49L175.1,145.86A34.39,34.39,0,0,1,150.61,156h0a34.63,34.63,0,0,1-33.69-26.72,12,12,0,0,0-23.38,5.44A58.64,58.64,0,0,0,150.56,180h.05a58.28,58.28,0,0,0,41.47-17.17l34.75-34.75a58.62,58.62,0,0,0,0-82.91Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M218.34,119.6,183.6,154.34a46.58,46.58,0,0,1-44.31,12.26c-.31.34-.62.67-.95,1L103.6,202.34A46.63,46.63,0,1,1,37.66,136.4L72.4,101.66A46.6,46.6,0,0,1,116.71,89.4c.31-.34.62-.67,1-1L152.4,53.66a46.63,46.63,0,0,1,65.94,65.94Z",opacity:"0.2"}),g.createElement("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,7.78,8.22H152a8,8,0,0,0,8-7.78A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM115.7,192.49a43.31,43.31,0,0,1-55-66.43l25.37-25.37a43.35,43.35,0,0,1,61.25,0,42.9,42.9,0,0,1,9.95,15.43,8,8,0,1,1-15,5.6A27.33,27.33,0,0,0,97.37,112L72,137.37a27.32,27.32,0,0,0,34.68,41.91,8,8,0,1,1,9,13.21Zm79.61-62.55-25.37,25.37A43,43,0,0,1,139.32,168h0a43.35,43.35,0,0,1-40.53-28.12,8,8,0,1,1,15-5.6A27.35,27.35,0,0,0,139.28,152h0a27.14,27.14,0,0,0,19.32-8L184,118.63a27.32,27.32,0,0,0-34.68-41.91,8,8,0,1,1-9-13.21,43.32,43.32,0,0,1,55,66.43Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M238,88.18a52.42,52.42,0,0,1-15.4,35.66l-34.75,34.75A52.28,52.28,0,0,1,150.62,174h-.05A52.63,52.63,0,0,1,98,119.9a6,6,0,0,1,6-5.84h.17a6,6,0,0,1,5.83,6.16A40.62,40.62,0,0,0,150.58,162h0a40.4,40.4,0,0,0,28.73-11.9l34.75-34.74A40.63,40.63,0,0,0,156.63,57.9l-11,11a6,6,0,0,1-8.49-8.49l11-11a52.62,52.62,0,0,1,74.43,0A52.83,52.83,0,0,1,238,88.18Zm-127.62,98.9-11,11A40.36,40.36,0,0,1,70.6,210h0a40.63,40.63,0,0,1-28.7-69.36L76.62,105.9A40.63,40.63,0,0,1,146,135.77a6,6,0,0,0,5.83,6.16H152a6,6,0,0,0,6-5.84A52.63,52.63,0,0,0,68.14,97.42L33.38,132.16A52.63,52.63,0,0,0,70.56,222h0a52.26,52.26,0,0,0,37.22-15.42l11-11a6,6,0,1,0-8.49-8.48Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,16,.45A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M236,88.12a50.44,50.44,0,0,1-14.81,34.31l-34.75,34.74A50.33,50.33,0,0,1,150.62,172h-.05A50.63,50.63,0,0,1,100,120a4,4,0,0,1,4-3.89h.11a4,4,0,0,1,3.89,4.11A42.64,42.64,0,0,0,150.58,164h0a42.32,42.32,0,0,0,30.14-12.49l34.75-34.74a42.63,42.63,0,1,0-60.29-60.28l-11,11a4,4,0,0,1-5.66-5.65l11-11A50.64,50.64,0,0,1,236,88.12ZM111.78,188.49l-11,11A42.33,42.33,0,0,1,70.6,212h0a42.63,42.63,0,0,1-30.11-72.77l34.75-34.74A42.63,42.63,0,0,1,148,135.82a4,4,0,0,0,8,.23A50.64,50.64,0,0,0,69.55,98.83L34.8,133.57A50.63,50.63,0,0,0,70.56,220h0a50.33,50.33,0,0,0,35.81-14.83l11-11a4,4,0,1,0-5.65-5.66Z"}))]]),xE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M195.8,60.2a28,28,0,0,0-39.51-.09L144.68,72.28a12,12,0,1,1-17.36-16.56L139,43.43l.2-.2a52,52,0,0,1,73.54,73.54l-.2.2-12.29,11.71a12,12,0,0,1-16.56-17.36l12.17-11.61A28,28,0,0,0,195.8,60.2ZM111.32,183.72,99.71,195.89a28,28,0,0,1-39.6-39.6l12.17-11.61a12,12,0,0,0-16.56-17.36L43.43,139l-.2.2a52,52,0,0,0,73.54,73.54l.2-.2,11.71-12.29a12,12,0,1,0-17.36-16.56ZM216,148H192a12,12,0,0,0,0,24h24a12,12,0,0,0,0-24ZM40,108H64a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm120,72a12,12,0,0,0-12,12v24a12,12,0,0,0,24,0V192A12,12,0,0,0,160,180ZM96,76a12,12,0,0,0,12-12V40a12,12,0,0,0-24,0V64A12,12,0,0,0,96,76Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M204.28,108.28l-96,96a40,40,0,0,1-56.56-56.56l96-96a40,40,0,0,1,56.56,56.56Z",opacity:"0.2"}),g.createElement("path",{d:"M198.63,57.37a32,32,0,0,0-45.19-.06L141.79,69.52a8,8,0,0,1-11.58-11l11.72-12.29a1.59,1.59,0,0,1,.13-.13,48,48,0,0,1,67.88,67.88,1.59,1.59,0,0,1-.13.13l-12.29,11.72a8,8,0,0,1-11-11.58l12.21-11.65A32,32,0,0,0,198.63,57.37ZM114.21,186.48l-11.65,12.21a32,32,0,0,1-45.25-45.25l12.21-11.65a8,8,0,0,0-11-11.58L46.19,141.93a1.59,1.59,0,0,0-.13.13,48,48,0,0,0,67.88,67.88,1.59,1.59,0,0,0,.13-.13l11.72-12.29a8,8,0,1,0-11.58-11ZM216,152H192a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16ZM40,104H64a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm120,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V192A8,8,0,0,0,160,184ZM96,72a8,8,0,0,0,8-8V40a8,8,0,0,0-16,0V64A8,8,0,0,0,96,72Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM96,64a8,8,0,0,1,16,0V80a8,8,0,0,1-16,0ZM64,96H80a8,8,0,0,1,0,16H64a8,8,0,0,1,0-16Zm64.08,85.66-7.21,7.21a38,38,0,1,1-53.74-53.74l7.21-7.21a8,8,0,1,1,11.32,11.31l-7.22,7.21a22,22,0,0,0,31.12,31.12l7.21-7.22a8,8,0,1,1,11.31,11.32ZM160,192a8,8,0,0,1-16,0V176a8,8,0,0,1,16,0Zm32-32H176a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm-3.13-39.13-7.21,7.21a8,8,0,1,1-11.32-11.31l7.22-7.21a22,22,0,0,0-31.12-31.12l-7.21,7.22a8,8,0,1,1-11.31-11.32l7.21-7.21a38,38,0,1,1,53.74,53.74Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M200,56a34,34,0,0,0-48-.05L140.34,68.14a6,6,0,1,1-8.68-8.28l11.71-12.28.1-.11a46,46,0,0,1,65.06,65.06l-.11.1-12.28,11.71a6,6,0,1,1-8.28-8.68L200.09,104A34,34,0,0,0,200,56Zm-84.38,131.9L104,200.09A34,34,0,0,1,55.91,152l12.23-11.67a6,6,0,0,0-8.28-8.68L47.58,143.37l-.11.1a46,46,0,0,0,65.06,65.06l.1-.11,11.71-12.28a6,6,0,1,0-8.68-8.28ZM216,154H192a6,6,0,0,0,0,12h24a6,6,0,0,0,0-12ZM40,102H64a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm120,84a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V192A6,6,0,0,0,160,186ZM96,70a6,6,0,0,0,6-6V40a6,6,0,0,0-12,0V64A6,6,0,0,0,96,70Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M198.63,57.37a32,32,0,0,0-45.19-.06L141.79,69.52a8,8,0,0,1-11.58-11l11.72-12.29a1.59,1.59,0,0,1,.13-.13,48,48,0,0,1,67.88,67.88,1.59,1.59,0,0,1-.13.13l-12.29,11.72a8,8,0,0,1-11-11.58l12.21-11.65A32,32,0,0,0,198.63,57.37ZM114.21,186.48l-11.65,12.21a32,32,0,0,1-45.25-45.25l12.21-11.65a8,8,0,0,0-11-11.58L46.19,141.93a1.59,1.59,0,0,0-.13.13,48,48,0,0,0,67.88,67.88,1.59,1.59,0,0,0,.13-.13l11.72-12.29a8,8,0,1,0-11.58-11ZM216,152H192a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16ZM40,104H64a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm120,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V192A8,8,0,0,0,160,184ZM96,72a8,8,0,0,0,8-8V40a8,8,0,0,0-16,0V64A8,8,0,0,0,96,72Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M201.46,54.54a36.06,36.06,0,0,0-50.92,0L138.89,66.76a4,4,0,0,1-5.78-5.52L144.82,49a44,44,0,1,1,62.29,62.15l-12.35,11.78a4,4,0,0,1-5.52-5.78l12.28-11.72A36,36,0,0,0,201.46,54.54Zm-84.35,134.7-11.65,12.22a36,36,0,0,1-51-50.85l12.28-11.72a4,4,0,0,0-5.52-5.78L48.89,144.89A44,44,0,1,0,111.18,207l11.71-12.28a4,4,0,1,0-5.78-5.52ZM216,156H192a4,4,0,0,0,0,8h24a4,4,0,0,0,0-8ZM40,100H64a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm120,88a4,4,0,0,0-4,4v24a4,4,0,0,0,8,0V192A4,4,0,0,0,160,188ZM96,68a4,4,0,0,0,4-4V40a4,4,0,0,0-8,0V64A4,4,0,0,0,96,68Z"}))]]),SE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Zm-60-52a16,16,0,1,1-16-16A16,16,0,0,1,144,152Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z",opacity:"0.2"}),g.createElement("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80Zm-80,84a12,12,0,1,1,12-12A12,12,0,0,1,128,164Zm32-84H96V56a32,32,0,0,1,64,0Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Zm-72-56a10,10,0,1,1-10-10A10,10,0,0,1,138,152Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-76-56a8,8,0,1,1-8-8A8,8,0,0,1,136,152Z"}))]]),wE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Zm-76-92a32,32,0,0,0-12,61.66V180a12,12,0,0,0,24,0v-6.34A32,32,0,0,0,128,112Zm0,24a8,8,0,1,1-8,8A8,8,0,0,1,128,136Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208,88H48a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V96A8,8,0,0,0,208,88Zm-80,72a20,20,0,1,1,20-20A20,20,0,0,1,128,160Z",opacity:"0.2"}),g.createElement("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-80-96a28,28,0,0,0-8,54.83V184a8,8,0,0,0,16,0V166.83A28,28,0,0,0,128,112Zm0,40a12,12,0,1,1,12-12A12,12,0,0,1,128,152Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80Zm-72,78.63V184a8,8,0,0,1-16,0V158.63a24,24,0,1,1,16,0ZM160,80H96V56a32,32,0,0,1,64,0Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Zm-82-94a26,26,0,0,0-6,51.29V184a6,6,0,0,0,12,0V165.29A26,26,0,0,0,128,114Zm0,40a14,14,0,1,1,14-14A14,14,0,0,1,128,154Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,112a28,28,0,0,0-8,54.83V184a8,8,0,0,0,16,0V166.83A28,28,0,0,0,128,112Zm0,40a12,12,0,1,1,12-12A12,12,0,0,1,128,152Zm80-72H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-84-92a24,24,0,0,0-4,47.66V184a4,4,0,0,0,8,0V163.66A24,24,0,0,0,128,116Zm0,40a16,16,0,1,1,16-16A16,16,0,0,1,128,156Z"}))]]),kE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M236.37,139.4a12,12,0,0,0-12-3A84.07,84.07,0,0,1,119.6,31.59a12,12,0,0,0-15-15A108.86,108.86,0,0,0,49.69,55.07,108,108,0,0,0,136,228a107.09,107.09,0,0,0,64.93-21.69,108.86,108.86,0,0,0,38.44-54.94A12,12,0,0,0,236.37,139.4Zm-49.88,47.74A84,84,0,0,1,68.86,69.51,84.93,84.93,0,0,1,92.27,48.29Q92,52.13,92,56A108.12,108.12,0,0,0,200,164q3.87,0,7.71-.27A84.79,84.79,0,0,1,186.49,187.14Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M227.89,147.89A96,96,0,1,1,108.11,28.11,96.09,96.09,0,0,0,227.89,147.89Z",opacity:"0.2"}),g.createElement("path",{d:"M233.54,142.23a8,8,0,0,0-8-2,88.08,88.08,0,0,1-109.8-109.8,8,8,0,0,0-10-10,104.84,104.84,0,0,0-52.91,37A104,104,0,0,0,136,224a103.09,103.09,0,0,0,62.52-20.88,104.84,104.84,0,0,0,37-52.91A8,8,0,0,0,233.54,142.23ZM188.9,190.34A88,88,0,0,1,65.66,67.11a89,89,0,0,1,31.4-26A106,106,0,0,0,96,56,104.11,104.11,0,0,0,200,160a106,106,0,0,0,14.92-1.06A89,89,0,0,1,188.9,190.34Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M235.54,150.21a104.84,104.84,0,0,1-37,52.91A104,104,0,0,1,32,120,103.09,103.09,0,0,1,52.88,57.48a104.84,104.84,0,0,1,52.91-37,8,8,0,0,1,10,10,88.08,88.08,0,0,0,109.8,109.8,8,8,0,0,1,10,10Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M232.13,143.64a6,6,0,0,0-6-1.49A90.07,90.07,0,0,1,113.86,29.85a6,6,0,0,0-7.49-7.48A102.88,102.88,0,0,0,54.48,58.68,102,102,0,0,0,197.32,201.52a102.88,102.88,0,0,0,36.31-51.89A6,6,0,0,0,232.13,143.64Zm-42,48.29a90,90,0,0,1-126-126A90.9,90.9,0,0,1,99.65,37.66,102.06,102.06,0,0,0,218.34,156.35,90.9,90.9,0,0,1,190.1,191.93Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M233.54,142.23a8,8,0,0,0-8-2,88.08,88.08,0,0,1-109.8-109.8,8,8,0,0,0-10-10,104.84,104.84,0,0,0-52.91,37A104,104,0,0,0,136,224a103.09,103.09,0,0,0,62.52-20.88,104.84,104.84,0,0,0,37-52.91A8,8,0,0,0,233.54,142.23ZM188.9,190.34A88,88,0,0,1,65.66,67.11a89,89,0,0,1,31.4-26A106,106,0,0,0,96,56,104.11,104.11,0,0,0,200,160a106,106,0,0,0,14.92-1.06A89,89,0,0,1,188.9,190.34Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M230.72,145.06a4,4,0,0,0-4-1A92.08,92.08,0,0,1,111.94,29.27a4,4,0,0,0-5-5A100.78,100.78,0,0,0,56.08,59.88a100,100,0,0,0,140,140,100.78,100.78,0,0,0,35.59-50.87A4,4,0,0,0,230.72,145.06ZM191.3,193.53A92,92,0,0,1,62.47,64.7a93,93,0,0,1,39.88-30.35,100.09,100.09,0,0,0,119.3,119.3A93,93,0,0,1,191.3,193.53Z"}))]]),$E=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"}),g.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM94.1,209.41a2,2,0,0,1-1.41.59H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L133.17,61.17h0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17Zm-129,134.63A4,4,0,0,1,92.69,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.83L136,69.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"}))]]),AE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208,36H48A20,20,0,0,0,28,56v56c0,54.29,26.32,87.22,48.4,105.29,23.71,19.39,47.44,26,48.44,26.29a12.1,12.1,0,0,0,6.32,0c1-.28,24.73-6.9,48.44-26.29,22.08-18.07,48.4-51,48.4-105.29V56A20,20,0,0,0,208,36Zm-4,76c0,35.71-13.09,64.69-38.91,86.15A126.28,126.28,0,0,1,128,219.38a126.14,126.14,0,0,1-37.09-21.23C65.09,176.69,52,147.71,52,112V60H204ZM79.51,144.49a12,12,0,1,1,17-17L112,143l47.51-47.52a12,12,0,0,1,17,17l-56,56a12,12,0,0,1-17,0Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,56v56c0,96-88,120-88,120S40,208,40,112V56a8,8,0,0,1,8-8H208A8,8,0,0,1,216,56Z",opacity:"0.2"}),g.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0ZM82.34,141.66a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32l-56,56a8,8,0,0,1-11.32,0Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm-34.32,69.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208,42H48A14,14,0,0,0,34,56v56c0,51.94,25.12,83.4,46.2,100.64,22.73,18.6,45.27,24.89,46.22,25.15a6,6,0,0,0,3.16,0c.95-.26,23.49-6.55,46.22-25.15C196.88,195.4,222,163.94,222,112V56A14,14,0,0,0,208,42Zm2,70c0,37.76-13.94,68.39-41.44,91.06A131.17,131.17,0,0,1,128,225.72a130.94,130.94,0,0,1-40.56-22.66C59.94,180.39,46,149.76,46,112V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0ZM82.34,141.66a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32l-56,56a8,8,0,0,1-11.32,0Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208,44H48A12,12,0,0,0,36,56v56c0,51.16,24.73,82.12,45.47,99.1,22.4,18.32,44.55,24.5,45.48,24.76a4,4,0,0,0,2.1,0c.93-.26,23.08-6.44,45.48-24.76,20.74-17,45.47-47.94,45.47-99.1V56A12,12,0,0,0,208,44Zm4,68c0,38.44-14.23,69.63-42.29,92.71A132.45,132.45,0,0,1,128,227.82a132.23,132.23,0,0,1-41.71-23.11C58.23,181.63,44,150.44,44,112V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-41.17-10.83a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17Z"}))]]),EE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M124,216a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V40A12,12,0,0,1,48,28h64a12,12,0,0,1,0,24H60V204h52A12,12,0,0,1,124,216Zm108.49-96.49-40-40a12,12,0,0,0-17,17L195,116H112a12,12,0,0,0,0,24h83l-19.52,19.51a12,12,0,0,0,17,17l40-40A12,12,0,0,0,232.49,119.51Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M224,56V200a16,16,0,0,1-16,16H48V40H208A16,16,0,0,1,224,56Z",opacity:"0.2"}),g.createElement("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40A8,8,0,0,0,176,88v32H112a8,8,0,0,0,0,16h64v32a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,229.66,122.34Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M118,216a6,6,0,0,1-6,6H48a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H54V210h58A6,6,0,0,1,118,216Zm110.24-92.24-40-40a6,6,0,0,0-8.48,8.48L209.51,122H112a6,6,0,0,0,0,12h97.51l-29.75,29.76a6,6,0,1,0,8.48,8.48l40-40A6,6,0,0,0,228.24,123.76Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M116,216a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H52V212h60A4,4,0,0,1,116,216Zm110.83-90.83-40-40a4,4,0,0,0-5.66,5.66L214.34,124H112a4,4,0,0,0,0,8H214.34l-33.17,33.17a4,4,0,0,0,5.66,5.66l40-40A4,4,0,0,0,226.83,125.17Z"}))]]),TE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M116,36V20a12,12,0,0,1,24,0V36a12,12,0,0,1-24,0Zm80,92a68,68,0,1,1-68-68A68.07,68.07,0,0,1,196,128Zm-24,0a44,44,0,1,0-44,44A44.05,44.05,0,0,0,172,128ZM51.51,68.49a12,12,0,1,0,17-17l-12-12a12,12,0,0,0-17,17Zm0,119-12,12a12,12,0,0,0,17,17l12-12a12,12,0,1,0-17-17ZM196,72a12,12,0,0,0,8.49-3.51l12-12a12,12,0,0,0-17-17l-12,12A12,12,0,0,0,196,72Zm8.49,115.51a12,12,0,0,0-17,17l12,12a12,12,0,0,0,17-17ZM48,128a12,12,0,0,0-12-12H20a12,12,0,0,0,0,24H36A12,12,0,0,0,48,128Zm80,80a12,12,0,0,0-12,12v16a12,12,0,0,0,24,0V220A12,12,0,0,0,128,208Zm108-92H220a12,12,0,0,0,0,24h16a12,12,0,0,0,0-24Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M184,128a56,56,0,1,1-56-56A56,56,0,0,1,184,128Z",opacity:"0.2"}),g.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm8,24a64,64,0,1,0,64,64A64.07,64.07,0,0,0,128,64ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M122,40V16a6,6,0,0,1,12,0V40a6,6,0,0,1-12,0Zm68,88a62,62,0,1,1-62-62A62.07,62.07,0,0,1,190,128Zm-12,0a50,50,0,1,0-50,50A50.06,50.06,0,0,0,178,128ZM59.76,68.24a6,6,0,1,0,8.48-8.48l-16-16a6,6,0,0,0-8.48,8.48Zm0,119.52-16,16a6,6,0,1,0,8.48,8.48l16-16a6,6,0,1,0-8.48-8.48ZM192,70a6,6,0,0,0,4.24-1.76l16-16a6,6,0,0,0-8.48-8.48l-16,16A6,6,0,0,0,192,70Zm4.24,117.76a6,6,0,0,0-8.48,8.48l16,16a6,6,0,0,0,8.48-8.48ZM46,128a6,6,0,0,0-6-6H16a6,6,0,0,0,0,12H40A6,6,0,0,0,46,128Zm82,82a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V216A6,6,0,0,0,128,210Zm112-88H216a6,6,0,0,0,0,12h24a6,6,0,0,0,0-12Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M124,40V16a4,4,0,0,1,8,0V40a4,4,0,0,1-8,0Zm64,88a60,60,0,1,1-60-60A60.07,60.07,0,0,1,188,128Zm-8,0a52,52,0,1,0-52,52A52.06,52.06,0,0,0,180,128ZM61.17,66.83a4,4,0,0,0,5.66-5.66l-16-16a4,4,0,0,0-5.66,5.66Zm0,122.34-16,16a4,4,0,0,0,5.66,5.66l16-16a4,4,0,0,0-5.66-5.66ZM192,68a4,4,0,0,0,2.83-1.17l16-16a4,4,0,1,0-5.66-5.66l-16,16A4,4,0,0,0,192,68Zm2.83,121.17a4,4,0,0,0-5.66,5.66l16,16a4,4,0,0,0,5.66-5.66ZM40,124H16a4,4,0,0,0,0,8H40a4,4,0,0,0,0-8Zm88,88a4,4,0,0,0-4,4v24a4,4,0,0,0,8,0V216A4,4,0,0,0,128,212Zm112-88H216a4,4,0,0,0,0,8h24a4,4,0,0,0,0-8Z"}))]]),jE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),g.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),ME=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"}),g.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]]),OE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),g.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"}))]]),NE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),g.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),zE=new Map([["bold",g.createElement(g.Fragment,null,g.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",g.createElement(g.Fragment,null,g.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),g.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",g.createElement(g.Fragment,null,g.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",g.createElement(g.Fragment,null,g.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",g.createElement(g.Fragment,null,g.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",g.createElement(g.Fragment,null,g.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),RE=g.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),et=g.forwardRef((e,t)=>{const{alt:a,color:o,size:n,weight:s,mirrored:c,children:d,weights:m,...p}=e,{color:y="currentColor",size:b,weight:x="regular",mirrored:_=!1,...w}=g.useContext(RE);return g.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:n??b,height:n??b,fill:o??y,viewBox:"0 0 256 256",transform:c||_?"scale(-1, 1)":void 0,...w,...p},!!a&&g.createElement("title",null,a),d,m.get(s??x))});et.displayName="IconBase";const y4=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:iE}));y4.displayName="AppleLogoIcon";const ym=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:oE}));ym.displayName="CheckIcon";const ll=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:sE}));ll.displayName="CheckCircleIcon";const b4=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:lE}));b4.displayName="CircleHalfIcon";const _4=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:cE}));_4.displayName="CloudIcon";const x4=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:uE}));x4.displayName="CopyIcon";const S4=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:dE}));S4.displayName="DeviceMobileIcon";const $i=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:fE}));$i.displayName="EnvelopeSimpleIcon";const Or=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:mE}));Or.displayName="FingerprintIcon";const w4=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:pE}));w4.displayName="GearIcon";const k4=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:hE}));k4.displayName="GithubLogoIcon";const $4=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:gE}));$4.displayName="GoogleLogoIcon";const A4=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:vE}));A4.displayName="HouseIcon";const Fu=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:yE}));Fu.displayName="InfoIcon";const Oi=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:bE}));Oi.displayName="KeyIcon";const bm=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:_E}));bm.displayName="LinkIcon";const E4=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:xE}));E4.displayName="LinkBreakIcon";const qu=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:SE}));qu.displayName="LockIcon";const T4=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:wE}));T4.displayName="LockKeyIcon";const j4=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:kE}));j4.displayName="MoonIcon";const M4=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:$E}));M4.displayName="PencilSimpleIcon";const or=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:AE}));or.displayName="ShieldCheckIcon";const O4=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:EE}));O4.displayName="SignOutIcon";const N4=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:TE}));N4.displayName="SunIcon";const cl=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:jE}));cl.displayName="TrashIcon";const vl=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:ME}));vl.displayName="WarningIcon";const Vn=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:OE}));Vn.displayName="WarningCircleIcon";const _m=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:NE}));_m.displayName="XIcon";const z4=g.forwardRef((e,t)=>g.createElement(et,{ref:t,...e,weights:zE}));z4.displayName="XCircleIcon";function b1({children:e}){return v.jsx("div",{className:"flex min-h-screen flex-col bg-base-200 p-4",children:v.jsx("div",{className:"flex flex-1 items-center justify-center",children:v.jsx("div",{className:"card w-full max-w-100 border border-base-200 bg-base-100 p-12 shadow-lg",children:e})})})}function CE(e){return e instanceof Bt&&e.status===401}function cr({error:e,reset:t,onUnauthorized:a}){const{t:o}=Ne();if(CE(e))return a?(a(),v.jsx(b1,{children:v.jsx("div",{className:"flex justify-center",children:v.jsx("span",{className:"loading loading-spinner loading-md"})})})):v.jsxs(b1,{children:[v.jsxs("div",{className:"mb-4 flex items-center gap-2 rounded-lg bg-warning/10 p-3 text-warning",children:[v.jsx(Vn,{className:"size-5 shrink-0",weight:"fill"}),v.jsx("span",{className:"text-sm",children:o("error.sessionExpired")})]}),v.jsx("a",{className:"btn btn-primary btn-block h-10 font-semibold text-[14px]",href:"/login",children:o("error.goToLogin")})]});const n=e instanceof Bt?e.code:"UNKNOWN_ERROR",s=e instanceof Bt?e.message:o("error.defaultMessage");return v.jsxs(b1,{children:[v.jsxs("div",{className:"mb-4 flex items-center gap-2 rounded-lg bg-error/10 p-3 text-error",children:[v.jsx(Vn,{className:"size-5 shrink-0",weight:"fill"}),v.jsx("span",{className:"text-sm",children:o("error.title")})]}),v.jsx("h1",{className:"mb-0 text-center font-bold text-2xl",children:o("error.subtitle")}),v.jsx("p",{className:"mb-6 text-center text-base-content/60 text-lg",children:s}),v.jsxs("div",{className:"mb-6 rounded-lg bg-base-200 p-4 text-center",children:[v.jsx("p",{className:"mb-1 text-base-content/50 text-xs",children:o("error.codeLabel")}),v.jsx("code",{className:"font-mono text-error text-sm","data-testid":"error-code",children:n})]}),v.jsxs("div",{className:"flex flex-col gap-3",children:[v.jsx("button",{className:"btn btn-primary btn-block h-10 font-semibold text-[14px]",onClick:t,type:"button",children:o("error.retry")}),v.jsx("button",{className:"btn btn-ghost btn-block h-10 font-semibold text-[14px]",onClick:()=>window.history.back(),type:"button",children:o("error.goBack")})]})]})}var DE=/^[\w!#$%&'*.^`|~+-]+$/,PE=(e,t,a={})=>{if(!DE.test(e))throw new Error("Invalid cookie name");let o=`${e}=${t}`;if(e.startsWith("__Secure-")&&!a.secure)throw new Error("__Secure- Cookie must have Secure attributes");if(e.startsWith("__Host-")){if(!a.secure)throw new Error("__Host- Cookie must have Secure attributes");if(a.path!=="/")throw new Error('__Host- Cookie must have Path attributes with "/"');if(a.domain)throw new Error("__Host- Cookie must not have Domain attributes")}for(const n of["domain","path"])if(a[n]&&/[;\r\n]/.test(a[n]))throw new Error(`${n} must not contain ";", "\\r", or "\\n"`);if(a&&typeof a.maxAge=="number"&&a.maxAge>=0){if(a.maxAge>3456e4)throw new Error("Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.");o+=`; Max-Age=${a.maxAge|0}`}if(a.domain&&a.prefix!=="host"&&(o+=`; Domain=${a.domain}`),a.path&&(o+=`; Path=${a.path}`),a.expires){if(a.expires.getTime()-Date.now()>3456e7)throw new Error("Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.");o+=`; Expires=${a.expires.toUTCString()}`}if(a.httpOnly&&(o+="; HttpOnly"),a.secure&&(o+="; Secure"),a.sameSite&&(o+=`; SameSite=${a.sameSite.charAt(0).toUpperCase()+a.sameSite.slice(1)}`),a.priority&&(o+=`; Priority=${a.priority.charAt(0).toUpperCase()+a.priority.slice(1)}`),a.partitioned){if(!a.secure)throw new Error("Partitioned Cookie must have Secure attributes");o+="; Partitioned"}return o},LE=(e,t,a)=>(t=encodeURIComponent(t),PE(e,t,a)),IE=(e,t)=>(e=e.replace(/\/+$/,""),e=e+"/",t=t.replace(/^\/+/,""),e+t),F1=(e,t)=>{for(const[a,o]of Object.entries(t)){const n=new RegExp("/:"+a+"(?:{[^/]+})?\\??");e=e.replace(n,o?`/${o}`:"")}return e},UE=e=>{const t=new URLSearchParams;for(const[a,o]of Object.entries(e))if(o!==void 0)if(Array.isArray(o))for(const n of o)t.append(a,n);else t.set(a,o);return t},ZE=(e,t)=>{switch(t){case"ws":return e.replace(/^http/,"ws");case"http":return e.replace(/^ws/,"http")}},R4=e=>/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e)?e.replace(/\/index(?=\?|$)/,"/"):e.replace(/\/index(?=\?|$)/,"");function du(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function C4(e,t){if(!du(e)&&!du(t))return t;const a={...e};for(const o in t){const n=t[o];du(a[o])&&du(n)?a[o]=C4(a[o],n):a[o]=n}return a}var D4=(e,t)=>new Proxy(()=>{},{get(o,n){if(!(typeof n!="string"||n==="then"))return D4(e,[...t,n])},apply(o,n,s){return e({path:t,args:s})}}),VE=class{url;method;buildSearchParams;queryParams=void 0;pathParams={};rBody;cType=void 0;constructor(e,t,a){this.url=e,this.method=t,this.buildSearchParams=a.buildSearchParams}fetch=async(e,t)=>{if(e){if(e.query&&(this.queryParams=this.buildSearchParams(e.query)),e.form){const d=new FormData;for(const[m,p]of Object.entries(e.form))if(p!==void 0)if(Array.isArray(p))for(const y of p)d.append(m,y);else d.append(m,p);this.rBody=d}e.json&&(this.rBody=JSON.stringify(e.json),this.cType="application/json"),e.param&&(this.pathParams=e.param)}let a=this.method.toUpperCase();const o={...e?.header,...typeof t?.headers=="function"?await t.headers():t?.headers};if(e?.cookie){const d=[];for(const[m,p]of Object.entries(e.cookie))d.push(LE(m,p,{path:"/"}));o.Cookie=d.join(",")}this.cType&&(o["Content-Type"]=this.cType);const n=new Headers(o??void 0);let s=this.url;s=R4(s),s=F1(s,this.pathParams),this.queryParams&&(s=s+"?"+this.queryParams.toString()),a=this.method.toUpperCase();const c=!(a==="GET"||a==="HEAD");return(t?.fetch||fetch)(s,{body:c?this.rBody:void 0,method:a,headers:n,...t?.init})}},HE=(e,t)=>D4(function a(o){const n=t?.buildSearchParams??UE,s=[...o.path],c=s.slice(-3).reverse();if(c[0]==="toString")return c[1]==="name"?c[2]||"":a.toString();if(c[0]==="valueOf")return c[1]==="name"?c[2]||"":a;let d="";if(/^\$/.test(c[0])){const b=s.pop();b&&(d=b.replace(/^\$/,""))}const m=s.join("/"),p=IE(e,m);if(d==="url"||d==="path"){let b=p;return o.args[0]&&(o.args[0].param&&(b=F1(p,o.args[0].param)),o.args[0].query&&(b=b+"?"+n(o.args[0].query).toString())),b=R4(b),d==="url"?new URL(b):b.slice(e.replace(/\/+$/,"").length).replace(/^\/?/,"/")}if(d==="ws"){const b=ZE(o.args[0]&&o.args[0].param?F1(p,o.args[0].param):p,"ws"),x=new URL(b),_=o.args[0]?.query;return _&&Object.entries(_).forEach(([$,A])=>{Array.isArray(A)?A.forEach(E=>x.searchParams.append($,E)):x.searchParams.set($,A)}),((...$)=>t?.webSocket!==void 0&&typeof t.webSocket=="function"?t.webSocket(...$):new WebSocket(...$))(x.toString())}const y=new VE(p,d,{buildSearchParams:n});if(d){t??={};const b=C4(t,{...o.args[1]});return y.fetch(o.args[0],b)}return y},[]);const FE=async(e,t)=>{const a=new Headers(t?.headers);a.has("Accept-Language")||a.set("Accept-Language",Zt.language);const o=await fetch(e,{...t,headers:a});if(!o.ok)throw await Bt.fromResponse(o);return o},Be=HE("/",{fetch:FE});async function Ke(e){return await e.json()}const ia={session:()=>["/api/user/session"],config:()=>["/api/config"],oauth:{accounts:()=>["/api/user/oauth-accounts"]},consent:(e,t)=>["/api/consent",e,t],passkeys:()=>["/api/user/passkeys"],terms:e=>["/api/terms",e]},We={queryKey:ia.config(),queryFn:async()=>{const e=await Be.api.config.$get();return Ke(e)},select:e=>({...e,available_2fa_setup_methods:(()=>{const t=[];return e.auth.password.totp.enabled&&t.push("totp"),e.auth.passkey.enabled&&t.push("passkey"),t})()}),staleTime:1e3*60},q1="tinyauth-theme-mode";function P4(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function qE(){if(typeof window>"u")return null;const e=localStorage.getItem(q1);return e==="light"||e==="dark"||e==="system"?e:null}function O6(e){document.documentElement.setAttribute("data-theme",e)}function N6(e,t,a){return e==="system"?P4()==="dark"?a:t:e==="dark"?a:t}const B1="tinyauth-theme-mode-change";function BE(e){return window.addEventListener(B1,e),window.addEventListener("storage",e),()=>{window.removeEventListener(B1,e),window.removeEventListener("storage",e)}}function KE(){return qE()}function QE(){return null}function L4(){const{data:e}=It(We),t=e.branding.light_theme,a=e.branding.dark_theme,o=e.branding.theme_mode,n=o==="system",s=g.useSyncExternalStore(BE,KE,QE),c=g.useMemo(()=>n?s??o:o,[n,s,o]),d=g.useMemo(()=>N6(c,t,a),[c,t,a]);g.useEffect(()=>{O6(d)},[d]),g.useEffect(()=>{if(c!=="system")return;const b=window.matchMedia("(prefers-color-scheme: dark)"),x=()=>{const _=N6("system",t,a);O6(_)};return b.addEventListener("change",x),()=>b.removeEventListener("change",x)},[c,t,a]);const m=g.useCallback(()=>{if(!n)return;const b=s??"system";let x;b==="system"?x="light":b==="light"?x="dark":x="system",x==="system"?localStorage.removeItem(q1):localStorage.setItem(q1,x),window.dispatchEvent(new CustomEvent(B1))},[n,s]),p=s===null,y=g.useMemo(()=>P4()==="dark"?a:t,[a,t]);return{themeMode:c,darkTheme:a,canToggleTheme:n,cycleThemeMode:m,isAutoMode:p,detectedTheme:y}}function GE(){return L4(),v.jsx(u4,{})}function JE(e){return v.jsx(cr,{...e,onUnauthorized:()=>{window.location.href="/login"}})}const Ht=Q$()({component:GE,errorComponent:JE}),XE=Kt("/")({component:YE,beforeLoad:async({context:e})=>{throw e.user?ra({to:"/profile"}):ra({to:"/login"})}});function YE(){return null}var yl=e=>e.type==="checkbox",vi=e=>e instanceof Date,gn=e=>e==null;const I4=e=>typeof e=="object";var jt=e=>!gn(e)&&!Array.isArray(e)&&I4(e)&&!vi(e),U4=e=>jt(e)&&e.target?yl(e.target)?e.target.checked:e.target.value:e,Z4=(e,t)=>t.split(".").some((a,o,n)=>!isNaN(Number(a))&&e.has(n.slice(0,o).join("."))),WE=e=>{const t=e.constructor&&e.constructor.prototype;return jt(t)&&t.hasOwnProperty("isPrototypeOf")},xm=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function zt(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(xm&&(e instanceof Blob||t))return e;const a=Array.isArray(e);if(!a&&!(jt(e)&&WE(e)))return e;const o=a?[]:Object.create(Object.getPrototypeOf(e));for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=zt(e[n]));return o}var Bu=e=>/^\w*$/.test(e),gt=e=>e===void 0,Sm=e=>Array.isArray(e)?e.filter(Boolean):[],wm=e=>Sm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ue=(e,t,a)=>{if(!t||!jt(e))return a;const n=(Bu(t)?[t]:wm(t)).reduce((s,c)=>gn(s)?void 0:s[c],e);return gt(n)||n===e?gt(e[t])?a:e[t]:n},In=e=>typeof e=="boolean",un=e=>typeof e=="function",rt=(e,t,a)=>{let o=-1;const n=Bu(t)?[t]:wm(t),s=n.length,c=s-1;for(;++o<s;){const d=n[o];let m=a;if(o!==c){const p=e[d];m=jt(p)||Array.isArray(p)?p:isNaN(+n[o+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;e[d]=m,e=e[d]}};const za={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},vr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},gr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},_1="form",V4="root",H4=$e.createContext(null);H4.displayName="HookFormControlContext";const km=()=>$e.useContext(H4);var F4=(e,t,a,o=!0)=>{const n={};for(const s in e)Object.defineProperty(n,s,{get:()=>{const c=s;return t._proxyFormState[c]!==vr.all&&(t._proxyFormState[c]=!o||vr.all),a&&(a[c]=!0),e[c]}});return n};const $m=typeof window<"u"?$e.useLayoutEffect:$e.useEffect;function eT(e){const t=km(),{control:a=t,disabled:o,name:n,exact:s}=e||{},[c,d]=$e.useState(()=>({...a._formState,defaultValues:a._defaultValues})),m=$e.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return $m(()=>a._subscribe({name:n,formState:m.current,exact:s,callback:p=>{!o&&d({...a._formState,...p,defaultValues:a._defaultValues})}}),[n,o,s]),$e.useEffect(()=>{m.current.isValid&&a._setValid(!0)},[a]),$e.useMemo(()=>F4(c,a,m.current,!1),[c,a])}var dn=e=>typeof e=="string",K1=(e,t,a,o,n)=>dn(e)?(o&&t.watch.add(e),ue(a,e,n)):Array.isArray(e)?e.map(s=>(o&&t.watch.add(s),ue(a,s))):(o&&(t.watchAll=!0),a),Q1=e=>gn(e)||!I4(e);function Un(e,t,a=new WeakSet){if(e===t)return!0;if(Q1(e)||Q1(t))return Object.is(e,t);if(vi(e)&&vi(t))return Object.is(e.getTime(),t.getTime());const o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;if(a.has(e)||a.has(t))return!0;a.add(e),a.add(t);for(const s of o){const c=e[s];if(!(s in t))return!1;if(s!=="ref"){const d=t[s];if(vi(c)&&vi(d)||(jt(c)||Array.isArray(c))&&(jt(d)||Array.isArray(d))?!Un(c,d,a):!Object.is(c,d))return!1}}return!0}function q4(e){const t=km(),{control:a=t,name:o,defaultValue:n,disabled:s,exact:c,compute:d}=e||{},m=$e.useRef(n),p=$e.useRef(d),y=$e.useRef(void 0),b=$e.useRef(a),x=$e.useRef(o);p.current=d;const[_,w]=$e.useState(()=>{const M=a._getWatch(o,m.current);return p.current?p.current(M):M}),$=$e.useCallback(M=>{const U=K1(o,a._names,M||a._formValues,!1,m.current);return p.current?p.current(U):U},[a._formValues,a._names,o]),A=$e.useCallback(M=>{if(!s){const U=K1(o,a._names,M||a._formValues,!1,m.current);if(p.current){const K=p.current(U);Un(K,y.current)||(w(K),y.current=K)}else w(U)}},[a._formValues,a._names,s,o]);$m(()=>((b.current!==a||!Un(x.current,o))&&(b.current=a,x.current=o,A()),a._subscribe({name:o,formState:{values:!0},exact:c,callback:M=>{A(M.values)}})),[a,c,o,A]),$e.useEffect(()=>a._removeUnmounted());const E=b.current!==a,T=x.current,N=$e.useMemo(()=>{if(s)return null;const M=!E&&!Un(T,o);return E||M?$():null},[s,E,o,T,$]);return N!==null?N:_}function tT(e){const t=km(),{name:a,disabled:o,control:n=t,shouldUnregister:s,defaultValue:c,exact:d=!0}=e,m=Z4(n._names.array,a),p=$e.useMemo(()=>ue(n._formValues,a,ue(n._defaultValues,a,c)),[n,a,c]),y=q4({control:n,name:a,defaultValue:p,exact:d}),b=eT({control:n,name:a,exact:d}),x=$e.useRef(e),_=$e.useRef(n.register(a,{...e.rules,value:y,...In(e.disabled)?{disabled:e.disabled}:{}}));x.current=e;const w=$e.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ue(b.errors,a)},isDirty:{enumerable:!0,get:()=>!!ue(b.dirtyFields,a)},isTouched:{enumerable:!0,get:()=>!!ue(b.touchedFields,a)},isValidating:{enumerable:!0,get:()=>!!ue(b.validatingFields,a)},error:{enumerable:!0,get:()=>ue(b.errors,a)}}),[b,a]),$=$e.useCallback(N=>_.current.onChange({target:{value:U4(N),name:a},type:za.CHANGE}),[a]),A=$e.useCallback(()=>_.current.onBlur({target:{value:ue(n._formValues,a),name:a},type:za.BLUR}),[a,n._formValues]),E=$e.useCallback(N=>{const M=ue(n._fields,a);M&&M._f&&N&&(M._f.ref={focus:()=>un(N.focus)&&N.focus(),select:()=>un(N.select)&&N.select(),setCustomValidity:U=>un(N.setCustomValidity)&&N.setCustomValidity(U),reportValidity:()=>un(N.reportValidity)&&N.reportValidity()})},[n._fields,a]),T=$e.useMemo(()=>({name:a,value:y,...In(o)||b.disabled?{disabled:b.disabled||o}:{},onChange:$,onBlur:A,ref:E}),[a,o,b.disabled,$,A,E,y]);return $e.useEffect(()=>{const N=n._options.shouldUnregister||s;n.register(a,{...x.current.rules,...In(x.current.disabled)?{disabled:x.current.disabled}:{}});const M=(U,K)=>{const L=ue(n._fields,U);L&&L._f&&(L._f.mount=K)};if(M(a,!0),N){const U=zt(ue(n._options.defaultValues,a,x.current.defaultValue));rt(n._defaultValues,a,U),gt(ue(n._formValues,a))&&rt(n._formValues,a,U)}return!m&&n.register(a),()=>{(m?N&&!n._state.action:N)?n.unregister(a):M(a,!1)}},[a,n,m,s]),$e.useEffect(()=>{n._setDisabledField({disabled:o,name:a})},[o,a,n]),$e.useMemo(()=>({field:T,formState:b,fieldState:w}),[T,b,w])}const nT=e=>e.render(tT(e)),rT=$e.createContext(null);rT.displayName="HookFormContext";var aT=(e,t,a,o,n)=>t?{...a[e],types:{...a[e]&&a[e].types?a[e].types:{},[o]:n||!0}}:{},Xs=e=>Array.isArray(e)?e:[e],z6=()=>{let e=[];return{get observers(){return e},next:n=>{for(const s of e)s.next&&s.next(n)},subscribe:n=>(e.push(n),{unsubscribe:()=>{e=e.filter(s=>s!==n)}}),unsubscribe:()=>{e=[]}}};function B4(e,t){const a={};for(const o in e)if(e.hasOwnProperty(o)){const n=e[o],s=t[o];if(n&&jt(n)&&s){const c=B4(n,s);jt(c)&&(a[o]=c)}else e[o]&&(a[o]=s)}return a}var sn=e=>jt(e)&&!Object.keys(e).length,Am=e=>e.type==="file",ju=e=>{if(!xm)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},K4=e=>e.type==="select-multiple",Em=e=>e.type==="radio",iT=e=>Em(e)||yl(e),x1=e=>ju(e)&&e.isConnected;function oT(e,t){const a=t.slice(0,-1).length;let o=0;for(;o<a;){if(gn(e)){e=void 0;break}e=e[t[o]],o++}return e}function sT(e){for(const t in e)if(e.hasOwnProperty(t)&&!gt(e[t]))return!1;return!0}function Lt(e,t){if(dn(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;const a=Array.isArray(t)?t:Bu(t)?[t]:wm(t),o=a.length===1?e:oT(e,a),n=a.length-1,s=a[n];return o&&delete o[s],n!==0&&(jt(o)&&sn(o)||Array.isArray(o)&&sT(o))&&Lt(e,a.slice(0,-1)),e}var lT=e=>{for(const t in e)if(un(e[t]))return!0;return!1};function Q4(e){return Array.isArray(e)||jt(e)&&!lT(e)}function G1(e,t={}){for(const a in e){const o=e[a];Q4(o)?(t[a]=Array.isArray(o)?[]:{},G1(o,t[a])):gt(o)||(t[a]=!0)}return t}function J1(e){if(e!==!1){if(e===!0)return!0;if(Array.isArray(e)){const t=e.map(a=>J1(a));return t.some(a=>a!==void 0)?t:void 0}if(jt(e)){const t={};for(const a in e){const o=J1(e[a]);gt(o)||(t[a]=o)}return Object.keys(t).length?t:void 0}}}function Ks(e,t,a){a||(a=G1(t));for(const o in e){const n=e[o];if(Q4(n))gt(t)||Q1(a[o])?a[o]=G1(n,Array.isArray(n)?[]:{}):Ks(n,gn(t)?{}:t[o],a[o]);else{const s=t[o];a[o]=!Un(n,s)}}return J1(a)||{}}const R6={value:!1,isValid:!1},C6={value:!0,isValid:!0};var G4=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(a=>a&&a.checked&&!a.disabled).map(a=>a.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!gt(e[0].attributes.value)?gt(e[0].value)||e[0].value===""?C6:{value:e[0].value,isValid:!0}:C6:R6}return R6},J4=(e,{valueAsNumber:t,valueAsDate:a,setValueAs:o})=>gt(e)?e:t?e===""?NaN:e&&+e:a&&dn(e)?new Date(e):o?o(e):e;const D6={isValid:!1,value:null};var X4=e=>Array.isArray(e)?e.reduce((t,a)=>a&&a.checked&&!a.disabled?{isValid:!0,value:a.value}:t,D6):D6;function P6(e){const t=e.ref;return Am(t)?t.files:Em(t)?X4(e.refs).value:K4(t)?[...t.selectedOptions].map(({value:a})=>a):yl(t)?G4(e.refs).value:J4(gt(t.value)?e.ref.value:t.value,e)}var cT=(e,t,a,o)=>{const n={};for(const s of e){const c=ue(t,s);c&&rt(n,s,c._f)}return{criteriaMode:a,names:[...e],fields:n,shouldUseNativeValidation:o}},Mu=e=>e instanceof RegExp,Fs=e=>gt(e)?e:Mu(e)?e.source:jt(e)?Mu(e.value)?e.value.source:e.value:e,L6=e=>({isOnSubmit:!e||e===vr.onSubmit,isOnBlur:e===vr.onBlur,isOnChange:e===vr.onChange,isOnAll:e===vr.all,isOnTouch:e===vr.onTouched});const I6="AsyncFunction";var uT=e=>!!e&&!!e.validate&&!!(un(e.validate)&&e.validate.constructor.name===I6||jt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===I6)),dT=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),U6=(e,t,a)=>!a&&(t.watchAll||t.watch.has(e)||[...t.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const Ys=(e,t,a,o)=>{for(const n of a||Object.keys(e)){const s=ue(e,n);if(s){const{_f:c,...d}=s;if(c){if(c.refs&&c.refs[0]&&t(c.refs[0],n)&&!o)return!0;if(c.ref&&t(c.ref,c.name)&&!o)return!0;if(Ys(d,t))break}else if(jt(d)&&Ys(d,t))break}}};function Z6(e,t,a){const o=ue(e,a);if(o||Bu(a))return{error:o,name:a};const n=a.split(".");for(;n.length;){const s=n.join("."),c=ue(t,s),d=ue(e,s);if(c&&!Array.isArray(c)&&a!==s)return{name:a};if(d&&d.type)return{name:s,error:d};if(d&&d.root&&d.root.type)return{name:`${s}.root`,error:d.root};n.pop()}return{name:a}}var fT=(e,t,a,o)=>{a(e);const{name:n,...s}=e;return sn(s)||o&&Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(c=>t[c]===(!o||vr.all))},mT=(e,t,a)=>!e||!t||e===t||Xs(e).some(o=>o&&(a?o===t:o.startsWith(t)||t.startsWith(o))),pT=(e,t,a,o,n)=>n.isOnAll?!1:!a&&n.isOnTouch?!(t||e):(a?o.isOnBlur:n.isOnBlur)?!e:(a?o.isOnChange:n.isOnChange)?e:!0,hT=(e,t)=>!Sm(ue(e,t)).length&&Lt(e,t),gT=(e,t,a)=>{const o=Xs(ue(e,a));return rt(o,V4,t[a]),rt(e,a,o),e};function V6(e,t,a="validate"){if(dn(e)||Array.isArray(e)&&e.every(dn)||In(e)&&!e)return{type:a,message:dn(e)?e:"",ref:t}}var wo=e=>jt(e)&&!Mu(e)?e:{value:e,message:""},H6=async(e,t,a,o,n,s)=>{const{ref:c,refs:d,required:m,maxLength:p,minLength:y,min:b,max:x,pattern:_,validate:w,name:$,valueAsNumber:A,mount:E}=e._f,T=ue(a,$);if(!E||t.has($))return{};const N=d?d[0]:c,M=W=>{n&&N.reportValidity&&(N.setCustomValidity(In(W)?"":W||""),N.reportValidity())},U={},K=Em(c),L=yl(c),B=K||L,H=(A||Am(c))&>(c.value)&>(T)||ju(c)&&c.value===""||T===""||Array.isArray(T)&&!T.length||A&&typeof T=="number"&&isNaN(T),ne=aT.bind(null,$,o,U),ie=(W,ce,pe,Ae=gr.maxLength,q=gr.minLength)=>{const ee=W?ce:pe;U[$]={type:W?Ae:q,message:ee,ref:c,...ne(W?Ae:q,ee)}};if(s?!Array.isArray(T)||!T.length:m&&(!B&&(H||gn(T))||In(T)&&!T||L&&!G4(d).isValid||K&&!X4(d).isValid)){const{value:W,message:ce}=dn(m)?{value:!!m,message:m}:wo(m);if(W&&(U[$]={type:gr.required,message:ce,ref:N,...ne(gr.required,ce)},!o))return M(ce),U}if(!H&&(!gn(b)||!gn(x))){let W,ce;const pe=wo(x),Ae=wo(b);if(!gn(T)&&!isNaN(T)){const q=c.valueAsNumber||T&&+T;gn(pe.value)||(W=q>pe.value),gn(Ae.value)||(ce=q<Ae.value)}else{const q=c.valueAsDate||new Date(T),ee=De=>new Date(new Date().toDateString()+" "+De),he=c.type=="time",we=c.type=="week";dn(pe.value)&&T&&(W=he?ee(T)>ee(pe.value):we?T>pe.value:q>new Date(pe.value)),dn(Ae.value)&&T&&(ce=he?ee(T)<ee(Ae.value):we?T<Ae.value:q<new Date(Ae.value))}if((W||ce)&&(ie(!!W,pe.message,Ae.message,gr.max,gr.min),!o))return M(U[$].message),U}if((p||y)&&!H&&(dn(T)||s&&Array.isArray(T))){const W=wo(p),ce=wo(y),pe=!gn(W.value)&&T.length>+W.value,Ae=!gn(ce.value)&&T.length<+ce.value;if((pe||Ae)&&(ie(pe,W.message,ce.message),!o))return M(U[$].message),U}if(_&&!H&&dn(T)){const{value:W,message:ce}=wo(_);if(Mu(W)&&!T.match(W)&&(U[$]={type:gr.pattern,message:ce,ref:c,...ne(gr.pattern,ce)},!o))return M(ce),U}if(w){if(un(w)){const W=await w(T,a),ce=V6(W,N);if(ce&&(U[$]={...ce,...ne(gr.validate,ce.message)},!o))return M(ce.message),U}else if(jt(w)){let W={};for(const ce in w){if(!sn(W)&&!o)break;const pe=V6(await w[ce](T,a),N,ce);pe&&(W={...pe,...ne(ce,pe.message)},M(pe.message),o&&(U[$]=W))}if(!sn(W)&&(U[$]={ref:N,...W},!o))return U}}return M(!0),U};const vT={mode:vr.onSubmit,reValidateMode:vr.onChange,shouldFocusError:!0},Y4={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function yT(e={}){let t={...vT,...e},a={...zt(Y4),isLoading:un(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},o={},n=jt(t.defaultValues)||jt(t.values)?zt(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:zt(n),c={action:!1,mount:!1,watch:!1,keepIsValid:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},m,p=0;const y={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},b={...y};let x={...b};const _={array:z6(),state:z6()},w=t.criteriaMode===vr.all,$=j=>C=>{clearTimeout(p),p=setTimeout(j,C)},A=async j=>{if(!c.keepIsValid&&!t.disabled&&(b.isValid||x.isValid||j)){let C;t.resolver?(C=sn((await H()).errors),E()):C=await W({fields:o,onlyCheckValid:!0,eventType:za.VALID}),C!==a.isValid&&_.state.next({isValid:C})}},E=(j,C)=>{!t.disabled&&(b.isValidating||b.validatingFields||x.isValidating||x.validatingFields)&&((j||Array.from(d.mount)).forEach(I=>{I&&(C?rt(a.validatingFields,I,C):Lt(a.validatingFields,I))}),_.state.next({validatingFields:a.validatingFields,isValidating:!sn(a.validatingFields)}))},T=()=>{a.dirtyFields=Ks(n,s)},N=(j,C=[],I,oe,se=!0,le=!0)=>{if(oe&&I&&!t.disabled){if(c.action=!0,le&&Array.isArray(ue(o,j))){const me=I(ue(o,j),oe.argA,oe.argB);se&&rt(o,j,me)}if(le&&Array.isArray(ue(a.errors,j))){const me=I(ue(a.errors,j),oe.argA,oe.argB);se&&rt(a.errors,j,me),hT(a.errors,j)}if((b.touchedFields||x.touchedFields)&&le&&Array.isArray(ue(a.touchedFields,j))){const me=I(ue(a.touchedFields,j),oe.argA,oe.argB);se&&rt(a.touchedFields,j,me)}(b.dirtyFields||x.dirtyFields)&&T(),_.state.next({name:j,isDirty:pe(j,C),dirtyFields:a.dirtyFields,errors:a.errors,isValid:a.isValid})}else rt(s,j,C)},M=(j,C)=>{rt(a.errors,j,C),_.state.next({errors:a.errors})},U=j=>{a.errors=j,_.state.next({errors:a.errors,isValid:!1})},K=(j,C,I,oe)=>{const se=ue(o,j);if(se){const le=gt(ue(s,j)),me=ue(s,j,gt(I)?ue(n,j):I);gt(me)||oe&&oe.defaultChecked||C?rt(s,j,C?me:P6(se._f)):ee(j,me),c.mount&&!c.action&&(A(),le&&a.isDirty&&(b.isDirty||x.isDirty)&&(pe()||(a.isDirty=!1,_.state.next({...a}))))}},L=(j,C,I,oe,se)=>{let le=!1,me=!1;const Me={name:j};if(!t.disabled){if(!I||oe){(b.isDirty||x.isDirty)&&(me=a.isDirty,a.isDirty=Me.isDirty=pe(),le=me!==Me.isDirty);const Ue=Un(ue(n,j),C);me=!!ue(a.dirtyFields,j),Ue?Lt(a.dirtyFields,j):rt(a.dirtyFields,j,!0),Me.dirtyFields=a.dirtyFields,le=le||(b.dirtyFields||x.dirtyFields)&&me!==!Ue}if(I){const Ue=ue(a.touchedFields,j);Ue||(rt(a.touchedFields,j,I),Me.touchedFields=a.touchedFields,le=le||(b.touchedFields||x.touchedFields)&&Ue!==I)}le&&se&&_.state.next(Me)}return le?Me:{}},B=(j,C,I,oe)=>{const se=ue(a.errors,j),le=(b.isValid||x.isValid)&&In(C)&&a.isValid!==C;if(t.delayError&&I?(m=$(()=>M(j,I)),m(t.delayError)):(clearTimeout(p),m=null,I?rt(a.errors,j,I):Lt(a.errors,j)),(I?!Un(se,I):se)||!sn(oe)||le){const me={...oe,...le&&In(C)?{isValid:C}:{},errors:a.errors,name:j};a={...a,...me},_.state.next(me)}},H=async j=>(E(j,!0),await t.resolver(s,t.context,cT(j||d.mount,o,t.criteriaMode,t.shouldUseNativeValidation))),ne=async j=>{const{errors:C}=await H(j);if(E(j),j)for(const I of j){const oe=ue(C,I);oe?rt(a.errors,I,oe):Lt(a.errors,I)}else a.errors=C;return C},ie=async({name:j,eventType:C})=>{if(e.validate){const I=await e.validate({formValues:s,formState:a,name:j,eventType:C});if(jt(I))for(const oe in I)I[oe]&&Ie(`${_1}.${oe}`,{message:dn(I.message)?I.message:"",type:gr.validate});else dn(I)||!I?Ie(_1,{message:I||"",type:gr.validate}):je(_1);return I}return!0},W=async({fields:j,onlyCheckValid:C,name:I,eventType:oe,context:se={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(se.runRootValidation=!0,!await ie({name:I,eventType:oe})&&(se.valid=!1,C)))return se.valid;for(const le in j){const me=j[le];if(me){const{_f:Me,...Ue}=me;if(Me){const Mt=d.array.has(Me.name),yt=me._f&&uT(me._f);yt&&b.validatingFields&&E([Me.name],!0);const kt=await H6(me,d.disabled,s,w,t.shouldUseNativeValidation&&!C,Mt);if(yt&&b.validatingFields&&E([Me.name]),kt[Me.name]&&(se.valid=!1,C)||(!C&&(ue(kt,Me.name)?Mt?gT(a.errors,kt,Me.name):rt(a.errors,Me.name,kt[Me.name]):Lt(a.errors,Me.name)),e.shouldUseNativeValidation&&kt[Me.name]))break}!sn(Ue)&&await W({context:se,onlyCheckValid:C,fields:Ue,name:le,eventType:oe})}}return se.valid},ce=()=>{for(const j of d.unMount){const C=ue(o,j);C&&(C._f.refs?C._f.refs.every(I=>!x1(I)):!x1(C._f.ref))&&jn(j)}d.unMount=new Set},pe=(j,C)=>!t.disabled&&(j&&C&&rt(s,j,C),!Un(de(),n)),Ae=(j,C,I)=>K1(j,d,{...c.mount?s:gt(C)?n:dn(j)?{[j]:C}:C},I,C),q=j=>Sm(ue(c.mount?s:n,j,t.shouldUnregister?ue(n,j,[]):[])),ee=(j,C,I={})=>{const oe=ue(o,j);let se=C;if(oe){const le=oe._f;le&&(!le.disabled&&rt(s,j,J4(C,le)),se=ju(le.ref)&&gn(C)?"":C,K4(le.ref)?[...le.ref.options].forEach(me=>me.selected=se.includes(me.value)):le.refs?yl(le.ref)?le.refs.forEach(me=>{(!me.defaultChecked||!me.disabled)&&(Array.isArray(se)?me.checked=!!se.find(Me=>Me===me.value):me.checked=se===me.value||!!se)}):le.refs.forEach(me=>me.checked=me.value===se):Am(le.ref)?le.ref.value="":(le.ref.value=se,le.ref.type||_.state.next({name:j,values:zt(s)})))}(I.shouldDirty||I.shouldTouch)&&L(j,se,I.shouldTouch,I.shouldDirty,!0),I.shouldValidate&&ae(j)},he=(j,C,I)=>{for(const oe in C){if(!C.hasOwnProperty(oe))return;const se=C[oe],le=j+"."+oe,me=ue(o,le);(d.array.has(j)||jt(se)||me&&!me._f)&&!vi(se)?he(le,se,I):ee(le,se,I)}},we=(j,C,I={})=>{const oe=ue(o,j),se=d.array.has(j),le=zt(C),me=ue(s,j),Me=Un(me,le);if(rt(s,j,le),se)_.array.next({name:j,values:zt(s)}),(b.isDirty||b.dirtyFields||x.isDirty||x.dirtyFields)&&I.shouldDirty&&(T(),_.state.next({name:j,dirtyFields:a.dirtyFields,isDirty:pe(j,le)}));else{const Ue=Array.isArray(le)&&!le.length||sn(le);!oe||oe._f||gn(le)||Ue?ee(j,le,I):he(j,le,I)}if(!Me){const Ue=U6(j,d);_.state.next({...Ue&&a,name:c.mount||Ue?j:void 0,values:zt(s)})}},De=j=>{const C=un(j)?j(s):j;Un(s,C)||(s={...s,...C},_.state.next({...a,values:s}))},z=async j=>{c.mount=!0;const C=j.target;let I=C.name,oe=!0;const se=ue(o,I),le=Ue=>{oe=Number.isNaN(Ue)||vi(Ue)&&isNaN(Ue.getTime())||Un(Ue,ue(s,I,Ue))},me=L6(t.mode),Me=L6(t.reValidateMode);if(se){let Ue,Mt;const yt=C.type?P6(se._f):U4(j),kt=j.type===za.BLUR||j.type===za.FOCUS_OUT,mn=!dT(se._f)&&!e.validate&&!t.resolver&&!ue(a.errors,I)&&!se._f.deps||pT(kt,ue(a.touchedFields,I),a.isSubmitted,Me,me),Fo=U6(I,d,kt);rt(s,I,yt),kt?(!C||!C.readOnly)&&(se._f.onBlur&&se._f.onBlur(j),m&&m(0)):se._f.onChange&&se._f.onChange(j);const qo=L(I,yt,kt),Ld=!sn(qo)||Fo;if(!kt&&_.state.next({name:I,type:j.type,values:zt(s)}),mn)return(b.isValid||x.isValid)&&(t.mode==="onBlur"?kt&&A():kt||A()),Ld&&_.state.next({name:I,...Fo?{}:qo});if(!t.resolver&&e.validate&&await ie({name:I,eventType:j.type}),!kt&&Fo&&_.state.next({...a}),t.resolver){const{errors:Ba}=await H([I]);if(E([I]),le(yt),oe){const Di=Z6(a.errors,o,I),Ka=Z6(Ba,o,Di.name||I);Ue=Ka.error,I=Ka.name,Mt=sn(Ba)}}else E([I],!0),Ue=(await H6(se,d.disabled,s,w,t.shouldUseNativeValidation))[I],E([I]),le(yt),oe&&(Ue?Mt=!1:(b.isValid||x.isValid)&&(Mt=await W({fields:o,onlyCheckValid:!0,name:I,eventType:j.type})));oe&&(se._f.deps&&(!Array.isArray(se._f.deps)||se._f.deps.length>0)&&ae(se._f.deps),B(I,Mt,Ue,qo))}},G=(j,C)=>{if(ue(a.errors,C)&&j.focus)return j.focus(),1},ae=async(j,C={})=>{let I,oe;const se=Xs(j);if(t.resolver){const le=await ne(gt(j)?j:se);I=sn(le),oe=j?!se.some(me=>ue(le,me)):I}else j?(oe=(await Promise.all(se.map(async le=>{const me=ue(o,le);return await W({fields:me&&me._f?{[le]:me}:me,eventType:za.TRIGGER})}))).every(Boolean),!(!oe&&!a.isValid)&&A()):oe=I=await W({fields:o,name:j,eventType:za.TRIGGER});return _.state.next({...!dn(j)||(b.isValid||x.isValid)&&I!==a.isValid?{}:{name:j},...t.resolver||!j?{isValid:I}:{},errors:a.errors}),C.shouldFocus&&!oe&&Ys(o,G,j?se:d.mount),oe},de=(j,C)=>{let I={...c.mount?s:n};return C&&(I=B4(C.dirtyFields?a.dirtyFields:a.touchedFields,I)),gt(j)?I:dn(j)?ue(I,j):j.map(oe=>ue(I,oe))},ve=(j,C)=>({invalid:!!ue((C||a).errors,j),isDirty:!!ue((C||a).dirtyFields,j),error:ue((C||a).errors,j),isValidating:!!ue(a.validatingFields,j),isTouched:!!ue((C||a).touchedFields,j)}),je=j=>{const C=j?Xs(j):void 0;C?.forEach(I=>Lt(a.errors,I)),C?C.forEach(I=>{_.state.next({name:I,errors:a.errors})}):_.state.next({errors:{}})},Ie=(j,C,I)=>{const oe=(ue(o,j,{_f:{}})._f||{}).ref,se=ue(a.errors,j)||{},{ref:le,message:me,type:Me,...Ue}=se;rt(a.errors,j,{...Ue,...C,ref:oe}),_.state.next({name:j,errors:a.errors,isValid:!1}),I&&I.shouldFocus&&oe&&oe.focus&&oe.focus()},wt=(j,C)=>un(j)?_.state.subscribe({next:I=>"values"in I&&j(I.values||Ae(void 0,C),I)}):Ae(j,C,!0),Ye=j=>_.state.subscribe({next:C=>{if(mT(j.name,C.name,j.exact)&&fT(C,j.formState||b,qa,j.reRenderRoot)){const I={...s};j.callback({values:I,...a,...C,defaultValues:n})}}}).unsubscribe,dr=j=>(c.mount=!0,x={...x,...j.formState},Ye({...j,formState:{...y,...j.formState}})),jn=(j,C={})=>{for(const I of j?Xs(j):d.mount)d.mount.delete(I),d.array.delete(I),C.keepValue||(Lt(o,I),Lt(s,I)),!C.keepError&&Lt(a.errors,I),!C.keepDirty&&Lt(a.dirtyFields,I),!C.keepTouched&&Lt(a.touchedFields,I),!C.keepIsValidating&&Lt(a.validatingFields,I),!t.shouldUnregister&&!C.keepDefaultValue&&Lt(n,I);_.state.next({values:zt(s)}),_.state.next({...a,...C.keepDirty?{isDirty:pe()}:{}}),!C.keepIsValid&&A()},fr=({disabled:j,name:C})=>{if(In(j)&&c.mount||j||d.disabled.has(C)){const se=d.disabled.has(C)!==!!j;j?d.disabled.add(C):d.disabled.delete(C),se&&c.mount&&!c.action&&A()}},zr=(j,C={})=>{let I=ue(o,j);const oe=In(C.disabled)||In(t.disabled),se=!d.registerName.has(j)&&I&&I._f&&!I._f.mount;return rt(o,j,{...I||{},_f:{...I&&I._f?I._f:{ref:{name:j}},name:j,mount:!0,...C}}),d.mount.add(j),I&&!se?fr({disabled:In(C.disabled)?C.disabled:t.disabled,name:j}):K(j,!0,C.value),{...oe?{disabled:C.disabled||t.disabled}:{},...t.progressive?{required:!!C.required,min:Fs(C.min),max:Fs(C.max),minLength:Fs(C.minLength),maxLength:Fs(C.maxLength),pattern:Fs(C.pattern)}:{},name:j,onChange:z,onBlur:z,ref:le=>{if(le){d.registerName.add(j),zr(j,C),d.registerName.delete(j),I=ue(o,j);const me=gt(le.value)&&le.querySelectorAll&&le.querySelectorAll("input,select,textarea")[0]||le,Me=iT(me),Ue=I._f.refs||[];if(Me?Ue.find(Mt=>Mt===me):me===I._f.ref)return;rt(o,j,{_f:{...I._f,...Me?{refs:[...Ue.filter(x1),me,...Array.isArray(ue(n,j))?[{}]:[]],ref:{type:me.type,name:j}}:{ref:me}}}),K(j,!1,void 0,me)}else I=ue(o,j,{}),I._f&&(I._f.mount=!1),(t.shouldUnregister||C.shouldUnregister)&&!(Z4(d.array,j)&&c.action)&&d.unMount.add(j)}}},yn=()=>t.shouldFocusError&&Ys(o,G,d.mount),Fa=j=>{In(j)&&(_.state.next({disabled:j}),Ys(o,(C,I)=>{const oe=ue(o,I);oe&&(C.disabled=oe._f.disabled||j,Array.isArray(oe._f.refs)&&oe._f.refs.forEach(se=>{se.disabled=oe._f.disabled||j}))},0,!1))},Rr=(j,C)=>async I=>{let oe;I&&(I.preventDefault&&I.preventDefault(),I.persist&&I.persist());let se=zt(s);if(_.state.next({isSubmitting:!0}),t.resolver){const{errors:le,values:me}=await H();E(),a.errors=le,se=zt(me)}else await W({fields:o,eventType:za.SUBMIT});if(d.disabled.size)for(const le of d.disabled)Lt(se,le);if(Lt(a.errors,V4),sn(a.errors)){_.state.next({errors:{}});try{await j(se,I)}catch(le){oe=le}}else C&&await C({...a.errors},I),yn(),setTimeout(yn);if(_.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:sn(a.errors)&&!oe,submitCount:a.submitCount+1,errors:a.errors}),oe)throw oe},Ri=(j,C={})=>{ue(o,j)&&(gt(C.defaultValue)?we(j,zt(ue(n,j))):(we(j,C.defaultValue),rt(n,j,zt(C.defaultValue))),C.keepTouched||Lt(a.touchedFields,j),C.keepDirty||(Lt(a.dirtyFields,j),a.isDirty=C.defaultValue?pe(j,zt(ue(n,j))):pe()),C.keepError||(Lt(a.errors,j),b.isValid&&A()),_.state.next({...a}))},Bn=(j,C={})=>{const I=j?zt(j):n,oe=zt(I),se=sn(j),le=se?n:oe;if(C.keepDefaultValues||(n=I),!C.keepValues){if(C.keepDirtyValues){const me=new Set([...d.mount,...Object.keys(Ks(n,s))]);for(const Me of Array.from(me)){const Ue=ue(a.dirtyFields,Me),Mt=ue(s,Me),yt=ue(le,Me);Ue&&!gt(Mt)?rt(le,Me,Mt):!Ue&&!gt(yt)&&we(Me,yt)}}else{if(xm&>(j))for(const me of d.mount){const Me=ue(o,me);if(Me&&Me._f){const Ue=Array.isArray(Me._f.refs)?Me._f.refs[0]:Me._f.ref;if(ju(Ue)){const Mt=Ue.closest("form");if(Mt){Mt.reset();break}}}}if(C.keepFieldsRef)for(const me of d.mount)we(me,ue(le,me));else o={}}s=t.shouldUnregister?C.keepDefaultValues?zt(n):{}:zt(le),_.array.next({values:{...le}}),_.state.next({values:{...le}})}d={mount:C.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},c.mount=!b.isValid||!!C.keepIsValid||!!C.keepDirtyValues||!t.shouldUnregister&&!sn(le),c.watch=!!t.shouldUnregister,c.keepIsValid=!!C.keepIsValid,c.action=!1,C.keepErrors||(a.errors={}),_.state.next({submitCount:C.keepSubmitCount?a.submitCount:0,isDirty:se?!1:C.keepDirty?a.isDirty:!!(C.keepDefaultValues&&!Un(j,n)),isSubmitted:C.keepIsSubmitted?a.isSubmitted:!1,dirtyFields:se?{}:C.keepDirtyValues?C.keepDefaultValues&&s?Ks(n,s):a.dirtyFields:C.keepDefaultValues&&j?Ks(n,j):C.keepDirty?a.dirtyFields:{},touchedFields:C.keepTouched?a.touchedFields:{},errors:C.keepErrors?a.errors:{},isSubmitSuccessful:C.keepIsSubmitSuccessful?a.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:n})},Sr=(j,C)=>Bn(un(j)?j(s):j,{...t.resetOptions,...C}),Mn=(j,C={})=>{const I=ue(o,j),oe=I&&I._f;if(oe){const se=oe.refs?oe.refs[0]:oe.ref;se.focus&&setTimeout(()=>{se.focus(),C.shouldSelect&&un(se.select)&&se.select()})}},qa=j=>{a={...a,...j}},Ci={control:{register:zr,unregister:jn,getFieldState:ve,handleSubmit:Rr,setError:Ie,_subscribe:Ye,_runSchema:H,_updateIsValidating:E,_focusError:yn,_getWatch:Ae,_getDirty:pe,_setValid:A,_setFieldArray:N,_setDisabledField:fr,_setErrors:U,_getFieldArray:q,_reset:Bn,_resetDefaultValues:()=>un(t.defaultValues)&&t.defaultValues().then(j=>{Sr(j,t.resetOptions),_.state.next({isLoading:!1})}),_removeUnmounted:ce,_disableForm:Fa,_subjects:_,_proxyFormState:b,get _fields(){return o},get _formValues(){return s},get _state(){return c},set _state(j){c=j},get _defaultValues(){return n},get _names(){return d},set _names(j){d=j},get _formState(){return a},get _options(){return t},set _options(j){t={...t,...j}}},subscribe:dr,trigger:ae,register:zr,handleSubmit:Rr,watch:wt,setValue:we,setValues:De,getValues:de,reset:Sr,resetField:Ri,clearErrors:je,unregister:jn,setError:Ie,setFocus:Mn,getFieldState:ve};return{...Ci,formControl:Ci}}function rn(e={}){const t=$e.useRef(void 0),a=$e.useRef(void 0),[o,n]=$e.useState(()=>({...zt(Y4),isLoading:un(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:un(e.defaultValues)?void 0:e.defaultValues}));if(!t.current)if(e.formControl)t.current={...e.formControl,formState:o},e.defaultValues&&!un(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:c,...d}=yT(e);t.current={...d,formState:o}}const s=t.current.control;return s._options=e,$m(()=>{const c=s._subscribe({formState:s._proxyFormState,callback:()=>n({...s._formState}),reRenderRoot:!0});return n(d=>({...d,isReady:!0})),s._formState.isReady=!0,c},[s]),$e.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),$e.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),$e.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),$e.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),$e.useEffect(()=>{if(s._proxyFormState.isDirty){const c=s._getDirty();c!==o.isDirty&&s._subjects.state.next({isDirty:c})}},[s,o.isDirty]),$e.useEffect(()=>{var c;e.values&&!Un(e.values,a.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),!((c=s._options.resetOptions)===null||c===void 0)&&c.keepIsValid||s._setValid(),a.current=e.values,n(d=>({...d}))):s._resetDefaultValues()},[s,e.values]),$e.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=$e.useMemo(()=>F4(o,s),[s,o]),t.current}const F6=(e,t,a)=>{if(e&&"reportValidity"in e){const o=ue(a,t);e.setCustomValidity(o&&o.message||""),e.reportValidity()}},W4=(e,t)=>{for(const a in t.fields){const o=t.fields[a];o&&o.ref&&"reportValidity"in o.ref?F6(o.ref,a,e):o&&o.refs&&o.refs.forEach(n=>F6(n,a,e))}},bT=(e,t)=>{t.shouldUseNativeValidation&&W4(e,t);const a={};for(const o in e){const n=ue(t.fields,o),s=Object.assign(e[o]||{},{ref:n&&n.ref});if(_T(t.names||Object.keys(e),o)){const c=Object.assign({},ue(a,o));rt(c,"root",s),rt(a,o,c)}else rt(a,o,s)}return a},_T=(e,t)=>{const a=q6(t);return e.some(o=>q6(o).match(`^${a}\\.\\d+`))};function q6(e){return e.replace(/\]|\[/g,"")}function xT(e){if(e.path?.length){let t="";for(const a of e.path){const o=typeof a=="object"?a.key:a;if(typeof o=="string"||typeof o=="number")t?t+=`.${o}`:t+=o;else return null}return t}return null}function X1(){return X1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)({}).hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},X1.apply(null,arguments)}function an(e,t,a){return a===void 0&&(a={}),function(o,n,s){try{var c=function(){if(d.issues){var p=(function(y,b){for(var x={},_=0;_<y.length;_++){var w=y[_],$=xT(w);if($&&(x[$]||(x[$]={message:w.message,type:""}),b)){var A,E=x[$].types||{};x[$].types=X1({},E,((A={})[Object.keys(E).length]=w.message,A))}}return x})(d.issues,!s.shouldUseNativeValidation&&s.criteriaMode==="all");return{values:{},errors:bT(p,s)}}return s.shouldUseNativeValidation&&W4({},s),{values:a.raw?Object.assign({},o):d.value,errors:{}}},d=e["~standard"].validate(o),m=(function(){if(d instanceof Promise)return Promise.resolve(d).then(function(p){d=p})})();return Promise.resolve(m&&m.then?m.then(c):c())}catch(p){return Promise.reject(p)}}}var B6;const eb=Object.freeze({status:"aborted"});function P(e,t,a){function o(d,m){if(d._zod||Object.defineProperty(d,"_zod",{value:{def:m,constr:c,traits:new Set},enumerable:!1}),d._zod.traits.has(e))return;d._zod.traits.add(e),t(d,m);const p=c.prototype,y=Object.keys(p);for(let b=0;b<y.length;b++){const x=y[b];x in d||(d[x]=p[x].bind(d))}}const n=a?.Parent??Object;class s extends n{}Object.defineProperty(s,"name",{value:e});function c(d){var m;const p=a?.Parent?new s:this;o(p,d),(m=p._zod).deferred??(m.deferred=[]);for(const y of p._zod.deferred)y();return p}return Object.defineProperty(c,"init",{value:o}),Object.defineProperty(c,Symbol.hasInstance,{value:d=>a?.Parent&&d instanceof a.Parent?!0:d?._zod?.traits?.has(e)}),Object.defineProperty(c,"name",{value:e}),c}const tb=Symbol("zod_brand");class Si extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ku extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(B6=globalThis).__zod_globalConfig??(B6.__zod_globalConfig={});const ul=globalThis.__zod_globalConfig;function nn(e){return e&&Object.assign(ul,e),ul}function ST(e){return e}function wT(e){return e}function kT(e){}function $T(e){throw new Error("Unexpected value in exhaustive check")}function AT(e){}function Tm(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function re(e,t="|"){return e.map(a=>_e(a)).join(t)}function Ou(e,t){return typeof t=="bigint"?t.toString():t}function bl(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Ni(e){return e==null}function Qu(e){const t=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;return e.slice(t,a)}function nb(e,t){const a=e/t,o=Math.round(a),n=Number.EPSILON*Math.max(Math.abs(a),1);return Math.abs(a-o)<n?0:a-o}const K6=Symbol("evaluating");function Pe(e,t,a){let o;Object.defineProperty(e,t,{get(){if(o!==K6)return o===void 0&&(o=K6,o=a()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function ET(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ha(e,t,a){Object.defineProperty(e,t,{value:a,writable:!0,enumerable:!0,configurable:!0})}function Nr(...e){const t={};for(const a of e){const o=Object.getOwnPropertyDescriptors(a);Object.assign(t,o)}return Object.defineProperties({},t)}function TT(e){return Nr(e._zod.def)}function jT(e,t){return t?t.reduce((a,o)=>a?.[o],e):e}function MT(e){const t=Object.keys(e),a=t.map(o=>e[o]);return Promise.all(a).then(o=>{const n={};for(let s=0;s<t.length;s++)n[t[s]]=o[s];return n})}function OT(e=10){const t="abcdefghijklmnopqrstuvwxyz";let a="";for(let o=0;o<e;o++)a+=t[Math.floor(Math.random()*t.length)];return a}function Y1(e){return JSON.stringify(e)}function rb(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const jm="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function No(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const ab=bl(()=>{if(ul.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Ai(e){if(No(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const a=t.prototype;return!(No(a)===!1||Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)}function Gu(e){return Ai(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function NT(e){let t=0;for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&t++;return t}const zT=e=>{const t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Nu=new Set(["string","number","symbol"]),ib=new Set(["string","number","bigint","boolean","symbol","undefined"]);function aa(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ur(e,t,a){const o=new e._zod.constr(t??e._zod.def);return(!t||a?.parent)&&(o._zod.parent=e),o}function te(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function RT(e){let t;return new Proxy({},{get(a,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(a,o,n,s){return t??(t=e()),Reflect.set(t,o,n,s)},has(a,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(a,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(a){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(a,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(a,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function _e(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function ob(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const sb={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},lb={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function cb(e,t){const a=e._zod.def,o=a.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=Nr(e._zod.def,{get shape(){const c={};for(const d in t){if(!(d in a.shape))throw new Error(`Unrecognized key: "${d}"`);t[d]&&(c[d]=a.shape[d])}return Ha(this,"shape",c),c},checks:[]});return ur(e,s)}function ub(e,t){const a=e._zod.def,o=a.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=Nr(e._zod.def,{get shape(){const c={...e._zod.def.shape};for(const d in t){if(!(d in a.shape))throw new Error(`Unrecognized key: "${d}"`);t[d]&&delete c[d]}return Ha(this,"shape",c),c},checks:[]});return ur(e,s)}function db(e,t){if(!Ai(t))throw new Error("Invalid input to extend: expected a plain object");const a=e._zod.def.checks;if(a&&a.length>0){const s=e._zod.def.shape;for(const c in t)if(Object.getOwnPropertyDescriptor(s,c)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const n=Nr(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return Ha(this,"shape",s),s}});return ur(e,n)}function fb(e,t){if(!Ai(t))throw new Error("Invalid input to safeExtend: expected a plain object");const a=Nr(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return Ha(this,"shape",o),o}});return ur(e,a)}function mb(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const a=Nr(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t._zod.def.shape};return Ha(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return ur(e,a)}function pb(e,t,a){const n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const c=Nr(t._zod.def,{get shape(){const d=t._zod.def.shape,m={...d};if(a)for(const p in a){if(!(p in d))throw new Error(`Unrecognized key: "${p}"`);a[p]&&(m[p]=e?new e({type:"optional",innerType:d[p]}):d[p])}else for(const p in d)m[p]=e?new e({type:"optional",innerType:d[p]}):d[p];return Ha(this,"shape",m),m},checks:[]});return ur(t,c)}function hb(e,t,a){const o=Nr(t._zod.def,{get shape(){const n=t._zod.def.shape,s={...n};if(a)for(const c in a){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);a[c]&&(s[c]=new e({type:"nonoptional",innerType:n[c]}))}else for(const c in n)s[c]=new e({type:"nonoptional",innerType:n[c]});return Ha(this,"shape",s),s}});return ur(t,o)}function yi(e,t=0){if(e.aborted===!0)return!0;for(let a=t;a<e.issues.length;a++)if(e.issues[a]?.continue!==!0)return!0;return!1}function gb(e,t=0){if(e.aborted===!0)return!0;for(let a=t;a<e.issues.length;a++)if(e.issues[a]?.continue===!1)return!0;return!1}function rr(e,t){return t.map(a=>{var o;return(o=a).path??(o.path=[]),a.path.unshift(e),a})}function Qs(e){return typeof e=="string"?e:e?.message}function Hn(e,t,a){const o=e.message?e.message:Qs(e.inst?._zod.def?.error?.(e))??Qs(t?.error?.(e))??Qs(a.customError?.(e))??Qs(a.localeError?.(e))??"Invalid input",{inst:n,continue:s,input:c,...d}=e;return d.path??(d.path=[]),d.message=o,t?.reportInput&&(d.input=c),d}function Ju(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Xu(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Se(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const a=e;if(a&&Object.getPrototypeOf(a)!==Object.prototype&&"constructor"in a&&a.constructor)return a.constructor.name}}return t}function zo(...e){const[t,a,o]=e;return typeof t=="string"?{message:t,code:"custom",input:a,inst:o}:{...t}}function CT(e){return Object.entries(e).filter(([t,a])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function vb(e){const t=atob(e),a=new Uint8Array(t.length);for(let o=0;o<t.length;o++)a[o]=t.charCodeAt(o);return a}function yb(e){let t="";for(let a=0;a<e.length;a++)t+=String.fromCharCode(e[a]);return btoa(t)}function DT(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),a="=".repeat((4-t.length%4)%4);return vb(t+a)}function PT(e){return yb(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function LT(e){const t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");const a=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)a[o/2]=Number.parseInt(t.slice(o,o+2),16);return a}function IT(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}class UT{constructor(...t){}}const bb=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:lb,Class:UT,NUMBER_FORMAT_RANGES:sb,aborted:yi,allowsEval:ab,assert:AT,assertEqual:ST,assertIs:kT,assertNever:$T,assertNotEqual:wT,assignProp:Ha,base64ToUint8Array:vb,base64urlToUint8Array:DT,cached:bl,captureStackTrace:jm,cleanEnum:CT,cleanRegex:Qu,clone:ur,cloneDef:TT,createTransparentProxy:RT,defineLazy:Pe,esc:Y1,escapeRegex:aa,explicitlyAborted:gb,extend:db,finalizeIssue:Hn,floatSafeRemainder:nb,getElementAtPath:jT,getEnumValues:Tm,getLengthableOrigin:Xu,getParsedType:zT,getSizableOrigin:Ju,hexToUint8Array:LT,isObject:No,isPlainObject:Ai,issue:zo,joinValues:re,jsonStringifyReplacer:Ou,merge:mb,mergeDefs:Nr,normalizeParams:te,nullish:Ni,numKeys:NT,objectClone:ET,omit:ub,optionalKeys:ob,parsedType:Se,partial:pb,pick:cb,prefixIssues:rr,primitiveTypes:ib,promiseAllObject:MT,propertyKeyTypes:Nu,randomString:OT,required:hb,safeExtend:fb,shallowClone:Gu,slugify:rb,stringifyPrimitive:_e,uint8ArrayToBase64:yb,uint8ArrayToBase64url:PT,uint8ArrayToHex:IT,unwrapMessage:Qs},Symbol.toStringTag,{value:"Module"})),_b=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ou,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Mm=P("$ZodError",_b),Fn=P("$ZodError",_b,{Parent:Error});function Om(e,t=a=>a.message){const a={},o=[];for(const n of e.issues)n.path.length>0?(a[n.path[0]]=a[n.path[0]]||[],a[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:a}}function Nm(e,t=a=>a.message){const a={_errors:[]},o=(n,s=[])=>{for(const c of n.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(d=>o({issues:d},[...s,...c.path]));else if(c.code==="invalid_key")o({issues:c.issues},[...s,...c.path]);else if(c.code==="invalid_element")o({issues:c.issues},[...s,...c.path]);else{const d=[...s,...c.path];if(d.length===0)a._errors.push(t(c));else{let m=a,p=0;for(;p<d.length;){const y=d[p];p===d.length-1?(m[y]=m[y]||{_errors:[]},m[y]._errors.push(t(c))):m[y]=m[y]||{_errors:[]},m=m[y],p++}}}};return o(e),a}function xb(e,t=a=>a.message){const a={errors:[]},o=(n,s=[])=>{var c,d;for(const m of n.issues)if(m.code==="invalid_union"&&m.errors.length)m.errors.map(p=>o({issues:p},[...s,...m.path]));else if(m.code==="invalid_key")o({issues:m.issues},[...s,...m.path]);else if(m.code==="invalid_element")o({issues:m.issues},[...s,...m.path]);else{const p=[...s,...m.path];if(p.length===0){a.errors.push(t(m));continue}let y=a,b=0;for(;b<p.length;){const x=p[b],_=b===p.length-1;typeof x=="string"?(y.properties??(y.properties={}),(c=y.properties)[x]??(c[x]={errors:[]}),y=y.properties[x]):(y.items??(y.items=[]),(d=y.items)[x]??(d[x]={errors:[]}),y=y.items[x]),_&&y.errors.push(t(m)),b++}}};return o(e),a}function Sb(e){const t=[],a=e.map(o=>typeof o=="object"?o.key:o);for(const o of a)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function wb(e){const t=[],a=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(const o of a)t.push(`✖ ${o.message}`),o.path?.length&&t.push(` → at ${Sb(o.path)}`);return t.join(`
|
|
10
|
-
`)}const _l=e=>(t,a,o,n)=>{const s=o?{...o,async:!1}:{async:!1},c=t._zod.run({value:a,issues:[]},s);if(c instanceof Promise)throw new Si;if(c.issues.length){const d=new(n?.Err??e)(c.issues.map(m=>Hn(m,s,nn())));throw jm(d,n?.callee),d}return c.value},W1=_l(Fn),xl=e=>async(t,a,o,n)=>{const s=o?{...o,async:!0}:{async:!0};let c=t._zod.run({value:a,issues:[]},s);if(c instanceof Promise&&(c=await c),c.issues.length){const d=new(n?.Err??e)(c.issues.map(m=>Hn(m,s,nn())));throw jm(d,n?.callee),d}return c.value},em=xl(Fn),Sl=e=>(t,a,o)=>{const n=o?{...o,async:!1}:{async:!1},s=t._zod.run({value:a,issues:[]},n);if(s instanceof Promise)throw new Si;return s.issues.length?{success:!1,error:new(e??Mm)(s.issues.map(c=>Hn(c,n,nn())))}:{success:!0,data:s.value}},kb=Sl(Fn),wl=e=>async(t,a,o)=>{const n=o?{...o,async:!0}:{async:!0};let s=t._zod.run({value:a,issues:[]},n);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(c=>Hn(c,n,nn())))}:{success:!0,data:s.value}},$b=wl(Fn),zm=e=>(t,a,o)=>{const n=o?{...o,direction:"backward"}:{direction:"backward"};return _l(e)(t,a,n)},ZT=zm(Fn),Rm=e=>(t,a,o)=>_l(e)(t,a,o),VT=Rm(Fn),Cm=e=>async(t,a,o)=>{const n=o?{...o,direction:"backward"}:{direction:"backward"};return xl(e)(t,a,n)},HT=Cm(Fn),Dm=e=>async(t,a,o)=>xl(e)(t,a,o),FT=Dm(Fn),Pm=e=>(t,a,o)=>{const n=o?{...o,direction:"backward"}:{direction:"backward"};return Sl(e)(t,a,n)},qT=Pm(Fn),Lm=e=>(t,a,o)=>Sl(e)(t,a,o),BT=Lm(Fn),Im=e=>async(t,a,o)=>{const n=o?{...o,direction:"backward"}:{direction:"backward"};return wl(e)(t,a,n)},KT=Im(Fn),Um=e=>async(t,a,o)=>wl(e)(t,a,o),QT=Um(Fn),Ab=/^[cC][0-9a-z]{6,}$/,Eb=/^[0-9a-z]+$/,Tb=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,jb=/^[0-9a-vA-V]{20}$/,Mb=/^[A-Za-z0-9]{27}$/,Ob=/^[a-zA-Z0-9_-]{21}$/,Nb=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,GT=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,zb=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ro=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,JT=Ro(4),XT=Ro(6),YT=Ro(7),Rb=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,WT=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ej=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Cb=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,tj=Cb,nj=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,rj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Db(){return new RegExp(rj,"u")}const Pb=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Lb=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ib=e=>{const t=aa(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Ub=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Zb=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Vb=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Zm=/^[A-Za-z0-9_-]*$/,Hb=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Fb=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Vm=/^https?$/,qb=/^\+[1-9]\d{6,14}$/,Bb="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Kb=new RegExp(`^${Bb}$`);function Qb(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Gb(e){return new RegExp(`^${Qb(e)}$`)}function Jb(e){const t=Qb({precision:e.precision}),a=["Z"];e.local&&a.push(""),e.offset&&a.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${t}(?:${a.join("|")})`;return new RegExp(`^${Bb}T(?:${o})$`)}const Xb=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Yb=/^-?\d+n?$/,Wb=/^-?\d+$/,Hm=/^-?\d+(?:\.\d+)?$/,e3=/^(?:true|false)$/i,t3=/^null$/i,n3=/^undefined$/i,r3=/^[^A-Z]*$/,a3=/^[^a-z]*$/,i3=/^[0-9a-fA-F]*$/;function kl(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function $l(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const aj=/^[0-9a-fA-F]{32}$/,ij=kl(22,"=="),oj=$l(22),sj=/^[0-9a-fA-F]{40}$/,lj=kl(27,"="),cj=$l(27),uj=/^[0-9a-fA-F]{64}$/,dj=kl(43,"="),fj=$l(43),mj=/^[0-9a-fA-F]{96}$/,pj=kl(64,""),hj=$l(64),gj=/^[0-9a-fA-F]{128}$/,vj=kl(86,"=="),yj=$l(86),Fm=Object.freeze(Object.defineProperty({__proto__:null,base64:Vb,base64url:Zm,bigint:Yb,boolean:e3,browserEmail:nj,cidrv4:Ub,cidrv6:Zb,cuid:Ab,cuid2:Eb,date:Kb,datetime:Jb,domain:Fb,duration:Nb,e164:qb,email:Rb,emoji:Db,extendedDuration:GT,guid:zb,hex:i3,hostname:Hb,html5Email:WT,httpProtocol:Vm,idnEmail:tj,integer:Wb,ipv4:Pb,ipv6:Lb,ksuid:Mb,lowercase:r3,mac:Ib,md5_base64:ij,md5_base64url:oj,md5_hex:aj,nanoid:Ob,null:t3,number:Hm,rfc5322Email:ej,sha1_base64:lj,sha1_base64url:cj,sha1_hex:sj,sha256_base64:dj,sha256_base64url:fj,sha256_hex:uj,sha384_base64:pj,sha384_base64url:hj,sha384_hex:mj,sha512_base64:vj,sha512_base64url:yj,sha512_hex:gj,string:Xb,time:Gb,ulid:Tb,undefined:n3,unicodeEmail:Cb,uppercase:a3,uuid:Ro,uuid4:JT,uuid6:XT,uuid7:YT,xid:jb},Symbol.toStringTag,{value:"Module"})),St=P("$ZodCheck",(e,t)=>{var a;e._zod??(e._zod={}),e._zod.def=t,(a=e._zod).onattach??(a.onattach=[])}),o3={number:"number",bigint:"bigint",object:"date"},qm=P("$ZodCheckLessThan",(e,t)=>{St.init(e,t);const a=o3[typeof t.value];e._zod.onattach.push(o=>{const n=o._zod.bag,s=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<s&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:a,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Bm=P("$ZodCheckGreaterThan",(e,t)=>{St.init(e,t);const a=o3[typeof t.value];e._zod.onattach.push(o=>{const n=o._zod.bag,s=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:a,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),s3=P("$ZodCheckMultipleOf",(e,t)=>{St.init(e,t),e._zod.onattach.push(a=>{var o;(o=a._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=a=>{if(typeof a.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof a.value=="bigint"?a.value%t.value===BigInt(0):nb(a.value,t.value)===0)||a.issues.push({origin:typeof a.value,code:"not_multiple_of",divisor:t.value,input:a.value,inst:e,continue:!t.abort})}}),l3=P("$ZodCheckNumberFormat",(e,t)=>{St.init(e,t),t.format=t.format||"float64";const a=t.format?.includes("int"),o=a?"int":"number",[n,s]=sb[t.format];e._zod.onattach.push(c=>{const d=c._zod.bag;d.format=t.format,d.minimum=n,d.maximum=s,a&&(d.pattern=Wb)}),e._zod.check=c=>{const d=c.value;if(a){if(!Number.isInteger(d)){c.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:d,inst:e});return}if(!Number.isSafeInteger(d)){d>0?c.issues.push({input:d,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):c.issues.push({input:d,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}d<n&&c.issues.push({origin:"number",input:d,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),d>s&&c.issues.push({origin:"number",input:d,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),c3=P("$ZodCheckBigIntFormat",(e,t)=>{St.init(e,t);const[a,o]=lb[t.format];e._zod.onattach.push(n=>{const s=n._zod.bag;s.format=t.format,s.minimum=a,s.maximum=o}),e._zod.check=n=>{const s=n.value;s<a&&n.issues.push({origin:"bigint",input:s,code:"too_small",minimum:a,inclusive:!0,inst:e,continue:!t.abort}),s>o&&n.issues.push({origin:"bigint",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),u3=P("$ZodCheckMaxSize",(e,t)=>{var a;St.init(e,t),(a=e._zod.def).when??(a.when=o=>{const n=o.value;return!Ni(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{const n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const n=o.value;n.size<=t.maximum||o.issues.push({origin:Ju(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),d3=P("$ZodCheckMinSize",(e,t)=>{var a;St.init(e,t),(a=e._zod.def).when??(a.when=o=>{const n=o.value;return!Ni(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{const n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const n=o.value;n.size>=t.minimum||o.issues.push({origin:Ju(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),f3=P("$ZodCheckSizeEquals",(e,t)=>{var a;St.init(e,t),(a=e._zod.def).when??(a.when=o=>{const n=o.value;return!Ni(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{const n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{const n=o.value,s=n.size;if(s===t.size)return;const c=s>t.size;o.issues.push({origin:Ju(n),...c?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),m3=P("$ZodCheckMaxLength",(e,t)=>{var a;St.init(e,t),(a=e._zod.def).when??(a.when=o=>{const n=o.value;return!Ni(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{const n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const n=o.value;if(n.length<=t.maximum)return;const c=Xu(n);o.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),p3=P("$ZodCheckMinLength",(e,t)=>{var a;St.init(e,t),(a=e._zod.def).when??(a.when=o=>{const n=o.value;return!Ni(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{const n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const n=o.value;if(n.length>=t.minimum)return;const c=Xu(n);o.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),h3=P("$ZodCheckLengthEquals",(e,t)=>{var a;St.init(e,t),(a=e._zod.def).when??(a.when=o=>{const n=o.value;return!Ni(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{const n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{const n=o.value,s=n.length;if(s===t.length)return;const c=Xu(n),d=s>t.length;o.issues.push({origin:c,...d?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Al=P("$ZodCheckStringFormat",(e,t)=>{var a,o;St.init(e,t),e._zod.onattach.push(n=>{const s=n._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(a=e._zod).check??(a.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),g3=P("$ZodCheckRegex",(e,t)=>{Al.init(e,t),e._zod.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:"regex",input:a.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),v3=P("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=r3),Al.init(e,t)}),y3=P("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=a3),Al.init(e,t)}),b3=P("$ZodCheckIncludes",(e,t)=>{St.init(e,t);const a=aa(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${a}`:a);t.pattern=o,e._zod.onattach.push(n=>{const s=n._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),_3=P("$ZodCheckStartsWith",(e,t)=>{St.init(e,t);const a=new RegExp(`^${aa(t.prefix)}.*`);t.pattern??(t.pattern=a),e._zod.onattach.push(o=>{const n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(a)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),x3=P("$ZodCheckEndsWith",(e,t)=>{St.init(e,t);const a=new RegExp(`.*${aa(t.suffix)}$`);t.pattern??(t.pattern=a),e._zod.onattach.push(o=>{const n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(a)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function Q6(e,t,a){e.issues.length&&t.issues.push(...rr(a,e.issues))}const S3=P("$ZodCheckProperty",(e,t)=>{St.init(e,t),e._zod.check=a=>{const o=t.schema._zod.run({value:a.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>Q6(n,a,t.property));Q6(o,a,t.property)}}),w3=P("$ZodCheckMimeType",(e,t)=>{St.init(e,t);const a=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{a.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),k3=P("$ZodCheckOverwrite",(e,t)=>{St.init(e,t),e._zod.check=a=>{a.value=t.tx(a.value)}});class $3{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const o=t.split(`
|
|
11
|
-
`).filter(c=>c),n=Math.min(...o.map(c=>c.length-c.trimStart().length)),s=o.map(c=>c.slice(n)).map(c=>" ".repeat(this.indent*2)+c);for(const c of s)this.content.push(c)}compile(){const t=Function,a=this?.args,n=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...a,n.join(`
|
|
12
|
-
`))}}const A3={major:4,minor:4,patch:3},Te=P("$ZodType",(e,t)=>{var a;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=A3;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const n of o)for(const s of n._zod.onattach)s(e);if(o.length===0)(a=e._zod).deferred??(a.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const n=(c,d,m)=>{let p=yi(c),y;for(const b of d){if(b._zod.def.when){if(gb(c)||!b._zod.def.when(c))continue}else if(p)continue;const x=c.issues.length,_=b._zod.check(c);if(_ instanceof Promise&&m?.async===!1)throw new Si;if(y||_ instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await _,c.issues.length!==x&&(p||(p=yi(c,x)))});else{if(c.issues.length===x)continue;p||(p=yi(c,x))}}return y?y.then(()=>c):c},s=(c,d,m)=>{if(yi(c))return c.aborted=!0,c;const p=n(d,o,m);if(p instanceof Promise){if(m.async===!1)throw new Si;return p.then(y=>e._zod.parse(y,m))}return e._zod.parse(p,m)};e._zod.run=(c,d)=>{if(d.skipChecks)return e._zod.parse(c,d);if(d.direction==="backward"){const p=e._zod.parse({value:c.value,issues:[]},{...d,skipChecks:!0});return p instanceof Promise?p.then(y=>s(y,c,d)):s(p,c,d)}const m=e._zod.parse(c,d);if(m instanceof Promise){if(d.async===!1)throw new Si;return m.then(p=>n(p,o,d))}return n(m,o,d)}}Pe(e,"~standard",()=>({validate:n=>{try{const s=kb(e,n);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return $b(e,n).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:"zod",version:1}))}),El=P("$ZodString",(e,t)=>{Te.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Xb(e._zod.bag),e._zod.parse=(a,o)=>{if(t.coerce)try{a.value=String(a.value)}catch{}return typeof a.value=="string"||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}}),ft=P("$ZodStringFormat",(e,t)=>{Al.init(e,t),El.init(e,t)}),E3=P("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=zb),ft.init(e,t)}),T3=P("$ZodUUID",(e,t)=>{if(t.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ro(o))}else t.pattern??(t.pattern=Ro());ft.init(e,t)}),j3=P("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Rb),ft.init(e,t)}),M3=P("$ZodURL",(e,t)=>{ft.init(e,t),e._zod.check=a=>{try{const o=a.value.trim();if(!t.normalize&&t.protocol?.source===Vm.source&&!/^https?:\/\//i.test(o)){a.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:a.value,inst:e,continue:!t.abort});return}const n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:a.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:a.value,inst:e,continue:!t.abort})),t.normalize?a.value=n.href:a.value=o;return}catch{a.issues.push({code:"invalid_format",format:"url",input:a.value,inst:e,continue:!t.abort})}}}),O3=P("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Db()),ft.init(e,t)}),N3=P("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Ob),ft.init(e,t)}),z3=P("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ab),ft.init(e,t)}),R3=P("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Eb),ft.init(e,t)}),C3=P("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Tb),ft.init(e,t)}),D3=P("$ZodXID",(e,t)=>{t.pattern??(t.pattern=jb),ft.init(e,t)}),P3=P("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Mb),ft.init(e,t)}),L3=P("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Jb(t)),ft.init(e,t)}),I3=P("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Kb),ft.init(e,t)}),U3=P("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Gb(t)),ft.init(e,t)}),Z3=P("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Nb),ft.init(e,t)}),V3=P("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Pb),ft.init(e,t),e._zod.bag.format="ipv4"}),H3=P("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Lb),ft.init(e,t),e._zod.bag.format="ipv6",e._zod.check=a=>{try{new URL(`http://[${a.value}]`)}catch{a.issues.push({code:"invalid_format",format:"ipv6",input:a.value,inst:e,continue:!t.abort})}}}),F3=P("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Ib(t.delimiter)),ft.init(e,t),e._zod.bag.format="mac"}),q3=P("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ub),ft.init(e,t)}),B3=P("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Zb),ft.init(e,t),e._zod.check=a=>{const o=a.value.split("/");try{if(o.length!==2)throw new Error;const[n,s]=o;if(!s)throw new Error;const c=Number(s);if(`${c}`!==s)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${n}]`)}catch{a.issues.push({code:"invalid_format",format:"cidrv6",input:a.value,inst:e,continue:!t.abort})}}});function Km(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const K3=P("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Vb),ft.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=a=>{Km(a.value)||a.issues.push({code:"invalid_format",format:"base64",input:a.value,inst:e,continue:!t.abort})}});function Q3(e){if(!Zm.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),a=t.padEnd(Math.ceil(t.length/4)*4,"=");return Km(a)}const G3=P("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Zm),ft.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=a=>{Q3(a.value)||a.issues.push({code:"invalid_format",format:"base64url",input:a.value,inst:e,continue:!t.abort})}}),J3=P("$ZodE164",(e,t)=>{t.pattern??(t.pattern=qb),ft.init(e,t)});function X3(e,t=null){try{const a=e.split(".");if(a.length!==3)return!1;const[o]=a;if(!o)return!1;const n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}const Y3=P("$ZodJWT",(e,t)=>{ft.init(e,t),e._zod.check=a=>{X3(a.value,t.alg)||a.issues.push({code:"invalid_format",format:"jwt",input:a.value,inst:e,continue:!t.abort})}}),W3=P("$ZodCustomStringFormat",(e,t)=>{ft.init(e,t),e._zod.check=a=>{t.fn(a.value)||a.issues.push({code:"invalid_format",format:t.format,input:a.value,inst:e,continue:!t.abort})}}),Qm=P("$ZodNumber",(e,t)=>{Te.init(e,t),e._zod.pattern=e._zod.bag.pattern??Hm,e._zod.parse=(a,o)=>{if(t.coerce)try{a.value=Number(a.value)}catch{}const n=a.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return a;const s=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return a.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...s?{received:s}:{}}),a}}),e_=P("$ZodNumberFormat",(e,t)=>{l3.init(e,t),Qm.init(e,t)}),Gm=P("$ZodBoolean",(e,t)=>{Te.init(e,t),e._zod.pattern=e3,e._zod.parse=(a,o)=>{if(t.coerce)try{a.value=!!a.value}catch{}const n=a.value;return typeof n=="boolean"||a.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),a}}),Jm=P("$ZodBigInt",(e,t)=>{Te.init(e,t),e._zod.pattern=Yb,e._zod.parse=(a,o)=>{if(t.coerce)try{a.value=BigInt(a.value)}catch{}return typeof a.value=="bigint"||a.issues.push({expected:"bigint",code:"invalid_type",input:a.value,inst:e}),a}}),t_=P("$ZodBigIntFormat",(e,t)=>{c3.init(e,t),Jm.init(e,t)}),n_=P("$ZodSymbol",(e,t)=>{Te.init(e,t),e._zod.parse=(a,o)=>{const n=a.value;return typeof n=="symbol"||a.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),a}}),r_=P("$ZodUndefined",(e,t)=>{Te.init(e,t),e._zod.pattern=n3,e._zod.values=new Set([void 0]),e._zod.parse=(a,o)=>{const n=a.value;return typeof n>"u"||a.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),a}}),a_=P("$ZodNull",(e,t)=>{Te.init(e,t),e._zod.pattern=t3,e._zod.values=new Set([null]),e._zod.parse=(a,o)=>{const n=a.value;return n===null||a.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),a}}),i_=P("$ZodAny",(e,t)=>{Te.init(e,t),e._zod.parse=a=>a}),o_=P("$ZodUnknown",(e,t)=>{Te.init(e,t),e._zod.parse=a=>a}),s_=P("$ZodNever",(e,t)=>{Te.init(e,t),e._zod.parse=(a,o)=>(a.issues.push({expected:"never",code:"invalid_type",input:a.value,inst:e}),a)}),l_=P("$ZodVoid",(e,t)=>{Te.init(e,t),e._zod.parse=(a,o)=>{const n=a.value;return typeof n>"u"||a.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),a}}),c_=P("$ZodDate",(e,t)=>{Te.init(e,t),e._zod.parse=(a,o)=>{if(t.coerce)try{a.value=new Date(a.value)}catch{}const n=a.value,s=n instanceof Date;return s&&!Number.isNaN(n.getTime())||a.issues.push({expected:"date",code:"invalid_type",input:n,...s?{received:"Invalid Date"}:{},inst:e}),a}});function G6(e,t,a){e.issues.length&&t.issues.push(...rr(a,e.issues)),t.value[a]=e.value}const u_=P("$ZodArray",(e,t)=>{Te.init(e,t),e._zod.parse=(a,o)=>{const n=a.value;if(!Array.isArray(n))return a.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),a;a.value=Array(n.length);const s=[];for(let c=0;c<n.length;c++){const d=n[c],m=t.element._zod.run({value:d,issues:[]},o);m instanceof Promise?s.push(m.then(p=>G6(p,a,c))):G6(m,a,c)}return s.length?Promise.all(s).then(()=>a):a}});function zu(e,t,a,o,n,s){const c=a in o;if(e.issues.length){if(n&&s&&!c)return;t.issues.push(...rr(a,e.issues))}if(!c&&!n){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[a]});return}e.value===void 0?c&&(t.value[a]=void 0):t.value[a]=e.value}function d_(e){const t=Object.keys(e.shape);for(const o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);const a=ob(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function f_(e,t,a,o,n,s){const c=[],d=n.keySet,m=n.catchall._zod,p=m.def.type,y=m.optin==="optional",b=m.optout==="optional";for(const x in t){if(x==="__proto__"||d.has(x))continue;if(p==="never"){c.push(x);continue}const _=m.run({value:t[x],issues:[]},o);_ instanceof Promise?e.push(_.then(w=>zu(w,a,x,t,y,b))):zu(_,a,x,t,y,b)}return c.length&&a.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:s}),e.length?Promise.all(e).then(()=>a):a}const m_=P("$ZodObject",(e,t)=>{if(Te.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const d=t.shape;Object.defineProperty(t,"shape",{get:()=>{const m={...d};return Object.defineProperty(t,"shape",{value:m}),m}})}const o=bl(()=>d_(t));Pe(e._zod,"propValues",()=>{const d=t.shape,m={};for(const p in d){const y=d[p]._zod;if(y.values){m[p]??(m[p]=new Set);for(const b of y.values)m[p].add(b)}}return m});const n=No,s=t.catchall;let c;e._zod.parse=(d,m)=>{c??(c=o.value);const p=d.value;if(!n(p))return d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d;d.value={};const y=[],b=c.shape;for(const x of c.keys){const _=b[x],w=_._zod.optin==="optional",$=_._zod.optout==="optional",A=_._zod.run({value:p[x],issues:[]},m);A instanceof Promise?y.push(A.then(E=>zu(E,d,x,p,w,$))):zu(A,d,x,p,w,$)}return s?f_(y,p,d,m,o.value,e):y.length?Promise.all(y).then(()=>d):d}}),p_=P("$ZodObjectJIT",(e,t)=>{m_.init(e,t);const a=e._zod.parse,o=bl(()=>d_(t)),n=x=>{const _=new $3(["shape","payload","ctx"]),w=o.value,$=N=>{const M=Y1(N);return`shape[${M}]._zod.run({ value: input[${M}], issues: [] }, ctx)`};_.write("const input = payload.value;");const A=Object.create(null);let E=0;for(const N of w.keys)A[N]=`key_${E++}`;_.write("const newResult = {};");for(const N of w.keys){const M=A[N],U=Y1(N),K=x[N],L=K?._zod?.optin==="optional",B=K?._zod?.optout==="optional";_.write(`const ${M} = ${$(N)};`),L&&B?_.write(`
|
|
13
|
-
if (${M}.issues.length) {
|
|
14
|
-
if (${U} in input) {
|
|
15
|
-
payload.issues = payload.issues.concat(${M}.issues.map(iss => ({
|
|
16
|
-
...iss,
|
|
17
|
-
path: iss.path ? [${U}, ...iss.path] : [${U}]
|
|
18
|
-
})));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
if (${M}.value === undefined) {
|
|
23
|
-
if (${U} in input) {
|
|
24
|
-
newResult[${U}] = undefined;
|
|
25
|
-
}
|
|
26
|
-
} else {
|
|
27
|
-
newResult[${U}] = ${M}.value;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
`):L?_.write(`
|
|
31
|
-
if (${M}.issues.length) {
|
|
32
|
-
payload.issues = payload.issues.concat(${M}.issues.map(iss => ({
|
|
33
|
-
...iss,
|
|
34
|
-
path: iss.path ? [${U}, ...iss.path] : [${U}]
|
|
35
|
-
})));
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
if (${M}.value === undefined) {
|
|
39
|
-
if (${U} in input) {
|
|
40
|
-
newResult[${U}] = undefined;
|
|
41
|
-
}
|
|
42
|
-
} else {
|
|
43
|
-
newResult[${U}] = ${M}.value;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
`):_.write(`
|
|
47
|
-
const ${M}_present = ${U} in input;
|
|
48
|
-
if (${M}.issues.length) {
|
|
49
|
-
payload.issues = payload.issues.concat(${M}.issues.map(iss => ({
|
|
50
|
-
...iss,
|
|
51
|
-
path: iss.path ? [${U}, ...iss.path] : [${U}]
|
|
52
|
-
})));
|
|
53
|
-
}
|
|
54
|
-
if (!${M}_present && !${M}.issues.length) {
|
|
55
|
-
payload.issues.push({
|
|
56
|
-
code: "invalid_type",
|
|
57
|
-
expected: "nonoptional",
|
|
58
|
-
input: undefined,
|
|
59
|
-
path: [${U}]
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (${M}_present) {
|
|
64
|
-
if (${M}.value === undefined) {
|
|
65
|
-
newResult[${U}] = undefined;
|
|
66
|
-
} else {
|
|
67
|
-
newResult[${U}] = ${M}.value;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
`)}_.write("payload.value = newResult;"),_.write("return payload;");const T=_.compile();return(N,M)=>T(x,N,M)};let s;const c=No,d=!ul.jitless,p=d&&ab.value,y=t.catchall;let b;e._zod.parse=(x,_)=>{b??(b=o.value);const w=x.value;return c(w)?d&&p&&_?.async===!1&&_.jitless!==!0?(s||(s=n(t.shape)),x=s(x,_),y?f_([],w,x,_,b,e):x):a(x,_):(x.issues.push({expected:"object",code:"invalid_type",input:w,inst:e}),x)}});function J6(e,t,a,o){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const n=e.filter(s=>!yi(s));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:a,errors:e.map(s=>s.issues.map(c=>Hn(c,o,nn())))}),t)}const Yu=P("$ZodUnion",(e,t)=>{Te.init(e,t),Pe(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Pe(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Pe(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Pe(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${o.map(n=>Qu(n.source)).join("|")})$`)}});const a=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(a)return a(o,n);let s=!1;const c=[];for(const d of t.options){const m=d._zod.run({value:o.value,issues:[]},n);if(m instanceof Promise)c.push(m),s=!0;else{if(m.issues.length===0)return m;c.push(m)}}return s?Promise.all(c).then(d=>J6(d,o,e,n)):J6(c,o,e,n)}});function X6(e,t,a,o){const n=e.filter(s=>s.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:a,errors:e.map(s=>s.issues.map(c=>Hn(c,o,nn())))}):t.issues.push({code:"invalid_union",input:t.value,inst:a,errors:[],inclusive:!1}),t)}const h_=P("$ZodXor",(e,t)=>{Yu.init(e,t),t.inclusive=!1;const a=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(a)return a(o,n);let s=!1;const c=[];for(const d of t.options){const m=d._zod.run({value:o.value,issues:[]},n);m instanceof Promise?(c.push(m),s=!0):c.push(m)}return s?Promise.all(c).then(d=>X6(d,o,e,n)):X6(c,o,e,n)}}),g_=P("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Yu.init(e,t);const a=e._zod.parse;Pe(e._zod,"propValues",()=>{const n={};for(const s of t.options){const c=s._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const[d,m]of Object.entries(c)){n[d]||(n[d]=new Set);for(const p of m)n[d].add(p)}}return n});const o=bl(()=>{const n=t.options,s=new Map;for(const c of n){const d=c._zod.propValues?.[t.discriminator];if(!d||d.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(c)}"`);for(const m of d){if(s.has(m))throw new Error(`Duplicate discriminator value "${String(m)}"`);s.set(m,c)}}return s});e._zod.parse=(n,s)=>{const c=n.value;if(!No(c))return n.issues.push({code:"invalid_type",expected:"object",input:c,inst:e}),n;const d=o.value.get(c?.[t.discriminator]);return d?d._zod.run(n,s):t.unionFallback||s.direction==="backward"?a(n,s):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:c,path:[t.discriminator],inst:e}),n)}}),v_=P("$ZodIntersection",(e,t)=>{Te.init(e,t),e._zod.parse=(a,o)=>{const n=a.value,s=t.left._zod.run({value:n,issues:[]},o),c=t.right._zod.run({value:n,issues:[]},o);return s instanceof Promise||c instanceof Promise?Promise.all([s,c]).then(([m,p])=>Y6(a,m,p)):Y6(a,s,c)}});function tm(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ai(e)&&Ai(t)){const a=Object.keys(t),o=Object.keys(e).filter(s=>a.indexOf(s)!==-1),n={...e,...t};for(const s of o){const c=tm(e[s],t[s]);if(!c.valid)return{valid:!1,mergeErrorPath:[s,...c.mergeErrorPath]};n[s]=c.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const a=[];for(let o=0;o<e.length;o++){const n=e[o],s=t[o],c=tm(n,s);if(!c.valid)return{valid:!1,mergeErrorPath:[o,...c.mergeErrorPath]};a.push(c.data)}return{valid:!0,data:a}}return{valid:!1,mergeErrorPath:[]}}function Y6(e,t,a){const o=new Map;let n;for(const d of t.issues)if(d.code==="unrecognized_keys"){n??(n=d);for(const m of d.keys)o.has(m)||o.set(m,{}),o.get(m).l=!0}else e.issues.push(d);for(const d of a.issues)if(d.code==="unrecognized_keys")for(const m of d.keys)o.has(m)||o.set(m,{}),o.get(m).r=!0;else e.issues.push(d);const s=[...o].filter(([,d])=>d.l&&d.r).map(([d])=>d);if(s.length&&n&&e.issues.push({...n,keys:s}),yi(e))return e;const c=tm(t.value,a.value);if(!c.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);return e.value=c.data,e}const Xm=P("$ZodTuple",(e,t)=>{Te.init(e,t);const a=t.items;e._zod.parse=(o,n)=>{const s=o.value;if(!Array.isArray(s))return o.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];const c=[],d=W6(a,"optin"),m=W6(a,"optout");if(!t.rest){if(s.length<d)return o.issues.push({code:"too_small",minimum:d,inclusive:!0,input:s,inst:e,origin:"array"}),o;s.length>a.length&&o.issues.push({code:"too_big",maximum:a.length,inclusive:!0,input:s,inst:e,origin:"array"})}const p=new Array(a.length);for(let y=0;y<a.length;y++){const b=a[y]._zod.run({value:s[y],issues:[]},n);b instanceof Promise?c.push(b.then(x=>{p[y]=x})):p[y]=b}if(t.rest){let y=a.length-1;const b=s.slice(a.length);for(const x of b){y++;const _=t.rest._zod.run({value:x,issues:[]},n);_ instanceof Promise?c.push(_.then(w=>e8(w,o,y))):e8(_,o,y)}}return c.length?Promise.all(c).then(()=>t8(p,o,a,s,m)):t8(p,o,a,s,m)}});function W6(e,t){for(let a=e.length-1;a>=0;a--)if(e[a]._zod[t]!=="optional")return a+1;return 0}function e8(e,t,a){e.issues.length&&t.issues.push(...rr(a,e.issues)),t.value[a]=e.value}function t8(e,t,a,o,n){for(let s=0;s<a.length;s++){const c=e[s],d=s<o.length;if(c.issues.length){if(!d&&s>=n){t.value.length=s;break}t.issues.push(...rr(s,c.issues))}t.value[s]=c.value}for(let s=t.value.length-1;s>=o.length&&(a[s]._zod.optout==="optional"&&t.value[s]===void 0);s--)t.value.length=s;return t}const y_=P("$ZodRecord",(e,t)=>{Te.init(e,t),e._zod.parse=(a,o)=>{const n=a.value;if(!Ai(n))return a.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),a;const s=[],c=t.keyType._zod.values;if(c){a.value={};const d=new Set;for(const p of c)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){d.add(typeof p=="number"?p.toString():p);const y=t.keyType._zod.run({value:p,issues:[]},o);if(y instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(y.issues.length){a.issues.push({code:"invalid_key",origin:"record",issues:y.issues.map(_=>Hn(_,o,nn())),input:p,path:[p],inst:e});continue}const b=y.value,x=t.valueType._zod.run({value:n[p],issues:[]},o);x instanceof Promise?s.push(x.then(_=>{_.issues.length&&a.issues.push(...rr(p,_.issues)),a.value[b]=_.value})):(x.issues.length&&a.issues.push(...rr(p,x.issues)),a.value[b]=x.value)}let m;for(const p in n)d.has(p)||(m=m??[],m.push(p));m&&m.length>0&&a.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:m})}else{a.value={};for(const d of Reflect.ownKeys(n)){if(d==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,d))continue;let m=t.keyType._zod.run({value:d,issues:[]},o);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof d=="string"&&Hm.test(d)&&m.issues.length){const b=t.keyType._zod.run({value:Number(d),issues:[]},o);if(b instanceof Promise)throw new Error("Async schemas not supported in object keys currently");b.issues.length===0&&(m=b)}if(m.issues.length){t.mode==="loose"?a.value[d]=n[d]:a.issues.push({code:"invalid_key",origin:"record",issues:m.issues.map(b=>Hn(b,o,nn())),input:d,path:[d],inst:e});continue}const y=t.valueType._zod.run({value:n[d],issues:[]},o);y instanceof Promise?s.push(y.then(b=>{b.issues.length&&a.issues.push(...rr(d,b.issues)),a.value[m.value]=b.value})):(y.issues.length&&a.issues.push(...rr(d,y.issues)),a.value[m.value]=y.value)}}return s.length?Promise.all(s).then(()=>a):a}}),b_=P("$ZodMap",(e,t)=>{Te.init(e,t),e._zod.parse=(a,o)=>{const n=a.value;if(!(n instanceof Map))return a.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),a;const s=[];a.value=new Map;for(const[c,d]of n){const m=t.keyType._zod.run({value:c,issues:[]},o),p=t.valueType._zod.run({value:d,issues:[]},o);m instanceof Promise||p instanceof Promise?s.push(Promise.all([m,p]).then(([y,b])=>{n8(y,b,a,c,n,e,o)})):n8(m,p,a,c,n,e,o)}return s.length?Promise.all(s).then(()=>a):a}});function n8(e,t,a,o,n,s,c){e.issues.length&&(Nu.has(typeof o)?a.issues.push(...rr(o,e.issues)):a.issues.push({code:"invalid_key",origin:"map",input:n,inst:s,issues:e.issues.map(d=>Hn(d,c,nn()))})),t.issues.length&&(Nu.has(typeof o)?a.issues.push(...rr(o,t.issues)):a.issues.push({origin:"map",code:"invalid_element",input:n,inst:s,key:o,issues:t.issues.map(d=>Hn(d,c,nn()))})),a.value.set(e.value,t.value)}const __=P("$ZodSet",(e,t)=>{Te.init(e,t),e._zod.parse=(a,o)=>{const n=a.value;if(!(n instanceof Set))return a.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),a;const s=[];a.value=new Set;for(const c of n){const d=t.valueType._zod.run({value:c,issues:[]},o);d instanceof Promise?s.push(d.then(m=>r8(m,a))):r8(d,a)}return s.length?Promise.all(s).then(()=>a):a}});function r8(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const x_=P("$ZodEnum",(e,t)=>{Te.init(e,t);const a=Tm(t.entries),o=new Set(a);e._zod.values=o,e._zod.pattern=new RegExp(`^(${a.filter(n=>Nu.has(typeof n)).map(n=>typeof n=="string"?aa(n):n.toString()).join("|")})$`),e._zod.parse=(n,s)=>{const c=n.value;return o.has(c)||n.issues.push({code:"invalid_value",values:a,input:c,inst:e}),n}}),S_=P("$ZodLiteral",(e,t)=>{if(Te.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const a=new Set(t.values);e._zod.values=a,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?aa(o):o?aa(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{const s=o.value;return a.has(s)||o.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),o}}),w_=P("$ZodFile",(e,t)=>{Te.init(e,t),e._zod.parse=(a,o)=>{const n=a.value;return n instanceof File||a.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),a}}),k_=P("$ZodTransform",(e,t)=>{Te.init(e,t),e._zod.optin="optional",e._zod.parse=(a,o)=>{if(o.direction==="backward")throw new Ku(e.constructor.name);const n=t.transform(a.value,a);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(c=>(a.value=c,a.fallback=!0,a));if(n instanceof Promise)throw new Si;return a.value=n,a.fallback=!0,a}});function a8(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Ym=P("$ZodOptional",(e,t)=>{Te.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Pe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Pe(e._zod,"pattern",()=>{const a=t.innerType._zod.pattern;return a?new RegExp(`^(${Qu(a.source)})?$`):void 0}),e._zod.parse=(a,o)=>{if(t.innerType._zod.optin==="optional"){const n=a.value,s=t.innerType._zod.run(a,o);return s instanceof Promise?s.then(c=>a8(c,n)):a8(s,n)}return a.value===void 0?a:t.innerType._zod.run(a,o)}}),$_=P("$ZodExactOptional",(e,t)=>{Ym.init(e,t),Pe(e._zod,"values",()=>t.innerType._zod.values),Pe(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(a,o)=>t.innerType._zod.run(a,o)}),A_=P("$ZodNullable",(e,t)=>{Te.init(e,t),Pe(e._zod,"optin",()=>t.innerType._zod.optin),Pe(e._zod,"optout",()=>t.innerType._zod.optout),Pe(e._zod,"pattern",()=>{const a=t.innerType._zod.pattern;return a?new RegExp(`^(${Qu(a.source)}|null)$`):void 0}),Pe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(a,o)=>a.value===null?a:t.innerType._zod.run(a,o)}),E_=P("$ZodDefault",(e,t)=>{Te.init(e,t),e._zod.optin="optional",Pe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,o)=>{if(o.direction==="backward")return t.innerType._zod.run(a,o);if(a.value===void 0)return a.value=t.defaultValue,a;const n=t.innerType._zod.run(a,o);return n instanceof Promise?n.then(s=>i8(s,t)):i8(n,t)}});function i8(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const T_=P("$ZodPrefault",(e,t)=>{Te.init(e,t),e._zod.optin="optional",Pe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,o)=>(o.direction==="backward"||a.value===void 0&&(a.value=t.defaultValue),t.innerType._zod.run(a,o))}),j_=P("$ZodNonOptional",(e,t)=>{Te.init(e,t),Pe(e._zod,"values",()=>{const a=t.innerType._zod.values;return a?new Set([...a].filter(o=>o!==void 0)):void 0}),e._zod.parse=(a,o)=>{const n=t.innerType._zod.run(a,o);return n instanceof Promise?n.then(s=>o8(s,e)):o8(n,e)}});function o8(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const M_=P("$ZodSuccess",(e,t)=>{Te.init(e,t),e._zod.parse=(a,o)=>{if(o.direction==="backward")throw new Ku("ZodSuccess");const n=t.innerType._zod.run(a,o);return n instanceof Promise?n.then(s=>(a.value=s.issues.length===0,a)):(a.value=n.issues.length===0,a)}}),O_=P("$ZodCatch",(e,t)=>{Te.init(e,t),e._zod.optin="optional",Pe(e._zod,"optout",()=>t.innerType._zod.optout),Pe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,o)=>{if(o.direction==="backward")return t.innerType._zod.run(a,o);const n=t.innerType._zod.run(a,o);return n instanceof Promise?n.then(s=>(a.value=s.value,s.issues.length&&(a.value=t.catchValue({...a,error:{issues:s.issues.map(c=>Hn(c,o,nn()))},input:a.value}),a.issues=[],a.fallback=!0),a)):(a.value=n.value,n.issues.length&&(a.value=t.catchValue({...a,error:{issues:n.issues.map(s=>Hn(s,o,nn()))},input:a.value}),a.issues=[],a.fallback=!0),a)}}),N_=P("$ZodNaN",(e,t)=>{Te.init(e,t),e._zod.parse=(a,o)=>((typeof a.value!="number"||!Number.isNaN(a.value))&&a.issues.push({input:a.value,inst:e,expected:"nan",code:"invalid_type"}),a)}),Wm=P("$ZodPipe",(e,t)=>{Te.init(e,t),Pe(e._zod,"values",()=>t.in._zod.values),Pe(e._zod,"optin",()=>t.in._zod.optin),Pe(e._zod,"optout",()=>t.out._zod.optout),Pe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(a,o)=>{if(o.direction==="backward"){const s=t.out._zod.run(a,o);return s instanceof Promise?s.then(c=>fu(c,t.in,o)):fu(s,t.in,o)}const n=t.in._zod.run(a,o);return n instanceof Promise?n.then(s=>fu(s,t.out,o)):fu(n,t.out,o)}});function fu(e,t,a){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},a)}const ep=P("$ZodCodec",(e,t)=>{Te.init(e,t),Pe(e._zod,"values",()=>t.in._zod.values),Pe(e._zod,"optin",()=>t.in._zod.optin),Pe(e._zod,"optout",()=>t.out._zod.optout),Pe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(a,o)=>{if((o.direction||"forward")==="forward"){const s=t.in._zod.run(a,o);return s instanceof Promise?s.then(c=>mu(c,t,o)):mu(s,t,o)}else{const s=t.out._zod.run(a,o);return s instanceof Promise?s.then(c=>mu(c,t,o)):mu(s,t,o)}}});function mu(e,t,a){if(e.issues.length)return e.aborted=!0,e;if((a.direction||"forward")==="forward"){const n=t.transform(e.value,e);return n instanceof Promise?n.then(s=>pu(e,s,t.out,a)):pu(e,n,t.out,a)}else{const n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(s=>pu(e,s,t.in,a)):pu(e,n,t.in,a)}}function pu(e,t,a,o){return e.issues.length?(e.aborted=!0,e):a._zod.run({value:t,issues:e.issues},o)}const z_=P("$ZodPreprocess",(e,t)=>{Wm.init(e,t)}),R_=P("$ZodReadonly",(e,t)=>{Te.init(e,t),Pe(e._zod,"propValues",()=>t.innerType._zod.propValues),Pe(e._zod,"values",()=>t.innerType._zod.values),Pe(e._zod,"optin",()=>t.innerType?._zod?.optin),Pe(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(a,o)=>{if(o.direction==="backward")return t.innerType._zod.run(a,o);const n=t.innerType._zod.run(a,o);return n instanceof Promise?n.then(s8):s8(n)}});function s8(e){return e.value=Object.freeze(e.value),e}const C_=P("$ZodTemplateLiteral",(e,t)=>{Te.init(e,t);const a=[];for(const o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);const n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);const s=n.startsWith("^")?1:0,c=n.endsWith("$")?n.length-1:n.length;a.push(n.slice(s,c))}else if(o===null||ib.has(typeof o))a.push(aa(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${a.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),D_=P("$ZodFunction",(e,t)=>(Te.init(e,t),e._def=t,e._zod.def=t,e.implement=a=>{if(typeof a!="function")throw new Error("implement() must be called with a function");return function(...o){const n=e._def.input?W1(e._def.input,o):o,s=Reflect.apply(a,this,n);return e._def.output?W1(e._def.output,s):s}},e.implementAsync=a=>{if(typeof a!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){const n=e._def.input?await em(e._def.input,o):o,s=await Reflect.apply(a,this,n);return e._def.output?await em(e._def.output,s):s}},e._zod.parse=(a,o)=>typeof a.value!="function"?(a.issues.push({code:"invalid_type",expected:"function",input:a.value,inst:e}),a):(e._def.output&&e._def.output._zod.def.type==="promise"?a.value=e.implementAsync(a.value):a.value=e.implement(a.value),a),e.input=(...a)=>{const o=e.constructor;return Array.isArray(a[0])?new o({type:"function",input:new Xm({type:"tuple",items:a[0],rest:a[1]}),output:e._def.output}):new o({type:"function",input:a[0],output:e._def.output})},e.output=a=>{const o=e.constructor;return new o({type:"function",input:e._def.input,output:a})},e)),P_=P("$ZodPromise",(e,t)=>{Te.init(e,t),e._zod.parse=(a,o)=>Promise.resolve(a.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),L_=P("$ZodLazy",(e,t)=>{Te.init(e,t),Pe(e._zod,"innerType",()=>{const a=t;return a._cachedInner||(a._cachedInner=t.getter()),a._cachedInner}),Pe(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Pe(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Pe(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Pe(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(a,o)=>e._zod.innerType._zod.run(a,o)}),I_=P("$ZodCustom",(e,t)=>{St.init(e,t),Te.init(e,t),e._zod.parse=(a,o)=>a,e._zod.check=a=>{const o=a.value,n=t.fn(o);if(n instanceof Promise)return n.then(s=>l8(s,a,o,e));l8(n,a,o,e)}});function l8(e,t,a,o){if(!e){const n={code:"custom",input:a,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(zo(n))}}const bj=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(n){return e[n]??null}const a={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${n.expected}، ولكن تم إدخال ${d}`:`مدخلات غير مقبولة: يفترض إدخال ${s}، ولكن تم إدخال ${d}`}case"invalid_value":return n.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${_e(n.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?` أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${s} ${n.maximum.toString()} ${c.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${s} ${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${s} ${n.minimum.toString()} ${c.unit}`:`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${s} ${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${n.prefix}"`:s.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${s.suffix}"`:s.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${s.includes}"`:s.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${s.pattern}`:`${a[s.format]??n.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${n.divisor}`;case"unrecognized_keys":return`معرف${n.keys.length>1?"ات":""} غريب${n.keys.length>1?"ة":""}: ${re(n.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${n.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${n.origin}`;default:return"مدخل غير مقبول"}}};function _j(){return{localeError:bj()}}const xj=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function t(n){return e[n]??null}const a={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Yanlış dəyər: gözlənilən instanceof ${n.expected}, daxil olan ${d}`:`Yanlış dəyər: gözlənilən ${s}, daxil olan ${d}`}case"invalid_value":return n.values.length===1?`Yanlış dəyər: gözlənilən ${_e(n.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${s}${n.maximum.toString()} ${c.unit??"element"}`:`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Çox kiçik: gözlənilən ${n.origin} ${s}${n.minimum.toString()} ${c.unit}`:`Çox kiçik: gözlənilən ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Yanlış mətn: "${s.prefix}" ilə başlamalıdır`:s.format==="ends_with"?`Yanlış mətn: "${s.suffix}" ilə bitməlidir`:s.format==="includes"?`Yanlış mətn: "${s.includes}" daxil olmalıdır`:s.format==="regex"?`Yanlış mətn: ${s.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${a[s.format]??n.format}`}case"not_multiple_of":return`Yanlış ədəd: ${n.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${n.keys.length>1?"lar":""}: ${re(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${n.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function Sj(){return{localeError:xj()}}function c8(e,t,a,o){const n=Math.abs(e),s=n%10,c=n%100;return c>=11&&c<=19?o:s===1?t:s>=2&&s<=4?a:o}const wj=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(n){return e[n]??null}const a={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},o={nan:"NaN",number:"лік",array:"масіў"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Няправільны ўвод: чакаўся instanceof ${n.expected}, атрымана ${d}`:`Няправільны ўвод: чакаўся ${s}, атрымана ${d}`}case"invalid_value":return n.values.length===1?`Няправільны ўвод: чакалася ${_e(n.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);if(c){const d=Number(n.maximum),m=c8(d,c.unit.one,c.unit.few,c.unit.many);return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна ${c.verb} ${s}${n.maximum.toString()} ${m}`}return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна быць ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);if(c){const d=Number(n.minimum),m=c8(d,c.unit.one,c.unit.few,c.unit.many);return`Занадта малы: чакалася, што ${n.origin} павінна ${c.verb} ${s}${n.minimum.toString()} ${m}`}return`Занадта малы: чакалася, што ${n.origin} павінна быць ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${s.prefix}"`:s.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${s.suffix}"`:s.format==="includes"?`Няправільны радок: павінен змяшчаць "${s.includes}"`:s.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${s.pattern}`:`Няправільны ${a[s.format]??n.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${n.keys.length>1?"ключы":"ключ"}: ${re(n.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${n.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${n.origin}`;default:return"Няправільны ўвод"}}};function kj(){return{localeError:wj()}}const $j=()=>{const e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(n){return e[n]??null}const a={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},o={nan:"NaN",number:"число",array:"масив"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Невалиден вход: очакван instanceof ${n.expected}, получен ${d}`:`Невалиден вход: очакван ${s}, получен ${d}`}case"invalid_value":return n.values.length===1?`Невалиден вход: очакван ${_e(n.values[0])}`:`Невалидна опция: очаквано едно от ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Твърде голямо: очаква се ${n.origin??"стойност"} да съдържа ${s}${n.maximum.toString()} ${c.unit??"елемента"}`:`Твърде голямо: очаква се ${n.origin??"стойност"} да бъде ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Твърде малко: очаква се ${n.origin} да съдържа ${s}${n.minimum.toString()} ${c.unit}`:`Твърде малко: очаква се ${n.origin} да бъде ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;if(s.format==="starts_with")return`Невалиден низ: трябва да започва с "${s.prefix}"`;if(s.format==="ends_with")return`Невалиден низ: трябва да завършва с "${s.suffix}"`;if(s.format==="includes")return`Невалиден низ: трябва да включва "${s.includes}"`;if(s.format==="regex")return`Невалиден низ: трябва да съвпада с ${s.pattern}`;let c="Невалиден";return s.format==="emoji"&&(c="Невалидно"),s.format==="datetime"&&(c="Невалидно"),s.format==="date"&&(c="Невалидна"),s.format==="time"&&(c="Невалидно"),s.format==="duration"&&(c="Невалидна"),`${c} ${a[s.format]??n.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${n.divisor}`;case"unrecognized_keys":return`Неразпознат${n.keys.length>1?"и":""} ключ${n.keys.length>1?"ове":""}: ${re(n.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${n.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${n.origin}`;default:return"Невалиден вход"}}};function Aj(){return{localeError:$j()}}const Ej=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}const a={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Tipus invàlid: s'esperava instanceof ${n.expected}, s'ha rebut ${d}`:`Tipus invàlid: s'esperava ${s}, s'ha rebut ${d}`}case"invalid_value":return n.values.length===1?`Valor invàlid: s'esperava ${_e(n.values[0])}`:`Opció invàlida: s'esperava una de ${re(n.values," o ")}`;case"too_big":{const s=n.inclusive?"com a màxim":"menys de",c=t(n.origin);return c?`Massa gran: s'esperava que ${n.origin??"el valor"} contingués ${s} ${n.maximum.toString()} ${c.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${s} ${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?"com a mínim":"més de",c=t(n.origin);return c?`Massa petit: s'esperava que ${n.origin} contingués ${s} ${n.minimum.toString()} ${c.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${s} ${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Format invàlid: ha de començar amb "${s.prefix}"`:s.format==="ends_with"?`Format invàlid: ha d'acabar amb "${s.suffix}"`:s.format==="includes"?`Format invàlid: ha d'incloure "${s.includes}"`:s.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${s.pattern}`:`Format invàlid per a ${a[s.format]??n.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${re(n.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${n.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${n.origin}`;default:return"Entrada invàlida"}}};function Tj(){return{localeError:Ej()}}const jj=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(n){return e[n]??null}const a={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Neplatný vstup: očekáváno instanceof ${n.expected}, obdrženo ${d}`:`Neplatný vstup: očekáváno ${s}, obdrženo ${d}`}case"invalid_value":return n.values.length===1?`Neplatný vstup: očekáváno ${_e(n.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Hodnota je příliš velká: ${n.origin??"hodnota"} musí mít ${s}${n.maximum.toString()} ${c.unit??"prvků"}`:`Hodnota je příliš velká: ${n.origin??"hodnota"} musí být ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Hodnota je příliš malá: ${n.origin??"hodnota"} musí mít ${s}${n.minimum.toString()} ${c.unit??"prvků"}`:`Hodnota je příliš malá: ${n.origin??"hodnota"} musí být ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Neplatný řetězec: musí začínat na "${s.prefix}"`:s.format==="ends_with"?`Neplatný řetězec: musí končit na "${s.suffix}"`:s.format==="includes"?`Neplatný řetězec: musí obsahovat "${s.includes}"`:s.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${s.pattern}`:`Neplatný formát ${a[s.format]??n.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${n.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${re(n.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${n.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${n.origin}`;default:return"Neplatný vstup"}}};function Mj(){return{localeError:jj()}}const Oj=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}const a={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${d}`:`Ugyldigt input: forventede ${s}, fik ${d}`}case"invalid_value":return n.values.length===1?`Ugyldig værdi: forventede ${_e(n.values[0])}`:`Ugyldigt valg: forventede en af følgende ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin),d=o[n.origin]??n.origin;return c?`For stor: forventede ${d??"value"} ${c.verb} ${s} ${n.maximum.toString()} ${c.unit??"elementer"}`:`For stor: forventede ${d??"value"} havde ${s} ${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin),d=o[n.origin]??n.origin;return c?`For lille: forventede ${d} ${c.verb} ${s} ${n.minimum.toString()} ${c.unit}`:`For lille: forventede ${d} havde ${s} ${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Ugyldig streng: skal starte med "${s.prefix}"`:s.format==="ends_with"?`Ugyldig streng: skal ende med "${s.suffix}"`:s.format==="includes"?`Ugyldig streng: skal indeholde "${s.includes}"`:s.format==="regex"?`Ugyldig streng: skal matche mønsteret ${s.pattern}`:`Ugyldig ${a[s.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${re(n.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${n.origin}`;default:return"Ugyldigt input"}}};function Nj(){return{localeError:Oj()}}const zj=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}const a={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Ungültige Eingabe: erwartet instanceof ${n.expected}, erhalten ${d}`:`Ungültige Eingabe: erwartet ${s}, erhalten ${d}`}case"invalid_value":return n.values.length===1?`Ungültige Eingabe: erwartet ${_e(n.values[0])}`:`Ungültige Option: erwartet eine von ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Zu groß: erwartet, dass ${n.origin??"Wert"} ${s}${n.maximum.toString()} ${c.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${n.origin??"Wert"} ${s}${n.maximum.toString()} ist`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Zu klein: erwartet, dass ${n.origin} ${s}${n.minimum.toString()} ${c.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${s}${n.minimum.toString()} ist`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Ungültiger String: muss mit "${s.prefix}" beginnen`:s.format==="ends_with"?`Ungültiger String: muss mit "${s.suffix}" enden`:s.format==="includes"?`Ungültiger String: muss "${s.includes}" enthalten`:s.format==="regex"?`Ungültiger String: muss dem Muster ${s.pattern} entsprechen`:`Ungültig: ${a[s.format]??n.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${re(n.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${n.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${n.origin}`;default:return"Ungültige Eingabe"}}};function Rj(){return{localeError:zj()}}const Cj=()=>{const e={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function t(n){return e[n]??null}const a={regex:"είσοδος",email:"διεύθυνση email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ημερομηνία και ώρα",date:"ISO ημερομηνία",time:"ISO ώρα",duration:"ISO διάρκεια",ipv4:"διεύθυνση IPv4",ipv6:"διεύθυνση IPv6",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",jwt:"JWT",template_literal:"είσοδος"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return typeof n.expected=="string"&&/^[A-Z]/.test(n.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${n.expected}, λήφθηκε ${d}`:`Μη έγκυρη είσοδος: αναμενόταν ${s}, λήφθηκε ${d}`}case"invalid_value":return n.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${_e(n.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Πολύ μεγάλο: αναμενόταν ${n.origin??"τιμή"} να έχει ${s}${n.maximum.toString()} ${c.unit??"στοιχεία"}`:`Πολύ μεγάλο: αναμενόταν ${n.origin??"τιμή"} να είναι ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Πολύ μικρό: αναμενόταν ${n.origin} να έχει ${s}${n.minimum.toString()} ${c.unit}`:`Πολύ μικρό: αναμενόταν ${n.origin} να είναι ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${s.prefix}"`:s.format==="ends_with"?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${s.suffix}"`:s.format==="includes"?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${s.includes}"`:s.format==="regex"?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${s.pattern}`:`Μη έγκυρο: ${a[s.format]??n.format}`}case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${n.divisor}`;case"unrecognized_keys":return`Άγνωστ${n.keys.length>1?"α":"ο"} κλειδ${n.keys.length>1?"ιά":"ί"}: ${re(n.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${n.origin}`;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${n.origin}`;default:return"Μη έγκυρη είσοδος"}}};function Dj(){return{localeError:Cj()}}const Pj=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(n){return e[n]??null}const a={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return`Invalid input: expected ${s}, received ${d}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${_e(n.values[0])}`:`Invalid option: expected one of ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Too big: expected ${n.origin??"value"} to have ${s}${n.maximum.toString()} ${c.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Too small: expected ${n.origin} to have ${s}${n.minimum.toString()} ${c.unit}`:`Too small: expected ${n.origin} to be ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${a[s.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${re(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(c=>`'${c}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function U_(){return{localeError:Pj()}}const Lj=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}const a={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendiĝis instanceof ${n.expected}, riceviĝis ${d}`:`Nevalida enigo: atendiĝis ${s}, riceviĝis ${d}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendiĝis ${_e(n.values[0])}`:`Nevalida opcio: atendiĝis unu el ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Tro granda: atendiĝis ke ${n.origin??"valoro"} havu ${s}${n.maximum.toString()} ${c.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${n.origin??"valoro"} havu ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Tro malgranda: atendiĝis ke ${n.origin} havu ${s}${n.minimum.toString()} ${c.unit}`:`Tro malgranda: atendiĝis ke ${n.origin} estu ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${s.prefix}"`:s.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${s.suffix}"`:s.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${s.includes}"`:s.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${s.pattern}`:`Nevalida ${a[s.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} ŝlosilo${n.keys.length>1?"j":""}: ${re(n.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function Ij(){return{localeError:Lj()}}const Uj=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}const a={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Entrada inválida: se esperaba instanceof ${n.expected}, recibido ${d}`:`Entrada inválida: se esperaba ${s}, recibido ${d}`}case"invalid_value":return n.values.length===1?`Entrada inválida: se esperaba ${_e(n.values[0])}`:`Opción inválida: se esperaba una de ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin),d=o[n.origin]??n.origin;return c?`Demasiado grande: se esperaba que ${d??"valor"} tuviera ${s}${n.maximum.toString()} ${c.unit??"elementos"}`:`Demasiado grande: se esperaba que ${d??"valor"} fuera ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin),d=o[n.origin]??n.origin;return c?`Demasiado pequeño: se esperaba que ${d} tuviera ${s}${n.minimum.toString()} ${c.unit}`:`Demasiado pequeño: se esperaba que ${d} fuera ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Cadena inválida: debe comenzar con "${s.prefix}"`:s.format==="ends_with"?`Cadena inválida: debe terminar en "${s.suffix}"`:s.format==="includes"?`Cadena inválida: debe incluir "${s.includes}"`:s.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${s.pattern}`:`Inválido ${a[s.format]??n.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${re(n.keys,", ")}`;case"invalid_key":return`Llave inválida en ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${o[n.origin]??n.origin}`;default:return"Entrada inválida"}}};function Zj(){return{localeError:Uj()}}const Vj=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(n){return e[n]??null}const a={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},o={nan:"NaN",number:"عدد",array:"آرایه"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`ورودی نامعتبر: میبایست instanceof ${n.expected} میبود، ${d} دریافت شد`:`ورودی نامعتبر: میبایست ${s} میبود، ${d} دریافت شد`}case"invalid_value":return n.values.length===1?`ورودی نامعتبر: میبایست ${_e(n.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${re(n.values,"|")} میبود`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`خیلی بزرگ: ${n.origin??"مقدار"} باید ${s}${n.maximum.toString()} ${c.unit??"عنصر"} باشد`:`خیلی بزرگ: ${n.origin??"مقدار"} باید ${s}${n.maximum.toString()} باشد`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`خیلی کوچک: ${n.origin} باید ${s}${n.minimum.toString()} ${c.unit} باشد`:`خیلی کوچک: ${n.origin} باید ${s}${n.minimum.toString()} باشد`}case"invalid_format":{const s=n;return s.format==="starts_with"?`رشته نامعتبر: باید با "${s.prefix}" شروع شود`:s.format==="ends_with"?`رشته نامعتبر: باید با "${s.suffix}" تمام شود`:s.format==="includes"?`رشته نامعتبر: باید شامل "${s.includes}" باشد`:s.format==="regex"?`رشته نامعتبر: باید با الگوی ${s.pattern} مطابقت داشته باشد`:`${a[s.format]??n.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${n.divisor} باشد`;case"unrecognized_keys":return`کلید${n.keys.length>1?"های":""} ناشناس: ${re(n.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${n.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${n.origin}`;default:return"ورودی نامعتبر"}}};function Hj(){return{localeError:Vj()}}const Fj=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(n){return e[n]??null}const a={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${d}`:`Virheellinen tyyppi: odotettiin ${s}, oli ${d}`}case"invalid_value":return n.values.length===1?`Virheellinen syöte: täytyy olla ${_e(n.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Liian suuri: ${c.subject} täytyy olla ${s}${n.maximum.toString()} ${c.unit}`.trim():`Liian suuri: arvon täytyy olla ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Liian pieni: ${c.subject} täytyy olla ${s}${n.minimum.toString()} ${c.unit}`.trim():`Liian pieni: arvon täytyy olla ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${s.prefix}"`:s.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${s.suffix}"`:s.format==="includes"?`Virheellinen syöte: täytyy sisältää "${s.includes}"`:s.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${s.pattern}`:`Virheellinen ${a[s.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${re(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function qj(){return{localeError:Fj()}}const Bj=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(n){return e[n]??null}const a={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},o={string:"chaîne",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Entrée invalide : instanceof ${n.expected} attendu, ${d} reçu`:`Entrée invalide : ${s} attendu, ${d} reçu`}case"invalid_value":return n.values.length===1?`Entrée invalide : ${_e(n.values[0])} attendu`:`Option invalide : une valeur parmi ${re(n.values,"|")} attendue`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Trop grand : ${o[n.origin]??"valeur"} doit ${c.verb} ${s}${n.maximum.toString()} ${c.unit??"élément(s)"}`:`Trop grand : ${o[n.origin]??"valeur"} doit être ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Trop petit : ${o[n.origin]??"valeur"} doit ${c.verb} ${s}${n.minimum.toString()} ${c.unit}`:`Trop petit : ${o[n.origin]??"valeur"} doit être ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Chaîne invalide : doit commencer par "${s.prefix}"`:s.format==="ends_with"?`Chaîne invalide : doit se terminer par "${s.suffix}"`:s.format==="includes"?`Chaîne invalide : doit inclure "${s.includes}"`:s.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${s.pattern}`:`${a[s.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${re(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function Kj(){return{localeError:Bj()}}const Qj=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(n){return e[n]??null}const a={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Entrée invalide : attendu instanceof ${n.expected}, reçu ${d}`:`Entrée invalide : attendu ${s}, reçu ${d}`}case"invalid_value":return n.values.length===1?`Entrée invalide : attendu ${_e(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"≤":"<",c=t(n.origin);return c?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${s}${n.maximum.toString()} ${c.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?"≥":">",c=t(n.origin);return c?`Trop petit : attendu que ${n.origin} ait ${s}${n.minimum.toString()} ${c.unit}`:`Trop petit : attendu que ${n.origin} soit ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Chaîne invalide : doit commencer par "${s.prefix}"`:s.format==="ends_with"?`Chaîne invalide : doit se terminer par "${s.suffix}"`:s.format==="includes"?`Chaîne invalide : doit inclure "${s.includes}"`:s.format==="regex"?`Chaîne invalide : doit correspondre au motif ${s.pattern}`:`${a[s.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${re(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function Gj(){return{localeError:Qj()}}const Jj=()=>{const e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},a=p=>p?e[p]:void 0,o=p=>{const y=a(p);return y?y.label:p??e.unknown.label},n=p=>`ה${o(p)}`,s=p=>(a(p)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות",c=p=>p?t[p]??null:null,d={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},m={nan:"NaN"};return p=>{switch(p.code){case"invalid_type":{const y=p.expected,b=m[y??""]??o(y),x=Se(p.input),_=m[x]??e[x]?.label??x;return/^[A-Z]/.test(p.expected)?`קלט לא תקין: צריך להיות instanceof ${p.expected}, התקבל ${_}`:`קלט לא תקין: צריך להיות ${b}, התקבל ${_}`}case"invalid_value":{if(p.values.length===1)return`ערך לא תקין: הערך חייב להיות ${_e(p.values[0])}`;const y=p.values.map(_=>_e(_));if(p.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${y[0]} או ${y[1]}`;const b=y[y.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${y.slice(0,-1).join(", ")} או ${b}`}case"too_big":{const y=c(p.origin),b=n(p.origin??"value");if(p.origin==="string")return`${y?.longLabel??"ארוך"} מדי: ${b} צריכה להכיל ${p.maximum.toString()} ${y?.unit??""} ${p.inclusive?"או פחות":"לכל היותר"}`.trim();if(p.origin==="number"){const w=p.inclusive?`קטן או שווה ל-${p.maximum}`:`קטן מ-${p.maximum}`;return`גדול מדי: ${b} צריך להיות ${w}`}if(p.origin==="array"||p.origin==="set"){const w=p.origin==="set"?"צריכה":"צריך",$=p.inclusive?`${p.maximum} ${y?.unit??""} או פחות`:`פחות מ-${p.maximum} ${y?.unit??""}`;return`גדול מדי: ${b} ${w} להכיל ${$}`.trim()}const x=p.inclusive?"<=":"<",_=s(p.origin??"value");return y?.unit?`${y.longLabel} מדי: ${b} ${_} ${x}${p.maximum.toString()} ${y.unit}`:`${y?.longLabel??"גדול"} מדי: ${b} ${_} ${x}${p.maximum.toString()}`}case"too_small":{const y=c(p.origin),b=n(p.origin??"value");if(p.origin==="string")return`${y?.shortLabel??"קצר"} מדי: ${b} צריכה להכיל ${p.minimum.toString()} ${y?.unit??""} ${p.inclusive?"או יותר":"לפחות"}`.trim();if(p.origin==="number"){const w=p.inclusive?`גדול או שווה ל-${p.minimum}`:`גדול מ-${p.minimum}`;return`קטן מדי: ${b} צריך להיות ${w}`}if(p.origin==="array"||p.origin==="set"){const w=p.origin==="set"?"צריכה":"צריך";if(p.minimum===1&&p.inclusive){const A=(p.origin==="set","לפחות פריט אחד");return`קטן מדי: ${b} ${w} להכיל ${A}`}const $=p.inclusive?`${p.minimum} ${y?.unit??""} או יותר`:`יותר מ-${p.minimum} ${y?.unit??""}`;return`קטן מדי: ${b} ${w} להכיל ${$}`.trim()}const x=p.inclusive?">=":">",_=s(p.origin??"value");return y?.unit?`${y.shortLabel} מדי: ${b} ${_} ${x}${p.minimum.toString()} ${y.unit}`:`${y?.shortLabel??"קטן"} מדי: ${b} ${_} ${x}${p.minimum.toString()}`}case"invalid_format":{const y=p;if(y.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${y.prefix}"`;if(y.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${y.suffix}"`;if(y.format==="includes")return`המחרוזת חייבת לכלול "${y.includes}"`;if(y.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${y.pattern}`;const b=d[y.format],x=b?.label??y.format,w=(b?.gender??"m")==="f"?"תקינה":"תקין";return`${x} לא ${w}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${p.divisor}`;case"unrecognized_keys":return`מפתח${p.keys.length>1?"ות":""} לא מזוה${p.keys.length>1?"ים":"ה"}: ${re(p.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${n(p.origin??"array")}`;default:return"קלט לא תקין"}}};function Xj(){return{localeError:Jj()}}const Yj=()=>{const e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(n){return e[n]??null}const a={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Neispravan unos: očekuje se instanceof ${n.expected}, a primljeno je ${d}`:`Neispravan unos: očekuje se ${s}, a primljeno je ${d}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: očekivano ${_e(n.values[0])}`:`Neispravna opcija: očekivano jedno od ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin),d=o[n.origin]??n.origin;return c?`Preveliko: očekivano da ${d??"vrijednost"} ima ${s}${n.maximum.toString()} ${c.unit??"elemenata"}`:`Preveliko: očekivano da ${d??"vrijednost"} bude ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin),d=o[n.origin]??n.origin;return c?`Premalo: očekivano da ${d} ima ${s}${n.minimum.toString()} ${c.unit}`:`Premalo: očekivano da ${d} bude ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Neispravan tekst: mora započinjati s "${s.prefix}"`:s.format==="ends_with"?`Neispravan tekst: mora završavati s "${s.suffix}"`:s.format==="includes"?`Neispravan tekst: mora sadržavati "${s.includes}"`:s.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${s.pattern}`:`Neispravna ${a[s.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti višekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i ključevi":" ključ"}: ${re(n.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${o[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function Wj(){return{localeError:Yj()}}const eM=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}const a={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"szám",array:"tömb"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Érvénytelen bemenet: a várt érték instanceof ${n.expected}, a kapott érték ${d}`:`Érvénytelen bemenet: a várt érték ${s}, a kapott érték ${d}`}case"invalid_value":return n.values.length===1?`Érvénytelen bemenet: a várt érték ${_e(n.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Túl nagy: ${n.origin??"érték"} mérete túl nagy ${s}${n.maximum.toString()} ${c.unit??"elem"}`:`Túl nagy: a bemeneti érték ${n.origin??"érték"} túl nagy: ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Túl kicsi: a bemeneti érték ${n.origin} mérete túl kicsi ${s}${n.minimum.toString()} ${c.unit}`:`Túl kicsi: a bemeneti érték ${n.origin} túl kicsi ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Érvénytelen string: "${s.prefix}" értékkel kell kezdődnie`:s.format==="ends_with"?`Érvénytelen string: "${s.suffix}" értékkel kell végződnie`:s.format==="includes"?`Érvénytelen string: "${s.includes}" értéket kell tartalmaznia`:s.format==="regex"?`Érvénytelen string: ${s.pattern} mintának kell megfelelnie`:`Érvénytelen ${a[s.format]??n.format}`}case"not_multiple_of":return`Érvénytelen szám: ${n.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${re(n.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${n.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${n.origin}`;default:return"Érvénytelen bemenet"}}};function tM(){return{localeError:eM()}}function u8(e,t,a){return Math.abs(e)===1?t:a}function ko(e){if(!e)return"";const t=["ա","ե","ը","ի","ո","ու","օ"],a=e[e.length-1];return e+(t.includes(a)?"ն":"ը")}const nM=()=>{const e={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function t(n){return e[n]??null}const a={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},o={nan:"NaN",number:"թիվ",array:"զանգված"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${n.expected}, ստացվել է ${d}`:`Սխալ մուտքագրում․ սպասվում էր ${s}, ստացվել է ${d}`}case"invalid_value":return n.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${_e(n.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);if(c){const d=Number(n.maximum),m=u8(d,c.unit.one,c.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${ko(n.origin??"արժեք")} կունենա ${s}${n.maximum.toString()} ${m}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${ko(n.origin??"արժեք")} լինի ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);if(c){const d=Number(n.minimum),m=u8(d,c.unit.one,c.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${ko(n.origin)} կունենա ${s}${n.minimum.toString()} ${m}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${ko(n.origin)} լինի ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Սխալ տող․ պետք է սկսվի "${s.prefix}"-ով`:s.format==="ends_with"?`Սխալ տող․ պետք է ավարտվի "${s.suffix}"-ով`:s.format==="includes"?`Սխալ տող․ պետք է պարունակի "${s.includes}"`:s.format==="regex"?`Սխալ տող․ պետք է համապատասխանի ${s.pattern} ձևաչափին`:`Սխալ ${a[s.format]??n.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${n.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${n.keys.length>1?"ներ":""}. ${re(n.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${ko(n.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${ko(n.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function rM(){return{localeError:nM()}}const aM=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}const a={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${d}`:`Input tidak valid: diharapkan ${s}, diterima ${d}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${_e(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${s}${n.maximum.toString()} ${c.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Terlalu kecil: diharapkan ${n.origin} memiliki ${s}${n.minimum.toString()} ${c.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`String tidak valid: harus dimulai dengan "${s.prefix}"`:s.format==="ends_with"?`String tidak valid: harus berakhir dengan "${s.suffix}"`:s.format==="includes"?`String tidak valid: harus menyertakan "${s.includes}"`:s.format==="regex"?`String tidak valid: harus sesuai pola ${s.pattern}`:`${a[s.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${re(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function iM(){return{localeError:aM()}}const oM=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function t(n){return e[n]??null}const a={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"númer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Rangt gildi: Þú slóst inn ${d} þar sem á að vera instanceof ${n.expected}`:`Rangt gildi: Þú slóst inn ${d} þar sem á að vera ${s}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert ráð fyrir ${_e(n.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Of stórt: gert er ráð fyrir að ${n.origin??"gildi"} hafi ${s}${n.maximum.toString()} ${c.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${n.origin??"gildi"} sé ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Of lítið: gert er ráð fyrir að ${n.origin} hafi ${s}${n.minimum.toString()} ${c.unit}`:`Of lítið: gert er ráð fyrir að ${n.origin} sé ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Ógildur strengur: verður að byrja á "${s.prefix}"`:s.format==="ends_with"?`Ógildur strengur: verður að enda á "${s.suffix}"`:s.format==="includes"?`Ógildur strengur: verður að innihalda "${s.includes}"`:s.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${s.pattern}`:`Rangt ${a[s.format]??n.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`Óþekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${re(n.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${n.origin}`;default:return"Rangt gildi"}}};function sM(){return{localeError:oM()}}const lM=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}const a={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${d}`:`Input non valido: atteso ${s}, ricevuto ${d}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${_e(n.values[0])}`:`Opzione non valida: atteso uno tra ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Troppo grande: ${n.origin??"valore"} deve avere ${s}${n.maximum.toString()} ${c.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Troppo piccolo: ${n.origin} deve avere ${s}${n.minimum.toString()} ${c.unit}`:`Troppo piccolo: ${n.origin} deve essere ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Stringa non valida: deve iniziare con "${s.prefix}"`:s.format==="ends_with"?`Stringa non valida: deve terminare con "${s.suffix}"`:s.format==="includes"?`Stringa non valida: deve includere "${s.includes}"`:s.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${s.pattern}`:`Input non valido: ${a[s.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${re(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function cM(){return{localeError:lM()}}const uM=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(n){return e[n]??null}const a={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},o={nan:"NaN",number:"数値",array:"配列"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`無効な入力: instanceof ${n.expected}が期待されましたが、${d}が入力されました`:`無効な入力: ${s}が期待されましたが、${d}が入力されました`}case"invalid_value":return n.values.length===1?`無効な入力: ${_e(n.values[0])}が期待されました`:`無効な選択: ${re(n.values,"、")}のいずれかである必要があります`;case"too_big":{const s=n.inclusive?"以下である":"より小さい",c=t(n.origin);return c?`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${c.unit??"要素"}${s}必要があります`:`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${s}必要があります`}case"too_small":{const s=n.inclusive?"以上である":"より大きい",c=t(n.origin);return c?`小さすぎる値: ${n.origin}は${n.minimum.toString()}${c.unit}${s}必要があります`:`小さすぎる値: ${n.origin}は${n.minimum.toString()}${s}必要があります`}case"invalid_format":{const s=n;return s.format==="starts_with"?`無効な文字列: "${s.prefix}"で始まる必要があります`:s.format==="ends_with"?`無効な文字列: "${s.suffix}"で終わる必要があります`:s.format==="includes"?`無効な文字列: "${s.includes}"を含む必要があります`:s.format==="regex"?`無効な文字列: パターン${s.pattern}に一致する必要があります`:`無効な${a[s.format]??n.format}`}case"not_multiple_of":return`無効な数値: ${n.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${n.keys.length>1?"群":""}: ${re(n.keys,"、")}`;case"invalid_key":return`${n.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${n.origin}内の無効な値`;default:return"無効な入力"}}};function dM(){return{localeError:uM()}}const fM=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(n){return e[n]??null}const a={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული ველი",base64url:"base64url-კოდირებული ველი",json_string:"JSON ველი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},o={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${n.expected}, მიღებული ${d}`:`არასწორი შეყვანა: მოსალოდნელი ${s}, მიღებული ${d}`}case"invalid_value":return n.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${_e(n.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${re(n.values,"|")}-დან`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`ზედმეტად დიდი: მოსალოდნელი ${n.origin??"მნიშვნელობა"} ${c.verb} ${s}${n.maximum.toString()} ${c.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${n.origin??"მნიშვნელობა"} იყოს ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`ზედმეტად პატარა: მოსალოდნელი ${n.origin} ${c.verb} ${s}${n.minimum.toString()} ${c.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${n.origin} იყოს ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`არასწორი ველი: უნდა იწყებოდეს "${s.prefix}"-ით`:s.format==="ends_with"?`არასწორი ველი: უნდა მთავრდებოდეს "${s.suffix}"-ით`:s.format==="includes"?`არასწორი ველი: უნდა შეიცავდეს "${s.includes}"-ს`:s.format==="regex"?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${s.pattern}`:`არასწორი ${a[s.format]??n.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${n.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${n.keys.length>1?"ები":"ი"}: ${re(n.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${n.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${n.origin}-ში`;default:return"არასწორი შეყვანა"}}};function mM(){return{localeError:fM()}}const pM=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(n){return e[n]??null}const a={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},o={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${n.expected} ប៉ុន្តែទទួលបាន ${d}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${s} ប៉ុន្តែទទួលបាន ${d}`}case"invalid_value":return n.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${_e(n.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${s} ${n.maximum.toString()} ${c.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${s} ${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`តូចពេក៖ ត្រូវការ ${n.origin} ${s} ${n.minimum.toString()} ${c.unit}`:`តូចពេក៖ ត្រូវការ ${n.origin} ${s} ${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${s.prefix}"`:s.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${s.suffix}"`:s.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${s.includes}"`:s.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${s.pattern}`:`មិនត្រឹមត្រូវ៖ ${a[s.format]??n.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${n.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${re(n.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function Z_(){return{localeError:pM()}}function hM(){return Z_()}const gM=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(n){return e[n]??null}const a={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`잘못된 입력: 예상 타입은 instanceof ${n.expected}, 받은 타입은 ${d}입니다`:`잘못된 입력: 예상 타입은 ${s}, 받은 타입은 ${d}입니다`}case"invalid_value":return n.values.length===1?`잘못된 입력: 값은 ${_e(n.values[0])} 이어야 합니다`:`잘못된 옵션: ${re(n.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const s=n.inclusive?"이하":"미만",c=s==="미만"?"이어야 합니다":"여야 합니다",d=t(n.origin),m=d?.unit??"요소";return d?`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()}${m} ${s}${c}`:`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()} ${s}${c}`}case"too_small":{const s=n.inclusive?"이상":"초과",c=s==="이상"?"이어야 합니다":"여야 합니다",d=t(n.origin),m=d?.unit??"요소";return d?`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()}${m} ${s}${c}`:`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()} ${s}${c}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`잘못된 문자열: "${s.prefix}"(으)로 시작해야 합니다`:s.format==="ends_with"?`잘못된 문자열: "${s.suffix}"(으)로 끝나야 합니다`:s.format==="includes"?`잘못된 문자열: "${s.includes}"을(를) 포함해야 합니다`:s.format==="regex"?`잘못된 문자열: 정규식 ${s.pattern} 패턴과 일치해야 합니다`:`잘못된 ${a[s.format]??n.format}`}case"not_multiple_of":return`잘못된 숫자: ${n.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${re(n.keys,", ")}`;case"invalid_key":return`잘못된 키: ${n.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${n.origin}`;default:return"잘못된 입력"}}};function vM(){return{localeError:gM()}}const qs=e=>e.charAt(0).toUpperCase()+e.slice(1);function d8(e){const t=Math.abs(e),a=t%10,o=t%100;return o>=11&&o<=19||a===0?"many":a===1?"one":"few"}const yM=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(n,s,c,d){const m=e[n]??null;return m===null?m:{unit:m.unit[s],verb:m.verb[d][c?"inclusive":"notInclusive"]}}const a={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},o={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${d}, o tikėtasi - instanceof ${n.expected}`:`Gautas tipas ${d}, o tikėtasi - ${s}`}case"invalid_value":return n.values.length===1?`Privalo būti ${_e(n.values[0])}`:`Privalo būti vienas iš ${re(n.values,"|")} pasirinkimų`;case"too_big":{const s=o[n.origin]??n.origin,c=t(n.origin,d8(Number(n.maximum)),n.inclusive??!1,"smaller");if(c?.verb)return`${qs(s??n.origin??"reikšmė")} ${c.verb} ${n.maximum.toString()} ${c.unit??"elementų"}`;const d=n.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${qs(s??n.origin??"reikšmė")} turi būti ${d} ${n.maximum.toString()} ${c?.unit}`}case"too_small":{const s=o[n.origin]??n.origin,c=t(n.origin,d8(Number(n.minimum)),n.inclusive??!1,"bigger");if(c?.verb)return`${qs(s??n.origin??"reikšmė")} ${c.verb} ${n.minimum.toString()} ${c.unit??"elementų"}`;const d=n.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${qs(s??n.origin??"reikšmė")} turi būti ${d} ${n.minimum.toString()} ${c?.unit}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Eilutė privalo prasidėti "${s.prefix}"`:s.format==="ends_with"?`Eilutė privalo pasibaigti "${s.suffix}"`:s.format==="includes"?`Eilutė privalo įtraukti "${s.includes}"`:s.format==="regex"?`Eilutė privalo atitikti ${s.pattern}`:`Neteisingas ${a[s.format]??n.format}`}case"not_multiple_of":return`Skaičius privalo būti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${re(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const s=o[n.origin]??n.origin;return`${qs(s??n.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function bM(){return{localeError:yM()}}const _M=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(n){return e[n]??null}const a={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},o={nan:"NaN",number:"број",array:"низа"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Грешен внес: се очекува instanceof ${n.expected}, примено ${d}`:`Грешен внес: се очекува ${s}, примено ${d}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${_e(n.values[0])}`:`Грешана опција: се очекува една ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Премногу голем: се очекува ${n.origin??"вредноста"} да има ${s}${n.maximum.toString()} ${c.unit??"елементи"}`:`Премногу голем: се очекува ${n.origin??"вредноста"} да биде ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Премногу мал: се очекува ${n.origin} да има ${s}${n.minimum.toString()} ${c.unit}`:`Премногу мал: се очекува ${n.origin} да биде ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Неважечка низа: мора да започнува со "${s.prefix}"`:s.format==="ends_with"?`Неважечка низа: мора да завршува со "${s.suffix}"`:s.format==="includes"?`Неважечка низа: мора да вклучува "${s.includes}"`:s.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${s.pattern}`:`Invalid ${a[s.format]??n.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${re(n.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${n.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${n.origin}`;default:return"Грешен внес"}}};function xM(){return{localeError:_M()}}const SM=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}const a={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${d}`:`Input tidak sah: dijangka ${s}, diterima ${d}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${_e(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Terlalu besar: dijangka ${n.origin??"nilai"} ${c.verb} ${s}${n.maximum.toString()} ${c.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Terlalu kecil: dijangka ${n.origin} ${c.verb} ${s}${n.minimum.toString()} ${c.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`String tidak sah: mesti bermula dengan "${s.prefix}"`:s.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${s.suffix}"`:s.format==="includes"?`String tidak sah: mesti mengandungi "${s.includes}"`:s.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${s.pattern}`:`${a[s.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${re(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function wM(){return{localeError:SM()}}const kM=()=>{const e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}const a={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${d}`:`Ongeldige invoer: verwacht ${s}, ontving ${d}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${_e(n.values[0])}`:`Ongeldige optie: verwacht één van ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin),d=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return c?`Te ${d}: verwacht dat ${n.origin??"waarde"} ${s}${n.maximum.toString()} ${c.unit??"elementen"} ${c.verb}`:`Te ${d}: verwacht dat ${n.origin??"waarde"} ${s}${n.maximum.toString()} is`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin),d=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return c?`Te ${d}: verwacht dat ${n.origin} ${s}${n.minimum.toString()} ${c.unit} ${c.verb}`:`Te ${d}: verwacht dat ${n.origin} ${s}${n.minimum.toString()} is`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Ongeldige tekst: moet met "${s.prefix}" beginnen`:s.format==="ends_with"?`Ongeldige tekst: moet op "${s.suffix}" eindigen`:s.format==="includes"?`Ongeldige tekst: moet "${s.includes}" bevatten`:s.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${s.pattern}`:`Ongeldig: ${a[s.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${re(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function $M(){return{localeError:kM()}}const AM=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(n){return e[n]??null}const a={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${d}`:`Ugyldig input: forventet ${s}, fikk ${d}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${_e(n.values[0])}`:`Ugyldig valg: forventet en av ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`For stor(t): forventet ${n.origin??"value"} til å ha ${s}${n.maximum.toString()} ${c.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til å ha ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`For lite(n): forventet ${n.origin} til å ha ${s}${n.minimum.toString()} ${c.unit}`:`For lite(n): forventet ${n.origin} til å ha ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Ugyldig streng: må starte med "${s.prefix}"`:s.format==="ends_with"?`Ugyldig streng: må ende med "${s.suffix}"`:s.format==="includes"?`Ugyldig streng: må inneholde "${s.includes}"`:s.format==="regex"?`Ugyldig streng: må matche mønsteret ${s.pattern}`:`Ugyldig ${a[s.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${re(n.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function EM(){return{localeError:AM()}}const TM=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(n){return e[n]??null}const a={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Fâsit giren: umulan instanceof ${n.expected}, alınan ${d}`:`Fâsit giren: umulan ${s}, alınan ${d}`}case"invalid_value":return n.values.length===1?`Fâsit giren: umulan ${_e(n.values[0])}`:`Fâsit tercih: mûteberler ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Fazla büyük: ${n.origin??"value"}, ${s}${n.maximum.toString()} ${c.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${n.origin??"value"}, ${s}${n.maximum.toString()} olmalıydı.`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Fazla küçük: ${n.origin}, ${s}${n.minimum.toString()} ${c.unit} sahip olmalıydı.`:`Fazla küçük: ${n.origin}, ${s}${n.minimum.toString()} olmalıydı.`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Fâsit metin: "${s.prefix}" ile başlamalı.`:s.format==="ends_with"?`Fâsit metin: "${s.suffix}" ile bitmeli.`:s.format==="includes"?`Fâsit metin: "${s.includes}" ihtivâ etmeli.`:s.format==="regex"?`Fâsit metin: ${s.pattern} nakşına uymalı.`:`Fâsit ${a[s.format]??n.format}`}case"not_multiple_of":return`Fâsit sayı: ${n.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${n.keys.length>1?"s":""}: ${re(n.keys,", ")}`;case"invalid_key":return`${n.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${n.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function jM(){return{localeError:TM()}}const MM=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(n){return e[n]??null}const a={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},o={nan:"NaN",number:"عدد",array:"ارې"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`ناسم ورودي: باید instanceof ${n.expected} وای, مګر ${d} ترلاسه شو`:`ناسم ورودي: باید ${s} وای, مګر ${d} ترلاسه شو`}case"invalid_value":return n.values.length===1?`ناسم ورودي: باید ${_e(n.values[0])} وای`:`ناسم انتخاب: باید یو له ${re(n.values,"|")} څخه وای`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`ډیر لوی: ${n.origin??"ارزښت"} باید ${s}${n.maximum.toString()} ${c.unit??"عنصرونه"} ولري`:`ډیر لوی: ${n.origin??"ارزښت"} باید ${s}${n.maximum.toString()} وي`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`ډیر کوچنی: ${n.origin} باید ${s}${n.minimum.toString()} ${c.unit} ولري`:`ډیر کوچنی: ${n.origin} باید ${s}${n.minimum.toString()} وي`}case"invalid_format":{const s=n;return s.format==="starts_with"?`ناسم متن: باید د "${s.prefix}" سره پیل شي`:s.format==="ends_with"?`ناسم متن: باید د "${s.suffix}" سره پای ته ورسيږي`:s.format==="includes"?`ناسم متن: باید "${s.includes}" ولري`:s.format==="regex"?`ناسم متن: باید د ${s.pattern} سره مطابقت ولري`:`${a[s.format]??n.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${n.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${n.keys.length>1?"کلیډونه":"کلیډ"}: ${re(n.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${n.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${n.origin} کې`;default:return"ناسمه ورودي"}}};function OM(){return{localeError:MM()}}const NM=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(n){return e[n]??null}const a={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},o={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${n.expected}, otrzymano ${d}`:`Nieprawidłowe dane wejściowe: oczekiwano ${s}, otrzymano ${d}`}case"invalid_value":return n.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${_e(n.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Za duża wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${s}${n.maximum.toString()} ${c.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Za mała wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${s}${n.minimum.toString()} ${c.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${s.prefix}"`:s.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${s.suffix}"`:s.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${s.includes}"`:s.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${s.pattern}`:`Nieprawidłow(y/a/e) ${a[s.format]??n.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${re(n.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${n.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${n.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function zM(){return{localeError:NM()}}const RM=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}const a={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"número",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Tipo inválido: esperado instanceof ${n.expected}, recebido ${d}`:`Tipo inválido: esperado ${s}, recebido ${d}`}case"invalid_value":return n.values.length===1?`Entrada inválida: esperado ${_e(n.values[0])}`:`Opção inválida: esperada uma das ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${s}${n.maximum.toString()} ${c.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Muito pequeno: esperado que ${n.origin} tivesse ${s}${n.minimum.toString()} ${c.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Texto inválido: deve começar com "${s.prefix}"`:s.format==="ends_with"?`Texto inválido: deve terminar com "${s.suffix}"`:s.format==="includes"?`Texto inválido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inválido: deve corresponder ao padrão ${s.pattern}`:`${a[s.format]??n.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${re(n.keys,", ")}`;case"invalid_key":return`Chave inválida em ${n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${n.origin}`;default:return"Campo inválido"}}};function CM(){return{localeError:RM()}}const DM=()=>{const e={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}};function t(n){return e[n]??null}const a={regex:"intrare",email:"adresă de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dată și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",jwt:"JWT",template_literal:"intrare"},o={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return`Intrare invalidă: așteptat ${s}, primit ${d}`}case"invalid_value":return n.values.length===1?`Intrare invalidă: așteptat ${_e(n.values[0])}`:`Opțiune invalidă: așteptat una dintre ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Prea mare: așteptat ca ${n.origin??"valoarea"} ${c.verb} ${s}${n.maximum.toString()} ${c.unit??"elemente"}`:`Prea mare: așteptat ca ${n.origin??"valoarea"} să fie ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Prea mic: așteptat ca ${n.origin} ${c.verb} ${s}${n.minimum.toString()} ${c.unit}`:`Prea mic: așteptat ca ${n.origin} să fie ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Șir invalid: trebuie să înceapă cu "${s.prefix}"`:s.format==="ends_with"?`Șir invalid: trebuie să se termine cu "${s.suffix}"`:s.format==="includes"?`Șir invalid: trebuie să includă "${s.includes}"`:s.format==="regex"?`Șir invalid: trebuie să se potrivească cu modelul ${s.pattern}`:`Format invalid: ${a[s.format]??n.format}`}case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${re(n.keys,", ")}`;case"invalid_key":return`Cheie invalidă în ${n.origin}`;case"invalid_union":return"Intrare invalidă";case"invalid_element":return`Valoare invalidă în ${n.origin}`;default:return"Intrare invalidă"}}};function PM(){return{localeError:DM()}}function f8(e,t,a,o){const n=Math.abs(e),s=n%10,c=n%100;return c>=11&&c<=19?o:s===1?t:s>=2&&s<=4?a:o}const LM=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(n){return e[n]??null}const a={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},o={nan:"NaN",number:"число",array:"массив"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Неверный ввод: ожидалось instanceof ${n.expected}, получено ${d}`:`Неверный ввод: ожидалось ${s}, получено ${d}`}case"invalid_value":return n.values.length===1?`Неверный ввод: ожидалось ${_e(n.values[0])}`:`Неверный вариант: ожидалось одно из ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);if(c){const d=Number(n.maximum),m=f8(d,c.unit.one,c.unit.few,c.unit.many);return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет иметь ${s}${n.maximum.toString()} ${m}`}return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);if(c){const d=Number(n.minimum),m=f8(d,c.unit.one,c.unit.few,c.unit.many);return`Слишком маленькое значение: ожидалось, что ${n.origin} будет иметь ${s}${n.minimum.toString()} ${m}`}return`Слишком маленькое значение: ожидалось, что ${n.origin} будет ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Неверная строка: должна начинаться с "${s.prefix}"`:s.format==="ends_with"?`Неверная строка: должна заканчиваться на "${s.suffix}"`:s.format==="includes"?`Неверная строка: должна содержать "${s.includes}"`:s.format==="regex"?`Неверная строка: должна соответствовать шаблону ${s.pattern}`:`Неверный ${a[s.format]??n.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспознанн${n.keys.length>1?"ые":"ый"} ключ${n.keys.length>1?"и":""}: ${re(n.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${n.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${n.origin}`;default:return"Неверные входные данные"}}};function IM(){return{localeError:LM()}}const UM=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}const a={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"število",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pričakovano instanceof ${n.expected}, prejeto ${d}`:`Neveljaven vnos: pričakovano ${s}, prejeto ${d}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pričakovano ${_e(n.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} imelo ${s}${n.maximum.toString()} ${c.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Premajhno: pričakovano, da bo ${n.origin} imelo ${s}${n.minimum.toString()} ${c.unit}`:`Premajhno: pričakovano, da bo ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Neveljaven niz: mora se začeti z "${s.prefix}"`:s.format==="ends_with"?`Neveljaven niz: mora se končati z "${s.suffix}"`:s.format==="includes"?`Neveljaven niz: mora vsebovati "${s.includes}"`:s.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${s.pattern}`:`Neveljaven ${a[s.format]??n.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i ključi":" ključ"}: ${re(n.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function ZM(){return{localeError:UM()}}const VM=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(n){return e[n]??null}const a={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: förväntat instanceof ${n.expected}, fick ${d}`:`Ogiltig inmatning: förväntat ${s}, fick ${d}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: förväntat ${_e(n.values[0])}`:`Ogiltigt val: förväntade en av ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`För stor(t): förväntade ${n.origin??"värdet"} att ha ${s}${n.maximum.toString()} ${c.unit??"element"}`:`För stor(t): förväntat ${n.origin??"värdet"} att ha ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`För lite(t): förväntade ${n.origin??"värdet"} att ha ${s}${n.minimum.toString()} ${c.unit}`:`För lite(t): förväntade ${n.origin??"värdet"} att ha ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Ogiltig sträng: måste börja med "${s.prefix}"`:s.format==="ends_with"?`Ogiltig sträng: måste sluta med "${s.suffix}"`:s.format==="includes"?`Ogiltig sträng: måste innehålla "${s.includes}"`:s.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${s.pattern}"`:`Ogiltig(t) ${a[s.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${re(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${n.origin??"värdet"}`;default:return"Ogiltig input"}}};function HM(){return{localeError:VM()}}const FM=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(n){return e[n]??null}const a={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${n.expected}, பெறப்பட்டது ${d}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${s}, பெறப்பட்டது ${d}`}case"invalid_value":return n.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${_e(n.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${re(n.values,"|")} இல் ஒன்று`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${s}${n.maximum.toString()} ${c.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${s}${n.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${s}${n.minimum.toString()} ${c.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${s}${n.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const s=n;return s.format==="starts_with"?`தவறான சரம்: "${s.prefix}" இல் தொடங்க வேண்டும்`:s.format==="ends_with"?`தவறான சரம்: "${s.suffix}" இல் முடிவடைய வேண்டும்`:s.format==="includes"?`தவறான சரம்: "${s.includes}" ஐ உள்ளடக்க வேண்டும்`:s.format==="regex"?`தவறான சரம்: ${s.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${a[s.format]??n.format}`}case"not_multiple_of":return`தவறான எண்: ${n.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${n.keys.length>1?"கள்":""}: ${re(n.keys,", ")}`;case"invalid_key":return`${n.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${n.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function qM(){return{localeError:FM()}}const BM=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(n){return e[n]??null}const a={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},o={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${n.expected} แต่ได้รับ ${d}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${s} แต่ได้รับ ${d}`}case"invalid_value":return n.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${_e(n.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"ไม่เกิน":"น้อยกว่า",c=t(n.origin);return c?`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${s} ${n.maximum.toString()} ${c.unit??"รายการ"}`:`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${s} ${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?"อย่างน้อย":"มากกว่า",c=t(n.origin);return c?`น้อยกว่ากำหนด: ${n.origin} ควรมี${s} ${n.minimum.toString()} ${c.unit}`:`น้อยกว่ากำหนด: ${n.origin} ควรมี${s} ${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${s.prefix}"`:s.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${s.suffix}"`:s.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${s.includes}" อยู่ในข้อความ`:s.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${s.pattern}`:`รูปแบบไม่ถูกต้อง: ${a[s.format]??n.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${n.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${re(n.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${n.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${n.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function KM(){return{localeError:BM()}}const QM=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(n){return e[n]??null}const a={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Geçersiz değer: beklenen instanceof ${n.expected}, alınan ${d}`:`Geçersiz değer: beklenen ${s}, alınan ${d}`}case"invalid_value":return n.values.length===1?`Geçersiz değer: beklenen ${_e(n.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Çok büyük: beklenen ${n.origin??"değer"} ${s}${n.maximum.toString()} ${c.unit??"öğe"}`:`Çok büyük: beklenen ${n.origin??"değer"} ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Çok küçük: beklenen ${n.origin} ${s}${n.minimum.toString()} ${c.unit}`:`Çok küçük: beklenen ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Geçersiz metin: "${s.prefix}" ile başlamalı`:s.format==="ends_with"?`Geçersiz metin: "${s.suffix}" ile bitmeli`:s.format==="includes"?`Geçersiz metin: "${s.includes}" içermeli`:s.format==="regex"?`Geçersiz metin: ${s.pattern} desenine uymalı`:`Geçersiz ${a[s.format]??n.format}`}case"not_multiple_of":return`Geçersiz sayı: ${n.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${n.keys.length>1?"lar":""}: ${re(n.keys,", ")}`;case"invalid_key":return`${n.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${n.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function GM(){return{localeError:QM()}}const JM=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(n){return e[n]??null}const a={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},o={nan:"NaN",number:"число",array:"масив"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Неправильні вхідні дані: очікується instanceof ${n.expected}, отримано ${d}`:`Неправильні вхідні дані: очікується ${s}, отримано ${d}`}case"invalid_value":return n.values.length===1?`Неправильні вхідні дані: очікується ${_e(n.values[0])}`:`Неправильна опція: очікується одне з ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Занадто велике: очікується, що ${n.origin??"значення"} ${c.verb} ${s}${n.maximum.toString()} ${c.unit??"елементів"}`:`Занадто велике: очікується, що ${n.origin??"значення"} буде ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Занадто мале: очікується, що ${n.origin} ${c.verb} ${s}${n.minimum.toString()} ${c.unit}`:`Занадто мале: очікується, що ${n.origin} буде ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Неправильний рядок: повинен починатися з "${s.prefix}"`:s.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${s.suffix}"`:s.format==="includes"?`Неправильний рядок: повинен містити "${s.includes}"`:s.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${s.pattern}`:`Неправильний ${a[s.format]??n.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${n.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${n.keys.length>1?"і":""}: ${re(n.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${n.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${n.origin}`;default:return"Неправильні вхідні дані"}}};function V_(){return{localeError:JM()}}function XM(){return V_()}const YM=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(n){return e[n]??null}const a={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},o={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`غلط ان پٹ: instanceof ${n.expected} متوقع تھا، ${d} موصول ہوا`:`غلط ان پٹ: ${s} متوقع تھا، ${d} موصول ہوا`}case"invalid_value":return n.values.length===1?`غلط ان پٹ: ${_e(n.values[0])} متوقع تھا`:`غلط آپشن: ${re(n.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`بہت بڑا: ${n.origin??"ویلیو"} کے ${s}${n.maximum.toString()} ${c.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${n.origin??"ویلیو"} کا ${s}${n.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`بہت چھوٹا: ${n.origin} کے ${s}${n.minimum.toString()} ${c.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${n.origin} کا ${s}${n.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const s=n;return s.format==="starts_with"?`غلط سٹرنگ: "${s.prefix}" سے شروع ہونا چاہیے`:s.format==="ends_with"?`غلط سٹرنگ: "${s.suffix}" پر ختم ہونا چاہیے`:s.format==="includes"?`غلط سٹرنگ: "${s.includes}" شامل ہونا چاہیے`:s.format==="regex"?`غلط سٹرنگ: پیٹرن ${s.pattern} سے میچ ہونا چاہیے`:`غلط ${a[s.format]??n.format}`}case"not_multiple_of":return`غلط نمبر: ${n.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${n.keys.length>1?"ز":""}: ${re(n.keys,"، ")}`;case"invalid_key":return`${n.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${n.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function WM(){return{localeError:YM()}}const eO=()=>{const e={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}};function t(n){return e[n]??null}const a={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${d}`:`Noto‘g‘ri kirish: kutilgan ${s}, qabul qilingan ${d}`}case"invalid_value":return n.values.length===1?`Noto‘g‘ri kirish: kutilgan ${_e(n.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Juda katta: kutilgan ${n.origin??"qiymat"} ${s}${n.maximum.toString()} ${c.unit} ${c.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Juda kichik: kutilgan ${n.origin} ${s}${n.minimum.toString()} ${c.unit} ${c.verb}`:`Juda kichik: kutilgan ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Noto‘g‘ri satr: "${s.prefix}" bilan boshlanishi kerak`:s.format==="ends_with"?`Noto‘g‘ri satr: "${s.suffix}" bilan tugashi kerak`:s.format==="includes"?`Noto‘g‘ri satr: "${s.includes}" ni o‘z ichiga olishi kerak`:s.format==="regex"?`Noto‘g‘ri satr: ${s.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${a[s.format]??n.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${n.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${n.keys.length>1?"lar":""}: ${re(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${n.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function tO(){return{localeError:eO()}}const nO=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(n){return e[n]??null}const a={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},o={nan:"NaN",number:"số",array:"mảng"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${n.expected}, nhận được ${d}`:`Đầu vào không hợp lệ: mong đợi ${s}, nhận được ${d}`}case"invalid_value":return n.values.length===1?`Đầu vào không hợp lệ: mong đợi ${_e(n.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Quá lớn: mong đợi ${n.origin??"giá trị"} ${c.verb} ${s}${n.maximum.toString()} ${c.unit??"phần tử"}`:`Quá lớn: mong đợi ${n.origin??"giá trị"} ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Quá nhỏ: mong đợi ${n.origin} ${c.verb} ${s}${n.minimum.toString()} ${c.unit}`:`Quá nhỏ: mong đợi ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${s.prefix}"`:s.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${s.suffix}"`:s.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${s.includes}"`:s.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${s.pattern}`:`${a[s.format]??n.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${n.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${re(n.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${n.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${n.origin}`;default:return"Đầu vào không hợp lệ"}}};function rO(){return{localeError:nO()}}const aO=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(n){return e[n]??null}const a={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},o={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`无效输入:期望 instanceof ${n.expected},实际接收 ${d}`:`无效输入:期望 ${s},实际接收 ${d}`}case"invalid_value":return n.values.length===1?`无效输入:期望 ${_e(n.values[0])}`:`无效选项:期望以下之一 ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`数值过大:期望 ${n.origin??"值"} ${s}${n.maximum.toString()} ${c.unit??"个元素"}`:`数值过大:期望 ${n.origin??"值"} ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`数值过小:期望 ${n.origin} ${s}${n.minimum.toString()} ${c.unit}`:`数值过小:期望 ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`无效字符串:必须以 "${s.prefix}" 开头`:s.format==="ends_with"?`无效字符串:必须以 "${s.suffix}" 结尾`:s.format==="includes"?`无效字符串:必须包含 "${s.includes}"`:s.format==="regex"?`无效字符串:必须满足正则表达式 ${s.pattern}`:`无效${a[s.format]??n.format}`}case"not_multiple_of":return`无效数字:必须是 ${n.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${re(n.keys,", ")}`;case"invalid_key":return`${n.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${n.origin} 中包含无效值(value)`;default:return"无效输入"}}};function iO(){return{localeError:aO()}}const oO=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(n){return e[n]??null}const a={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`無效的輸入值:預期為 instanceof ${n.expected},但收到 ${d}`:`無效的輸入值:預期為 ${s},但收到 ${d}`}case"invalid_value":return n.values.length===1?`無效的輸入值:預期為 ${_e(n.values[0])}`:`無效的選項:預期為以下其中之一 ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`數值過大:預期 ${n.origin??"值"} 應為 ${s}${n.maximum.toString()} ${c.unit??"個元素"}`:`數值過大:預期 ${n.origin??"值"} 應為 ${s}${n.maximum.toString()}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`數值過小:預期 ${n.origin} 應為 ${s}${n.minimum.toString()} ${c.unit}`:`數值過小:預期 ${n.origin} 應為 ${s}${n.minimum.toString()}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`無效的字串:必須以 "${s.prefix}" 開頭`:s.format==="ends_with"?`無效的字串:必須以 "${s.suffix}" 結尾`:s.format==="includes"?`無效的字串:必須包含 "${s.includes}"`:s.format==="regex"?`無效的字串:必須符合格式 ${s.pattern}`:`無效的 ${a[s.format]??n.format}`}case"not_multiple_of":return`無效的數字:必須為 ${n.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${n.keys.length>1?"們":""}:${re(n.keys,"、")}`;case"invalid_key":return`${n.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${n.origin} 中有無效的值`;default:return"無效的輸入值"}}};function sO(){return{localeError:oO()}}const lO=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(n){return e[n]??null}const a={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},o={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return n=>{switch(n.code){case"invalid_type":{const s=o[n.expected]??n.expected,c=Se(n.input),d=o[c]??c;return/^[A-Z]/.test(n.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${n.expected}, àmọ̀ a rí ${d}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${s}, àmọ̀ a rí ${d}`}case"invalid_value":return n.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${_e(n.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${re(n.values,"|")}`;case"too_big":{const s=n.inclusive?"<=":"<",c=t(n.origin);return c?`Tó pọ̀ jù: a ní láti jẹ́ pé ${n.origin??"iye"} ${c.verb} ${s}${n.maximum} ${c.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${s}${n.maximum}`}case"too_small":{const s=n.inclusive?">=":">",c=t(n.origin);return c?`Kéré ju: a ní láti jẹ́ pé ${n.origin} ${c.verb} ${s}${n.minimum} ${c.unit}`:`Kéré ju: a ní láti jẹ́ ${s}${n.minimum}`}case"invalid_format":{const s=n;return s.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${s.prefix}"`:s.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${s.suffix}"`:s.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${s.includes}"`:s.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${s.pattern}`:`Aṣìṣe: ${a[s.format]??n.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${n.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${re(n.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${n.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${n.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function cO(){return{localeError:lO()}}const H_=Object.freeze(Object.defineProperty({__proto__:null,ar:_j,az:Sj,be:kj,bg:Aj,ca:Tj,cs:Mj,da:Nj,de:Rj,el:Dj,en:U_,eo:Ij,es:Zj,fa:Hj,fi:qj,fr:Kj,frCA:Gj,he:Xj,hr:Wj,hu:tM,hy:rM,id:iM,is:sM,it:cM,ja:dM,ka:mM,kh:hM,km:Z_,ko:vM,lt:bM,mk:xM,ms:wM,nl:$M,no:EM,ota:jM,pl:zM,ps:OM,pt:CM,ro:PM,ru:IM,sl:ZM,sv:HM,ta:qM,th:KM,tr:GM,ua:XM,uk:V_,ur:WM,uz:tO,vi:rO,yo:cO,zhCN:iO,zhTW:sO},Symbol.toStringTag,{value:"Module"}));var m8;const F_=Symbol("ZodOutput"),q_=Symbol("ZodInput");class B_{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...a){const o=a[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const a=this._map.get(t);return a&&typeof a=="object"&&"id"in a&&this._idmap.delete(a.id),this._map.delete(t),this}get(t){const a=t._zod.parent;if(a){const o={...this.get(a)??{}};delete o.id;const n={...o,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function tp(){return new B_}(m8=globalThis).__zod_globalRegistry??(m8.__zod_globalRegistry=tp());const ar=globalThis.__zod_globalRegistry;function K_(e,t){return new e({type:"string",...te(t)})}function Q_(e,t){return new e({type:"string",coerce:!0,...te(t)})}function np(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...te(t)})}function Ru(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...te(t)})}function rp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...te(t)})}function ap(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...te(t)})}function ip(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...te(t)})}function op(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...te(t)})}function Wu(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...te(t)})}function sp(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...te(t)})}function lp(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...te(t)})}function cp(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...te(t)})}function up(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...te(t)})}function dp(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...te(t)})}function fp(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...te(t)})}function mp(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...te(t)})}function pp(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...te(t)})}function hp(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...te(t)})}function G_(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...te(t)})}function gp(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...te(t)})}function vp(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...te(t)})}function yp(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...te(t)})}function bp(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...te(t)})}function _p(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...te(t)})}function xp(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...te(t)})}const J_={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function X_(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...te(t)})}function Y_(e,t){return new e({type:"string",format:"date",check:"string_format",...te(t)})}function W_(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...te(t)})}function ex(e,t){return new e({type:"string",format:"duration",check:"string_format",...te(t)})}function tx(e,t){return new e({type:"number",checks:[],...te(t)})}function nx(e,t){return new e({type:"number",coerce:!0,checks:[],...te(t)})}function rx(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...te(t)})}function ax(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...te(t)})}function ix(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...te(t)})}function ox(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...te(t)})}function sx(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...te(t)})}function lx(e,t){return new e({type:"boolean",...te(t)})}function cx(e,t){return new e({type:"boolean",coerce:!0,...te(t)})}function ux(e,t){return new e({type:"bigint",...te(t)})}function dx(e,t){return new e({type:"bigint",coerce:!0,...te(t)})}function fx(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...te(t)})}function mx(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...te(t)})}function px(e,t){return new e({type:"symbol",...te(t)})}function hx(e,t){return new e({type:"undefined",...te(t)})}function gx(e,t){return new e({type:"null",...te(t)})}function vx(e){return new e({type:"any"})}function yx(e){return new e({type:"unknown"})}function bx(e,t){return new e({type:"never",...te(t)})}function _x(e,t){return new e({type:"void",...te(t)})}function xx(e,t){return new e({type:"date",...te(t)})}function Sx(e,t){return new e({type:"date",coerce:!0,...te(t)})}function wx(e,t){return new e({type:"nan",...te(t)})}function Ua(e,t){return new qm({check:"less_than",...te(t),value:e,inclusive:!1})}function ir(e,t){return new qm({check:"less_than",...te(t),value:e,inclusive:!0})}function Za(e,t){return new Bm({check:"greater_than",...te(t),value:e,inclusive:!1})}function An(e,t){return new Bm({check:"greater_than",...te(t),value:e,inclusive:!0})}function Sp(e){return Za(0,e)}function wp(e){return Ua(0,e)}function kp(e){return ir(0,e)}function $p(e){return An(0,e)}function Co(e,t){return new s3({check:"multiple_of",...te(t),value:e})}function Zo(e,t){return new u3({check:"max_size",...te(t),maximum:e})}function Va(e,t){return new d3({check:"min_size",...te(t),minimum:e})}function Tl(e,t){return new f3({check:"size_equals",...te(t),size:e})}function jl(e,t){return new m3({check:"max_length",...te(t),maximum:e})}function Ei(e,t){return new p3({check:"min_length",...te(t),minimum:e})}function Ml(e,t){return new h3({check:"length_equals",...te(t),length:e})}function ed(e,t){return new g3({check:"string_format",format:"regex",...te(t),pattern:e})}function td(e){return new v3({check:"string_format",format:"lowercase",...te(e)})}function nd(e){return new y3({check:"string_format",format:"uppercase",...te(e)})}function rd(e,t){return new b3({check:"string_format",format:"includes",...te(t),includes:e})}function ad(e,t){return new _3({check:"string_format",format:"starts_with",...te(t),prefix:e})}function id(e,t){return new x3({check:"string_format",format:"ends_with",...te(t),suffix:e})}function Ap(e,t,a){return new S3({check:"property",property:e,schema:t,...te(a)})}function od(e,t){return new w3({check:"mime_type",mime:e,...te(t)})}function oa(e){return new k3({check:"overwrite",tx:e})}function sd(e){return oa(t=>t.normalize(e))}function ld(){return oa(e=>e.trim())}function cd(){return oa(e=>e.toLowerCase())}function ud(){return oa(e=>e.toUpperCase())}function dd(){return oa(e=>rb(e))}function kx(e,t,a){return new e({type:"array",element:t,...te(a)})}function uO(e,t,a){return new e({type:"union",options:t,...te(a)})}function dO(e,t,a){return new e({type:"union",options:t,inclusive:!1,...te(a)})}function fO(e,t,a,o){return new e({type:"union",options:a,discriminator:t,...te(o)})}function mO(e,t,a){return new e({type:"intersection",left:t,right:a})}function pO(e,t,a,o){const n=a instanceof Te,s=n?o:a,c=n?a:null;return new e({type:"tuple",items:t,rest:c,...te(s)})}function hO(e,t,a,o){return new e({type:"record",keyType:t,valueType:a,...te(o)})}function gO(e,t,a,o){return new e({type:"map",keyType:t,valueType:a,...te(o)})}function vO(e,t,a){return new e({type:"set",valueType:t,...te(a)})}function yO(e,t,a){const o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...te(a)})}function bO(e,t,a){return new e({type:"enum",entries:t,...te(a)})}function _O(e,t,a){return new e({type:"literal",values:Array.isArray(t)?t:[t],...te(a)})}function $x(e,t){return new e({type:"file",...te(t)})}function xO(e,t){return new e({type:"transform",transform:t})}function SO(e,t){return new e({type:"optional",innerType:t})}function wO(e,t){return new e({type:"nullable",innerType:t})}function kO(e,t,a){return new e({type:"default",innerType:t,get defaultValue(){return typeof a=="function"?a():Gu(a)}})}function $O(e,t,a){return new e({type:"nonoptional",innerType:t,...te(a)})}function AO(e,t){return new e({type:"success",innerType:t})}function EO(e,t,a){return new e({type:"catch",innerType:t,catchValue:typeof a=="function"?a:()=>a})}function TO(e,t,a){return new e({type:"pipe",in:t,out:a})}function jO(e,t){return new e({type:"readonly",innerType:t})}function MO(e,t,a){return new e({type:"template_literal",parts:t,...te(a)})}function OO(e,t){return new e({type:"lazy",getter:t})}function NO(e,t){return new e({type:"promise",innerType:t})}function Ax(e,t,a){const o=te(a);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function Ex(e,t,a){return new e({type:"custom",check:"custom",fn:t,...te(a)})}function Tx(e,t){const a=jx(o=>(o.addIssue=n=>{if(typeof n=="string")o.issues.push(zo(n,o.value,a._zod.def));else{const s=n;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=o.value),s.inst??(s.inst=a),s.continue??(s.continue=!a._zod.def.abort),o.issues.push(zo(s))}},e(o.value,o)),t);return a}function jx(e,t){const a=new St({check:"custom",...te(t)});return a._zod.check=e,a}function Mx(e){const t=new St({check:"describe"});return t._zod.onattach=[a=>{const o=ar.get(a)??{};ar.add(a,{...o,description:e})}],t._zod.check=()=>{},t}function Ox(e){const t=new St({check:"meta"});return t._zod.onattach=[a=>{const o=ar.get(a)??{};ar.add(a,{...o,...e})}],t._zod.check=()=>{},t}function Nx(e,t){const a=te(t);let o=a.truthy??["true","1","yes","on","y","enabled"],n=a.falsy??["false","0","no","off","n","disabled"];a.case!=="sensitive"&&(o=o.map(_=>typeof _=="string"?_.toLowerCase():_),n=n.map(_=>typeof _=="string"?_.toLowerCase():_));const s=new Set(o),c=new Set(n),d=e.Codec??ep,m=e.Boolean??Gm,p=e.String??El,y=new p({type:"string",error:a.error}),b=new m({type:"boolean",error:a.error}),x=new d({type:"pipe",in:y,out:b,transform:((_,w)=>{let $=_;return a.case!=="sensitive"&&($=$.toLowerCase()),s.has($)?!0:c.has($)?!1:(w.issues.push({code:"invalid_value",expected:"stringbool",values:[...s,...c],input:w.value,inst:x,continue:!1}),{})}),reverseTransform:((_,w)=>_===!0?o[0]||"true":n[0]||"false"),error:a.error});return x}function Ol(e,t,a,o={}){const n=te(o),s={...te(o),check:"string_format",type:"string",format:t,fn:typeof a=="function"?a:d=>a.test(d),...n};return a instanceof RegExp&&(s.pattern=a),new e(s)}function Do(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??ar,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function lt(e,t,a={path:[],schemaPath:[]}){var o;const n=e._zod.def,s=t.seen.get(e);if(s)return s.count++,a.schemaPath.includes(e)&&(s.cycle=a.path),s.schema;const c={schema:{},count:1,cycle:void 0,path:a.path};t.seen.set(e,c);const d=e._zod.toJSONSchema?.();if(d)c.schema=d;else{const y={...a,schemaPath:[...a.schemaPath,e],path:a.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,c.schema,y);else{const x=c.schema,_=t.processors[n.type];if(!_)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);_(e,t,x,y)}const b=e._zod.parent;b&&(c.ref||(c.ref=b),lt(b,t,y),t.seen.get(b).isParent=!0)}const m=t.metadataRegistry.get(e);return m&&Object.assign(c.schema,m),t.io==="input"&&hn(e)&&(delete c.schema.examples,delete c.schema.default),t.io==="input"&&"_prefault"in c.schema&&((o=c.schema).default??(o.default=c.schema._prefault)),delete c.schema._prefault,t.seen.get(e).schema}function Po(e,t){const a=e.seen.get(t);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=new Map;for(const c of e.seen.entries()){const d=e.metadataRegistry.get(c[0])?.id;if(d){const m=o.get(d);if(m&&m!==c[0])throw new Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(d,c[0])}}const n=c=>{const d=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const b=e.external.registry.get(c[0])?.id,x=e.external.uri??(w=>w);if(b)return{ref:x(b)};const _=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=_,{defId:_,ref:`${x("__shared")}#/${d}/${_}`}}if(c[1]===a)return{ref:"#"};const p=`#/${d}/`,y=c[1].schema.id??`__schema${e.counter++}`;return{defId:y,ref:p+y}},s=c=>{if(c[1].schema.$ref)return;const d=c[1],{ref:m,defId:p}=n(c);d.def={...d.schema},p&&(d.defId=p);const y=d.schema;for(const b in y)delete y[b];y.$ref=m};if(e.cycles==="throw")for(const c of e.seen.entries()){const d=c[1];if(d.cycle)throw new Error(`Cycle detected: #/${d.cycle?.join("/")}/<root>
|
|
72
|
-
|
|
73
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of e.seen.entries()){const d=c[1];if(t===c[0]){s(c);continue}if(e.external){const p=e.external.registry.get(c[0])?.id;if(t!==c[0]&&p){s(c);continue}}if(e.metadataRegistry.get(c[0])?.id){s(c);continue}if(d.cycle){s(c);continue}if(d.count>1&&e.reused==="ref"){s(c);continue}}}function Lo(e,t){const a=e.seen.get(t);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=d=>{const m=e.seen.get(d);if(m.ref===null)return;const p=m.def??m.schema,y={...p},b=m.ref;if(m.ref=null,b){o(b);const _=e.seen.get(b),w=_.schema;if(w.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(p.allOf=p.allOf??[],p.allOf.push(w)):Object.assign(p,w),Object.assign(p,y),d._zod.parent===b)for(const A in p)A==="$ref"||A==="allOf"||A in y||delete p[A];if(w.$ref&&_.def)for(const A in p)A==="$ref"||A==="allOf"||A in _.def&&JSON.stringify(p[A])===JSON.stringify(_.def[A])&&delete p[A]}const x=d._zod.parent;if(x&&x!==b){o(x);const _=e.seen.get(x);if(_?.schema.$ref&&(p.$ref=_.schema.$ref,_.def))for(const w in p)w==="$ref"||w==="allOf"||w in _.def&&JSON.stringify(p[w])===JSON.stringify(_.def[w])&&delete p[w]}e.override({zodSchema:d,jsonSchema:p,path:m.path??[]})};for(const d of[...e.seen.entries()].reverse())o(d[0]);const n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const d=e.external.registry.get(t)?.id;if(!d)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(d)}Object.assign(n,a.def??a.schema);const s=e.metadataRegistry.get(t)?.id;s!==void 0&&n.id===s&&delete n.id;const c=e.external?.defs??{};for(const d of e.seen.entries()){const m=d[1];m.def&&m.defId&&(m.def.id===m.defId&&delete m.def.id,c[m.defId]=m.def)}e.external||Object.keys(c).length>0&&(e.target==="draft-2020-12"?n.$defs=c:n.definitions=c);try{const d=JSON.parse(JSON.stringify(n));return Object.defineProperty(d,"~standard",{value:{...t["~standard"],jsonSchema:{input:dl(t,"input",e.processors),output:dl(t,"output",e.processors)}},enumerable:!1,writable:!1}),d}catch{throw new Error("Error converting schema to JSON.")}}function hn(e,t){const a=t??{seen:new Set};if(a.seen.has(e))return!1;a.seen.add(e);const o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return hn(o.element,a);if(o.type==="set")return hn(o.valueType,a);if(o.type==="lazy")return hn(o.getter(),a);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return hn(o.innerType,a);if(o.type==="intersection")return hn(o.left,a)||hn(o.right,a);if(o.type==="record"||o.type==="map")return hn(o.keyType,a)||hn(o.valueType,a);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:hn(o.in,a)||hn(o.out,a);if(o.type==="object"){for(const n in o.shape)if(hn(o.shape[n],a))return!0;return!1}if(o.type==="union"){for(const n of o.options)if(hn(n,a))return!0;return!1}if(o.type==="tuple"){for(const n of o.items)if(hn(n,a))return!0;return!!(o.rest&&hn(o.rest,a))}return!1}const zx=(e,t={})=>a=>{const o=Do({...a,processors:t});return lt(e,o),Po(o,e),Lo(o,e)},dl=(e,t,a={})=>o=>{const{libraryOptions:n,target:s}=o??{},c=Do({...n??{},target:s,io:t,processors:a});return lt(e,c),Po(c,e),Lo(c,e)},zO={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Rx=(e,t,a,o)=>{const n=a;n.type="string";const{minimum:s,maximum:c,format:d,patterns:m,contentEncoding:p}=e._zod.bag;if(typeof s=="number"&&(n.minLength=s),typeof c=="number"&&(n.maxLength=c),d&&(n.format=zO[d]??d,n.format===""&&delete n.format,d==="time"&&delete n.format),p&&(n.contentEncoding=p),m&&m.size>0){const y=[...m];y.length===1?n.pattern=y[0].source:y.length>1&&(n.allOf=[...y.map(b=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:b.source}))])}},Cx=(e,t,a,o)=>{const n=a,{minimum:s,maximum:c,format:d,multipleOf:m,exclusiveMaximum:p,exclusiveMinimum:y}=e._zod.bag;typeof d=="string"&&d.includes("int")?n.type="integer":n.type="number";const b=typeof y=="number"&&y>=(s??Number.NEGATIVE_INFINITY),x=typeof p=="number"&&p<=(c??Number.POSITIVE_INFINITY),_=t.target==="draft-04"||t.target==="openapi-3.0";b?_?(n.minimum=y,n.exclusiveMinimum=!0):n.exclusiveMinimum=y:typeof s=="number"&&(n.minimum=s),x?_?(n.maximum=p,n.exclusiveMaximum=!0):n.exclusiveMaximum=p:typeof c=="number"&&(n.maximum=c),typeof m=="number"&&(n.multipleOf=m)},Dx=(e,t,a,o)=>{a.type="boolean"},Px=(e,t,a,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Lx=(e,t,a,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Ix=(e,t,a,o)=>{t.target==="openapi-3.0"?(a.type="string",a.nullable=!0,a.enum=[null]):a.type="null"},Ux=(e,t,a,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Zx=(e,t,a,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Vx=(e,t,a,o)=>{a.not={}},Hx=(e,t,a,o)=>{},Fx=(e,t,a,o)=>{},qx=(e,t,a,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Bx=(e,t,a,o)=>{const n=e._zod.def,s=Tm(n.entries);s.every(c=>typeof c=="number")&&(a.type="number"),s.every(c=>typeof c=="string")&&(a.type="string"),a.enum=s},Kx=(e,t,a,o)=>{const n=e._zod.def,s=[];for(const c of n.values)if(c===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof c=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(c))}else s.push(c);if(s.length!==0)if(s.length===1){const c=s[0];a.type=c===null?"null":typeof c,t.target==="draft-04"||t.target==="openapi-3.0"?a.enum=[c]:a.const=c}else s.every(c=>typeof c=="number")&&(a.type="number"),s.every(c=>typeof c=="string")&&(a.type="string"),s.every(c=>typeof c=="boolean")&&(a.type="boolean"),s.every(c=>c===null)&&(a.type="null"),a.enum=s},Qx=(e,t,a,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Gx=(e,t,a,o)=>{const n=a,s=e._zod.pattern;if(!s)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=s.source},Jx=(e,t,a,o)=>{const n=a,s={type:"string",format:"binary",contentEncoding:"binary"},{minimum:c,maximum:d,mime:m}=e._zod.bag;c!==void 0&&(s.minLength=c),d!==void 0&&(s.maxLength=d),m?m.length===1?(s.contentMediaType=m[0],Object.assign(n,s)):(Object.assign(n,s),n.anyOf=m.map(p=>({contentMediaType:p}))):Object.assign(n,s)},Xx=(e,t,a,o)=>{a.type="boolean"},Yx=(e,t,a,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Wx=(e,t,a,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},eS=(e,t,a,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},tS=(e,t,a,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},nS=(e,t,a,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},rS=(e,t,a,o)=>{const n=a,s=e._zod.def,{minimum:c,maximum:d}=e._zod.bag;typeof c=="number"&&(n.minItems=c),typeof d=="number"&&(n.maxItems=d),n.type="array",n.items=lt(s.element,t,{...o,path:[...o.path,"items"]})},aS=(e,t,a,o)=>{const n=a,s=e._zod.def;n.type="object",n.properties={};const c=s.shape;for(const p in c)n.properties[p]=lt(c[p],t,{...o,path:[...o.path,"properties",p]});const d=new Set(Object.keys(c)),m=new Set([...d].filter(p=>{const y=s.shape[p]._zod;return t.io==="input"?y.optin===void 0:y.optout===void 0}));m.size>0&&(n.required=Array.from(m)),s.catchall?._zod.def.type==="never"?n.additionalProperties=!1:s.catchall?s.catchall&&(n.additionalProperties=lt(s.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Ep=(e,t,a,o)=>{const n=e._zod.def,s=n.inclusive===!1,c=n.options.map((d,m)=>lt(d,t,{...o,path:[...o.path,s?"oneOf":"anyOf",m]}));s?a.oneOf=c:a.anyOf=c},iS=(e,t,a,o)=>{const n=e._zod.def,s=lt(n.left,t,{...o,path:[...o.path,"allOf",0]}),c=lt(n.right,t,{...o,path:[...o.path,"allOf",1]}),d=p=>"allOf"in p&&Object.keys(p).length===1,m=[...d(s)?s.allOf:[s],...d(c)?c.allOf:[c]];a.allOf=m},oS=(e,t,a,o)=>{const n=a,s=e._zod.def;n.type="array";const c=t.target==="draft-2020-12"?"prefixItems":"items",d=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",m=s.items.map((x,_)=>lt(x,t,{...o,path:[...o.path,c,_]})),p=s.rest?lt(s.rest,t,{...o,path:[...o.path,d,...t.target==="openapi-3.0"?[s.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=m,p&&(n.items=p)):t.target==="openapi-3.0"?(n.items={anyOf:m},p&&n.items.anyOf.push(p),n.minItems=m.length,p||(n.maxItems=m.length)):(n.items=m,p&&(n.additionalItems=p));const{minimum:y,maximum:b}=e._zod.bag;typeof y=="number"&&(n.minItems=y),typeof b=="number"&&(n.maxItems=b)},sS=(e,t,a,o)=>{const n=a,s=e._zod.def;n.type="object";const c=s.keyType,m=c._zod.bag?.patterns;if(s.mode==="loose"&&m&&m.size>0){const y=lt(s.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(const b of m)n.patternProperties[b.source]=y}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=lt(s.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=lt(s.valueType,t,{...o,path:[...o.path,"additionalProperties"]});const p=c._zod.values;if(p){const y=[...p].filter(b=>typeof b=="string"||typeof b=="number");y.length>0&&(n.required=y)}},lS=(e,t,a,o)=>{const n=e._zod.def,s=lt(n.innerType,t,o),c=t.seen.get(e);t.target==="openapi-3.0"?(c.ref=n.innerType,a.nullable=!0):a.anyOf=[s,{type:"null"}]},cS=(e,t,a,o)=>{const n=e._zod.def;lt(n.innerType,t,o);const s=t.seen.get(e);s.ref=n.innerType},uS=(e,t,a,o)=>{const n=e._zod.def;lt(n.innerType,t,o);const s=t.seen.get(e);s.ref=n.innerType,a.default=JSON.parse(JSON.stringify(n.defaultValue))},dS=(e,t,a,o)=>{const n=e._zod.def;lt(n.innerType,t,o);const s=t.seen.get(e);s.ref=n.innerType,t.io==="input"&&(a._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},fS=(e,t,a,o)=>{const n=e._zod.def;lt(n.innerType,t,o);const s=t.seen.get(e);s.ref=n.innerType;let c;try{c=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}a.default=c},mS=(e,t,a,o)=>{const n=e._zod.def,s=n.in._zod.traits.has("$ZodTransform"),c=t.io==="input"?s?n.out:n.in:n.out;lt(c,t,o);const d=t.seen.get(e);d.ref=c},pS=(e,t,a,o)=>{const n=e._zod.def;lt(n.innerType,t,o);const s=t.seen.get(e);s.ref=n.innerType,a.readOnly=!0},hS=(e,t,a,o)=>{const n=e._zod.def;lt(n.innerType,t,o);const s=t.seen.get(e);s.ref=n.innerType},Tp=(e,t,a,o)=>{const n=e._zod.def;lt(n.innerType,t,o);const s=t.seen.get(e);s.ref=n.innerType},gS=(e,t,a,o)=>{const n=e._zod.innerType;lt(n,t,o);const s=t.seen.get(e);s.ref=n},nm={string:Rx,number:Cx,boolean:Dx,bigint:Px,symbol:Lx,null:Ix,undefined:Ux,void:Zx,never:Vx,any:Hx,unknown:Fx,date:qx,enum:Bx,literal:Kx,nan:Qx,template_literal:Gx,file:Jx,success:Xx,custom:Yx,function:Wx,transform:eS,map:tS,set:nS,array:rS,object:aS,union:Ep,intersection:iS,tuple:oS,record:sS,nullable:lS,nonoptional:cS,default:uS,prefault:dS,catch:fS,pipe:mS,readonly:pS,promise:hS,optional:Tp,lazy:gS};function vS(e,t){if("_idmap"in e){const o=e,n=Do({...t,processors:nm}),s={};for(const m of o._idmap.entries()){const[p,y]=m;lt(y,n)}const c={},d={registry:o,uri:t?.uri,defs:s};n.external=d;for(const m of o._idmap.entries()){const[p,y]=m;Po(n,y),c[p]=Lo(n,y)}if(Object.keys(s).length>0){const m=n.target==="draft-2020-12"?"$defs":"definitions";c.__shared={[m]:s}}return{schemas:c}}const a=Do({...t,processors:nm});return lt(e,a),Po(a,e),Lo(a,e)}class RO{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let a=t?.target??"draft-2020-12";a==="draft-4"&&(a="draft-04"),a==="draft-7"&&(a="draft-07"),this.ctx=Do({processors:nm,target:a,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,a={path:[],schemaPath:[]}){return lt(t,this.ctx,a)}emit(t,a){a&&(a.cycles&&(this.ctx.cycles=a.cycles),a.reused&&(this.ctx.reused=a.reused),a.external&&(this.ctx.external=a.external)),Po(this.ctx,t);const o=Lo(this.ctx,t),{"~standard":n,...s}=o;return s}}const CO=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),DO=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:i_,$ZodArray:u_,$ZodAsyncError:Si,$ZodBase64:K3,$ZodBase64URL:G3,$ZodBigInt:Jm,$ZodBigIntFormat:t_,$ZodBoolean:Gm,$ZodCIDRv4:q3,$ZodCIDRv6:B3,$ZodCUID:z3,$ZodCUID2:R3,$ZodCatch:O_,$ZodCheck:St,$ZodCheckBigIntFormat:c3,$ZodCheckEndsWith:x3,$ZodCheckGreaterThan:Bm,$ZodCheckIncludes:b3,$ZodCheckLengthEquals:h3,$ZodCheckLessThan:qm,$ZodCheckLowerCase:v3,$ZodCheckMaxLength:m3,$ZodCheckMaxSize:u3,$ZodCheckMimeType:w3,$ZodCheckMinLength:p3,$ZodCheckMinSize:d3,$ZodCheckMultipleOf:s3,$ZodCheckNumberFormat:l3,$ZodCheckOverwrite:k3,$ZodCheckProperty:S3,$ZodCheckRegex:g3,$ZodCheckSizeEquals:f3,$ZodCheckStartsWith:_3,$ZodCheckStringFormat:Al,$ZodCheckUpperCase:y3,$ZodCodec:ep,$ZodCustom:I_,$ZodCustomStringFormat:W3,$ZodDate:c_,$ZodDefault:E_,$ZodDiscriminatedUnion:g_,$ZodE164:J3,$ZodEmail:j3,$ZodEmoji:O3,$ZodEncodeError:Ku,$ZodEnum:x_,$ZodError:Mm,$ZodExactOptional:$_,$ZodFile:w_,$ZodFunction:D_,$ZodGUID:E3,$ZodIPv4:V3,$ZodIPv6:H3,$ZodISODate:I3,$ZodISODateTime:L3,$ZodISODuration:Z3,$ZodISOTime:U3,$ZodIntersection:v_,$ZodJWT:Y3,$ZodKSUID:P3,$ZodLazy:L_,$ZodLiteral:S_,$ZodMAC:F3,$ZodMap:b_,$ZodNaN:N_,$ZodNanoID:N3,$ZodNever:s_,$ZodNonOptional:j_,$ZodNull:a_,$ZodNullable:A_,$ZodNumber:Qm,$ZodNumberFormat:e_,$ZodObject:m_,$ZodObjectJIT:p_,$ZodOptional:Ym,$ZodPipe:Wm,$ZodPrefault:T_,$ZodPreprocess:z_,$ZodPromise:P_,$ZodReadonly:R_,$ZodRealError:Fn,$ZodRecord:y_,$ZodRegistry:B_,$ZodSet:__,$ZodString:El,$ZodStringFormat:ft,$ZodSuccess:M_,$ZodSymbol:n_,$ZodTemplateLiteral:C_,$ZodTransform:k_,$ZodTuple:Xm,$ZodType:Te,$ZodULID:C3,$ZodURL:M3,$ZodUUID:T3,$ZodUndefined:r_,$ZodUnion:Yu,$ZodUnknown:o_,$ZodVoid:l_,$ZodXID:D3,$ZodXor:h_,$brand:tb,$constructor:P,$input:q_,$output:F_,Doc:$3,JSONSchema:CO,JSONSchemaGenerator:RO,NEVER:eb,TimePrecision:J_,_any:vx,_array:kx,_base64:yp,_base64url:bp,_bigint:ux,_boolean:lx,_catch:EO,_check:jx,_cidrv4:gp,_cidrv6:vp,_coercedBigint:dx,_coercedBoolean:cx,_coercedDate:Sx,_coercedNumber:nx,_coercedString:Q_,_cuid:cp,_cuid2:up,_custom:Ax,_date:xx,_decode:Rm,_decodeAsync:Dm,_default:kO,_discriminatedUnion:fO,_e164:_p,_email:np,_emoji:sp,_encode:zm,_encodeAsync:Cm,_endsWith:id,_enum:yO,_file:$x,_float32:ax,_float64:ix,_gt:Za,_gte:An,_guid:Ru,_includes:rd,_int:rx,_int32:ox,_int64:fx,_intersection:mO,_ipv4:pp,_ipv6:hp,_isoDate:Y_,_isoDateTime:X_,_isoDuration:ex,_isoTime:W_,_jwt:xp,_ksuid:mp,_lazy:OO,_length:Ml,_literal:_O,_lowercase:td,_lt:Ua,_lte:ir,_mac:G_,_map:gO,_max:ir,_maxLength:jl,_maxSize:Zo,_mime:od,_min:An,_minLength:Ei,_minSize:Va,_multipleOf:Co,_nan:wx,_nanoid:lp,_nativeEnum:bO,_negative:wp,_never:bx,_nonnegative:$p,_nonoptional:$O,_nonpositive:kp,_normalize:sd,_null:gx,_nullable:wO,_number:tx,_optional:SO,_overwrite:oa,_parse:_l,_parseAsync:xl,_pipe:TO,_positive:Sp,_promise:NO,_property:Ap,_readonly:jO,_record:hO,_refine:Ex,_regex:ed,_safeDecode:Lm,_safeDecodeAsync:Um,_safeEncode:Pm,_safeEncodeAsync:Im,_safeParse:Sl,_safeParseAsync:wl,_set:vO,_size:Tl,_slugify:dd,_startsWith:ad,_string:K_,_stringFormat:Ol,_stringbool:Nx,_success:AO,_superRefine:Tx,_symbol:px,_templateLiteral:MO,_toLowerCase:cd,_toUpperCase:ud,_transform:xO,_trim:ld,_tuple:pO,_uint32:sx,_uint64:mx,_ulid:dp,_undefined:hx,_union:uO,_unknown:yx,_uppercase:nd,_url:Wu,_uuid:rp,_uuidv4:ap,_uuidv6:ip,_uuidv7:op,_void:_x,_xid:fp,_xor:dO,clone:ur,config:nn,createStandardJSONSchemaMethod:dl,createToJSONSchemaMethod:zx,decode:VT,decodeAsync:FT,describe:Mx,encode:ZT,encodeAsync:HT,extractDefs:Po,finalize:Lo,flattenError:Om,formatError:Nm,globalConfig:ul,globalRegistry:ar,initializeContext:Do,isValidBase64:Km,isValidBase64URL:Q3,isValidJWT:X3,locales:H_,meta:Ox,parse:W1,parseAsync:em,prettifyError:wb,process:lt,regexes:Fm,registry:tp,safeDecode:BT,safeDecodeAsync:QT,safeEncode:qT,safeEncodeAsync:KT,safeParse:kb,safeParseAsync:$b,toDotPath:Sb,toJSONSchema:vS,treeifyError:xb,util:bb,version:A3},Symbol.toStringTag,{value:"Module"})),PO=Object.freeze(Object.defineProperty({__proto__:null,endsWith:id,gt:Za,gte:An,includes:rd,length:Ml,lowercase:td,lt:Ua,lte:ir,maxLength:jl,maxSize:Zo,mime:od,minLength:Ei,minSize:Va,multipleOf:Co,negative:wp,nonnegative:$p,nonpositive:kp,normalize:sd,overwrite:oa,positive:Sp,property:Ap,regex:ed,size:Tl,slugify:dd,startsWith:ad,toLowerCase:cd,toUpperCase:ud,trim:ld,uppercase:nd},Symbol.toStringTag,{value:"Module"})),jp=P("ZodISODateTime",(e,t)=>{L3.init(e,t),mt.init(e,t)});function yS(e){return X_(jp,e)}const Mp=P("ZodISODate",(e,t)=>{I3.init(e,t),mt.init(e,t)});function bS(e){return Y_(Mp,e)}const Op=P("ZodISOTime",(e,t)=>{U3.init(e,t),mt.init(e,t)});function _S(e){return W_(Op,e)}const Np=P("ZodISODuration",(e,t)=>{Z3.init(e,t),mt.init(e,t)});function xS(e){return ex(Np,e)}const SS=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:Mp,ZodISODateTime:jp,ZodISODuration:Np,ZodISOTime:Op,date:bS,datetime:yS,duration:xS,time:_S},Symbol.toStringTag,{value:"Module"})),wS=(e,t)=>{Mm.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:a=>Nm(e,a)},flatten:{value:a=>Om(e,a)},addIssue:{value:a=>{e.issues.push(a),e.message=JSON.stringify(e.issues,Ou,2)}},addIssues:{value:a=>{e.issues.push(...a),e.message=JSON.stringify(e.issues,Ou,2)}},isEmpty:{get(){return e.issues.length===0}}})},LO=P("ZodError",wS),qn=P("ZodError",wS,{Parent:Error}),kS=_l(qn),$S=xl(qn),AS=Sl(qn),ES=wl(qn),TS=zm(qn),jS=Rm(qn),MS=Cm(qn),OS=Dm(qn),NS=Pm(qn),zS=Lm(qn),RS=Im(qn),CS=Um(qn),p8=new WeakMap;function Nl(e,t,a){const o=Object.getPrototypeOf(e);let n=p8.get(o);if(n||(n=new Set,p8.set(o,n)),!n.has(t)){n.add(t);for(const s in a){const c=a[s];Object.defineProperty(o,s,{configurable:!0,enumerable:!1,get(){const d=c.bind(this);return Object.defineProperty(this,s,{configurable:!0,writable:!0,enumerable:!0,value:d}),d},set(d){Object.defineProperty(this,s,{configurable:!0,writable:!0,enumerable:!0,value:d})}})}}}const ze=P("ZodType",(e,t)=>(Te.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:dl(e,"input"),output:dl(e,"output")}}),e.toJSONSchema=zx(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(a,o)=>kS(e,a,o,{callee:e.parse}),e.safeParse=(a,o)=>AS(e,a,o),e.parseAsync=async(a,o)=>$S(e,a,o,{callee:e.parseAsync}),e.safeParseAsync=async(a,o)=>ES(e,a,o),e.spa=e.safeParseAsync,e.encode=(a,o)=>TS(e,a,o),e.decode=(a,o)=>jS(e,a,o),e.encodeAsync=async(a,o)=>MS(e,a,o),e.decodeAsync=async(a,o)=>OS(e,a,o),e.safeEncode=(a,o)=>NS(e,a,o),e.safeDecode=(a,o)=>zS(e,a,o),e.safeEncodeAsync=async(a,o)=>RS(e,a,o),e.safeDecodeAsync=async(a,o)=>CS(e,a,o),Nl(e,"ZodType",{check(...a){const o=this.def;return this.clone(Nr(o,{checks:[...o.checks??[],...a.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...a){return this.check(...a)},clone(a,o){return ur(this,a,o)},brand(){return this},register(a,o){return a.add(this,o),this},refine(a,o){return this.check(Sh(a,o))},superRefine(a,o){return this.check(wh(a,o))},overwrite(a){return this.check(oa(a))},optional(){return ml(this)},exactOptional(){return rh(this)},nullable(){return pl(this)},nullish(){return ml(pl(this))},nonoptional(a){return ch(this,a)},array(){return Ul(this)},or(a){return Nd([this,a])},and(a){return Kp(this,a)},transform(a){return Du(this,Rd(a))},default(a){return oh(this,a)},prefault(a){return lh(this,a)},catch(a){return fh(this,a)},pipe(a){return Du(this,a)},readonly(){return gh(this)},describe(a){const o=this.clone();return ar.add(o,{description:a}),o},meta(...a){if(a.length===0)return ar.get(this);const o=this.clone();return ar.add(o,a[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(a){return a(this)}}),Object.defineProperty(e,"description",{get(){return ar.get(e)?.description},configurable:!0}),e)),fd=P("_ZodString",(e,t)=>{El.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(o,n,s)=>Rx(e,o,n);const a=e._zod.bag;e.format=a.format??null,e.minLength=a.minimum??null,e.maxLength=a.maximum??null,Nl(e,"_ZodString",{regex(...o){return this.check(ed(...o))},includes(...o){return this.check(rd(...o))},startsWith(...o){return this.check(ad(...o))},endsWith(...o){return this.check(id(...o))},min(...o){return this.check(Ei(...o))},max(...o){return this.check(jl(...o))},length(...o){return this.check(Ml(...o))},nonempty(...o){return this.check(Ei(1,...o))},lowercase(o){return this.check(td(o))},uppercase(o){return this.check(nd(o))},trim(){return this.check(ld())},normalize(...o){return this.check(sd(...o))},toLowerCase(){return this.check(cd())},toUpperCase(){return this.check(ud())},slugify(){return this.check(dd())}})}),zl=P("ZodString",(e,t)=>{El.init(e,t),fd.init(e,t),e.email=a=>e.check(np(md,a)),e.url=a=>e.check(Wu(Cl,a)),e.jwt=a=>e.check(xp(Td,a)),e.emoji=a=>e.check(sp(pd,a)),e.guid=a=>e.check(Ru(fl,a)),e.uuid=a=>e.check(rp(Mr,a)),e.uuidv4=a=>e.check(ap(Mr,a)),e.uuidv6=a=>e.check(ip(Mr,a)),e.uuidv7=a=>e.check(op(Mr,a)),e.nanoid=a=>e.check(lp(hd,a)),e.guid=a=>e.check(Ru(fl,a)),e.cuid=a=>e.check(cp(gd,a)),e.cuid2=a=>e.check(up(vd,a)),e.ulid=a=>e.check(dp(yd,a)),e.base64=a=>e.check(yp($d,a)),e.base64url=a=>e.check(bp(Ad,a)),e.xid=a=>e.check(fp(bd,a)),e.ksuid=a=>e.check(mp(_d,a)),e.ipv4=a=>e.check(pp(xd,a)),e.ipv6=a=>e.check(hp(Sd,a)),e.cidrv4=a=>e.check(gp(wd,a)),e.cidrv6=a=>e.check(vp(kd,a)),e.e164=a=>e.check(_p(Ed,a)),e.datetime=a=>e.check(yS(a)),e.date=a=>e.check(bS(a)),e.time=a=>e.check(_S(a)),e.duration=a=>e.check(xS(a))});function Ce(e){return K_(zl,e)}const mt=P("ZodStringFormat",(e,t)=>{ft.init(e,t),fd.init(e,t)}),md=P("ZodEmail",(e,t)=>{j3.init(e,t),mt.init(e,t)});function Rl(e){return np(md,e)}const fl=P("ZodGUID",(e,t)=>{E3.init(e,t),mt.init(e,t)});function DS(e){return Ru(fl,e)}const Mr=P("ZodUUID",(e,t)=>{T3.init(e,t),mt.init(e,t)});function PS(e){return rp(Mr,e)}function LS(e){return ap(Mr,e)}function IS(e){return ip(Mr,e)}function US(e){return op(Mr,e)}const Cl=P("ZodURL",(e,t)=>{M3.init(e,t),mt.init(e,t)});function ZS(e){return Wu(Cl,e)}function VS(e){return Wu(Cl,{protocol:Vm,hostname:Fb,...te(e)})}const pd=P("ZodEmoji",(e,t)=>{O3.init(e,t),mt.init(e,t)});function HS(e){return sp(pd,e)}const hd=P("ZodNanoID",(e,t)=>{N3.init(e,t),mt.init(e,t)});function FS(e){return lp(hd,e)}const gd=P("ZodCUID",(e,t)=>{z3.init(e,t),mt.init(e,t)});function qS(e){return cp(gd,e)}const vd=P("ZodCUID2",(e,t)=>{R3.init(e,t),mt.init(e,t)});function BS(e){return up(vd,e)}const yd=P("ZodULID",(e,t)=>{C3.init(e,t),mt.init(e,t)});function KS(e){return dp(yd,e)}const bd=P("ZodXID",(e,t)=>{D3.init(e,t),mt.init(e,t)});function QS(e){return fp(bd,e)}const _d=P("ZodKSUID",(e,t)=>{P3.init(e,t),mt.init(e,t)});function GS(e){return mp(_d,e)}const xd=P("ZodIPv4",(e,t)=>{V3.init(e,t),mt.init(e,t)});function JS(e){return pp(xd,e)}const zp=P("ZodMAC",(e,t)=>{F3.init(e,t),mt.init(e,t)});function XS(e){return G_(zp,e)}const Sd=P("ZodIPv6",(e,t)=>{H3.init(e,t),mt.init(e,t)});function YS(e){return hp(Sd,e)}const wd=P("ZodCIDRv4",(e,t)=>{q3.init(e,t),mt.init(e,t)});function WS(e){return gp(wd,e)}const kd=P("ZodCIDRv6",(e,t)=>{B3.init(e,t),mt.init(e,t)});function e5(e){return vp(kd,e)}const $d=P("ZodBase64",(e,t)=>{K3.init(e,t),mt.init(e,t)});function t5(e){return yp($d,e)}const Ad=P("ZodBase64URL",(e,t)=>{G3.init(e,t),mt.init(e,t)});function n5(e){return bp(Ad,e)}const Ed=P("ZodE164",(e,t)=>{J3.init(e,t),mt.init(e,t)});function r5(e){return _p(Ed,e)}const Td=P("ZodJWT",(e,t)=>{Y3.init(e,t),mt.init(e,t)});function a5(e){return xp(Td,e)}const Vo=P("ZodCustomStringFormat",(e,t)=>{W3.init(e,t),mt.init(e,t)});function i5(e,t,a={}){return Ol(Vo,e,t,a)}function o5(e){return Ol(Vo,"hostname",Hb,e)}function s5(e){return Ol(Vo,"hex",i3,e)}function l5(e,t){const a=t?.enc??"hex",o=`${e}_${a}`,n=Fm[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return Ol(Vo,o,n,t)}const Dl=P("ZodNumber",(e,t)=>{Qm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(o,n,s)=>Cx(e,o,n),Nl(e,"ZodNumber",{gt(o,n){return this.check(Za(o,n))},gte(o,n){return this.check(An(o,n))},min(o,n){return this.check(An(o,n))},lt(o,n){return this.check(Ua(o,n))},lte(o,n){return this.check(ir(o,n))},max(o,n){return this.check(ir(o,n))},int(o){return this.check(Cu(o))},safe(o){return this.check(Cu(o))},positive(o){return this.check(Za(0,o))},nonnegative(o){return this.check(An(0,o))},negative(o){return this.check(Ua(0,o))},nonpositive(o){return this.check(ir(0,o))},multipleOf(o,n){return this.check(Co(o,n))},step(o,n){return this.check(Co(o,n))},finite(){return this}});const a=e._zod.bag;e.minValue=Math.max(a.minimum??Number.NEGATIVE_INFINITY,a.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(a.maximum??Number.POSITIVE_INFINITY,a.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(a.format??"").includes("int")||Number.isSafeInteger(a.multipleOf??.5),e.isFinite=!0,e.format=a.format??null});function Rp(e){return tx(Dl,e)}const zi=P("ZodNumberFormat",(e,t)=>{e_.init(e,t),Dl.init(e,t)});function Cu(e){return rx(zi,e)}function c5(e){return ax(zi,e)}function u5(e){return ix(zi,e)}function d5(e){return ox(zi,e)}function f5(e){return sx(zi,e)}const Pl=P("ZodBoolean",(e,t)=>{Gm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>Dx(e,a,o)});function Ll(e){return lx(Pl,e)}const Il=P("ZodBigInt",(e,t)=>{Jm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(o,n,s)=>Px(e,o),e.gte=(o,n)=>e.check(An(o,n)),e.min=(o,n)=>e.check(An(o,n)),e.gt=(o,n)=>e.check(Za(o,n)),e.gte=(o,n)=>e.check(An(o,n)),e.min=(o,n)=>e.check(An(o,n)),e.lt=(o,n)=>e.check(Ua(o,n)),e.lte=(o,n)=>e.check(ir(o,n)),e.max=(o,n)=>e.check(ir(o,n)),e.positive=o=>e.check(Za(BigInt(0),o)),e.negative=o=>e.check(Ua(BigInt(0),o)),e.nonpositive=o=>e.check(ir(BigInt(0),o)),e.nonnegative=o=>e.check(An(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(Co(o,n));const a=e._zod.bag;e.minValue=a.minimum??null,e.maxValue=a.maximum??null,e.format=a.format??null});function m5(e){return ux(Il,e)}const jd=P("ZodBigIntFormat",(e,t)=>{t_.init(e,t),Il.init(e,t)});function p5(e){return fx(jd,e)}function h5(e){return mx(jd,e)}const Cp=P("ZodSymbol",(e,t)=>{n_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>Lx(e,a)});function g5(e){return px(Cp,e)}const Dp=P("ZodUndefined",(e,t)=>{r_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>Ux(e,a)});function v5(e){return hx(Dp,e)}const Pp=P("ZodNull",(e,t)=>{a_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>Ix(e,a,o)});function Lp(e){return gx(Pp,e)}const Ip=P("ZodAny",(e,t)=>{i_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>Hx()});function y5(){return vx(Ip)}const Up=P("ZodUnknown",(e,t)=>{o_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>Fx()});function Ti(){return yx(Up)}const Zp=P("ZodNever",(e,t)=>{s_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>Vx(e,a,o)});function Md(e){return bx(Zp,e)}const Vp=P("ZodVoid",(e,t)=>{l_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>Zx(e,a)});function b5(e){return _x(Vp,e)}const Od=P("ZodDate",(e,t)=>{c_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(o,n,s)=>qx(e,o),e.min=(o,n)=>e.check(An(o,n)),e.max=(o,n)=>e.check(ir(o,n));const a=e._zod.bag;e.minDate=a.minimum?new Date(a.minimum):null,e.maxDate=a.maximum?new Date(a.maximum):null});function _5(e){return xx(Od,e)}const Hp=P("ZodArray",(e,t)=>{u_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>rS(e,a,o,n),e.element=t.element,Nl(e,"ZodArray",{min(a,o){return this.check(Ei(a,o))},nonempty(a){return this.check(Ei(1,a))},max(a,o){return this.check(jl(a,o))},length(a,o){return this.check(Ml(a,o))},unwrap(){return this.element}})});function Ul(e,t){return kx(Hp,e,t)}function x5(e){const t=e._zod.def.shape;return Ia(Object.keys(t))}const Zl=P("ZodObject",(e,t)=>{p_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>aS(e,a,o,n),Pe(e,"shape",()=>t.shape),Nl(e,"ZodObject",{keyof(){return Ia(Object.keys(this._zod.def.shape))},catchall(a){return this.clone({...this._zod.def,catchall:a})},passthrough(){return this.clone({...this._zod.def,catchall:Ti()})},loose(){return this.clone({...this._zod.def,catchall:Ti()})},strict(){return this.clone({...this._zod.def,catchall:Md()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(a){return db(this,a)},safeExtend(a){return fb(this,a)},merge(a){return mb(this,a)},pick(a){return cb(this,a)},omit(a){return ub(this,a)},partial(...a){return pb(Cd,this,a[0])},required(...a){return hb(Dd,this,a[0])}})});function Vt(e,t){const a={type:"object",shape:e??{},...te(t)};return new Zl(a)}function S5(e,t){return new Zl({type:"object",shape:e,catchall:Md(),...te(t)})}function w5(e,t){return new Zl({type:"object",shape:e,catchall:Ti(),...te(t)})}const Vl=P("ZodUnion",(e,t)=>{Yu.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>Ep(e,a,o,n),e.options=t.options});function Nd(e,t){return new Vl({type:"union",options:e,...te(t)})}const Fp=P("ZodXor",(e,t)=>{Vl.init(e,t),h_.init(e,t),e._zod.processJSONSchema=(a,o,n)=>Ep(e,a,o,n),e.options=t.options});function k5(e,t){return new Fp({type:"union",options:e,inclusive:!1,...te(t)})}const qp=P("ZodDiscriminatedUnion",(e,t)=>{Vl.init(e,t),g_.init(e,t)});function $5(e,t,a){return new qp({type:"union",options:t,discriminator:e,...te(a)})}const Bp=P("ZodIntersection",(e,t)=>{v_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>iS(e,a,o,n)});function Kp(e,t){return new Bp({type:"intersection",left:e,right:t})}const Qp=P("ZodTuple",(e,t)=>{Xm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>oS(e,a,o,n),e.rest=a=>e.clone({...e._zod.def,rest:a})});function Gp(e,t,a){const o=t instanceof Te,n=o?a:t,s=o?t:null;return new Qp({type:"tuple",items:e,rest:s,...te(n)})}const Io=P("ZodRecord",(e,t)=>{y_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>sS(e,a,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function Jp(e,t,a){return!t||!t._zod?new Io({type:"record",keyType:Ce(),valueType:e,...te(t)}):new Io({type:"record",keyType:e,valueType:t,...te(a)})}function A5(e,t,a){const o=ur(e);return o._zod.values=void 0,new Io({type:"record",keyType:o,valueType:t,...te(a)})}function E5(e,t,a){return new Io({type:"record",keyType:e,valueType:t,mode:"loose",...te(a)})}const Xp=P("ZodMap",(e,t)=>{b_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>tS(e,a),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...a)=>e.check(Va(...a)),e.nonempty=a=>e.check(Va(1,a)),e.max=(...a)=>e.check(Zo(...a)),e.size=(...a)=>e.check(Tl(...a))});function T5(e,t,a){return new Xp({type:"map",keyType:e,valueType:t,...te(a)})}const Yp=P("ZodSet",(e,t)=>{__.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>nS(e,a),e.min=(...a)=>e.check(Va(...a)),e.nonempty=a=>e.check(Va(1,a)),e.max=(...a)=>e.check(Zo(...a)),e.size=(...a)=>e.check(Tl(...a))});function j5(e,t){return new Yp({type:"set",valueType:e,...te(t)})}const Uo=P("ZodEnum",(e,t)=>{x_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(o,n,s)=>Bx(e,o,n),e.enum=t.entries,e.options=Object.values(t.entries);const a=new Set(Object.keys(t.entries));e.extract=(o,n)=>{const s={};for(const c of o)if(a.has(c))s[c]=t.entries[c];else throw new Error(`Key ${c} not found in enum`);return new Uo({...t,checks:[],...te(n),entries:s})},e.exclude=(o,n)=>{const s={...t.entries};for(const c of o)if(a.has(c))delete s[c];else throw new Error(`Key ${c} not found in enum`);return new Uo({...t,checks:[],...te(n),entries:s})}});function Ia(e,t){const a=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Uo({type:"enum",entries:a,...te(t)})}function M5(e,t){return new Uo({type:"enum",entries:e,...te(t)})}const Wp=P("ZodLiteral",(e,t)=>{S_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>Kx(e,a,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function zd(e,t){return new Wp({type:"literal",values:Array.isArray(e)?e:[e],...te(t)})}const eh=P("ZodFile",(e,t)=>{w_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>Jx(e,a,o),e.min=(a,o)=>e.check(Va(a,o)),e.max=(a,o)=>e.check(Zo(a,o)),e.mime=(a,o)=>e.check(od(Array.isArray(a)?a:[a],o))});function O5(e){return $x(eh,e)}const th=P("ZodTransform",(e,t)=>{k_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>eS(e,a),e._zod.parse=(a,o)=>{if(o.direction==="backward")throw new Ku(e.constructor.name);a.addIssue=s=>{if(typeof s=="string")a.issues.push(zo(s,a.value,t));else{const c=s;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=a.value),c.inst??(c.inst=e),a.issues.push(zo(c))}};const n=t.transform(a.value,a);return n instanceof Promise?n.then(s=>(a.value=s,a.fallback=!0,a)):(a.value=n,a.fallback=!0,a)}});function Rd(e){return new th({type:"transform",transform:e})}const Cd=P("ZodOptional",(e,t)=>{Ym.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>Tp(e,a,o,n),e.unwrap=()=>e._zod.def.innerType});function ml(e){return new Cd({type:"optional",innerType:e})}const nh=P("ZodExactOptional",(e,t)=>{$_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>Tp(e,a,o,n),e.unwrap=()=>e._zod.def.innerType});function rh(e){return new nh({type:"optional",innerType:e})}const ah=P("ZodNullable",(e,t)=>{A_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>lS(e,a,o,n),e.unwrap=()=>e._zod.def.innerType});function pl(e){return new ah({type:"nullable",innerType:e})}function N5(e){return ml(pl(e))}const ih=P("ZodDefault",(e,t)=>{E_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>uS(e,a,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function oh(e,t){return new ih({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Gu(t)}})}const sh=P("ZodPrefault",(e,t)=>{T_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>dS(e,a,o,n),e.unwrap=()=>e._zod.def.innerType});function lh(e,t){return new sh({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Gu(t)}})}const Dd=P("ZodNonOptional",(e,t)=>{j_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>cS(e,a,o,n),e.unwrap=()=>e._zod.def.innerType});function ch(e,t){return new Dd({type:"nonoptional",innerType:e,...te(t)})}const uh=P("ZodSuccess",(e,t)=>{M_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>Xx(e,a,o),e.unwrap=()=>e._zod.def.innerType});function z5(e){return new uh({type:"success",innerType:e})}const dh=P("ZodCatch",(e,t)=>{O_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>fS(e,a,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function fh(e,t){return new dh({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const mh=P("ZodNaN",(e,t)=>{N_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>Qx(e,a)});function R5(e){return wx(mh,e)}const Hl=P("ZodPipe",(e,t)=>{Wm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>mS(e,a,o,n),e.in=t.in,e.out=t.out});function Du(e,t){return new Hl({type:"pipe",in:e,out:t})}const Fl=P("ZodCodec",(e,t)=>{Hl.init(e,t),ep.init(e,t)});function C5(e,t,a){return new Fl({type:"pipe",in:e,out:t,transform:a.decode,reverseTransform:a.encode})}function D5(e){const t=e._zod.def;return new Fl({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}const ph=P("ZodPreprocess",(e,t)=>{Hl.init(e,t),z_.init(e,t)}),hh=P("ZodReadonly",(e,t)=>{R_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>pS(e,a,o,n),e.unwrap=()=>e._zod.def.innerType});function gh(e){return new hh({type:"readonly",innerType:e})}const vh=P("ZodTemplateLiteral",(e,t)=>{C_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>Gx(e,a,o)});function P5(e,t){return new vh({type:"template_literal",parts:e,...te(t)})}const yh=P("ZodLazy",(e,t)=>{L_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>gS(e,a,o,n),e.unwrap=()=>e._zod.def.getter()});function bh(e){return new yh({type:"lazy",getter:e})}const _h=P("ZodPromise",(e,t)=>{P_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>hS(e,a,o,n),e.unwrap=()=>e._zod.def.innerType});function L5(e){return new _h({type:"promise",innerType:e})}const xh=P("ZodFunction",(e,t)=>{D_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>Wx(e,a)});function Pu(e){return new xh({type:"function",input:Array.isArray(e?.input)?Gp(e?.input):e?.input??Ul(Ti()),output:e?.output??Ti()})}const ql=P("ZodCustom",(e,t)=>{I_.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,o,n)=>Yx(e,a)});function I5(e){const t=new St({check:"custom"});return t._zod.check=e,t}function U5(e,t){return Ax(ql,e??(()=>!0),t)}function Sh(e,t={}){return Ex(ql,e,t)}function wh(e,t){return Tx(e,t)}const Z5=Mx,V5=Ox;function H5(e,t={}){const a=new ql({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...te(t)});return a._zod.bag.Class=e,a._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:a,path:[...a._zod.def.path??[]]})},a}const F5=(...e)=>Nx({Codec:Fl,Boolean:Pl,String:zl},...e);function q5(e){const t=bh(()=>Nd([Ce(e),Rp(),Ll(),Lp(),Ul(t),Jp(Ce(),t)]));return t}function B5(e,t){return new ph({type:"pipe",in:Rd(e),out:t})}const IO=Object.freeze(Object.defineProperty({__proto__:null,ZodAny:Ip,ZodArray:Hp,ZodBase64:$d,ZodBase64URL:Ad,ZodBigInt:Il,ZodBigIntFormat:jd,ZodBoolean:Pl,ZodCIDRv4:wd,ZodCIDRv6:kd,ZodCUID:gd,ZodCUID2:vd,ZodCatch:dh,ZodCodec:Fl,ZodCustom:ql,ZodCustomStringFormat:Vo,ZodDate:Od,ZodDefault:ih,ZodDiscriminatedUnion:qp,ZodE164:Ed,ZodEmail:md,ZodEmoji:pd,ZodEnum:Uo,ZodExactOptional:nh,ZodFile:eh,ZodFunction:xh,ZodGUID:fl,ZodIPv4:xd,ZodIPv6:Sd,ZodIntersection:Bp,ZodJWT:Td,ZodKSUID:_d,ZodLazy:yh,ZodLiteral:Wp,ZodMAC:zp,ZodMap:Xp,ZodNaN:mh,ZodNanoID:hd,ZodNever:Zp,ZodNonOptional:Dd,ZodNull:Pp,ZodNullable:ah,ZodNumber:Dl,ZodNumberFormat:zi,ZodObject:Zl,ZodOptional:Cd,ZodPipe:Hl,ZodPrefault:sh,ZodPreprocess:ph,ZodPromise:_h,ZodReadonly:hh,ZodRecord:Io,ZodSet:Yp,ZodString:zl,ZodStringFormat:mt,ZodSuccess:uh,ZodSymbol:Cp,ZodTemplateLiteral:vh,ZodTransform:th,ZodTuple:Qp,ZodType:ze,ZodULID:yd,ZodURL:Cl,ZodUUID:Mr,ZodUndefined:Dp,ZodUnion:Vl,ZodUnknown:Up,ZodVoid:Vp,ZodXID:bd,ZodXor:Fp,_ZodString:fd,_default:oh,_function:Pu,any:y5,array:Ul,base64:t5,base64url:n5,bigint:m5,boolean:Ll,catch:fh,check:I5,cidrv4:WS,cidrv6:e5,codec:C5,cuid:qS,cuid2:BS,custom:U5,date:_5,describe:Z5,discriminatedUnion:$5,e164:r5,email:Rl,emoji:HS,enum:Ia,exactOptional:rh,file:O5,float32:c5,float64:u5,function:Pu,guid:DS,hash:l5,hex:s5,hostname:o5,httpUrl:VS,instanceof:H5,int:Cu,int32:d5,int64:p5,intersection:Kp,invertCodec:D5,ipv4:JS,ipv6:YS,json:q5,jwt:a5,keyof:x5,ksuid:GS,lazy:bh,literal:zd,looseObject:w5,looseRecord:E5,mac:XS,map:T5,meta:V5,nan:R5,nanoid:FS,nativeEnum:M5,never:Md,nonoptional:ch,null:Lp,nullable:pl,nullish:N5,number:Rp,object:Vt,optional:ml,partialRecord:A5,pipe:Du,prefault:lh,preprocess:B5,promise:L5,readonly:gh,record:Jp,refine:Sh,set:j5,strictObject:S5,string:Ce,stringFormat:i5,stringbool:F5,success:z5,superRefine:wh,symbol:g5,templateLiteral:P5,transform:Rd,tuple:Gp,uint32:f5,uint64:h5,ulid:KS,undefined:v5,union:Nd,unknown:Ti,url:ZS,uuid:PS,uuidv4:LS,uuidv6:IS,uuidv7:US,void:b5,xid:QS,xor:k5},Symbol.toStringTag,{value:"Module"})),UO={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function ZO(e){nn({customError:e})}function VO(){return nn().customError}var rm;rm||(rm={});const fe={...IO,...PO,iso:SS},HO=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function FO(e,t){const a=e.$schema;return a==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":a==="http://json-schema.org/draft-07/schema#"?"draft-7":a==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function qO(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");const a=e.slice(1).split("/").filter(Boolean);if(a.length===0)return t.rootSchema;const o=t.version==="draft-2020-12"?"$defs":"definitions";if(a[0]===o){const n=a[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function K5(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return fe.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){const n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return fe.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);const s=qO(n,t),c=ln(s,t);return t.refs.set(n,c),t.processing.delete(n),c}if(e.enum!==void 0){const n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return fe.null();if(n.length===0)return fe.never();if(n.length===1)return fe.literal(n[0]);if(n.every(c=>typeof c=="string"))return fe.enum(n);const s=n.map(c=>fe.literal(c));return s.length<2?s[0]:fe.union([s[0],s[1],...s.slice(2)])}if(e.const!==void 0)return fe.literal(e.const);const a=e.type;if(Array.isArray(a)){const n=a.map(s=>{const c={...e,type:s};return K5(c,t)});return n.length===0?fe.never():n.length===1?n[0]:fe.union(n)}if(!a)return fe.any();let o;switch(a){case"string":{let n=fe.string();if(e.format){const s=e.format;s==="email"?n=n.check(fe.email()):s==="uri"||s==="uri-reference"?n=n.check(fe.url()):s==="uuid"||s==="guid"?n=n.check(fe.uuid()):s==="date-time"?n=n.check(fe.iso.datetime()):s==="date"?n=n.check(fe.iso.date()):s==="time"?n=n.check(fe.iso.time()):s==="duration"?n=n.check(fe.iso.duration()):s==="ipv4"?n=n.check(fe.ipv4()):s==="ipv6"?n=n.check(fe.ipv6()):s==="mac"?n=n.check(fe.mac()):s==="cidr"?n=n.check(fe.cidrv4()):s==="cidr-v6"?n=n.check(fe.cidrv6()):s==="base64"?n=n.check(fe.base64()):s==="base64url"?n=n.check(fe.base64url()):s==="e164"?n=n.check(fe.e164()):s==="jwt"?n=n.check(fe.jwt()):s==="emoji"?n=n.check(fe.emoji()):s==="nanoid"?n=n.check(fe.nanoid()):s==="cuid"?n=n.check(fe.cuid()):s==="cuid2"?n=n.check(fe.cuid2()):s==="ulid"?n=n.check(fe.ulid()):s==="xid"?n=n.check(fe.xid()):s==="ksuid"&&(n=n.check(fe.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),o=n;break}case"number":case"integer":{let n=a==="integer"?fe.number().int():fe.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),o=n;break}case"boolean":{o=fe.boolean();break}case"null":{o=fe.null();break}case"object":{const n={},s=e.properties||{},c=new Set(e.required||[]);for(const[m,p]of Object.entries(s)){const y=ln(p,t);n[m]=c.has(m)?y:y.optional()}if(e.propertyNames){const m=ln(e.propertyNames,t),p=e.additionalProperties&&typeof e.additionalProperties=="object"?ln(e.additionalProperties,t):fe.any();if(Object.keys(n).length===0){o=fe.record(m,p);break}const y=fe.object(n).passthrough(),b=fe.looseRecord(m,p);o=fe.intersection(y,b);break}if(e.patternProperties){const m=e.patternProperties,p=Object.keys(m),y=[];for(const x of p){const _=ln(m[x],t),w=fe.string().regex(new RegExp(x));y.push(fe.looseRecord(w,_))}const b=[];if(Object.keys(n).length>0&&b.push(fe.object(n).passthrough()),b.push(...y),b.length===0)o=fe.object({}).passthrough();else if(b.length===1)o=b[0];else{let x=fe.intersection(b[0],b[1]);for(let _=2;_<b.length;_++)x=fe.intersection(x,b[_]);o=x}break}const d=fe.object(n);e.additionalProperties===!1?o=d.strict():typeof e.additionalProperties=="object"?o=d.catchall(ln(e.additionalProperties,t)):o=d.passthrough();break}case"array":{const n=e.prefixItems,s=e.items;if(n&&Array.isArray(n)){const c=n.map(m=>ln(m,t)),d=s&&typeof s=="object"&&!Array.isArray(s)?ln(s,t):void 0;d?o=fe.tuple(c).rest(d):o=fe.tuple(c),typeof e.minItems=="number"&&(o=o.check(fe.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(fe.maxLength(e.maxItems)))}else if(Array.isArray(s)){const c=s.map(m=>ln(m,t)),d=e.additionalItems&&typeof e.additionalItems=="object"?ln(e.additionalItems,t):void 0;d?o=fe.tuple(c).rest(d):o=fe.tuple(c),typeof e.minItems=="number"&&(o=o.check(fe.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(fe.maxLength(e.maxItems)))}else if(s!==void 0){const c=ln(s,t);let d=fe.array(c);typeof e.minItems=="number"&&(d=d.min(e.minItems)),typeof e.maxItems=="number"&&(d=d.max(e.maxItems)),o=d}else o=fe.array(fe.any());break}default:throw new Error(`Unsupported type: ${a}`)}return o}function ln(e,t){if(typeof e=="boolean")return e?fe.any():fe.never();let a=K5(e,t);const o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){const d=e.anyOf.map(p=>ln(p,t)),m=fe.union(d);a=o?fe.intersection(a,m):m}if(e.oneOf&&Array.isArray(e.oneOf)){const d=e.oneOf.map(p=>ln(p,t)),m=fe.xor(d);a=o?fe.intersection(a,m):m}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)a=o?a:fe.any();else{let d=o?a:ln(e.allOf[0],t);const m=o?0:1;for(let p=m;p<e.allOf.length;p++)d=fe.intersection(d,ln(e.allOf[p],t));a=d}e.nullable===!0&&t.version==="openapi-3.0"&&(a=fe.nullable(a)),e.readOnly===!0&&(a=fe.readonly(a)),e.default!==void 0&&(a=a.default(e.default));const n={},s=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(const d of s)d in e&&(n[d]=e[d]);const c=["contentEncoding","contentMediaType","contentSchema"];for(const d of c)d in e&&(n[d]=e[d]);for(const d of Object.keys(e))HO.has(d)||(n[d]=e[d]);return Object.keys(n).length>0&&t.registry.add(a,n),e.description&&(a=a.describe(e.description)),a}function BO(e,t){if(typeof e=="boolean")return e?fe.any():fe.never();let a;try{a=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}const o=FO(a,t?.defaultTarget),n=a.$defs||a.definitions||{},s={version:o,defs:n,refs:new Map,processing:new Set,rootSchema:a,registry:t?.registry??ar};return ln(a,s)}function KO(e){return Q_(zl,e)}function QO(e){return nx(Dl,e)}function GO(e){return cx(Pl,e)}function JO(e){return dx(Il,e)}function XO(e){return Sx(Od,e)}const YO=Object.freeze(Object.defineProperty({__proto__:null,bigint:JO,boolean:GO,date:XO,number:QO,string:KO},Symbol.toStringTag,{value:"Module"}));nn(U_());const en=Object.freeze(Object.defineProperty({__proto__:null,$brand:tb,$input:q_,$output:F_,NEVER:eb,TimePrecision:J_,ZodAny:Ip,ZodArray:Hp,ZodBase64:$d,ZodBase64URL:Ad,ZodBigInt:Il,ZodBigIntFormat:jd,ZodBoolean:Pl,ZodCIDRv4:wd,ZodCIDRv6:kd,ZodCUID:gd,ZodCUID2:vd,ZodCatch:dh,ZodCodec:Fl,ZodCustom:ql,ZodCustomStringFormat:Vo,ZodDate:Od,ZodDefault:ih,ZodDiscriminatedUnion:qp,ZodE164:Ed,ZodEmail:md,ZodEmoji:pd,ZodEnum:Uo,ZodError:LO,ZodExactOptional:nh,ZodFile:eh,get ZodFirstPartyTypeKind(){return rm},ZodFunction:xh,ZodGUID:fl,ZodIPv4:xd,ZodIPv6:Sd,ZodISODate:Mp,ZodISODateTime:jp,ZodISODuration:Np,ZodISOTime:Op,ZodIntersection:Bp,ZodIssueCode:UO,ZodJWT:Td,ZodKSUID:_d,ZodLazy:yh,ZodLiteral:Wp,ZodMAC:zp,ZodMap:Xp,ZodNaN:mh,ZodNanoID:hd,ZodNever:Zp,ZodNonOptional:Dd,ZodNull:Pp,ZodNullable:ah,ZodNumber:Dl,ZodNumberFormat:zi,ZodObject:Zl,ZodOptional:Cd,ZodPipe:Hl,ZodPrefault:sh,ZodPreprocess:ph,ZodPromise:_h,ZodReadonly:hh,ZodRealError:qn,ZodRecord:Io,ZodSet:Yp,ZodString:zl,ZodStringFormat:mt,ZodSuccess:uh,ZodSymbol:Cp,ZodTemplateLiteral:vh,ZodTransform:th,ZodTuple:Qp,ZodType:ze,ZodULID:yd,ZodURL:Cl,ZodUUID:Mr,ZodUndefined:Dp,ZodUnion:Vl,ZodUnknown:Up,ZodVoid:Vp,ZodXID:bd,ZodXor:Fp,_ZodString:fd,_default:oh,_function:Pu,any:y5,array:Ul,base64:t5,base64url:n5,bigint:m5,boolean:Ll,catch:fh,check:I5,cidrv4:WS,cidrv6:e5,clone:ur,codec:C5,coerce:YO,config:nn,core:DO,cuid:qS,cuid2:BS,custom:U5,date:_5,decode:jS,decodeAsync:OS,describe:Z5,discriminatedUnion:$5,e164:r5,email:Rl,emoji:HS,encode:TS,encodeAsync:MS,endsWith:id,enum:Ia,exactOptional:rh,file:O5,flattenError:Om,float32:c5,float64:u5,formatError:Nm,fromJSONSchema:BO,function:Pu,getErrorMap:VO,globalRegistry:ar,gt:Za,gte:An,guid:DS,hash:l5,hex:s5,hostname:o5,httpUrl:VS,includes:rd,instanceof:H5,int:Cu,int32:d5,int64:p5,intersection:Kp,invertCodec:D5,ipv4:JS,ipv6:YS,iso:SS,json:q5,jwt:a5,keyof:x5,ksuid:GS,lazy:bh,length:Ml,literal:zd,locales:H_,looseObject:w5,looseRecord:E5,lowercase:td,lt:Ua,lte:ir,mac:XS,map:T5,maxLength:jl,maxSize:Zo,meta:V5,mime:od,minLength:Ei,minSize:Va,multipleOf:Co,nan:R5,nanoid:FS,nativeEnum:M5,negative:wp,never:Md,nonnegative:$p,nonoptional:ch,nonpositive:kp,normalize:sd,null:Lp,nullable:pl,nullish:N5,number:Rp,object:Vt,optional:ml,overwrite:oa,parse:kS,parseAsync:$S,partialRecord:A5,pipe:Du,positive:Sp,prefault:lh,preprocess:B5,prettifyError:wb,promise:L5,property:Ap,readonly:gh,record:Jp,refine:Sh,regex:ed,regexes:Fm,registry:tp,safeDecode:zS,safeDecodeAsync:CS,safeEncode:NS,safeEncodeAsync:RS,safeParse:AS,safeParseAsync:ES,set:j5,setErrorMap:ZO,size:Tl,slugify:dd,startsWith:ad,strictObject:S5,string:Ce,stringFormat:i5,stringbool:F5,success:z5,superRefine:wh,symbol:g5,templateLiteral:P5,toJSONSchema:vS,toLowerCase:cd,toUpperCase:ud,transform:Rd,treeifyError:xb,trim:ld,tuple:Gp,uint32:f5,uint64:h5,ulid:KS,undefined:v5,union:Nd,unknown:Ti,uppercase:nd,url:ZS,util:bb,uuid:PS,uuidv4:LS,uuidv6:IS,uuidv7:US,void:b5,xid:QS,xor:k5},Symbol.toStringTag,{value:"Module"}));function ut({title:e,subtitle:t,iconUrl:a,className:o=""}){return v.jsxs("div",{className:o,children:[a&&v.jsx("div",{className:"mb-4 flex justify-center",children:v.jsx("img",{alt:"",className:"h-12 w-12 object-contain",src:a})}),v.jsx("h1",{className:`text-center font-bold text-2xl ${t?"mb-0":"mb-6"}`,children:e}),t&&v.jsx("p",{className:"mb-6 text-center text-base-content/60 text-lg",children:t})]})}const WO={sm:"max-w-[calc(100vw-2rem)] sm:max-w-sm",md:"max-w-[calc(100vw-2rem)] sm:max-w-md",lg:"max-w-[calc(100vw-2rem)] sm:max-w-lg"},eN={default:"bg-primary/10 text-primary",destructive:"bg-error/10 text-error"};function _r({isOpen:e,onClose:t,title:a,description:o,children:n,size:s="md",preventClose:c=!1,icon:d,variant:m="default"}){if(g.useEffect(()=>{if(!e)return;const y=b=>{b.key==="Escape"&&!c&&t()};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[e,c,t]),!e)return null;const p=()=>{c||t()};return v.jsxs("dialog",{className:"modal modal-open",children:[v.jsxs("div",{className:`modal-box max-h-[90vh] sm:max-h-[85vh] ${WO[s]}`,children:[v.jsxs("div",{className:"flex items-start gap-2.5",children:[d&&v.jsx("div",{className:`flex size-8 shrink-0 items-center justify-center rounded-full ${eN[m]}`,children:v.jsx(d,{className:"size-4",weight:"bold"})}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("h3",{className:"font-bold text-base",children:a}),o&&v.jsx("p",{className:"mt-0.5 text-base-content/60 text-xs",children:o})]}),!c&&v.jsx("button",{"aria-label":"Close",className:"btn btn-circle btn-ghost btn-xs shrink-0","data-testid":"modal-close",onClick:t,type:"button",children:v.jsx(_m,{className:"size-3.5"})})]}),n]}),v.jsx("form",{className:"modal-backdrop",method:"dialog",children:v.jsx("button",{onClick:p,type:"button",children:"close"})})]})}function yr({children:e}){return v.jsx("div",{className:"modal-action",children:e})}function tN({isOpen:e,onClose:t,title:a,content:o}){return v.jsx(_r,{isOpen:e,onClose:t,size:"lg",title:a,children:v.jsx("div",{className:"prose prose-sm mt-3 max-h-[55vh] max-w-none overflow-y-auto",dangerouslySetInnerHTML:{__html:o}})})}function Q5({terms:e,control:t,setValue:a,errors:o,disabled:n=!1}){const{t:s}=Ne(),[c,d]=g.useState(null),m=q4({control:t,name:"termsConsents"}),p=_=>{for(const w of e)a(`termsConsents.${w.id}`,_,{shouldValidate:!0})},y=e.every(_=>m?.[_.id]),b=e.some(_=>!_.required),x=o?.termsConsents;return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"space-y-1",children:[e.length>1&&v.jsxs("label",{className:"flex cursor-pointer items-center gap-1.5 py-0.5",children:[v.jsx("input",{checked:y,className:"checkbox checkbox-primary checkbox-xs","data-testid":"terms-checkbox",disabled:n,onChange:_=>p(_.target.checked),type:"checkbox"}),v.jsx("span",{className:"font-medium text-xs",children:s("terms.agreeAll")}),b&&v.jsx("span",{className:"text-base-content/50 text-xs",children:s("terms.agreeAllOptionalIncluded")})]}),e.map(_=>v.jsx(nT,{control:t,name:`termsConsents.${_.id}`,render:({field:w})=>v.jsxs("div",{children:[v.jsxs("label",{className:"flex cursor-pointer items-center gap-1.5 py-0.5",children:[v.jsx("input",{checked:w.value??!1,className:"checkbox checkbox-primary checkbox-xs","data-testid":"terms-checkbox",disabled:n,onChange:$=>w.onChange($.target.checked),type:"checkbox"}),v.jsx("span",{className:"text-xs",children:_.title}),v.jsx("span",{className:`badge badge-xs ${_.required?"badge-error":"badge-ghost"}`,"data-testid":_.required?"terms-badge-required":"terms-badge-optional",children:_.required?s("terms.required"):s("terms.optional")}),_.type==="link"&&v.jsx("button",{className:"link link-primary ml-auto text-xs",onClick:$=>{$.preventDefault(),$.stopPropagation(),window.open(_.content,"_blank","noopener,noreferrer")},type:"button",children:s("terms.view")}),_.type==="text"&&v.jsx("button",{className:"link link-primary ml-auto text-xs",onClick:$=>{$.preventDefault(),$.stopPropagation(),d(_)},type:"button",children:s("terms.view")})]}),_.userConsent?.requiresUpdate&&v.jsx("p",{className:"ml-5 text-warning text-xs",children:s("terms.versionUpdated")}),x?.[_.id]&&v.jsx("p",{className:"ml-5 text-error text-xs","data-testid":"terms-field-error",children:x[_.id]?.message})]})},_.id))]}),v.jsx(tN,{content:c?.content??"",isOpen:c!==null,onClose:()=>d(null),title:c?.title??""})]})}function tn({type:e,icon:t,children:a,className:o=""}){return v.jsxs("div",{className:`alert alert-${e} ${o}`,"data-testid":`alert-${e}`,children:[v.jsx(t,{className:"size-5",weight:"fill"}),v.jsx("span",{children:a})]})}function nN({themeMode:e,isAutoMode:t,detectedTheme:a,darkTheme:o,onCycle:n,className:s="fixed start-3 top-3 z-50 sm:absolute sm:start-4 sm:top-4"}){const{t:c}=Ne(),d=()=>e==="system"||t?v.jsx(b4,{className:"size-4",weight:"fill"}):e==="light"?v.jsx(N4,{className:"size-4",weight:"fill"}):v.jsx(j4,{className:"size-4",weight:"fill"}),m=()=>{if(e==="system"||t){const p=c(a===o?"common.theme.dark":"common.theme.light");return`${c("common.theme.auto")} (${p})`}return c(e==="light"?"common.theme.light":"common.theme.dark")};return v.jsx("div",{className:`tooltip tooltip-right ${s}`,"data-tip":m(),children:v.jsx("button",{"aria-label":c("common.theme.select"),className:"btn btn-circle btn-sm","data-testid":"theme-toggle",onClick:n,type:"button",children:d()})})}function rN(e){const t=a=>{a.key===sl&&e()};return window.addEventListener("storage",t),window.addEventListener("language-storage-change",e),()=>{window.removeEventListener("storage",t),window.removeEventListener("language-storage-change",e)}}function h8(){return localStorage.getItem(sl)}function g8(){window.dispatchEvent(new Event("language-storage-change"))}function aN(){const{i18n:e}=Ne(),{data:t}=It(We),a=t.i18n.supported_languages,o=g4(a),s=g.useSyncExternalStore(rN,h8,h8)===null,c=v4(o,t.i18n.fallback_language),d=g.useCallback(p=>{o.includes(p)&&(e.changeLanguage(p),localStorage.setItem(sl,p),g8())},[o,e]),m=g.useCallback(()=>{localStorage.removeItem(sl),g8(),e.changeLanguage(c)},[c,e]);return{language:e.language,languages:o,setLanguage:d,setAutoLanguage:m,isAutoMode:s,detectedLanguage:c,showLanguageSelector:o.length>1}}function iN({className:e=""}){const{t}=Ne(),{language:a,languages:o,setLanguage:n,setAutoLanguage:s,isAutoMode:c,detectedLanguage:d,showLanguageSelector:m}=aN();if(!m)return null;const p=M6[d]||d,y=`${t("common.language.auto")} (${p})`,b=_=>{const w=_.target.value;w==="auto"?s():n(w)},x=c?"auto":a;return v.jsx("div",{className:e,children:v.jsxs("select",{"aria-label":t("common.language.select"),className:"select select-ghost select-sm text-base-content/60","data-testid":"language-selector",onChange:b,value:x,children:[v.jsx("option",{value:"auto",children:y}),o.map(_=>v.jsx("option",{value:_,children:M6[_]||_},_))]})})}const oN={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl",100:"max-w-100"};function st({children:e,maxWidth:t="100",cardPadding:a=!1,responsivePadding:o=!1}){const{themeMode:n,darkTheme:s,canToggleTheme:c,cycleThemeMode:d,isAutoMode:m,detectedTheme:p}=L4(),{data:y}=It(We),b=y.branding.background_url,x=o?"p-4 md:p-8":"p-4",_=`${oN[t]}${a?" p-10":""}`;return v.jsxs("div",{className:`relative flex min-h-screen flex-col bg-base-200 bg-cover ${x}`,style:b?{backgroundImage:`url(${b})`}:void 0,children:[c&&v.jsx(nN,{className:"fixed start-3 top-3 z-50 sm:absolute sm:start-4 sm:top-4",darkTheme:s,detectedTheme:p,isAutoMode:m,onCycle:d,themeMode:n}),v.jsx("div",{className:"flex flex-1 items-center justify-center",children:v.jsx("div",{className:`card w-full border border-base-200 bg-base-100 shadow-lg ${_}`,children:e})}),v.jsx(iN,{className:"mx-auto mt-4 pb-2"})]})}const xr=Vt({client_id:Ce().optional(),redirect_uri:Ce().optional(),response_type:Ce().optional(),scope:Ce().optional(),state:Ce().optional(),nonce:Ce().optional(),code_challenge:Ce().optional(),code_challenge_method:Ia(["S256","plain"]).optional(),prompt:Ia(["none","login","consent","select_account"]).optional(),max_age:Ce().optional(),display:Ia(["page","popup","touch","wap"]).optional(),lang:Ce().optional()});function br(e){return!!(e.client_id&&e.redirect_uri)}function sr(e){const t=new URL("/oauth/authorize",window.location.origin);return e.client_id&&t.searchParams.set("client_id",e.client_id),e.redirect_uri&&t.searchParams.set("redirect_uri",e.redirect_uri),e.response_type&&t.searchParams.set("response_type",e.response_type),e.scope&&t.searchParams.set("scope",e.scope),e.state&&t.searchParams.set("state",e.state),e.nonce&&t.searchParams.set("nonce",e.nonce),e.code_challenge&&t.searchParams.set("code_challenge",e.code_challenge),e.code_challenge_method&&t.searchParams.set("code_challenge_method",e.code_challenge_method),e.prompt&&t.searchParams.set("prompt",e.prompt),e.max_age&&t.searchParams.set("max_age",e.max_age),e.display&&t.searchParams.set("display",e.display),t.toString()}function Je(e){return Object.fromEntries(Object.entries(e).filter(([t,a])=>a!==void 0))}const vn=()=>new Promise(e=>setTimeout(e,0)),Le={queryKey:ia.session(),queryFn:async()=>{const e=await Be.api.user.session.$get();return Ke(e)}},Pd=e=>({queryKey:ia.terms(e),queryFn:async()=>{const t=await Be.api.terms.$get({query:{lang:e??"en"}});return Ke(t)}}),sN={mutationFn:async e=>{const t=await Be.api.terms.consent.$post({json:e});return Ke(t)}},lN=xr.extend({redirect:Ce().optional(),lang:Ce().optional(),mode:Ia(["normal","complete_registration"]).optional(),registration_token:Ce().optional()});function cN(e){return v.jsx(cr,{...e,onUnauthorized:()=>{window.location.href="/login"}})}const G5=Kt("/terms/")({component:uN,errorComponent:cN,validateSearch:lN,beforeLoad:async({context:e,search:t})=>{if(t.mode!=="complete_registration"&&!e.user)throw ra({to:"/login"})},loaderDeps:({search:e})=>({lang:e.lang}),loader:async({context:e,deps:t})=>{const a=t.lang??e.i18n.language;await Promise.all([e.queryClient.ensureQueryData(Pd(a)),e.queryClient.ensureQueryData(We)])}});function uN(){const{t:e,i18n:t}=Ne(),a=$t(),o=xt(),n=G5.useSearch(),{data:s}=It(We),c=n.lang??t.language,d=It(Pd(c)),m=s.registration.signup_notice?.[c]??s.registration.signup_notice?.[s.i18n.fallback_language],p=g.useMemo(()=>d.data.terms.filter(N=>N.consentMode==="explicit"),[d.data.terms]),y=g.useMemo(()=>d.data.terms.filter(N=>N.consentMode==="implicit"),[d.data.terms]),b=p.length>0,x=g.useMemo(()=>Vt({termsConsents:Vt(Object.fromEntries(p.map(N=>[N.id,N.required?zd(!0,{message:e("validation.terms.required")}):Ll()])))}),[e,p]),{handleSubmit:_,control:w,setValue:$,formState:{errors:A}}=rn({defaultValues:{termsConsents:Object.fromEntries(p.map(N=>[N.id,!!(N.userConsent?.agreed&&!N.userConsent.requiresUpdate)]))},resolver:an(x),mode:"onChange"}),E=dt({...sN,onSuccess:async()=>{await o.invalidateQueries({queryKey:Le.queryKey}),await o.fetchQuery(Le),await vn(),n.redirect?window.location.href=n.redirect:a.navigate({to:"/profile"})}}),T=N=>{const M=Object.entries(N.termsConsents).map(([K,L])=>({termsId:K,agreed:L,consentType:"explicit"})),U=y.map(K=>({termsId:K.id,agreed:!0,consentType:"implicit"}));E.mutate({consents:[...M,...U],...n.registration_token&&{registrationToken:n.registration_token}})};return v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{title:e("terms.title")}),m&&v.jsx("div",{className:"text-center text-base-content/60 text-xs",children:v.jsx("div",{className:"prose prose-sm text-xs! **:text-xs!",dangerouslySetInnerHTML:{__html:m}})}),m&&b&&v.jsx("div",{className:"divider text-xs",children:"AND"}),v.jsxs("form",{onSubmit:_(T),children:[b&&v.jsx("div",{className:"mb-6",children:v.jsx(Q5,{control:w,disabled:E.isPending,errors:A,setValue:$,terms:p})}),E.isError&&v.jsx(tn,{className:"mb-4",icon:vl,type:"error",children:e("terms.error.submitFailed")}),v.jsx("button",{className:"btn btn-primary btn-block h-10 font-semibold text-[14px]",disabled:E.isPending,type:"submit",children:E.isPending?v.jsx("span",{className:"loading loading-spinner loading-sm"}):v.jsxs(v.Fragment,{children:[v.jsx(ym,{className:"size-4",weight:"bold"}),e("terms.submit")]})})]})]})}function Tn({as:e,text:t,linkText:a,className:o="",...n}){return v.jsxs("div",{className:`mt-6 text-center text-base-content/70 text-xs ${o}`,children:[t," ",g.createElement(e,{className:"link link-info font-medium",...n},a)]})}const na=({icon:e,type:t="text",placeholder:a,autoComplete:o,error:n,className:s="",ref:c,...d})=>v.jsxs("div",{className:s,children:[v.jsxs("label",{className:`input input-bordered flex items-center gap-2 ${n?"input-error":""}`,"data-testid":n?"input-error-wrapper":void 0,children:[v.jsx(e,{className:"size-5 opacity-70"}),v.jsx("input",{autoComplete:o,className:"grow",placeholder:a,ref:c,type:t,...d})]}),n&&v.jsx("p",{className:"mt-1 text-error text-sm","data-testid":"field-error",children:n.message})]});function sa({isPending:e,pendingText:t,children:a,className:o="",disabled:n=!1}){return v.jsx("button",{className:`btn btn-block h-10 font-semibold text-[14px] ${o}`,disabled:e||n,type:"submit",children:e?v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"loading loading-spinner loading-sm"}),t]}):a})}const dN={mutationFn:async e=>{const t=await Be.api.auth.register.$post({json:e,header:{}});return Ke(t)}},J5=Kt("/register/")({component:fN,errorComponent:cr,validateSearch:xr,beforeLoad:async({context:e})=>{if(!(await e.queryClient.ensureQueryData(We)).registration.public_registration)throw ra({to:"/",replace:!0})},loaderDeps:({search:e})=>({lang:e.lang}),loader:async({context:e,deps:t})=>{const a=t.lang??e.i18n.language;await Promise.all([e.queryClient.ensureQueryData(We),e.queryClient.ensureQueryData(Pd(a))])}});function fN(){const{t:e,i18n:t}=Ne(),a=gl(),o=xt(),n=J5.useSearch(),s=n.lang??t.language,c=g.useDeferredValue(s),{data:d}=It(We),{data:m}=It(Pd(c)),p=d.auth.password.enabled,y=d.auth.password.policy,b=m.terms.length>0,x=g.useMemo(()=>m.terms.filter(B=>B.consentMode==="explicit"),[m.terms]),_=x.length>0,w=d.registration.signup_notice?.[s]??d.registration.signup_notice?.[d.i18n.fallback_language],$=g.useMemo(()=>Vt({email:Rl(e("validation.email.invalid")),password:Ce().min(y.min_length,e("validation.password.min",{count:y.min_length})).max(y.max_length,e("validation.password.max",{count:y.max_length})),termsConsents:Vt(Object.fromEntries(x.map(B=>[B.id,B.required?zd(!0,{message:e("validation.terms.required")}):Ll()])))}),[x,y.max_length,y.min_length,e]),A=dt({...dN,onSuccess:async(B,H)=>{const ne=B.user;if(ne.email_verification_required&&!ne.email_verified)return a({to:"/verify/email",search:{email:H.email,...Je(n)}});if(o.setQueryData(Le.queryKey,{user:ne}),await vn(),ne.second_factor_required){const ie=[];return d.auth.password.totp.enabled&&ie.push("totp"),d.auth.passkey.enabled&&ie.push("passkey"),ie.length===1?ie[0]==="totp"?a({to:"/setup/totp",search:Je(n)}):a({to:"/setup/passkey",search:{...Je(n),passkey_name:"default"}}):a({to:"/setup/2fa",search:Je(n)})}br(n)?window.location.href=sr(n):a({to:"/profile"})},onError:B=>{B instanceof Bt?B.code==="REGISTRATION_EMAIL_NOT_ALLOWED"?T("email",{type:"manual",message:e("register.error.emailNotAllowed")}):B.code==="REGISTRATION_DISABLED"?T("email",{type:"manual",message:e("register.error.registrationDisabled")}):T("email",{type:"manual",message:e("register.error.emailExists")}):T("email",{type:"manual",message:e("register.error.emailExists")})},onSettled:async()=>{await o.invalidateQueries({queryKey:Le.queryKey})}}),{register:E,setError:T,handleSubmit:N,control:M,setValue:U,formState:{errors:K}}=rn({defaultValues:{email:"",password:"",termsConsents:Object.fromEntries(x.map(B=>[B.id,!1]))},resolver:an($),mode:"onChange"}),L=B=>{const H=b?x.map(ne=>({termsId:ne.id,agreed:B.termsConsents[ne.id]??!1})):void 0;A.mutate({email:B.email,password:B.password,consents:H})};return v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("register.subtitle"),title:e("register.title")}),p&&v.jsxs("form",{className:"flex flex-col gap-4",onSubmit:N(L),children:[v.jsx(na,{autoComplete:"email",error:K.email,icon:$i,placeholder:e("register.email.placeholder"),...E("email"),type:"email"}),v.jsx(na,{autoComplete:"new-password",error:K.password,icon:qu,placeholder:e("register.password.placeholder"),...E("password"),type:"password"}),v.jsxs("div",{className:"flex flex-col",children:[w&&v.jsx("div",{className:"text-center text-base-content/60 text-xs",children:v.jsx("div",{className:"prose prose-sm text-xs! **:text-xs!",dangerouslySetInnerHTML:{__html:w},"data-testid":"terms-implicit-notice"})}),w&&_&&v.jsx("div",{className:"divider text-xs",children:"AND"}),b&&_&&v.jsx(Q5,{control:M,disabled:A.isPending,errors:K,setValue:U,terms:x})]}),v.jsx(sa,{className:"mt-6",isPending:A.isPending,pendingText:e("register.submitting"),children:e("register.submit")})]}),v.jsx(Tn,{as:vt,linkText:e("register.link.login"),search:Je(n),text:e("register.footer.haveAccount"),to:"/login"})]})}function mN({isConfigManaged:e,isDeletionEnabled:t,onDeleteClick:a}){const{t:o}=Ne();return t?v.jsxs("div",{className:"rounded-xl border border-base-200 border-l-4 border-l-error/60",children:[v.jsxs("div",{className:"border-base-200 border-b px-4 py-3",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(vl,{className:"size-4 text-error",weight:"fill"}),v.jsx("h2",{className:"font-semibold text-error text-sm",children:o("profile.dangerZone.title")})]}),v.jsx("p",{className:"mt-0.5 text-base-content/60 text-xs",children:o("profile.dangerZone.description")})]}),v.jsx("div",{className:"px-4 py-3",children:v.jsxs("div",{className:"flex items-center justify-between gap-4",children:[v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("p",{className:"font-medium text-sm",children:o("profile.deleteAccount.title")}),v.jsx("p",{className:"text-base-content/60 text-xs",children:o(e?"profile.deleteAccount.configManaged":"profile.deleteAccount.description")})]}),v.jsxs("button",{className:"btn btn-error btn-outline btn-sm gap-2","data-testid":"profile-delete-account",disabled:e,onClick:a,type:"button",children:[v.jsx(cl,{className:"size-4",weight:"bold"}),o("profile.deleteAccount.button")]})]})})]}):null}function pN({providers:e,unlinkingProvider:t,getAuthorizeUrl:a,onUnlinkRequest:o}){const{t:n}=Ne();return e.length===0?null:v.jsxs("div",{className:"rounded-xl border border-base-200",children:[v.jsxs("div",{className:"border-base-200 border-b px-4 py-3",children:[v.jsx("h2",{className:"font-semibold text-sm",children:n("profile.linkedAccounts.title")}),v.jsx("p",{className:"text-base-content/60 text-xs",children:n("profile.linkedAccounts.description")})]}),v.jsx("div",{className:"divide-y divide-base-200",children:e.map(s=>v.jsxs("div",{className:"flex items-center justify-between p-4",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("div",{className:`flex size-9 shrink-0 items-center justify-center rounded-lg ${s.linked?"bg-success/10":"bg-base-200"}`,children:v.jsx(bm,{className:`size-4 ${s.linked?"text-success":"text-base-content/50"}`,weight:"regular"})}),v.jsxs("div",{children:[v.jsx("div",{className:"font-medium text-sm",children:s.display_name}),v.jsx("div",{className:"text-base-content/60 text-xs",children:s.linked?n("profile.linkedAccounts.connected"):n("profile.linkedAccounts.notConnected")})]})]}),s.linked?v.jsx("button",{className:"btn btn-ghost btn-xs text-error",disabled:t===s.id,onClick:()=>o(s),type:"button",children:t===s.id?v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"loading loading-spinner loading-xs"}),n("profile.linkedAccounts.unlinking")]}):n("profile.linkedAccounts.unlink")}):v.jsx("a",{className:"btn btn-ghost btn-xs text-primary",href:a(s.id,"link","/profile"),children:n("profile.linkedAccounts.link")})]},s.id))})]})}function hN({passkeyCount:e,onOpenModal:t}){const{t:a}=Ne();return v.jsxs("div",{className:"flex items-center justify-between p-4",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("div",{className:`flex size-9 shrink-0 items-center justify-center rounded-lg ${e>0?"bg-success/10":"bg-base-200"}`,children:v.jsx(Or,{className:`size-4 ${e>0?"text-success":"text-base-content/50"}`,weight:"regular"})}),v.jsxs("div",{children:[v.jsx("div",{className:"font-medium text-sm",children:a("profile.passkey.title")}),v.jsx("div",{className:"text-base-content/60 text-xs",children:e>0?a("profile.passkey.status.enabled",{count:e}):a("profile.passkey.status.disabled")})]})]}),v.jsx("div",{className:"flex gap-1",children:e>0?v.jsx("button",{className:"btn btn-ghost btn-xs text-primary",onClick:()=>t("manage"),type:"button",children:a("profile.passkey.manage")}):v.jsx("button",{className:"btn btn-ghost btn-xs text-primary",onClick:()=>t("setup"),type:"button",children:a("profile.passkey.add")})})]})}function gN({hasPassword:e,hasLinkedOAuth:t,isConfigManaged:a,hasSecondFactorOnly:o,onOpenModal:n}){const{t:s}=Ne();return v.jsxs("div",{className:"flex items-center justify-between gap-4 p-4",children:[v.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[v.jsx("div",{className:`flex size-9 shrink-0 items-center justify-center rounded-lg ${e?"bg-success/10":"bg-base-200"}`,children:v.jsx(Oi,{className:`size-4 ${e?"text-success":"text-base-content/50"}`,weight:"regular"})}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("div",{className:"font-medium text-sm",children:s("profile.password.title")}),v.jsx("div",{className:"text-base-content/60 text-xs",children:s(e?"profile.password.status.set":"profile.password.status.notSet")}),a&&v.jsxs("div",{className:"mt-0.5 flex items-center gap-1 text-base-content/40 text-xs",children:[v.jsx(w4,{className:"size-3 shrink-0",weight:"fill"}),v.jsx("span",{children:s("profile.password.configManaged")})]})]})]}),!a&&v.jsx("div",{className:"flex shrink-0 items-center gap-1",children:e?v.jsxs(v.Fragment,{children:[v.jsx("button",{className:"btn btn-ghost btn-xs text-primary","data-testid":"profile-password-change",onClick:()=>n("change"),type:"button",children:s("profile.password.change")}),t?v.jsx("button",{className:"btn btn-ghost btn-xs text-error","data-testid":"profile-password-remove",onClick:()=>n("remove"),type:"button",children:s("profile.password.remove")}):null,!t&&o&&v.jsxs("div",{className:"dropdown dropdown-end",children:[v.jsx("button",{className:"btn btn-disabled btn-ghost btn-xs cursor-not-allowed text-base-content/30",type:"button",children:s("profile.password.remove")}),v.jsx("div",{className:"dropdown-content z-50 w-64 rounded-xl border border-base-200 bg-base-100 p-4 shadow-lg",children:v.jsxs("div",{className:"flex items-start gap-2",children:[v.jsx(Fu,{className:"size-4 shrink-0 text-warning"}),v.jsx("div",{className:"text-xs",children:s("profile.password.removeDisabledReason")})]})})]})]}):v.jsx("button",{className:"btn btn-ghost btn-xs text-primary","data-testid":"profile-password-set",onClick:()=>n("set"),type:"button",children:s("profile.password.set")})})]})}function vN({totpEnabled:e,recoveryCodesMissing:t,onOpenModal:a}){const{t:o}=Ne();return v.jsxs("div",{className:"flex items-center justify-between p-4",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("div",{className:`flex size-9 shrink-0 items-center justify-center rounded-lg ${e?"bg-success/10":"bg-base-200"}`,children:v.jsx(or,{className:`size-4 ${e?"text-success":"text-base-content/50"}`,weight:"regular"})}),v.jsxs("div",{children:[v.jsx("div",{className:"font-medium text-sm",children:o("profile.totp.title")}),v.jsx("div",{className:"text-base-content/60 text-xs",children:o(e?t?"profile.totp.status.recoveryCodesMissing":"profile.totp.status.enabled":"profile.totp.status.disabled")})]})]}),v.jsx("div",{className:"flex flex-wrap justify-end gap-1",children:e?v.jsxs(v.Fragment,{children:[v.jsx("button",{className:"btn btn-ghost btn-xs text-primary","data-testid":"profile-totp-regenerate",onClick:()=>a("regenerate"),type:"button",children:o("profile.totp.regenerate")}),v.jsx("button",{className:"btn btn-ghost btn-xs text-error","data-testid":"profile-totp-disable",onClick:()=>a("disable"),type:"button",children:o("profile.totp.disable")})]}):v.jsx("button",{className:"btn btn-ghost btn-xs text-primary","data-testid":"profile-totp-enable",onClick:()=>a("setup"),type:"button",children:o("profile.totp.enable")})})]})}const yN={error:"bg-error/10 text-error",warning:"bg-warning/10 text-warning",info:"bg-info/10 text-info"},bN={error:Vn,warning:vl,info:Fu};function lr({variant:e,children:t}){const a=bN[e];return v.jsxs("div",{className:`flex items-start gap-3 rounded-lg p-3 ${yN[e]}`,"data-testid":`alert-banner-${e}`,children:[v.jsx(a,{className:"mt-0.5 size-5 shrink-0",weight:"fill"}),v.jsx("div",{className:"min-w-0 flex-1 text-sm",children:t})]})}function _N({isOpen:e,onClose:t,providerName:a,isPending:o,onConfirm:n}){const{t:s}=Ne(),[c,d]=g.useState(null),m=()=>{o||(d(null),t())},p=async()=>{d(null);try{await n(),m()}catch{d(s("profile.linkedAccounts.unlinkError"))}};return v.jsx(_r,{description:s("profile.linkedAccounts.unlinkModal.description",{provider:a}),icon:E4,isOpen:e,onClose:m,preventClose:o,title:s("profile.linkedAccounts.unlinkModal.title"),variant:"destructive",children:v.jsxs("div",{className:"mt-4 space-y-3",children:[v.jsx(lr,{variant:"warning",children:s("profile.linkedAccounts.unlinkModal.warning",{provider:a})}),c&&v.jsx(lr,{variant:"error",children:c}),v.jsxs(yr,{children:[v.jsx("button",{className:"btn btn-sm","data-testid":"unlink-oauth-cancel",disabled:o,onClick:m,type:"button",children:s("profile.linkedAccounts.unlinkModal.cancel")}),v.jsx("button",{className:"btn btn-sm btn-error","data-testid":"unlink-oauth-unlink",disabled:o,onClick:p,type:"button",children:o?v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"loading loading-spinner loading-xs"}),s("profile.linkedAccounts.unlinking")]}):s("profile.linkedAccounts.unlink")})]})]})})}function xN({user:e}){const{t}=Ne();return v.jsxs("div",{className:"rounded-xl border border-base-200",children:[v.jsxs("div",{className:"border-base-200 border-b px-4 py-3",children:[v.jsx("h2",{className:"font-semibold text-sm",children:t("profile.account.title")}),v.jsx("p",{className:"text-base-content/60 text-xs",children:t("profile.account.description")})]}),v.jsxs("div",{className:"divide-y divide-base-200",children:[v.jsxs("div",{className:"flex items-center justify-between gap-4 px-4 py-3",children:[v.jsx("span",{className:"shrink-0 text-base-content/60 text-xs",children:t("profile.id.label")}),v.jsx("span",{className:"truncate font-medium text-sm",children:e.sub})]}),v.jsxs("div",{className:"flex items-center justify-between gap-4 px-4 py-3",children:[v.jsx("span",{className:"shrink-0 text-base-content/60 text-xs",children:t("profile.email.label")}),v.jsx("span",{className:"truncate font-medium text-sm",children:e.email})]})]})]})}const SN={sm:"size-8 text-sm",md:"size-12 text-xl",lg:"size-16 text-2xl"};function wN({email:e,size:t="md"}){const a=e.charAt(0).toUpperCase();return v.jsx("div",{className:`flex shrink-0 items-center justify-center rounded-full bg-primary font-bold text-primary-content ${SN[t]}`,children:a})}const kN={mutationFn:async e=>{const t=await Be.api.user.password.$post({json:e});return Ke(t)}},$N={mutationFn:async e=>{const t=await Be.api.user.password.$put({json:e});return Ke(t)}},AN={mutationFn:async e=>{const t=await Be.api.user.password.$delete({json:e});return Ke(t)}};function EN({isOpen:e,onClose:t}){const{t:a}=Ne(),o=xt(),{data:n}=It(We),s=n.auth.password.policy,c=g.useMemo(()=>en.object({currentPassword:en.string().min(1,a("validation.password.required")),newPassword:en.string().min(s.min_length,a("validation.password.min",{count:s.min_length})).max(s.max_length,a("validation.password.max",{count:s.max_length})),confirmPassword:en.string()}).refine(b=>b.newPassword===b.confirmPassword,{message:a("validation.confirmPassword.mismatch"),path:["confirmPassword"]}),[s.max_length,s.min_length,a]),d=rn({resolver:an(c),defaultValues:{currentPassword:"",newPassword:"",confirmPassword:""}}),m=dt({...$N,onSuccess:()=>{o.invalidateQueries({queryKey:Le.queryKey}),p()}}),p=()=>{d.reset(),t()},y=d.handleSubmit(async b=>{try{await m.mutateAsync({current_password:b.currentPassword,new_password:b.newPassword})}catch(x){x instanceof Bt&&x.code==="INVALID_CURRENT_PASSWORD"?d.setError("currentPassword",{message:a("profile.password.changeModal.invalidCurrent")}):d.setError("root",{message:a("profile.password.changeModal.error")})}});return v.jsx(_r,{description:a("profile.password.changeModal.description"),icon:Oi,isOpen:e,onClose:p,title:a("profile.password.changeModal.title"),children:v.jsxs("form",{className:"mt-4 space-y-3",onSubmit:y,children:[v.jsxs("div",{className:"form-control",children:[v.jsx("label",{className:"label w-full",htmlFor:"current-password",children:v.jsx("span",{className:"label-text text-xs",children:a("profile.password.changeModal.currentPassword")})}),v.jsx("input",{className:`input input-bordered input-sm w-full ${d.formState.errors.currentPassword?"input-error":""}`,id:"current-password",placeholder:a("profile.password.changeModal.currentPasswordPlaceholder"),type:"password",...d.register("currentPassword")}),d.formState.errors.currentPassword&&v.jsx("span",{className:"label-text-alt mt-0.5 text-error","data-testid":"change-password-error-currentPassword",children:d.formState.errors.currentPassword.message})]}),v.jsxs("div",{className:"form-control",children:[v.jsx("label",{className:"label w-full",htmlFor:"new-password-change",children:v.jsx("span",{className:"label-text text-xs",children:a("profile.password.changeModal.newPassword")})}),v.jsx("input",{className:`input input-bordered input-sm w-full ${d.formState.errors.newPassword?"input-error":""}`,id:"new-password-change",placeholder:a("profile.password.changeModal.newPasswordPlaceholder"),type:"password",...d.register("newPassword")}),d.formState.errors.newPassword&&v.jsx("span",{className:"label-text-alt mt-0.5 text-error","data-testid":"change-password-error-newPassword",children:d.formState.errors.newPassword.message})]}),v.jsxs("div",{className:"form-control",children:[v.jsx("label",{className:"label w-full",htmlFor:"confirm-password-change",children:v.jsx("span",{className:"label-text text-xs",children:a("profile.password.changeModal.confirmPassword")})}),v.jsx("input",{className:`input input-bordered input-sm w-full ${d.formState.errors.confirmPassword?"input-error":""}`,id:"confirm-password-change",placeholder:a("profile.password.changeModal.confirmPasswordPlaceholder"),type:"password",...d.register("confirmPassword")}),d.formState.errors.confirmPassword&&v.jsx("span",{className:"label-text-alt mt-0.5 text-error","data-testid":"change-password-error-confirmPassword",children:d.formState.errors.confirmPassword.message})]}),d.formState.errors.root&&v.jsx(lr,{variant:"error",children:d.formState.errors.root.message}),v.jsxs(yr,{children:[v.jsx("button",{className:"btn btn-sm","data-testid":"change-password-cancel",disabled:m.isPending,onClick:p,type:"button",children:a("profile.password.changeModal.cancel")}),v.jsx("button",{className:"btn btn-sm btn-primary","data-testid":"change-password-submit",disabled:m.isPending,type:"submit",children:m.isPending?v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"loading loading-spinner loading-xs"}),a("profile.password.changeModal.submitting")]}):a("profile.password.changeModal.submit")})]})]})})}const TN={mutationFn:async()=>{const e=await Be.api.user.$delete();return Ke(e)}};function jN({isOpen:e,onClose:t,retentionDays:a}){const{t:o}=Ne(),n=$t(),s=xt(),c=g.useMemo(()=>en.object({confirmation:en.string().refine(b=>b.toLowerCase()===o("profile.deleteAccount.modal.confirmPlaceholder").toLowerCase(),{message:o("validation.confirmText.mismatch")})}),[o]),d=rn({resolver:an(c),defaultValues:{confirmation:""}}),m=dt({...TN,onSuccess:async()=>{s.setQueryData(Le.queryKey,{user:null}),await vn(),n.navigate({to:"/login"})}}),p=()=>{m.isPending||(d.reset(),t())},y=d.handleSubmit(async()=>{try{await m.mutateAsync()}catch{d.setError("root",{message:o("profile.deleteAccount.error")})}});return v.jsx(_r,{icon:cl,isOpen:e,onClose:p,preventClose:m.isPending,title:o("profile.deleteAccount.modal.title"),variant:"destructive",children:v.jsxs("form",{className:"mt-4 space-y-3",onSubmit:y,children:[v.jsxs(lr,{variant:"error",children:[v.jsx("p",{children:o("profile.deleteAccount.modal.description",{days:a})}),v.jsx("p",{className:"mt-0.5 text-xs opacity-80",children:o("profile.deleteAccount.modal.warning")})]}),v.jsxs("div",{className:"form-control",children:[v.jsx("label",{className:"label w-full",htmlFor:"delete-confirmation",children:v.jsx("span",{className:"label-text text-xs",children:o("profile.deleteAccount.modal.confirmLabel")})}),v.jsx("input",{className:`input input-bordered input-sm w-full ${d.formState.errors.confirmation?"input-error":""}`,id:"delete-confirmation",placeholder:o("profile.deleteAccount.modal.confirmPlaceholder"),type:"text",...d.register("confirmation"),autoComplete:"off"}),d.formState.errors.confirmation&&v.jsx("span",{className:"label-text-alt mt-0.5 text-error","data-testid":"delete-account-error",children:d.formState.errors.confirmation.message})]}),d.formState.errors.root&&v.jsx(lr,{variant:"error",children:d.formState.errors.root.message}),v.jsxs(yr,{children:[v.jsx("button",{className:"btn btn-sm","data-testid":"delete-account-cancel",disabled:m.isPending,onClick:p,type:"button",children:o("profile.deleteAccount.modal.cancel")}),v.jsx("button",{className:"btn btn-sm btn-error","data-testid":"delete-account-submit",disabled:m.isPending,type:"submit",children:m.isPending?v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"loading loading-spinner loading-xs"}),o("profile.deleteAccount.modal.confirming")]}):o("profile.deleteAccount.modal.confirm")})]})]})})}const MN={mutationFn:async()=>{const e=await Be.api.user.totp.setup.$post();return Ke(e)}},ON={mutationFn:async e=>{const t=await Be.api.user.totp.verify.$post({json:e});return Ke(t)}},NN={mutationFn:async()=>{const e=await Be.api.user.totp.confirm.$post({json:{}});return Ke(e)}},zN={mutationFn:async e=>{const t=await Be.api.user.totp.$delete({json:e});return Ke(t)}},RN={mutationFn:async e=>{const t=await Be.api.user.totp.recovery.regenerate.$post({json:e});return Ke(t)}},CN={mutationFn:async e=>{const t=await Be.api.auth.totp.verify.$post({json:e});return Ke(t)}},DN={mutationFn:async e=>{const t=await Be.api.auth.totp.recovery.verify.$post({json:e});return Ke(t)}};function PN({isOpen:e,onClose:t}){const{t:a}=Ne(),o=xt(),n=g.useMemo(()=>en.object({code:en.string().length(6,a("validation.totp.length")).regex(/^\d{6}$/,a("validation.totp.digits"))}),[a]),s=rn({resolver:an(n),defaultValues:{code:""}}),c=dt({...zN,onSuccess:()=>{o.invalidateQueries({queryKey:Le.queryKey}),d()}}),d=()=>{s.reset(),t()},m=s.handleSubmit(async p=>{try{await c.mutateAsync({code:p.code})}catch(y){if(y instanceof Bt&&y.code==="CANNOT_REMOVE_LAST_SECOND_FACTOR"){s.setError("code",{message:a("profile.totp.disableModal.cannotRemoveLastSecondFactor")});return}s.setError("code",{message:a("profile.totp.disableModal.error")})}});return v.jsx(_r,{description:a("profile.totp.disableModal.description"),icon:or,isOpen:e,onClose:d,title:a("profile.totp.disableModal.title"),variant:"destructive",children:v.jsxs("form",{className:"mt-4 space-y-3",onSubmit:m,children:[v.jsx(lr,{variant:"warning",children:a("profile.totp.disableModal.warning")}),v.jsxs("div",{className:"form-control",children:[v.jsx("label",{className:"label w-full",htmlFor:"disable-totp-code",children:v.jsx("span",{className:"label-text text-xs",children:a("profile.totp.disableModal.codeLabel")})}),v.jsx("input",{autoComplete:"one-time-code",className:`input input-bordered input-sm w-full text-center text-xl tracking-widest ${s.formState.errors.code?"input-error":""}`,id:"disable-totp-code",inputMode:"numeric",maxLength:6,pattern:"[0-9]*",placeholder:"000000",type:"text",...s.register("code")}),s.formState.errors.code&&v.jsx("span",{className:"label-text-alt mt-0.5 text-error","data-testid":"disable-totp-error",children:s.formState.errors.code.message})]}),v.jsxs(yr,{children:[v.jsx("button",{className:"btn btn-sm","data-testid":"disable-totp-cancel",disabled:c.isPending,onClick:d,type:"button",children:a("profile.totp.disableModal.cancel")}),v.jsx("button",{className:"btn btn-sm btn-error","data-testid":"disable-totp-submit",disabled:c.isPending,type:"submit",children:c.isPending?v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"loading loading-spinner loading-xs"}),a("profile.totp.disableModal.disabling")]}):a("profile.totp.disableModal.disable")})]})]})})}function Tr(e){const t=new Uint8Array(e);let a="";for(const n of t)a+=String.fromCharCode(n);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Lu(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),a=(4-t.length%4)%4,o=t.padEnd(t.length+a,"="),n=atob(o),s=new ArrayBuffer(n.length),c=new Uint8Array(s);for(let d=0;d<n.length;d++)c[d]=n.charCodeAt(d);return s}function kh(){return LN.stubThis(globalThis?.PublicKeyCredential!==void 0&&typeof globalThis.PublicKeyCredential=="function")}const LN={stubThis:e=>e};function X5(e){const{id:t}=e;return{...e,id:Lu(t),transports:e.transports}}function Y5(e){return e==="localhost"||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(e)}class Wt extends Error{constructor({message:t,code:a,cause:o,name:n}){super(t,{cause:o}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=n??o.name,this.code=a}}function IN({error:e,options:t}){const{publicKey:a}=t;if(!a)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Wt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(a.authenticatorSelection?.requireResidentKey===!0)return new Wt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&a.authenticatorSelection?.userVerification==="required")return new Wt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(a.authenticatorSelection?.userVerification==="required")return new Wt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Wt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Wt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return a.pubKeyCredParams.filter(n=>n.type==="public-key").length===0?new Wt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Wt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=globalThis.location.hostname;if(Y5(o)){if(a.rp.id!==o)return new Wt({message:`The RP ID "${a.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Wt({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(a.user.id.byteLength<1||a.user.id.byteLength>64)return new Wt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Wt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return e}class UN{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){const a=new Error("Cancelling existing WebAuthn API call for new one");a.name="AbortError",this.controller.abort(a)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const W5=new UN,ZN=["cross-platform","platform"];function ew(e){if(e&&!(ZN.indexOf(e)<0))return e}async function VN(e){!e.optionsJSON&&e.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});const{optionsJSON:t,useAutoRegister:a=!1}=e;if(!kh())throw new Error("WebAuthn is not supported in this browser");const o={...t,challenge:Lu(t.challenge),user:{...t.user,id:Lu(t.user.id)},excludeCredentials:t.excludeCredentials?.map(X5)},n={};a&&(n.mediation="conditional"),n.publicKey=o,n.signal=W5.createNewAbortSignal();let s;try{s=await navigator.credentials.create(n)}catch(w){throw IN({error:w,options:n})}if(!s)throw new Error("Registration was not completed");const{id:c,rawId:d,response:m,type:p}=s;let y;typeof m.getTransports=="function"&&(y=m.getTransports());let b;if(typeof m.getPublicKeyAlgorithm=="function")try{b=m.getPublicKeyAlgorithm()}catch(w){S1("getPublicKeyAlgorithm()",w)}let x;if(typeof m.getPublicKey=="function")try{const w=m.getPublicKey();w!==null&&(x=Tr(w))}catch(w){S1("getPublicKey()",w)}let _;if(typeof m.getAuthenticatorData=="function")try{_=Tr(m.getAuthenticatorData())}catch(w){S1("getAuthenticatorData()",w)}return{id:c,rawId:Tr(d),response:{attestationObject:Tr(m.attestationObject),clientDataJSON:Tr(m.clientDataJSON),transports:y,publicKeyAlgorithm:b,publicKey:x,authenticatorData:_},type:p,clientExtensionResults:s.getClientExtensionResults(),authenticatorAttachment:ew(s.authenticatorAttachment)}}function S1(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
|
|
74
|
-
`,t)}function HN(){if(!kh())return w1.stubThis(new Promise(t=>t(!1)));const e=globalThis.PublicKeyCredential;return e?.isConditionalMediationAvailable===void 0?w1.stubThis(new Promise(t=>t(!1))):w1.stubThis(e.isConditionalMediationAvailable())}const w1={stubThis:e=>e};function FN({error:e,options:t}){const{publicKey:a}=t;if(!a)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Wt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Wt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const o=globalThis.location.hostname;if(Y5(o)){if(a.rpId!==o)return new Wt({message:`The RP ID "${a.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Wt({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Wt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return e}async function tw(e){!e.optionsJSON&&e.challenge&&(console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});const{optionsJSON:t,useBrowserAutofill:a=!1,verifyBrowserAutofillInput:o=!0}=e;if(!kh())throw new Error("WebAuthn is not supported in this browser");let n;t.allowCredentials?.length!==0&&(n=t.allowCredentials?.map(X5));const s={...t,challenge:Lu(t.challenge),allowCredentials:n},c={};if(a){if(!await HN())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&o)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');c.mediation="conditional",s.allowCredentials=[]}c.publicKey=s,c.signal=W5.createNewAbortSignal();let d;try{d=await navigator.credentials.get(c)}catch(_){throw FN({error:_,options:c})}if(!d)throw new Error("Authentication was not completed");const{id:m,rawId:p,response:y,type:b}=d;let x;return y.userHandle&&(x=Tr(y.userHandle)),{id:m,rawId:Tr(p),response:{authenticatorData:Tr(y.authenticatorData),clientDataJSON:Tr(y.clientDataJSON),signature:Tr(y.signature),userHandle:x},type:b,clientExtensionResults:d.getClientExtensionResults(),authenticatorAttachment:ew(d.authenticatorAttachment)}}const qN={queryKey:ia.passkeys(),queryFn:async()=>{const e=await Be.api.user.passkeys.$get();return Ke(e)}},nw={mutationFn:async e=>{const t=await Be.api.user.passkeys.register.options.$post(),{options:a}=await Ke(t),o=await VN({optionsJSON:a}),n=await Be.api.user.passkeys.register.verify.$post({json:{response:o,name:e.name}});return Ke(n)}},BN={mutationFn:async e=>{const t=await Be.api.user.passkeys[":id"].$delete({param:{id:e.id}});return Ke(t)}},KN={mutationFn:async e=>{const t=await Be.api.user.passkeys[":id"].$patch({param:{id:e.id},json:{name:e.name}});return Ke(t)}},rw={mutationFn:async()=>{const e=await Be.api.auth.passkey.options.$post(),{options:t}=await Ke(e),a=await tw({optionsJSON:t}),o=await Be.api.auth.passkey.verify.$post({json:{response:{...a,clientExtensionResults:{...a.clientExtensionResults}}}});return Ke(o)}},QN=async(e,t)=>{try{const a=await Be.api.auth.passkey.options.$post({},{init:{signal:t}}),{options:o}=await Ke(a),n=await tw({optionsJSON:o,useBrowserAutofill:!0}),s=await Be.api.auth.passkey.verify.$post({json:{response:{...n,clientExtensionResults:{...n.clientExtensionResults}}}},{init:{signal:t}}),c=await Ke(s);e(c)}catch(a){a instanceof Error&&a.name}};function GN({isOpen:e,onClose:t,onAddNew:a}){const{t:o}=Ne(),n=xt(),[s,c]=g.useState(null),[d,m]=g.useState(null),[p,y]=g.useState(null),[b,x]=g.useState(null),{data:_,isLoading:w}=vk({...qN,enabled:e}),$=dt({...BN,onSuccess:()=>{n.invalidateQueries({queryKey:ia.passkeys()}),n.invalidateQueries({queryKey:Le.queryKey})},onSettled:()=>{m(null)}}),A=g.useCallback(()=>{c(null),m(null),y(null),x(null),t()},[t]),E=K=>{y(K.id),x(null)},T=()=>{y(null),x(null)},N=async K=>{m(K.id),y(null);try{await $.mutateAsync({id:K.id})}catch(L){if(L instanceof Bt&&L.code==="CANNOT_REMOVE_LAST_SECOND_FACTOR"){x(o("profile.passkey.manageModal.cannotRemoveLastSecondFactor"));return}x(o("profile.passkey.manageModal.deleteError"))}},M=K=>new Date(K).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}),U=_?.passkeys||[];return v.jsxs(_r,{icon:Or,isOpen:e,onClose:A,size:"lg",title:o("profile.passkey.manageModal.title"),children:[v.jsxs("div",{className:"mt-4 space-y-2",children:[b&&v.jsx(lr,{variant:"error",children:b}),w&&v.jsx("div",{className:"flex justify-center py-6",children:v.jsx("span",{className:"loading loading-spinner loading-md"})}),!w&&U.length===0&&v.jsx("div",{className:"py-6 text-center text-base-content/60 text-sm","data-testid":"passkeys-empty",children:v.jsx("p",{children:o("profile.passkey.manageModal.noPasskeys")})}),!w&&U.length>0&&v.jsx("div",{className:"flex flex-col gap-2",children:U.map(K=>v.jsx(JN,{formatDate:M,isConfirmingDelete:p===K.id,isDeleting:d===K.id,isEditing:s?.id===K.id,onCancelDelete:T,onCancelEdit:()=>c(null),onConfirmDelete:()=>N(K),onEdit:()=>c(K),onRequestDelete:()=>E(K),passkey:K},K.id))})]}),v.jsxs(yr,{children:[v.jsx("button",{className:"btn btn-sm","data-testid":"manage-passkeys-close",onClick:A,type:"button",children:o("profile.passkey.manageModal.close")}),v.jsx("button",{className:"btn btn-sm btn-primary","data-testid":"manage-passkeys-add-new",onClick:()=>{A(),a()},type:"button",children:o("profile.passkey.manageModal.addNew")})]})]})}function JN({passkey:e,isDeleting:t,isEditing:a,isConfirmingDelete:o,onEdit:n,onCancelEdit:s,onRequestDelete:c,onConfirmDelete:d,onCancelDelete:m,formatDate:p}){const{t:y}=Ne(),b=xt(),x=g.useMemo(()=>en.object({name:en.string().min(1,y("validation.passkey.name.required")).max(100,y("validation.passkey.name.max"))}),[y]),_=rn({resolver:an(x),defaultValues:{name:e.name||""}}),w=dt({...KN,onSuccess:()=>{b.invalidateQueries({queryKey:ia.passkeys()}),s()}}),$=_.handleSubmit(async A=>{try{await w.mutateAsync({id:e.id,name:A.name})}catch{_.setError("name",{message:y("profile.passkey.manageModal.renameError")})}});return a?v.jsxs("form",{className:"flex flex-col gap-1.5 rounded-lg bg-base-200 p-2",onSubmit:$,children:[v.jsx("input",{className:`input input-bordered input-sm w-full ${_.formState.errors.name?"input-error":""}`,"data-testid":"passkey-rename-input",placeholder:y("profile.passkey.manageModal.namePlaceholder"),type:"text",..._.register("name")}),_.formState.errors.name&&v.jsx("span",{className:"text-error text-xs","data-testid":"passkey-rename-error",children:_.formState.errors.name.message}),v.jsxs("div",{className:"flex justify-end gap-1",children:[v.jsx("button",{className:"btn btn-ghost btn-xs",disabled:w.isPending,onClick:()=>{_.reset(),s()},type:"button",children:y("profile.passkey.manageModal.cancelEdit")}),v.jsx("button",{className:"btn btn-primary btn-xs",disabled:w.isPending,type:"submit",children:w.isPending?y("profile.passkey.manageModal.saving"):y("profile.passkey.manageModal.save")})]})]}):o?v.jsxs("div",{className:"flex items-center justify-between rounded-lg bg-error/10 p-2",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(cl,{className:"size-4 text-error",weight:"regular"}),v.jsx("span",{className:"text-error text-xs",children:y("profile.passkey.manageModal.deleteConfirmInline")})]}),v.jsxs("div",{className:"flex gap-1",children:[v.jsx("button",{className:"btn btn-ghost btn-xs",onClick:m,type:"button",children:y("profile.passkey.manageModal.cancelEdit")}),v.jsx("button",{className:"btn btn-error btn-xs",onClick:d,type:"button",children:y("profile.passkey.manageModal.delete")})]})]}):v.jsxs("div",{className:"flex items-center justify-between rounded-lg bg-base-200 p-2","data-testid":"passkey-item",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[e.device_type==="multiDevice"?v.jsx(_4,{className:"size-4 text-primary",weight:"regular"}):v.jsx(S4,{className:"size-4 text-primary",weight:"regular"}),v.jsxs("div",{children:[v.jsx("div",{className:"font-medium text-xs",children:e.name||y("profile.passkey.manageModal.unnamedPasskey")}),v.jsxs("div",{className:"flex items-center gap-1.5 text-base-content/60 text-xs",children:[v.jsx("span",{children:y("profile.passkey.manageModal.createdAt",{date:p(e.created_at)})}),e.backed_up&&v.jsx("span",{className:"badge badge-success badge-xs",children:y("profile.passkey.manageModal.backedUp")})]})]})]}),v.jsxs("div",{className:"flex gap-1",children:[v.jsx("button",{"aria-label":y("profile.passkey.manageModal.rename"),className:"btn btn-ghost btn-xs",onClick:n,type:"button",children:v.jsx(M4,{className:"size-3.5",weight:"regular"})}),v.jsx("button",{"aria-label":y("profile.passkey.manageModal.delete"),className:"btn btn-ghost btn-xs text-error",disabled:t,onClick:c,type:"button",children:t?v.jsx("span",{className:"loading loading-spinner loading-xs"}):v.jsx(cl,{className:"size-3.5",weight:"regular"})})]})]})}function $h({recoveryCodes:e,onConfirm:t,isLoading:a=!1,className:o=""}){const{t:n}=Ne(),[s,c]=g.useState(!1),[d,m]=g.useState(!1),p=g.useCallback(async()=>{const y=e.join(`
|
|
75
|
-
`);await navigator.clipboard.writeText(y),c(!0),setTimeout(()=>c(!1),2e3)},[e]);return v.jsxs("div",{className:`space-y-3 ${o}`,children:[v.jsx("p",{className:"text-center text-base-content/60 text-xs",children:n("setupTotp.recoveryCodes.description")}),v.jsx("div",{className:"grid grid-cols-2 gap-2 rounded-lg bg-base-200 p-3","data-testid":"recovery-codes-grid",children:e.map(y=>v.jsx("code",{className:"rounded bg-base-300 px-2 py-1 text-center font-mono text-sm",children:y},y))}),v.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-warning/10 p-2.5 text-warning",children:[v.jsx(vl,{className:"mt-0.5 size-4 shrink-0",weight:"fill"}),v.jsx("p",{className:"text-xs",children:n("setupTotp.recoveryCodes.warning")})]}),v.jsx("button",{className:"btn btn-sm btn-outline btn-block gap-2",onClick:p,type:"button",children:s?v.jsxs(v.Fragment,{children:[v.jsx(ym,{className:"size-4"}),n("setupTotp.recoveryCodes.copied")]}):v.jsxs(v.Fragment,{children:[v.jsx(x4,{className:"size-4"}),n("setupTotp.recoveryCodes.copy")]})}),v.jsxs("label",{className:"flex cursor-pointer items-center gap-2",children:[v.jsx("input",{checked:d,className:"checkbox checkbox-sm","data-testid":"recovery-codes-confirm",disabled:a,onChange:y=>m(y.target.checked),type:"checkbox"}),v.jsx("span",{className:"text-sm",children:n("setupTotp.recoveryCodes.confirmCheckbox")})]}),v.jsx("button",{className:"btn btn-sm btn-primary btn-block","data-testid":"recovery-codes-submit",disabled:!d||a,onClick:t,type:"button",children:a?v.jsx("span",{className:"loading loading-spinner loading-sm"}):n("setupTotp.recoveryCodes.confirm")})]})}const aw=({length:e=6,error:t,disabled:a=!1,onComplete:o,onChange:n,value:s="",autoFocus:c=!1,className:d="",ref:m})=>{const[p,y]=g.useState(()=>s.split("").concat(Array(e).fill("")).slice(0,e)),b=g.useRef([]);g.useEffect(()=>{const E=s.split("").concat(Array(e).fill("")).slice(0,e);y(E)},[s,e]),g.useImperativeHandle(m,()=>({focus:()=>{b.current[0]?.focus()},clear:()=>{y(Array(e).fill("")),b.current[0]?.focus()}}),[e]),g.useEffect(()=>{c&&!a&&b.current[0]?.focus()},[c,a]);const x=g.useCallback(E=>{const T=E.join("");n?.(T),E.every(N=>N!=="")&&T.length===e&&o?.(T)},[n,o,e]),_=g.useCallback((E,T)=>{const N=T.replace(/\D/g,"").slice(-1),M=[...p];M[E]=N,y(M),x(M),N&&E<e-1&&b.current[E+1]?.focus()},[p,e,x]),w=g.useCallback((E,T)=>{switch(T.key){case"Backspace":if(T.preventDefault(),p[E]){const N=[...p];N[E]="",y(N),x(N)}else if(E>0){const N=[...p];N[E-1]="",y(N),x(N),b.current[E-1]?.focus()}break;case"ArrowLeft":T.preventDefault(),E>0&&b.current[E-1]?.focus();break;case"ArrowRight":T.preventDefault(),E<e-1&&b.current[E+1]?.focus();break;case"Delete":T.preventDefault();{const N=[...p];N[E]="",y(N),x(N)}break}},[p,e,x]),$=g.useCallback(E=>{E.preventDefault();const T=E.clipboardData.getData("text").replace(/\D/g,"").slice(0,e);if(T){const N=T.split("").concat(Array(e).fill("")).slice(0,e);y(N),x(N);const M=N.indexOf(""),U=M===-1?e-1:M;b.current[U]?.focus()}},[e,x]),A=g.useCallback(E=>{E.target.select()},[]);return v.jsxs("div",{className:d,children:[v.jsx("div",{className:"flex justify-center gap-1.5 sm:gap-2",children:p.map((E,T)=>v.jsx("input",{"aria-label":`Digit ${T+1} of ${e}`,autoComplete:T===0?"one-time-code":"off",className:`input input-bordered h-12 w-10 text-center font-mono text-xl sm:h-14 sm:w-12 sm:text-2xl ${t?"input-error":""} ${a?"input-disabled":""}`,disabled:a,inputMode:"numeric",maxLength:1,onChange:N=>_(T,N.target.value),onFocus:A,onKeyDown:N=>w(T,N),onPaste:$,pattern:"[0-9]*",ref:N=>{b.current[T]=N},type:"text",value:E},T))}),t&&v.jsx("p",{className:"mt-2 text-center text-error text-sm","data-testid":"pin-input-error",children:t.message})]})};function Ah({onSubmit:e,onBack:t,isPending:a,invalidMessage:o,submitLabel:n,pendingText:s,backLabel:c,className:d=""}){const{t:m}=Ne(),p=g.useRef(null),y=g.useMemo(()=>Vt({code:Ce().length(6,m("validation.totp.length")).regex(/^\d{6}$/,m("validation.totp.digits"))}),[m]),{setValue:b,setError:x,handleSubmit:_,watch:w,formState:{errors:$}}=rn({defaultValues:{code:""},resolver:an(y)}),A=w("code"),E=g.useCallback(async T=>{try{await e(T.code)}catch{x("code",{type:"manual",message:o??m("setupTotp.error.invalid")}),b("code",""),p.current?.focus()}},[o,e,x,b,m]);return v.jsxs("div",{className:d,children:[v.jsxs("form",{className:"flex flex-col gap-3",onSubmit:_(E),children:[v.jsx(aw,{autoFocus:!0,error:$.code,length:6,onChange:T=>b("code",T),onComplete:()=>_(E)(),ref:p,value:A}),v.jsx(sa,{className:"btn-sm mt-1",isPending:a,pendingText:s??m("setupTotp.verifying"),children:n??m("setupTotp.verify")})]}),t&&v.jsx("div",{className:"mt-3 text-center",children:v.jsx("button",{className:"btn btn-ghost btn-xs","data-testid":"totp-verify-back",disabled:a,onClick:t,type:"button",children:c??m("setupTotp.back")})})]})}function XN({isOpen:e,onClose:t}){const{t:a}=Ne(),o=$t(),n=xt(),{data:s}=It(We),[c,d]=g.useState("verify"),[m,p]=g.useState(null),[y,b]=g.useState(null),x=dt({...RN,onSuccess:async A=>{p(A),d("recovery"),await n.invalidateQueries({queryKey:Le.queryKey})}}),_=g.useCallback(()=>{d("verify"),p(null),b(null),x.reset()},[x]),w=g.useCallback(()=>{_(),t()},[t,_]),$=g.useCallback(async A=>{b(null);try{await x.mutateAsync({code:A})}catch(E){if(E instanceof Bt){if(E.code==="INVALID_TOTP_CODE")throw E;if(E.code==="UNAUTHORIZED"){n.setQueryData(Le.queryKey,{user:null}),await vn(),o.navigate({to:"/login"});return}if(E.code==="TOTP_NOT_ENABLED"||E.code==="VALIDATION_ERROR"){await n.invalidateQueries({queryKey:Le.queryKey}),w();return}}b(a("profile.totp.regenerateModal.unexpectedError"))}},[w,x,n,o,a]);return s.auth.password.totp.enabled?v.jsx(_r,{description:a(c==="verify"?"profile.totp.regenerateModal.description":"profile.totp.regenerateModal.recoveryDescription"),icon:or,isOpen:e,onClose:w,preventClose:c==="recovery",size:"sm",title:a(c==="verify"?"profile.totp.regenerateModal.title":"profile.totp.regenerateModal.recoveryTitle"),children:c==="verify"?v.jsxs("div",{className:"mt-4",children:[y&&v.jsx("div",{className:"mb-3",children:v.jsx(lr,{variant:"error",children:y})}),v.jsx(Ah,{invalidMessage:a("profile.totp.regenerateModal.error"),isPending:x.isPending,onSubmit:$,pendingText:a("profile.totp.regenerateModal.submitting"),submitLabel:a("profile.totp.regenerateModal.submit")})]}):v.jsx("div",{className:"mt-4",children:v.jsx($h,{onConfirm:w,recoveryCodes:m?.recovery_codes??[]})})}):null}function YN({isOpen:e,onClose:t}){const{t:a}=Ne(),o=xt(),n=g.useMemo(()=>en.object({currentPassword:en.string().min(1,a("validation.password.required"))}),[a]),s=rn({resolver:an(n),defaultValues:{currentPassword:""}}),c=dt({...AN,onSuccess:()=>{o.invalidateQueries({queryKey:Le.queryKey}),d()}}),d=()=>{s.reset(),t()},m=s.handleSubmit(async p=>{try{await c.mutateAsync({current_password:p.currentPassword})}catch(y){if(y instanceof Bt){if(y.code==="INVALID_CURRENT_PASSWORD"){s.setError("currentPassword",{message:a("profile.password.removeModal.invalidCurrent")});return}if(y.code==="CANNOT_REMOVE_LAST_AUTH_METHOD"){s.setError("root",{message:a("profile.password.removeModal.noOAuth")});return}if(y.code==="CANNOT_REMOVE_PASSWORD_WITH_SECOND_FACTOR_ONLY"){s.setError("root",{message:a("profile.password.removeModal.noOAuthWith2FA")});return}}s.setError("root",{message:a("profile.password.removeModal.error")})}});return v.jsx(_r,{description:a("profile.password.removeModal.description"),icon:Oi,isOpen:e,onClose:d,title:a("profile.password.removeModal.title"),variant:"destructive",children:v.jsxs("form",{className:"mt-4 space-y-3",onSubmit:m,children:[v.jsxs("div",{className:"form-control",children:[v.jsx("label",{className:"label w-full",htmlFor:"current-password-remove",children:v.jsx("span",{className:"label-text text-xs",children:a("profile.password.removeModal.currentPassword")})}),v.jsx("input",{className:`input input-bordered input-sm w-full ${s.formState.errors.currentPassword?"input-error":""}`,id:"current-password-remove",placeholder:a("profile.password.removeModal.currentPasswordPlaceholder"),type:"password",...s.register("currentPassword")}),s.formState.errors.currentPassword&&v.jsx("span",{className:"label-text-alt mt-0.5 text-error","data-testid":"remove-password-error",children:s.formState.errors.currentPassword.message})]}),s.formState.errors.root&&v.jsx(lr,{variant:"error",children:s.formState.errors.root.message}),v.jsxs(yr,{children:[v.jsx("button",{className:"btn btn-sm","data-testid":"remove-password-cancel",disabled:c.isPending,onClick:d,type:"button",children:a("profile.password.removeModal.cancel")}),v.jsx("button",{className:"btn btn-sm btn-error","data-testid":"remove-password-submit",disabled:c.isPending,type:"submit",children:c.isPending?v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"loading loading-spinner loading-xs"}),a("profile.password.removeModal.submitting")]}):a("profile.password.removeModal.submit")})]})]})})}function WN({isOpen:e,onClose:t}){const{t:a}=Ne(),o=xt(),{data:n}=It(We),s=n.auth.password.policy,c=g.useMemo(()=>en.object({password:en.string().min(s.min_length,a("validation.password.min",{count:s.min_length})).max(s.max_length,a("validation.password.max",{count:s.max_length})),confirmPassword:en.string()}).refine(b=>b.password===b.confirmPassword,{message:a("validation.confirmPassword.mismatch"),path:["confirmPassword"]}),[s.max_length,s.min_length,a]),d=rn({resolver:an(c),defaultValues:{password:"",confirmPassword:""}}),m=dt({...kN,onSuccess:()=>{o.invalidateQueries({queryKey:Le.queryKey}),p()}}),p=()=>{d.reset(),t()},y=d.handleSubmit(async b=>{try{await m.mutateAsync({password:b.password})}catch{d.setError("root",{message:a("profile.password.setModal.error")})}});return v.jsx(_r,{description:a("profile.password.setModal.description"),icon:Oi,isOpen:e,onClose:p,title:a("profile.password.setModal.title"),children:v.jsxs("form",{className:"mt-4 space-y-3",onSubmit:y,children:[v.jsxs("div",{className:"form-control",children:[v.jsx("label",{className:"label w-full",htmlFor:"new-password",children:v.jsx("span",{className:"label-text text-xs",children:a("profile.password.setModal.newPassword")})}),v.jsx("input",{className:`input input-bordered input-sm w-full ${d.formState.errors.password?"input-error":""}`,id:"new-password",placeholder:a("profile.password.setModal.newPasswordPlaceholder"),type:"password",...d.register("password")}),d.formState.errors.password&&v.jsx("span",{className:"label-text-alt mt-0.5 text-error","data-testid":"set-password-error-password",children:d.formState.errors.password.message})]}),v.jsxs("div",{className:"form-control",children:[v.jsx("label",{className:"label w-full",htmlFor:"confirm-password",children:v.jsx("span",{className:"label-text text-xs",children:a("profile.password.setModal.confirmPassword")})}),v.jsx("input",{className:`input input-bordered input-sm w-full ${d.formState.errors.confirmPassword?"input-error":""}`,id:"confirm-password",placeholder:a("profile.password.setModal.confirmPasswordPlaceholder"),type:"password",...d.register("confirmPassword")}),d.formState.errors.confirmPassword&&v.jsx("span",{className:"label-text-alt mt-0.5 text-error","data-testid":"set-password-error-confirmPassword",children:d.formState.errors.confirmPassword.message})]}),d.formState.errors.root&&v.jsx(lr,{variant:"error",children:d.formState.errors.root.message}),v.jsxs(yr,{children:[v.jsx("button",{className:"btn btn-sm","data-testid":"set-password-cancel",disabled:m.isPending,onClick:p,type:"button",children:a("profile.password.setModal.cancel")}),v.jsx("button",{className:"btn btn-sm btn-primary","data-testid":"set-password-submit",disabled:m.isPending,type:"submit",children:m.isPending?v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"loading loading-spinner loading-xs"}),a("profile.password.setModal.submitting")]}):a("profile.password.setModal.submit")})]})]})})}function ez({isOpen:e,onClose:t,isRequired:a=!1,canSwitchToTotp:o=!1,onSwitchToTotp:n}){const{t:s}=Ne(),c=xt(),[d,m]=g.useState("name"),[p,y]=g.useState(null),b=g.useMemo(()=>en.object({name:en.string().max(100,s("validation.passkey.name.max")).optional().transform(E=>E?.trim()||void 0)}),[s]),x=rn({resolver:an(b),defaultValues:{name:""}}),_=dt({...nw,onSuccess:()=>{c.invalidateQueries({queryKey:ia.passkeys()}),c.invalidateQueries({queryKey:Le.queryKey}),w()},onError:E=>{m("name"),E.name==="NotAllowedError"?y(s("profile.passkey.setupModal.cancelled")):y(s("profile.passkey.setupModal.error"))}}),w=g.useCallback(()=>{x.reset(),m("name"),y(null),t()},[x,t]),$=x.handleSubmit(async E=>{m("register"),y(null);try{await _.mutateAsync({name:E.name})}catch{}}),A=_.isPending;return v.jsxs(_r,{description:a?s("profile.passkey.setupModal.requiredDescription"):void 0,icon:Or,isOpen:e,onClose:w,preventClose:a,size:"sm",title:s("profile.passkey.setupModal.title"),children:[d==="name"&&v.jsxs("form",{className:"mt-4 space-y-3",onSubmit:$,children:[v.jsx("p",{className:"text-base-content/60 text-xs",children:s("profile.passkey.setupModal.description")}),p&&v.jsx(lr,{variant:"error",children:p}),v.jsxs("div",{className:"form-control",children:[v.jsx("label",{className:"label w-full",htmlFor:"passkey-name",children:v.jsx("span",{className:"label-text text-xs",children:s("profile.passkey.setupModal.nameLabel")})}),v.jsx("input",{className:`input input-bordered input-sm w-full ${x.formState.errors.name?"input-error":""}`,id:"passkey-name",placeholder:s("profile.passkey.setupModal.namePlaceholder"),type:"text",...x.register("name")}),x.formState.errors.name&&v.jsx("span",{className:"label-text-alt mt-0.5 text-error","data-testid":"setup-passkey-error",children:x.formState.errors.name.message}),v.jsx("span",{className:"label-text-alt mt-0.5 text-base-content/50",children:s("profile.passkey.setupModal.nameHint")})]}),v.jsxs(yr,{children:[v.jsx("button",{className:"btn btn-sm","data-testid":"setup-passkey-cancel",onClick:w,type:"button",children:s("profile.passkey.setupModal.cancel")}),v.jsx("button",{className:"btn btn-sm btn-primary","data-testid":"setup-passkey-continue",type:"submit",children:s("profile.passkey.setupModal.continue")})]}),o&&n&&v.jsx("p",{className:"mt-2 text-center text-xs",children:v.jsx("button",{className:"link link-primary",onClick:n,type:"button",children:s("profile.passkey.setupModal.switchToTotp")})})]}),d==="register"&&v.jsxs("div",{className:"mt-4",children:[v.jsxs("div",{className:"flex flex-col items-center gap-3 py-6","data-testid":"setup-passkey-loading",children:[v.jsx("span",{className:"loading loading-spinner loading-md"}),v.jsx("p",{className:"text-center text-base-content/60 text-xs",children:s("profile.passkey.setupModal.waitingForDevice")})]}),v.jsx(yr,{children:v.jsx("button",{className:"btn btn-sm","data-testid":"setup-passkey-cancel",disabled:A,onClick:w,type:"button",children:s("profile.passkey.setupModal.cancel")})})]})]})}function iw({setupData:e,onNext:t,additionalActions:a,className:o=""}){const{t:n}=Ne();return v.jsxs("div",{className:`space-y-3 ${o}`,children:[v.jsx("p",{className:"text-center text-base-content/60 text-xs",children:n("setupTotp.qrDescription")}),v.jsx("div",{className:"flex justify-center",children:v.jsx("img",{alt:"TOTP QR Code",className:"h-40 w-40 rounded-lg border",src:e.qr_code})}),v.jsxs("div",{className:"collapse-arrow collapse bg-base-200",children:[v.jsx("input",{type:"checkbox"}),v.jsx("div",{className:"collapse-title font-medium text-xs",children:n("setupTotp.manualEntry")}),v.jsx("div",{className:"collapse-content",children:v.jsx("code",{className:"block break-all rounded bg-base-300 p-1.5 text-xs",children:e.secret})})]}),v.jsx("button",{className:"btn btn-sm btn-primary btn-block","data-testid":"totp-qr-next",onClick:t,type:"button",children:n("setupTotp.next")}),a]})}function ow(e={}){const{onSetupSuccess:t,onSetupError:a,onVerifySuccess:o,onVerifyError:n,onConfirmSuccess:s,onConfirmError:c,autoStart:d=!1}=e,m=xt(),[p,y]=g.useState(d?"loading":"qr"),[b,x]=g.useState(null),[_,w]=g.useState([]),$=g.useRef(!1),A=dt({...MN,onSuccess:H=>{x(H),y("qr"),t?.(H)},onError:H=>{y("error"),a?.(H)}}),E=dt({...ON,onSuccess:H=>{w(H.recovery_codes),y("recovery"),o?.(H)},onError:H=>{n?.(H)}}),T=dt({...NN,onSuccess:H=>{m.invalidateQueries({queryKey:Le.queryKey}),s?.(H)},onError:H=>{c?.(H)}}),N=g.useCallback(()=>{$.current=!0,y("loading"),A.mutate()},[A]),M=g.useCallback(async H=>E.mutateAsync({code:H}),[E]),U=g.useCallback(()=>{y("qr")},[]),K=g.useCallback(()=>{y("verify")},[]),L=g.useCallback(async()=>T.mutateAsync(),[T]),B=g.useCallback(()=>{y(d?"loading":"qr"),x(null),w([]),$.current=!1,A.reset(),E.reset(),T.reset()},[d,A,E,T]);return g.useEffect(()=>{d&&!$.current&&p==="loading"&&($.current=!0,A.mutate())},[d,p,A]),{step:p,setupData:b,recoveryCodes:_,isSetupPending:A.isPending,isVerifyPending:E.isPending,isConfirmPending:T.isPending,isPending:A.isPending||E.isPending||T.isPending,setupError:A.error,verifyError:E.error,confirmError:T.error,startSetup:N,verify:M,goToQr:U,goToVerify:K,confirmRecoveryCodes:L,reset:B}}function tz({isOpen:e,onClose:t,isRequired:a=!1,canSwitchToPasskey:o=!1,onSwitchToPasskey:n}){const{t:s}=Ne(),{step:c,setupData:d,recoveryCodes:m,isSetupPending:p,isVerifyPending:y,isConfirmPending:b,startSetup:x,verify:_,goToVerify:w,goToQr:$,confirmRecoveryCodes:A,reset:E}=ow({autoStart:!1,onConfirmSuccess:()=>{E(),t()}}),T=g.useCallback(()=>{E(),t()},[t,E]),N=g.useCallback(()=>{!d&&!p&&x()},[d,p,x]);e&&!d&&!p&&c!=="error"&&N();const M=g.useCallback(async K=>{await _(K)},[_]),U=s(c==="recovery"?"setupTotp.recoveryCodes.title":"profile.totp.setupModal.title");return v.jsxs(_r,{description:a?s("profile.totp.setupModal.requiredDescription"):void 0,icon:or,isOpen:e,onClose:T,preventClose:a||c==="recovery",size:"sm",title:U,children:[p&&v.jsx("div",{className:"flex justify-center py-6","data-testid":"setup-totp-loading",children:v.jsx("span",{className:"loading loading-spinner loading-md"})}),c==="error"&&v.jsxs("div",{className:"mt-4 space-y-3",children:[v.jsx(lr,{variant:"error",children:s("profile.totp.setupModal.setupError")}),v.jsxs(yr,{children:[v.jsx("button",{className:"btn btn-sm",onClick:T,type:"button",children:s("profile.totp.setupModal.cancel")}),v.jsx("button",{className:"btn btn-sm btn-primary",onClick:x,type:"button",children:s("profile.totp.setupModal.retry")})]})]}),d&&c==="qr"&&v.jsx("div",{className:"mt-4",children:v.jsx(iw,{additionalActions:v.jsxs(v.Fragment,{children:[v.jsx(yr,{children:v.jsx("button",{className:"btn btn-sm",onClick:T,type:"button",children:s("profile.totp.setupModal.cancel")})}),o&&n&&v.jsx("p",{className:"mt-2 text-center text-xs",children:v.jsx("button",{className:"link link-primary",onClick:n,type:"button",children:s("profile.totp.setupModal.switchToPasskey")})})]}),onNext:w,setupData:d})}),d&&c==="verify"&&v.jsx("div",{className:"mt-4",children:v.jsx(Ah,{isPending:y,onBack:$,onSubmit:M})}),c==="recovery"&&m.length>0&&v.jsx("div",{className:"mt-4",children:v.jsx($h,{isLoading:b,onConfirm:A,recoveryCodes:m})})]})}const nz={mutationFn:async()=>{const e=await Be.api.auth.logout.$post();return Ke(e)}},am={queryKey:ia.oauth.accounts(),queryFn:async()=>{const e=await Be.api.user["oauth-accounts"].$get();return Ke(e)}},rz={mutationFn:async e=>{const t=await Be.api.oauth[":provider"].$delete({param:{provider:e}});return Ke(t)}};function az(e,t="login",a){const o=new URL(`/api/oauth/${e}/authorize`,window.location.origin);return o.searchParams.set("mode",t),a&&o.searchParams.set("return_url",a),o.toString()}const iz=Vt({oauth_error:Ce().optional(),oauth_error_description:Ce().optional()}),oz={access_denied:"oauth.error.accessDenied",temporarily_unavailable:"oauth.error.temporarilyUnavailable",server_error:"oauth.error.serverError"};function sz(e){return v.jsx(cr,{...e,onUnauthorized:()=>{window.location.href="/login"}})}const sw=Kt("/profile/")({component:lz,errorComponent:sz,validateSearch:iz,beforeLoad:async({context:e})=>{if(!e.user)throw ra({to:"/login"})},loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Le),e.queryClient.ensureQueryData(am),e.queryClient.ensureQueryData(We)])}});function lz(){const{t:e}=Ne(),t=$t(),a=xt(),n=sw.useSearch().oauth_error,s=n?e(oz[n]??"oauth.error.failed"):void 0,[c,d]=g.useState(null),[m,p]=g.useState(null),[y,b]=g.useState(null),[x,_]=g.useState(null),[w,$]=g.useState(null),[A,E]=g.useState(!1),{data:T}=It(Le),{data:N}=It(am),{data:M}=It(We),U=dt({...nz,onSuccess:async()=>{a.setQueryData(Le.queryKey,{user:null}),await vn(),t.navigate({to:"/login"})},onSettled:()=>{a.invalidateQueries({queryKey:Le.queryKey})}}),K=dt({...rz,onSuccess:()=>{a.invalidateQueries({queryKey:am.queryKey})},onSettled:()=>{d(null)}}),L=async()=>{m&&(d(m.id),await K.mutateAsync(m.id))};if(!T.user)return null;const B=T.user,H=N.available_providers,ne=H.some(G=>G.linked),ie=B.managed_by==="config",W=M.auth.password,ce=M.auth.passkey,pe=W.totp.enabled,Ae=ce.enabled,q=M.account_deletion.enabled,ee=M.account_deletion.retention,he=(()=>{const G=ee.match(/^(\d+)([dmy])$/);if(!G)return 30;const ae=parseInt(G[1],10);switch(G[2]){case"d":return ae;case"m":return ae*30;case"y":return ae*365;default:return 30}})(),we=!ie&&pe,De=!ie&&Ae,z=H.length>0;return v.jsxs(st,{maxWidth:"xl",responsivePadding:!0,children:[v.jsx("div",{className:"border-base-200 border-b p-6",children:v.jsxs("div",{className:"flex items-start justify-between gap-4",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(wN,{email:B.email,size:"lg"}),v.jsxs("div",{className:"min-w-0",children:[v.jsx("h1",{className:"font-bold text-xl",children:e("profile.title")}),v.jsx("p",{className:"truncate text-base-content/70 text-sm","data-testid":"profile-user-email",children:B.email})]})]}),v.jsxs("button",{className:"btn btn-ghost btn-sm gap-2","data-testid":"profile-logout",disabled:U.isPending,onClick:()=>U.mutate(),type:"button",children:[U.isPending?v.jsx("span",{className:"loading loading-spinner loading-sm"}):v.jsx(O4,{className:"size-4",weight:"bold"}),v.jsx("span",{className:"hidden sm:inline",children:e("profile.logout")})]})]})}),s&&v.jsx("div",{className:"px-6 pt-4",children:v.jsx(tn,{icon:Vn,type:"error",children:s})}),v.jsxs("div",{className:"space-y-5 p-6",children:[B&&v.jsx(xN,{user:B}),v.jsxs("div",{className:"rounded-xl border border-base-200",children:[v.jsxs("div",{className:"border-base-200 border-b px-4 py-3",children:[v.jsx("h2",{className:"font-semibold text-sm",children:e("profile.security.title")}),v.jsx("p",{className:"text-base-content/60 text-xs",children:e("profile.security.description")})]}),we&&B.totp_recovery_codes_missing&&v.jsx("div",{className:"border-base-200 border-b px-4 py-3","data-testid":"profile-totp-recovery-warning",children:v.jsx(tn,{icon:Vn,type:"warning",children:e("profile.totp.recoveryCodesMissing")})}),v.jsxs("div",{className:"divide-y divide-base-200",children:[v.jsx(gN,{hasLinkedOAuth:ne,hasPassword:B.has_password,hasSecondFactorOnly:B.has_password&&!ne&&(B.totp_registered||B.passkey_count>0),isConfigManaged:ie,onOpenModal:b}),we&&v.jsx(vN,{onOpenModal:_,recoveryCodesMissing:B.totp_recovery_codes_missing,totpEnabled:B.totp_registered}),De&&v.jsx(hN,{onOpenModal:$,passkeyCount:B.passkey_count})]})]}),z&&v.jsx(pN,{getAuthorizeUrl:az,onUnlinkRequest:G=>p({id:G.id,name:G.display_name}),providers:H,unlinkingProvider:c}),v.jsx(mN,{isConfigManaged:ie,isDeletionEnabled:q,onDeleteClick:()=>E(!0)})]}),v.jsx(WN,{isOpen:y==="set",onClose:()=>b(null)}),v.jsx(EN,{isOpen:y==="change",onClose:()=>b(null)}),v.jsx(YN,{isOpen:y==="remove",onClose:()=>b(null)}),v.jsx(tz,{isOpen:x==="setup",onClose:()=>_(null)}),v.jsx(PN,{isOpen:x==="disable",onClose:()=>_(null)}),v.jsx(XN,{isOpen:x==="regenerate",onClose:()=>_(null)}),v.jsx(ez,{isOpen:w==="setup",onClose:()=>$(null)}),v.jsx(GN,{isOpen:w==="manage",onAddNew:()=>$("setup"),onClose:()=>$(null)}),v.jsx(_N,{isOpen:m!==null,isPending:K.isPending,onClose:()=>p(null),onConfirm:L,providerName:m?.name??""}),v.jsx(jN,{isOpen:A,onClose:()=>E(!1),retentionDays:he})]})}const cz={google:v.jsx($4,{className:"size-6",weight:"regular"}),github:v.jsx(k4,{className:"size-6",weight:"regular"}),apple:v.jsx(y4,{className:"size-6",weight:"regular"})};function k1({as:e,icon:t,label:a,providerType:o,isLoading:n,...s}){let c;o&&o!=="generic_oauth"?c=cz[o]:typeof t=="string"?c=v.jsx("img",{alt:"",className:"size-6",src:t}):t?c=t:c=v.jsx(bm,{className:"size-6",weight:"regular"});const d=n?v.jsx("span",{className:"loading loading-spinner loading-md"}):v.jsxs(v.Fragment,{children:[c,v.jsx("span",{className:"text-xs",children:a})]});return g.createElement(e,{className:"btn btn-ghost flex h-auto flex-row gap-2 border-base-300 py-3 sm:flex-col",...s},d)}function uz({children:e}){return v.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-3",children:e})}const dz=xr.extend({oauth_error:Ce().optional(),oauth_error_description:Ce().optional()}),fz={access_denied:"oauth.error.accessDenied",temporarily_unavailable:"oauth.error.temporarilyUnavailable",server_error:"oauth.error.serverError",registration_email_not_allowed:"oauth.error.registrationEmailNotAllowed"},lw=Kt("/login/")({component:mz,errorComponent:cr,validateSearch:dz,loader:async({context:e})=>{await e.queryClient.ensureQueryData(We)}});function mz(){const{t:e,i18n:t}=Ne(),a=$t(),o=xt(),n=lw.useSearch(),s=n.lang??t.language,{data:c}=It(We),d=c.registration.signup_notice?.[s]??c.registration.signup_notice?.[c.i18n.fallback_language],m=c.identity_providers,p=n.oauth_error,y=p?e(fz[p]??"oauth.error.failed"):void 0,b=c.auth.password.enabled,x=c.auth.passkey.enabled,_=c.branding.title?.[s]??c.branding.title?.[c.i18n.fallback_language],w=c.branding.subtitle?.[s]??c.branding.subtitle?.[c.i18n.fallback_language],A=dt({...rw,onSuccess:async T=>{T.user&&(o.setQueryData(Le.queryKey,T),await vn(),br(n)?window.location.href=sr(n):a.navigate({to:"/profile"})),o.invalidateQueries({queryKey:Le.queryKey})},onSettled:()=>{o.invalidateQueries({queryKey:Le.queryKey})}}),E=T=>{let N=`/api/oauth/${T}/authorize?mode=login`;if(br(n)){const M=new URL(sr(n)),U=`${M.pathname}${M.search}${M.hash}`;N+=`&return_url=${encodeURIComponent(U)}`}return N};return v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{iconUrl:c.branding.icon_url,subtitle:w??e("login.selectMethod.subtitle"),title:_??e("login.title")}),y&&v.jsx(tn,{className:"mb-4",icon:Vn,type:"error",children:y}),v.jsxs(uz,{children:[m.map(T=>v.jsx(k1,{as:"a",href:E(T.id),icon:T.icon_url,label:T.display_name,providerType:T.type},T.id)),b&&v.jsx(k1,{as:vt,icon:v.jsx($i,{className:"size-6",weight:"regular"}),label:e("login.method.password"),search:Je(n),to:"/login/password"}),x&&v.jsx(k1,{as:"button",disabled:A.isPending,icon:v.jsx(Or,{className:"size-6",weight:"regular"}),isLoading:A.isPending,label:e("login.method.passkey"),onClick:()=>A.mutate(),type:"button"})]}),d&&v.jsx("div",{className:"mt-6 text-center text-base-content/60 text-xs",children:v.jsx("div",{className:"prose prose-sm text-xs! **:text-xs!",dangerouslySetInnerHTML:{__html:d}})})]})}const pz=Vt({code:Ce().optional(),message:Ce().optional()}),hz=Kt("/error/")({component:gz,validateSearch:pz});function gz(){const{t:e}=Ne(),t=gm({from:"/error/"}),a=t.code||"UNKNOWN_ERROR",o=t.message||e("error.defaultMessage");return v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(tn,{className:"mb-4",icon:Vn,type:"error",children:e("error.title")}),v.jsx(ut,{subtitle:o,title:e("error.subtitle")}),v.jsxs("div",{className:"mb-6 rounded-lg bg-base-200 p-4 text-center",children:[v.jsx("p",{className:"mb-1 text-base-content/50 text-xs",children:e("error.codeLabel")}),v.jsx("code",{className:"font-mono text-error text-sm","data-testid":"error-code",children:a})]}),v.jsxs("div",{className:"flex flex-col gap-3",children:[v.jsx(vt,{className:"btn btn-block h-10 font-semibold text-[14px]",to:"/login",children:e("error.goToLogin")}),v.jsxs("button",{className:"btn btn-ghost btn-block h-10 font-semibold text-[14px]",onClick:()=>window.history.back(),type:"button",children:[v.jsx(A4,{className:"size-4",weight:"fill"}),e("error.goBack")]})]}),v.jsxs("div",{className:"mt-6 text-center text-base-content/70 text-xs",children:[e("error.footer.needHelp")," ",v.jsx("a",{className:"link link-info font-medium",href:"mailto:support@example.com",children:e("error.footer.contactSupport")})]})]})}const cw=e=>({queryKey:ia.consent(e.client_id,e.scope),queryFn:async()=>{const t=await Be.api.consent.$get({query:{client_id:e.client_id,scope:e.scope}});return Ke(t)}}),vz={mutationFn:async e=>{const t=await Be.api.consent.$post({json:e});return Ke(t)}},yz=xr.extend({client_id:Ce(),redirect_uri:Ce(),response_type:Ce()}),uw=Kt("/consent/")({component:_z,errorComponent:bz,validateSearch:yz,loaderDeps:({search:e})=>({client_id:e.client_id,scope:e.scope}),loader:async({context:e,deps:t})=>{await e.queryClient.ensureQueryData(cw({client_id:t.client_id,scope:t.scope}))}});function bz(e){return v.jsx(cr,{...e,onUnauthorized:()=>{const t=new URLSearchParams(window.location.search),a=Object.fromEntries(t.entries());window.location.href=sr(a)}})}function _z(){const{t:e}=Ne(),t=uw.useSearch(),a=It(cw({client_id:t.client_id,scope:t.scope})),o=dt({...vz,onSuccess:p=>{window.location.href=p.redirect_url}}),n=()=>{o.mutate({client_id:t.client_id,redirect_uri:t.redirect_uri,response_type:t.response_type,scope:t.scope,state:t.state,nonce:t.nonce,code_challenge:t.code_challenge,code_challenge_method:t.code_challenge_method,decision:"allow"})},s=()=>{o.mutate({client_id:t.client_id,redirect_uri:t.redirect_uri,response_type:t.response_type,scope:t.scope,state:t.state,nonce:t.nonce,code_challenge:t.code_challenge,code_challenge_method:t.code_challenge_method,decision:"deny"})},{client:c,scopes:d,user:m}=a.data;return v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("consent.subtitle",{app:c.name}),title:e("consent.title")}),v.jsxs("div",{className:"mb-4 rounded-lg bg-base-200 p-3 text-center",children:[v.jsx("p",{className:"text-base-content/60 text-xs",children:e("consent.loggedInAs")}),v.jsx("p",{className:"font-medium text-sm","data-testid":"consent-user-email",children:m.email})]}),v.jsxs("div",{className:"mb-4",children:[v.jsx("h2",{className:"mb-3 font-semibold text-sm",children:e("consent.permissions.title")}),v.jsx("ul",{className:"flex flex-col gap-2","data-testid":"consent-scope-list",children:d.map(p=>v.jsxs("li",{className:"flex items-start gap-3 rounded-lg bg-base-200 p-3",children:[v.jsx("div",{className:"mt-0.5 rounded-full bg-primary/20 p-1",children:v.jsx(or,{className:"size-4 text-primary",weight:"fill"})}),v.jsx("p",{className:"font-medium text-sm",children:e(`consent.scope.${p.name}`,{defaultValue:p.description})})]},p.name))})]}),v.jsxs("div",{className:"flex gap-3",children:[v.jsx("button",{className:"btn btn-outline h-10 flex-1 font-semibold text-[14px]","data-testid":"consent-deny",disabled:o.isPending,onClick:s,type:"button",children:o.isPending?v.jsx("span",{className:"loading loading-spinner loading-sm"}):v.jsxs(v.Fragment,{children:[v.jsx(_m,{className:"size-4",weight:"bold"}),e("consent.deny")]})}),v.jsx("button",{className:"btn btn-primary h-10 flex-1 font-semibold text-[14px]","data-testid":"consent-allow",disabled:o.isPending,onClick:n,type:"button",children:o.isPending?v.jsx("span",{className:"loading loading-spinner loading-sm"}):v.jsxs(v.Fragment,{children:[v.jsx(or,{className:"size-4",weight:"fill"}),e("consent.allow")]})})]})]})}const $1={SECOND_FACTOR_SESSION_EXPIRED:"SECOND_FACTOR_SESSION_EXPIRED",INVALID_TOTP_CODE:"INVALID_TOTP_CODE",TOTP_NOT_ENABLED:"TOTP_NOT_ENABLED"},xz=xr,dw=Kt("/verify/totp/")({component:Sz,validateSearch:xz}),v8=5;function Sz(){const{t:e}=Ne(),t=$t(),a=xt(),o=dw.useSearch(),n=g.useRef(null),[s,c]=g.useState(!1),[d,m]=g.useState(v8),p=g.useMemo(()=>Vt({code:Ce().length(6,e("validation.totp.length")).regex(/^\d{6}$/,e("validation.totp.digits"))}),[e]),y=dt({...CN,onSuccess:async N=>{a.setQueryData(Le.queryKey,{user:N.user}),await vn(),br(o)?window.location.href=sr(o):t.navigate({to:"/profile"})},onSettled:()=>{a.invalidateQueries({queryKey:Le.queryKey})}}),{setValue:b,setError:x,handleSubmit:_,watch:w,formState:{errors:$}}=rn({defaultValues:{code:""},resolver:an(p)}),A=w("code"),E=g.useCallback(()=>{t.navigate({to:"/login",search:Je(o)})},[t,o]);g.useEffect(()=>{if(!s)return;const N=setInterval(()=>{m(M=>M<=1?(clearInterval(N),E(),0):M-1)},1e3);return()=>clearInterval(N)},[s,E]);const T=async N=>{try{await y.mutateAsync(N)}catch(M){if(M instanceof Bt)switch(M.code){case $1.SECOND_FACTOR_SESSION_EXPIRED:c(!0),m(v8);return;case $1.TOTP_NOT_ENABLED:E();return;case $1.INVALID_TOTP_CODE:x("code",{type:"manual",message:e("verifyTotp.error.invalid")}),b("code",""),n.current?.focus();return}x("code",{type:"manual",message:e("verifyTotp.error.invalid")}),b("code",""),n.current?.focus()}};return v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("verifyTotp.subtitle"),title:e("verifyTotp.title")}),s&&v.jsxs("div",{className:"alert alert-warning mb-4","data-testid":"totp-verify-session-expired",children:[v.jsx(Vn,{className:"size-5",weight:"fill"}),v.jsxs("div",{className:"flex flex-col gap-1",children:[v.jsx("span",{children:e("verifyTotp.error.expired")}),v.jsx("span",{className:"text-sm opacity-80",children:e("verifyTotp.redirecting",{seconds:d})}),v.jsx("button",{className:"btn btn-sm btn-ghost mt-2 w-fit",onClick:E,type:"button",children:e("verifyTotp.redirectNow")})]})]}),v.jsxs("form",{className:"flex flex-col gap-4",onSubmit:_(T),children:[v.jsx(aw,{autoFocus:!0,disabled:s,error:$.code,length:6,onChange:N=>b("code",N),onComplete:()=>_(T)(),ref:n,value:A}),s?v.jsx("button",{className:"btn btn-block btn-disabled mt-2",disabled:!0,type:"button",children:e("verifyTotp.submit")}):v.jsx(sa,{className:"mt-2",isPending:y.isPending,pendingText:e("verifyTotp.submitting"),children:e("verifyTotp.submit")})]}),v.jsx("div",{className:"mt-4 text-center",children:v.jsx("button",{className:"link link-info font-medium text-xs","data-testid":"totp-verify-recovery-link",onClick:()=>t.navigate({to:"/verify/totp/recovery",search:Je(o)}),type:"button",children:e("verifyTotp.useRecoveryCode")})}),v.jsx(Tn,{as:vt,linkText:e("verifyTotp.backToLogin"),search:Je(o),text:"",to:"/login"})]})}const wz=xr,fw=Kt("/verify/passkey/")({component:kz,validateSearch:wz});function kz(){const{t:e}=Ne(),t=$t(),a=xt(),o=fw.useSearch(),[n,s]=g.useState(null),c=g.useRef(!1),d=dt({...rw,onSuccess:async m=>{m.user&&(a.setQueryData(Le.queryKey,{user:m.user}),await vn(),br(o)?window.location.href=sr(o):t.navigate({to:"/profile"}))},onError:async m=>{if(m instanceof Bt){if(m.code==="SECOND_FACTOR_SESSION_EXPIRED"){s(e("verifyPasskey.error.expired"));return}if(m.code==="PASSKEY_USER_MISMATCH"){s(e("verifyPasskey.error.userMismatch"));return}}else{s(e("verifyPasskey.error.failed"));return}},onSettled:()=>{a.invalidateQueries({queryKey:Le.queryKey})}});return g.useEffect(()=>{c.current||(c.current=!0,d.mutate())},[d]),v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("verifyPasskey.subtitle"),title:e("verifyPasskey.title")}),v.jsxs("div",{className:"flex flex-col items-center gap-6",children:[d.isPending&&v.jsxs("div",{className:"flex flex-col items-center gap-4",children:[v.jsx("div",{className:"flex size-20 items-center justify-center rounded-full bg-base-200",children:v.jsx(Or,{className:"size-10 animate-pulse text-primary"})}),v.jsx("p",{className:"text-center text-base-content/70 text-sm",children:e("verifyPasskey.waiting")})]}),n&&v.jsxs(v.Fragment,{children:[v.jsx(tn,{className:"w-full",icon:Vn,type:"error",children:n}),v.jsxs("button",{className:"btn btn-primary btn-block",onClick:()=>{s(null),d.mutate()},type:"button",children:[v.jsx(Or,{className:"size-5",weight:"regular"}),e("verifyPasskey.retry")]})]})]}),v.jsx(Tn,{as:vt,linkText:e("verifyPasskey.backToLogin"),search:o,text:"",to:"/login"})]})}function $z({text:e,className:t=""}){return v.jsxs("div",{className:`my-4 flex items-center ${t}`,children:[v.jsx("div",{className:"h-px flex-1 bg-base-200"}),e&&v.jsx("span",{className:"px-3 text-base-content/60 text-sm",children:e}),v.jsx("div",{className:"h-px flex-1 bg-base-200"})]})}const Az={mutationFn:async e=>{const t=await Be.api.auth.email.verify.$post({json:e});return Ke(t)}},Ez={mutationFn:async e=>{const t=await Be.api.auth.email.resend.$post({json:e,header:{}});return Ke(t)}},Tz=Vt({...xr.shape,token:Ce().default(""),email:Ce().default("")}),mw=Kt("/verify/email/")({component:jz,errorComponent:cr,validateSearch:Tz,beforeLoad:async({context:e})=>{if(!(await e.queryClient.ensureQueryData(We)).auth.password.enabled)throw ra({to:"/login"})},loader:async({context:e})=>{await e.queryClient.ensureQueryData(We)}});function jz(){const{t:e}=Ne(),t=gl(),a=xt(),o=mw.useSearch(),{token:n,email:s}=o,[c,d]=g.useState(!1),[m,p]=g.useState(!1),{data:y}=It(We),b=g.useMemo(()=>Vt({token:Ce().min(1,e("validation.token.required"))}),[e]),x=dt({...Az,onSuccess:async M=>{const U=M.user;if(a.setQueryData(Le.queryKey,{user:U}),await vn(),U.second_factor_required){const K=[];return y.auth.password.totp.enabled&&K.push("totp"),y.auth.passkey.enabled&&K.push("passkey"),K.length===1?K[0]==="totp"?t({to:"/setup/totp",search:Je(o)}):t({to:"/setup/passkey",search:Je(o)}):t({to:"/setup/2fa",search:Je(o)})}br(o)?window.location.href=sr(o):d(!0)},onSettled:()=>{a.invalidateQueries({queryKey:Le.queryKey})}}),_=dt({...Ez,onSuccess:()=>{p(!0),setTimeout(()=>p(!1),5e3)}}),{register:w,setError:$,handleSubmit:A,formState:{errors:E}}=rn({defaultValues:{token:n||""},resolver:an(b)}),T=async M=>{try{await x.mutateAsync(M)}catch{$("token",{type:"manual",message:e("verifyEmail.error.invalidToken")})}},N=async()=>{if(s)try{await _.mutateAsync({email:s})}catch{}};return c?v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(tn,{className:"mb-4",icon:ll,type:"success",children:e("verifyEmail.success.title")}),v.jsx(ut,{subtitle:e("verifyEmail.success.description"),title:e("verifyEmail.success.subtitle")}),v.jsx("button",{className:"btn btn-block h-10 font-semibold text-[14px]","data-testid":"email-verify-go-profile",onClick:()=>t({to:"/profile"}),type:"button",children:e("verifyEmail.success.goToProfile")})]}):v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("verifyEmail.subtitle"),title:e("verifyEmail.title")}),s&&v.jsx(tn,{className:"mb-4",icon:$i,type:"info",children:v.jsxs("div",{className:"text-left",children:[v.jsx("p",{className:"font-semibold",children:e("register.success.subtitle")}),v.jsx("p",{className:"text-xs",children:e("register.success.description",{email:s})})]})}),v.jsxs("form",{className:"flex flex-col gap-4",onSubmit:A(T),children:[v.jsx(na,{error:E.token,icon:Oi,placeholder:e("verifyEmail.token.placeholder"),...w("token"),type:"text"}),v.jsx(sa,{className:"mt-2",isPending:x.isPending,pendingText:e("verifyEmail.submitting"),children:e("verifyEmail.submit")})]}),s&&v.jsxs(v.Fragment,{children:[v.jsx($z,{}),m&&v.jsx(tn,{className:"mb-2",icon:ll,type:"success",children:e("verifyEmail.resendSuccess")}),v.jsx("button",{className:"btn btn-ghost btn-sm w-full","data-testid":"email-verify-resend",disabled:_.isPending||m,onClick:N,type:"button",children:_.isPending?v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"loading loading-spinner loading-xs"}),e("verifyEmail.resending")]}):e("verifyEmail.resend")})]})]})}const pw=Kt("/verify/2fa/")({component:Mz,errorComponent:cr,loader:async({context:e})=>{await e.queryClient.ensureQueryData(We)}});function Mz(){const{t:e}=Ne(),t=pw.useSearch(),a=Je(t),{data:o}=It(We);return v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("verify2fa.subtitle"),title:e("verify2fa.title")}),v.jsxs("div",{className:"flex flex-col gap-4",children:[o.auth.password.enabled&&o.auth.password.totp.enabled&&v.jsxs(vt,{className:"btn btn-outline btn-block justify-start gap-3",search:a,to:"/verify/totp",children:[v.jsx(or,{className:"size-5",weight:"regular"}),v.jsxs("div",{className:"flex flex-col items-start",children:[v.jsx("span",{className:"font-medium",children:e("verify2fa.totp.title")}),v.jsx("span",{className:"text-xs opacity-70",children:e("verify2fa.totp.description")})]})]}),o.auth.passkey.enabled&&v.jsxs(vt,{className:"btn btn-outline btn-block justify-start gap-3",search:a,to:"/verify/passkey",children:[v.jsx(Or,{className:"size-5",weight:"regular"}),v.jsxs("div",{className:"flex flex-col items-start",children:[v.jsx("span",{className:"font-medium",children:e("verify2fa.passkey.title")}),v.jsx("span",{className:"text-xs opacity-70",children:e("verify2fa.passkey.description")})]})]})]}),v.jsx(Tn,{as:vt,linkText:e("verify2fa.backToLogin"),search:a,text:"",to:"/login"})]})}const mi={TOTP_ALREADY_ENABLED:"TOTP_ALREADY_ENABLED",TOTP_NOT_SETUP:"TOTP_NOT_SETUP",UNAUTHORIZED:"UNAUTHORIZED",SECOND_FACTOR_SESSION_EXPIRED:"SECOND_FACTOR_SESSION_EXPIRED"},Oz=xr,hw=Kt("/setup/totp/")({component:Nz,validateSearch:Oz}),A1=5;function Nz(){const{t:e}=Ne(),t=$t(),a=xt(),o=hw.useSearch(),[n,s]=g.useState("generic"),[c,d]=g.useState(A1),m=g.useCallback(()=>{t.navigate({to:"/login",search:Je(o)})},[t,o]),p=g.useCallback(()=>{t.navigate({to:"/profile"})},[t]),y=g.useCallback(H=>{if(H instanceof Bt)switch(H.code){case mi.TOTP_ALREADY_ENABLED:s("already_enabled");break;case mi.UNAUTHORIZED:case mi.SECOND_FACTOR_SESSION_EXPIRED:s("session_expired"),d(A1);break;default:s("generic")}else s("generic")},[]),b=g.useCallback(async H=>{await vn()},[]),x=g.useCallback(async H=>{a.setQueryData(Le.queryKey,{user:H.user}),await vn(),br(o)?window.location.href=sr(o):t.navigate({to:"/profile"})},[a,t,o]),{step:_,setupData:w,recoveryCodes:$,isSetupPending:A,isVerifyPending:E,isConfirmPending:T,startSetup:N,verify:M,goToQr:U,goToVerify:K,confirmRecoveryCodes:L}=ow({autoStart:!0,onSetupError:y,onVerifySuccess:b,onConfirmSuccess:x,onVerifyError:H=>{if(H instanceof Bt)switch(H.code){case mi.TOTP_ALREADY_ENABLED:p();break;case mi.UNAUTHORIZED:case mi.SECOND_FACTOR_SESSION_EXPIRED:s("session_expired"),d(A1);break;case mi.TOTP_NOT_SETUP:N();break}}});g.useEffect(()=>{if(n!=="session_expired"||_!=="error")return;const H=setInterval(()=>{d(ne=>ne<=1?(clearInterval(H),m(),0):ne-1)},1e3);return()=>clearInterval(H)},[n,_,m]);const B=g.useCallback(async H=>{await M(H)},[M]);return _==="loading"?v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("setupTotp.subtitle"),title:e("setupTotp.title")}),v.jsx("div",{className:"flex justify-center py-8","data-testid":"totp-setup-loading",children:v.jsx("span",{className:"loading loading-spinner loading-lg"})})]}):_==="error"?n==="session_expired"?v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("setupTotp.subtitle"),title:e("setupTotp.title")}),v.jsxs("div",{className:"alert alert-warning mb-4","data-testid":"totp-setup-session-expired",children:[v.jsx(Vn,{className:"size-5",weight:"fill"}),v.jsxs("div",{className:"flex flex-col gap-1",children:[v.jsx("span",{children:e("setupTotp.error.expired")}),v.jsx("span",{className:"text-sm opacity-80",children:e("setupTotp.redirecting",{seconds:c})}),v.jsx("button",{className:"btn btn-sm btn-ghost mt-2 w-fit",onClick:m,type:"button",children:e("setupTotp.redirectNow")})]})]}),v.jsx(Tn,{as:vt,linkText:e("setupTotp.backToLogin"),search:Je(o),text:"",to:"/login"})]}):n==="already_enabled"?v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("setupTotp.subtitle"),title:e("setupTotp.title")}),v.jsx(tn,{className:"mb-4",icon:Fu,type:"info",children:e("setupTotp.error.alreadyEnabled")}),v.jsx("button",{className:"btn btn-primary btn-block",onClick:p,type:"button",children:e("setupTotp.goToProfile")}),v.jsx(Tn,{as:vt,linkText:e("setupTotp.backToLogin"),search:Je(o),text:"",to:"/login"})]}):v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("setupTotp.subtitle"),title:e("setupTotp.title")}),v.jsx(tn,{className:"mb-4",icon:z4,type:"error",children:e("setupTotp.error.setupFailed")}),v.jsx("button",{className:"btn btn-primary btn-block",disabled:A,onClick:N,type:"button",children:e("setupTotp.retry")}),v.jsx(Tn,{as:vt,linkText:e("setupTotp.backToLogin"),search:Je(o),text:"",to:"/login"})]}):_==="recovery"&&$.length>0?v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("setupTotp.subtitle"),title:e("setupTotp.recoveryCodes.title")}),v.jsx($h,{isLoading:T,onConfirm:L,recoveryCodes:$})]}):_==="qr"&&w?v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("setupTotp.subtitle"),title:e("setupTotp.title")}),v.jsxs("div",{className:"alert alert-info mb-4",children:[v.jsx(or,{className:"size-5",weight:"fill"}),v.jsx("span",{children:e("setupTotp.required")})]}),v.jsx(iw,{onNext:K,setupData:w}),v.jsx(Tn,{as:vt,linkText:e("setupTotp.backToLogin"),search:Je(o),text:"",to:"/login"})]}):v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("setupTotp.verifySubtitle"),title:e("setupTotp.verifyTitle")}),v.jsx(Ah,{isPending:E,onBack:U,onSubmit:B})]})}const zz=xr.extend({passkey_name:Ce().optional()}),gw=Kt("/setup/passkey/")({component:Rz,validateSearch:zz});function Rz(){const{t:e}=Ne(),t=$t(),a=xt(),o=gw.useSearch(),[n,s]=g.useState(o.passkey_name?"registering":"form"),[c,d]=g.useState(""),m=g.useRef(!1),p=g.useMemo(()=>Vt({name:Ce().max(100,e("validation.passkey.name.max"))}),[e]),{register:y,handleSubmit:b,formState:{errors:x}}=rn({defaultValues:{name:""},resolver:an(p)}),_=dt({...nw,onSuccess:async $=>{$.second_factor_setup_completed&&$.user?(a.setQueryData(Le.queryKey,{user:$.user}),await vn(),br(o)?window.location.href=sr(o):t.navigate({to:"/profile"})):(a.invalidateQueries({queryKey:Le.queryKey}),t.navigate({to:"/profile"}))},onError:$=>{s("error"),$ instanceof Error&&$.name==="NotAllowedError"?d(e("setupPasskey.error.cancelled")):d(e("setupPasskey.error.failed"))},onSettled:()=>{a.invalidateQueries({queryKey:Le.queryKey})}});g.useEffect(()=>{o.passkey_name&&!m.current&&(m.current=!0,_.mutate({name:o.passkey_name}))},[_,o.passkey_name]);const w=$=>{s("registering"),d(""),_.mutate({name:$.name||void 0})};return n==="registering"?v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("setupPasskey.subtitle"),title:e("setupPasskey.title")}),v.jsxs("div",{className:"flex flex-col items-center gap-4 py-8",children:[v.jsx(Or,{className:"size-16 animate-pulse text-primary"}),v.jsx("p",{className:"text-center text-base-content/70",children:e("setupPasskey.waiting")})]})]}):n==="error"?v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("setupPasskey.subtitle"),title:e("setupPasskey.title")}),v.jsx(tn,{icon:Vn,type:"error",children:c}),v.jsx("button",{className:"btn btn-primary btn-block mt-4",onClick:()=>{o.passkey_name?(s("registering"),d(""),_.mutate({name:o.passkey_name})):s("form")},type:"button",children:e("setupPasskey.retry")}),v.jsx(Tn,{as:vt,linkText:e("setupPasskey.backToLogin"),search:Je(o),text:"",to:"/login"})]}):v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("setupPasskey.subtitle"),title:e("setupPasskey.title")}),v.jsx(tn,{icon:or,type:"info",children:e("setupPasskey.required")}),v.jsx("p",{className:"mt-4 text-center text-base-content/60 text-sm",children:e("setupPasskey.description")}),v.jsxs("form",{className:"mt-4 flex flex-col gap-4",onSubmit:b(w),children:[v.jsxs("div",{className:"form-control",children:[v.jsx("label",{className:"label",htmlFor:"passkey-name",children:v.jsx("span",{className:"label-text",children:e("setupPasskey.name.label")})}),v.jsx("input",{className:`input input-bordered ${x.name?"input-error":""}`,id:"passkey-name",placeholder:e("setupPasskey.name.placeholder"),type:"text",...y("name")}),v.jsx("span",{className:"label-text-alt mt-1 text-base-content/50",children:e("setupPasskey.name.hint")}),x.name&&v.jsx("span",{className:"label-text-alt mt-1 text-error",children:x.name.message})]}),v.jsx(sa,{className:"mt-2",isPending:_.isPending,pendingText:e("setupPasskey.registering"),children:e("setupPasskey.continue")})]}),v.jsx(Tn,{as:vt,linkText:e("setupPasskey.backToLogin"),search:Je(o),text:"",to:"/login"})]})}const vw=Kt("/setup/2fa/")({component:Cz,errorComponent:cr,loader:async({context:e})=>{await e.queryClient.ensureQueryData(We)}});function Cz(){const{t:e}=Ne(),t=vw.useSearch(),{data:a}=It(We),o=Je(t);return v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("setup2fa.subtitle"),title:e("setup2fa.title")}),v.jsx(tn,{icon:or,type:"info",children:e("setup2fa.required")}),v.jsxs("div",{className:"mt-4 flex flex-col gap-4",children:[a.auth.password.enabled&&a.auth.password.totp.enabled&&v.jsxs(vt,{className:"btn btn-outline btn-block justify-start gap-3",search:o,to:"/setup/totp",children:[v.jsx(or,{className:"size-5",weight:"regular"}),v.jsxs("div",{className:"flex flex-col items-start",children:[v.jsx("span",{className:"font-medium",children:e("setup2fa.totp.title")}),v.jsx("span",{className:"text-xs opacity-70",children:e("setup2fa.totp.description")})]})]}),a.auth.passkey.enabled&&v.jsxs(vt,{className:"btn btn-outline btn-block justify-start gap-3",search:{...o,passkey_name:"default"},to:"/setup/passkey",children:[v.jsx(Or,{className:"size-5",weight:"regular"}),v.jsxs("div",{className:"flex flex-col items-start",children:[v.jsx("span",{className:"font-medium",children:e("setup2fa.passkey.title")}),v.jsx("span",{className:"text-xs opacity-70",children:e("setup2fa.passkey.description")})]})]})]}),v.jsx(Tn,{as:vt,linkText:e("setup2fa.backToLogin"),search:o,text:"",to:"/login"})]})}const Dz={mutationFn:async e=>{const t=await Be.api.auth.password.forgot.$post({json:e,header:{}});return Ke(t)}},Pz={mutationFn:async e=>{const t=await Be.api.auth.password.reset.$post({json:e});return Ke(t)}},Lz=Vt({token:Ce().default("")}),yw=Kt("/password/reset/")({component:Iz,errorComponent:cr,validateSearch:Lz,beforeLoad:async({context:e})=>{if(!(await e.queryClient.ensureQueryData(We)).auth.password.enabled)throw ra({to:"/login"})},loader:async({context:e})=>{await e.queryClient.ensureQueryData(We)}});function Iz(){const{t:e}=Ne(),t=gl(),a=yw.useSearch(),{token:o}=a,[n,s]=g.useState(!1),{data:c}=It(We),d=c.auth.password.policy,m=g.useMemo(()=>Vt({token:Ce().min(1,e("validation.token.required")),password:Ce().min(d.min_length,e("validation.password.min",{count:d.min_length})).max(d.max_length,e("validation.password.max",{count:d.max_length})),confirmPassword:Ce().min(1,e("validation.confirmPassword.required"))}).refine($=>$.password===$.confirmPassword,{message:e("validation.confirmPassword.mismatch"),path:["confirmPassword"]}),[d.max_length,d.min_length,e]),p=dt({...Pz,onSuccess:()=>{s(!0)}}),{register:y,setError:b,handleSubmit:x,formState:{errors:_}}=rn({defaultValues:{token:o||"",password:"",confirmPassword:""},resolver:an(m)}),w=async $=>{try{await p.mutateAsync({token:$.token,password:$.password})}catch(A){A&&typeof A=="object"&&"code"in A?A.code==="INVALID_PASSWORD_RESET_TOKEN"?b("token",{type:"manual",message:e("resetPassword.error.invalidToken")}):A.code==="USER_NOT_EDITABLE"&&b("token",{type:"manual",message:e("resetPassword.error.notEditable")}):b("token",{type:"manual",message:e("resetPassword.error.invalidToken")})}};return n?v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(tn,{className:"mb-4",icon:ll,type:"success",children:e("resetPassword.success.title")}),v.jsx(ut,{subtitle:e("resetPassword.success.description"),title:e("resetPassword.success.subtitle")}),v.jsx("button",{className:"btn btn-block h-10 font-semibold text-[14px]","data-testid":"reset-password-go-login",onClick:()=>t({to:"/login"}),type:"button",children:e("resetPassword.success.goToLogin")})]}):v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("resetPassword.subtitle"),title:e("resetPassword.title")}),v.jsxs("form",{className:"flex flex-col gap-4",onSubmit:x(w),children:[!o&&v.jsx(na,{error:_.token,icon:Oi,placeholder:e("resetPassword.token.placeholder"),...y("token"),type:"text"}),o&&_.token&&v.jsx("div",{className:"alert alert-error","data-testid":"reset-password-token-error",children:v.jsx("span",{className:"text-sm",children:_.token.message})}),v.jsx(na,{autoComplete:"new-password",error:_.password,icon:qu,placeholder:e("resetPassword.password.placeholder"),...y("password"),type:"password"}),v.jsx(na,{autoComplete:"new-password",error:_.confirmPassword,icon:T4,placeholder:e("resetPassword.confirmPassword.placeholder"),...y("confirmPassword"),type:"password"}),v.jsx(sa,{className:"mt-2",isPending:p.isPending,pendingText:e("resetPassword.submitting"),children:e("resetPassword.submit")})]}),v.jsx("div",{className:"mt-6 text-center text-base-content/70 text-xs",children:v.jsx(vt,{className:"link link-info font-medium","data-testid":"reset-password-back-to-login",to:"/login",children:e("resetPassword.backToLogin")})})]})}const Uz=Kt("/password/forgot/")({component:Zz,errorComponent:cr,beforeLoad:async({context:e})=>{if(!(await e.queryClient.ensureQueryData(We))?.auth.password.enabled)throw ra({to:"/login"})},loader:async({context:e})=>{await e.queryClient.ensureQueryData(We)}});function Zz(){const{t:e}=Ne(),[t,a]=g.useState(!1),[o,n]=g.useState(""),s=g.useMemo(()=>Vt({email:Rl({error:e("validation.email.invalid")})}),[e]),c=dt({...Dz,onSuccess:()=>{a(!0)}}),{register:d,setError:m,handleSubmit:p,formState:{errors:y}}=rn({defaultValues:{email:""},resolver:an(s)}),b=async x=>{try{n(x.email),await c.mutateAsync(x)}catch(_){_&&typeof _=="object"&&"code"in _&&_.code==="USER_NOT_EDITABLE"?m("email",{type:"manual",message:e("forgotPassword.error.notEditable")}):a(!0)}};return t?v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(tn,{className:"mb-4",icon:ll,type:"success",children:e("forgotPassword.success.title")}),v.jsx(ut,{subtitle:e("forgotPassword.success.description",{email:o}),title:e("forgotPassword.success.subtitle")}),v.jsx(tn,{className:"mb-4",icon:$i,type:"info",children:e("forgotPassword.success.checkSpam")}),v.jsx(vt,{className:"btn btn-block h-10 font-semibold text-[14px]",to:"/login",children:e("forgotPassword.backToLogin")})]}):v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("forgotPassword.subtitle"),title:e("forgotPassword.title")}),v.jsxs("form",{className:"flex flex-col gap-4",onSubmit:p(b),children:[v.jsx(na,{autoComplete:"email",error:y.email,icon:$i,placeholder:e("forgotPassword.email.placeholder"),...d("email"),type:"email"}),v.jsx(sa,{className:"mt-2",isPending:c.isPending,pendingText:e("forgotPassword.submitting"),children:e("forgotPassword.submit")})]}),v.jsx(Tn,{as:vt,linkText:e("register.link.login"),text:e("forgotPassword.footer.rememberedPassword"),to:"/login"})]})}const Vz={mutationFn:async e=>{const t=await Be.api.auth.login.$post({json:e});return Ke(t)}},Hz=xr,bw=Kt("/login/password/")({component:Fz,errorComponent:cr,validateSearch:Hz,loader:async({context:e})=>{await e.queryClient.ensureQueryData(We)}});function Fz(){const{t:e,i18n:t}=Ne(),a=$t(),o=xt(),n=bw.useSearch(),s=n.lang??t.language,{data:c}=It(We),d=c.branding.title?.[s]??c.branding.title?.[c.i18n.fallback_language],m=c.branding.subtitle?.[s]??c.branding.subtitle?.[c.i18n.fallback_language],p=c.auth.password.enabled,y=c.auth.passkey.enabled,b=g.useMemo(()=>Vt({email:Rl(e("validation.email.invalid")),password:Ce().min(1,e("validation.password.required"))}),[e]),x=dt({...Vz,onSuccess:async(M,U)=>{const K=M.user;if(K.email_verification_required&&!K.email_verified){a.navigate({to:"/verify/email",search:{email:U.email,...Je(n)}});return}o.setQueryData(Le.queryKey,{user:K}),await vn();const L=[];if(c.auth.password.totp.enabled&&K.totp_registered&&L.push("totp"),c.auth.passkey.enabled&&K.passkey_count>0&&L.push("passkey"),K.second_factor_required&&L.length===0){if(c.available_2fa_setup_methods.length>1)return a.navigate({to:"/setup/2fa",search:Je(n)});if(c.available_2fa_setup_methods.length===1)return c.available_2fa_setup_methods[0]==="totp"?a.navigate({to:"/setup/totp",search:Je(n)}):a.navigate({to:"/setup/passkey",search:{...Je(n),passkey_name:"default"}})}if(L.length>1)return a.navigate({to:"/verify/2fa",search:Je(n)});if(L.length===1)return L[0]==="totp"?a.navigate({to:"/verify/totp",search:Je(n)}):a.navigate({to:"/verify/passkey",search:Je(n)});if(br(n))window.location.href=sr(n);else return a.navigate({to:"/profile"})},onError:M=>{A("email",{type:"manual",message:e("login.error.failed")})},onSettled:()=>{o.invalidateQueries({queryKey:Le.queryKey})}}),_=g.useCallback(async M=>{M.user&&(o.setQueryData(Le.queryKey,M),await vn(),br(n)?window.location.href=sr(n):a.navigate({to:"/profile"})),o.invalidateQueries({queryKey:Le.queryKey})},[o,a,n]),w=g.useRef(null);g.useEffect(()=>{if(!(!y||!p))return w.current=new AbortController,QN(_,w.current.signal),()=>{w.current?.abort()}},[y,p,_]);const{register:$,setError:A,handleSubmit:E,formState:{errors:T}}=rn({defaultValues:{email:"",password:""},resolver:an(b)}),N=async M=>{x.mutate(M)};return v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{iconUrl:c.branding.icon_url,subtitle:m??e("login.selectMethod.subtitle"),title:d??e("login.title")}),p&&v.jsxs("form",{className:"flex flex-col gap-4",onSubmit:E(N),children:[v.jsx(na,{autoComplete:"username webauthn",error:T.email,icon:$i,placeholder:e("login.email.placeholder"),...$("email"),type:"email"}),v.jsx(na,{autoComplete:"current-password",error:T.password,icon:qu,placeholder:e("login.password.placeholder"),...$("password"),type:"password"}),c.email.enabled&&v.jsx("div",{className:"flex items-center justify-end",children:v.jsx(vt,{className:"link text-sm",to:"/password/forgot",children:e("login.link.forgotPassword")})}),v.jsx(sa,{className:"mt-2",isPending:x.isPending,pendingText:e("login.submitting"),children:e("login.submit")})]}),c.registration.public_registration&&v.jsx(Tn,{as:vt,linkText:e("login.link.register"),search:Je(n),text:e("login.footer.noAccount"),to:"/register"})]})}const hu={SECOND_FACTOR_SESSION_EXPIRED:"SECOND_FACTOR_SESSION_EXPIRED",INVALID_RECOVERY_CODE:"INVALID_RECOVERY_CODE",NO_RECOVERY_CODES_AVAILABLE:"NO_RECOVERY_CODES_AVAILABLE",TOTP_NOT_ENABLED:"TOTP_NOT_ENABLED"},qz=xr,_w=Kt("/verify/totp/recovery/")({component:Bz,validateSearch:qz}),y8=5;function Bz(){const{t:e}=Ne(),t=$t(),a=xt(),o=_w.useSearch(),n=g.useRef(null),[s,c]=g.useState(!1),[d,m]=g.useState(y8),p=g.useMemo(()=>Vt({code:Ce().transform(M=>M.toUpperCase()).pipe(Ce().regex(/^[A-HJ-NP-TV-Z2-9]{4}(?:-[A-HJ-NP-TV-Z2-9]{4}){3}$/,e("verifyRecovery.error.invalid")))}),[e]),y=dt({...DN,onSuccess:async M=>{a.setQueryData(Le.queryKey,{user:M.user}),await vn(),br(o)?window.location.href=sr(o):t.navigate({to:"/profile"})},onSettled:()=>{a.invalidateQueries({queryKey:Le.queryKey})}}),{register:b,setError:x,handleSubmit:_,setValue:w,formState:{errors:$}}=rn({defaultValues:{code:""},resolver:an(p)}),A=g.useCallback(()=>{t.navigate({to:"/login",search:Je(o)})},[t,o]);g.useEffect(()=>{if(!s)return;const M=setInterval(()=>{m(U=>U<=1?(clearInterval(M),A(),0):U-1)},1e3);return()=>clearInterval(M)},[s,A]);const E=async M=>{try{await y.mutateAsync(M)}catch(U){if(U instanceof Bt)switch(U.code){case hu.SECOND_FACTOR_SESSION_EXPIRED:c(!0),m(y8);return;case hu.TOTP_NOT_ENABLED:A();return;case hu.NO_RECOVERY_CODES_AVAILABLE:x("code",{type:"manual",message:e("verifyRecovery.error.noCodesAvailable")}),w("code",""),n.current?.focus();return;case hu.INVALID_RECOVERY_CODE:x("code",{type:"manual",message:e("verifyRecovery.error.invalid")}),w("code",""),n.current?.focus();return}x("code",{type:"manual",message:e("verifyRecovery.error.invalid")}),w("code",""),n.current?.focus()}},{ref:T,...N}=b("code");return v.jsxs(st,{cardPadding:!0,maxWidth:"100",children:[v.jsx(ut,{subtitle:e("verifyRecovery.subtitle"),title:e("verifyRecovery.title")}),s&&v.jsxs("div",{className:"alert alert-warning mb-4","data-testid":"recovery-session-expired",children:[v.jsx(Vn,{className:"size-5",weight:"fill"}),v.jsxs("div",{className:"flex flex-col gap-1",children:[v.jsx("span",{children:e("verifyRecovery.error.expired")}),v.jsx("span",{className:"text-sm opacity-80",children:e("verifyRecovery.redirecting",{seconds:d})}),v.jsx("button",{className:"btn btn-sm btn-ghost mt-2 w-fit",onClick:A,type:"button",children:e("verifyRecovery.redirectNow")})]})]}),v.jsxs("form",{className:"flex flex-col gap-4",onSubmit:_(E),children:[v.jsxs("fieldset",{className:"fieldset",children:[v.jsx("input",{...N,autoComplete:"off",className:`input input-bordered w-full text-center font-mono ${$.code?"input-error":""}`,"data-testid":"recovery-code-input",disabled:s,placeholder:e("verifyRecovery.placeholder"),ref:M=>{T(M),n.current=M},type:"text"}),$.code&&v.jsx("p",{className:"fieldset-label text-error","data-testid":"recovery-error",children:$.code.message})]}),s?v.jsx("button",{className:"btn btn-block btn-disabled mt-2",disabled:!0,type:"button",children:e("verifyRecovery.submit")}):v.jsx(sa,{className:"mt-2",isPending:y.isPending,pendingText:e("verifyRecovery.submitting"),children:e("verifyRecovery.submit")})]}),v.jsx("div",{className:"mt-4 text-center",children:v.jsx("button",{className:"link link-info font-medium text-xs","data-testid":"recovery-back-to-totp",onClick:()=>t.navigate({to:"/verify/totp",search:Je(o)}),type:"button",children:e("verifyRecovery.backToTotp")})}),v.jsx(Tn,{as:vt,linkText:e("verifyRecovery.backToLogin"),search:Je(o),text:"",to:"/login"})]})}const Kz=XE.update({id:"/",path:"/",getParentRoute:()=>Ht}),Qz=G5.update({id:"/terms/",path:"/terms/",getParentRoute:()=>Ht}),Gz=J5.update({id:"/register/",path:"/register/",getParentRoute:()=>Ht}),Jz=sw.update({id:"/profile/",path:"/profile/",getParentRoute:()=>Ht}),Xz=lw.update({id:"/login/",path:"/login/",getParentRoute:()=>Ht}),Yz=hz.update({id:"/error/",path:"/error/",getParentRoute:()=>Ht}),Wz=uw.update({id:"/consent/",path:"/consent/",getParentRoute:()=>Ht}),eR=dw.update({id:"/verify/totp/",path:"/verify/totp/",getParentRoute:()=>Ht}),tR=fw.update({id:"/verify/passkey/",path:"/verify/passkey/",getParentRoute:()=>Ht}),nR=mw.update({id:"/verify/email/",path:"/verify/email/",getParentRoute:()=>Ht}),rR=pw.update({id:"/verify/2fa/",path:"/verify/2fa/",getParentRoute:()=>Ht}),aR=hw.update({id:"/setup/totp/",path:"/setup/totp/",getParentRoute:()=>Ht}),iR=gw.update({id:"/setup/passkey/",path:"/setup/passkey/",getParentRoute:()=>Ht}),oR=vw.update({id:"/setup/2fa/",path:"/setup/2fa/",getParentRoute:()=>Ht}),sR=yw.update({id:"/password/reset/",path:"/password/reset/",getParentRoute:()=>Ht}),lR=Uz.update({id:"/password/forgot/",path:"/password/forgot/",getParentRoute:()=>Ht}),cR=bw.update({id:"/login/password/",path:"/login/password/",getParentRoute:()=>Ht}),uR=_w.update({id:"/verify/totp/recovery/",path:"/verify/totp/recovery/",getParentRoute:()=>Ht}),dR={IndexRoute:Kz,ConsentIndexRoute:Wz,ErrorIndexRoute:Yz,LoginIndexRoute:Xz,ProfileIndexRoute:Jz,RegisterIndexRoute:Gz,TermsIndexRoute:Qz,LoginPasswordIndexRoute:cR,PasswordForgotIndexRoute:lR,PasswordResetIndexRoute:sR,Setup2faIndexRoute:oR,SetupPasskeyIndexRoute:iR,SetupTotpIndexRoute:aR,Verify2faIndexRoute:rR,VerifyEmailIndexRoute:nR,VerifyPasskeyIndexRoute:tR,VerifyTotpIndexRoute:eR,VerifyTotpRecoveryIndexRoute:uR},fR=Ht._addFileChildren(dR)._addFileTypes(),mR=lA({routeTree:fR,context:{queryClient:vm,user:null,i18n:Zt},scrollRestoration:!0}),xw=document.getElementById("root");if(!xw)throw new Error("Root element not found");class pR extends g.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,a){console.error("App bootstrap error:",t,a)}render(){return this.state.error?v.jsx("div",{className:"flex min-h-screen flex-col bg-base-200 p-4",children:v.jsx("div",{className:"flex flex-1 items-center justify-center",children:v.jsxs("div",{className:"card w-full max-w-100 border border-base-200 bg-base-100 p-12 shadow-lg",children:[v.jsx("h1",{className:"mb-2 text-center font-bold text-2xl",children:"Service Unavailable"}),v.jsx("p",{className:"mb-6 text-center text-base-content/60",children:"Unable to load the application. Please try again later."}),v.jsx("button",{className:"btn btn-primary btn-block h-10 font-semibold text-[14px]",onClick:()=>window.location.reload(),type:"button",children:"Reload"})]})})}):this.props.children}}const hR=g.memo(()=>{const[e,t]=g.useState(!1),[{data:a},{data:o}]=yk({queries:[Le,We]});return g.useEffect(()=>{o&&!e&&(aE({supportedLanguages:o.i18n.supported_languages,defaultLanguage:o.i18n.default_language,fallbackLanguage:o.i18n.fallback_language}),t(!0))},[o,e]),e?v.jsx(dA,{context:{queryClient:vm,user:a.user??null,i18n:Zt},router:mR}):null});gA.createRoot(xw).render(v.jsx(g.StrictMode,{children:v.jsx(pR,{children:v.jsx(fk,{client:vm,children:v.jsx(hR,{})})})}));
|
|
76
|
-
//# sourceMappingURL=index-CLq6d6iO.js.map
|