From 9e0e4ad19178cc235ff28f8540f710f0a6ec4d53 Mon Sep 17 00:00:00 2001 From: Kakabay <2kakabayashyrberdyew@gmail.com> Date: Sun, 9 Feb 2025 18:36:07 +0500 Subject: [PATCH] build --- .../{about-CtEpbvuJ.js => about-CMgbXwv8.js} | 2 +- dist/assets/axios-upsvKRUO.js | 6 + .../{b2b-BX_6A3wb.js => b2b-CqSccVir.js} | 2 +- ...BViPRrC3.js => become-sponsor-DppE17kq.js} | 2 +- ...tacts-Xw9vgvgv.js => contacts-CaxKG6X1.js} | 2 +- .../{home-B1vkj3tH.js => home-txdTrUQ0.js} | 2 +- .../{index-D_mH2det.js => index-BIc4fExB.js} | 4 +- dist/assets/index-DW_MHI2K.js | 6 - dist/assets/radio-group-BLXRVl3s.js | 1 - dist/assets/radio-group-D8w5Al47.js | 1 + dist/assets/react-vendor-ERTQd_Nj.js | 53 ------- dist/assets/react-vendor-OnsDvTPE.js | 53 +++++++ ...ervice-BFT831D0.js => service-D5qlX6-G.js} | 2 +- ...orm-DZXUVDas.js => stend-form-BY8w56AL.js} | 2 +- dist/assets/stend.data-CaqZQ919.js | 1 + dist/assets/stend.data-DKNyBYOr.js | 1 - dist/assets/ui-library-DIIRVSEU.js | 129 ------------------ dist/assets/ui-library-TPw9Lr4N.js | 129 ++++++++++++++++++ ...CJJ8CWfz.js => use-scroll-top-ByehxtTO.js} | 2 +- dist/index.html | 30 ++-- 20 files changed, 215 insertions(+), 215 deletions(-) rename dist/assets/{about-CtEpbvuJ.js => about-CMgbXwv8.js} (70%) create mode 100644 dist/assets/axios-upsvKRUO.js rename dist/assets/{b2b-BX_6A3wb.js => b2b-CqSccVir.js} (98%) rename dist/assets/{become-sponsor-BViPRrC3.js => become-sponsor-DppE17kq.js} (90%) rename dist/assets/{contacts-Xw9vgvgv.js => contacts-CaxKG6X1.js} (82%) rename dist/assets/{home-B1vkj3tH.js => home-txdTrUQ0.js} (76%) rename dist/assets/{index-D_mH2det.js => index-BIc4fExB.js} (98%) delete mode 100644 dist/assets/index-DW_MHI2K.js delete mode 100644 dist/assets/radio-group-BLXRVl3s.js create mode 100644 dist/assets/radio-group-D8w5Al47.js delete mode 100644 dist/assets/react-vendor-ERTQd_Nj.js create mode 100644 dist/assets/react-vendor-OnsDvTPE.js rename dist/assets/{service-BFT831D0.js => service-D5qlX6-G.js} (80%) rename dist/assets/{stend-form-DZXUVDas.js => stend-form-BY8w56AL.js} (94%) create mode 100644 dist/assets/stend.data-CaqZQ919.js delete mode 100644 dist/assets/stend.data-DKNyBYOr.js delete mode 100644 dist/assets/ui-library-DIIRVSEU.js create mode 100644 dist/assets/ui-library-TPw9Lr4N.js rename dist/assets/{use-scroll-top-CJJ8CWfz.js => use-scroll-top-ByehxtTO.js} (54%) diff --git a/dist/assets/about-CtEpbvuJ.js b/dist/assets/about-CMgbXwv8.js similarity index 70% rename from dist/assets/about-CtEpbvuJ.js rename to dist/assets/about-CMgbXwv8.js index 4e6810e..5189aae 100644 --- a/dist/assets/about-CtEpbvuJ.js +++ b/dist/assets/about-CMgbXwv8.js @@ -1 +1 @@ -import{u as t,j as s,f as e,C as u,L as n,A as r,g as i,h as x,k as l,l as j}from"./ui-library-DIIRVSEU.js";import"./react-vendor-ERTQd_Nj.js";import{u as m}from"./use-scroll-top-CJJ8CWfz.js";function f(){m();const o=t(a=>a.lang);return s.jsxs("div",{className:e(""),children:[s.jsx(u,{title:o===n.RU?"О выставке":"About exhibition"}),s.jsx(r,{}),s.jsx(i,{}),s.jsx(x,{}),s.jsx(l,{}),s.jsx(j,{})]})}export{f as default}; +import{u as t,j as s,f as e,C as u,L as n,A as r,g as i,h as x,k as l,l as j}from"./ui-library-TPw9Lr4N.js";import"./react-vendor-OnsDvTPE.js";import{u as m}from"./use-scroll-top-ByehxtTO.js";function f(){m();const o=t(a=>a.lang);return s.jsxs("div",{className:e(""),children:[s.jsx(u,{title:o===n.RU?"О выставке":"About exhibition"}),s.jsx(r,{}),s.jsx(i,{}),s.jsx(x,{}),s.jsx(l,{}),s.jsx(j,{})]})}export{f as default}; diff --git a/dist/assets/axios-upsvKRUO.js b/dist/assets/axios-upsvKRUO.js new file mode 100644 index 0000000..44f89ed --- /dev/null +++ b/dist/assets/axios-upsvKRUO.js @@ -0,0 +1,6 @@ +function Ne(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ze}=Object.prototype,{getPrototypeOf:ue}=Object,K=(e=>t=>{const n=Ze.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),C=e=>(e=e.toLowerCase(),t=>K(t)===e),v=e=>t=>typeof t===e,{isArray:U}=Array,q=v("undefined");function Ye(e){return e!==null&&!q(e)&&e.constructor!==null&&!q(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pe=C("ArrayBuffer");function et(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Pe(e.buffer),t}const tt=v("string"),x=v("function"),_e=v("number"),X=e=>e!==null&&typeof e=="object",nt=e=>e===!0||e===!1,z=e=>{if(K(e)!=="object")return!1;const t=ue(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},rt=C("Date"),st=C("File"),ot=C("Blob"),it=C("FileList"),at=e=>X(e)&&x(e.pipe),ct=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||x(e.append)&&((t=K(e))==="formdata"||t==="object"&&x(e.toString)&&e.toString()==="[object FormData]"))},ut=C("URLSearchParams"),[lt,ft,dt,pt]=["ReadableStream","Request","Response","Headers"].map(C),ht=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function I(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),U(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const L=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Le=e=>!q(e)&&e!==L;function re(){const{caseless:e}=Le(this)&&this||{},t={},n=(r,s)=>{const o=e&&Fe(t,s)||s;z(t[o])&&z(r)?t[o]=re(t[o],r):z(r)?t[o]=re({},r):U(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(I(t,(s,o)=>{n&&x(s)?e[o]=Ne(s,n):e[o]=s},{allOwnKeys:r}),e),yt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},wt=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&ue(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Et=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Rt=e=>{if(!e)return null;if(U(e))return e;let t=e.length;if(!_e(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},St=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ue(Uint8Array)),gt=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Ot=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Tt=C("HTMLFormElement"),At=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),he=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xt=C("RegExp"),Be=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};I(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Ct=e=>{Be(e,(t,n)=>{if(x(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(x(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Nt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return U(e)?r(e):r(String(e).split(t)),n},Pt=()=>{},_t=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Y="abcdefghijklmnopqrstuvwxyz",me="0123456789",De={DIGIT:me,ALPHA:Y,ALPHA_DIGIT:Y+Y.toUpperCase()+me},Ft=(e=16,t=De.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Lt(e){return!!(e&&x(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Bt=e=>{const t=new Array(10),n=(r,s)=>{if(X(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=U(r)?[]:{};return I(r,(i,c)=>{const f=n(i,s+1);!q(f)&&(o[c]=f)}),t[s]=void 0,o}}return r};return n(e,0)},Dt=C("AsyncFunction"),Ut=e=>e&&(X(e)||x(e))&&x(e.then)&&x(e.catch),Ue=((e,t)=>e?setImmediate:t?((n,r)=>(L.addEventListener("message",({source:s,data:o})=>{s===L&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),L.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",x(L.postMessage)),kt=typeof queueMicrotask<"u"?queueMicrotask.bind(L):typeof process<"u"&&process.nextTick||Ue,a={isArray:U,isArrayBuffer:Pe,isBuffer:Ye,isFormData:ct,isArrayBufferView:et,isString:tt,isNumber:_e,isBoolean:nt,isObject:X,isPlainObject:z,isReadableStream:lt,isRequest:ft,isResponse:dt,isHeaders:pt,isUndefined:q,isDate:rt,isFile:st,isBlob:ot,isRegExp:xt,isFunction:x,isStream:at,isURLSearchParams:ut,isTypedArray:St,isFileList:it,forEach:I,merge:re,extend:mt,trim:ht,stripBOM:yt,inherits:bt,toFlatObject:wt,kindOf:K,kindOfTest:C,endsWith:Et,toArray:Rt,forEachEntry:gt,matchAll:Ot,isHTMLForm:Tt,hasOwnProperty:he,hasOwnProp:he,reduceDescriptors:Be,freezeMethods:Ct,toObjectSet:Nt,toCamelCase:At,noop:Pt,toFiniteNumber:_t,findKey:Fe,global:L,isContextDefined:Le,ALPHABET:De,generateString:Ft,isSpecCompliantForm:Lt,toJSONObject:Bt,isAsyncFn:Dt,isThenable:Ut,setImmediate:Ue,asap:kt};function m(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const ke=m.prototype,je={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{je[e]={value:e}});Object.defineProperties(m,je);Object.defineProperty(ke,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,o)=>{const i=Object.create(ke);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const jt=null;function se(e){return a.isPlainObject(e)||a.isArray(e)}function qe(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function ye(e,t,n){return e?e.concat(t).map(function(s,o){return s=qe(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function qt(e){return a.isArray(e)&&!e.some(se)}const It=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function G(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!a.isUndefined(h[y])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(!f&&a.isBlob(p))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,y,h){let w=p;if(p&&!h&&typeof p=="object"){if(a.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&qt(p)||(a.isFileList(p)||a.endsWith(y,"[]"))&&(w=a.toArray(p)))return y=qe(y),w.forEach(function(g,P){!(a.isUndefined(g)||g===null)&&t.append(i===!0?ye([y],P,o):i===null?y:y+"[]",u(g))}),!1}return se(p)?!0:(t.append(ye(h,y,o),u(p)),!1)}const d=[],b=Object.assign(It,{defaultVisitor:l,convertValue:u,isVisitable:se});function E(p,y){if(!a.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(p),a.forEach(p,function(w,R){(!(a.isUndefined(w)||w===null)&&s.call(t,w,a.isString(R)?R.trim():R,y,b))===!0&&E(w,y?y.concat(R):[R])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return E(e),t}function be(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function le(e,t){this._pairs=[],e&&G(e,this,t)}const Ie=le.prototype;Ie.append=function(t,n){this._pairs.push([t,n])};Ie.toString=function(t){const n=t?function(r){return t.call(this,r,be)}:be;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Ht(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function He(e,t,n){if(!t)return e;const r=n&&n.encode||Ht;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new le(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class we{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Me={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mt=typeof URLSearchParams<"u"?URLSearchParams:le,zt=typeof FormData<"u"?FormData:null,Jt=typeof Blob<"u"?Blob:null,Vt={isBrowser:!0,classes:{URLSearchParams:Mt,FormData:zt,Blob:Jt},protocols:["http","https","file","blob","url","data"]},fe=typeof window<"u"&&typeof document<"u",oe=typeof navigator=="object"&&navigator||void 0,$t=fe&&(!oe||["ReactNative","NativeScript","NS"].indexOf(oe.product)<0),Wt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Kt=fe&&window.location.href||"http://localhost",vt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fe,hasStandardBrowserEnv:$t,hasStandardBrowserWebWorkerEnv:Wt,navigator:oe,origin:Kt},Symbol.toStringTag,{value:"Module"})),O={...vt,...Vt};function Xt(e,t){return G(e,new O.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return O.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Gt(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Qt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=Qt(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Gt(r),s,n,0)}),n}return null}function Zt(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const H={transitional:Me,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(ze(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Xt(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return G(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Zt(t)):t}],transformResponse:[function(t){const n=this.transitional||H.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{H.headers[e]={}});const Yt=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),en=e=>{const t={};let n,r,s;return e&&e.split(` +`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Yt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ee=Symbol("internals");function j(e){return e&&String(e).trim().toLowerCase()}function J(e){return e===!1||e==null?e:a.isArray(e)?e.map(J):String(e)}function tn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const nn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ee(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function rn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function sn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class A{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,f,u){const l=j(f);if(!l)throw new Error("header name must be a non-empty string");const d=a.findKey(s,l);(!d||s[d]===void 0||u===!0||u===void 0&&s[d]!==!1)&&(s[d||f]=J(c))}const i=(c,f)=>a.forEach(c,(u,l)=>o(u,l,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!nn(t))i(en(t),n);else if(a.isHeaders(t))for(const[c,f]of t.entries())o(f,c,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=j(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return tn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=j(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ee(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=j(i),i){const c=a.findKey(r,i);c&&(!n||ee(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||ee(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=J(s),delete n[o];return}const c=t?rn(o):String(o).trim();c!==o&&delete n[o],n[c]=J(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ee]=this[Ee]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=j(i);r[c]||(sn(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}A.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(A.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(A);function te(e,t){const n=this||H,r=t||n,s=A.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Je(e){return!!(e&&e.__CANCEL__)}function k(e,t,n){m.call(this,e??"canceled",m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(k,m,{__CANCEL__:!0});function Ve(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function on(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function an(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),l=r[o];i||(i=u),n[s]=f,r[s]=u;let d=o,b=0;for(;d!==s;)b+=n[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i{n=l,s=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const l=Date.now(),d=l-n;d>=r?i(u,l):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-d)))},()=>s&&i(s)]}const $=(e,t,n=3)=>{let r=0;const s=an(50,250);return cn(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,f=i-r,u=s(f),l=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c&&l?(c-i)/u:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(d)},n)},Re=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Se=e=>(...t)=>a.asap(()=>e(...t)),un=O.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,O.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(O.origin),O.navigator&&/(msie|trident)/i.test(O.navigator.userAgent)):()=>!0,ln=O.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $e(e,t){return e&&!fn(t)?dn(e,t):t}const ge=e=>e instanceof A?{...e}:e;function D(e,t){t=t||{};const n={};function r(u,l,d,b){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:b},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(u,l,d,b){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u,d,b)}else return r(u,l,d,b)}function o(u,l){if(!a.isUndefined(l))return r(void 0,l)}function i(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function c(u,l,d){if(d in t)return r(u,l);if(d in e)return r(void 0,u)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(u,l,d)=>s(ge(u),ge(l),d,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(l){const d=f[l]||s,b=d(e[l],t[l],l);a.isUndefined(b)&&d!==c||(n[l]=b)}),n}const We=e=>{const t=D({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=A.from(i),t.url=He($e(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(n)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[u,...l]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...l].join("; "))}}if(O.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&un(t.url))){const u=s&&o&&ln.read(o);u&&i.set(s,u)}return t},pn=typeof XMLHttpRequest<"u",hn=pn&&function(e){return new Promise(function(n,r){const s=We(e);let o=s.data;const i=A.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=s,l,d,b,E,p;function y(){E&&E(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function w(){if(!h)return;const g=A.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:g,config:e,request:h};Ve(function(F){n(F),y()},function(F){r(F),y()},T),h=null}"onloadend"in h?h.onloadend=w:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(w)},h.onabort=function(){h&&(r(new m("Request aborted",m.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const T=s.transitional||Me;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),r(new m(P,T.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(P,T){h.setRequestHeader(T,P)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),u&&([b,p]=$(u,!0),h.addEventListener("progress",b)),f&&h.upload&&([d,E]=$(f),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",E)),(s.cancelToken||s.signal)&&(l=g=>{h&&(r(!g||g.type?new k(null,e,h):g),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const R=on(s.url);if(R&&O.protocols.indexOf(R)===-1){r(new m("Unsupported protocol "+R+":",m.ERR_BAD_REQUEST,e));return}h.send(o||null)})},mn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,c();const l=u instanceof Error?u:this.reason;r.abort(l instanceof m?l:new k(l instanceof Error?l.message:l))}};let i=t&&setTimeout(()=>{i=null,o(new m(`timeout ${t} of ms exceeded`,m.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},yn=function*(e,t){let n=e.byteLength;if(n{const s=bn(e,t);let o=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:u,value:l}=await s.next();if(u){c(),f.close();return}let d=l.byteLength;if(n){let b=o+=d;n(b)}f.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},Q=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ke=Q&&typeof ReadableStream=="function",En=Q&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ve=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rn=Ke&&ve(()=>{let e=!1;const t=new Request(O.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Te=64*1024,ie=Ke&&ve(()=>a.isReadableStream(new Response("").body)),W={stream:ie&&(e=>e.body)};Q&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!W[t]&&(W[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new m(`Response type '${t}' is not supported`,m.ERR_NOT_SUPPORT,r)})})})(new Response);const Sn=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(O.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await En(e)).byteLength},gn=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Sn(t)},On=Q&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:b}=We(e);u=u?(u+"").toLowerCase():"text";let E=mn([s,o&&o.toAbortSignal()],i),p;const y=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let h;try{if(f&&Rn&&n!=="get"&&n!=="head"&&(h=await gn(l,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),_;if(a.isFormData(r)&&(_=T.headers.get("content-type"))&&l.setContentType(_),T.body){const[F,M]=Re(h,$(Se(f)));r=Oe(T.body,Te,F,M)}}a.isString(d)||(d=d?"include":"omit");const w="credentials"in Request.prototype;p=new Request(t,{...b,signal:E,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:w?d:void 0});let R=await fetch(p);const g=ie&&(u==="stream"||u==="response");if(ie&&(c||g&&y)){const T={};["status","statusText","headers"].forEach(pe=>{T[pe]=R[pe]});const _=a.toFiniteNumber(R.headers.get("content-length")),[F,M]=c&&Re(_,$(Se(c),!0))||[];R=new Response(Oe(R.body,Te,F,()=>{M&&M(),y&&y()}),T)}u=u||"text";let P=await W[a.findKey(W,u)||"text"](R,e);return!g&&y&&y(),await new Promise((T,_)=>{Ve(T,_,{data:P,headers:A.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:p})})}catch(w){throw y&&y(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new m("Network Error",m.ERR_NETWORK,e,p),{cause:w.cause||w}):m.from(w,w&&w.code,e,p)}}),ae={http:jt,xhr:hn,fetch:On};a.forEach(ae,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ae=e=>`- ${e}`,Tn=e=>a.isFunction(e)||e===null||e===!1,Xe={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : +`+o.map(Ae).join(` +`):" "+Ae(o[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ae};function ne(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new k(null,e)}function xe(e){return ne(e),e.headers=A.from(e.headers),e.data=te.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xe.getAdapter(e.adapter||H.adapter)(e).then(function(r){return ne(e),r.data=te.call(e,e.transformResponse,r),r.headers=A.from(r.headers),r},function(r){return Je(r)||(ne(e),r&&r.response&&(r.response.data=te.call(e,e.transformResponse,r.response),r.response.headers=A.from(r.response.headers))),Promise.reject(r)})}const Ge="1.7.9",Z={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Z[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ce={};Z.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Ge+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!Ce[i]&&(Ce[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};Z.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function An(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],f=c===void 0||i(c,o,e);if(f!==!0)throw new m("option "+o+" must be "+f,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const V={assertOptions:An,validators:Z},N=V.validators;class B{constructor(t){this.defaults=t,this.interceptors={request:new we,response:new we}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=D(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&V.assertOptions(r,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:V.assertOptions(s,{encode:N.function,serialize:N.function},!0)),V.assertOptions(n,{baseUrl:N.spelling("baseURL"),withXsrfToken:N.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=A.concat(i,o);const c=[];let f=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(f=f&&y.synchronous,c.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let l,d=0,b;if(!f){const p=[xe.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,u),b=p.length,l=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new k(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new de(function(s){t=s}),cancel:t}}}function xn(e){return function(n){return e.apply(null,n)}}function Cn(e){return a.isObject(e)&&e.isAxiosError===!0}const ce={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ce).forEach(([e,t])=>{ce[t]=e});function Qe(e){const t=new B(e),n=Ne(B.prototype.request,t);return a.extend(n,B.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Qe(D(e,s))},n}const S=Qe(H);S.Axios=B;S.CanceledError=k;S.CancelToken=de;S.isCancel=Je;S.VERSION=Ge;S.toFormData=G;S.AxiosError=m;S.Cancel=S.CanceledError;S.all=function(t){return Promise.all(t)};S.spread=xn;S.isAxiosError=Cn;S.mergeConfig=D;S.AxiosHeaders=A;S.formToJSON=e=>ze(a.isHTMLForm(e)?new FormData(e):e);S.getAdapter=Xe.getAdapter;S.HttpStatusCode=ce;S.default=S;export{S as a}; diff --git a/dist/assets/b2b-BX_6A3wb.js b/dist/assets/b2b-CqSccVir.js similarity index 98% rename from dist/assets/b2b-BX_6A3wb.js rename to dist/assets/b2b-CqSccVir.js index 169aa85..757615c 100644 --- a/dist/assets/b2b-BX_6A3wb.js +++ b/dist/assets/b2b-CqSccVir.js @@ -1 +1 @@ -import{z as l,m as B,u as f,j as e,n as S,o as r,p as R,q as j,r as y,L as u,s as v,t as o,B as h,v as D,w as V,x as E,y as N,D as q,E as z,C as H,G as L}from"./ui-library-DIIRVSEU.js";import{a as w}from"./react-vendor-ERTQd_Nj.js";import{a as U}from"./index-DW_MHI2K.js";import{R as A,a as C}from"./radio-group-BLXRVl3s.js";import{u as T}from"./use-scroll-top-CJJ8CWfz.js";const I=l.object({type:l.string(),company_name:l.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),representative_name:l.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:l.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:l.string().min(1,{message:"Укажите количество участников"}),country:l.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email_address:l.string().email({message:"Укажите корректный email"}),phone_number:l.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:l.string().optional(),meeting_objective:l.string().min(3,{message:"Укажите цель встречи"}),proposal_description:l.string().optional(),government_agency:l.string().optional(),sector_industry:l.string().optional(),key_services:l.string().optional(),government_experience:l.string().optional(),preferred_meeting_datetime:l.string().optional(),meeting_mode:l.string().optional(),language_preference:l.string().optional(),technical_requirements:l.string().optional(),company_profile:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),proposal_presentation:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),relevant_certification:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional()}),J={type:"B2B",company_name:"",representative_name:"",job_title:"",participants_number:"",country:"",email_address:"",phone_number:"",website:"",meeting_objective:"",proposal_description:"",government_agency:"",sector_industry:"",key_services:"",government_experience:"",preferred_meeting_datetime:"",meeting_mode:"",language_preference:"",technical_requirements:""},m=[{h2:"Информация об экспоненте:",data:[{label:"Название компании/организации"},{label:"Имя представителя"},{label:"Название должности/позиция"},{label:"Количество участников"},{label:"Страна"},{label:"Email адрес"},{label:"Номер телефона"},{label:"Вебсайт"}]},{h2:"Applicant Information:",data:[{label:"Company/Organization Name"},{label:"Name of Representative"},{label:"Job title/Position"},{label:"Number of the participants"},{label:"Country"},{label:"E-mail address"},{label:"Phone number"},{label:"Website"}]}],p=[{h2:"Цели встречи:",secondH2:"Информация о компании/организации:",data:[{label:"Основная цель встречи"},{label:"Краткое описание вашего предложения/проекта/запроса"},{label:"Соответствующее государственное учреждение/департамент"},{label:"Отраслевая промышленность"},{label:"Ключевые услуги/продукты"},{label:"Предыдущий опыт работы с правительствами (если применимо)"}]},{h2:"Meeting Purpose: ",secondH2:"Company/Organization Profile:",data:[{label:"Primary objective of the meeting"},{label:"Brief description of your proposal/project/request"},{label:"Relevant government agency/department"},{label:"Sector Industry "},{label:"Key Services/Products"},{label:"Previous Experience working with Governments (if applicable)"}]}],c=[{h2:"Логистика встречи:",secondH2:"Логистика встречи:",subtitle:"(Пожалуйста приложите следующие документы, если это необходимо)",data:[{label:"Предпочтительная дата и время"},{label:"Предпочтительный способ проведения встречи (лично, виртуально (через zoom/ teams/другое), гибридный)"},{label:"Предпочитаемый язык (английский, туркменский, русский, другой)"},{label:"Дополнительные технические или логистические требования (например, аудио-видео оборудование, переводчики и т.д.)"},{label:"Название компании/организации"},{label:"Предложение/презентация"},{label:"Соответствующие сертификаты/лицензии"}],button:"Отправить"},{h2:"Приложения:",secondH2:"Attachments",subtitle:"(Please attach the following documents as applicable)",data:[{label:"Preferred date and time for the meeting"},{label:"Preferred mode of meeting (in-person, virtual (via zoom/teams/other), hybrid)"},{label:"Language preference (English, turkmen, Russian, other)"},{label:"Additional technical or logistical requirements (e.g. AV equipment, interpreters, etc)"},{label:"Company/organization profile"},{label:"Proposal presentation"},{label:"Relevant certification/licenses"}],button:"Send"}],O=({handleNext:s})=>{const{control:n,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[e.jsx("h2",{className:"h2 mb-8",children:m[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(R,{defaultValue:1,control:n,name:"type",render:({field:i})=>e.jsxs(j,{className:"space-y-3",children:[e.jsx(y,{className:"text-xl",children:a===u.RU?"Тип:":"Type:"}),e.jsx(v,{children:e.jsxs(A,{onValueChange:i.onChange,defaultValue:i.value,className:"flex flex-col space-y-4",children:[e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2B",checked:i.value==="B2B"})}),e.jsx(y,{className:"text-base",children:"B2B"})]}),e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2G",checked:i.value==="B2G"})}),e.jsx(y,{className:"text-base",children:"B2G"})]})]})})]})}),e.jsx(o,{control:n,name:"company_name",error:t.errors.company_name,placeholder:"",label:m[r(a)].data[0].label}),e.jsx(o,{control:n,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:m[r(a)].data[1].label}),e.jsx(o,{control:n,name:"job_title",error:t.errors.job_title,placeholder:"",label:m[r(a)].data[2].label}),e.jsx(o,{control:n,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:m[r(a)].data[3].label}),e.jsx(o,{control:n,name:"country",error:t.errors.country,placeholder:"",label:m[r(a)].data[4].label}),e.jsx(o,{control:n,name:"email_address",error:t.errors.email_address,placeholder:"",label:m[r(a)].data[5].label}),e.jsx(o,{control:n,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:m[r(a)].data[6].label}),e.jsx(o,{control:n,name:"website",placeholder:"",label:m[r(a)].data[7].label})]}),e.jsx(h,{variant:"secondary",type:"button",onClick:s,className:"w-full mt-10",children:a===u.RU?"Далее":"Next"})]})},$=({handleNext:s,handlePrev:n})=>{const t=f(x=>x.lang),{control:a,formState:i}=B();return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[e.jsx("h2",{className:"h2 mb-8",children:p[r(t)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(o,{control:a,name:"meeting_objective",error:i.errors.meeting_objective,placeholder:"",label:p[r(t)].data[0].label}),e.jsx(o,{control:a,name:"proposal_description",error:i.errors.proposal_description,placeholder:"",label:p[r(t)].data[1].label}),e.jsx(o,{control:a,name:"government_agency",error:i.errors.government_agency,placeholder:"",label:p[r(t)].data[2].label}),e.jsx("h2",{className:"h2 mt-4",children:p[r(t)].secondH2}),e.jsx(o,{control:a,name:"sector_industry",error:i.errors.sector_industry,placeholder:"",label:p[r(t)].data[3].label}),e.jsx(o,{control:a,name:"key_services",error:i.errors.key_services,placeholder:"",label:p[r(t)].data[4].label}),e.jsx(o,{control:a,name:"government_experience",error:i.errors.government_experience,placeholder:"",label:p[r(t)].data[5].label})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:n,variant:"outline",className:"text-on_surface",children:t===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{variant:"secondary",type:"button",onClick:s,className:"w-full",children:t===u.RU?"Далее":"Next"})]})]})},K=({handlePrev:s})=>{const{control:n,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[e.jsx("h2",{className:"h2 mb-8",children:c[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsx(o,{control:n,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:c[r(a)].data[0].label}),e.jsx(o,{control:n,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:c[r(a)].data[1].label}),e.jsx(o,{control:n,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:c[r(a)].data[2].label}),e.jsx(o,{control:n,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:c[r(a)].data[3].label})]}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"h2 mt-10",children:c[r(a)].secondH2}),e.jsx("h5",{className:"text-on_surface_v",children:c[r(a)].subtitle})]}),e.jsx(o,{control:n,name:"company_profile",label:c[r(a)].data[4].label,type:"file",textDark:!0}),e.jsx(o,{control:n,name:"proposal_presentation",label:c[r(a)].data[5].label,type:"file",textDark:!0}),e.jsx(o,{control:n,name:"relevant_certification",label:c[r(a)].data[6].label,type:"file",textDark:!0})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:s,variant:"outline",className:"text-on_surface",children:a===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{disabled:t.isSubmitting,type:"submit",className:"w-full",children:t.isSubmitting?e.jsx(D,{className:"animate-spin"}):c[r(a)].button})]})]})},M=({stage:s,setStage:n,success:t,setSuccess:a})=>{const i=V({resolver:z(I),defaultValues:J,mode:"onChange"}),x=d=>{switch(d){case 1:return["type","company_name","representative_name","job_title","participants_number","country","email_address","phone_number","website"];case 2:return["meeting_objective","proposal_description","government_agency","sector_industry","key_services","government_experience"];case 3:return["preferred_meeting_datetime","meeting_mode","language_preference","technical_requirements","company_profile","proposal_presentation","relevant_certification"];default:return[]}},P=async()=>{const d=x(s);await i.trigger(d)&&n(k=>k+1)},F=()=>n(d=>d-1),G=async d=>{try{const b=new FormData;Object.entries(d).forEach(([_,g])=>{g instanceof File?(console.log(`Добавляем файл: ${_}`,g),b.append(_,g)):g!==void 0&&(console.log(`Добавляем поле: ${_}`,g),b.append(_,g))}),(await U.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",b,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&a(!0)}catch(b){console.error("Ошибка при отправке B2B формы:",b)}};return e.jsx(E,{...i,children:e.jsx("form",{onSubmit:i.handleSubmit(G),children:e.jsxs("div",{className:"relative",children:[e.jsx(N,{children:s===1&&e.jsx(O,{handleNext:P})}),e.jsx(N,{children:s===2&&e.jsx($,{handleNext:P,handlePrev:F})}),e.jsx(N,{children:s===3&&t===!1&&e.jsx(K,{handlePrev:F})}),t&&e.jsx(q,{})]})})})};function ee(){T();const s=f(x=>x.lang),[n,t]=w.useState(1),[a,i]=w.useState(!1);return e.jsxs("div",{className:"pb-[120px]",children:[e.jsx(H,{title:s===u.RU?"B2B | B2G встречи":"B2B | B2G meetings"}),!a&&n!==0&&e.jsx(L,{stage:n}),e.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:e.jsx(M,{success:a,setSuccess:i,stage:n,setStage:t})})]})}export{ee as default}; +import{z as l,m as B,u as f,j as e,n as S,o as r,p as R,q as j,r as y,L as u,s as v,t as o,B as h,v as D,w as V,x as E,y as N,D as q,E as z,C as H,G as L}from"./ui-library-TPw9Lr4N.js";import{a as w}from"./react-vendor-OnsDvTPE.js";import{a as U}from"./axios-upsvKRUO.js";import{R as A,a as C}from"./radio-group-D8w5Al47.js";import{u as T}from"./use-scroll-top-ByehxtTO.js";const I=l.object({type:l.string(),company_name:l.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),representative_name:l.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:l.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:l.string().min(1,{message:"Укажите количество участников"}),country:l.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email_address:l.string().email({message:"Укажите корректный email"}),phone_number:l.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:l.string().optional(),meeting_objective:l.string().min(3,{message:"Укажите цель встречи"}),proposal_description:l.string().optional(),government_agency:l.string().optional(),sector_industry:l.string().optional(),key_services:l.string().optional(),government_experience:l.string().optional(),preferred_meeting_datetime:l.string().optional(),meeting_mode:l.string().optional(),language_preference:l.string().optional(),technical_requirements:l.string().optional(),company_profile:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),proposal_presentation:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),relevant_certification:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional()}),J={type:"B2B",company_name:"",representative_name:"",job_title:"",participants_number:"",country:"",email_address:"",phone_number:"",website:"",meeting_objective:"",proposal_description:"",government_agency:"",sector_industry:"",key_services:"",government_experience:"",preferred_meeting_datetime:"",meeting_mode:"",language_preference:"",technical_requirements:""},m=[{h2:"Информация об экспоненте:",data:[{label:"Название компании/организации"},{label:"Имя представителя"},{label:"Название должности/позиция"},{label:"Количество участников"},{label:"Страна"},{label:"Email адрес"},{label:"Номер телефона"},{label:"Вебсайт"}]},{h2:"Applicant Information:",data:[{label:"Company/Organization Name"},{label:"Name of Representative"},{label:"Job title/Position"},{label:"Number of the participants"},{label:"Country"},{label:"E-mail address"},{label:"Phone number"},{label:"Website"}]}],p=[{h2:"Цели встречи:",secondH2:"Информация о компании/организации:",data:[{label:"Основная цель встречи"},{label:"Краткое описание вашего предложения/проекта/запроса"},{label:"Соответствующее государственное учреждение/департамент"},{label:"Отраслевая промышленность"},{label:"Ключевые услуги/продукты"},{label:"Предыдущий опыт работы с правительствами (если применимо)"}]},{h2:"Meeting Purpose: ",secondH2:"Company/Organization Profile:",data:[{label:"Primary objective of the meeting"},{label:"Brief description of your proposal/project/request"},{label:"Relevant government agency/department"},{label:"Sector Industry "},{label:"Key Services/Products"},{label:"Previous Experience working with Governments (if applicable)"}]}],c=[{h2:"Логистика встречи:",secondH2:"Логистика встречи:",subtitle:"(Пожалуйста приложите следующие документы, если это необходимо)",data:[{label:"Предпочтительная дата и время"},{label:"Предпочтительный способ проведения встречи (лично, виртуально (через zoom/ teams/другое), гибридный)"},{label:"Предпочитаемый язык (английский, туркменский, русский, другой)"},{label:"Дополнительные технические или логистические требования (например, аудио-видео оборудование, переводчики и т.д.)"},{label:"Название компании/организации"},{label:"Предложение/презентация"},{label:"Соответствующие сертификаты/лицензии"}],button:"Отправить"},{h2:"Приложения:",secondH2:"Attachments",subtitle:"(Please attach the following documents as applicable)",data:[{label:"Preferred date and time for the meeting"},{label:"Preferred mode of meeting (in-person, virtual (via zoom/teams/other), hybrid)"},{label:"Language preference (English, turkmen, Russian, other)"},{label:"Additional technical or logistical requirements (e.g. AV equipment, interpreters, etc)"},{label:"Company/organization profile"},{label:"Proposal presentation"},{label:"Relevant certification/licenses"}],button:"Send"}],O=({handleNext:s})=>{const{control:n,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[e.jsx("h2",{className:"h2 mb-8",children:m[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(R,{defaultValue:1,control:n,name:"type",render:({field:i})=>e.jsxs(j,{className:"space-y-3",children:[e.jsx(y,{className:"text-xl",children:a===u.RU?"Тип:":"Type:"}),e.jsx(v,{children:e.jsxs(A,{onValueChange:i.onChange,defaultValue:i.value,className:"flex flex-col space-y-4",children:[e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2B",checked:i.value==="B2B"})}),e.jsx(y,{className:"text-base",children:"B2B"})]}),e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2G",checked:i.value==="B2G"})}),e.jsx(y,{className:"text-base",children:"B2G"})]})]})})]})}),e.jsx(o,{control:n,name:"company_name",error:t.errors.company_name,placeholder:"",label:m[r(a)].data[0].label}),e.jsx(o,{control:n,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:m[r(a)].data[1].label}),e.jsx(o,{control:n,name:"job_title",error:t.errors.job_title,placeholder:"",label:m[r(a)].data[2].label}),e.jsx(o,{control:n,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:m[r(a)].data[3].label}),e.jsx(o,{control:n,name:"country",error:t.errors.country,placeholder:"",label:m[r(a)].data[4].label}),e.jsx(o,{control:n,name:"email_address",error:t.errors.email_address,placeholder:"",label:m[r(a)].data[5].label}),e.jsx(o,{control:n,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:m[r(a)].data[6].label}),e.jsx(o,{control:n,name:"website",placeholder:"",label:m[r(a)].data[7].label})]}),e.jsx(h,{variant:"secondary",type:"button",onClick:s,className:"w-full mt-10",children:a===u.RU?"Далее":"Next"})]})},$=({handleNext:s,handlePrev:n})=>{const t=f(x=>x.lang),{control:a,formState:i}=B();return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[e.jsx("h2",{className:"h2 mb-8",children:p[r(t)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(o,{control:a,name:"meeting_objective",error:i.errors.meeting_objective,placeholder:"",label:p[r(t)].data[0].label}),e.jsx(o,{control:a,name:"proposal_description",error:i.errors.proposal_description,placeholder:"",label:p[r(t)].data[1].label}),e.jsx(o,{control:a,name:"government_agency",error:i.errors.government_agency,placeholder:"",label:p[r(t)].data[2].label}),e.jsx("h2",{className:"h2 mt-4",children:p[r(t)].secondH2}),e.jsx(o,{control:a,name:"sector_industry",error:i.errors.sector_industry,placeholder:"",label:p[r(t)].data[3].label}),e.jsx(o,{control:a,name:"key_services",error:i.errors.key_services,placeholder:"",label:p[r(t)].data[4].label}),e.jsx(o,{control:a,name:"government_experience",error:i.errors.government_experience,placeholder:"",label:p[r(t)].data[5].label})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:n,variant:"outline",className:"text-on_surface",children:t===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{variant:"secondary",type:"button",onClick:s,className:"w-full",children:t===u.RU?"Далее":"Next"})]})]})},K=({handlePrev:s})=>{const{control:n,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[e.jsx("h2",{className:"h2 mb-8",children:c[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsx(o,{control:n,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:c[r(a)].data[0].label}),e.jsx(o,{control:n,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:c[r(a)].data[1].label}),e.jsx(o,{control:n,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:c[r(a)].data[2].label}),e.jsx(o,{control:n,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:c[r(a)].data[3].label})]}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"h2 mt-10",children:c[r(a)].secondH2}),e.jsx("h5",{className:"text-on_surface_v",children:c[r(a)].subtitle})]}),e.jsx(o,{control:n,name:"company_profile",label:c[r(a)].data[4].label,type:"file",textDark:!0}),e.jsx(o,{control:n,name:"proposal_presentation",label:c[r(a)].data[5].label,type:"file",textDark:!0}),e.jsx(o,{control:n,name:"relevant_certification",label:c[r(a)].data[6].label,type:"file",textDark:!0})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:s,variant:"outline",className:"text-on_surface",children:a===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{disabled:t.isSubmitting,type:"submit",className:"w-full",children:t.isSubmitting?e.jsx(D,{className:"animate-spin"}):c[r(a)].button})]})]})},M=({stage:s,setStage:n,success:t,setSuccess:a})=>{const i=V({resolver:z(I),defaultValues:J,mode:"onChange"}),x=d=>{switch(d){case 1:return["type","company_name","representative_name","job_title","participants_number","country","email_address","phone_number","website"];case 2:return["meeting_objective","proposal_description","government_agency","sector_industry","key_services","government_experience"];case 3:return["preferred_meeting_datetime","meeting_mode","language_preference","technical_requirements","company_profile","proposal_presentation","relevant_certification"];default:return[]}},P=async()=>{const d=x(s);await i.trigger(d)&&n(k=>k+1)},F=()=>n(d=>d-1),G=async d=>{try{const b=new FormData;Object.entries(d).forEach(([_,g])=>{g instanceof File?(console.log(`Добавляем файл: ${_}`,g),b.append(_,g)):g!==void 0&&(console.log(`Добавляем поле: ${_}`,g),b.append(_,g))}),(await U.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",b,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&a(!0)}catch(b){console.error("Ошибка при отправке B2B формы:",b)}};return e.jsx(E,{...i,children:e.jsx("form",{onSubmit:i.handleSubmit(G),children:e.jsxs("div",{className:"relative",children:[e.jsx(N,{children:s===1&&e.jsx(O,{handleNext:P})}),e.jsx(N,{children:s===2&&e.jsx($,{handleNext:P,handlePrev:F})}),e.jsx(N,{children:s===3&&t===!1&&e.jsx(K,{handlePrev:F})}),t&&e.jsx(q,{})]})})})};function ee(){T();const s=f(x=>x.lang),[n,t]=w.useState(1),[a,i]=w.useState(!1);return e.jsxs("div",{className:"pb-[120px]",children:[e.jsx(H,{title:s===u.RU?"B2B | B2G встречи":"B2B | B2G meetings"}),!a&&n!==0&&e.jsx(L,{stage:n}),e.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:e.jsx(M,{success:a,setSuccess:i,stage:n,setStage:t})})]})}export{ee as default}; diff --git a/dist/assets/become-sponsor-BViPRrC3.js b/dist/assets/become-sponsor-DppE17kq.js similarity index 90% rename from dist/assets/become-sponsor-BViPRrC3.js rename to dist/assets/become-sponsor-DppE17kq.js index 23b859a..e2e105f 100644 --- a/dist/assets/become-sponsor-BViPRrC3.js +++ b/dist/assets/become-sponsor-DppE17kq.js @@ -1 +1 @@ -import{z as t,u as h,w as _,j as e,C as g,L as f,y,x as S,n as v,t as l,o,p as F,q as c,r as i,s as p,B as N,v as w,D as C,E as L}from"./ui-library-DIIRVSEU.js";import{a as R}from"./react-vendor-ERTQd_Nj.js";import{R as B,a as j}from"./radio-group-BLXRVl3s.js";import{p as V}from"./service-BFT831D0.js";import{u as D}from"./use-scroll-top-CJJ8CWfz.js";import{s as r}from"./stend.data-DKNyBYOr.js";import"./index-DW_MHI2K.js";const E=t.object({company_name:t.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:t.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:t.string().min(3,{message:"Должность должна быть не менее 3 символов"}),country:t.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:t.string().email({message:"Укажите корректный email"}),phone:t.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:t.string().optional(),visa_support:t.string().optional()}),T={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""};function O(){D();const a=h(n=>n.lang),[x,b]=R.useState(!1),s=_({resolver:L(E),defaultValues:T}),d=async n=>{try{await V(n)&&b(!0)}catch(u){console.error("POST sponsor error",u)}},{errors:m}=s.formState;return e.jsxs("div",{children:[e.jsx(g,{title:a===f.RU?"Стать спонсором":"Become a sponsor"}),e.jsx(y,{children:!x&&e.jsx(S,{...s,children:e.jsxs(v.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] mx-auto px-5 md:mt-20 mt-10 mb-20 md:mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(d),children:[e.jsx(l,{label:r[o(a)].label_1,name:"company_name",control:s.control,error:m.company_name}),e.jsx(l,{label:r[o(a)].label_2,name:"rep_name",control:s.control,error:m.rep_name}),e.jsx(l,{label:r[o(a)].label_3,name:"job_title",control:s.control,error:m.job_title}),e.jsx(l,{label:r[o(a)].label_4,name:"country",control:s.control,error:m.country}),e.jsx(l,{label:r[o(a)].label_5,name:"email",control:s.control,error:m.email}),e.jsx(l,{label:r[o(a)].label_6,name:"phone",control:s.control,error:m.phone}),e.jsx(l,{label:r[o(a)].label_7,name:"website",control:s.control}),e.jsx(F,{control:s.control,name:"visa_support",render:({field:n})=>e.jsxs(c,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:r[o(a)].visa}),e.jsx(p,{children:e.jsxs(B,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(c,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(j,{value:"yes",checked:n.value==="yes"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio})]}),e.jsxs(c,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(j,{value:"no",checked:n.value==="no"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio_2})]})]})})]})}),e.jsx(N,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?e.jsx(w,{className:"animate-spin"}):r[o(a)].button})]})})}),x&&e.jsx(C,{delay:.3})]})}export{O as default}; +import{z as t,u as h,w as _,j as e,C as g,L as f,y,x as S,n as v,t as l,o,p as F,q as c,r as i,s as p,B as N,v as w,D as C,E as L}from"./ui-library-TPw9Lr4N.js";import{a as R}from"./react-vendor-OnsDvTPE.js";import{R as B,a as j}from"./radio-group-D8w5Al47.js";import{p as V}from"./service-D5qlX6-G.js";import{u as D}from"./use-scroll-top-ByehxtTO.js";import{s as r}from"./stend.data-CaqZQ919.js";import"./axios-upsvKRUO.js";const E=t.object({company_name:t.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:t.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:t.string().min(3,{message:"Должность должна быть не менее 3 символов"}),country:t.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:t.string().email({message:"Укажите корректный email"}),phone:t.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:t.string().optional(),visa_support:t.string().optional()}),T={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""};function O(){D();const a=h(n=>n.lang),[x,b]=R.useState(!1),s=_({resolver:L(E),defaultValues:T}),d=async n=>{try{await V(n)&&b(!0)}catch(u){console.error("POST sponsor error",u)}},{errors:m}=s.formState;return e.jsxs("div",{children:[e.jsx(g,{title:a===f.RU?"Стать спонсором":"Become a sponsor"}),e.jsx(y,{children:!x&&e.jsx(S,{...s,children:e.jsxs(v.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] mx-auto px-5 md:mt-20 mt-10 mb-20 md:mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(d),children:[e.jsx(l,{label:r[o(a)].label_1,name:"company_name",control:s.control,error:m.company_name}),e.jsx(l,{label:r[o(a)].label_2,name:"rep_name",control:s.control,error:m.rep_name}),e.jsx(l,{label:r[o(a)].label_3,name:"job_title",control:s.control,error:m.job_title}),e.jsx(l,{label:r[o(a)].label_4,name:"country",control:s.control,error:m.country}),e.jsx(l,{label:r[o(a)].label_5,name:"email",control:s.control,error:m.email}),e.jsx(l,{label:r[o(a)].label_6,name:"phone",control:s.control,error:m.phone}),e.jsx(l,{label:r[o(a)].label_7,name:"website",control:s.control}),e.jsx(F,{control:s.control,name:"visa_support",render:({field:n})=>e.jsxs(c,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:r[o(a)].visa}),e.jsx(p,{children:e.jsxs(B,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(c,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(j,{value:"yes",checked:n.value==="yes"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio})]}),e.jsxs(c,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(j,{value:"no",checked:n.value==="no"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio_2})]})]})})]})}),e.jsx(N,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?e.jsx(w,{className:"animate-spin"}):r[o(a)].button})]})})}),x&&e.jsx(C,{delay:.3})]})}export{O as default}; diff --git a/dist/assets/contacts-Xw9vgvgv.js b/dist/assets/contacts-CaxKG6X1.js similarity index 82% rename from dist/assets/contacts-Xw9vgvgv.js rename to dist/assets/contacts-CaxKG6X1.js index f97d819..d0a84e8 100644 --- a/dist/assets/contacts-Xw9vgvgv.js +++ b/dist/assets/contacts-CaxKG6X1.js @@ -1 +1 @@ -import{z as t,T as m,w as h,E as u,j as s,f as p,x as g,t as n,B as f,U as j,V as b}from"./ui-library-DIIRVSEU.js";import{a as N}from"./react-vendor-ERTQd_Nj.js";import{b as v}from"./service-BFT831D0.js";import{u as C}from"./use-scroll-top-CJJ8CWfz.js";import"./index-DW_MHI2K.js";const w=t.object({name:t.string().min(2,"error"),email:t.string().email(),phone:t.string().min(8,"error"),company:t.string().min(2,"error"),msg:t.string().min(5,"error")}),y={name:"",email:"",phone:"",company:"",msg:""},L=({className:r})=>{const{t:a}=m("contacts"),[c,i]=N.useState(!1),e=h({resolver:u(w),defaultValues:y});async function x(d){try{const o=await v(d);i(o)}catch(o){console.error("POST contact",o)}}const{errors:l}=e.formState;return s.jsx("div",{className:p("bg-primary rounded-[8px] py-8 px-6 ",r),children:s.jsx(g,{...e,children:s.jsxs("form",{onSubmit:e.handleSubmit(x),children:[s.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:a("title")}),s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsx(n,{onPrimary:!0,name:"name",control:e.control,label:a("name"),error:l.name}),s.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[s.jsx(n,{onPrimary:!0,name:"email",control:e.control,label:"Email",error:l.email}),s.jsx(n,{onPrimary:!0,name:"phone",control:e.control,label:a("phone"),error:l.phone})]}),s.jsx(n,{onPrimary:!0,name:"company",control:e.control,label:a("company"),error:l.name}),s.jsx(n,{onPrimary:!0,textArea:!0,name:"msg",label:a("message"),control:e.control,error:l.msg}),s.jsx(f,{disabled:e.formState.isSubmitting||c,className:"w-full h-12 overflow-hidden",variant:"secondary",children:c?a("submitted"):e.formState.isSubmitting?s.jsx(j,{className:"animate-spin text-white"}):a("button")})]})]})})})};function _(){C();const{t:r}=m("contacts");return s.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[s.jsx(b,{children:s.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[s.jsx(L,{}),s.jsxs("div",{className:"p-6 bg-bg_surface_container rounded-[8px]",children:[s.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:r("title_2")}),s.jsxs("div",{className:"flex flex-col gap-20",children:[s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/map.svg",alt:"address"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:r("address")}),s.jsx("address",{className:"text-base normal not-italic",children:r("venue")})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:r("phone")}),s.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/email.svg",alt:"email"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Email:"}),s.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),s.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:s.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1443.0869986358682!2d58.35620779177324!3d37.921200202365405!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f7001fd7afd2a95%3A0x9ce9dca95ea4b87e!2z0JDQstC40LDQutCw0YHRgdCwINCw0LLQuNCw0LrQvtC80L_QsNC90LjQuCDCq9CR0LXQu9Cw0LLQuNCwwrsg0LIg0KLRg9GA0LrQvNC10L3QuNGB0YLQsNC90LU!5e0!3m2!1sru!2sru!4v1738063695919!5m2!1sru!2sru",className:"absolute inset-0 w-full h-full ",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})}export{_ as default}; +import{z as t,T as m,w as h,j as s,f as u,x as p,t as n,B as g,U as f,E as j,V as b}from"./ui-library-TPw9Lr4N.js";import{a as N}from"./react-vendor-OnsDvTPE.js";import{b as v}from"./service-D5qlX6-G.js";import{u as C}from"./use-scroll-top-ByehxtTO.js";import"./axios-upsvKRUO.js";const w=t.object({name:t.string().min(2,"error"),email:t.string().email(),phone:t.string().min(8,"error"),company:t.string().min(2,"error"),msg:t.string().min(5,"error")}),y={name:"",email:"",phone:"",company:"",msg:""},L=({className:r})=>{const{t:a}=m("contacts"),[c,i]=N.useState(!1),e=h({resolver:j(w),defaultValues:y});async function x(d){try{const o=await v(d);i(o)}catch(o){console.error("POST contact",o)}}const{errors:l}=e.formState;return s.jsx("div",{className:u("bg-primary rounded-[8px] py-8 px-6 ",r),children:s.jsx(p,{...e,children:s.jsxs("form",{onSubmit:e.handleSubmit(x),children:[s.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:a("title")}),s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsx(n,{onPrimary:!0,name:"name",control:e.control,label:a("name"),error:l.name}),s.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[s.jsx(n,{onPrimary:!0,name:"email",control:e.control,label:"Email",error:l.email}),s.jsx(n,{onPrimary:!0,name:"phone",control:e.control,label:a("phone"),error:l.phone})]}),s.jsx(n,{onPrimary:!0,name:"company",control:e.control,label:a("company"),error:l.name}),s.jsx(n,{onPrimary:!0,textArea:!0,name:"msg",label:a("message"),control:e.control,error:l.msg}),s.jsx(g,{disabled:e.formState.isSubmitting||c,className:"w-full h-12 overflow-hidden",variant:"secondary",children:c?a("submitted"):e.formState.isSubmitting?s.jsx(f,{className:"animate-spin text-white"}):a("button")})]})]})})})};function _(){C();const{t:r}=m("contacts");return s.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[s.jsx(b,{children:s.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[s.jsx(L,{}),s.jsxs("div",{className:"p-6 bg-bg_surface_container rounded-[8px]",children:[s.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:r("title_2")}),s.jsxs("div",{className:"flex flex-col gap-20",children:[s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/map.svg",alt:"address"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:r("address")}),s.jsx("address",{className:"text-base normal not-italic",children:r("venue")})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:r("phone")}),s.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/email.svg",alt:"email"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Email:"}),s.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),s.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:s.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1443.0869986358682!2d58.35620779177324!3d37.921200202365405!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f7001fd7afd2a95%3A0x9ce9dca95ea4b87e!2z0JDQstC40LDQutCw0YHRgdCwINCw0LLQuNCw0LrQvtC80L_QsNC90LjQuCDCq9CR0LXQu9Cw0LLQuNCwwrsg0LIg0KLRg9GA0LrQvNC10L3QuNGB0YLQsNC90LU!5e0!3m2!1sru!2sru!4v1738063695919!5m2!1sru!2sru",className:"absolute inset-0 w-full h-full ",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})}export{_ as default}; diff --git a/dist/assets/home-B1vkj3tH.js b/dist/assets/home-txdTrUQ0.js similarity index 76% rename from dist/assets/home-B1vkj3tH.js rename to dist/assets/home-txdTrUQ0.js index 3439aca..0dd76bd 100644 --- a/dist/assets/home-B1vkj3tH.js +++ b/dist/assets/home-txdTrUQ0.js @@ -1 +1 @@ -import{j as e,a as s,b as o,c as m,d as a,e as x}from"./ui-library-DIIRVSEU.js";import"./react-vendor-ERTQd_Nj.js";function j(){return e.jsxs("div",{className:"flex flex-col gap-20",children:[e.jsx(s,{}),e.jsx(o,{}),e.jsx(m,{}),e.jsx(a,{}),e.jsx(x,{})]})}export{j as default}; +import{j as e,a as s,b as o,c as m,d as a,e as x}from"./ui-library-TPw9Lr4N.js";import"./react-vendor-OnsDvTPE.js";function j(){return e.jsxs("div",{className:"flex flex-col gap-20",children:[e.jsx(s,{}),e.jsx(o,{}),e.jsx(m,{}),e.jsx(a,{}),e.jsx(x,{})]})}export{j as default}; diff --git a/dist/assets/index-D_mH2det.js b/dist/assets/index-BIc4fExB.js similarity index 98% rename from dist/assets/index-D_mH2det.js rename to dist/assets/index-BIc4fExB.js index e5c6de3..cd92630 100644 --- a/dist/assets/index-D_mH2det.js +++ b/dist/assets/index-BIc4fExB.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/home-B1vkj3tH.js","assets/ui-library-DIIRVSEU.js","assets/react-vendor-ERTQd_Nj.js","assets/about-CtEpbvuJ.js","assets/use-scroll-top-CJJ8CWfz.js","assets/b2b-BX_6A3wb.js","assets/index-DW_MHI2K.js","assets/radio-group-BLXRVl3s.js","assets/become-sponsor-BViPRrC3.js","assets/service-BFT831D0.js","assets/stend.data-DKNyBYOr.js","assets/stend-form-DZXUVDas.js","assets/contacts-Xw9vgvgv.js"])))=>i.map(i=>d[i]); -import{u as ve,i as we,j as S,H as ke,F as Re}from"./ui-library-DIIRVSEU.js";import{f as $e,a as N,O as Pe,g as Ce,h as Ee}from"./react-vendor-ERTQd_Nj.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function t(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=t(s);fetch(s.href,i)}})();const Te="modulepreload",Ne=function(a){return"/"+a},ae={},V=function(e,t,n){let s=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),l=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));s=Promise.allSettled(t.map(o=>{if(o=Ne(o),o in ae)return;ae[o]=!0;const u=o.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Te,u||(f.as="script"),f.crossOrigin="",f.href=o,l&&f.setAttribute("nonce",l),document.head.appendChild(f),u)return new Promise((c,p)=>{f.addEventListener("load",c),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${o}`)))})}))}function i(r){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=r,window.dispatchEvent(l),!l.defaultPrevented)throw r}return s.then(r=>{for(const l of r||[])l.status==="rejected"&&i(l.reason);return e().catch(i)})};var W={},oe;function je(){if(oe)return W;oe=1;var a=$e();return W.createRoot=a.createRoot,W.hydrateRoot=a.hydrateRoot,W}var Fe=je();const g=a=>typeof a=="string",H=()=>{let a,e;const t=new Promise((n,s)=>{a=n,e=s});return t.resolve=a,t.reject=e,t},le=a=>a==null?"":""+a,Ae=(a,e,t)=>{a.forEach(n=>{e[n]&&(t[n]=e[n])})},Ie=/###/g,ue=a=>a&&a.indexOf("###")>-1?a.replace(Ie,"."):a,ce=a=>!a||g(a),z=(a,e,t)=>{const n=g(e)?e.split("."):e;let s=0;for(;s{const{obj:n,k:s}=z(a,e,Object);if(n!==void 0||e.length===1){n[s]=t;return}let i=e[e.length-1],r=e.slice(0,e.length-1),l=z(a,r,Object);for(;l.obj===void 0&&r.length;)i=`${r[r.length-1]}.${i}`,r=r.slice(0,r.length-1),l=z(a,r,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${i}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${i}`]=t},De=(a,e,t,n)=>{const{obj:s,k:i}=z(a,e,Object);s[i]=s[i]||[],s[i].push(t)},Y=(a,e)=>{const{obj:t,k:n}=z(a,e);if(t&&Object.prototype.hasOwnProperty.call(t,n))return t[n]},Ve=(a,e,t)=>{const n=Y(a,t);return n!==void 0?n:Y(e,t)},Oe=(a,e,t)=>{for(const n in e)n!=="__proto__"&&n!=="constructor"&&(n in a?g(a[n])||a[n]instanceof String||g(e[n])||e[n]instanceof String?t&&(a[n]=e[n]):Oe(a[n],e[n],t):a[n]=e[n]);return a},I=a=>a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Be={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Ke=a=>g(a)?a.replace(/[&<>"'\/]/g,e=>Be[e]):a;class Ue{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const Me=[" ",",","?","!",";"],He=new Ue(20),ze=(a,e,t)=>{e=e||"",t=t||"";const n=Me.filter(r=>e.indexOf(r)<0&&t.indexOf(r)<0);if(n.length===0)return!0;const s=He.getRegExp(`(${n.map(r=>r==="?"?"\\?":r).join("|")})`);let i=!s.test(a);if(!i){const r=a.indexOf(t);r>0&&!s.test(a.substring(0,r))&&(i=!0)}return i},te=function(a,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!a)return;if(a[e])return Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0;const n=e.split(t);let s=a;for(let i=0;i-1&&oa==null?void 0:a.replace("_","-"),Je={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,e){var t,n;(n=(t=console==null?void 0:console[a])==null?void 0:t.apply)==null||n.call(t,console,e)}};class Z{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Je,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n{this.observers[n]||(this.observers[n]=new Map);const s=this.observers[n].get(t)||0;this.observers[n].set(t,s+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s{let[l,o]=r;for(let u=0;u{let[l,o]=r;for(let u=0;u1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){var u,d;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,r=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,t],n&&(Array.isArray(n)?l.push(...n):g(n)&&i?l.push(...n.split(i)):l.push(n)));const o=Y(this.data,l);return!o&&!t&&!n&&e.indexOf(".")>-1&&(e=l[0],t=l[1],n=l.slice(2).join(".")),o||!r||!g(n)?o:te((d=(u=this.data)==null?void 0:u[e])==null?void 0:d[t],n,i)}addResource(e,t,n,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const r=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let l=[e,t];n&&(l=l.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(l=e.split("."),s=t,t=l[1]),this.addNamespaces(t),de(this.data,l,s),i.silent||this.emit("added",e,t,n,s)}addResources(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(g(n[i])||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});s.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,s,i){let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[e,t];e.indexOf(".")>-1&&(l=e.split("."),s=n,n=t,t=l[1]),this.addNamespaces(t);let o=Y(this.data,l)||{};r.skipCopy||(n=JSON.parse(JSON.stringify(n))),s?Oe(o,n,i):o={...o,...n},de(this.data,l,o),r.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(s=>t[s]&&Object.keys(t[s]).length>0)}toJSON(){return this.data}}var Le={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,e,t,n,s){return a.forEach(i=>{var r;e=((r=this.processors[i])==null?void 0:r.process(e,t,n,s))??e}),e}};const he={},ge=a=>!g(a)&&typeof a!="boolean"&&typeof a!="number";class X extends _{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Ae(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=E.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const n=this.resolve(e,t);return(n==null?void 0:n.res)!==void 0}extractFromKey(e,t){let n=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const s=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const r=n&&e.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!ze(e,n,s);if(r&&!l){const o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:g(i)?[i]:i};const u=e.split(n);(n!==s||n===s&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(s)}return{key:e,namespaces:g(i)?[i]:i}}translate(e,t,n){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const s=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:r,namespaces:l}=this.extractFromKey(e[e.length-1],t),o=l[l.length-1],u=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode"){if(d){const w=t.nsSeparator||this.options.nsSeparator;return s?{res:`${o}${w}${r}`,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:o,usedParams:this.getUsedParamsDetails(t)}:`${o}${w}${r}`}return s?{res:r,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:o,usedParams:this.getUsedParamsDetails(t)}:r}const f=this.resolve(e,t);let c=f==null?void 0:f.res;const p=(f==null?void 0:f.usedKey)||r,h=(f==null?void 0:f.exactUsedKey)||r,m=["[object Number]","[object Function]","[object RegExp]"],x=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,O=t.count!==void 0&&!g(t.count),P=X.hasDefaultValue(t),R=O?this.pluralResolver.getSuffix(u,t.count,t):"",B=t.ordinal&&O?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",K=O&&!t.ordinal&&t.count===0,y=K&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${R}`]||t[`defaultValue${B}`]||t.defaultValue;let L=c;v&&!c&&P&&(L=y);const F=ge(L),A=Object.prototype.toString.apply(L);if(v&&L&&F&&m.indexOf(A)<0&&!(g(x)&&Array.isArray(L))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,L,{...t,ns:l}):`key '${r} (${this.language})' returned an object instead of string.`;return s?(f.res=w,f.usedParams=this.getUsedParamsDetails(t),f):w}if(i){const w=Array.isArray(L),$=w?[]:{},ne=w?h:p;for(const C in L)if(Object.prototype.hasOwnProperty.call(L,C)){const T=`${ne}${i}${C}`;P&&!c?$[C]=this.translate(T,{...t,defaultValue:ge(y)?y[C]:void 0,joinArrays:!1,ns:l}):$[C]=this.translate(T,{...t,joinArrays:!1,ns:l}),$[C]===T&&($[C]=L[C])}c=$}}else if(v&&g(x)&&Array.isArray(c))c=c.join(x),c&&(c=this.extendTranslation(c,e,t,n));else{let w=!1,$=!1;!this.isValidLookup(c)&&P&&(w=!0,c=y),this.isValidLookup(c)||($=!0,c=r);const C=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&$?void 0:c,T=P&&y!==c&&this.options.updateMissing;if($||w||T){if(this.logger.log(T?"updateKey":"missingKey",u,o,r,T?y:c),i){const k=this.resolve(r,{...t,keySeparator:!1});k&&k.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 U=[];const G=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&G&&G[0])for(let k=0;k{var re;const ie=P&&M!==c?M:C;this.options.missingKeyHandler?this.options.missingKeyHandler(k,o,j,ie,T,t):(re=this.backendConnector)!=null&&re.saveMissing&&this.backendConnector.saveMissing(k,o,j,ie,T,t),this.emit("missingKey",k,o,j,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?U.forEach(k=>{const j=this.pluralResolver.getSuffixes(k,t);K&&t[`defaultValue${this.options.pluralSeparator}zero`]&&j.indexOf(`${this.options.pluralSeparator}zero`)<0&&j.push(`${this.options.pluralSeparator}zero`),j.forEach(M=>{se([k],r+M,t[`defaultValue${M}`]||y)})}):se(U,r,y))}c=this.extendTranslation(c,e,t,f,n),$&&c===r&&this.options.appendNamespaceToMissingKey&&(c=`${o}:${r}`),($||w)&&this.options.parseMissingKeyHandler&&(c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${o}:${r}`:r,w?c:void 0))}return s?(f.res=c,f.usedParams=this.getUsedParamsDetails(t),f):c}extendTranslation(e,t,n,s,i){var u,d;var r=this;if((u=this.i18nFormat)!=null&&u.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const f=g(e)&&(((d=n==null?void 0:n.interpolation)==null?void 0:d.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(f){const h=e.match(this.interpolator.nestingRegexp);c=h&&h.length}let p=n.replace&&!g(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),e=this.interpolator.interpolate(e,p,n.lng||this.language||s.usedLng,n),f){const h=e.match(this.interpolator.nestingRegexp),m=h&&h.length;c1&&arguments[1]!==void 0?arguments[1]:{},n,s,i,r,l;return g(e)&&(e=[e]),e.forEach(o=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(o,t),d=u.key;s=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const c=t.count!==void 0&&!g(t.count),p=c&&!t.ordinal&&t.count===0,h=t.context!==void 0&&(g(t.context)||typeof t.context=="number")&&t.context!=="",m=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);f.forEach(x=>{var v,O;this.isValidLookup(n)||(l=x,!he[`${m[0]}-${x}`]&&((v=this.utils)!=null&&v.hasLoadedNamespace)&&!((O=this.utils)!=null&&O.hasLoadedNamespace(l))&&(he[`${m[0]}-${x}`]=!0,this.logger.warn(`key "${s}" for languages "${m.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(P=>{var K;if(this.isValidLookup(n))return;r=P;const R=[d];if((K=this.i18nFormat)!=null&&K.addLookupKeys)this.i18nFormat.addLookupKeys(R,d,P,x,t);else{let y;c&&(y=this.pluralResolver.getSuffix(P,t.count,t));const L=`${this.options.pluralSeparator}zero`,F=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(R.push(d+y),t.ordinal&&y.indexOf(F)===0&&R.push(d+y.replace(F,this.options.pluralSeparator)),p&&R.push(d+L)),h){const A=`${d}${this.options.contextSeparator}${t.context}`;R.push(A),c&&(R.push(A+y),t.ordinal&&y.indexOf(F)===0&&R.push(A+y.replace(F,this.options.pluralSeparator)),p&&R.push(A+L))}}let B;for(;B=R.pop();)this.isValidLookup(n)||(i=B,n=this.getResource(P,x,B,t))}))})}),{res:n,usedKey:s,exactUsedKey:i,usedLng:r,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,n){var i;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(e,t,n,s):this.resourceStore.getResource(e,t,n,s)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!g(e.replace);let s=n?e.replace:e;if(n&&typeof e.count<"u"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!n){s={...s};for(const i of t)delete s[i]}return s}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&e[n]!==void 0)return!0;return!1}}class pe{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=E.create("languageUtils")}getScriptPartFromCode(e){if(e=Q(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=Q(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(g(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(n=>{if(t)return;const s=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(s))&&(t=s)}),!t&&this.options.supportedLngs&&e.forEach(n=>{if(t)return;const s=this.getLanguagePartFromCode(n);if(this.isSupportedCode(s))return t=s;t=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&(i.indexOf("-")>0&&s.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===s||i.indexOf(s)===0&&s.length>1))return i})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),g(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),s=[],i=r=>{r&&(this.isSupportedCode(r)?s.push(r):this.logger.warn(`rejecting language code not found in supportedLngs: ${r}`))};return g(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):g(e)&&i(this.formatLanguageCode(e)),n.forEach(r=>{s.indexOf(r)<0&&i(this.formatLanguageCode(r))}),s}}const me={zero:0,one:1,two:2,few:3,many:4,other:5},xe={select:a=>a===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ge{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=E.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=Q(e==="dev"?"en":e),s=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:s});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let r;try{r=new Intl.PluralRules(n,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),xe;if(!e.match(/-|_/))return xe;const o=this.languageUtils.getLanguagePartFromCode(e);r=this.getRule(o,t)}return this.pluralRulesCache[i]=r,r}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(s=>`${t}${s}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((s,i)=>me[s]-me[i]).map(s=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(e,n);return s?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const be=function(a,e,t){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=Ve(a,e,t);return!i&&s&&g(t)&&(i=te(a,t,n),i===void 0&&(i=te(e,t,n))),i},ee=a=>a.replace(/\$/g,"$$$$");class We{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=E.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:s,prefix:i,prefixEscaped:r,suffix:l,suffixEscaped:o,formatSeparator:u,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:c,nestingPrefixEscaped:p,nestingSuffix:h,nestingSuffixEscaped:m,nestingOptionsSeparator:x,maxReplaces:v,alwaysFormat:O}=e.interpolation;this.escape=t!==void 0?t:Ke,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=i?I(i):r||"{{",this.suffix=l?I(l):o||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=c?I(c):p||I("$t("),this.nestingSuffix=h?I(h):m||I(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=v||1e3,this.alwaysFormat=O!==void 0?O:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,n)=>(t==null?void 0:t.source)===n?(t.lastIndex=0,t):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,s){var p;let i,r,l;const o=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=h=>{if(h.indexOf(this.formatSeparator)<0){const O=be(t,o,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(O,void 0,n,{...s,...t,interpolationkey:h}):O}const m=h.split(this.formatSeparator),x=m.shift().trim(),v=m.join(this.formatSeparator).trim();return this.format(be(t,o,x,this.options.keySeparator,this.options.ignoreJSONStructure),v,n,{...s,...t,interpolationkey:x})};this.resetRegExp();const d=(s==null?void 0:s.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((p=s==null?void 0:s.interpolation)==null?void 0:p.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>ee(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?ee(this.escape(h)):ee(h)}].forEach(h=>{for(l=0;i=h.regex.exec(e);){const m=i[1].trim();if(r=u(m),r===void 0)if(typeof d=="function"){const v=d(e,i,s);r=g(v)?v:""}else if(s&&Object.prototype.hasOwnProperty.call(s,m))r="";else if(f){r=i[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`),r="";else!g(r)&&!this.useRawValueToEscape&&(r=le(r));const x=h.safeValue(r);if(e=e.replace(i[0],x),f?(h.regex.lastIndex+=r.length,h.regex.lastIndex-=i[0].length):h.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,r;const l=(o,u)=>{const d=this.nestingOptionsSeparator;if(o.indexOf(d)<0)return o;const f=o.split(new RegExp(`${d}[ ]*{`));let c=`{${f[1]}`;o=f[0],c=this.interpolate(c,r);const p=c.match(/'/g),h=c.match(/"/g);(((p==null?void 0:p.length)??0)%2===0&&!h||h.length%2!==0)&&(c=c.replace(/'/g,'"'));try{r=JSON.parse(c),u&&(r={...u,...r})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${o}`,m),`${o}${d}${c}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,o};for(;s=this.nestingRegexp.exec(e);){let o=[];r={...n},r=r.replace&&!g(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const d=s[1].split(this.formatSeparator).map(f=>f.trim());s[1]=d.shift(),o=d,u=!0}if(i=t(l.call(this,s[1].trim(),r),r),i&&s[0]===e&&!g(i))return i;g(i)||(i=le(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),i=""),u&&(i=o.reduce((d,f)=>this.format(d,f,n.lng,{...n,interpolationkey:s[1].trim()}),i.trim())),e=e.replace(s[0],i),this.regexp.lastIndex=0}return e}}const qe=a=>{let e=a.toLowerCase().trim();const t={};if(a.indexOf("(")>-1){const n=a.split("(");e=n[0].toLowerCase().trim();const s=n[1].substring(0,n[1].length-1);e==="currency"&&s.indexOf(":")<0?t.currency||(t.currency=s.trim()):e==="relativetime"&&s.indexOf(":")<0?t.range||(t.range=s.trim()):s.split(";").forEach(r=>{if(r){const[l,...o]=r.split(":"),u=o.join(":").trim().replace(/^'+|'+$/g,""),d=l.trim();t[d]||(t[d]=u),u==="false"&&(t[d]=!1),u==="true"&&(t[d]=!0),isNaN(u)||(t[d]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},D=a=>{const e={};return(t,n,s)=>{let i=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(i={...i,[s.interpolationkey]:void 0});const r=n+JSON.stringify(i);let l=e[r];return l||(l=a(Q(n),s),e[r]=l),l(t)}};class Ye{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=E.create("formatter"),this.options=e,this.formats={number:D((t,n)=>{const s=new Intl.NumberFormat(t,{...n});return i=>s.format(i)}),currency:D((t,n)=>{const s=new Intl.NumberFormat(t,{...n,style:"currency"});return i=>s.format(i)}),datetime:D((t,n)=>{const s=new Intl.DateTimeFormat(t,{...n});return i=>s.format(i)}),relativetime:D((t,n)=>{const s=new Intl.RelativeTimeFormat(t,{...n});return i=>s.format(i,n.range||"day")}),list:D((t,n)=>{const s=new Intl.ListFormat(t,{...n});return i=>s.format(i)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=D(t)}format(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(l=>l.indexOf(")")>-1)){const l=i.findIndex(o=>o.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,l)].join(this.formatSeparator)}return i.reduce((l,o)=>{var f;const{formatName:u,formatOptions:d}=qe(o);if(this.formats[u]){let c=l;try{const p=((f=s==null?void 0:s.formatParams)==null?void 0:f[s.interpolationkey])||{},h=p.locale||p.lng||s.locale||s.lng||n;c=this.formats[u](l,h,{...d,...s,...p})}catch(p){this.logger.warn(p)}return c}else this.logger.warn(`there was no format function for ${u}`);return l},e)}}const Qe=(a,e)=>{a.pending[e]!==void 0&&(delete a.pending[e],a.pendingCount--)};class Ze extends _{constructor(e,t,n){var i,r;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=s,this.logger=E.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],(r=(i=this.backend)==null?void 0:i.init)==null||r.call(i,n,s.backend,s)}queueLoad(e,t,n,s){const i={},r={},l={},o={};return e.forEach(u=>{let d=!0;t.forEach(f=>{const c=`${u}|${f}`;!n.reload&&this.store.hasResourceBundle(u,f)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?r[c]===void 0&&(r[c]=!0):(this.state[c]=1,d=!1,r[c]===void 0&&(r[c]=!0),i[c]===void 0&&(i[c]=!0),o[f]===void 0&&(o[f]=!0)))}),d||(l[u]=!0)}),(Object.keys(i).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(r),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(o)}}loaded(e,t,n){const s=e.split("|"),i=s[0],r=s[1];t&&this.emit("failedLoading",i,r,t),!t&&n&&this.store.addResourceBundle(i,r,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const l={};this.queue.forEach(o=>{De(o.loaded,[i],r),Qe(o,e),t&&o.errors.push(t),o.pendingCount===0&&!o.done&&(Object.keys(o.loaded).forEach(u=>{l[u]||(l[u]={});const d=o.loaded[u];d.length&&d.forEach(f=>{l[u][f]===void 0&&(l[u][f]=!0)})}),o.done=!0,o.errors.length?o.callback(o.errors):o.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(o=>!o.done)}read(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,r=arguments.length>5?arguments[5]:void 0;if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:s,wait:i,callback:r});return}this.readingCalls++;const l=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&s{this.read.call(this,e,t,n,s+1,i*2,r)},i);return}r(u,d)},o=this.backend[n].bind(this.backend);if(o.length===2){try{const u=o(e,t);u&&typeof u.then=="function"?u.then(d=>l(null,d)).catch(l):l(null,u)}catch(u){l(u)}return}return o(e,t,l)}prepareLoading(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();g(e)&&(e=this.languageUtils.toResolveHierarchy(e)),g(t)&&(t=[t]);const i=this.queueLoad(e,t,n,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(r=>{this.loadOne(r)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=e.split("|"),s=n[0],i=n[1];this.read(s,i,"read",void 0,void 0,(r,l)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${s} failed`,r),!r&&l&&this.logger.log(`${t}loaded namespace ${i} for language ${s}`,l),this.loaded(e,r,l)})}saveMissing(e,t,n,s,i){var o,u,d,f,c;let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((u=(o=this.services)==null?void 0:o.utils)!=null&&u.hasLoadedNamespace&&!((f=(d=this.services)==null?void 0:d.utils)!=null&&f.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${n}" as the namespace "${t}" 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(!(n==null||n==="")){if((c=this.backend)!=null&&c.create){const p={...r,isUpdate:i},h=this.backend.create.bind(this.backend);if(h.length<6)try{let m;h.length===5?m=h(e,t,n,s,p):m=h(e,t,n,s),m&&typeof m.then=="function"?m.then(x=>l(null,x)).catch(l):l(null,m)}catch(m){l(m)}else h(e,t,n,s,l,p)}!e||!e[0]||this.store.addResource(e[0],t,n,s)}}}const ye=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:a=>{let e={};if(typeof a[1]=="object"&&(e=a[1]),g(a[1])&&(e.defaultValue=a[1]),g(a[2])&&(e.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){const t=a[3]||a[2];Object.keys(t).forEach(n=>{e[n]=t[n]})}return e},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Se=a=>{var e,t;return g(a.ns)&&(a.ns=[a.ns]),g(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),g(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),((t=(e=a.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),typeof a.initImmediate=="boolean"&&(a.initAsync=a.initImmediate),a},q=()=>{},Xe=a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(t=>{typeof a[t]=="function"&&(a[t]=a[t].bind(a))})};class J extends _{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Se(e),this.services={},this.logger=E,this.modules={external:[]},Xe(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(g(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const s=ye();this.options={...s,...this.options,...Se(t)},this.options.interpolation={...s.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?E.init(i(this.modules.logger),this.options):E.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=Ye;const f=new pe(this.options);this.store=new fe(this.options.resources,this.options);const c=this.services;c.logger=E,c.resourceStore=this.store,c.languageUtils=f,c.pluralResolver=new Ge(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(c.formatter=i(d),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new We(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new Ze(i(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(p){for(var h=arguments.length,m=new Array(h>1?h-1:0),x=1;x1?h-1:0),x=1;x{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,n||(n=q),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[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(d=>{this[d]=function(){return e.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return e.store[d](...arguments),e}});const o=H(),u=()=>{const d=(f,c)=>{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),o.resolve(c),n(f,c)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),o}loadResources(e){var i,r;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q;const s=g(e)?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if((s==null?void 0:s.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const l=[],o=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&l.indexOf(f)<0&&l.push(f)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>o(d)),(r=(i=this.options.preload)==null?void 0:i.forEach)==null||r.call(i,u=>o(u)),this.services.backendConnector.load(l,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(u)})}else n(null)}reloadResources(e,t,n){const s=H();return typeof e=="function"&&(n=e,e=void 0),typeof t=="function"&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=q),this.services.backendConnector.reload(e,t,i=>{s.resolve(),n(i)}),s}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Le.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const s=H();this.emit("languageChanging",e);const i=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},r=(o,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return n.t(...arguments)}),t&&t(o,function(){return n.t(...arguments)})},l=o=>{var d,f;!e&&!o&&this.services.languageDetector&&(o=[]);const u=g(o)?o:this.services.languageUtils.getBestMatchFromCodes(o);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),(f=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||f.call(d,u)),this.loadResources(u,c=>{r(c,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e),s}getFixedT(e,t,n){var s=this;const i=function(r,l){let o;if(typeof l!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f`${o.keyPrefix}${c}${h}`):p=o.keyPrefix?`${o.keyPrefix}${c}${r}`:r,s.t(p,o)};return g(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){var s;for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:{};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 n=t.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const r=(l,o)=>{const u=this.services.backendConnector.state[`${l}|${o}`];return u===-1||u===0||u===2};if(t.precheck){const l=t.precheck(this,r);if(l!==void 0)return l}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||r(n,e)&&(!s||r(i,e)))}loadNamespaces(e,t){const n=H();return this.options.ns?(g(e)&&(e=[e]),e.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{n.resolve(),t&&t(s)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=H();g(e)&&(e=[e]);const s=this.options.preload||[],i=e.filter(r=>s.indexOf(r)<0&&this.services.languageUtils.isSupportedCode(r));return i.length?(this.options.preload=s.concat(i),this.loadResources(r=>{n.resolve(),t&&t(r)}),n):(t&&t(),Promise.resolve())}dir(e){var s,i;if(e||(e=this.resolvedLanguage||(((s=this.languages)==null?void 0:s.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["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"],n=((i=this.services)==null?void 0:i.languageUtils)||new pe(ye());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new J(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const s={...this.options,...e,isClone:!0},i=new J(s);if((e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(l=>{i[l]=this[l]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){const l=Object.keys(this.store.data).reduce((o,u)=>(o[u]={...this.store.data[u]},Object.keys(o[u]).reduce((d,f)=>(d[f]={...o[u][f]},d),{})),{});i.store=new fe(l,s),i.services.resourceStore=i.store}return i.translator=new X(i.services,s),i.translator.on("*",function(l){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d{const a=ve(e=>e.lang);return N.useEffect(()=>{b.changeLanguage(a)},[a]),null};function Zt(){return S.jsxs("main",{className:"flex flex-col min-h-screen",children:[S.jsx(Qt,{}),S.jsx(ke,{}),S.jsx("div",{className:"flex-auto",children:S.jsx(Pe,{})}),S.jsx(Re,{})]})}const Xt=N.lazy(()=>V(()=>import("./home-B1vkj3tH.js"),__vite__mapDeps([0,1,2]))),_t=N.lazy(()=>V(()=>import("./about-CtEpbvuJ.js"),__vite__mapDeps([3,1,2,4]))),en=N.lazy(()=>V(()=>import("./b2b-BX_6A3wb.js"),__vite__mapDeps([5,1,2,6,7,4]))),tn=N.lazy(()=>V(()=>import("./become-sponsor-BViPRrC3.js"),__vite__mapDeps([8,1,2,7,9,6,4,10]))),nn=N.lazy(()=>V(()=>import("./stend-form-DZXUVDas.js"),__vite__mapDeps([11,1,2,7,9,6,10]))),sn=N.lazy(()=>V(()=>import("./contacts-Xw9vgvgv.js"),__vite__mapDeps([12,1,2,9,6,4]))),rn=Ce([{element:S.jsx(Zt,{}),path:"/",children:[{element:S.jsx(Xt,{}),path:""},{element:S.jsx(_t,{}),path:"/about"},{element:S.jsx(en,{}),path:"/B2B-B2G"},{element:S.jsx(tn,{}),path:"/become-sponsor"},{element:S.jsx(nn,{}),path:"/stend-form"},{element:S.jsx(sn,{}),path:"/contacts"}]}]);Fe.createRoot(document.getElementById("root")).render(S.jsx(N.StrictMode,{children:S.jsx(Ee,{router:rn})})); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/home-txdTrUQ0.js","assets/ui-library-TPw9Lr4N.js","assets/react-vendor-OnsDvTPE.js","assets/about-CMgbXwv8.js","assets/use-scroll-top-ByehxtTO.js","assets/b2b-CqSccVir.js","assets/axios-upsvKRUO.js","assets/radio-group-D8w5Al47.js","assets/become-sponsor-DppE17kq.js","assets/service-D5qlX6-G.js","assets/stend.data-CaqZQ919.js","assets/stend-form-BY8w56AL.js","assets/contacts-CaxKG6X1.js"])))=>i.map(i=>d[i]); +import{u as ve,i as we,j as S,H as ke,F as Re}from"./ui-library-TPw9Lr4N.js";import{f as $e,a as N,O as Pe,g as Ce,h as Ee}from"./react-vendor-OnsDvTPE.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function t(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=t(s);fetch(s.href,i)}})();const Te="modulepreload",Ne=function(a){return"/"+a},ae={},V=function(e,t,n){let s=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),l=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));s=Promise.allSettled(t.map(o=>{if(o=Ne(o),o in ae)return;ae[o]=!0;const u=o.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Te,u||(f.as="script"),f.crossOrigin="",f.href=o,l&&f.setAttribute("nonce",l),document.head.appendChild(f),u)return new Promise((c,p)=>{f.addEventListener("load",c),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${o}`)))})}))}function i(r){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=r,window.dispatchEvent(l),!l.defaultPrevented)throw r}return s.then(r=>{for(const l of r||[])l.status==="rejected"&&i(l.reason);return e().catch(i)})};var W={},oe;function je(){if(oe)return W;oe=1;var a=$e();return W.createRoot=a.createRoot,W.hydrateRoot=a.hydrateRoot,W}var Fe=je();const g=a=>typeof a=="string",H=()=>{let a,e;const t=new Promise((n,s)=>{a=n,e=s});return t.resolve=a,t.reject=e,t},le=a=>a==null?"":""+a,Ae=(a,e,t)=>{a.forEach(n=>{e[n]&&(t[n]=e[n])})},Ie=/###/g,ue=a=>a&&a.indexOf("###")>-1?a.replace(Ie,"."):a,ce=a=>!a||g(a),z=(a,e,t)=>{const n=g(e)?e.split("."):e;let s=0;for(;s{const{obj:n,k:s}=z(a,e,Object);if(n!==void 0||e.length===1){n[s]=t;return}let i=e[e.length-1],r=e.slice(0,e.length-1),l=z(a,r,Object);for(;l.obj===void 0&&r.length;)i=`${r[r.length-1]}.${i}`,r=r.slice(0,r.length-1),l=z(a,r,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${i}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${i}`]=t},De=(a,e,t,n)=>{const{obj:s,k:i}=z(a,e,Object);s[i]=s[i]||[],s[i].push(t)},Y=(a,e)=>{const{obj:t,k:n}=z(a,e);if(t&&Object.prototype.hasOwnProperty.call(t,n))return t[n]},Ve=(a,e,t)=>{const n=Y(a,t);return n!==void 0?n:Y(e,t)},Oe=(a,e,t)=>{for(const n in e)n!=="__proto__"&&n!=="constructor"&&(n in a?g(a[n])||a[n]instanceof String||g(e[n])||e[n]instanceof String?t&&(a[n]=e[n]):Oe(a[n],e[n],t):a[n]=e[n]);return a},I=a=>a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Be={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Ke=a=>g(a)?a.replace(/[&<>"'\/]/g,e=>Be[e]):a;class Ue{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const Me=[" ",",","?","!",";"],He=new Ue(20),ze=(a,e,t)=>{e=e||"",t=t||"";const n=Me.filter(r=>e.indexOf(r)<0&&t.indexOf(r)<0);if(n.length===0)return!0;const s=He.getRegExp(`(${n.map(r=>r==="?"?"\\?":r).join("|")})`);let i=!s.test(a);if(!i){const r=a.indexOf(t);r>0&&!s.test(a.substring(0,r))&&(i=!0)}return i},te=function(a,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!a)return;if(a[e])return Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0;const n=e.split(t);let s=a;for(let i=0;i-1&&oa==null?void 0:a.replace("_","-"),Je={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,e){var t,n;(n=(t=console==null?void 0:console[a])==null?void 0:t.apply)==null||n.call(t,console,e)}};class Z{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Je,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n{this.observers[n]||(this.observers[n]=new Map);const s=this.observers[n].get(t)||0;this.observers[n].set(t,s+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s{let[l,o]=r;for(let u=0;u{let[l,o]=r;for(let u=0;u1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){var u,d;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,r=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,t],n&&(Array.isArray(n)?l.push(...n):g(n)&&i?l.push(...n.split(i)):l.push(n)));const o=Y(this.data,l);return!o&&!t&&!n&&e.indexOf(".")>-1&&(e=l[0],t=l[1],n=l.slice(2).join(".")),o||!r||!g(n)?o:te((d=(u=this.data)==null?void 0:u[e])==null?void 0:d[t],n,i)}addResource(e,t,n,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const r=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let l=[e,t];n&&(l=l.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(l=e.split("."),s=t,t=l[1]),this.addNamespaces(t),de(this.data,l,s),i.silent||this.emit("added",e,t,n,s)}addResources(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(g(n[i])||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});s.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,s,i){let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[e,t];e.indexOf(".")>-1&&(l=e.split("."),s=n,n=t,t=l[1]),this.addNamespaces(t);let o=Y(this.data,l)||{};r.skipCopy||(n=JSON.parse(JSON.stringify(n))),s?Oe(o,n,i):o={...o,...n},de(this.data,l,o),r.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(s=>t[s]&&Object.keys(t[s]).length>0)}toJSON(){return this.data}}var Le={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,e,t,n,s){return a.forEach(i=>{var r;e=((r=this.processors[i])==null?void 0:r.process(e,t,n,s))??e}),e}};const he={},ge=a=>!g(a)&&typeof a!="boolean"&&typeof a!="number";class X extends _{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Ae(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=E.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const n=this.resolve(e,t);return(n==null?void 0:n.res)!==void 0}extractFromKey(e,t){let n=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const s=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const r=n&&e.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!ze(e,n,s);if(r&&!l){const o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:g(i)?[i]:i};const u=e.split(n);(n!==s||n===s&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(s)}return{key:e,namespaces:g(i)?[i]:i}}translate(e,t,n){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const s=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:r,namespaces:l}=this.extractFromKey(e[e.length-1],t),o=l[l.length-1],u=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode"){if(d){const w=t.nsSeparator||this.options.nsSeparator;return s?{res:`${o}${w}${r}`,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:o,usedParams:this.getUsedParamsDetails(t)}:`${o}${w}${r}`}return s?{res:r,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:o,usedParams:this.getUsedParamsDetails(t)}:r}const f=this.resolve(e,t);let c=f==null?void 0:f.res;const p=(f==null?void 0:f.usedKey)||r,h=(f==null?void 0:f.exactUsedKey)||r,m=["[object Number]","[object Function]","[object RegExp]"],x=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,O=t.count!==void 0&&!g(t.count),P=X.hasDefaultValue(t),R=O?this.pluralResolver.getSuffix(u,t.count,t):"",B=t.ordinal&&O?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",K=O&&!t.ordinal&&t.count===0,y=K&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${R}`]||t[`defaultValue${B}`]||t.defaultValue;let L=c;v&&!c&&P&&(L=y);const F=ge(L),A=Object.prototype.toString.apply(L);if(v&&L&&F&&m.indexOf(A)<0&&!(g(x)&&Array.isArray(L))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,L,{...t,ns:l}):`key '${r} (${this.language})' returned an object instead of string.`;return s?(f.res=w,f.usedParams=this.getUsedParamsDetails(t),f):w}if(i){const w=Array.isArray(L),$=w?[]:{},ne=w?h:p;for(const C in L)if(Object.prototype.hasOwnProperty.call(L,C)){const T=`${ne}${i}${C}`;P&&!c?$[C]=this.translate(T,{...t,defaultValue:ge(y)?y[C]:void 0,joinArrays:!1,ns:l}):$[C]=this.translate(T,{...t,joinArrays:!1,ns:l}),$[C]===T&&($[C]=L[C])}c=$}}else if(v&&g(x)&&Array.isArray(c))c=c.join(x),c&&(c=this.extendTranslation(c,e,t,n));else{let w=!1,$=!1;!this.isValidLookup(c)&&P&&(w=!0,c=y),this.isValidLookup(c)||($=!0,c=r);const C=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&$?void 0:c,T=P&&y!==c&&this.options.updateMissing;if($||w||T){if(this.logger.log(T?"updateKey":"missingKey",u,o,r,T?y:c),i){const k=this.resolve(r,{...t,keySeparator:!1});k&&k.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 U=[];const G=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&G&&G[0])for(let k=0;k{var re;const ie=P&&M!==c?M:C;this.options.missingKeyHandler?this.options.missingKeyHandler(k,o,j,ie,T,t):(re=this.backendConnector)!=null&&re.saveMissing&&this.backendConnector.saveMissing(k,o,j,ie,T,t),this.emit("missingKey",k,o,j,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?U.forEach(k=>{const j=this.pluralResolver.getSuffixes(k,t);K&&t[`defaultValue${this.options.pluralSeparator}zero`]&&j.indexOf(`${this.options.pluralSeparator}zero`)<0&&j.push(`${this.options.pluralSeparator}zero`),j.forEach(M=>{se([k],r+M,t[`defaultValue${M}`]||y)})}):se(U,r,y))}c=this.extendTranslation(c,e,t,f,n),$&&c===r&&this.options.appendNamespaceToMissingKey&&(c=`${o}:${r}`),($||w)&&this.options.parseMissingKeyHandler&&(c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${o}:${r}`:r,w?c:void 0))}return s?(f.res=c,f.usedParams=this.getUsedParamsDetails(t),f):c}extendTranslation(e,t,n,s,i){var u,d;var r=this;if((u=this.i18nFormat)!=null&&u.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const f=g(e)&&(((d=n==null?void 0:n.interpolation)==null?void 0:d.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(f){const h=e.match(this.interpolator.nestingRegexp);c=h&&h.length}let p=n.replace&&!g(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),e=this.interpolator.interpolate(e,p,n.lng||this.language||s.usedLng,n),f){const h=e.match(this.interpolator.nestingRegexp),m=h&&h.length;c1&&arguments[1]!==void 0?arguments[1]:{},n,s,i,r,l;return g(e)&&(e=[e]),e.forEach(o=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(o,t),d=u.key;s=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const c=t.count!==void 0&&!g(t.count),p=c&&!t.ordinal&&t.count===0,h=t.context!==void 0&&(g(t.context)||typeof t.context=="number")&&t.context!=="",m=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);f.forEach(x=>{var v,O;this.isValidLookup(n)||(l=x,!he[`${m[0]}-${x}`]&&((v=this.utils)!=null&&v.hasLoadedNamespace)&&!((O=this.utils)!=null&&O.hasLoadedNamespace(l))&&(he[`${m[0]}-${x}`]=!0,this.logger.warn(`key "${s}" for languages "${m.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(P=>{var K;if(this.isValidLookup(n))return;r=P;const R=[d];if((K=this.i18nFormat)!=null&&K.addLookupKeys)this.i18nFormat.addLookupKeys(R,d,P,x,t);else{let y;c&&(y=this.pluralResolver.getSuffix(P,t.count,t));const L=`${this.options.pluralSeparator}zero`,F=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(R.push(d+y),t.ordinal&&y.indexOf(F)===0&&R.push(d+y.replace(F,this.options.pluralSeparator)),p&&R.push(d+L)),h){const A=`${d}${this.options.contextSeparator}${t.context}`;R.push(A),c&&(R.push(A+y),t.ordinal&&y.indexOf(F)===0&&R.push(A+y.replace(F,this.options.pluralSeparator)),p&&R.push(A+L))}}let B;for(;B=R.pop();)this.isValidLookup(n)||(i=B,n=this.getResource(P,x,B,t))}))})}),{res:n,usedKey:s,exactUsedKey:i,usedLng:r,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,n){var i;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(e,t,n,s):this.resourceStore.getResource(e,t,n,s)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!g(e.replace);let s=n?e.replace:e;if(n&&typeof e.count<"u"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!n){s={...s};for(const i of t)delete s[i]}return s}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&e[n]!==void 0)return!0;return!1}}class pe{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=E.create("languageUtils")}getScriptPartFromCode(e){if(e=Q(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=Q(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(g(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(n=>{if(t)return;const s=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(s))&&(t=s)}),!t&&this.options.supportedLngs&&e.forEach(n=>{if(t)return;const s=this.getLanguagePartFromCode(n);if(this.isSupportedCode(s))return t=s;t=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&(i.indexOf("-")>0&&s.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===s||i.indexOf(s)===0&&s.length>1))return i})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),g(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),s=[],i=r=>{r&&(this.isSupportedCode(r)?s.push(r):this.logger.warn(`rejecting language code not found in supportedLngs: ${r}`))};return g(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):g(e)&&i(this.formatLanguageCode(e)),n.forEach(r=>{s.indexOf(r)<0&&i(this.formatLanguageCode(r))}),s}}const me={zero:0,one:1,two:2,few:3,many:4,other:5},xe={select:a=>a===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ge{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=E.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=Q(e==="dev"?"en":e),s=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:s});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let r;try{r=new Intl.PluralRules(n,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),xe;if(!e.match(/-|_/))return xe;const o=this.languageUtils.getLanguagePartFromCode(e);r=this.getRule(o,t)}return this.pluralRulesCache[i]=r,r}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(s=>`${t}${s}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((s,i)=>me[s]-me[i]).map(s=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(e,n);return s?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const be=function(a,e,t){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=Ve(a,e,t);return!i&&s&&g(t)&&(i=te(a,t,n),i===void 0&&(i=te(e,t,n))),i},ee=a=>a.replace(/\$/g,"$$$$");class We{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=E.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:s,prefix:i,prefixEscaped:r,suffix:l,suffixEscaped:o,formatSeparator:u,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:c,nestingPrefixEscaped:p,nestingSuffix:h,nestingSuffixEscaped:m,nestingOptionsSeparator:x,maxReplaces:v,alwaysFormat:O}=e.interpolation;this.escape=t!==void 0?t:Ke,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=i?I(i):r||"{{",this.suffix=l?I(l):o||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=c?I(c):p||I("$t("),this.nestingSuffix=h?I(h):m||I(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=v||1e3,this.alwaysFormat=O!==void 0?O:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,n)=>(t==null?void 0:t.source)===n?(t.lastIndex=0,t):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,s){var p;let i,r,l;const o=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=h=>{if(h.indexOf(this.formatSeparator)<0){const O=be(t,o,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(O,void 0,n,{...s,...t,interpolationkey:h}):O}const m=h.split(this.formatSeparator),x=m.shift().trim(),v=m.join(this.formatSeparator).trim();return this.format(be(t,o,x,this.options.keySeparator,this.options.ignoreJSONStructure),v,n,{...s,...t,interpolationkey:x})};this.resetRegExp();const d=(s==null?void 0:s.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((p=s==null?void 0:s.interpolation)==null?void 0:p.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>ee(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?ee(this.escape(h)):ee(h)}].forEach(h=>{for(l=0;i=h.regex.exec(e);){const m=i[1].trim();if(r=u(m),r===void 0)if(typeof d=="function"){const v=d(e,i,s);r=g(v)?v:""}else if(s&&Object.prototype.hasOwnProperty.call(s,m))r="";else if(f){r=i[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`),r="";else!g(r)&&!this.useRawValueToEscape&&(r=le(r));const x=h.safeValue(r);if(e=e.replace(i[0],x),f?(h.regex.lastIndex+=r.length,h.regex.lastIndex-=i[0].length):h.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,r;const l=(o,u)=>{const d=this.nestingOptionsSeparator;if(o.indexOf(d)<0)return o;const f=o.split(new RegExp(`${d}[ ]*{`));let c=`{${f[1]}`;o=f[0],c=this.interpolate(c,r);const p=c.match(/'/g),h=c.match(/"/g);(((p==null?void 0:p.length)??0)%2===0&&!h||h.length%2!==0)&&(c=c.replace(/'/g,'"'));try{r=JSON.parse(c),u&&(r={...u,...r})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${o}`,m),`${o}${d}${c}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,o};for(;s=this.nestingRegexp.exec(e);){let o=[];r={...n},r=r.replace&&!g(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const d=s[1].split(this.formatSeparator).map(f=>f.trim());s[1]=d.shift(),o=d,u=!0}if(i=t(l.call(this,s[1].trim(),r),r),i&&s[0]===e&&!g(i))return i;g(i)||(i=le(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),i=""),u&&(i=o.reduce((d,f)=>this.format(d,f,n.lng,{...n,interpolationkey:s[1].trim()}),i.trim())),e=e.replace(s[0],i),this.regexp.lastIndex=0}return e}}const qe=a=>{let e=a.toLowerCase().trim();const t={};if(a.indexOf("(")>-1){const n=a.split("(");e=n[0].toLowerCase().trim();const s=n[1].substring(0,n[1].length-1);e==="currency"&&s.indexOf(":")<0?t.currency||(t.currency=s.trim()):e==="relativetime"&&s.indexOf(":")<0?t.range||(t.range=s.trim()):s.split(";").forEach(r=>{if(r){const[l,...o]=r.split(":"),u=o.join(":").trim().replace(/^'+|'+$/g,""),d=l.trim();t[d]||(t[d]=u),u==="false"&&(t[d]=!1),u==="true"&&(t[d]=!0),isNaN(u)||(t[d]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},D=a=>{const e={};return(t,n,s)=>{let i=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(i={...i,[s.interpolationkey]:void 0});const r=n+JSON.stringify(i);let l=e[r];return l||(l=a(Q(n),s),e[r]=l),l(t)}};class Ye{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=E.create("formatter"),this.options=e,this.formats={number:D((t,n)=>{const s=new Intl.NumberFormat(t,{...n});return i=>s.format(i)}),currency:D((t,n)=>{const s=new Intl.NumberFormat(t,{...n,style:"currency"});return i=>s.format(i)}),datetime:D((t,n)=>{const s=new Intl.DateTimeFormat(t,{...n});return i=>s.format(i)}),relativetime:D((t,n)=>{const s=new Intl.RelativeTimeFormat(t,{...n});return i=>s.format(i,n.range||"day")}),list:D((t,n)=>{const s=new Intl.ListFormat(t,{...n});return i=>s.format(i)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=D(t)}format(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(l=>l.indexOf(")")>-1)){const l=i.findIndex(o=>o.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,l)].join(this.formatSeparator)}return i.reduce((l,o)=>{var f;const{formatName:u,formatOptions:d}=qe(o);if(this.formats[u]){let c=l;try{const p=((f=s==null?void 0:s.formatParams)==null?void 0:f[s.interpolationkey])||{},h=p.locale||p.lng||s.locale||s.lng||n;c=this.formats[u](l,h,{...d,...s,...p})}catch(p){this.logger.warn(p)}return c}else this.logger.warn(`there was no format function for ${u}`);return l},e)}}const Qe=(a,e)=>{a.pending[e]!==void 0&&(delete a.pending[e],a.pendingCount--)};class Ze extends _{constructor(e,t,n){var i,r;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=s,this.logger=E.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],(r=(i=this.backend)==null?void 0:i.init)==null||r.call(i,n,s.backend,s)}queueLoad(e,t,n,s){const i={},r={},l={},o={};return e.forEach(u=>{let d=!0;t.forEach(f=>{const c=`${u}|${f}`;!n.reload&&this.store.hasResourceBundle(u,f)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?r[c]===void 0&&(r[c]=!0):(this.state[c]=1,d=!1,r[c]===void 0&&(r[c]=!0),i[c]===void 0&&(i[c]=!0),o[f]===void 0&&(o[f]=!0)))}),d||(l[u]=!0)}),(Object.keys(i).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(r),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(o)}}loaded(e,t,n){const s=e.split("|"),i=s[0],r=s[1];t&&this.emit("failedLoading",i,r,t),!t&&n&&this.store.addResourceBundle(i,r,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const l={};this.queue.forEach(o=>{De(o.loaded,[i],r),Qe(o,e),t&&o.errors.push(t),o.pendingCount===0&&!o.done&&(Object.keys(o.loaded).forEach(u=>{l[u]||(l[u]={});const d=o.loaded[u];d.length&&d.forEach(f=>{l[u][f]===void 0&&(l[u][f]=!0)})}),o.done=!0,o.errors.length?o.callback(o.errors):o.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(o=>!o.done)}read(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,r=arguments.length>5?arguments[5]:void 0;if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:s,wait:i,callback:r});return}this.readingCalls++;const l=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&s{this.read.call(this,e,t,n,s+1,i*2,r)},i);return}r(u,d)},o=this.backend[n].bind(this.backend);if(o.length===2){try{const u=o(e,t);u&&typeof u.then=="function"?u.then(d=>l(null,d)).catch(l):l(null,u)}catch(u){l(u)}return}return o(e,t,l)}prepareLoading(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();g(e)&&(e=this.languageUtils.toResolveHierarchy(e)),g(t)&&(t=[t]);const i=this.queueLoad(e,t,n,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(r=>{this.loadOne(r)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=e.split("|"),s=n[0],i=n[1];this.read(s,i,"read",void 0,void 0,(r,l)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${s} failed`,r),!r&&l&&this.logger.log(`${t}loaded namespace ${i} for language ${s}`,l),this.loaded(e,r,l)})}saveMissing(e,t,n,s,i){var o,u,d,f,c;let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((u=(o=this.services)==null?void 0:o.utils)!=null&&u.hasLoadedNamespace&&!((f=(d=this.services)==null?void 0:d.utils)!=null&&f.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${n}" as the namespace "${t}" 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(!(n==null||n==="")){if((c=this.backend)!=null&&c.create){const p={...r,isUpdate:i},h=this.backend.create.bind(this.backend);if(h.length<6)try{let m;h.length===5?m=h(e,t,n,s,p):m=h(e,t,n,s),m&&typeof m.then=="function"?m.then(x=>l(null,x)).catch(l):l(null,m)}catch(m){l(m)}else h(e,t,n,s,l,p)}!e||!e[0]||this.store.addResource(e[0],t,n,s)}}}const ye=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:a=>{let e={};if(typeof a[1]=="object"&&(e=a[1]),g(a[1])&&(e.defaultValue=a[1]),g(a[2])&&(e.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){const t=a[3]||a[2];Object.keys(t).forEach(n=>{e[n]=t[n]})}return e},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Se=a=>{var e,t;return g(a.ns)&&(a.ns=[a.ns]),g(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),g(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),((t=(e=a.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),typeof a.initImmediate=="boolean"&&(a.initAsync=a.initImmediate),a},q=()=>{},Xe=a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(t=>{typeof a[t]=="function"&&(a[t]=a[t].bind(a))})};class J extends _{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Se(e),this.services={},this.logger=E,this.modules={external:[]},Xe(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(g(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const s=ye();this.options={...s,...this.options,...Se(t)},this.options.interpolation={...s.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?E.init(i(this.modules.logger),this.options):E.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=Ye;const f=new pe(this.options);this.store=new fe(this.options.resources,this.options);const c=this.services;c.logger=E,c.resourceStore=this.store,c.languageUtils=f,c.pluralResolver=new Ge(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(c.formatter=i(d),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new We(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new Ze(i(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(p){for(var h=arguments.length,m=new Array(h>1?h-1:0),x=1;x1?h-1:0),x=1;x{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,n||(n=q),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[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(d=>{this[d]=function(){return e.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return e.store[d](...arguments),e}});const o=H(),u=()=>{const d=(f,c)=>{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),o.resolve(c),n(f,c)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),o}loadResources(e){var i,r;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q;const s=g(e)?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if((s==null?void 0:s.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const l=[],o=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&l.indexOf(f)<0&&l.push(f)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>o(d)),(r=(i=this.options.preload)==null?void 0:i.forEach)==null||r.call(i,u=>o(u)),this.services.backendConnector.load(l,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(u)})}else n(null)}reloadResources(e,t,n){const s=H();return typeof e=="function"&&(n=e,e=void 0),typeof t=="function"&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=q),this.services.backendConnector.reload(e,t,i=>{s.resolve(),n(i)}),s}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Le.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const s=H();this.emit("languageChanging",e);const i=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},r=(o,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return n.t(...arguments)}),t&&t(o,function(){return n.t(...arguments)})},l=o=>{var d,f;!e&&!o&&this.services.languageDetector&&(o=[]);const u=g(o)?o:this.services.languageUtils.getBestMatchFromCodes(o);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),(f=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||f.call(d,u)),this.loadResources(u,c=>{r(c,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e),s}getFixedT(e,t,n){var s=this;const i=function(r,l){let o;if(typeof l!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f`${o.keyPrefix}${c}${h}`):p=o.keyPrefix?`${o.keyPrefix}${c}${r}`:r,s.t(p,o)};return g(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){var s;for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:{};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 n=t.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const r=(l,o)=>{const u=this.services.backendConnector.state[`${l}|${o}`];return u===-1||u===0||u===2};if(t.precheck){const l=t.precheck(this,r);if(l!==void 0)return l}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||r(n,e)&&(!s||r(i,e)))}loadNamespaces(e,t){const n=H();return this.options.ns?(g(e)&&(e=[e]),e.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{n.resolve(),t&&t(s)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=H();g(e)&&(e=[e]);const s=this.options.preload||[],i=e.filter(r=>s.indexOf(r)<0&&this.services.languageUtils.isSupportedCode(r));return i.length?(this.options.preload=s.concat(i),this.loadResources(r=>{n.resolve(),t&&t(r)}),n):(t&&t(),Promise.resolve())}dir(e){var s,i;if(e||(e=this.resolvedLanguage||(((s=this.languages)==null?void 0:s.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["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"],n=((i=this.services)==null?void 0:i.languageUtils)||new pe(ye());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new J(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const s={...this.options,...e,isClone:!0},i=new J(s);if((e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(l=>{i[l]=this[l]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){const l=Object.keys(this.store.data).reduce((o,u)=>(o[u]={...this.store.data[u]},Object.keys(o[u]).reduce((d,f)=>(d[f]={...o[u][f]},d),{})),{});i.store=new fe(l,s),i.services.resourceStore=i.store}return i.translator=new X(i.services,s),i.translator.on("*",function(l){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d{const a=ve(e=>e.lang);return N.useEffect(()=>{b.changeLanguage(a)},[a]),null};function Zt(){return S.jsxs("main",{className:"flex flex-col min-h-screen",children:[S.jsx(Qt,{}),S.jsx(ke,{}),S.jsx("div",{className:"flex-auto",children:S.jsx(Pe,{})}),S.jsx(Re,{})]})}const Xt=N.lazy(()=>V(()=>import("./home-txdTrUQ0.js"),__vite__mapDeps([0,1,2]))),_t=N.lazy(()=>V(()=>import("./about-CMgbXwv8.js"),__vite__mapDeps([3,1,2,4]))),en=N.lazy(()=>V(()=>import("./b2b-CqSccVir.js"),__vite__mapDeps([5,1,2,6,7,4]))),tn=N.lazy(()=>V(()=>import("./become-sponsor-DppE17kq.js"),__vite__mapDeps([8,1,2,7,9,6,4,10]))),nn=N.lazy(()=>V(()=>import("./stend-form-BY8w56AL.js"),__vite__mapDeps([11,1,2,7,9,6,10]))),sn=N.lazy(()=>V(()=>import("./contacts-CaxKG6X1.js"),__vite__mapDeps([12,1,2,9,6,4]))),rn=Ce([{element:S.jsx(Zt,{}),path:"/",children:[{element:S.jsx(Xt,{}),path:""},{element:S.jsx(_t,{}),path:"/about"},{element:S.jsx(en,{}),path:"/B2B-B2G"},{element:S.jsx(tn,{}),path:"/become-sponsor"},{element:S.jsx(nn,{}),path:"/stend-form"},{element:S.jsx(sn,{}),path:"/contacts"}]}]);Fe.createRoot(document.getElementById("root")).render(S.jsx(N.StrictMode,{children:S.jsx(Ee,{router:rn})})); diff --git a/dist/assets/index-DW_MHI2K.js b/dist/assets/index-DW_MHI2K.js deleted file mode 100644 index 830ecbc..0000000 --- a/dist/assets/index-DW_MHI2K.js +++ /dev/null @@ -1,6 +0,0 @@ -function Ce(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ze}=Object.prototype,{getPrototypeOf:ue}=Object,K=(e=>t=>{const n=Ze.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),C=e=>(e=e.toLowerCase(),t=>K(t)===e),v=e=>t=>typeof t===e,{isArray:U}=Array,q=v("undefined");function Ye(e){return e!==null&&!q(e)&&e.constructor!==null&&!q(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ne=C("ArrayBuffer");function et(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ne(e.buffer),t}const tt=v("string"),x=v("function"),Pe=v("number"),X=e=>e!==null&&typeof e=="object",nt=e=>e===!0||e===!1,z=e=>{if(K(e)!=="object")return!1;const t=ue(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},rt=C("Date"),st=C("File"),ot=C("Blob"),it=C("FileList"),at=e=>X(e)&&x(e.pipe),ct=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||x(e.append)&&((t=K(e))==="formdata"||t==="object"&&x(e.toString)&&e.toString()==="[object FormData]"))},ut=C("URLSearchParams"),[lt,ft,dt,pt]=["ReadableStream","Request","Response","Headers"].map(C),ht=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function H(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),U(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const L=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fe=e=>!q(e)&&e!==L;function re(){const{caseless:e}=Fe(this)&&this||{},t={},n=(r,s)=>{const o=e&&_e(t,s)||s;z(t[o])&&z(r)?t[o]=re(t[o],r):z(r)?t[o]=re({},r):U(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(H(t,(s,o)=>{n&&x(s)?e[o]=Ce(s,n):e[o]=s},{allOwnKeys:r}),e),yt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},wt=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&ue(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Et=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Rt=e=>{if(!e)return null;if(U(e))return e;let t=e.length;if(!Pe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},St=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ue(Uint8Array)),gt=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Ot=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Tt=C("HTMLFormElement"),At=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),pe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xt=C("RegExp"),Le=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};H(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Ct=e=>{Le(e,(t,n)=>{if(x(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(x(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Nt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return U(e)?r(e):r(String(e).split(t)),n},Pt=()=>{},_t=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Y="abcdefghijklmnopqrstuvwxyz",he="0123456789",Be={DIGIT:he,ALPHA:Y,ALPHA_DIGIT:Y+Y.toUpperCase()+he},Ft=(e=16,t=Be.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Lt(e){return!!(e&&x(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Bt=e=>{const t=new Array(10),n=(r,s)=>{if(X(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=U(r)?[]:{};return H(r,(i,c)=>{const f=n(i,s+1);!q(f)&&(o[c]=f)}),t[s]=void 0,o}}return r};return n(e,0)},Dt=C("AsyncFunction"),Ut=e=>e&&(X(e)||x(e))&&x(e.then)&&x(e.catch),De=((e,t)=>e?setImmediate:t?((n,r)=>(L.addEventListener("message",({source:s,data:o})=>{s===L&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),L.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",x(L.postMessage)),kt=typeof queueMicrotask<"u"?queueMicrotask.bind(L):typeof process<"u"&&process.nextTick||De,a={isArray:U,isArrayBuffer:Ne,isBuffer:Ye,isFormData:ct,isArrayBufferView:et,isString:tt,isNumber:Pe,isBoolean:nt,isObject:X,isPlainObject:z,isReadableStream:lt,isRequest:ft,isResponse:dt,isHeaders:pt,isUndefined:q,isDate:rt,isFile:st,isBlob:ot,isRegExp:xt,isFunction:x,isStream:at,isURLSearchParams:ut,isTypedArray:St,isFileList:it,forEach:H,merge:re,extend:mt,trim:ht,stripBOM:yt,inherits:bt,toFlatObject:wt,kindOf:K,kindOfTest:C,endsWith:Et,toArray:Rt,forEachEntry:gt,matchAll:Ot,isHTMLForm:Tt,hasOwnProperty:pe,hasOwnProp:pe,reduceDescriptors:Le,freezeMethods:Ct,toObjectSet:Nt,toCamelCase:At,noop:Pt,toFiniteNumber:_t,findKey:_e,global:L,isContextDefined:Fe,ALPHABET:Be,generateString:Ft,isSpecCompliantForm:Lt,toJSONObject:Bt,isAsyncFn:Dt,isThenable:Ut,setImmediate:De,asap:kt};function m(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const Ue=m.prototype,ke={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ke[e]={value:e}});Object.defineProperties(m,ke);Object.defineProperty(Ue,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,o)=>{const i=Object.create(Ue);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const jt=null;function se(e){return a.isPlainObject(e)||a.isArray(e)}function je(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function me(e,t,n){return e?e.concat(t).map(function(s,o){return s=je(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function qt(e){return a.isArray(e)&&!e.some(se)}const Ht=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function G(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!a.isUndefined(h[y])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(!f&&a.isBlob(p))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,y,h){let w=p;if(p&&!h&&typeof p=="object"){if(a.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&qt(p)||(a.isFileList(p)||a.endsWith(y,"[]"))&&(w=a.toArray(p)))return y=je(y),w.forEach(function(g,P){!(a.isUndefined(g)||g===null)&&t.append(i===!0?me([y],P,o):i===null?y:y+"[]",u(g))}),!1}return se(p)?!0:(t.append(me(h,y,o),u(p)),!1)}const d=[],b=Object.assign(Ht,{defaultVisitor:l,convertValue:u,isVisitable:se});function R(p,y){if(!a.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(p),a.forEach(p,function(w,S){(!(a.isUndefined(w)||w===null)&&s.call(t,w,a.isString(S)?S.trim():S,y,b))===!0&&R(w,y?y.concat(S):[S])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return R(e),t}function ye(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function le(e,t){this._pairs=[],e&&G(e,this,t)}const qe=le.prototype;qe.append=function(t,n){this._pairs.push([t,n])};qe.toString=function(t){const n=t?function(r){return t.call(this,r,ye)}:ye;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function It(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function He(e,t,n){if(!t)return e;const r=n&&n.encode||It;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new le(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class be{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mt=typeof URLSearchParams<"u"?URLSearchParams:le,zt=typeof FormData<"u"?FormData:null,$t=typeof Blob<"u"?Blob:null,Jt={isBrowser:!0,classes:{URLSearchParams:Mt,FormData:zt,Blob:$t},protocols:["http","https","file","blob","url","data"]},fe=typeof window<"u"&&typeof document<"u",oe=typeof navigator=="object"&&navigator||void 0,Vt=fe&&(!oe||["ReactNative","NativeScript","NS"].indexOf(oe.product)<0),Wt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Kt=fe&&window.location.href||"http://localhost",vt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fe,hasStandardBrowserEnv:Vt,hasStandardBrowserWebWorkerEnv:Wt,navigator:oe,origin:Kt},Symbol.toStringTag,{value:"Module"})),O={...vt,...Jt};function Xt(e,t){return G(e,new O.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return O.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Gt(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Qt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=Qt(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Gt(r),s,n,0)}),n}return null}function Zt(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const I={transitional:Ie,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(Me(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Xt(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return G(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Zt(t)):t}],transformResponse:[function(t){const n=this.transitional||I.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{I.headers[e]={}});const Yt=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),en=e=>{const t={};let n,r,s;return e&&e.split(` -`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Yt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},we=Symbol("internals");function j(e){return e&&String(e).trim().toLowerCase()}function $(e){return e===!1||e==null?e:a.isArray(e)?e.map($):String(e)}function tn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const nn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ee(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function rn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function sn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let A=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,f,u){const l=j(f);if(!l)throw new Error("header name must be a non-empty string");const d=a.findKey(s,l);(!d||s[d]===void 0||u===!0||u===void 0&&s[d]!==!1)&&(s[d||f]=$(c))}const i=(c,f)=>a.forEach(c,(u,l)=>o(u,l,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!nn(t))i(en(t),n);else if(a.isHeaders(t))for(const[c,f]of t.entries())o(f,c,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=j(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return tn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=j(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ee(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=j(i),i){const c=a.findKey(r,i);c&&(!n||ee(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||ee(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=$(s),delete n[o];return}const c=t?rn(o):String(o).trim();c!==o&&delete n[o],n[c]=$(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[we]=this[we]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=j(i);r[c]||(sn(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}};A.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(A.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(A);function te(e,t){const n=this||I,r=t||n,s=A.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function ze(e){return!!(e&&e.__CANCEL__)}function k(e,t,n){m.call(this,e??"canceled",m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(k,m,{__CANCEL__:!0});function $e(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function on(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function an(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),l=r[o];i||(i=u),n[s]=f,r[s]=u;let d=o,b=0;for(;d!==s;)b+=n[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i{n=l,s=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const l=Date.now(),d=l-n;d>=r?i(u,l):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-d)))},()=>s&&i(s)]}const V=(e,t,n=3)=>{let r=0;const s=an(50,250);return cn(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,f=i-r,u=s(f),l=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c&&l?(c-i)/u:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(d)},n)},Ee=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Re=e=>(...t)=>a.asap(()=>e(...t)),un=O.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,O.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(O.origin),O.navigator&&/(msie|trident)/i.test(O.navigator.userAgent)):()=>!0,ln=O.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Je(e,t){return e&&!fn(t)?dn(e,t):t}const Se=e=>e instanceof A?{...e}:e;function D(e,t){t=t||{};const n={};function r(u,l,d,b){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:b},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(u,l,d,b){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u,d,b)}else return r(u,l,d,b)}function o(u,l){if(!a.isUndefined(l))return r(void 0,l)}function i(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function c(u,l,d){if(d in t)return r(u,l);if(d in e)return r(void 0,u)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(u,l,d)=>s(Se(u),Se(l),d,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(l){const d=f[l]||s,b=d(e[l],t[l],l);a.isUndefined(b)&&d!==c||(n[l]=b)}),n}const Ve=e=>{const t=D({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=A.from(i),t.url=He(Je(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(n)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[u,...l]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...l].join("; "))}}if(O.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&un(t.url))){const u=s&&o&&ln.read(o);u&&i.set(s,u)}return t},pn=typeof XMLHttpRequest<"u",hn=pn&&function(e){return new Promise(function(n,r){const s=Ve(e);let o=s.data;const i=A.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=s,l,d,b,R,p;function y(){R&&R(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function w(){if(!h)return;const g=A.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:g,config:e,request:h};$e(function(F){n(F),y()},function(F){r(F),y()},T),h=null}"onloadend"in h?h.onloadend=w:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(w)},h.onabort=function(){h&&(r(new m("Request aborted",m.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const T=s.transitional||Ie;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),r(new m(P,T.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(P,T){h.setRequestHeader(T,P)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),u&&([b,p]=V(u,!0),h.addEventListener("progress",b)),f&&h.upload&&([d,R]=V(f),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",R)),(s.cancelToken||s.signal)&&(l=g=>{h&&(r(!g||g.type?new k(null,e,h):g),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const S=on(s.url);if(S&&O.protocols.indexOf(S)===-1){r(new m("Unsupported protocol "+S+":",m.ERR_BAD_REQUEST,e));return}h.send(o||null)})},mn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,c();const l=u instanceof Error?u:this.reason;r.abort(l instanceof m?l:new k(l instanceof Error?l.message:l))}};let i=t&&setTimeout(()=>{i=null,o(new m(`timeout ${t} of ms exceeded`,m.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},yn=function*(e,t){let n=e.byteLength;if(n{const s=bn(e,t);let o=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:u,value:l}=await s.next();if(u){c(),f.close();return}let d=l.byteLength;if(n){let b=o+=d;n(b)}f.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},Q=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",We=Q&&typeof ReadableStream=="function",En=Q&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ke=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rn=We&&Ke(()=>{let e=!1;const t=new Request(O.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Oe=64*1024,ie=We&&Ke(()=>a.isReadableStream(new Response("").body)),W={stream:ie&&(e=>e.body)};Q&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!W[t]&&(W[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new m(`Response type '${t}' is not supported`,m.ERR_NOT_SUPPORT,r)})})})(new Response);const Sn=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(O.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await En(e)).byteLength},gn=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Sn(t)},On=Q&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:b}=Ve(e);u=u?(u+"").toLowerCase():"text";let R=mn([s,o&&o.toAbortSignal()],i),p;const y=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let h;try{if(f&&Rn&&n!=="get"&&n!=="head"&&(h=await gn(l,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),_;if(a.isFormData(r)&&(_=T.headers.get("content-type"))&&l.setContentType(_),T.body){const[F,M]=Ee(h,V(Re(f)));r=ge(T.body,Oe,F,M)}}a.isString(d)||(d=d?"include":"omit");const w="credentials"in Request.prototype;p=new Request(t,{...b,signal:R,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:w?d:void 0});let S=await fetch(p);const g=ie&&(u==="stream"||u==="response");if(ie&&(c||g&&y)){const T={};["status","statusText","headers"].forEach(de=>{T[de]=S[de]});const _=a.toFiniteNumber(S.headers.get("content-length")),[F,M]=c&&Ee(_,V(Re(c),!0))||[];S=new Response(ge(S.body,Oe,F,()=>{M&&M(),y&&y()}),T)}u=u||"text";let P=await W[a.findKey(W,u)||"text"](S,e);return!g&&y&&y(),await new Promise((T,_)=>{$e(T,_,{data:P,headers:A.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:p})})}catch(w){throw y&&y(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new m("Network Error",m.ERR_NETWORK,e,p),{cause:w.cause||w}):m.from(w,w&&w.code,e,p)}}),ae={http:jt,xhr:hn,fetch:On};a.forEach(ae,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Te=e=>`- ${e}`,Tn=e=>a.isFunction(e)||e===null||e===!1,ve={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : -`+o.map(Te).join(` -`):" "+Te(o[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ae};function ne(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new k(null,e)}function Ae(e){return ne(e),e.headers=A.from(e.headers),e.data=te.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ve.getAdapter(e.adapter||I.adapter)(e).then(function(r){return ne(e),r.data=te.call(e,e.transformResponse,r),r.headers=A.from(r.headers),r},function(r){return ze(r)||(ne(e),r&&r.response&&(r.response.data=te.call(e,e.transformResponse,r.response),r.response.headers=A.from(r.response.headers))),Promise.reject(r)})}const Xe="1.7.9",Z={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Z[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xe={};Z.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Xe+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!xe[i]&&(xe[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};Z.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function An(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],f=c===void 0||i(c,o,e);if(f!==!0)throw new m("option "+o+" must be "+f,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const J={assertOptions:An,validators:Z},N=J.validators;let B=class{constructor(t){this.defaults=t,this.interceptors={request:new be,response:new be}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=D(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&J.assertOptions(r,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:J.assertOptions(s,{encode:N.function,serialize:N.function},!0)),J.assertOptions(n,{baseUrl:N.spelling("baseURL"),withXsrfToken:N.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=A.concat(i,o);const c=[];let f=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(f=f&&y.synchronous,c.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let l,d=0,b;if(!f){const p=[Ae.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,u),b=p.length,l=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new k(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ge(function(s){t=s}),cancel:t}}};function Cn(e){return function(n){return e.apply(null,n)}}function Nn(e){return a.isObject(e)&&e.isAxiosError===!0}const ce={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ce).forEach(([e,t])=>{ce[t]=e});function Qe(e){const t=new B(e),n=Ce(B.prototype.request,t);return a.extend(n,B.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Qe(D(e,s))},n}const E=Qe(I);E.Axios=B;E.CanceledError=k;E.CancelToken=xn;E.isCancel=ze;E.VERSION=Xe;E.toFormData=G;E.AxiosError=m;E.Cancel=E.CanceledError;E.all=function(t){return Promise.all(t)};E.spread=Cn;E.isAxiosError=Nn;E.mergeConfig=D;E.AxiosHeaders=A;E.formToJSON=e=>Me(a.isHTMLForm(e)?new FormData(e):e);E.getAdapter=ve.getAdapter;E.HttpStatusCode=ce;E.default=E;const{Axios:Fn,AxiosError:Ln,CanceledError:Bn,isCancel:Dn,CancelToken:Un,VERSION:kn,all:jn,Cancel:qn,isAxiosError:Hn,spread:In,toFormData:Mn,AxiosHeaders:zn,HttpStatusCode:$n,formToJSON:Jn,getAdapter:Vn,mergeConfig:Wn}=E;export{E as a}; diff --git a/dist/assets/radio-group-BLXRVl3s.js b/dist/assets/radio-group-BLXRVl3s.js deleted file mode 100644 index 92032d4..0000000 --- a/dist/assets/radio-group-BLXRVl3s.js +++ /dev/null @@ -1 +0,0 @@ -import{I as N,J as F,j as d,S as L,K as fe,P as A,M as y,N as K,O as pe,Q as me,R as Re,f as U}from"./ui-library-DIIRVSEU.js";import{d as w,a as s}from"./react-vendor-ERTQd_Nj.js";function ve(e){const o=e+"CollectionProvider",[t,n]=N(o),[a,i]=t(o,{collectionRef:{current:null},itemMap:new Map}),p=c=>{const{scope:r,children:l}=c,m=w.useRef(null),R=w.useRef(new Map).current;return d.jsx(a,{scope:r,itemMap:R,collectionRef:m,children:l})};p.displayName=o;const C=e+"CollectionSlot",f=w.forwardRef((c,r)=>{const{scope:l,children:m}=c,R=i(C,l),I=F(r,R.collectionRef);return d.jsx(L,{ref:I,children:m})});f.displayName=C;const u=e+"CollectionItemSlot",g="data-radix-collection-item",v=w.forwardRef((c,r)=>{const{scope:l,children:m,...R}=c,I=w.useRef(null),h=F(r,I),S=i(u,l);return w.useEffect(()=>(S.itemMap.set(I,{ref:I,...R}),()=>void S.itemMap.delete(I))),d.jsx(L,{[g]:"",ref:h,children:m})});v.displayName=u;function b(c){const r=i(e+"CollectionConsumer",c);return w.useCallback(()=>{const m=r.collectionRef.current;if(!m)return[];const R=Array.from(m.querySelectorAll(`[${g}]`));return Array.from(r.itemMap.values()).sort((S,_)=>R.indexOf(S.ref.current)-R.indexOf(_.ref.current))},[r.collectionRef,r.itemMap])}return[{Provider:p,Slot:f,ItemSlot:v},b,n]}var be=s.createContext(void 0);function V(e){const o=s.useContext(be);return e||o||"ltr"}var k="rovingFocusGroup.onEntryFocus",Ie={bubbles:!1,cancelable:!0},P="RovingFocusGroup",[G,B,Ce]=ve(P),[ge,q]=N(P,[Ce]),[xe,ye]=ge(P),z=s.forwardRef((e,o)=>d.jsx(G.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(G.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Ee,{...e,ref:o})})}));z.displayName=P;var Ee=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,orientation:n,loop:a=!1,dir:i,currentTabStopId:p,defaultCurrentTabStopId:C,onCurrentTabStopIdChange:f,onEntryFocus:u,preventScrollOnEntryFocus:g=!1,...v}=e,b=s.useRef(null),c=F(o,b),r=V(i),[l=null,m]=K({prop:p,defaultProp:C,onChange:f}),[R,I]=s.useState(!1),h=pe(u),S=B(t),_=s.useRef(!1),[ae,j]=s.useState(0);return s.useEffect(()=>{const x=b.current;if(x)return x.addEventListener(k,h),()=>x.removeEventListener(k,h)},[h]),d.jsx(xe,{scope:t,orientation:n,dir:r,loop:a,currentTabStopId:l,onItemFocus:s.useCallback(x=>m(x),[m]),onItemShiftTab:s.useCallback(()=>I(!0),[]),onFocusableItemAdd:s.useCallback(()=>j(x=>x+1),[]),onFocusableItemRemove:s.useCallback(()=>j(x=>x-1),[]),children:d.jsx(A.div,{tabIndex:R||ae===0?-1:0,"data-orientation":n,...v,ref:c,style:{outline:"none",...e.style},onMouseDown:y(e.onMouseDown,()=>{_.current=!0}),onFocus:y(e.onFocus,x=>{const ie=!_.current;if(x.target===x.currentTarget&&ie&&!R){const O=new CustomEvent(k,Ie);if(x.currentTarget.dispatchEvent(O),!O.defaultPrevented){const T=S().filter(E=>E.focusable),ue=T.find(E=>E.active),de=T.find(E=>E.id===l),le=[ue,de,...T].filter(Boolean).map(E=>E.ref.current);H(le,g)}}_.current=!1}),onBlur:y(e.onBlur,()=>I(!1))})})}),Y="RovingFocusGroupItem",$=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,focusable:n=!0,active:a=!1,tabStopId:i,...p}=e,C=fe(),f=i||C,u=ye(Y,t),g=u.currentTabStopId===f,v=B(t),{onFocusableItemAdd:b,onFocusableItemRemove:c}=u;return s.useEffect(()=>{if(n)return b(),()=>c()},[n,b,c]),d.jsx(G.ItemSlot,{scope:t,id:f,focusable:n,active:a,children:d.jsx(A.span,{tabIndex:g?0:-1,"data-orientation":u.orientation,...p,ref:o,onMouseDown:y(e.onMouseDown,r=>{n?u.onItemFocus(f):r.preventDefault()}),onFocus:y(e.onFocus,()=>u.onItemFocus(f)),onKeyDown:y(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){u.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const l=Se(r,u.orientation,u.dir);if(l!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let R=v().filter(I=>I.focusable).map(I=>I.ref.current);if(l==="last")R.reverse();else if(l==="prev"||l==="next"){l==="prev"&&R.reverse();const I=R.indexOf(r.currentTarget);R=u.loop?_e(R,I+1):R.slice(I+1)}setTimeout(()=>H(R))}})})})});$.displayName=Y;var we={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function he(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Se(e,o,t){const n=he(e.key,t);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return we[n]}function H(e,o=!1){const t=document.activeElement;for(const n of e)if(n===t||(n.focus({preventScroll:o}),document.activeElement!==t))return}function _e(e,o){return e.map((t,n)=>e[(o+n)%e.length])}var Fe=z,Ae=$;function Ne(e){const o=s.useRef({value:e,previous:e});return s.useMemo(()=>(o.current.value!==e&&(o.current.previous=o.current.value,o.current.value=e),o.current.previous),[e])}var M="Radio",[Pe,J]=N(M),[Te,ke]=Pe(M),Q=s.forwardRef((e,o)=>{const{__scopeRadio:t,name:n,checked:a=!1,required:i,disabled:p,value:C="on",onCheck:f,form:u,...g}=e,[v,b]=s.useState(null),c=F(o,m=>b(m)),r=s.useRef(!1),l=v?u||!!v.closest("form"):!0;return d.jsxs(Te,{scope:t,checked:a,disabled:p,children:[d.jsx(A.button,{type:"button",role:"radio","aria-checked":a,"data-state":Z(a),"data-disabled":p?"":void 0,disabled:p,value:C,...g,ref:c,onClick:y(e.onClick,m=>{a||f==null||f(),l&&(r.current=m.isPropagationStopped(),r.current||m.stopPropagation())})}),l&&d.jsx(Ge,{control:v,bubbles:!r.current,name:n,value:C,checked:a,required:i,disabled:p,form:u,style:{transform:"translateX(-100%)"}})]})});Q.displayName=M;var W="RadioIndicator",X=s.forwardRef((e,o)=>{const{__scopeRadio:t,forceMount:n,...a}=e,i=ke(W,t);return d.jsx(Re,{present:n||i.checked,children:d.jsx(A.span,{"data-state":Z(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:o})})});X.displayName=W;var Ge=e=>{const{control:o,checked:t,bubbles:n=!0,...a}=e,i=s.useRef(null),p=Ne(t),C=me(o);return s.useEffect(()=>{const f=i.current,u=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(u,"checked").set;if(p!==t&&v){const b=new Event("click",{bubbles:n});v.call(f,t),f.dispatchEvent(b)}},[p,t,n]),d.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:i,style:{...e.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Z(e){return e?"checked":"unchecked"}var Me=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],D="RadioGroup",[De,Ye]=N(D,[q,J]),ee=q(),oe=J(),[je,Oe]=De(D),te=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,name:n,defaultValue:a,value:i,required:p=!1,disabled:C=!1,orientation:f,dir:u,loop:g=!0,onValueChange:v,...b}=e,c=ee(t),r=V(u),[l,m]=K({prop:i,defaultProp:a,onChange:v});return d.jsx(je,{scope:t,name:n,required:p,disabled:C,value:l,onValueChange:m,children:d.jsx(Fe,{asChild:!0,...c,orientation:f,dir:r,loop:g,children:d.jsx(A.div,{role:"radiogroup","aria-required":p,"aria-orientation":f,"data-disabled":C?"":void 0,dir:r,...b,ref:o})})})});te.displayName=D;var re="RadioGroupItem",ne=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,disabled:n,...a}=e,i=Oe(re,t),p=i.disabled||n,C=ee(t),f=oe(t),u=s.useRef(null),g=F(o,u),v=i.value===a.value,b=s.useRef(!1);return s.useEffect(()=>{const c=l=>{Me.includes(l.key)&&(b.current=!0)},r=()=>b.current=!1;return document.addEventListener("keydown",c),document.addEventListener("keyup",r),()=>{document.removeEventListener("keydown",c),document.removeEventListener("keyup",r)}},[]),d.jsx(Ae,{asChild:!0,...C,focusable:!p,active:v,children:d.jsx(Q,{disabled:p,required:i.required,checked:v,...f,...a,name:i.name,ref:g,onCheck:()=>i.onValueChange(a.value),onKeyDown:y(c=>{c.key==="Enter"&&c.preventDefault()}),onFocus:y(a.onFocus,()=>{var c;b.current&&((c=u.current)==null||c.click())})})})});ne.displayName=re;var Le="RadioGroupIndicator",Ke=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,...n}=e,a=oe(t);return d.jsx(X,{...a,...n,ref:o})});Ke.displayName=Le;var se=te,ce=ne;const Ue=s.forwardRef(({className:e,...o},t)=>d.jsx(se,{className:U("grid gap-2",e),...o,ref:t}));Ue.displayName=se.displayName;const Ve=s.forwardRef(({className:e,...o},t)=>d.jsx(ce,{ref:t,className:U(o.checked?"border-primary after:bg-opacity-1":"border-on_surface bg-transparent after:bg-opacity-0","size-5 rounded-full border-[2px] after:size-[9px] after:bg-primary before:scale-0 hover:before:scale-100 before:size-10 before:rounded-full before:transition-all before:absolute before:-top-3 before:-left-3 before:bg-on_surface/[8%] duration-300 after:rounded-full flex relative items-center justify-center text-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring transition-all disabled:cursor-not-allowed disabled:opacity-50",e),...o}));Ve.displayName=ce.displayName;export{Ue as R,Ve as a}; diff --git a/dist/assets/radio-group-D8w5Al47.js b/dist/assets/radio-group-D8w5Al47.js new file mode 100644 index 0000000..9fc509d --- /dev/null +++ b/dist/assets/radio-group-D8w5Al47.js @@ -0,0 +1 @@ +import{I as N,J as F,j as d,S as L,K,M as fe,P as A,N as y,O as pe,Q as me,R as Re,f as U}from"./ui-library-TPw9Lr4N.js";import{d as w,a as s}from"./react-vendor-OnsDvTPE.js";function ve(e){const o=e+"CollectionProvider",[t,n]=N(o),[a,i]=t(o,{collectionRef:{current:null},itemMap:new Map}),p=c=>{const{scope:r,children:l}=c,m=w.useRef(null),R=w.useRef(new Map).current;return d.jsx(a,{scope:r,itemMap:R,collectionRef:m,children:l})};p.displayName=o;const C=e+"CollectionSlot",f=w.forwardRef((c,r)=>{const{scope:l,children:m}=c,R=i(C,l),I=F(r,R.collectionRef);return d.jsx(L,{ref:I,children:m})});f.displayName=C;const u=e+"CollectionItemSlot",g="data-radix-collection-item",v=w.forwardRef((c,r)=>{const{scope:l,children:m,...R}=c,I=w.useRef(null),h=F(r,I),S=i(u,l);return w.useEffect(()=>(S.itemMap.set(I,{ref:I,...R}),()=>void S.itemMap.delete(I))),d.jsx(L,{[g]:"",ref:h,children:m})});v.displayName=u;function b(c){const r=i(e+"CollectionConsumer",c);return w.useCallback(()=>{const m=r.collectionRef.current;if(!m)return[];const R=Array.from(m.querySelectorAll(`[${g}]`));return Array.from(r.itemMap.values()).sort((S,_)=>R.indexOf(S.ref.current)-R.indexOf(_.ref.current))},[r.collectionRef,r.itemMap])}return[{Provider:p,Slot:f,ItemSlot:v},b,n]}var be=s.createContext(void 0);function V(e){const o=s.useContext(be);return e||o||"ltr"}var k="rovingFocusGroup.onEntryFocus",Ie={bubbles:!1,cancelable:!0},P="RovingFocusGroup",[G,B,Ce]=ve(P),[ge,q]=N(P,[Ce]),[xe,ye]=ge(P),z=s.forwardRef((e,o)=>d.jsx(G.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(G.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Ee,{...e,ref:o})})}));z.displayName=P;var Ee=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,orientation:n,loop:a=!1,dir:i,currentTabStopId:p,defaultCurrentTabStopId:C,onCurrentTabStopIdChange:f,onEntryFocus:u,preventScrollOnEntryFocus:g=!1,...v}=e,b=s.useRef(null),c=F(o,b),r=V(i),[l=null,m]=K({prop:p,defaultProp:C,onChange:f}),[R,I]=s.useState(!1),h=fe(u),S=B(t),_=s.useRef(!1),[ae,j]=s.useState(0);return s.useEffect(()=>{const x=b.current;if(x)return x.addEventListener(k,h),()=>x.removeEventListener(k,h)},[h]),d.jsx(xe,{scope:t,orientation:n,dir:r,loop:a,currentTabStopId:l,onItemFocus:s.useCallback(x=>m(x),[m]),onItemShiftTab:s.useCallback(()=>I(!0),[]),onFocusableItemAdd:s.useCallback(()=>j(x=>x+1),[]),onFocusableItemRemove:s.useCallback(()=>j(x=>x-1),[]),children:d.jsx(A.div,{tabIndex:R||ae===0?-1:0,"data-orientation":n,...v,ref:c,style:{outline:"none",...e.style},onMouseDown:y(e.onMouseDown,()=>{_.current=!0}),onFocus:y(e.onFocus,x=>{const ie=!_.current;if(x.target===x.currentTarget&&ie&&!R){const O=new CustomEvent(k,Ie);if(x.currentTarget.dispatchEvent(O),!O.defaultPrevented){const T=S().filter(E=>E.focusable),ue=T.find(E=>E.active),de=T.find(E=>E.id===l),le=[ue,de,...T].filter(Boolean).map(E=>E.ref.current);H(le,g)}}_.current=!1}),onBlur:y(e.onBlur,()=>I(!1))})})}),Y="RovingFocusGroupItem",$=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,focusable:n=!0,active:a=!1,tabStopId:i,...p}=e,C=pe(),f=i||C,u=ye(Y,t),g=u.currentTabStopId===f,v=B(t),{onFocusableItemAdd:b,onFocusableItemRemove:c}=u;return s.useEffect(()=>{if(n)return b(),()=>c()},[n,b,c]),d.jsx(G.ItemSlot,{scope:t,id:f,focusable:n,active:a,children:d.jsx(A.span,{tabIndex:g?0:-1,"data-orientation":u.orientation,...p,ref:o,onMouseDown:y(e.onMouseDown,r=>{n?u.onItemFocus(f):r.preventDefault()}),onFocus:y(e.onFocus,()=>u.onItemFocus(f)),onKeyDown:y(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){u.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const l=Se(r,u.orientation,u.dir);if(l!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let R=v().filter(I=>I.focusable).map(I=>I.ref.current);if(l==="last")R.reverse();else if(l==="prev"||l==="next"){l==="prev"&&R.reverse();const I=R.indexOf(r.currentTarget);R=u.loop?_e(R,I+1):R.slice(I+1)}setTimeout(()=>H(R))}})})})});$.displayName=Y;var we={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function he(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Se(e,o,t){const n=he(e.key,t);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return we[n]}function H(e,o=!1){const t=document.activeElement;for(const n of e)if(n===t||(n.focus({preventScroll:o}),document.activeElement!==t))return}function _e(e,o){return e.map((t,n)=>e[(o+n)%e.length])}var Fe=z,Ae=$;function Ne(e){const o=s.useRef({value:e,previous:e});return s.useMemo(()=>(o.current.value!==e&&(o.current.previous=o.current.value,o.current.value=e),o.current.previous),[e])}var M="Radio",[Pe,J]=N(M),[Te,ke]=Pe(M),Q=s.forwardRef((e,o)=>{const{__scopeRadio:t,name:n,checked:a=!1,required:i,disabled:p,value:C="on",onCheck:f,form:u,...g}=e,[v,b]=s.useState(null),c=F(o,m=>b(m)),r=s.useRef(!1),l=v?u||!!v.closest("form"):!0;return d.jsxs(Te,{scope:t,checked:a,disabled:p,children:[d.jsx(A.button,{type:"button",role:"radio","aria-checked":a,"data-state":Z(a),"data-disabled":p?"":void 0,disabled:p,value:C,...g,ref:c,onClick:y(e.onClick,m=>{a||f==null||f(),l&&(r.current=m.isPropagationStopped(),r.current||m.stopPropagation())})}),l&&d.jsx(Ge,{control:v,bubbles:!r.current,name:n,value:C,checked:a,required:i,disabled:p,form:u,style:{transform:"translateX(-100%)"}})]})});Q.displayName=M;var W="RadioIndicator",X=s.forwardRef((e,o)=>{const{__scopeRadio:t,forceMount:n,...a}=e,i=ke(W,t);return d.jsx(me,{present:n||i.checked,children:d.jsx(A.span,{"data-state":Z(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:o})})});X.displayName=W;var Ge=e=>{const{control:o,checked:t,bubbles:n=!0,...a}=e,i=s.useRef(null),p=Ne(t),C=Re(o);return s.useEffect(()=>{const f=i.current,u=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(u,"checked").set;if(p!==t&&v){const b=new Event("click",{bubbles:n});v.call(f,t),f.dispatchEvent(b)}},[p,t,n]),d.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:i,style:{...e.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Z(e){return e?"checked":"unchecked"}var Me=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],D="RadioGroup",[De,Ye]=N(D,[q,J]),ee=q(),oe=J(),[je,Oe]=De(D),te=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,name:n,defaultValue:a,value:i,required:p=!1,disabled:C=!1,orientation:f,dir:u,loop:g=!0,onValueChange:v,...b}=e,c=ee(t),r=V(u),[l,m]=K({prop:i,defaultProp:a,onChange:v});return d.jsx(je,{scope:t,name:n,required:p,disabled:C,value:l,onValueChange:m,children:d.jsx(Fe,{asChild:!0,...c,orientation:f,dir:r,loop:g,children:d.jsx(A.div,{role:"radiogroup","aria-required":p,"aria-orientation":f,"data-disabled":C?"":void 0,dir:r,...b,ref:o})})})});te.displayName=D;var re="RadioGroupItem",ne=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,disabled:n,...a}=e,i=Oe(re,t),p=i.disabled||n,C=ee(t),f=oe(t),u=s.useRef(null),g=F(o,u),v=i.value===a.value,b=s.useRef(!1);return s.useEffect(()=>{const c=l=>{Me.includes(l.key)&&(b.current=!0)},r=()=>b.current=!1;return document.addEventListener("keydown",c),document.addEventListener("keyup",r),()=>{document.removeEventListener("keydown",c),document.removeEventListener("keyup",r)}},[]),d.jsx(Ae,{asChild:!0,...C,focusable:!p,active:v,children:d.jsx(Q,{disabled:p,required:i.required,checked:v,...f,...a,name:i.name,ref:g,onCheck:()=>i.onValueChange(a.value),onKeyDown:y(c=>{c.key==="Enter"&&c.preventDefault()}),onFocus:y(a.onFocus,()=>{var c;b.current&&((c=u.current)==null||c.click())})})})});ne.displayName=re;var Le="RadioGroupIndicator",Ke=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,...n}=e,a=oe(t);return d.jsx(X,{...a,...n,ref:o})});Ke.displayName=Le;var se=te,ce=ne;const Ue=s.forwardRef(({className:e,...o},t)=>d.jsx(se,{className:U("grid gap-2",e),...o,ref:t}));Ue.displayName=se.displayName;const Ve=s.forwardRef(({className:e,...o},t)=>d.jsx(ce,{ref:t,className:U(o.checked?"border-primary after:bg-opacity-1":"border-on_surface bg-transparent after:bg-opacity-0","size-5 rounded-full border-[2px] after:size-[9px] after:bg-primary before:scale-0 hover:before:scale-100 before:size-10 before:rounded-full before:transition-all before:absolute before:-top-3 before:-left-3 before:bg-on_surface/[8%] duration-300 after:rounded-full flex relative items-center justify-center text-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring transition-all disabled:cursor-not-allowed disabled:opacity-50",e),...o}));Ve.displayName=ce.displayName;export{Ue as R,Ve as a}; diff --git a/dist/assets/react-vendor-ERTQd_Nj.js b/dist/assets/react-vendor-ERTQd_Nj.js deleted file mode 100644 index f48b34a..0000000 --- a/dist/assets/react-vendor-ERTQd_Nj.js +++ /dev/null @@ -1,53 +0,0 @@ -function cp(i,u){for(var a=0;ac[f]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var gm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oc(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Bu={exports:{}},ge={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var zf;function dp(){if(zf)return ge;zf=1;var i=Symbol.for("react.element"),u=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),y=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),z=Symbol.iterator;function _(E){return E===null||typeof E!="object"?null:(E=z&&E[z]||E["@@iterator"],typeof E=="function"?E:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,H={};function O(E,F,ae){this.props=E,this.context=F,this.refs=H,this.updater=ae||T}O.prototype.isReactComponent={},O.prototype.setState=function(E,F){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,F,"setState")},O.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function j(){}j.prototype=O.prototype;function V(E,F,ae){this.props=E,this.context=F,this.refs=H,this.updater=ae||T}var b=V.prototype=new j;b.constructor=V,M(b,O.prototype),b.isPureReactComponent=!0;var le=Array.isArray,se=Object.prototype.hasOwnProperty,C={current:null},fe={key:!0,ref:!0,__self:!0,__source:!0};function me(E,F,ae){var pe,we={},ye=null,Ne=null;if(F!=null)for(pe in F.ref!==void 0&&(Ne=F.ref),F.key!==void 0&&(ye=""+F.key),F)se.call(F,pe)&&!fe.hasOwnProperty(pe)&&(we[pe]=F[pe]);var Pe=arguments.length-2;if(Pe===1)we.children=ae;else if(1>>1,F=W[E];if(0>>1;Ef(we,K))yef(Ne,we)?(W[E]=Ne,W[ye]=K,E=ye):(W[E]=we,W[pe]=K,E=pe);else if(yef(Ne,K))W[E]=Ne,W[ye]=K,E=ye;else break e}}return re}function f(W,re){var K=W.sortIndex-re.sortIndex;return K!==0?K:W.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;i.unstable_now=function(){return d.now()}}else{var y=Date,v=y.now();i.unstable_now=function(){return y.now()-v}}var g=[],S=[],D=1,z=null,_=3,T=!1,M=!1,H=!1,O=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(W){for(var re=a(S);re!==null;){if(re.callback===null)c(S);else if(re.startTime<=W)c(S),re.sortIndex=re.expirationTime,u(g,re);else break;re=a(S)}}function le(W){if(H=!1,b(W),!M)if(a(g)!==null)M=!0,Ee(se);else{var re=a(S);re!==null&&Me(le,re.startTime-W)}}function se(W,re){M=!1,H&&(H=!1,j(me),me=-1),T=!0;var K=_;try{for(b(re),z=a(g);z!==null&&(!(z.expirationTime>re)||W&&!Be());){var E=z.callback;if(typeof E=="function"){z.callback=null,_=z.priorityLevel;var F=E(z.expirationTime<=re);re=i.unstable_now(),typeof F=="function"?z.callback=F:z===a(g)&&c(g),b(re)}else c(g);z=a(g)}if(z!==null)var ae=!0;else{var pe=a(S);pe!==null&&Me(le,pe.startTime-re),ae=!1}return ae}finally{z=null,_=K,T=!1}}var C=!1,fe=null,me=-1,ce=5,Ce=-1;function Be(){return!(i.unstable_now()-CeW||125E?(W.sortIndex=K,u(S,W),a(g)===null&&W===a(S)&&(H?(j(me),me=-1):H=!0,Me(le,K-E))):(W.sortIndex=F,u(g,W),M||T||(M=!0,Ee(se))),W},i.unstable_shouldYield=Be,i.unstable_wrapCallback=function(W){var re=_;return function(){var K=_;_=re;try{return W.apply(this,arguments)}finally{_=K}}}}(Qu)),Qu}var If;function mp(){return If||(If=1,Wu.exports=hp()),Wu.exports}/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Uf;function yp(){if(Uf)return Et;Uf=1;var i=uc(),u=mp();function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,S=/^[: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]*$/,D={},z={};function _(e){return g.call(z,e)?!0:g.call(D,e)?!1:S.test(e)?z[e]=!0:(D[e]=!0,!1)}function T(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function M(e,t,n,r){if(t===null||typeof t>"u"||T(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function H(e,t,n,r,l,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){O[e]=new H(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];O[t]=new H(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){O[e]=new H(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){O[e]=new H(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){O[e]=new H(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){O[e]=new H(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){O[e]=new H(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){O[e]=new H(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){O[e]=new H(e,5,!1,e.toLowerCase(),null,!1,!1)});var j=/[\-:]([a-z])/g;function V(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(j,V);O[t]=new H(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(j,V);O[t]=new H(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(j,V);O[t]=new H(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){O[e]=new H(e,1,!1,e.toLowerCase(),null,!1,!1)}),O.xlinkHref=new H("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){O[e]=new H(e,1,!1,e.toLowerCase(),null,!0,!0)});function b(e,t,n,r){var l=O.hasOwnProperty(t)?O[t]:null;(l!==null?l.type!==0:r||!(2p||l[s]!==o[p]){var h=` -`+l[s].replace(" at new "," at ");return e.displayName&&h.includes("")&&(h=h.replace("",e.displayName)),h}while(1<=s&&0<=p);break}}}finally{ae=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function we(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=pe(e.type,!1),e;case 11:return e=pe(e.type.render,!1),e;case 1:return e=pe(e.type,!0),e;default:return""}}function ye(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fe:return"Fragment";case C:return"Portal";case ce:return"Profiler";case me:return"StrictMode";case be:return"Suspense";case Je:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Be:return(e.displayName||"Context")+".Consumer";case Ce:return(e._context.displayName||"Context")+".Provider";case ut:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case dt:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case Ee:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}function Ne(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(t);case 8:return t===me?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Pe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ze(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Re(e){var t=ze(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jt(e){e._valueTracker||(e._valueTracker=Re(e))}function Wr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ze(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function pr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function $t(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Hl(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Pe(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Bl(e,t){t=t.checked,t!=null&&b(e,"checked",t,!1)}function hr(e,t){Bl(e,t);var n=Pe(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Qr(e,t.type,n):t.hasOwnProperty("defaultValue")&&Qr(e,t.type,Pe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vl(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Qr(e,t,n){(t!=="number"||pr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wn=Array.isArray;function hn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Qn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var mt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Wl=["Webkit","ms","Moz","O"];Object.keys(mt).forEach(function(e){Wl.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),mt[t]=mt[e]})});function Yr(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||mt.hasOwnProperty(e)&&mt[e]?(""+t).trim():t+"px"}function Xr(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Yr(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var uo=K({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vr(e,t){if(t){if(uo[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(a(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(a(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(t.style!=null&&typeof t.style!="object")throw Error(a(62))}}function yn(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var gr=null;function Yn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gr=null,rn=null,vn=null;function Jr(e){if(e=yl(e)){if(typeof Gr!="function")throw Error(a(280));var t=e.stateNode;t&&(t=di(t),Gr(e.stateNode,e.type,t))}}function Xn(e){rn?vn?vn.push(e):vn=[e]:rn=e}function Gn(){if(rn){var e=rn,t=vn;if(vn=rn=null,Jr(e),t)for(e=0;e>>=0,e===0?32:31-(Lc(e)/_c|0)|0}var Xl=64,Gl=4194304;function qr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Jl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var p=s&~l;p!==0?r=qr(p):(o&=s,o!==0&&(r=qr(o)))}else s=n&~l,s!==0?r=qr(s):o!==0&&(r=qr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function br(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ct(t),e[t]=n}function Mc(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ul),Pa=" ",Ra=!1;function La(e,t){switch(e){case"keyup":return od.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _a(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xr=!1;function ad(e,t){switch(e){case"compositionend":return _a(t);case"keypress":return t.which!==32?null:(Ra=!0,Pa);case"textInput":return e=t.data,e===Pa&&Ra?null:e;default:return null}}function sd(e,t){if(xr)return e==="compositionend"||!ko&&La(e,t)?(e=wa(),ti=yo=Pn=null,xr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Oa(n)}}function Ua(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ua(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ja(){for(var e=window,t=pr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=pr(e.document)}return t}function Po(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function gd(e){var t=ja(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ua(n.ownerDocument.documentElement,n)){if(r!==null&&Po(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Ia(n,o);var s=Ia(n,r);l&&s&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Cr=null,Ro=null,cl=null,Lo=!1;function $a(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lo||Cr==null||Cr!==pr(r)||(r=Cr,"selectionStart"in r&&Po(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),cl&&fl(cl,r)||(cl=r,r=si(Ro,"onSelect"),0Tr||(e.current=$o[Tr],$o[Tr]=null,Tr--)}function Ie(e,t){Tr++,$o[Tr]=e.current,e.current=t}var Tn={},at=_n(Tn),yt=_n(!1),qn=Tn;function Nr(e,t){var n=e.type.contextTypes;if(!n)return Tn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function vt(e){return e=e.childContextTypes,e!=null}function pi(){Ae(yt),Ae(at)}function es(e,t,n){if(at.current!==Tn)throw Error(a(168));Ie(at,t),Ie(yt,n)}function ts(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(a(108,Ne(e)||"Unknown",l));return K({},n,r)}function hi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Tn,qn=at.current,Ie(at,e),Ie(yt,yt.current),!0}function ns(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=ts(e,t,qn),r.__reactInternalMemoizedMergedChildContext=e,Ae(yt),Ae(at),Ie(at,e)):Ae(yt),Ie(yt,n)}var un=null,mi=!1,Ao=!1;function rs(e){un===null?un=[e]:un.push(e)}function Nd(e){mi=!0,rs(e)}function Nn(){if(!Ao&&un!==null){Ao=!0;var e=0,t=Te;try{var n=un;for(Te=1;e>=s,l-=s,an=1<<32-Ct(t)+l|n<de?(nt=oe,oe=null):nt=oe.sibling;var xe=I(x,oe,P[de],B);if(xe===null){oe===null&&(oe=nt);break}e&&oe&&xe.alternate===null&&t(x,oe),w=o(xe,w,de),ie===null?te=xe:ie.sibling=xe,ie=xe,oe=nt}if(de===P.length)return n(x,oe),He&&er(x,de),te;if(oe===null){for(;dede?(nt=oe,oe=null):nt=oe.sibling;var $n=I(x,oe,xe.value,B);if($n===null){oe===null&&(oe=nt);break}e&&oe&&$n.alternate===null&&t(x,oe),w=o($n,w,de),ie===null?te=$n:ie.sibling=$n,ie=$n,oe=nt}if(xe.done)return n(x,oe),He&&er(x,de),te;if(oe===null){for(;!xe.done;de++,xe=P.next())xe=A(x,xe.value,B),xe!==null&&(w=o(xe,w,de),ie===null?te=xe:ie.sibling=xe,ie=xe);return He&&er(x,de),te}for(oe=r(x,oe);!xe.done;de++,xe=P.next())xe=X(oe,x,de,xe.value,B),xe!==null&&(e&&xe.alternate!==null&&oe.delete(xe.key===null?de:xe.key),w=o(xe,w,de),ie===null?te=xe:ie.sibling=xe,ie=xe);return e&&oe.forEach(function(fp){return t(x,fp)}),He&&er(x,de),te}function Xe(x,w,P,B){if(typeof P=="object"&&P!==null&&P.type===fe&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case se:e:{for(var te=P.key,ie=w;ie!==null;){if(ie.key===te){if(te=P.type,te===fe){if(ie.tag===7){n(x,ie.sibling),w=l(ie,P.props.children),w.return=x,x=w;break e}}else if(ie.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===Ee&&ss(te)===ie.type){n(x,ie.sibling),w=l(ie,P.props),w.ref=vl(x,ie,P),w.return=x,x=w;break e}n(x,ie);break}else t(x,ie);ie=ie.sibling}P.type===fe?(w=ar(P.props.children,x.mode,B,P.key),w.return=x,x=w):(B=Vi(P.type,P.key,P.props,null,x.mode,B),B.ref=vl(x,w,P),B.return=x,x=B)}return s(x);case C:e:{for(ie=P.key;w!==null;){if(w.key===ie)if(w.tag===4&&w.stateNode.containerInfo===P.containerInfo&&w.stateNode.implementation===P.implementation){n(x,w.sibling),w=l(w,P.children||[]),w.return=x,x=w;break e}else{n(x,w);break}else t(x,w);w=w.sibling}w=Uu(P,x.mode,B),w.return=x,x=w}return s(x);case Ee:return ie=P._init,Xe(x,w,ie(P._payload),B)}if(Wn(P))return Z(x,w,P,B);if(re(P))return ee(x,w,P,B);wi(x,P)}return typeof P=="string"&&P!==""||typeof P=="number"?(P=""+P,w!==null&&w.tag===6?(n(x,w.sibling),w=l(w,P),w.return=x,x=w):(n(x,w),w=Iu(P,x.mode,B),w.return=x,x=w),s(x)):n(x,w)}return Xe}var Fr=fs(!0),cs=fs(!1),Si=_n(null),Ei=null,Or=null,Ko=null;function Yo(){Ko=Or=Ei=null}function Xo(e){var t=Si.current;Ae(Si),e._currentValue=t}function Go(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ir(e,t){Ei=e,Ko=Or=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(gt=!0),e.firstContext=null)}function zt(e){var t=e._currentValue;if(Ko!==e)if(e={context:e,memoizedValue:t,next:null},Or===null){if(Ei===null)throw Error(a(308));Or=e,Ei.dependencies={lanes:0,firstContext:e}}else Or=Or.next=e;return t}var tr=null;function Jo(e){tr===null?tr=[e]:tr.push(e)}function ds(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Jo(t)):(n.next=l.next,l.next=n),t.interleaved=n,fn(e,r)}function fn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Dn=!1;function Zo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ps(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function cn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ke&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,fn(e,n)}return l=r.interleaved,l===null?(t.next=t,Jo(r)):(t.next=l.next,l.next=t),r.interleaved=t,fn(e,n)}function ki(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fo(e,n)}}function hs(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xi(e,t,n,r){var l=e.updateQueue;Dn=!1;var o=l.firstBaseUpdate,s=l.lastBaseUpdate,p=l.shared.pending;if(p!==null){l.shared.pending=null;var h=p,R=h.next;h.next=null,s===null?o=R:s.next=R,s=h;var U=e.alternate;U!==null&&(U=U.updateQueue,p=U.lastBaseUpdate,p!==s&&(p===null?U.firstBaseUpdate=R:p.next=R,U.lastBaseUpdate=h))}if(o!==null){var A=l.baseState;s=0,U=R=h=null,p=o;do{var I=p.lane,X=p.eventTime;if((r&I)===I){U!==null&&(U=U.next={eventTime:X,lane:0,tag:p.tag,payload:p.payload,callback:p.callback,next:null});e:{var Z=e,ee=p;switch(I=t,X=n,ee.tag){case 1:if(Z=ee.payload,typeof Z=="function"){A=Z.call(X,A,I);break e}A=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=ee.payload,I=typeof Z=="function"?Z.call(X,A,I):Z,I==null)break e;A=K({},A,I);break e;case 2:Dn=!0}}p.callback!==null&&p.lane!==0&&(e.flags|=64,I=l.effects,I===null?l.effects=[p]:I.push(p))}else X={eventTime:X,lane:I,tag:p.tag,payload:p.payload,callback:p.callback,next:null},U===null?(R=U=X,h=A):U=U.next=X,s|=I;if(p=p.next,p===null){if(p=l.shared.pending,p===null)break;I=p,p=I.next,I.next=null,l.lastBaseUpdate=I,l.shared.pending=null}}while(!0);if(U===null&&(h=A),l.baseState=h,l.firstBaseUpdate=R,l.lastBaseUpdate=U,t=l.shared.interleaved,t!==null){l=t;do s|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);lr|=s,e.lanes=s,e.memoizedState=A}}function ms(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=nu.transition;nu.transition={};try{e(!1),t()}finally{Te=n,nu.transition=r}}function Fs(){return Ft().memoizedState}function Fd(e,t,n){var r=In(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Os(e))Is(t,n);else if(n=ds(e,t,n,r),n!==null){var l=ht();Yt(n,e,r,l),Us(n,t,r)}}function Od(e,t,n){var r=In(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Os(e))Is(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,p=o(s,n);if(l.hasEagerState=!0,l.eagerState=p,Bt(p,s)){var h=t.interleaved;h===null?(l.next=l,Jo(t)):(l.next=h.next,h.next=l),t.interleaved=l;return}}catch{}finally{}n=ds(e,t,l,r),n!==null&&(l=ht(),Yt(n,e,r,l),Us(n,t,r))}}function Os(e){var t=e.alternate;return e===We||t!==null&&t===We}function Is(e,t){El=Ri=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Us(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fo(e,n)}}var Ti={readContext:zt,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},Id={readContext:zt,useCallback:function(e,t){return qt().memoizedState=[e,t===void 0?null:t],e},useContext:zt,useEffect:Rs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Li(4194308,4,Ts.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Li(4194308,4,e,t)},useInsertionEffect:function(e,t){return Li(4,2,e,t)},useMemo:function(e,t){var n=qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Fd.bind(null,We,e),[r.memoizedState,e]},useRef:function(e){var t=qt();return e={current:e},t.memoizedState=e},useState:Cs,useDebugValue:su,useDeferredValue:function(e){return qt().memoizedState=e},useTransition:function(){var e=Cs(!1),t=e[0];return e=zd.bind(null,e[1]),qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=We,l=qt();if(He){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),tt===null)throw Error(a(349));rr&30||ws(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Rs(Es.bind(null,r,o,e),[e]),r.flags|=2048,Cl(9,Ss.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=qt(),t=tt.identifierPrefix;if(He){var n=sn,r=an;n=(r&~(1<<32-Ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=kl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Jt]=t,e[ml]=r,rf(e,t,!1,!1),t.stateNode=e;e:{switch(s=yn(n,r),n){case"dialog":$e("cancel",e),$e("close",e),l=r;break;case"iframe":case"object":case"embed":$e("load",e),l=r;break;case"video":case"audio":for(l=0;lHr&&(t.flags|=128,r=!0,Pl(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ci(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Pl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!He)return ft(t),null}else 2*Le()-o.renderingStartTime>Hr&&n!==1073741824&&(t.flags|=128,r=!0,Pl(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Le(),t.sibling=null,n=Ve.current,Ie(Ve,r?n&1|2:n&1),t):(ft(t),null);case 22:case 23:return zu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?_t&1073741824&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}function Wd(e,t){switch(Bo(t),t.tag){case 1:return vt(t.type)&&pi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ur(),Ae(yt),Ae(at),tu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bo(t),null;case 13:if(Ae(Ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));zr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(Ve),null;case 4:return Ur(),null;case 10:return Xo(t.type._context),null;case 22:case 23:return zu(),null;case 24:return null;default:return null}}var zi=!1,ct=!1,Qd=typeof WeakSet=="function"?WeakSet:Set,J=null;function $r(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Qe(e,t,r)}else n.current=null}function Eu(e,t,n){try{n()}catch(r){Qe(e,t,r)}}var uf=!1;function Kd(e,t){if(zo=bl,e=ja(),Po(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,p=-1,h=-1,R=0,U=0,A=e,I=null;t:for(;;){for(var X;A!==n||l!==0&&A.nodeType!==3||(p=s+l),A!==o||r!==0&&A.nodeType!==3||(h=s+r),A.nodeType===3&&(s+=A.nodeValue.length),(X=A.firstChild)!==null;)I=A,A=X;for(;;){if(A===e)break t;if(I===n&&++R===l&&(p=s),I===o&&++U===r&&(h=s),(X=A.nextSibling)!==null)break;A=I,I=A.parentNode}A=X}n=p===-1||h===-1?null:{start:p,end:h}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fo={focusedElem:e,selectionRange:n},bl=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var Z=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(Z!==null){var ee=Z.memoizedProps,Xe=Z.memoizedState,x=t.stateNode,w=x.getSnapshotBeforeUpdate(t.elementType===t.type?ee:Wt(t.type,ee),Xe);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var P=t.stateNode.containerInfo;P.nodeType===1?P.textContent="":P.nodeType===9&&P.documentElement&&P.removeChild(P.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(B){Qe(t,t.return,B)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return Z=uf,uf=!1,Z}function Rl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Eu(t,n,o)}l=l.next}while(l!==r)}}function Fi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ku(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function af(e){var t=e.alternate;t!==null&&(e.alternate=null,af(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jt],delete t[ml],delete t[jo],delete t[_d],delete t[Td])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sf(e){return e.tag===5||e.tag===3||e.tag===4}function ff(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ci));else if(r!==4&&(e=e.child,e!==null))for(xu(e,t,n),e=e.sibling;e!==null;)xu(e,t,n),e=e.sibling}function Cu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Cu(e,t,n),e=e.sibling;e!==null;)Cu(e,t,n),e=e.sibling}var lt=null,Qt=!1;function zn(e,t,n){for(n=n.child;n!==null;)cf(e,t,n),n=n.sibling}function cf(e,t,n){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(je,n)}catch{}switch(n.tag){case 5:ct||$r(n,t);case 6:var r=lt,l=Qt;lt=null,zn(e,t,n),lt=r,Qt=l,lt!==null&&(Qt?(e=lt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):lt.removeChild(n.stateNode));break;case 18:lt!==null&&(Qt?(e=lt,n=n.stateNode,e.nodeType===8?Uo(e.parentNode,n):e.nodeType===1&&Uo(e,n),ll(e)):Uo(lt,n.stateNode));break;case 4:r=lt,l=Qt,lt=n.stateNode.containerInfo,Qt=!0,zn(e,t,n),lt=r,Qt=l;break;case 0:case 11:case 14:case 15:if(!ct&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Eu(n,t,s),l=l.next}while(l!==r)}zn(e,t,n);break;case 1:if(!ct&&($r(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(p){Qe(n,t,p)}zn(e,t,n);break;case 21:zn(e,t,n);break;case 22:n.mode&1?(ct=(r=ct)||n.memoizedState!==null,zn(e,t,n),ct=r):zn(e,t,n);break;default:zn(e,t,n)}}function df(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Qd),t.forEach(function(r){var l=tp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Kt(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=s),r&=~o}if(r=l,r=Le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xd(r/1960))-r,10e?16:e,On===null)var r=!1;else{if(e=On,On=null,$i=0,ke&6)throw Error(a(331));var l=ke;for(ke|=4,J=e.current;J!==null;){var o=J,s=o.child;if(J.flags&16){var p=o.deletions;if(p!==null){for(var h=0;hLe()-Lu?or(e,0):Ru|=n),St(e,t)}function Pf(e,t){t===0&&(e.mode&1?(t=Gl,Gl<<=1,!(Gl&130023424)&&(Gl=4194304)):t=1);var n=ht();e=fn(e,t),e!==null&&(br(e,t,n),St(e,n))}function ep(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pf(e,n)}function tp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}r!==null&&r.delete(t),Pf(e,n)}var Rf;Rf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||yt.current)gt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gt=!1,Bd(e,t,n);gt=!!(e.flags&131072)}else gt=!1,He&&t.flags&1048576&&ls(t,vi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Mi(e,t),e=t.pendingProps;var l=Nr(t,at.current);Ir(t,n),l=lu(null,t,r,e,l,n);var o=iu();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,vt(r)?(o=!0,hi(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Zo(t),l.updater=Ni,t.stateNode=l,l._reactInternals=t,cu(t,r,e,n),t=mu(null,t,r,!0,o,n)):(t.tag=0,He&&o&&Ho(t),pt(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Mi(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=rp(r),e=Wt(r,e),l){case 0:t=hu(null,t,r,e,n);break e;case 1:t=Zs(null,t,r,e,n);break e;case 11:t=Ks(null,t,r,e,n);break e;case 14:t=Ys(null,t,r,Wt(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Wt(r,l),hu(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Wt(r,l),Zs(e,t,r,l,n);case 3:e:{if(qs(t),e===null)throw Error(a(387));r=t.pendingProps,o=t.memoizedState,l=o.element,ps(e,t),xi(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=jr(Error(a(423)),t),t=bs(e,t,r,n,l);break e}else if(r!==l){l=jr(Error(a(424)),t),t=bs(e,t,r,n,l);break e}else for(Lt=Ln(t.stateNode.containerInfo.firstChild),Rt=t,He=!0,Vt=null,n=cs(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zr(),r===l){t=dn(e,t,n);break e}pt(e,t,r,n)}t=t.child}return t;case 5:return ys(t),e===null&&Wo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,s=l.children,Oo(r,l)?s=null:o!==null&&Oo(r,o)&&(t.flags|=32),Js(e,t),pt(e,t,s,n),t.child;case 6:return e===null&&Wo(t),null;case 13:return ef(e,t,n);case 4:return qo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fr(t,null,r,n):pt(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Wt(r,l),Ks(e,t,r,l,n);case 7:return pt(e,t,t.pendingProps,n),t.child;case 8:return pt(e,t,t.pendingProps.children,n),t.child;case 12:return pt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,s=l.value,Ie(Si,r._currentValue),r._currentValue=s,o!==null)if(Bt(o.value,s)){if(o.children===l.children&&!yt.current){t=dn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var p=o.dependencies;if(p!==null){s=o.child;for(var h=p.firstContext;h!==null;){if(h.context===r){if(o.tag===1){h=cn(-1,n&-n),h.tag=2;var R=o.updateQueue;if(R!==null){R=R.shared;var U=R.pending;U===null?h.next=h:(h.next=U.next,U.next=h),R.pending=h}}o.lanes|=n,h=o.alternate,h!==null&&(h.lanes|=n),Go(o.return,n,t),p.lanes|=n;break}h=h.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(a(341));s.lanes|=n,p=s.alternate,p!==null&&(p.lanes|=n),Go(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}pt(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Ir(t,n),l=zt(l),r=r(l),t.flags|=1,pt(e,t,r,n),t.child;case 14:return r=t.type,l=Wt(r,t.pendingProps),l=Wt(r.type,l),Ys(e,t,r,l,n);case 15:return Xs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Wt(r,l),Mi(e,t),t.tag=1,vt(r)?(e=!0,hi(t)):e=!1,Ir(t,n),$s(t,r,l),cu(t,r,l,n),mu(null,t,r,!0,e,n);case 19:return nf(e,t,n);case 22:return Gs(e,t,n)}throw Error(a(156,t.tag))};function Lf(e,t){return Nt(e,t)}function np(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,t,n,r){return new np(e,t,n,r)}function Ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rp(e){if(typeof e=="function")return Ou(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ut)return 11;if(e===dt)return 14}return 2}function jn(e,t){var n=e.alternate;return n===null?(n=It(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vi(e,t,n,r,l,o){var s=2;if(r=e,typeof e=="function")Ou(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case fe:return ar(n.children,l,o,t);case me:s=8,l|=8;break;case ce:return e=It(12,n,t,l|2),e.elementType=ce,e.lanes=o,e;case be:return e=It(13,n,t,l),e.elementType=be,e.lanes=o,e;case Je:return e=It(19,n,t,l),e.elementType=Je,e.lanes=o,e;case Me:return Wi(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ce:s=10;break e;case Be:s=9;break e;case ut:s=11;break e;case dt:s=14;break e;case Ee:s=16,r=null;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=It(s,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function ar(e,t,n,r){return e=It(7,e,r,t),e.lanes=n,e}function Wi(e,t,n,r){return e=It(22,e,r,t),e.elementType=Me,e.lanes=n,e.stateNode={isHidden:!1},e}function Iu(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function Uu(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=so(0),this.expirationTimes=so(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=so(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ju(e,t,n,r,l,o,s,p,h){return e=new lp(e,t,n,p,h),t===1?(t=1,o===!0&&(t|=8)):t=0,o=It(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zo(o),e}function ip(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(u){console.error(u)}}return i(),Vu.exports=yp(),Vu.exports}var Dl={},$f;function gp(){if($f)return Dl;$f=1,Object.defineProperty(Dl,"__esModule",{value:!0}),Dl.parse=y,Dl.serialize=S;const i=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,u=/^[\u0021-\u003A\u003C-\u007E]*$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,c=/^[\u0020-\u003A\u003D-\u007E]*$/,f=Object.prototype.toString,d=(()=>{const _=function(){};return _.prototype=Object.create(null),_})();function y(_,T){const M=new d,H=_.length;if(H<2)return M;const O=(T==null?void 0:T.decode)||D;let j=0;do{const V=_.indexOf("=",j);if(V===-1)break;const b=_.indexOf(";",j),le=b===-1?H:b;if(V>le){j=_.lastIndexOf(";",V-1)+1;continue}const se=v(_,j,V),C=g(_,V,se),fe=_.slice(se,C);if(M[fe]===void 0){let me=v(_,V+1,le),ce=g(_,le,me);const Ce=O(_.slice(me,ce));M[fe]=Ce}j=le+1}while(jM;){const H=_.charCodeAt(--T);if(H!==32&&H!==9)return T+1}return M}function S(_,T,M){const H=(M==null?void 0:M.encode)||encodeURIComponent;if(!i.test(_))throw new TypeError(`argument name is invalid: ${_}`);const O=H(T);if(!u.test(O))throw new TypeError(`argument val is invalid: ${T}`);let j=_+"="+O;if(!M)return j;if(M.maxAge!==void 0){if(!Number.isInteger(M.maxAge))throw new TypeError(`option maxAge is invalid: ${M.maxAge}`);j+="; Max-Age="+M.maxAge}if(M.domain){if(!a.test(M.domain))throw new TypeError(`option domain is invalid: ${M.domain}`);j+="; Domain="+M.domain}if(M.path){if(!c.test(M.path))throw new TypeError(`option path is invalid: ${M.path}`);j+="; Path="+M.path}if(M.expires){if(!z(M.expires)||!Number.isFinite(M.expires.valueOf()))throw new TypeError(`option expires is invalid: ${M.expires}`);j+="; Expires="+M.expires.toUTCString()}if(M.httpOnly&&(j+="; HttpOnly"),M.secure&&(j+="; Secure"),M.partitioned&&(j+="; Partitioned"),M.priority)switch(typeof M.priority=="string"?M.priority.toLowerCase():void 0){case"low":j+="; Priority=Low";break;case"medium":j+="; Priority=Medium";break;case"high":j+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${M.priority}`)}if(M.sameSite)switch(typeof M.sameSite=="string"?M.sameSite.toLowerCase():M.sameSite){case!0:case"strict":j+="; SameSite=Strict";break;case"lax":j+="; SameSite=Lax";break;case"none":j+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${M.sameSite}`)}return j}function D(_){if(_.indexOf("%")===-1)return _;try{return decodeURIComponent(_)}catch{return _}}function z(_){return f.call(_)==="[object Date]"}return Dl}gp();/** - * react-router v7.1.5 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */var Af="popstate";function wp(i={}){function u(c,f){let{pathname:d,search:y,hash:v}=c.location;return Il("",{pathname:d,search:y,hash:v},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function a(c,f){return typeof f=="string"?f:Bn(f)}return Ep(u,a,null,i)}function Se(i,u){if(i===!1||i===null||typeof i>"u")throw new Error(u)}function ot(i,u){if(!i){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function Sp(){return Math.random().toString(36).substring(2,10)}function Hf(i,u){return{usr:i.state,key:i.key,idx:u}}function Il(i,u,a=null,c){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof u=="string"?Vn(u):u,state:a,key:u&&u.key||c||Sp()}}function Bn({pathname:i="/",search:u="",hash:a=""}){return u&&u!=="?"&&(i+=u.charAt(0)==="?"?u:"?"+u),a&&a!=="#"&&(i+=a.charAt(0)==="#"?a:"#"+a),i}function Vn(i){let u={};if(i){let a=i.indexOf("#");a>=0&&(u.hash=i.substring(a),i=i.substring(0,a));let c=i.indexOf("?");c>=0&&(u.search=i.substring(c),i=i.substring(0,c)),i&&(u.pathname=i)}return u}function Ep(i,u,a,c={}){let{window:f=document.defaultView,v5Compat:d=!1}=c,y=f.history,v="POP",g=null,S=D();S==null&&(S=0,y.replaceState({...y.state,idx:S},""));function D(){return(y.state||{idx:null}).idx}function z(){v="POP";let O=D(),j=O==null?null:O-S;S=O,g&&g({action:v,location:H.location,delta:j})}function _(O,j){v="PUSH";let V=Il(H.location,O,j);S=D()+1;let b=Hf(V,S),le=H.createHref(V);try{y.pushState(b,"",le)}catch(se){if(se instanceof DOMException&&se.name==="DataCloneError")throw se;f.location.assign(le)}d&&g&&g({action:v,location:H.location,delta:1})}function T(O,j){v="REPLACE";let V=Il(H.location,O,j);S=D();let b=Hf(V,S),le=H.createHref(V);y.replaceState(b,"",le),d&&g&&g({action:v,location:H.location,delta:0})}function M(O){let j=f.location.origin!=="null"?f.location.origin:f.location.href,V=typeof O=="string"?O:Bn(O);return V=V.replace(/ $/,"%20"),Se(j,`No window.location.(origin|href) available to create URL for href: ${V}`),new URL(V,j)}let H={get action(){return v},get location(){return i(f,y)},listen(O){if(g)throw new Error("A history only accepts one active listener");return f.addEventListener(Af,z),g=O,()=>{f.removeEventListener(Af,z),g=null}},createHref(O){return u(f,O)},createURL:M,encodeLocation(O){let j=M(O);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:_,replace:T,go(O){return y.go(O)}};return H}var kp=new Set(["lazy","caseSensitive","path","id","index","children"]);function xp(i){return i.index===!0}function no(i,u,a=[],c={}){return i.map((f,d)=>{let y=[...a,String(d)],v=typeof f.id=="string"?f.id:y.join("-");if(Se(f.index!==!0||!f.children,"Cannot specify children on an index route"),Se(!c[v],`Found a route id collision on id "${v}". Route id's must be globally unique within Data Router usages`),xp(f)){let g={...f,...u(f),id:v};return c[v]=g,g}else{let g={...f,...u(f),id:v,children:void 0};return c[v]=g,f.children&&(g.children=no(f.children,u,y,c)),g}})}function Hn(i,u,a="/"){return bi(i,u,a,!1)}function bi(i,u,a,c){let f=typeof u=="string"?Vn(u):u,d=Gt(f.pathname||"/",a);if(d==null)return null;let y=ac(i);Pp(y);let v=null;for(let g=0;v==null&&g{let g={relativePath:v===void 0?d.path||"":v,caseSensitive:d.caseSensitive===!0,childrenIndex:y,route:d};g.relativePath.startsWith("/")&&(Se(g.relativePath.startsWith(c),`Absolute route path "${g.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(c.length));let S=en([c,g.relativePath]),D=a.concat(g);d.children&&d.children.length>0&&(Se(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),ac(d.children,u,D,S)),!(d.path==null&&!d.index)&&u.push({path:S,score:Mp(S,d.index),routesMeta:D})};return i.forEach((d,y)=>{var v;if(d.path===""||!((v=d.path)!=null&&v.includes("?")))f(d,y);else for(let g of sc(d.path))f(d,y,g)}),u}function sc(i){let u=i.split("/");if(u.length===0)return[];let[a,...c]=u,f=a.endsWith("?"),d=a.replace(/\?$/,"");if(c.length===0)return f?[d,""]:[d];let y=sc(c.join("/")),v=[];return v.push(...y.map(g=>g===""?d:[d,g].join("/"))),f&&v.push(...y),v.map(g=>i.startsWith("/")&&g===""?"/":g)}function Pp(i){i.sort((u,a)=>u.score!==a.score?a.score-u.score:zp(u.routesMeta.map(c=>c.childrenIndex),a.routesMeta.map(c=>c.childrenIndex)))}var Rp=/^:[\w-]+$/,Lp=3,_p=2,Tp=1,Np=10,Dp=-2,Bf=i=>i==="*";function Mp(i,u){let a=i.split("/"),c=a.length;return a.some(Bf)&&(c+=Dp),u&&(c+=_p),a.filter(f=>!Bf(f)).reduce((f,d)=>f+(Rp.test(d)?Lp:d===""?Tp:Np),c)}function zp(i,u){return i.length===u.length&&i.slice(0,-1).every((c,f)=>c===u[f])?i[i.length-1]-u[u.length-1]:0}function Fp(i,u,a=!1){let{routesMeta:c}=i,f={},d="/",y=[];for(let v=0;v{if(D==="*"){let M=v[_]||"";y=d.slice(0,d.length-M.length).replace(/(.)\/+$/,"$1")}const T=v[_];return z&&!T?S[D]=void 0:S[D]=(T||"").replace(/%2F/g,"/"),S},{}),pathname:d,pathnameBase:y,pattern:i}}function Op(i,u=!1,a=!0){ot(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let c=[],f="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,v,g)=>(c.push({paramName:v,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)"));return i.endsWith("*")?(c.push({paramName:"*"}),f+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?f+="\\/*$":i!==""&&i!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,u?void 0:"i"),c]}function Ip(i){try{return i.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return ot(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),i}}function Gt(i,u){if(u==="/")return i;if(!i.toLowerCase().startsWith(u.toLowerCase()))return null;let a=u.endsWith("/")?u.length-1:u.length,c=i.charAt(a);return c&&c!=="/"?null:i.slice(a)||"/"}function Up(i,u="/"){let{pathname:a,search:c="",hash:f=""}=typeof i=="string"?Vn(i):i;return{pathname:a?a.startsWith("/")?a:jp(a,u):u,search:Ap(c),hash:Hp(f)}}function jp(i,u){let a=u.replace(/\/+$/,"").split("/");return i.split("/").forEach(f=>{f===".."?a.length>1&&a.pop():f!=="."&&a.push(f)}),a.length>1?a.join("/"):"/"}function Ku(i,u,a,c){return`Cannot include a '${i}' character in a manually specified \`to.${u}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function fc(i){return i.filter((u,a)=>a===0||u.route.path&&u.route.path.length>0)}function bu(i){let u=fc(i);return u.map((a,c)=>c===u.length-1?a.pathname:a.pathnameBase)}function ea(i,u,a,c=!1){let f;typeof i=="string"?f=Vn(i):(f={...i},Se(!f.pathname||!f.pathname.includes("?"),Ku("?","pathname","search",f)),Se(!f.pathname||!f.pathname.includes("#"),Ku("#","pathname","hash",f)),Se(!f.search||!f.search.includes("#"),Ku("#","search","hash",f)));let d=i===""||f.pathname==="",y=d?"/":f.pathname,v;if(y==null)v=a;else{let z=u.length-1;if(!c&&y.startsWith("..")){let _=y.split("/");for(;_[0]==="..";)_.shift(),z-=1;f.pathname=_.join("/")}v=z>=0?u[z]:"/"}let g=Up(f,v),S=y&&y!=="/"&&y.endsWith("/"),D=(d||y===".")&&a.endsWith("/");return!g.pathname.endsWith("/")&&(S||D)&&(g.pathname+="/"),g}var en=i=>i.join("/").replace(/\/\/+/g,"/"),$p=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Ap=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Hp=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,lo=class{constructor(i,u,a,c=!1){this.status=i,this.statusText=u||"",this.internal=c,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function Ul(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}var cc=["POST","PUT","PATCH","DELETE"],Bp=new Set(cc),Vp=["GET",...cc],Wp=new Set(Vp),Qp=new Set([301,302,303,307,308]),Kp=new Set([307,308]),Yu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Yp={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ml={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ta=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xp=i=>({hasErrorBoundary:!!i.hasErrorBoundary}),dc="remix-router-transitions",pc=Symbol("ResetLoaderData");function Gp(i){const u=i.window?i.window:typeof window<"u"?window:void 0,a=typeof u<"u"&&typeof u.document<"u"&&typeof u.document.createElement<"u";Se(i.routes.length>0,"You must provide a non-empty routes array to createRouter");let c=i.mapRouteProperties||Xp,f={},d=no(i.routes,c,void 0,f),y,v=i.basename||"/",g=i.dataStrategy||eh,S=i.patchRoutesOnNavigation,D={...i.future},z=null,_=new Set,T=null,M=null,H=null,O=i.hydrationData!=null,j=Hn(d,i.history.location,v),V=!1,b=null;if(j==null&&!S){let m=Ut(404,{pathname:i.history.location.pathname}),{matches:k,route:L}=bf(d);j=k,b={[L.id]:m}}j&&!i.hydrationData&&Xn(j,d,i.history.location.pathname).active&&(j=null);let le;if(j)if(j.some(m=>m.route.lazy))le=!1;else if(!j.some(m=>m.route.loader))le=!0;else{let m=i.hydrationData?i.hydrationData.loaderData:null,k=i.hydrationData?i.hydrationData.errors:null;if(k){let L=j.findIndex($=>k[$.route.id]!==void 0);le=j.slice(0,L+1).every($=>!Zu($.route,m,k))}else le=j.every(L=>!Zu(L.route,m,k))}else{le=!1,j=[];let m=Xn(null,d,i.history.location.pathname);m.active&&m.matches&&(V=!0,j=m.matches)}let se,C={historyAction:i.history.action,location:i.history.location,matches:j,initialized:le,navigation:Yu,restoreScrollPosition:i.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:i.hydrationData&&i.hydrationData.loaderData||{},actionData:i.hydrationData&&i.hydrationData.actionData||null,errors:i.hydrationData&&i.hydrationData.errors||b,fetchers:new Map,blockers:new Map},fe="POP",me=!1,ce,Ce=!1,Be=new Map,ut=null,be=!1,Je=!1,dt=new Set,Ee=new Map,Me=0,W=-1,re=new Map,K=new Set,E=new Map,F=new Map,ae=new Set,pe=new Map,we,ye=null;function Ne(){if(z=i.history.listen(({action:m,location:k,delta:L})=>{if(we){we(),we=void 0;return}ot(pe.size===0||L!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let $=gr({currentLocation:C.location,nextLocation:k,historyAction:m});if($&&L!=null){let Y=new Promise(ne=>{we=ne});i.history.go(L*-1),yn($,{state:"blocked",location:k,proceed(){yn($,{state:"proceeding",proceed:void 0,reset:void 0,location:k}),Y.then(()=>i.history.go(L))},reset(){let ne=new Map(C.blockers);ne.set($,Ml),Re({blockers:ne})}});return}return $t(m,k)}),a){ch(u,Be);let m=()=>dh(u,Be);u.addEventListener("pagehide",m),ut=()=>u.removeEventListener("pagehide",m)}return C.initialized||$t("POP",C.location,{initialHydration:!0}),se}function Pe(){z&&z(),ut&&ut(),_.clear(),ce&&ce.abort(),C.fetchers.forEach((m,k)=>yr(k)),C.blockers.forEach((m,k)=>vr(k))}function ze(m){return _.add(m),()=>_.delete(m)}function Re(m,k={}){C={...C,...m};let L=[],$=[];C.fetchers.forEach((Y,ne)=>{Y.state==="idle"&&(ae.has(ne)?L.push(ne):$.push(ne))}),ae.forEach(Y=>{!C.fetchers.has(Y)&&!Ee.has(Y)&&L.push(Y)}),[..._].forEach(Y=>Y(C,{deletedFetchers:L,viewTransitionOpts:k.viewTransitionOpts,flushSync:k.flushSync===!0})),L.forEach(Y=>yr(Y)),$.forEach(Y=>C.fetchers.delete(Y))}function jt(m,k,{flushSync:L}={}){var Q,he;let $=C.actionData!=null&&C.navigation.formMethod!=null&&Xt(C.navigation.formMethod)&&C.navigation.state==="loading"&&((Q=m.state)==null?void 0:Q._isRedirect)!==!0,Y;k.actionData?Object.keys(k.actionData).length>0?Y=k.actionData:Y=null:$?Y=C.actionData:Y=null;let ne=k.loaderData?Zf(C.loaderData,k.loaderData,k.matches||[],k.errors):C.loaderData,ue=C.blockers;ue.size>0&&(ue=new Map(ue),ue.forEach((ve,Fe)=>ue.set(Fe,Ml)));let G=me===!0||C.navigation.formMethod!=null&&Xt(C.navigation.formMethod)&&((he=m.state)==null?void 0:he._isRedirect)!==!0;y&&(d=y,y=void 0),be||fe==="POP"||(fe==="PUSH"?i.history.push(m,m.state):fe==="REPLACE"&&i.history.replace(m,m.state));let q;if(fe==="POP"){let ve=Be.get(C.location.pathname);ve&&ve.has(m.pathname)?q={currentLocation:C.location,nextLocation:m}:Be.has(m.pathname)&&(q={currentLocation:m,nextLocation:C.location})}else if(Ce){let ve=Be.get(C.location.pathname);ve?ve.add(m.pathname):(ve=new Set([m.pathname]),Be.set(C.location.pathname,ve)),q={currentLocation:C.location,nextLocation:m}}Re({...k,actionData:Y,loaderData:ne,historyAction:fe,location:m,initialized:!0,navigation:Yu,revalidation:"idle",restoreScrollPosition:Jr(m,k.matches||C.matches),preventScrollReset:G,blockers:ue},{viewTransitionOpts:q,flushSync:L===!0}),fe="POP",me=!1,Ce=!1,be=!1,Je=!1,ye==null||ye.resolve(),ye=null}async function Wr(m,k){if(typeof m=="number"){i.history.go(m);return}let L=Ju(C.location,C.matches,v,m,k==null?void 0:k.fromRouteId,k==null?void 0:k.relative),{path:$,submission:Y,error:ne}=Vf(!1,L,k),ue=C.location,G=Il(C.location,$,k&&k.state);G={...G,...i.history.encodeLocation(G)};let q=k&&k.replace!=null?k.replace:void 0,Q="PUSH";q===!0?Q="REPLACE":q===!1||Y!=null&&Xt(Y.formMethod)&&Y.formAction===C.location.pathname+C.location.search&&(Q="REPLACE");let he=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,ve=(k&&k.flushSync)===!0,Fe=gr({currentLocation:ue,nextLocation:G,historyAction:Q});if(Fe){yn(Fe,{state:"blocked",location:G,proceed(){yn(Fe,{state:"proceeding",proceed:void 0,reset:void 0,location:G}),Wr(m,k)},reset(){let Ue=new Map(C.blockers);Ue.set(Fe,Ml),Re({blockers:Ue})}});return}await $t(Q,G,{submission:Y,pendingError:ne,preventScrollReset:he,replace:k&&k.replace,enableViewTransition:k&&k.viewTransition,flushSync:ve})}function pr(){ye||(ye=ph()),mr(),Re({revalidation:"loading"});let m=ye.promise;return C.navigation.state==="submitting"?m:C.navigation.state==="idle"?($t(C.historyAction,C.location,{startUninterruptedRevalidation:!0}),m):($t(fe||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:Ce===!0}),m)}async function $t(m,k,L){ce&&ce.abort(),ce=null,fe=m,be=(L&&L.startUninterruptedRevalidation)===!0,vn(C.location,C.matches),me=(L&&L.preventScrollReset)===!0,Ce=(L&&L.enableViewTransition)===!0;let $=y||d,Y=L&&L.overrideNavigation,ne=L!=null&&L.initialHydration&&C.matches&&C.matches.length>0&&!V?C.matches:Hn($,k,v),ue=(L&&L.flushSync)===!0;if(ne&&C.initialized&&!Je&&oh(C.location,k)&&!(L&&L.submission&&Xt(L.submission.formMethod))){jt(k,{matches:ne},{flushSync:ue});return}let G=Xn(ne,$,k.pathname);if(G.active&&G.matches&&(ne=G.matches),!ne){let{error:Oe,notFoundMatches:De,route:Ke}=Yn(k.pathname);jt(k,{matches:De,loaderData:{},errors:{[Ke.id]:Oe}},{flushSync:ue});return}ce=new AbortController;let q=Vr(i.history,k,ce.signal,L&&L.submission),Q;if(L&&L.pendingError)Q=[sr(ne).route.id,{type:"error",error:L.pendingError}];else if(L&&L.submission&&Xt(L.submission.formMethod)){let Oe=await Hl(q,k,L.submission,ne,G.active,{replace:L.replace,flushSync:ue});if(Oe.shortCircuited)return;if(Oe.pendingActionResult){let[De,Ke]=Oe.pendingActionResult;if(Tt(Ke)&&Ul(Ke.error)&&Ke.error.status===404){ce=null,jt(k,{matches:Oe.matches,loaderData:{},errors:{[De]:Ke.error}});return}}ne=Oe.matches||ne,Q=Oe.pendingActionResult,Y=Xu(k,L.submission),ue=!1,G.active=!1,q=Vr(i.history,q.url,q.signal)}let{shortCircuited:he,matches:ve,loaderData:Fe,errors:Ue}=await Bl(q,k,ne,G.active,Y,L&&L.submission,L&&L.fetcherSubmission,L&&L.replace,L&&L.initialHydration===!0,ue,Q);he||(ce=null,jt(k,{matches:ve||ne,...qf(Q),loaderData:Fe,errors:Ue}))}async function Hl(m,k,L,$,Y,ne={}){mr();let ue=sh(k,L);if(Re({navigation:ue},{flushSync:ne.flushSync===!0}),Y){let Q=await Gn($,k.pathname,m.signal);if(Q.type==="aborted")return{shortCircuited:!0};if(Q.type==="error"){let he=sr(Q.partialMatches).route.id;return{matches:Q.partialMatches,pendingActionResult:[he,{type:"error",error:Q.error}]}}else if(Q.matches)$=Q.matches;else{let{notFoundMatches:he,error:ve,route:Fe}=Yn(k.pathname);return{matches:he,pendingActionResult:[Fe.id,{type:"error",error:ve}]}}}let G,q=Ol($,k);if(!q.route.action&&!q.route.lazy)G={type:"error",error:Ut(405,{method:m.method,pathname:k.pathname,routeId:q.route.id})};else if(G=(await mn("action",C,m,[q],$,null))[q.route.id],m.signal.aborted)return{shortCircuited:!0};if(fr(G)){let Q;return ne&&ne.replace!=null?Q=ne.replace:Q=Xf(G.response.headers.get("Location"),new URL(m.url),v)===C.location.pathname+C.location.search,await At(m,G,!0,{submission:L,replace:Q}),{shortCircuited:!0}}if(Tt(G)){let Q=sr($,q.route.id);return(ne&&ne.replace)!==!0&&(fe="PUSH"),{matches:$,pendingActionResult:[Q.route.id,G]}}return{matches:$,pendingActionResult:[q.route.id,G]}}async function Bl(m,k,L,$,Y,ne,ue,G,q,Q,he){let ve=Y||Xu(k,ne),Fe=ne||ue||tc(ve),Ue=!be&&!q;if($){if(Ue){let Ye=hr(he);Re({navigation:ve,...Ye!==void 0?{actionData:Ye}:{}},{flushSync:Q})}let _e=await Gn(L,k.pathname,m.signal);if(_e.type==="aborted")return{shortCircuited:!0};if(_e.type==="error"){let Ye=sr(_e.partialMatches).route.id;return{matches:_e.partialMatches,loaderData:{},errors:{[Ye]:_e.error}}}else if(_e.matches)L=_e.matches;else{let{error:Ye,notFoundMatches:Sr,route:Sn}=Yn(k.pathname);return{matches:Sr,loaderData:{},errors:{[Sn.id]:Ye}}}}let Oe=y||d,[De,Ke]=Qf(i.history,C,L,Fe,k,q===!0,Je,dt,ae,E,K,Oe,v,he);if(W=++Me,De.length===0&&Ke.length===0){let _e=Yr();return jt(k,{matches:L,loaderData:{},errors:he&&Tt(he[1])?{[he[0]]:he[1].error}:null,...qf(he),..._e?{fetchers:new Map(C.fetchers)}:{}},{flushSync:Q}),{shortCircuited:!0}}if(Ue){let _e={};if(!$){_e.navigation=ve;let Ye=hr(he);Ye!==void 0&&(_e.actionData=Ye)}Ke.length>0&&(_e.fetchers=Vl(Ke)),Re(_e,{flushSync:Q})}Ke.forEach(_e=>{mt(_e.key),_e.controller&&Ee.set(_e.key,_e.controller)});let ln=()=>Ke.forEach(_e=>mt(_e.key));ce&&ce.signal.addEventListener("abort",ln);let{loaderResults:gn,fetcherResults:Nt}=await Kr(C,L,De,Ke,m);if(m.signal.aborted)return{shortCircuited:!0};ce&&ce.signal.removeEventListener("abort",ln),Ke.forEach(_e=>Ee.delete(_e.key));let xt=Zi(gn);if(xt)return await At(m,xt.result,!0,{replace:G}),{shortCircuited:!0};if(xt=Zi(Nt),xt)return K.add(xt.key),await At(m,xt.result,!0,{replace:G}),{shortCircuited:!0};let{loaderData:Zr,errors:Jn}=Jf(C,L,gn,he,Ke,Nt);q&&C.errors&&(Jn={...C.errors,...Jn});let Le=Yr(),wr=Xr(W),wn=Le||wr||Ke.length>0;return{matches:L,loaderData:Zr,errors:Jn,...wn?{fetchers:new Map(C.fetchers)}:{}}}function hr(m){if(m&&!Tt(m[1]))return{[m[0]]:m[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function Vl(m){return m.forEach(k=>{let L=C.fetchers.get(k.key),$=zl(void 0,L?L.data:void 0);C.fetchers.set(k.key,$)}),new Map(C.fetchers)}async function Qr(m,k,L,$){mt(m);let Y=($&&$.flushSync)===!0,ne=y||d,ue=Ju(C.location,C.matches,v,L,k,$==null?void 0:$.relative),G=Hn(ne,ue,v),q=Xn(G,ne,ue);if(q.active&&q.matches&&(G=q.matches),!G){kt(m,k,Ut(404,{pathname:ue}),{flushSync:Y});return}let{path:Q,submission:he,error:ve}=Vf(!0,ue,$);if(ve){kt(m,k,ve,{flushSync:Y});return}let Fe=Ol(G,Q),Ue=($&&$.preventScrollReset)===!0;if(he&&Xt(he.formMethod)){await Wn(m,k,Q,Fe,G,q.active,Y,Ue,he);return}E.set(m,{routeId:k,path:Q}),await hn(m,k,Q,Fe,G,q.active,Y,Ue,he)}async function Wn(m,k,L,$,Y,ne,ue,G,q){mr(),E.delete(m);function Q(je){if(!je.route.action&&!je.route.lazy){let rt=Ut(405,{method:q.formMethod,pathname:L,routeId:k});return kt(m,k,rt,{flushSync:ue}),!0}return!1}if(!ne&&Q($))return;let he=C.fetchers.get(m);Ht(m,fh(q,he),{flushSync:ue});let ve=new AbortController,Fe=Vr(i.history,L,ve.signal,q);if(ne){let je=await Gn(Y,L,Fe.signal);if(je.type==="aborted")return;if(je.type==="error"){kt(m,k,je.error,{flushSync:ue});return}else if(je.matches){if(Y=je.matches,$=Ol(Y,L),Q($))return}else{kt(m,k,Ut(404,{pathname:L}),{flushSync:ue});return}}Ee.set(m,ve);let Ue=Me,De=(await mn("action",C,Fe,[$],Y,m))[$.route.id];if(Fe.signal.aborted){Ee.get(m)===ve&&Ee.delete(m);return}if(ae.has(m)){if(fr(De)||Tt(De)){Ht(m,An(void 0));return}}else{if(fr(De))if(Ee.delete(m),W>Ue){Ht(m,An(void 0));return}else return K.add(m),Ht(m,zl(q)),At(Fe,De,!1,{fetcherSubmission:q,preventScrollReset:G});if(Tt(De)){kt(m,k,De.error);return}}let Ke=C.navigation.location||C.location,ln=Vr(i.history,Ke,ve.signal),gn=y||d,Nt=C.navigation.state!=="idle"?Hn(gn,C.navigation.location,v):C.matches;Se(Nt,"Didn't find any matches after fetcher action");let xt=++Me;re.set(m,xt);let Zr=zl(q,De.data);C.fetchers.set(m,Zr);let[Jn,Le]=Qf(i.history,C,Nt,q,Ke,!1,Je,dt,ae,E,K,gn,v,[$.route.id,De]);Le.filter(je=>je.key!==m).forEach(je=>{let rt=je.key,Yl=C.fetchers.get(rt),Ct=zl(void 0,Yl?Yl.data:void 0);C.fetchers.set(rt,Ct),mt(rt),je.controller&&Ee.set(rt,je.controller)}),Re({fetchers:new Map(C.fetchers)});let wr=()=>Le.forEach(je=>mt(je.key));ve.signal.addEventListener("abort",wr);let{loaderResults:wn,fetcherResults:_e}=await Kr(C,Nt,Jn,Le,ln);if(ve.signal.aborted)return;ve.signal.removeEventListener("abort",wr),re.delete(m),Ee.delete(m),Le.forEach(je=>Ee.delete(je.key));let Ye=Zi(wn);if(Ye)return At(ln,Ye.result,!1,{preventScrollReset:G});if(Ye=Zi(_e),Ye)return K.add(Ye.key),At(ln,Ye.result,!1,{preventScrollReset:G});let{loaderData:Sr,errors:Sn}=Jf(C,Nt,wn,void 0,Le,_e);if(C.fetchers.has(m)){let je=An(De.data);C.fetchers.set(m,je)}Xr(xt),C.navigation.state==="loading"&&xt>W?(Se(fe,"Expected pending action"),ce&&ce.abort(),jt(C.navigation.location,{matches:Nt,loaderData:Sr,errors:Sn,fetchers:new Map(C.fetchers)})):(Re({errors:Sn,loaderData:Zf(C.loaderData,Sr,Nt,Sn),fetchers:new Map(C.fetchers)}),Je=!1)}async function hn(m,k,L,$,Y,ne,ue,G,q){let Q=C.fetchers.get(m);Ht(m,zl(q,Q?Q.data:void 0),{flushSync:ue});let he=new AbortController,ve=Vr(i.history,L,he.signal);if(ne){let De=await Gn(Y,L,ve.signal);if(De.type==="aborted")return;if(De.type==="error"){kt(m,k,De.error,{flushSync:ue});return}else if(De.matches)Y=De.matches,$=Ol(Y,L);else{kt(m,k,Ut(404,{pathname:L}),{flushSync:ue});return}}Ee.set(m,he);let Fe=Me,Oe=(await mn("loader",C,ve,[$],Y,m))[$.route.id];if(Ee.get(m)===he&&Ee.delete(m),!ve.signal.aborted){if(ae.has(m)){Ht(m,An(void 0));return}if(fr(Oe))if(W>Fe){Ht(m,An(void 0));return}else{K.add(m),await At(ve,Oe,!1,{preventScrollReset:G});return}if(Tt(Oe)){kt(m,k,Oe.error);return}Ht(m,An(Oe.data))}}async function At(m,k,L,{submission:$,fetcherSubmission:Y,preventScrollReset:ne,replace:ue}={}){k.response.headers.has("X-Remix-Revalidate")&&(Je=!0);let G=k.response.headers.get("Location");Se(G,"Expected a Location header on the redirect Response"),G=Xf(G,new URL(m.url),v);let q=Il(C.location,G,{_isRedirect:!0});if(a){let Oe=!1;if(k.response.headers.has("X-Remix-Reload-Document"))Oe=!0;else if(ta.test(G)){const De=i.history.createURL(G);Oe=De.origin!==u.location.origin||Gt(De.pathname,v)==null}if(Oe){ue?u.location.replace(G):u.location.assign(G);return}}ce=null;let Q=ue===!0||k.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:he,formAction:ve,formEncType:Fe}=C.navigation;!$&&!Y&&he&&ve&&Fe&&($=tc(C.navigation));let Ue=$||Y;if(Kp.has(k.response.status)&&Ue&&Xt(Ue.formMethod))await $t(Q,q,{submission:{...Ue,formAction:G},preventScrollReset:ne||me,enableViewTransition:L?Ce:void 0});else{let Oe=Xu(q,$);await $t(Q,q,{overrideNavigation:Oe,fetcherSubmission:Y,preventScrollReset:ne||me,enableViewTransition:L?Ce:void 0})}}async function mn(m,k,L,$,Y,ne){let ue,G={};try{ue=await th(g,m,k,L,$,Y,ne,f,c)}catch(q){return $.forEach(Q=>{G[Q.route.id]={type:"error",error:q}}),G}for(let[q,Q]of Object.entries(ue))if(uh(Q)){let he=Q.result;G[q]={type:"redirect",response:lh(he,L,q,Y,v)}}else G[q]=await rh(Q);return G}async function Kr(m,k,L,$,Y){let ne=mn("loader",m,Y,L,k,null),ue=Promise.all($.map(async Q=>{if(Q.matches&&Q.match&&Q.controller){let ve=(await mn("loader",m,Vr(i.history,Q.path,Q.controller.signal),[Q.match],Q.matches,Q.key))[Q.match.route.id];return{[Q.key]:ve}}else return Promise.resolve({[Q.key]:{type:"error",error:Ut(404,{pathname:Q.path})}})})),G=await ne,q=(await ue).reduce((Q,he)=>Object.assign(Q,he),{});return{loaderResults:G,fetcherResults:q}}function mr(){Je=!0,E.forEach((m,k)=>{Ee.has(k)&&dt.add(k),mt(k)})}function Ht(m,k,L={}){C.fetchers.set(m,k),Re({fetchers:new Map(C.fetchers)},{flushSync:(L&&L.flushSync)===!0})}function kt(m,k,L,$={}){let Y=sr(C.matches,k);yr(m),Re({errors:{[Y.route.id]:L},fetchers:new Map(C.fetchers)},{flushSync:($&&$.flushSync)===!0})}function Qn(m){return F.set(m,(F.get(m)||0)+1),ae.has(m)&&ae.delete(m),C.fetchers.get(m)||Yp}function yr(m){let k=C.fetchers.get(m);Ee.has(m)&&!(k&&k.state==="loading"&&re.has(m))&&mt(m),E.delete(m),re.delete(m),K.delete(m),ae.delete(m),dt.delete(m),C.fetchers.delete(m)}function Kn(m){let k=(F.get(m)||0)-1;k<=0?(F.delete(m),ae.add(m)):F.set(m,k),Re({fetchers:new Map(C.fetchers)})}function mt(m){let k=Ee.get(m);k&&(k.abort(),Ee.delete(m))}function Wl(m){for(let k of m){let L=Qn(k),$=An(L.data);C.fetchers.set(k,$)}}function Yr(){let m=[],k=!1;for(let L of K){let $=C.fetchers.get(L);Se($,`Expected fetcher: ${L}`),$.state==="loading"&&(K.delete(L),m.push(L),k=!0)}return Wl(m),k}function Xr(m){let k=[];for(let[L,$]of re)if($0}function uo(m,k){let L=C.blockers.get(m)||Ml;return pe.get(m)!==k&&pe.set(m,k),L}function vr(m){C.blockers.delete(m),pe.delete(m)}function yn(m,k){let L=C.blockers.get(m)||Ml;Se(L.state==="unblocked"&&k.state==="blocked"||L.state==="blocked"&&k.state==="blocked"||L.state==="blocked"&&k.state==="proceeding"||L.state==="blocked"&&k.state==="unblocked"||L.state==="proceeding"&&k.state==="unblocked",`Invalid blocker state transition: ${L.state} -> ${k.state}`);let $=new Map(C.blockers);$.set(m,k),Re({blockers:$})}function gr({currentLocation:m,nextLocation:k,historyAction:L}){if(pe.size===0)return;pe.size>1&&ot(!1,"A router only supports one blocker at a time");let $=Array.from(pe.entries()),[Y,ne]=$[$.length-1],ue=C.blockers.get(Y);if(!(ue&&ue.state==="proceeding")&&ne({currentLocation:m,nextLocation:k,historyAction:L}))return Y}function Yn(m){let k=Ut(404,{pathname:m}),L=y||d,{matches:$,route:Y}=bf(L);return{notFoundMatches:$,route:Y,error:k}}function Gr(m,k,L){if(T=m,H=k,M=L||null,!O&&C.navigation===Yu){O=!0;let $=Jr(C.location,C.matches);$!=null&&Re({restoreScrollPosition:$})}return()=>{T=null,H=null,M=null}}function rn(m,k){return M&&M(m,k.map($=>Cp($,C.loaderData)))||m.key}function vn(m,k){if(T&&H){let L=rn(m,k);T[L]=H()}}function Jr(m,k){if(T){let L=rn(m,k),$=T[L];if(typeof $=="number")return $}return null}function Xn(m,k,L){if(S)if(m){if(Object.keys(m[0].params).length>0)return{active:!0,matches:bi(k,L,v,!0)}}else return{active:!0,matches:bi(k,L,v,!0)||[]};return{active:!1,matches:null}}async function Gn(m,k,L){if(!S)return{type:"success",matches:m};let $=m;for(;;){let Y=y==null,ne=y||d,ue=f;try{await S({path:k,matches:$,patch:(Q,he)=>{L.aborted||Yf(Q,he,ne,ue,c)}})}catch(Q){return{type:"error",error:Q,partialMatches:$}}finally{Y&&!L.aborted&&(d=[...d])}if(L.aborted)return{type:"aborted"};let G=Hn(ne,k,v);if(G)return{type:"success",matches:G};let q=bi(ne,k,v,!0);if(!q||$.length===q.length&&$.every((Q,he)=>Q.route.id===q[he].route.id))return{type:"success",matches:null};$=q}}function Ql(m){f={},y=no(m,c,void 0,f)}function Kl(m,k){let L=y==null;Yf(m,k,y||d,f,c),L&&(d=[...d],Re({}))}return se={get basename(){return v},get future(){return D},get state(){return C},get routes(){return d},get window(){return u},initialize:Ne,subscribe:ze,enableScrollRestoration:Gr,navigate:Wr,fetch:Qr,revalidate:pr,createHref:m=>i.history.createHref(m),encodeLocation:m=>i.history.encodeLocation(m),getFetcher:Qn,deleteFetcher:Kn,dispose:Pe,getBlocker:uo,deleteBlocker:vr,patchRoutes:Kl,_internalFetchControllers:Ee,_internalSetRoutes:Ql},se}function Jp(i){return i!=null&&("formData"in i&&i.formData!=null||"body"in i&&i.body!==void 0)}function Ju(i,u,a,c,f,d){let y,v;if(f){y=[];for(let S of u)if(y.push(S),S.route.id===f){v=S;break}}else y=u,v=u[u.length-1];let g=ea(c||".",bu(y),Gt(i.pathname,a)||i.pathname,d==="path");if(c==null&&(g.search=i.search,g.hash=i.hash),(c==null||c===""||c===".")&&v){let S=na(g.search);if(v.route.index&&!S)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!v.route.index&&S){let D=new URLSearchParams(g.search),z=D.getAll("index");D.delete("index"),z.filter(T=>T).forEach(T=>D.append("index",T));let _=D.toString();g.search=_?`?${_}`:""}}return a!=="/"&&(g.pathname=g.pathname==="/"?a:en([a,g.pathname])),Bn(g)}function Vf(i,u,a){if(!a||!Jp(a))return{path:u};if(a.formMethod&&!ah(a.formMethod))return{path:u,error:Ut(405,{method:a.formMethod})};let c=()=>({path:u,error:Ut(400,{type:"invalid-body"})}),d=(a.formMethod||"get").toUpperCase(),y=mc(u);if(a.body!==void 0){if(a.formEncType==="text/plain"){if(!Xt(d))return c();let z=typeof a.body=="string"?a.body:a.body instanceof FormData||a.body instanceof URLSearchParams?Array.from(a.body.entries()).reduce((_,[T,M])=>`${_}${T}=${M} -`,""):String(a.body);return{path:u,submission:{formMethod:d,formAction:y,formEncType:a.formEncType,formData:void 0,json:void 0,text:z}}}else if(a.formEncType==="application/json"){if(!Xt(d))return c();try{let z=typeof a.body=="string"?JSON.parse(a.body):a.body;return{path:u,submission:{formMethod:d,formAction:y,formEncType:a.formEncType,formData:void 0,json:z,text:void 0}}}catch{return c()}}}Se(typeof FormData=="function","FormData is not available in this environment");let v,g;if(a.formData)v=qu(a.formData),g=a.formData;else if(a.body instanceof FormData)v=qu(a.body),g=a.body;else if(a.body instanceof URLSearchParams)v=a.body,g=Gf(v);else if(a.body==null)v=new URLSearchParams,g=new FormData;else try{v=new URLSearchParams(a.body),g=Gf(v)}catch{return c()}let S={formMethod:d,formAction:y,formEncType:a&&a.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(Xt(S.formMethod))return{path:u,submission:S};let D=Vn(u);return i&&D.search&&na(D.search)&&v.append("index",""),D.search=`?${v}`,{path:Bn(D),submission:S}}function Wf(i,u,a=!1){let c=i.findIndex(f=>f.route.id===u);return c>=0?i.slice(0,a?c+1:c):i}function Qf(i,u,a,c,f,d,y,v,g,S,D,z,_,T){let M=T?Tt(T[1])?T[1].error:T[1].data:void 0,H=i.createURL(u.location),O=i.createURL(f),j=a;d&&u.errors?j=Wf(a,Object.keys(u.errors)[0],!0):T&&Tt(T[1])&&(j=Wf(a,T[0]));let V=T?T[1].statusCode:void 0,b=V&&V>=400,le=j.filter((C,fe)=>{let{route:me}=C;if(me.lazy)return!0;if(me.loader==null)return!1;if(d)return Zu(me,u.loaderData,u.errors);if(Zp(u.loaderData,u.matches[fe],C))return!0;let ce=u.matches[fe],Ce=C;return Kf(C,{currentUrl:H,currentParams:ce.params,nextUrl:O,nextParams:Ce.params,...c,actionResult:M,actionStatus:V,defaultShouldRevalidate:b?!1:y||H.pathname+H.search===O.pathname+O.search||H.search!==O.search||qp(ce,Ce)})}),se=[];return S.forEach((C,fe)=>{if(d||!a.some(ut=>ut.route.id===C.routeId)||g.has(fe))return;let me=Hn(z,C.path,_);if(!me){se.push({key:fe,routeId:C.routeId,path:C.path,matches:null,match:null,controller:null});return}let ce=u.fetchers.get(fe),Ce=Ol(me,C.path),Be=!1;D.has(fe)?Be=!1:v.has(fe)?(v.delete(fe),Be=!0):ce&&ce.state!=="idle"&&ce.data===void 0?Be=y:Be=Kf(Ce,{currentUrl:H,currentParams:u.matches[u.matches.length-1].params,nextUrl:O,nextParams:a[a.length-1].params,...c,actionResult:M,actionStatus:V,defaultShouldRevalidate:b?!1:y}),Be&&se.push({key:fe,routeId:C.routeId,path:C.path,matches:me,match:Ce,controller:new AbortController})}),[le,se]}function Zu(i,u,a){if(i.lazy)return!0;if(!i.loader)return!1;let c=u!=null&&u[i.id]!==void 0,f=a!=null&&a[i.id]!==void 0;return!c&&f?!1:typeof i.loader=="function"&&i.loader.hydrate===!0?!0:!c&&!f}function Zp(i,u,a){let c=!u||a.route.id!==u.route.id,f=!i.hasOwnProperty(a.route.id);return c||f}function qp(i,u){let a=i.route.path;return i.pathname!==u.pathname||a!=null&&a.endsWith("*")&&i.params["*"]!==u.params["*"]}function Kf(i,u){if(i.route.shouldRevalidate){let a=i.route.shouldRevalidate(u);if(typeof a=="boolean")return a}return u.defaultShouldRevalidate}function Yf(i,u,a,c,f){let d;if(i){let g=c[i];Se(g,`No route found to patch children into: routeId = ${i}`),g.children||(g.children=[]),d=g.children}else d=a;let y=u.filter(g=>!d.some(S=>hc(g,S))),v=no(y,f,[i||"_","patch",String((d==null?void 0:d.length)||"0")],c);d.push(...v)}function hc(i,u){return"id"in i&&"id"in u&&i.id===u.id?!0:i.index===u.index&&i.path===u.path&&i.caseSensitive===u.caseSensitive?(!i.children||i.children.length===0)&&(!u.children||u.children.length===0)?!0:i.children.every((a,c)=>{var f;return(f=u.children)==null?void 0:f.some(d=>hc(a,d))}):!1}async function bp(i,u,a){if(!i.lazy)return;let c=await i.lazy();if(!i.lazy)return;let f=a[i.id];Se(f,"No route found in manifest");let d={};for(let y in c){let g=f[y]!==void 0&&y!=="hasErrorBoundary";ot(!g,`Route "${f.id}" has a static property "${y}" defined but its lazy function is also returning a value for this property. The lazy route property "${y}" will be ignored.`),!g&&!kp.has(y)&&(d[y]=c[y])}Object.assign(f,d),Object.assign(f,{...u(f),lazy:void 0})}async function eh({matches:i}){let u=i.filter(c=>c.shouldLoad);return(await Promise.all(u.map(c=>c.resolve()))).reduce((c,f,d)=>Object.assign(c,{[u[d].route.id]:f}),{})}async function th(i,u,a,c,f,d,y,v,g,S){let D=d.map(T=>T.route.lazy?bp(T.route,g,v):void 0),z=d.map((T,M)=>{let H=D[M],O=f.some(V=>V.route.id===T.route.id);return{...T,shouldLoad:O,resolve:async V=>(V&&c.method==="GET"&&(T.route.lazy||T.route.loader)&&(O=!0),O?nh(u,c,T,H,V,S):Promise.resolve({type:"data",result:void 0}))}}),_=await i({matches:z,request:c,params:d[0].params,fetcherKey:y,context:S});try{await Promise.all(D)}catch{}return _}async function nh(i,u,a,c,f,d){let y,v,g=S=>{let D,z=new Promise((M,H)=>D=H);v=()=>D(),u.signal.addEventListener("abort",v);let _=M=>typeof S!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${i}" [routeId: ${a.route.id}]`)):S({request:u,params:a.params,context:d},...M!==void 0?[M]:[]),T=(async()=>{try{return{type:"data",result:await(f?f(H=>_(H)):_())}}catch(M){return{type:"error",result:M}}})();return Promise.race([T,z])};try{let S=a.route[i];if(c)if(S){let D,[z]=await Promise.all([g(S).catch(_=>{D=_}),c]);if(D!==void 0)throw D;y=z}else if(await c,S=a.route[i],S)y=await g(S);else if(i==="action"){let D=new URL(u.url),z=D.pathname+D.search;throw Ut(405,{method:u.method,pathname:z,routeId:a.route.id})}else return{type:"data",result:void 0};else if(S)y=await g(S);else{let D=new URL(u.url),z=D.pathname+D.search;throw Ut(404,{pathname:z})}}catch(S){return{type:"error",result:S}}finally{v&&u.signal.removeEventListener("abort",v)}return y}async function rh(i){var c,f,d,y,v,g;let{result:u,type:a}=i;if(yc(u)){let S;try{let D=u.headers.get("Content-Type");D&&/\bapplication\/json\b/.test(D)?u.body==null?S=null:S=await u.json():S=await u.text()}catch(D){return{type:"error",error:D}}return a==="error"?{type:"error",error:new lo(u.status,u.statusText,S),statusCode:u.status,headers:u.headers}:{type:"data",data:S,statusCode:u.status,headers:u.headers}}return a==="error"?ec(u)?u.data instanceof Error?{type:"error",error:u.data,statusCode:(c=u.init)==null?void 0:c.status,headers:(f=u.init)!=null&&f.headers?new Headers(u.init.headers):void 0}:{type:"error",error:new lo(((d=u.init)==null?void 0:d.status)||500,void 0,u.data),statusCode:Ul(u)?u.status:void 0,headers:(y=u.init)!=null&&y.headers?new Headers(u.init.headers):void 0}:{type:"error",error:u,statusCode:Ul(u)?u.status:void 0}:ec(u)?{type:"data",data:u.data,statusCode:(v=u.init)==null?void 0:v.status,headers:(g=u.init)!=null&&g.headers?new Headers(u.init.headers):void 0}:{type:"data",data:u}}function lh(i,u,a,c,f){let d=i.headers.get("Location");if(Se(d,"Redirects returned/thrown from loaders/actions must have a Location header"),!ta.test(d)){let y=c.slice(0,c.findIndex(v=>v.route.id===a)+1);d=Ju(new URL(u.url),y,f,d),i.headers.set("Location",d)}return i}function Xf(i,u,a){if(ta.test(i)){let c=i,f=c.startsWith("//")?new URL(u.protocol+c):new URL(c),d=Gt(f.pathname,a)!=null;if(f.origin===u.origin&&d)return f.pathname+f.search+f.hash}return i}function Vr(i,u,a,c){let f=i.createURL(mc(u)).toString(),d={signal:a};if(c&&Xt(c.formMethod)){let{formMethod:y,formEncType:v}=c;d.method=y.toUpperCase(),v==="application/json"?(d.headers=new Headers({"Content-Type":v}),d.body=JSON.stringify(c.json)):v==="text/plain"?d.body=c.text:v==="application/x-www-form-urlencoded"&&c.formData?d.body=qu(c.formData):d.body=c.formData}return new Request(f,d)}function qu(i){let u=new URLSearchParams;for(let[a,c]of i.entries())u.append(a,typeof c=="string"?c:c.name);return u}function Gf(i){let u=new FormData;for(let[a,c]of i.entries())u.append(a,c);return u}function ih(i,u,a,c=!1,f=!1){let d={},y=null,v,g=!1,S={},D=a&&Tt(a[1])?a[1].error:void 0;return i.forEach(z=>{if(!(z.route.id in u))return;let _=z.route.id,T=u[_];if(Se(!fr(T),"Cannot handle redirect results in processLoaderData"),Tt(T)){let M=T.error;if(D!==void 0&&(M=D,D=void 0),y=y||{},f)y[_]=M;else{let H=sr(i,_);y[H.route.id]==null&&(y[H.route.id]=M)}c||(d[_]=pc),g||(g=!0,v=Ul(T.error)?T.error.status:500),T.headers&&(S[_]=T.headers)}else d[_]=T.data,T.statusCode&&T.statusCode!==200&&!g&&(v=T.statusCode),T.headers&&(S[_]=T.headers)}),D!==void 0&&a&&(y={[a[0]]:D},d[a[0]]=void 0),{loaderData:d,errors:y,statusCode:v||200,loaderHeaders:S}}function Jf(i,u,a,c,f,d){let{loaderData:y,errors:v}=ih(u,a,c);return f.forEach(g=>{let{key:S,match:D,controller:z}=g,_=d[S];if(Se(_,"Did not find corresponding fetcher result"),!(z&&z.signal.aborted))if(Tt(_)){let T=sr(i.matches,D==null?void 0:D.route.id);v&&v[T.route.id]||(v={...v,[T.route.id]:_.error}),i.fetchers.delete(S)}else if(fr(_))Se(!1,"Unhandled fetcher revalidation redirect");else{let T=An(_.data);i.fetchers.set(S,T)}}),{loaderData:y,errors:v}}function Zf(i,u,a,c){let f=Object.entries(u).filter(([,d])=>d!==pc).reduce((d,[y,v])=>(d[y]=v,d),{});for(let d of a){let y=d.route.id;if(!u.hasOwnProperty(y)&&i.hasOwnProperty(y)&&d.route.loader&&(f[y]=i[y]),c&&c.hasOwnProperty(y))break}return f}function qf(i){return i?Tt(i[1])?{actionData:{}}:{actionData:{[i[0]]:i[1].data}}:{}}function sr(i,u){return(u?i.slice(0,i.findIndex(c=>c.route.id===u)+1):[...i]).reverse().find(c=>c.route.hasErrorBoundary===!0)||i[0]}function bf(i){let u=i.length===1?i[0]:i.find(a=>a.index||!a.path||a.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:u}],route:u}}function Ut(i,{pathname:u,routeId:a,method:c,type:f,message:d}={}){let y="Unknown Server Error",v="Unknown @remix-run/router error";return i===400?(y="Bad Request",c&&u&&a?v=`You made a ${c} request to "${u}" but did not provide a \`loader\` for route "${a}", so there is no way to handle the request.`:f==="invalid-body"&&(v="Unable to encode submission body")):i===403?(y="Forbidden",v=`Route "${a}" does not match URL "${u}"`):i===404?(y="Not Found",v=`No route matches URL "${u}"`):i===405&&(y="Method Not Allowed",c&&u&&a?v=`You made a ${c.toUpperCase()} request to "${u}" but did not provide an \`action\` for route "${a}", so there is no way to handle the request.`:c&&(v=`Invalid request method "${c.toUpperCase()}"`)),new lo(i||500,y,new Error(v),!0)}function Zi(i){let u=Object.entries(i);for(let a=u.length-1;a>=0;a--){let[c,f]=u[a];if(fr(f))return{key:c,result:f}}}function mc(i){let u=typeof i=="string"?Vn(i):i;return Bn({...u,hash:""})}function oh(i,u){return i.pathname!==u.pathname||i.search!==u.search?!1:i.hash===""?u.hash!=="":i.hash===u.hash?!0:u.hash!==""}function uh(i){return yc(i.result)&&Qp.has(i.result.status)}function Tt(i){return i.type==="error"}function fr(i){return(i&&i.type)==="redirect"}function ec(i){return typeof i=="object"&&i!=null&&"type"in i&&"data"in i&&"init"in i&&i.type==="DataWithResponseInit"}function yc(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.headers=="object"&&typeof i.body<"u"}function ah(i){return Wp.has(i.toUpperCase())}function Xt(i){return Bp.has(i.toUpperCase())}function na(i){return new URLSearchParams(i).getAll("index").some(u=>u==="")}function Ol(i,u){let a=typeof u=="string"?Vn(u).search:u.search;if(i[i.length-1].route.index&&na(a||""))return i[i.length-1];let c=fc(i);return c[c.length-1]}function tc(i){let{formMethod:u,formAction:a,formEncType:c,text:f,formData:d,json:y}=i;if(!(!u||!a||!c)){if(f!=null)return{formMethod:u,formAction:a,formEncType:c,formData:void 0,json:void 0,text:f};if(d!=null)return{formMethod:u,formAction:a,formEncType:c,formData:d,json:void 0,text:void 0};if(y!==void 0)return{formMethod:u,formAction:a,formEncType:c,formData:void 0,json:y,text:void 0}}}function Xu(i,u){return u?{state:"loading",location:i,formMethod:u.formMethod,formAction:u.formAction,formEncType:u.formEncType,formData:u.formData,json:u.json,text:u.text}:{state:"loading",location:i,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function sh(i,u){return{state:"submitting",location:i,formMethod:u.formMethod,formAction:u.formAction,formEncType:u.formEncType,formData:u.formData,json:u.json,text:u.text}}function zl(i,u){return i?{state:"loading",formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text,data:u}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:u}}function fh(i,u){return{state:"submitting",formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text,data:u?u.data:void 0}}function An(i){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i}}function ch(i,u){try{let a=i.sessionStorage.getItem(dc);if(a){let c=JSON.parse(a);for(let[f,d]of Object.entries(c||{}))d&&Array.isArray(d)&&u.set(f,new Set(d||[]))}}catch{}}function dh(i,u){if(u.size>0){let a={};for(let[c,f]of u)a[c]=[...f];try{i.sessionStorage.setItem(dc,JSON.stringify(a))}catch(c){ot(!1,`Failed to save applied view transitions in sessionStorage (${c}).`)}}}function ph(){let i,u,a=new Promise((c,f)=>{i=async d=>{c(d);try{await a}catch{}},u=async d=>{f(d);try{await a}catch{}}});return{promise:a,resolve:i,reject:u}}var cr=N.createContext(null);cr.displayName="DataRouter";var jl=N.createContext(null);jl.displayName="DataRouterState";var ra=N.createContext({isTransitioning:!1});ra.displayName="ViewTransition";var vc=N.createContext(new Map);vc.displayName="Fetchers";var hh=N.createContext(null);hh.displayName="Await";var tn=N.createContext(null);tn.displayName="Navigation";var io=N.createContext(null);io.displayName="Location";var nn=N.createContext({outlet:null,matches:[],isDataRoute:!1});nn.displayName="Route";var la=N.createContext(null);la.displayName="RouteError";function mh(i,{relative:u}={}){Se($l(),"useHref() may be used only in the context of a component.");let{basename:a,navigator:c}=N.useContext(tn),{hash:f,pathname:d,search:y}=Al(i,{relative:u}),v=d;return a!=="/"&&(v=d==="/"?a:en([a,d])),c.createHref({pathname:v,search:y,hash:f})}function $l(){return N.useContext(io)!=null}function dr(){return Se($l(),"useLocation() may be used only in the context of a component."),N.useContext(io).location}var gc="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function wc(i){N.useContext(tn).static||N.useLayoutEffect(i)}function yh(){let{isDataRoute:i}=N.useContext(nn);return i?Dh():vh()}function vh(){Se($l(),"useNavigate() may be used only in the context of a component.");let i=N.useContext(cr),{basename:u,navigator:a}=N.useContext(tn),{matches:c}=N.useContext(nn),{pathname:f}=dr(),d=JSON.stringify(bu(c)),y=N.useRef(!1);return wc(()=>{y.current=!0}),N.useCallback((g,S={})=>{if(ot(y.current,gc),!y.current)return;if(typeof g=="number"){a.go(g);return}let D=ea(g,JSON.parse(d),f,S.relative==="path");i==null&&u!=="/"&&(D.pathname=D.pathname==="/"?u:en([u,D.pathname])),(S.replace?a.replace:a.push)(D,S.state,S)},[u,a,d,f,i])}var gh=N.createContext(null);function wh(i){let u=N.useContext(nn).outlet;return u&&N.createElement(gh.Provider,{value:i},u)}function Al(i,{relative:u}={}){let{matches:a}=N.useContext(nn),{pathname:c}=dr(),f=JSON.stringify(bu(a));return N.useMemo(()=>ea(i,JSON.parse(f),c,u==="path"),[i,f,c,u])}function Sh(i,u,a,c){Se($l(),"useRoutes() may be used only in the context of a component.");let{navigator:f,static:d}=N.useContext(tn),{matches:y}=N.useContext(nn),v=y[y.length-1],g=v?v.params:{},S=v?v.pathname:"/",D=v?v.pathnameBase:"/",z=v&&v.route;{let V=z&&z.path||"";Sc(S,!z||V.endsWith("*")||V.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${S}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. - -Please change the parent to .`)}let _=dr(),T;T=_;let M=T.pathname||"/",H=M;if(D!=="/"){let V=D.replace(/^\//,"").split("/");H="/"+M.replace(/^\//,"").split("/").slice(V.length).join("/")}let O=!d&&a&&a.matches&&a.matches.length>0?a.matches:Hn(i,{pathname:H});return ot(z||O!=null,`No routes matched location "${T.pathname}${T.search}${T.hash}" `),ot(O==null||O[O.length-1].route.element!==void 0||O[O.length-1].route.Component!==void 0||O[O.length-1].route.lazy!==void 0,`Matched leaf route at location "${T.pathname}${T.search}${T.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`),Ph(O&&O.map(V=>Object.assign({},V,{params:Object.assign({},g,V.params),pathname:en([D,f.encodeLocation?f.encodeLocation(V.pathname).pathname:V.pathname]),pathnameBase:V.pathnameBase==="/"?D:en([D,f.encodeLocation?f.encodeLocation(V.pathnameBase).pathname:V.pathnameBase])})),y,a,c)}function Eh(){let i=Nh(),u=Ul(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),a=i instanceof Error?i.stack:null,c="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:c},d={padding:"2px 4px",backgroundColor:c},y=null;return console.error("Error handled by React Router default ErrorBoundary:",i),y=N.createElement(N.Fragment,null,N.createElement("p",null,"💿 Hey developer 👋"),N.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",N.createElement("code",{style:d},"ErrorBoundary")," or"," ",N.createElement("code",{style:d},"errorElement")," prop on your route.")),N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},u),a?N.createElement("pre",{style:f},a):null,y)}var kh=N.createElement(Eh,null),xh=class extends N.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,u){return u.location!==i.location||u.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:u.error,location:u.location,revalidation:i.revalidation||u.revalidation}}componentDidCatch(i,u){console.error("React Router caught the following error during render",i,u)}render(){return this.state.error!==void 0?N.createElement(nn.Provider,{value:this.props.routeContext},N.createElement(la.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Ch({routeContext:i,match:u,children:a}){let c=N.useContext(cr);return c&&c.static&&c.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=u.route.id),N.createElement(nn.Provider,{value:i},a)}function Ph(i,u=[],a=null,c=null){if(i==null){if(!a)return null;if(a.errors)i=a.matches;else if(u.length===0&&!a.initialized&&a.matches.length>0)i=a.matches;else return null}let f=i,d=a==null?void 0:a.errors;if(d!=null){let g=f.findIndex(S=>S.route.id&&(d==null?void 0:d[S.route.id])!==void 0);Se(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,g+1))}let y=!1,v=-1;if(a)for(let g=0;g=0?f=f.slice(0,v+1):f=[f[0]];break}}}return f.reduceRight((g,S,D)=>{let z,_=!1,T=null,M=null;a&&(z=d&&S.route.id?d[S.route.id]:void 0,T=S.route.errorElement||kh,y&&(v<0&&D===0?(Sc("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,M=null):v===D&&(_=!0,M=S.route.hydrateFallbackElement||null)));let H=u.concat(f.slice(0,D+1)),O=()=>{let j;return z?j=T:_?j=M:S.route.Component?j=N.createElement(S.route.Component,null):S.route.element?j=S.route.element:j=g,N.createElement(Ch,{match:S,routeContext:{outlet:g,matches:H,isDataRoute:a!=null},children:j})};return a&&(S.route.ErrorBoundary||S.route.errorElement||D===0)?N.createElement(xh,{location:a.location,revalidation:a.revalidation,component:T,error:z,children:O(),routeContext:{outlet:null,matches:H,isDataRoute:!0}}):O()},null)}function ia(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Rh(i){let u=N.useContext(cr);return Se(u,ia(i)),u}function Lh(i){let u=N.useContext(jl);return Se(u,ia(i)),u}function _h(i){let u=N.useContext(nn);return Se(u,ia(i)),u}function oa(i){let u=_h(i),a=u.matches[u.matches.length-1];return Se(a.route.id,`${i} can only be used on routes that contain a unique "id"`),a.route.id}function Th(){return oa("useRouteId")}function Nh(){var c;let i=N.useContext(la),u=Lh("useRouteError"),a=oa("useRouteError");return i!==void 0?i:(c=u.errors)==null?void 0:c[a]}function Dh(){let{router:i}=Rh("useNavigate"),u=oa("useNavigate"),a=N.useRef(!1);return wc(()=>{a.current=!0}),N.useCallback(async(f,d={})=>{ot(a.current,gc),a.current&&(typeof f=="number"?i.navigate(f):await i.navigate(f,{fromRouteId:u,...d}))},[i,u])}var nc={};function Sc(i,u,a){!u&&!nc[i]&&(nc[i]=!0,ot(!1,a))}var rc={};function lc(i,u){!i&&!rc[u]&&(rc[u]=!0,console.warn(u))}function Mh(i){let u={hasErrorBoundary:i.hasErrorBoundary||i.ErrorBoundary!=null||i.errorElement!=null};return i.Component&&(i.element&&ot(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(u,{element:N.createElement(i.Component),Component:void 0})),i.HydrateFallback&&(i.hydrateFallbackElement&&ot(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(u,{hydrateFallbackElement:N.createElement(i.HydrateFallback),HydrateFallback:void 0})),i.ErrorBoundary&&(i.errorElement&&ot(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(u,{errorElement:N.createElement(i.ErrorBoundary),ErrorBoundary:void 0})),u}var zh=class{constructor(){this.status="pending",this.promise=new Promise((i,u)=>{this.resolve=a=>{this.status==="pending"&&(this.status="resolved",i(a))},this.reject=a=>{this.status==="pending"&&(this.status="rejected",u(a))}})}};function Fh({router:i,flushSync:u}){let[a,c]=N.useState(i.state),[f,d]=N.useState(),[y,v]=N.useState({isTransitioning:!1}),[g,S]=N.useState(),[D,z]=N.useState(),[_,T]=N.useState(),M=N.useRef(new Map),H=N.useCallback((b,{deletedFetchers:le,flushSync:se,viewTransitionOpts:C})=>{b.fetchers.forEach((me,ce)=>{me.data!==void 0&&M.current.set(ce,me.data)}),le.forEach(me=>M.current.delete(me)),lc(se===!1||u!=null,'You provided the `flushSync` option to a router update, but you are not using the `` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let fe=i.window!=null&&i.window.document!=null&&typeof i.window.document.startViewTransition=="function";if(lc(C==null||fe,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!C||!fe){u&&se?u(()=>c(b)):N.startTransition(()=>c(b));return}if(u&&se){u(()=>{D&&(g&&g.resolve(),D.skipTransition()),v({isTransitioning:!0,flushSync:!0,currentLocation:C.currentLocation,nextLocation:C.nextLocation})});let me=i.window.document.startViewTransition(()=>{u(()=>c(b))});me.finished.finally(()=>{u(()=>{S(void 0),z(void 0),d(void 0),v({isTransitioning:!1})})}),u(()=>z(me));return}D?(g&&g.resolve(),D.skipTransition(),T({state:b,currentLocation:C.currentLocation,nextLocation:C.nextLocation})):(d(b),v({isTransitioning:!0,flushSync:!1,currentLocation:C.currentLocation,nextLocation:C.nextLocation}))},[i.window,u,D,g]);N.useLayoutEffect(()=>i.subscribe(H),[i,H]),N.useEffect(()=>{y.isTransitioning&&!y.flushSync&&S(new zh)},[y]),N.useEffect(()=>{if(g&&f&&i.window){let b=f,le=g.promise,se=i.window.document.startViewTransition(async()=>{N.startTransition(()=>c(b)),await le});se.finished.finally(()=>{S(void 0),z(void 0),d(void 0),v({isTransitioning:!1})}),z(se)}},[f,g,i.window]),N.useEffect(()=>{g&&f&&a.location.key===f.location.key&&g.resolve()},[g,D,a.location,f]),N.useEffect(()=>{!y.isTransitioning&&_&&(d(_.state),v({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}),T(void 0))},[y.isTransitioning,_]);let O=N.useMemo(()=>({createHref:i.createHref,encodeLocation:i.encodeLocation,go:b=>i.navigate(b),push:(b,le,se)=>i.navigate(b,{state:le,preventScrollReset:se==null?void 0:se.preventScrollReset}),replace:(b,le,se)=>i.navigate(b,{replace:!0,state:le,preventScrollReset:se==null?void 0:se.preventScrollReset})}),[i]),j=i.basename||"/",V=N.useMemo(()=>({router:i,navigator:O,static:!1,basename:j}),[i,O,j]);return N.createElement(N.Fragment,null,N.createElement(cr.Provider,{value:V},N.createElement(jl.Provider,{value:a},N.createElement(vc.Provider,{value:M.current},N.createElement(ra.Provider,{value:y},N.createElement(Uh,{basename:j,location:a.location,navigationType:a.historyAction,navigator:O},N.createElement(Oh,{routes:i.routes,future:i.future,state:a})))))),null)}var Oh=N.memo(Ih);function Ih({routes:i,future:u,state:a}){return Sh(i,void 0,a,u)}function Sm(i){return wh(i.context)}function Uh({basename:i="/",children:u=null,location:a,navigationType:c="POP",navigator:f,static:d=!1}){Se(!$l(),"You cannot render a inside another . You should never have more than one in your app.");let y=i.replace(/^\/*/,"/"),v=N.useMemo(()=>({basename:y,navigator:f,static:d,future:{}}),[y,f,d]);typeof a=="string"&&(a=Vn(a));let{pathname:g="/",search:S="",hash:D="",state:z=null,key:_="default"}=a,T=N.useMemo(()=>{let M=Gt(g,y);return M==null?null:{location:{pathname:M,search:S,hash:D,state:z,key:_},navigationType:c}},[y,g,S,D,z,_,c]);return ot(T!=null,` is not able to match the URL "${g}${S}${D}" because it does not start with the basename, so the won't render anything.`),T==null?null:N.createElement(tn.Provider,{value:v},N.createElement(io.Provider,{children:u,value:T}))}var eo="get",to="application/x-www-form-urlencoded";function oo(i){return i!=null&&typeof i.tagName=="string"}function jh(i){return oo(i)&&i.tagName.toLowerCase()==="button"}function $h(i){return oo(i)&&i.tagName.toLowerCase()==="form"}function Ah(i){return oo(i)&&i.tagName.toLowerCase()==="input"}function Hh(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Bh(i,u){return i.button===0&&(!u||u==="_self")&&!Hh(i)}var qi=null;function Vh(){if(qi===null)try{new FormData(document.createElement("form"),0),qi=!1}catch{qi=!0}return qi}var Wh=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Gu(i){return i!=null&&!Wh.has(i)?(ot(!1,`"${i}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${to}"`),null):i}function Qh(i,u){let a,c,f,d,y;if($h(i)){let v=i.getAttribute("action");c=v?Gt(v,u):null,a=i.getAttribute("method")||eo,f=Gu(i.getAttribute("enctype"))||to,d=new FormData(i)}else if(jh(i)||Ah(i)&&(i.type==="submit"||i.type==="image")){let v=i.form;if(v==null)throw new Error('Cannot submit a